@cdk8s/awscdk-resolver 0.0.14 → 0.0.16

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 (35) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/models_0.js +1 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +1 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +2 -2
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +135 -134
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +135 -134
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +11 -11
  9. package/node_modules/@aws-sdk/client-sso/package.json +9 -9
  10. package/node_modules/@aws-sdk/client-sts/package.json +10 -10
  11. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  12. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  14. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +1 -1
  15. package/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js +1 -1
  16. package/node_modules/@aws-sdk/middleware-host-header/package.json +1 -1
  17. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  18. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +320 -183
  19. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +321 -184
  20. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +231 -93
  21. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +237 -98
  22. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +1 -1
  23. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +1 -1
  24. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  25. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  26. package/node_modules/@smithy/config-resolver/package.json +2 -2
  27. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  28. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  29. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  30. package/node_modules/@smithy/node-config-provider/package.json +2 -2
  31. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +11 -8
  32. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +11 -8
  33. package/node_modules/@smithy/shared-ini-file-loader/package.json +1 -1
  34. package/node_modules/@smithy/util-defaults-mode-node/package.json +4 -4
  35. package/package.json +7 -7
@@ -12,12 +12,12 @@ var resolveClientEndpointParameters = (options) => {
12
12
  ...options,
13
13
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
14
14
  useFipsEndpoint: options.useFipsEndpoint ?? false,
15
- defaultSigningName: "awsssooidc"
15
+ defaultSigningName: "awsssooidc",
16
16
  };
17
17
  };
18
- var package_default = { version: "3.387.0" };
18
+ var package_default = { version: "3.429.0" };
19
19
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
20
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS } from "@smithy/config-resolver";
20
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
21
21
  import { Hash } from "@smithy/hash-node";
22
22
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
23
23
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
@@ -29,31 +29,133 @@ import { parseUrl } from "@smithy/url-parser";
29
29
  import { fromBase64, toBase64 } from "@smithy/util-base64";
30
30
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
31
31
  import { resolveEndpoint } from "@aws-sdk/util-endpoints";
32
- var p = "required";
33
- var q = "fn";
34
- var r = "argv";
35
- var s = "ref";
36
- var a = "PartitionResult";
32
+ var s = "required";
33
+ var t = "fn";
34
+ var u = "argv";
35
+ var v = "ref";
36
+ var a = "isSet";
37
37
  var b = "tree";
38
38
  var c = "error";
39
39
  var d = "endpoint";
