@cdk8s/awscdk-resolver 0.0.234 → 0.0.236

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 (36) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
  4. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  5. package/node_modules/@aws-sdk/core/package.json +10 -10
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  9. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  10. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  11. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  13. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  14. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  15. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  16. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +2 -101
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +170 -95
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +2 -140
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +6 -4
  21. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +2 -101
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +6 -4
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +2 -140
  24. package/node_modules/@aws-sdk/nested-clients/dist-types/index.d.ts +1 -0
  25. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +2 -2
  26. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +2 -2
  27. package/node_modules/@aws-sdk/nested-clients/package.json +34 -34
  28. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  29. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  30. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +20 -2
  31. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +11 -2
  32. package/node_modules/@aws-sdk/types/package.json +2 -2
  33. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  34. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  35. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  36. package/package.json +4 -4
@@ -2,105 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const u = "required", v = "fn", w = "argv", x = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, type: "String" }, j = { [u]: true, default: false, type: "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
- const _data = {
7
- version: "1.0",
8
- parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
9
- rules: [
10
- {
11
- conditions: [{ [v]: b, [w]: [k] }],
12
- rules: [
13
- { conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
14
- { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
15
- { endpoint: { url: k, properties: n, headers: n }, type: e },
16
- ],
17
- type: f,
18
- },
19
- {
20
- conditions: [{ [v]: b, [w]: t }],
21
- rules: [
22
- {
23
- conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
24
- rules: [
25
- {
26
- conditions: [l, m],
27
- rules: [
28
- {
29
- conditions: [{ [v]: c, [w]: [a, o] }, q],
30
- rules: [
31
- {
32
- endpoint: {
33
- url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
34
- properties: n,
35
- headers: n,
36
- },
37
- type: e,
38
- },
39
- ],
40
- type: f,
41
- },
42
- { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
43
- ],
44
- type: f,
45
- },
46
- {
47
- conditions: r,
48
- rules: [
49
- {
50
- conditions: [{ [v]: c, [w]: [o, a] }],
51
- rules: [
52
- {
53
- conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
54
- endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n },
55
- type: e,
56
- },
57
- {
58
- endpoint: {
59
- url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
60
- properties: n,
61
- headers: n,
62
- },
63
- type: e,
64
- },
65
- ],
66
- type: f,
67
- },
68
- { error: "FIPS is enabled but this partition does not support FIPS", type: d },
69
- ],
70
- type: f,
71
- },
72
- {
73
- conditions: s,
74
- rules: [
75
- {
76
- conditions: [q],
77
- rules: [
78
- {
79
- endpoint: {
80
- url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
81
- properties: n,
82
- headers: n,
83
- },
84
- type: e,
85
- },
86
- ],
87
- type: f,
88
- },
89
- { error: "DualStack is enabled but this partition does not support DualStack", type: d },
90
- ],
91
- type: f,
92
- },
93
- {
94
- endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
95
- type: e,
96
- },
97
- ],
98
- type: f,
99
- },
100
- ],
101
- type: f,
102
- },
103
- { error: "Invalid Configuration: Missing Region", type: d },
104
- ],
105
- };
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
106
7
  exports.ruleSet = _data;
@@ -21,10 +21,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/submodules/sso-oidc/index.ts
22
22
  var sso_oidc_exports = {};
23
23
  __export(sso_oidc_exports, {
24
- $Command: () => import_smithy_client5.Command,
24
+ $Command: () => import_smithy_client6.Command,
25
25
  AccessDeniedException: () => AccessDeniedException,
26
26
  AuthorizationPendingException: () => AuthorizationPendingException,
27
- ClientInputEndpointParameters: () => import_EndpointParameters3.ClientInputEndpointParameters,
28
27
  CreateTokenCommand: () => CreateTokenCommand,
29
28
  CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
30
29
  CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
@@ -40,7 +39,7 @@ __export(sso_oidc_exports, {
40
39
  SlowDownException: () => SlowDownException,
41
40
  UnauthorizedClientException: () => UnauthorizedClientException,
42
41
  UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
43
- __Client: () => import_smithy_client.Client
42
+ __Client: () => import_smithy_client2.Client
44
43
  });
45
44
  module.exports = __toCommonJS(sso_oidc_exports);
46
45
 
@@ -54,12 +53,93 @@ var import_core = require("@smithy/core");
54
53
  var import_middleware_content_length = require("@smithy/middleware-content-length");
55
54
  var import_middleware_endpoint = require("@smithy/middleware-endpoint");
56
55
  var import_middleware_retry = require("@smithy/middleware-retry");
56
+ var import_smithy_client2 = require("@smithy/smithy-client");
57
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
58
+
59
+ // src/submodules/sso-oidc/endpoint/EndpointParameters.ts
60
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
61
+ return {
62
+ ...options,
63
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
64
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
65
+ defaultSigningName: "sso-oauth"
66
+ };
67
+ }, "resolveClientEndpointParameters");
68
+ var commonParams = {
69
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
70
+ Endpoint: { type: "builtInParams", name: "endpoint" },
71
+ Region: { type: "builtInParams", name: "region" },
72
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
73
+ };
74
+
75
+ // src/submodules/sso-oidc/SSOOIDCClient.ts
76
+ var import_runtimeConfig = require("./runtimeConfig");
77
+
78
+ // src/submodules/sso-oidc/runtimeExtensions.ts
79
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
80
+ var import_protocol_http = require("@smithy/protocol-http");
57
81
  var import_smithy_client = require("@smithy/smithy-client");
58
- var import_httpAuthSchemeProvider = require("./submodules/sts/auth/httpAuthSchemeProvider");
59
- var import_EndpointParameters = require("./submodules/sts/endpoint/EndpointParameters");
60
- var import_runtimeConfig = require("./submodules/sts/runtimeConfig");
61
- var import_runtimeExtensions = require("./submodules/sts/runtimeExtensions");
62
- var SSOOIDCClient = class extends import_smithy_client.Client {
82
+
83
+ // src/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.ts
84
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
85
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
86
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
87
+ let _credentials = runtimeConfig.credentials;
88
+ return {
89
+ setHttpAuthScheme(httpAuthScheme) {
90
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
91
+ if (index === -1) {
92
+ _httpAuthSchemes.push(httpAuthScheme);
93
+ } else {
94
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
95
+ }
96
+ },
97
+ httpAuthSchemes() {
98
+ return _httpAuthSchemes;
99
+ },
100
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
101
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
102
+ },
103
+ httpAuthSchemeProvider() {
104
+ return _httpAuthSchemeProvider;
105
+ },
106
+ setCredentials(credentials) {
107
+ _credentials = credentials;
108
+ },
109
+ credentials() {
110
+ return _credentials;
111
+ }
112
+ };
113
+ }, "getHttpAuthExtensionConfiguration");
114
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
115
+ return {
116
+ httpAuthSchemes: config.httpAuthSchemes(),
117
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
118
+ credentials: config.credentials()
119
+ };
120
+ }, "resolveHttpAuthRuntimeConfig");
121
+
122
+ // src/submodules/sso-oidc/runtimeExtensions.ts
123
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
124
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
125
+ const extensionConfiguration = {
126
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
127
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
128
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
129
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
130
+ };
131
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
132
+ return {
133
+ ...runtimeConfig,
134
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
135
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
136
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
137
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
138
+ };
139
+ }, "resolveRuntimeExtensions");
140
+
141
+ // src/submodules/sso-oidc/SSOOIDCClient.ts
142
+ var SSOOIDCClient = class extends import_smithy_client2.Client {
63
143
  static {
64
144
  __name(this, "SSOOIDCClient");
65
145
  }
@@ -69,14 +149,14 @@ var SSOOIDCClient = class extends import_smithy_client.Client {
69
149
  config;
70
150
  constructor(...[configuration]) {
71
151
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
72
- const _config_1 = (0, import_EndpointParameters.resolveClientEndpointParameters)(_config_0);
152
+ const _config_1 = resolveClientEndpointParameters(_config_0);
73
153
  const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
74
154
  const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
75
155
  const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
76
156
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
77
157
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
78
158
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
79
- const _config_8 = (0, import_runtimeExtensions.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
159
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
80
160
  super(_config_8);
81
161
  this.config = _config_8;
82
162
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -106,20 +186,19 @@ var SSOOIDCClient = class extends import_smithy_client.Client {
106
186
  };
107
187
 
108
188
  // src/submodules/sso-oidc/SSOOIDC.ts
109
- var import_smithy_client6 = require("@smithy/smithy-client");
189
+ var import_smithy_client7 = require("@smithy/smithy-client");
110
190
 
111
191
  // src/submodules/sso-oidc/commands/CreateTokenCommand.ts
112
192
  var import_middleware_endpoint2 = require("@smithy/middleware-endpoint");
113
193
  var import_middleware_serde = require("@smithy/middleware-serde");
114
- var import_smithy_client5 = require("@smithy/smithy-client");
115
- var import_EndpointParameters2 = require("./submodules/sts/endpoint/EndpointParameters");
194
+ var import_smithy_client6 = require("@smithy/smithy-client");
116
195
 
117
196
  // src/submodules/sso-oidc/models/models_0.ts
118
- var import_smithy_client3 = require("@smithy/smithy-client");
197
+ var import_smithy_client4 = require("@smithy/smithy-client");
119
198
 
120
199
  // src/submodules/sso-oidc/models/SSOOIDCServiceException.ts
121
- var import_smithy_client2 = require("@smithy/smithy-client");
122
- var SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client2.ServiceException {
200
+ var import_smithy_client3 = require("@smithy/smithy-client");
201
+ var SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client3.ServiceException {
123
202
  static {
124
203
  __name(this, "SSOOIDCServiceException");
125
204
  }
@@ -199,15 +278,15 @@ var AuthorizationPendingException = class _AuthorizationPendingException extends
199
278
  };
200
279
  var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
201
280
  ...obj,
202
- ...obj.clientSecret && { clientSecret: import_smithy_client3.SENSITIVE_STRING },
203
- ...obj.refreshToken && { refreshToken: import_smithy_client3.SENSITIVE_STRING },
204
- ...obj.codeVerifier && { codeVerifier: import_smithy_client3.SENSITIVE_STRING }
281
+ ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING },
282
+ ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },
283
+ ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING }
205
284
  }), "CreateTokenRequestFilterSensitiveLog");