40
- var e = { [p]: false, "type": "String" };
41
- var f = { [p]: true, "default": false, "type": "Boolean" };
42
- var g = { [s]: "Endpoint" };
43
- var h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] };
44
- var i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] };
45
- var j = {};
46
- var k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] };
47
- var l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] };
48
- var m = [g];
49
- var n = [h];
50
- var o = [i];
51
- var _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
40
+ var e = "PartitionResult";
41
+ var f = "getAttr";
42
+ var g = { [s]: false, type: "String" };
43
+ var h = { [s]: true, default: false, type: "Boolean" };
44
+ var i = { [v]: "Endpoint" };
45
+ var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] };
46
+ var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] };
47
+ var l = {};
48
+ var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] };
49
+ var n = { [v]: e };
50
+ var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] };
51
+ var p = [j];
52
+ var q = [k];
53
+ var r = [{ [v]: "Region" }];
54
+ var _data = {
55
+ version: "1.0",
56
+ parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g },
57
+ rules: [
58
+ {
59
+ conditions: [{ [t]: a, [u]: [i] }],
60
+ type: b,
61
+ rules: [
62
+ { conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c },
63
+ { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c },
64
+ { endpoint: { url: i, properties: l, headers: l }, type: d },
65
+ ],
66
+ },
67
+ {
68
+ conditions: [{ [t]: a, [u]: r }],
69
+ type: b,
70
+ rules: [
71
+ {
72
+ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }],
73
+ type: b,
74
+ rules: [
75
+ {
76
+ conditions: [j, k],
77
+ type: b,
78
+ rules: [
79
+ {
80
+ conditions: [m, o],
81
+ type: b,
82
+ rules: [
83
+ {
84
+ endpoint: {
85
+ url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
86
+ properties: l,
87
+ headers: l,
88
+ },
89
+ type: d,
90
+ },
91
+ ],
92
+ },
93
+ { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c },
94
+ ],
95
+ },
96
+ {
97
+ conditions: p,
98
+ type: b,
99
+ rules: [
100
+ {
101
+ conditions: [m],
102
+ type: b,
103
+ rules: [
104
+ {
105
+ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }],
106
+ endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l },
107
+ type: d,
108
+ },
109
+ {
110
+ endpoint: {
111
+ url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
112
+ properties: l,
113
+ headers: l,
114
+ },
115
+ type: d,
116
+ },
117
+ ],
118
+ },
119
+ { error: "FIPS is enabled but this partition does not support FIPS", type: c },
120
+ ],
121
+ },
122
+ {
123
+ conditions: q,
124
+ type: b,
125
+ rules: [
126
+ {
127
+ conditions: [o],
128
+ type: b,
129
+ rules: [
130
+ {
131
+ endpoint: {
132
+ url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
133
+ properties: l,
134
+ headers: l,
135
+ },
136
+ type: d,
137
+ },
138
+ ],
139
+ },
140
+ { error: "DualStack is enabled but this partition does not support DualStack", type: c },
141
+ ],
142
+ },
143
+ {
144
+ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l },
145
+ type: d,
146
+ },
147
+ ],
148
+ },
149
+ ],
150
+ },
151
+ { error: "Invalid Configuration: Missing Region", type: c },
152
+ ],
153
+ };
52
154
  var ruleSet = _data;
53
155
  var defaultEndpointResolver = (endpointParams, context = {}) => {
54
156
  return resolveEndpoint(ruleSet, {
55
157
  endpointParams,
56
- logger: context.logger
158
+ logger: context.logger,
57
159
  });
58
160
  };
59
161
  var getRuntimeConfig = (config) => ({
@@ -62,11 +164,12 @@ var getRuntimeConfig = (config) => ({
62
164
  base64Encoder: config?.base64Encoder ?? toBase64,
63
165
  disableHostPrefix: config?.disableHostPrefix ?? false,
64
166
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
167
+ extensions: config?.extensions ?? [],
65
168
  logger: config?.logger ?? new NoOpLogger(),
66
169
  serviceId: config?.serviceId ?? "SSO OIDC",
67
170
  urlParser: config?.urlParser ?? parseUrl,
68
171
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
69
- utf8Encoder: config?.utf8Encoder ?? toUtf8
172
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
70
173
  });
71
174
  import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
72
175
  import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
@@ -82,18 +185,38 @@ var getRuntimeConfig2 = (config) => {
82
185
  runtime: "node",
83
186
  defaultsMode,
84
187
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
85
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
188
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
189
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
86
190
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
87
191
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
88
192
  requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
89
- retryMode: config?.retryMode ?? loadNodeConfig({
90
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
91
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
92
- }),
193
+ retryMode: config?.retryMode ??
194
+ loadNodeConfig({
195
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
196
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
197
+ }),
93
198
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
94
199
  streamCollector: config?.streamCollector ?? streamCollector,
95
200
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
96
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)
201
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
202
+ };
203
+ };
204
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
205
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
206
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
207
+ var asPartial = (t2) => t2;
208
+ var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
209
+ const extensionConfiguration = {
210
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
211
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
212
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
213
+ };
214
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
215
+ return {
216
+ ...runtimeConfig,
217
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
218
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
219
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
97
220
  };
98
221
  };
99
222
  var SSOOIDCClient = class extends __Client {
@@ -105,8 +228,9 @@ var SSOOIDCClient = class extends __Client {
105
228
  const _config_4 = resolveRetryConfig(_config_3);
106
229
  const _config_5 = resolveHostHeaderConfig(_config_4);
107
230
  const _config_6 = resolveUserAgentConfig(_config_5);
108
- super(_config_6);
109
- this.config = _config_6;
231
+ const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
232
+ super(_config_7);
233
+ this.config = _config_7;
110
234
  this.middlewareStack.use(getRetryPlugin(this.config));
111
235
  this.middlewareStack.use(getContentLengthPlugin(this.config));
112
236
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
@@ -122,9 +246,10 @@ import { createAggregatedClient } from "@smithy/smithy-client";
122
246
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
123
247
  import { getSerdePlugin } from "@smithy/middleware-serde";
124
248
  import { Command as $Command } from "@smithy/smithy-client";
249
+ import { SMITHY_CONTEXT_KEY } from "@smithy/types";
125
250
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
126
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException } from "@smithy/smithy-client";
127
- import { ServiceException as __ServiceException } from "@smithy/smithy-client";
251
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
252
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
128
253
  var SSOOIDCServiceException = class _SSOOIDCServiceException extends __ServiceException {
129
254
  constructor(options) {
130
255
  super(options);
@@ -136,7 +261,7 @@ var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceE
136
261
  super({
137
262
  name: "AccessDeniedException",
138
263
  $fault: "client",
139
- ...opts
264
+ ...opts,
140
265
  });
141
266
  this.name = "AccessDeniedException";
142
267
  this.$fault = "client";
@@ -150,7 +275,7 @@ var AuthorizationPendingException = class _AuthorizationPendingException extends
150
275
  super({
151
276
  name: "AuthorizationPendingException",
152
277
  $fault: "client",
153
- ...opts
278
+ ...opts,
154
279
  });
155
280
  this.name = "AuthorizationPendingException";
156
281
  this.$fault = "client";
@@ -164,7 +289,7 @@ var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceE
164
289
  super({
165
290
  name: "ExpiredTokenException",
166
291
  $fault: "client",
167
- ...opts
292
+ ...opts,
168
293
  });
169
294
  this.name = "ExpiredTokenException";
170
295
  this.$fault = "client";
@@ -178,7 +303,7 @@ var InternalServerException = class _InternalServerException extends SSOOIDCServ
178
303
  super({
179
304
  name: "InternalServerException",
180
305
  $fault: "server",
181
- ...opts
306
+ ...opts,
182
307
  });
183
308
  this.name = "InternalServerException";
184
309
  this.$fault = "server";
@@ -192,7 +317,7 @@ var InvalidClientException = class _InvalidClientException extends SSOOIDCServic
192
317
  super({
193
318
  name: "InvalidClientException",
194
319
  $fault: "client",
195
- ...opts
320
+ ...opts,
196
321
  });
197
322
  this.name = "InvalidClientException";
198
323
  this.$fault = "client";
@@ -206,7 +331,7 @@ var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceE
206
331
  super({
207
332
  name: "InvalidGrantException",
208
333
  $fault: "client",
209
- ...opts
334
+ ...opts,
210
335
  });
211
336
  this.name = "InvalidGrantException";
212
337
  this.$fault = "client";
@@ -220,7 +345,7 @@ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServ
220
345
  super({
221
346
  name: "InvalidRequestException",
222
347
  $fault: "client",
223
- ...opts
348
+ ...opts,
224
349
  });
225
350
  this.name = "InvalidRequestException";
226
351
  this.$fault = "client";
@@ -234,7 +359,7 @@ var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceE
234
359
  super({
235
360
  name: "InvalidScopeException",
236
361
  $fault: "client",
237
- ...opts
362
+ ...opts,
238
363
  });
239
364
  this.name = "InvalidScopeException";
240
365
  this.$fault = "client";
@@ -248,7 +373,7 @@ var SlowDownException = class _SlowDownException extends SSOOIDCServiceException
248
373
  super({
249
374
  name: "SlowDownException",
250
375
  $fault: "client",
251
- ...opts
376
+ ...opts,
252
377
  });
253
378
  this.name = "SlowDownException";
254
379
  this.$fault = "client";
@@ -262,7 +387,7 @@ var UnauthorizedClientException = class _UnauthorizedClientException extends SSO
262
387
  super({
263
388
  name: "UnauthorizedClientException",
264
389
  $fault: "client",
265
- ...opts
390
+ ...opts,
266
391
  });
267
392
  this.name = "UnauthorizedClientException";
268
393
  this.$fault = "client";
@@ -276,7 +401,7 @@ var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends
276
401
  super({
277
402
  name: "UnsupportedGrantTypeException",
278
403
  $fault: "client",
279
- ...opts
404
+ ...opts,
280
405
  });
281
406
  this.name = "UnsupportedGrantTypeException";
282
407
  this.$fault = "client";
@@ -290,7 +415,7 @@ var InvalidClientMetadataException = class _InvalidClientMetadataException exten
290
415
  super({
291
416
  name: "InvalidClientMetadataException",
292
417
  $fault: "client",
293
- ...opts
418
+ ...opts,
294
419
  });
295
420
  this.name = "InvalidClientMetadataException";
296
421
  this.$fault = "client";
@@ -302,7 +427,7 @@ var InvalidClientMetadataException = class _InvalidClientMetadataException exten
302
427
  var se_CreateTokenCommand = async (input, context) => {
303
428
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
429
  const headers = {
305
- "content-type": "application/json"
430
+ "content-type": "application/json",
306
431
  };
307
432
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/token`;
308
433
  let body;
@@ -314,7 +439,7 @@ var se_CreateTokenCommand = async (input, context) => {
314
439
  grantType: [],
315
440
  redirectUri: [],
316
441
  refreshToken: [],
317
- scope: (_) => _json(_)
442
+ scope: (_) => _json(_),
318
443
  }));
319
444
  return new __HttpRequest({
320
445
  protocol,
@@ -323,20 +448,20 @@ var se_CreateTokenCommand = async (input, context) => {
323
448
  method: "POST",
324
449
  headers,
325
450
  path: resolvedPath,
326
- body
451
+ body,
327
452
  });
328
453
  };
329
454
  var se_RegisterClientCommand = async (input, context) => {
330
455
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
331
456
  const headers = {
332
- "content-type": "application/json"
457
+ "content-type": "application/json",
333
458
  };
334
459
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/client/register`;
335
460
  let body;
336
461
  body = JSON.stringify(take(input, {
337
462
  clientName: [],
338
463
  clientType: [],
339
- scopes: (_) => _json(_)
464
+ scopes: (_) => _json(_),
340
465
  }));
341
466
  return new __HttpRequest({
342
467
  protocol,
@@ -345,20 +470,20 @@ var se_RegisterClientCommand = async (input, context) => {
345
470
  method: "POST",
346
471
  headers,
347
472
  path: resolvedPath,
348
- body
473
+ body,
349
474
  });
350
475
  };
351
476
  var se_StartDeviceAuthorizationCommand = async (input, context) => {
352
477
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
353
478
  const headers = {
354
- "content-type": "application/json"
479
+ "content-type": "application/json",
355
480
  };
356
481
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/device_authorization`;
357
482
  let body;
358
483
  body = JSON.stringify(take(input, {
359
484
  clientId: [],
360
485
  clientSecret: [],
361
- startUrl: []
486
+ startUrl: [],
362
487
  }));
363
488
  return new __HttpRequest({
364
489
  protocol,
@@ -367,7 +492,7 @@ var se_StartDeviceAuthorizationCommand = async (input, context) => {
367
492
  method: "POST",
368
493
  headers,
369
494
  path: resolvedPath,
370
- body
495
+ body,
371
496
  });
372
497
  };
373
498
  var de_CreateTokenCommand = async (output, context) => {
@@ -375,7 +500,7 @@ var de_CreateTokenCommand = async (output, context) => {
375
500
  return de_CreateTokenCommandError(output, context);
376
501
  }
377
502
  const contents = map({
378
- $metadata: deserializeMetadata(output)
503
+ $metadata: deserializeMetadata(output),
379
504
  });
380
505
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
381
506
  const doc = take(data, {
@@ -383,7 +508,7 @@ var de_CreateTokenCommand = async (output, context) => {
383
508
  expiresIn: __expectInt32,
384
509
  idToken: __expectString,
385
510
  refreshToken: __expectString,
386
- tokenType: __expectString
511
+ tokenType: __expectString,
387
512
  });
388
513
  Object.assign(contents, doc);
389
514
  return contents;
@@ -391,7 +516,7 @@ var de_CreateTokenCommand = async (output, context) => {
391
516
  var de_CreateTokenCommandError = async (output, context) => {
392
517
  const parsedOutput = {
393
518
  ...output,
394
- body: await parseErrorBody(output.body, context)
519
+ body: await parseErrorBody(output.body, context),
395
520
  };
396
521
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
397
522
  switch (errorCode) {
@@ -433,7 +558,7 @@ var de_CreateTokenCommandError = async (output, context) => {
433
558
  return throwDefaultError({
434
559
  output,
435
560
  parsedBody,
436
- errorCode
561
+ errorCode,
437
562
  });
438
563
  }
439
564
  };
@@ -442,7 +567,7 @@ var de_RegisterClientCommand = async (output, context) => {
442
567
  return de_RegisterClientCommandError(output, context);
443
568
  }
444
569
  const contents = map({
445
- $metadata: deserializeMetadata(output)
570
+ $metadata: deserializeMetadata(output),
446
571
  });
447
572
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
448
573
  const doc = take(data, {
@@ -451,7 +576,7 @@ var de_RegisterClientCommand = async (output, context) => {
451
576
  clientIdIssuedAt: __expectLong,
452
577
  clientSecret: __expectString,
453
578
  clientSecretExpiresAt: __expectLong,
454
- tokenEndpoint: __expectString
579
+ tokenEndpoint: __expectString,
455
580
  });
456
581
  Object.assign(contents, doc);
457
582
  return contents;
@@ -459,7 +584,7 @@ var de_RegisterClientCommand = async (output, context) => {
459
584
  var de_RegisterClientCommandError = async (output, context) => {
460
585
  const parsedOutput = {
461
586
  ...output,
462
- body: await parseErrorBody(output.body, context)
587
+ body: await parseErrorBody(output.body, context),
463
588
  };
464
589
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
465
590
  switch (errorCode) {
@@ -480,7 +605,7 @@ var de_RegisterClientCommandError = async (output, context) => {
480
605
  return throwDefaultError({
481
606
  output,
482
607
  parsedBody,
483
- errorCode
608
+ errorCode,
484
609
  });
485
610
  }
486
611
  };
@@ -489,7 +614,7 @@ var de_StartDeviceAuthorizationCommand = async (output, context) => {
489
614
  return de_StartDeviceAuthorizationCommandError(output, context);
490
615
  }
491
616
  const contents = map({
492
- $metadata: deserializeMetadata(output)
617
+ $metadata: deserializeMetadata(output),
493
618
  });
494
619
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
495
620
  const doc = take(data, {
@@ -498,7 +623,7 @@ var de_StartDeviceAuthorizationCommand = async (output, context) => {
498
623
  interval: __expectInt32,
499
624
  userCode: __expectString,
500
625
  verificationUri: __expectString,
501
- verificationUriComplete: __expectString
626
+ verificationUriComplete: __expectString,
502
627
  });
503
628
  Object.assign(contents, doc);
504
629
  return contents;
@@ -506,7 +631,7 @@ var de_StartDeviceAuthorizationCommand = async (output, context) => {
506
631
  var de_StartDeviceAuthorizationCommandError = async (output, context) => {
507
632
  const parsedOutput = {
508
633
  ...output,
509
- body: await parseErrorBody(output.body, context)
634
+ body: await parseErrorBody(output.body, context),
510
635
  };
511
636
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
512
637
  switch (errorCode) {
@@ -530,7 +655,7 @@ var de_StartDeviceAuthorizationCommandError = async (output, context) => {
530
655
  return throwDefaultError({
531
656
  output,
532
657
  parsedBody,
533
- errorCode
658
+ errorCode,
534
659
  });
535
660
  }
536
661
  };
@@ -540,12 +665,12 @@ var de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
540
665
  const data = parsedOutput.body;
541
666
  const doc = take(data, {
542
667
  error: __expectString,
543
- error_description: __expectString
668
+ error_description: __expectString,
544
669
  });
545
670
  Object.assign(contents, doc);
546
671
  const exception = new AccessDeniedException({
547
672
  $metadata: deserializeMetadata(parsedOutput),
548
- ...contents
673
+ ...contents,
549
674
  });
550
675
  return __decorateServiceException(exception, parsedOutput.body);
551
676
  };
@@ -554,12 +679,12 @@ var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
554
679
  const data = parsedOutput.body;
555
680
  const doc = take(data, {
556
681
  error: __expectString,
557
- error_description: __expectString
682
+ error_description: __expectString,
558
683
  });
559
684
  Object.assign(contents, doc);
560
685
  const exception = new AuthorizationPendingException({
561
686
  $metadata: deserializeMetadata(parsedOutput),
562
- ...contents
687
+ ...contents,
563
688
  });
564
689
  return __decorateServiceException(exception, parsedOutput.body);
565
690
  };
@@ -568,12 +693,12 @@ var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
568
693
  const data = parsedOutput.body;
569
694
  const doc = take(data, {
570
695
  error: __expectString,
571
- error_description: __expectString
696
+ error_description: __expectString,
572
697
  });
573
698
  Object.assign(contents, doc);
574
699
  const exception = new ExpiredTokenException({
575
700
  $metadata: deserializeMetadata(parsedOutput),
576
- ...contents
701
+ ...contents,
577
702
  });
578
703
  return __decorateServiceException(exception, parsedOutput.body);
579
704
  };
@@ -582,12 +707,12 @@ var de_InternalServerExceptionRes = async (parsedOutput, context) => {
582
707
  const data = parsedOutput.body;
583
708
  const doc = take(data, {
584
709
  error: __expectString,
585
- error_description: __expectString
710
+ error_description: __expectString,
586
711
  });
587
712
  Object.assign(contents, doc);
588
713
  const exception = new InternalServerException({
589
714
  $metadata: deserializeMetadata(parsedOutput),
590
- ...contents
715
+ ...contents,
591
716
  });
592
717
  return __decorateServiceException(exception, parsedOutput.body);
593
718
  };
@@ -596,12 +721,12 @@ var de_InvalidClientExceptionRes = async (parsedOutput, context) => {
596
721
  const data = parsedOutput.body;
597
722
  const doc = take(data, {
598
723
  error: __expectString,
599
- error_description: __expectString
724
+ error_description: __expectString,
600
725
  });
601
726
  Object.assign(contents, doc);
602
727
  const exception = new InvalidClientException({
603
728
  $metadata: deserializeMetadata(parsedOutput),
604
- ...contents
729
+ ...contents,
605
730
  });
606
731
  return __decorateServiceException(exception, parsedOutput.body);
607
732
  };
@@ -610,12 +735,12 @@ var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
610
735
  const data = parsedOutput.body;
611
736
  const doc = take(data, {
612
737
  error: __expectString,
613
- error_description: __expectString
738
+ error_description: __expectString,
614
739
  });
615
740
  Object.assign(contents, doc);
616
741
  const exception = new InvalidClientMetadataException({
617
742
  $metadata: deserializeMetadata(parsedOutput),
618
- ...contents
743
+ ...contents,
619
744
  });
620
745
  return __decorateServiceException(exception, parsedOutput.body);
621
746
  };
@@ -624,12 +749,12 @@ var de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
624
749
  const data = parsedOutput.body;
625
750
  const doc = take(data, {
626
751
  error: __expectString,
627
- error_description: __expectString
752
+ error_description: __expectString,
628
753
  });
629
754
  Object.assign(contents, doc);
630
755
  const exception = new InvalidGrantException({
631
756
  $metadata: deserializeMetadata(parsedOutput),
632
- ...contents
757
+ ...contents,
633
758
  });
634
759
  return __decorateServiceException(exception, parsedOutput.body);
635
760
  };
@@ -638,12 +763,12 @@ var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
638
763
  const data = parsedOutput.body;
639
764
  const doc = take(data, {
640
765
  error: __expectString,
641
- error_description: __expectString
766
+ error_description: __expectString,
642
767
  });
643
768
  Object.assign(contents, doc);
644
769
  const exception = new InvalidRequestException({
645
770
  $metadata: deserializeMetadata(parsedOutput),
646
- ...contents
771
+ ...contents,
647
772
  });
648
773
  return __decorateServiceException(exception, parsedOutput.body);
649
774
  };
@@ -652,12 +777,12 @@ var de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
652
777
  const data = parsedOutput.body;
653
778
  const doc = take(data, {
654
779
  error: __expectString,
655
- error_description: __expectString
780
+ error_description: __expectString,
656
781
  });
657
782
  Object.assign(contents, doc);
658
783
  const exception = new InvalidScopeException({
659
784
  $metadata: deserializeMetadata(parsedOutput),
660
- ...contents
785
+ ...contents,
661
786
  });
662
787
  return __decorateServiceException(exception, parsedOutput.body);
663
788
  };
@@ -666,12 +791,12 @@ var de_SlowDownExceptionRes = async (parsedOutput, context) => {
666
791
  const data = parsedOutput.body;
667
792
  const doc = take(data, {
668
793
  error: __expectString,
669
- error_description: __expectString
794
+ error_description: __expectString,
670
795
  });
671
796
  Object.assign(contents, doc);
672
797
  const exception = new SlowDownException({
673
798
  $metadata: deserializeMetadata(parsedOutput),
674
- ...contents
799
+ ...contents,
675
800
  });
676
801
  return __decorateServiceException(exception, parsedOutput.body);
677
802
  };
@@ -680,12 +805,12 @@ var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
680
805
  const data = parsedOutput.body;
681
806
  const doc = take(data, {
682
807
  error: __expectString,
683
- error_description: __expectString
808
+ error_description: __expectString,
684
809
  });
685
810
  Object.assign(contents, doc);
686
811
  const exception = new UnauthorizedClientException({
687
812
  $metadata: deserializeMetadata(parsedOutput),
688
- ...contents
813
+ ...contents,
689
814
  });
690
815
  return __decorateServiceException(exception, parsedOutput.body);
691
816
  };
@@ -694,12 +819,12 @@ var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
694
819
  const data = parsedOutput.body;
695
820
  const doc = take(data, {
696
821
  error: __expectString,
697
- error_description: __expectString
822
+ error_description: __expectString,
698
823
  });
699
824
  Object.assign(contents, doc);
700
825
  const exception = new UnsupportedGrantTypeException({
701
826
  $metadata: deserializeMetadata(parsedOutput),
702
- ...contents
827
+ ...contents,
703
828
  });
704
829
  return __decorateServiceException(exception, parsedOutput.body);
705
830
  };
@@ -707,7 +832,7 @@ var deserializeMetadata = (output) => ({
707
832
  httpStatusCode: output.statusCode,
708
833
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
709
834
  extendedRequestId: output.headers["x-amz-id-2"],
710
- cfId: output.headers["x-amz-cf-id"]
835
+ cfId: output.headers["x-amz-cf-id"],
711
836
  });
712
837
  var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
713
838
  var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
@@ -760,7 +885,7 @@ var CreateTokenCommand = class _CreateTokenCommand extends $Command {
760
885
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
761
886
  Endpoint: { type: "builtInParams", name: "endpoint" },
762
887
  Region: { type: "builtInParams", name: "region" },
763
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
888
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
764
889
  };
765
890
  }
766
891
  resolveMiddleware(clientStack, configuration, options) {
@@ -775,7 +900,11 @@ var CreateTokenCommand = class _CreateTokenCommand extends $Command {
775
900
  clientName,
776
901
  commandName,
777
902
  inputFilterSensitiveLog: (_) => _,
778
- outputFilterSensitiveLog: (_) => _
903
+ outputFilterSensitiveLog: (_) => _,
904
+ [SMITHY_CONTEXT_KEY]: {
905
+ service: "AWSSSOOIDCService",
906
+ operation: "CreateToken",
907
+ },
779
908
  };
780
909
  const { requestHandler } = configuration;
781
910
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -790,6 +919,7 @@ var CreateTokenCommand = class _CreateTokenCommand extends $Command {
790
919
  import { getEndpointPlugin as getEndpointPlugin2 } from "@smithy/middleware-endpoint";
791
920
  import { getSerdePlugin as getSerdePlugin2 } from "@smithy/middleware-serde";
792
921
  import { Command as $Command2 } from "@smithy/smithy-client";
922
+ import { SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY2 } from "@smithy/types";
793
923
  var RegisterClientCommand = class _RegisterClientCommand extends $Command2 {
794
924
  constructor(input) {
795
925
  super();
@@ -800,7 +930,7 @@ var RegisterClientCommand = class _RegisterClientCommand extends $Command2 {
800
930
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
801
931
  Endpoint: { type: "builtInParams", name: "endpoint" },
802
932
  Region: { type: "builtInParams", name: "region" },
803
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
933
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
804
934
  };
805
935
  }
806
936
  resolveMiddleware(clientStack, configuration, options) {
@@ -815,7 +945,11 @@ var RegisterClientCommand = class _RegisterClientCommand extends $Command2 {
815
945
  clientName,
816
946
  commandName,
817
947
  inputFilterSensitiveLog: (_) => _,
818
- outputFilterSensitiveLog: (_) => _
948
+ outputFilterSensitiveLog: (_) => _,
949
+ [SMITHY_CONTEXT_KEY2]: {
950
+ service: "AWSSSOOIDCService",
951
+ operation: "RegisterClient",
952
+ },
819
953
  };
820
954
  const { requestHandler } = configuration;
821
955
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -830,6 +964,7 @@ var RegisterClientCommand = class _RegisterClientCommand extends $Command2 {
830
964
  import { getEndpointPlugin as getEndpointPlugin3 } from "@smithy/middleware-endpoint";
831
965
  import { getSerdePlugin as getSerdePlugin3 } from "@smithy/middleware-serde";
832
966
  import { Command as $Command3 } from "@smithy/smithy-client";
967
+ import { SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY3 } from "@smithy/types";
833
968
  var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends $Command3 {
834
969
  constructor(input) {
835
970
  super();
@@ -840,7 +975,7 @@ var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand ext
840
975
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
841
976
  Endpoint: { type: "builtInParams", name: "endpoint" },
842
977
  Region: { type: "builtInParams", name: "region" },
843
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
978
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
844
979
  };
845
980
  }
846
981
  resolveMiddleware(clientStack, configuration, options) {
@@ -855,7 +990,11 @@ var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand ext
855
990
  clientName,
856
991
  commandName,
857
992
  inputFilterSensitiveLog: (_) => _,
858
- outputFilterSensitiveLog: (_) => _
993
+ outputFilterSensitiveLog: (_) => _,
994
+ [SMITHY_CONTEXT_KEY3]: {
995
+ service: "AWSSSOOIDCService",
996
+ operation: "StartDeviceAuthorization",
997
+ },
859
998
  };
860
999
  const { requestHandler } = configuration;
861
1000
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -870,9 +1009,9 @@ var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand ext
870
1009
  var commands = {
871
1010
  CreateTokenCommand,
872
1011
  RegisterClientCommand,
873
- StartDeviceAuthorizationCommand
1012
+ StartDeviceAuthorizationCommand,
874
1013
  };
875
1014
  var SSOOIDC = class extends SSOOIDCClient {
876
1015
  };
877
1016
  createAggregatedClient(commands, SSOOIDC);
878
- export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException };
1017
+ export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, };