206
285
  var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
207
286
  ...obj,
208
- ...obj.accessToken && { accessToken: import_smithy_client3.SENSITIVE_STRING },
209
- ...obj.refreshToken && { refreshToken: import_smithy_client3.SENSITIVE_STRING },
210
- ...obj.idToken && { idToken: import_smithy_client3.SENSITIVE_STRING }
287
+ ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING },
288
+ ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },
289
+ ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING }
211
290
  }), "CreateTokenResponseFilterSensitiveLog");
212
291
  var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
213
292
  static {
@@ -501,7 +580,7 @@ var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends
501
580
  // src/submodules/sso-oidc/protocols/Aws_restJson1.ts
502
581
  var import_core2 = require("@aws-sdk/core");
503
582
  var import_core3 = require("@smithy/core");
504
- var import_smithy_client4 = require("@smithy/smithy-client");
583
+ var import_smithy_client5 = require("@smithy/smithy-client");
505
584
  var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
506
585
  const b = (0, import_core3.requestBuilder)(input, context);
507
586
  const headers = {
@@ -510,7 +589,7 @@ var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
510
589
  b.bp("/token");
511
590
  let body;
512
591
  body = JSON.stringify(
513
- (0, import_smithy_client4.take)(input, {
592
+ (0, import_smithy_client5.take)(input, {
514
593
  clientId: [],
515
594
  clientSecret: [],
516
595
  code: [],
@@ -519,7 +598,7 @@ var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
519
598
  grantType: [],
520
599
  redirectUri: [],
521
600
  refreshToken: [],
522
- scope: (_) => (0, import_smithy_client4._json)(_)
601
+ scope: (_) => (0, import_smithy_client5._json)(_)
523
602
  })
524
603
  );
525
604
  b.m("POST").h(headers).b(body);
@@ -529,16 +608,16 @@ var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
529
608
  if (output.statusCode !== 200 && output.statusCode >= 300) {
530
609
  return de_CommandError(output, context);
531
610
  }
532
- const contents = (0, import_smithy_client4.map)({
611
+ const contents = (0, import_smithy_client5.map)({
533
612
  $metadata: deserializeMetadata(output)
534
613
  });
535
- const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
536
- const doc = (0, import_smithy_client4.take)(data, {
537
- accessToken: import_smithy_client4.expectString,
538
- expiresIn: import_smithy_client4.expectInt32,
539
- idToken: import_smithy_client4.expectString,
540
- refreshToken: import_smithy_client4.expectString,
541
- tokenType: import_smithy_client4.expectString
614
+ const data = (0, import_smithy_client5.expectNonNull)((0, import_smithy_client5.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
615
+ const doc = (0, import_smithy_client5.take)(data, {
616
+ accessToken: import_smithy_client5.expectString,
617
+ expiresIn: import_smithy_client5.expectInt32,
618
+ idToken: import_smithy_client5.expectString,
619
+ refreshToken: import_smithy_client5.expectString,
620
+ tokenType: import_smithy_client5.expectString
542
621
  });
543
622
  Object.assign(contents, doc);
544
623
  return contents;
@@ -592,160 +671,160 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
592
671
  });
593
672
  }
594
673
  }, "de_CommandError");
595
- var throwDefaultError = (0, import_smithy_client4.withBaseException)(SSOOIDCServiceException);
674
+ var throwDefaultError = (0, import_smithy_client5.withBaseException)(SSOOIDCServiceException);
596
675
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
597
- const contents = (0, import_smithy_client4.map)({});
676
+ const contents = (0, import_smithy_client5.map)({});
598
677
  const data = parsedOutput.body;
599
- const doc = (0, import_smithy_client4.take)(data, {
600
- error: import_smithy_client4.expectString,
601
- error_description: import_smithy_client4.expectString
678
+ const doc = (0, import_smithy_client5.take)(data, {
679
+ error: import_smithy_client5.expectString,
680
+ error_description: import_smithy_client5.expectString
602
681
  });
603
682
  Object.assign(contents, doc);
604
683
  const exception = new AccessDeniedException({
605
684
  $metadata: deserializeMetadata(parsedOutput),
606
685
  ...contents
607
686
  });
608
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
687
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
609
688
  }, "de_AccessDeniedExceptionRes");
610
689
  var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
611
- const contents = (0, import_smithy_client4.map)({});
690
+ const contents = (0, import_smithy_client5.map)({});
612
691
  const data = parsedOutput.body;
613
- const doc = (0, import_smithy_client4.take)(data, {
614
- error: import_smithy_client4.expectString,
615
- error_description: import_smithy_client4.expectString
692
+ const doc = (0, import_smithy_client5.take)(data, {
693
+ error: import_smithy_client5.expectString,
694
+ error_description: import_smithy_client5.expectString
616
695
  });
617
696
  Object.assign(contents, doc);
618
697
  const exception = new AuthorizationPendingException({
619
698
  $metadata: deserializeMetadata(parsedOutput),
620
699
  ...contents
621
700
  });
622
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
701
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
623
702
  }, "de_AuthorizationPendingExceptionRes");
624
703
  var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
625
- const contents = (0, import_smithy_client4.map)({});
704
+ const contents = (0, import_smithy_client5.map)({});
626
705
  const data = parsedOutput.body;
627
- const doc = (0, import_smithy_client4.take)(data, {
628
- error: import_smithy_client4.expectString,
629
- error_description: import_smithy_client4.expectString
706
+ const doc = (0, import_smithy_client5.take)(data, {
707
+ error: import_smithy_client5.expectString,
708
+ error_description: import_smithy_client5.expectString
630
709
  });
631
710
  Object.assign(contents, doc);
632
711
  const exception = new ExpiredTokenException({
633
712
  $metadata: deserializeMetadata(parsedOutput),
634
713
  ...contents
635
714
  });
636
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
715
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
637
716
  }, "de_ExpiredTokenExceptionRes");
638
717
  var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
639
- const contents = (0, import_smithy_client4.map)({});
718
+ const contents = (0, import_smithy_client5.map)({});
640
719
  const data = parsedOutput.body;
641
- const doc = (0, import_smithy_client4.take)(data, {
642
- error: import_smithy_client4.expectString,
643
- error_description: import_smithy_client4.expectString
720
+ const doc = (0, import_smithy_client5.take)(data, {
721
+ error: import_smithy_client5.expectString,
722
+ error_description: import_smithy_client5.expectString
644
723
  });
645
724
  Object.assign(contents, doc);
646
725
  const exception = new InternalServerException({
647
726
  $metadata: deserializeMetadata(parsedOutput),
648
727
  ...contents
649
728
  });
650
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
729
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
651
730
  }, "de_InternalServerExceptionRes");
652
731
  var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
653
- const contents = (0, import_smithy_client4.map)({});
732
+ const contents = (0, import_smithy_client5.map)({});
654
733
  const data = parsedOutput.body;
655
- const doc = (0, import_smithy_client4.take)(data, {
656
- error: import_smithy_client4.expectString,
657
- error_description: import_smithy_client4.expectString
734
+ const doc = (0, import_smithy_client5.take)(data, {
735
+ error: import_smithy_client5.expectString,
736
+ error_description: import_smithy_client5.expectString
658
737
  });
659
738
  Object.assign(contents, doc);
660
739
  const exception = new InvalidClientException({
661
740
  $metadata: deserializeMetadata(parsedOutput),
662
741
  ...contents
663
742
  });
664
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
743
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
665
744
  }, "de_InvalidClientExceptionRes");
666
745
  var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
667
- const contents = (0, import_smithy_client4.map)({});
746
+ const contents = (0, import_smithy_client5.map)({});
668
747
  const data = parsedOutput.body;
669
- const doc = (0, import_smithy_client4.take)(data, {
670
- error: import_smithy_client4.expectString,
671
- error_description: import_smithy_client4.expectString
748
+ const doc = (0, import_smithy_client5.take)(data, {
749
+ error: import_smithy_client5.expectString,
750
+ error_description: import_smithy_client5.expectString
672
751
  });
673
752
  Object.assign(contents, doc);
674
753
  const exception = new InvalidGrantException({
675
754
  $metadata: deserializeMetadata(parsedOutput),
676
755
  ...contents
677
756
  });
678
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
757
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
679
758
  }, "de_InvalidGrantExceptionRes");
680
759
  var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
681
- const contents = (0, import_smithy_client4.map)({});
760
+ const contents = (0, import_smithy_client5.map)({});
682
761
  const data = parsedOutput.body;
683
- const doc = (0, import_smithy_client4.take)(data, {
684
- error: import_smithy_client4.expectString,
685
- error_description: import_smithy_client4.expectString
762
+ const doc = (0, import_smithy_client5.take)(data, {
763
+ error: import_smithy_client5.expectString,
764
+ error_description: import_smithy_client5.expectString
686
765
  });
687
766
  Object.assign(contents, doc);
688
767
  const exception = new InvalidRequestException({
689
768
  $metadata: deserializeMetadata(parsedOutput),
690
769
  ...contents
691
770
  });
692
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
771
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
693
772
  }, "de_InvalidRequestExceptionRes");
694
773
  var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
695
- const contents = (0, import_smithy_client4.map)({});
774
+ const contents = (0, import_smithy_client5.map)({});
696
775
  const data = parsedOutput.body;
697
- const doc = (0, import_smithy_client4.take)(data, {
698
- error: import_smithy_client4.expectString,
699
- error_description: import_smithy_client4.expectString
776
+ const doc = (0, import_smithy_client5.take)(data, {
777
+ error: import_smithy_client5.expectString,
778
+ error_description: import_smithy_client5.expectString
700
779
  });
701
780
  Object.assign(contents, doc);
702
781
  const exception = new InvalidScopeException({
703
782
  $metadata: deserializeMetadata(parsedOutput),
704
783
  ...contents
705
784
  });
706
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
785
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
707
786
  }, "de_InvalidScopeExceptionRes");
708
787
  var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
709
- const contents = (0, import_smithy_client4.map)({});
788
+ const contents = (0, import_smithy_client5.map)({});
710
789
  const data = parsedOutput.body;
711
- const doc = (0, import_smithy_client4.take)(data, {
712
- error: import_smithy_client4.expectString,
713
- error_description: import_smithy_client4.expectString
790
+ const doc = (0, import_smithy_client5.take)(data, {
791
+ error: import_smithy_client5.expectString,
792
+ error_description: import_smithy_client5.expectString
714
793
  });
715
794
  Object.assign(contents, doc);
716
795
  const exception = new SlowDownException({
717
796
  $metadata: deserializeMetadata(parsedOutput),
718
797
  ...contents
719
798
  });
720
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
799
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
721
800
  }, "de_SlowDownExceptionRes");
722
801
  var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
723
- const contents = (0, import_smithy_client4.map)({});
802
+ const contents = (0, import_smithy_client5.map)({});
724
803
  const data = parsedOutput.body;
725
- const doc = (0, import_smithy_client4.take)(data, {
726
- error: import_smithy_client4.expectString,
727
- error_description: import_smithy_client4.expectString
804
+ const doc = (0, import_smithy_client5.take)(data, {
805
+ error: import_smithy_client5.expectString,
806
+ error_description: import_smithy_client5.expectString
728
807
  });
729
808
  Object.assign(contents, doc);
730
809
  const exception = new UnauthorizedClientException({
731
810
  $metadata: deserializeMetadata(parsedOutput),
732
811
  ...contents
733
812
  });
734
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
813
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
735
814
  }, "de_UnauthorizedClientExceptionRes");
736
815
  var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
737
- const contents = (0, import_smithy_client4.map)({});
816
+ const contents = (0, import_smithy_client5.map)({});
738
817
  const data = parsedOutput.body;
739
- const doc = (0, import_smithy_client4.take)(data, {
740
- error: import_smithy_client4.expectString,
741
- error_description: import_smithy_client4.expectString
818
+ const doc = (0, import_smithy_client5.take)(data, {
819
+ error: import_smithy_client5.expectString,
820
+ error_description: import_smithy_client5.expectString
742
821
  });
743
822
  Object.assign(contents, doc);
744
823
  const exception = new UnsupportedGrantTypeException({
745
824
  $metadata: deserializeMetadata(parsedOutput),
746
825
  ...contents
747
826
  });
748
- return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body);
827
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
749
828
  }, "de_UnsupportedGrantTypeExceptionRes");
750
829
  var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
751
830
  httpStatusCode: output.statusCode,
@@ -755,7 +834,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
755
834
  }), "deserializeMetadata");
756
835
 
757
836
  // src/submodules/sso-oidc/commands/CreateTokenCommand.ts
758
- var CreateTokenCommand = class extends import_smithy_client5.Command.classBuilder().ep(import_EndpointParameters2.commonParams).m(function(Command, cs, config, o) {
837
+ var CreateTokenCommand = class extends import_smithy_client6.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
759
838
  return [
760
839
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
761
840
  (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -775,16 +854,12 @@ var SSOOIDC = class extends SSOOIDCClient {
775
854
  __name(this, "SSOOIDC");
776
855
  }
777
856
  };
778
- (0, import_smithy_client6.createAggregatedClient)(commands, SSOOIDC);
779
-
780
- // src/submodules/sso-oidc/index.ts
781
- var import_EndpointParameters3 = require("./submodules/sts/endpoint/EndpointParameters");
857
+ (0, import_smithy_client7.createAggregatedClient)(commands, SSOOIDC);
782
858
  // Annotate the CommonJS export names for ESM import in node:
783
859
  0 && (module.exports = {
784
860
  $Command,
785
861
  AccessDeniedException,
786
862
  AuthorizationPendingException,
787
- ClientInputEndpointParameters,
788
863
  CreateTokenCommand,
789
864
  CreateTokenRequestFilterSensitiveLog,
790
865
  CreateTokenResponseFilterSensitiveLog,