@granite-js/pulumi-aws 0.1.34 → 1.0.2

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 (82) hide show
  1. package/CHANGELOG.md +6 -112
  2. package/dist/chunk-23MVQUOJ.js +1630 -0
  3. package/dist/chunk-24XYHOWM.js +171 -0
  4. package/dist/chunk-3AVBP57V.js +1598 -0
  5. package/dist/chunk-3JKQPIJ2.js +460 -0
  6. package/dist/{chunk-ITI6QA2Q.js → chunk-3OYGHA4S.js} +1 -1
  7. package/dist/{chunk-IEZY5C3G.js → chunk-46DIC54Q.js} +49 -37
  8. package/dist/chunk-57WYIP4I.js +808 -0
  9. package/dist/{chunk-WCHHWTND.js → chunk-63Q3RLAK.js} +93 -59
  10. package/dist/chunk-6KRYZP6R.js +28 -0
  11. package/dist/{chunk-QAE2S7MG.js → chunk-7NN7DVGK.js} +2050 -552
  12. package/dist/{chunk-5W7B34BN.js → chunk-ASGFIK4A.js} +2231 -464
  13. package/dist/chunk-BTBQTDRJ.js +174 -0
  14. package/dist/chunk-DDZTWBHZ.js +154 -0
  15. package/dist/chunk-G3FWLTNJ.js +10 -0
  16. package/dist/{chunk-TJ744C2T.js → chunk-GJFKL6XM.js} +43 -38
  17. package/dist/chunk-H4QJ5O4E.js +36 -0
  18. package/dist/{chunk-X6XO7USX.js → chunk-LCO5F3JB.js} +109 -56
  19. package/dist/chunk-NDDYFDCU.js +60 -0
  20. package/dist/chunk-OCHPLE5N.js +28 -0
  21. package/dist/chunk-OSJA4YYQ.js +846 -0
  22. package/dist/chunk-PIT3K3NC.js +464 -0
  23. package/dist/chunk-QCKAO4UT.js +476 -0
  24. package/dist/{chunk-64IS37V6.js → chunk-RYIGWCGK.js} +1 -6
  25. package/dist/chunk-S4LJWEXU.js +37 -0
  26. package/dist/chunk-SJ26Y3GW.js +472 -0
  27. package/dist/chunk-TDZTH7TL.js +60 -0
  28. package/dist/chunk-THUA35UY.js +35 -0
  29. package/dist/{chunk-IUKLHJNE.js → chunk-V7TRGEV6.js} +4 -7
  30. package/dist/{chunk-KGNTV362.js → chunk-WDFKVCPC.js} +66 -34
  31. package/dist/{chunk-B7OAPHPY.js → chunk-YWWEFWFD.js} +3 -3
  32. package/dist/chunk-Z4UYYQ4J.js +42 -0
  33. package/dist/chunk-ZBT5SDIQ.js +16528 -0
  34. package/dist/chunk-ZIHRRTTA.js +24 -0
  35. package/dist/{dist-es-CDFIYJVE.js → dist-es-3VZ2IGGJ.js} +18 -15
  36. package/dist/{dist-es-SUPEA6VE-3B5JSW5C.js → dist-es-BQW4ETQH-C7ZSD5EG.js} +8 -25
  37. package/dist/{dist-es-GHYMLBON.js → dist-es-HSWXMGNC.js} +21 -21
  38. package/dist/{dist-es-OCQVKISC-TNAJ62WG.js → dist-es-IDBNBAO5-H3TO63FG.js} +15 -18
  39. package/dist/{dist-es-S75EKWRJ.js → dist-es-KPJNIAPT.js} +9 -10
  40. package/dist/{dist-es-PRWCVZGQ-HTTVI42T.js → dist-es-LZDRG6RP-SP2FWWEO.js} +3 -4
  41. package/dist/{dist-es-OZGLUDWT.js → dist-es-PIWY5TOR.js} +49 -26
  42. package/dist/{dist-es-ADTONJUN-RVFWNZHO.js → dist-es-R4LD2OHZ-B5MB6BR2.js} +11 -13
  43. package/dist/dist-es-S2KJK4L2-5GDBXJIO.js +470 -0
  44. package/dist/{dist-es-XQME5F6W.js → dist-es-THYWPEKB.js} +12 -10
  45. package/dist/{dist-es-HJVOMDYC-PIAMWMAL.js → dist-es-TIYLKN6W-BAHZRZH5.js} +7 -13
  46. package/dist/{dist-es-IDBDK36G-Y6TQMRO5.js → dist-es-VORPMM2F-WOMP2FYQ.js} +37 -30
  47. package/dist/{dist-es-WQHDOVD7.js → dist-es-WESJCADT.js} +3 -4
  48. package/dist/dist-es-XMOG24OT.js +490 -0
  49. package/dist/event-streams-L7RH32OW-AFMBEYJJ.js +237 -0
  50. package/dist/event-streams-NGUY2RWE.js +237 -0
  51. package/dist/index.cjs +2 -2
  52. package/dist/index.js +2 -2
  53. package/dist/lambda/auto-cache-removal.cjs +28894 -16488
  54. package/dist/lambda/auto-cache-removal.js +11574 -2713
  55. package/dist/lambda/origin-request.cjs +22351 -17619
  56. package/dist/lambda/origin-request.js +21 -17
  57. package/dist/lambda/origin-response.cjs +22219 -17387
  58. package/dist/lambda/origin-response.js +17 -13
  59. package/dist/{loadSso-CZSSLFH6-SA5HOQAX.js → loadSso-F4PTCHDN-YR3RRUYW.js} +330 -227
  60. package/dist/{loadSso-T7GJVVO2.js → loadSso-LG7MFP7N.js} +344 -223
  61. package/dist/signin-P7DNG43W.js +658 -0
  62. package/dist/signin-XWTOVLF3-4ENWNEF7.js +630 -0
  63. package/dist/{sso-oidc-PKO5GYK5-LC65L46O.js → sso-oidc-FQQGUOJL.js} +293 -332
  64. package/dist/{sso-oidc-55SJ27II.js → sso-oidc-RRDYLOJY-FK3AUTOI.js} +263 -337
  65. package/dist/{sts-OPF4H3GL.js → sts-7FBOVTCN.js} +674 -601
  66. package/dist/{sts-P7Q3MYTS-BKGWHQE4.js → sts-TBWJ374A-DHXXCVJJ.js} +651 -608
  67. package/package.json +5 -5
  68. package/dist/chunk-AEOST5WF.js +0 -63
  69. package/dist/chunk-FO7L563E.js +0 -13695
  70. package/dist/chunk-FRWSD3YQ.js +0 -1722
  71. package/dist/chunk-JBVMOFGH.js +0 -152
  72. package/dist/chunk-JSBRDJBE.js +0 -30
  73. package/dist/chunk-KRJS4RAS.js +0 -1732
  74. package/dist/chunk-M5GUUX64.js +0 -63
  75. package/dist/chunk-SX6SVQKS.js +0 -67
  76. package/dist/chunk-UNXXS5FM.js +0 -120
  77. package/dist/chunk-UT2RMOJS.js +0 -2447
  78. package/dist/chunk-VOTRVWIB.js +0 -1965
  79. package/dist/chunk-W3VXP3A3.js +0 -119
  80. package/dist/chunk-XLUI7RQ4.js +0 -115
  81. package/dist/dist-es-2M7RLZ5O.js +0 -200
  82. package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +0 -196
@@ -1,13 +1,17 @@
1
- import {
2
- loadRestJsonErrorCode,
3
- parseJsonBody,
4
- parseJsonErrorBody
5
- } from "./chunk-AEOST5WF.js";
6
1
  import {
7
2
  package_default
8
- } from "./chunk-UNXXS5FM.js";
3
+ } from "./chunk-46DIC54Q.js";
4
+ import {
5
+ createAggregatedClient
6
+ } from "./chunk-ZIHRRTTA.js";
7
+ import {
8
+ AwsRestJsonProtocol
9
+ } from "./chunk-PIT3K3NC.js";
10
+ import "./chunk-3JKQPIJ2.js";
9
11
  import {
10
12
  AwsSdkSigV4Signer,
13
+ Client,
14
+ Command,
11
15
  DEFAULT_RETRY_MODE,
12
16
  DefaultIdentityProviderConfig,
13
17
  EndpointCache,
@@ -21,75 +25,65 @@ import {
21
25
  NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
22
26
  NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
23
27
  NoAuthSigner,
28
+ NoOpLogger,
29
+ ServiceException,
30
+ TypeRegistry,
24
31
  awsEndpointFunctions,
25
32
  calculateBodyLength,
26
33
  createDefaultUserAgentProvider,
27
34
  customEndpointFunctions,
28
35
  emitWarningIfUnsupportedVersion,
36
+ emitWarningIfUnsupportedVersion2,
29
37
  getAwsRegionExtensionConfiguration,
30
38
  getContentLengthPlugin,
39
+ getDefaultExtensionConfiguration,
31
40
  getEndpointPlugin,
32
41
  getHostHeaderPlugin,
33
42
  getHttpAuthSchemeEndpointRuleSetPlugin,
43
+ getHttpHandlerExtensionConfiguration,
34
44
  getHttpSigningPlugin,
35
45
  getLoggerPlugin,
36
46
  getRecursionDetectionPlugin,
37
47
  getRetryPlugin,
38
- getSerdePlugin,
48
+ getSchemaSerdePlugin,
39
49
  getSmithyContext,
40
50
  getUserAgentPlugin,
51
+ loadConfigsForDefaultMode,
41
52
  normalizeProvider,
42
53
  resolveAwsRegionExtensionConfiguration,
43
54
  resolveAwsSdkSigV4Config,
55
+ resolveDefaultRuntimeConfig,
44
56
  resolveDefaultsModeConfig,
45
57
  resolveEndpoint,
46
58
  resolveEndpointConfig,
47
59
  resolveHostHeaderConfig,
60
+ resolveHttpHandlerRuntimeConfig,
48
61
  resolveRegionConfig,
49
62
  resolveRetryConfig,
50
63
  resolveUserAgentConfig
51
- } from "./chunk-5W7B34BN.js";
64
+ } from "./chunk-7NN7DVGK.js";
52
65
  import {
53
66
  loadConfig,
54
67
  parseUrl
55
- } from "./chunk-WCHHWTND.js";
56
- import "./chunk-KGNTV362.js";
68
+ } from "./chunk-63Q3RLAK.js";
69
+ import "./chunk-OCHPLE5N.js";
70
+ import "./chunk-GJFKL6XM.js";
71
+ import "./chunk-24XYHOWM.js";
57
72
  import {
58
- Client,
59
- Command,
60
- NoOpLogger,
61
73
  NodeHttpHandler,
62
- SENSITIVE_STRING,
63
- ServiceException,
64
- _json,
65
- createAggregatedClient,
66
- decorateServiceException,
67
- emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion2,
68
- expectInt32,
69
- expectNonNull,
70
- expectObject,
71
- expectString,
72
74
  fromBase64,
73
- fromUtf8,
74
- getDefaultExtensionConfiguration,
75
- getHttpHandlerExtensionConfiguration,
76
- loadConfigsForDefaultMode,
77
- map,
78
- requestBuilder,
79
- resolveDefaultRuntimeConfig,
80
- resolveHttpHandlerRuntimeConfig,
81
75
  streamCollector,
82
- take,
83
- toBase64,
84
- toUtf8,
85
- withBaseException
86
- } from "./chunk-VOTRVWIB.js";
87
- import "./chunk-ITI6QA2Q.js";
88
- import "./chunk-M5GUUX64.js";
89
- import "./chunk-W3VXP3A3.js";
90
- import "./chunk-JSBRDJBE.js";
76
+ toBase64
77
+ } from "./chunk-57WYIP4I.js";
78
+ import "./chunk-TDZTH7TL.js";
79
+ import "./chunk-RYIGWCGK.js";
80
+ import {
81
+ fromUtf8,
82
+ toUtf8
83
+ } from "./chunk-H4QJ5O4E.js";
84
+ import "./chunk-THUA35UY.js";
91
85
 
92
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
86
+ // ../deployment-manager/dist/sso-oidc-RRDYLOJY.js
93
87
  var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
94
88
  return {
95
89
  operation: getSmithyContext(context).operation,
@@ -137,8 +131,6 @@ var resolveHttpAuthSchemeConfig = (config) => {
137
131
  authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
138
132
  });
139
133
  };
140
-
141
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
142
134
  var resolveClientEndpointParameters = (options) => {
143
135
  return Object.assign(options, {
144
136
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -152,8 +144,6 @@ var commonParams = {
152
144
  Region: { type: "builtInParams", name: "region" },
153
145
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
154
146
  };
155
-
156
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js
157
147
  var u = "required";
158
148
  var v = "fn";
159
149
  var w = "argv";
@@ -166,8 +156,8 @@ var e = "endpoint";
166
156
  var f = "tree";
167
157
  var g = "PartitionResult";
168
158
  var h = "getAttr";
169
- var i = { [u]: false, "type": "String" };
170
- var j = { [u]: true, "default": false, "type": "Boolean" };
159
+ var i = { [u]: false, "type": "string" };
160
+ var j = { [u]: true, "default": false, "type": "boolean" };
171
161
  var k = { [x]: "Endpoint" };
172
162
  var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
173
163
  var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
@@ -180,8 +170,6 @@ var s = [m];
180
170
  var t = [{ [x]: "Region" }];
181
171
  var _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 }] };
182
172
  var ruleSet = _data;
183
-
184
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
185
173
  var cache = new EndpointCache({
186
174
  size: 50,
187
175
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
@@ -193,8 +181,6 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
193
181
  }));
194
182
  };
195
183
  customEndpointFunctions.aws = awsEndpointFunctions;
196
-
197
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
198
184
  var getRuntimeConfig = (config) => {
199
185
  return {
200
186
  apiVersion: "2019-06-10",
@@ -217,14 +203,13 @@ var getRuntimeConfig = (config) => {
217
203
  }
218
204
  ],
219
205
  logger: config?.logger ?? new NoOpLogger(),
206
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
220
207
  serviceId: config?.serviceId ?? "SSO OIDC",
221
208
  urlParser: config?.urlParser ?? parseUrl,
222
209
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
223
210
  utf8Encoder: config?.utf8Encoder ?? toUtf8
224
211
  };
225
212
  };
226
-
227
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
228
213
  var getRuntimeConfig2 = (config) => {
229
214
  emitWarningIfUnsupportedVersion2(process.version);
230
215
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -257,8 +242,6 @@ var getRuntimeConfig2 = (config) => {
257
242
  userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
258
243
  };
259
244
  };
260
-
261
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
262
245
  var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
263
246
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
264
247
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -296,15 +279,11 @@ var resolveHttpAuthRuntimeConfig = (config) => {
296
279
  credentials: config.credentials()
297
280
  };
298
281
  };
299
-
300
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
301
282
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
302
283
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
303
284
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
304
285
  return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
305
286
  };
306
-
307
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
308
287
  var SSOOIDCClient = class extends Client {
309
288
  config;
310
289
  constructor(...[configuration]) {
@@ -320,6 +299,7 @@ var SSOOIDCClient = class extends Client {
320
299
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
321
300
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
322
301
  this.config = _config_8;
302
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
323
303
  this.middlewareStack.use(getUserAgentPlugin(this.config));
324
304
  this.middlewareStack.use(getRetryPlugin(this.config));
325
305
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -338,20 +318,17 @@ var SSOOIDCClient = class extends Client {
338
318
  super.destroy();
339
319
  }
340
320
  };
341
-
342
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
343
321
  var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
344
322
  constructor(options) {
345
323
  super(options);
346
324
  Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
347
325
  }
348
326
  };
349
-
350
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js
351
327
  var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
352
328
  name = "AccessDeniedException";
353
329
  $fault = "client";
354
330
  error;
331
+ reason;
355
332
  error_description;
356
333
  constructor(opts) {
357
334
  super({
@@ -361,6 +338,7 @@ var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceE
361
338
  });
362
339
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
363
340
  this.error = opts.error;
341
+ this.reason = opts.reason;
364
342
  this.error_description = opts.error_description;
365
343
  }
366
344
  };
@@ -380,18 +358,6 @@ var AuthorizationPendingException = class _AuthorizationPendingException extends
380
358
  this.error_description = opts.error_description;
381
359
  }
382
360
  };
383
- var CreateTokenRequestFilterSensitiveLog = (obj) => ({
384
- ...obj,
385
- ...obj.clientSecret && { clientSecret: SENSITIVE_STRING },
386
- ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
387
- ...obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }
388
- });
389
- var CreateTokenResponseFilterSensitiveLog = (obj) => ({
390
- ...obj,
391
- ...obj.accessToken && { accessToken: SENSITIVE_STRING },
392
- ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
393
- ...obj.idToken && { idToken: SENSITIVE_STRING }
394
- });
395
361
  var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
396
362
  name = "ExpiredTokenException";
397
363
  $fault = "client";
@@ -460,6 +426,7 @@ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServ
460
426
  name = "InvalidRequestException";
461
427
  $fault = "client";
462
428
  error;
429
+ reason;
463
430
  error_description;
464
431
  constructor(opts) {
465
432
  super({
@@ -469,6 +436,7 @@ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServ
469
436
  });
470
437
  Object.setPrototypeOf(this, _InvalidRequestException.prototype);
471
438
  this.error = opts.error;
439
+ this.reason = opts.reason;
472
440
  this.error_description = opts.error_description;
473
441
  }
474
442
  };
@@ -536,286 +504,244 @@ var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends
536
504
  this.error_description = opts.error_description;
537
505
  }
538
506
  };
539
-
540
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js
541
- var se_CreateTokenCommand = async (input, context) => {
542
- const b2 = requestBuilder(input, context);
543
- const headers = {
544
- "content-type": "application/json"
545
- };
546
- b2.bp("/token");
547
- let body;
548
- body = JSON.stringify(take(input, {
549
- clientId: [],
550
- clientSecret: [],
551
- code: [],
552
- codeVerifier: [],
553
- deviceCode: [],
554
- grantType: [],
555
- redirectUri: [],
556
- refreshToken: [],
557
- scope: (_) => _json(_)
558
- }));
559
- b2.m("POST").h(headers).b(body);
560
- return b2.build();
561
- };
562
- var de_CreateTokenCommand = async (output, context) => {
563
- if (output.statusCode !== 200 && output.statusCode >= 300) {
564
- return de_CommandError(output, context);
565
- }
566
- const contents = map({
567
- $metadata: deserializeMetadata(output)
568
- });
569
- const data = expectNonNull(expectObject(await parseJsonBody(output.body, context)), "body");
570
- const doc = take(data, {
571
- accessToken: expectString,
572
- expiresIn: expectInt32,
573
- idToken: expectString,
574
- refreshToken: expectString,
575
- tokenType: expectString
576
- });
577
- Object.assign(contents, doc);
578
- return contents;
579
- };
580
- var de_CommandError = async (output, context) => {
581
- const parsedOutput = {
582
- ...output,
583
- body: await parseJsonErrorBody(output.body, context)
584
- };
585
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
586
- switch (errorCode) {
587
- case "AccessDeniedException":
588
- case "com.amazonaws.ssooidc#AccessDeniedException":
589
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
590
- case "AuthorizationPendingException":
591
- case "com.amazonaws.ssooidc#AuthorizationPendingException":
592
- throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
593
- case "ExpiredTokenException":
594
- case "com.amazonaws.ssooidc#ExpiredTokenException":
595
- throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
596
- case "InternalServerException":
597
- case "com.amazonaws.ssooidc#InternalServerException":
598
- throw await de_InternalServerExceptionRes(parsedOutput, context);
599
- case "InvalidClientException":
600
- case "com.amazonaws.ssooidc#InvalidClientException":
601
- throw await de_InvalidClientExceptionRes(parsedOutput, context);
602
- case "InvalidGrantException":
603
- case "com.amazonaws.ssooidc#InvalidGrantException":
604
- throw await de_InvalidGrantExceptionRes(parsedOutput, context);
605
- case "InvalidRequestException":
606
- case "com.amazonaws.ssooidc#InvalidRequestException":
607
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
608
- case "InvalidScopeException":
609
- case "com.amazonaws.ssooidc#InvalidScopeException":
610
- throw await de_InvalidScopeExceptionRes(parsedOutput, context);
611
- case "SlowDownException":
612
- case "com.amazonaws.ssooidc#SlowDownException":
613
- throw await de_SlowDownExceptionRes(parsedOutput, context);
614
- case "UnauthorizedClientException":
615
- case "com.amazonaws.ssooidc#UnauthorizedClientException":
616
- throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
617
- case "UnsupportedGrantTypeException":
618
- case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
619
- throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
620
- default:
621
- const parsedBody = parsedOutput.body;
622
- return throwDefaultError({
623
- output,
624
- parsedBody,
625
- errorCode
626
- });
627
- }
628
- };
629
- var throwDefaultError = withBaseException(SSOOIDCServiceException);
630
- var de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
631
- const contents = map({});
632
- const data = parsedOutput.body;
633
- const doc = take(data, {
634
- error: expectString,
635
- error_description: expectString
636
- });
637
- Object.assign(contents, doc);
638
- const exception = new AccessDeniedException({
639
- $metadata: deserializeMetadata(parsedOutput),
640
- ...contents
641
- });
642
- return decorateServiceException(exception, parsedOutput.body);
643
- };
644
- var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
645
- const contents = map({});
646
- const data = parsedOutput.body;
647
- const doc = take(data, {
648
- error: expectString,
649
- error_description: expectString
650
- });
651
- Object.assign(contents, doc);
652
- const exception = new AuthorizationPendingException({
653
- $metadata: deserializeMetadata(parsedOutput),
654
- ...contents
655
- });
656
- return decorateServiceException(exception, parsedOutput.body);
657
- };
658
- var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
659
- const contents = map({});
660
- const data = parsedOutput.body;
661
- const doc = take(data, {
662
- error: expectString,
663
- error_description: expectString
664
- });
665
- Object.assign(contents, doc);
666
- const exception = new ExpiredTokenException({
667
- $metadata: deserializeMetadata(parsedOutput),
668
- ...contents
669
- });
670
- return decorateServiceException(exception, parsedOutput.body);
671
- };
672
- var de_InternalServerExceptionRes = async (parsedOutput, context) => {
673
- const contents = map({});
674
- const data = parsedOutput.body;
675
- const doc = take(data, {
676
- error: expectString,
677
- error_description: expectString
678
- });
679
- Object.assign(contents, doc);
680
- const exception = new InternalServerException({
681
- $metadata: deserializeMetadata(parsedOutput),
682
- ...contents
683
- });
684
- return decorateServiceException(exception, parsedOutput.body);
685
- };
686
- var de_InvalidClientExceptionRes = async (parsedOutput, context) => {
687
- const contents = map({});
688
- const data = parsedOutput.body;
689
- const doc = take(data, {
690
- error: expectString,
691
- error_description: expectString
692
- });
693
- Object.assign(contents, doc);
694
- const exception = new InvalidClientException({
695
- $metadata: deserializeMetadata(parsedOutput),
696
- ...contents
697
- });
698
- return decorateServiceException(exception, parsedOutput.body);
699
- };
700
- var de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
701
- const contents = map({});
702
- const data = parsedOutput.body;
703
- const doc = take(data, {
704
- error: expectString,
705
- error_description: expectString
706
- });
707
- Object.assign(contents, doc);
708
- const exception = new InvalidGrantException({
709
- $metadata: deserializeMetadata(parsedOutput),
710
- ...contents
711
- });
712
- return decorateServiceException(exception, parsedOutput.body);
713
- };
714
- var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
715
- const contents = map({});
716
- const data = parsedOutput.body;
717
- const doc = take(data, {
718
- error: expectString,
719
- error_description: expectString
720
- });
721
- Object.assign(contents, doc);
722
- const exception = new InvalidRequestException({
723
- $metadata: deserializeMetadata(parsedOutput),
724
- ...contents
725
- });
726
- return decorateServiceException(exception, parsedOutput.body);
727
- };
728
- var de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
729
- const contents = map({});
730
- const data = parsedOutput.body;
731
- const doc = take(data, {
732
- error: expectString,
733
- error_description: expectString
734
- });
735
- Object.assign(contents, doc);
736
- const exception = new InvalidScopeException({
737
- $metadata: deserializeMetadata(parsedOutput),
738
- ...contents
739
- });
740
- return decorateServiceException(exception, parsedOutput.body);
741
- };
742
- var de_SlowDownExceptionRes = async (parsedOutput, context) => {
743
- const contents = map({});
744
- const data = parsedOutput.body;
745
- const doc = take(data, {
746
- error: expectString,
747
- error_description: expectString
748
- });
749
- Object.assign(contents, doc);
750
- const exception = new SlowDownException({
751
- $metadata: deserializeMetadata(parsedOutput),
752
- ...contents
753
- });
754
- return decorateServiceException(exception, parsedOutput.body);
755
- };
756
- var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
757
- const contents = map({});
758
- const data = parsedOutput.body;
759
- const doc = take(data, {
760
- error: expectString,
761
- error_description: expectString
762
- });
763
- Object.assign(contents, doc);
764
- const exception = new UnauthorizedClientException({
765
- $metadata: deserializeMetadata(parsedOutput),
766
- ...contents
767
- });
768
- return decorateServiceException(exception, parsedOutput.body);
769
- };
770
- var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
771
- const contents = map({});
772
- const data = parsedOutput.body;
773
- const doc = take(data, {
774
- error: expectString,
775
- error_description: expectString
776
- });
777
- Object.assign(contents, doc);
778
- const exception = new UnsupportedGrantTypeException({
779
- $metadata: deserializeMetadata(parsedOutput),
780
- ...contents
781
- });
782
- return decorateServiceException(exception, parsedOutput.body);
783
- };
784
- var deserializeMetadata = (output) => ({
785
- httpStatusCode: output.statusCode,
786
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
787
- extendedRequestId: output.headers["x-amz-id-2"],
788
- cfId: output.headers["x-amz-cf-id"]
789
- });
790
-
791
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
507
+ var _ADE = "AccessDeniedException";
508
+ var _APE = "AuthorizationPendingException";
509
+ var _AT = "AccessToken";
510
+ var _CS = "ClientSecret";
511
+ var _CT = "CreateToken";
512
+ var _CTR = "CreateTokenRequest";
513
+ var _CTRr = "CreateTokenResponse";
514
+ var _CV = "CodeVerifier";
515
+ var _ETE = "ExpiredTokenException";
516
+ var _ICE = "InvalidClientException";
517
+ var _IGE = "InvalidGrantException";
518
+ var _IRE = "InvalidRequestException";
519
+ var _ISE = "InternalServerException";
520
+ var _ISEn = "InvalidScopeException";
521
+ var _IT = "IdToken";
522
+ var _RT = "RefreshToken";
523
+ var _SDE = "SlowDownException";
524
+ var _UCE = "UnauthorizedClientException";
525
+ var _UGTE = "UnsupportedGrantTypeException";
526
+ var _aT = "accessToken";
527
+ var _c = "client";
528
+ var _cI = "clientId";
529
+ var _cS = "clientSecret";
530
+ var _cV = "codeVerifier";
531
+ var _co = "code";
532
+ var _dC = "deviceCode";
533
+ var _e = "error";
534
+ var _eI = "expiresIn";
535
+ var _ed = "error_description";
536
+ var _gT = "grantType";
537
+ var _h = "http";
538
+ var _hE = "httpError";
539
+ var _iT = "idToken";
540
+ var _r = "reason";
541
+ var _rT = "refreshToken";
542
+ var _rU = "redirectUri";
543
+ var _s = "scope";
544
+ var _se = "server";
545
+ var _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
546
+ var _tT = "tokenType";
547
+ var n0 = "com.amazonaws.ssooidc";
548
+ var AccessToken = [0, n0, _AT, 8, 0];
549
+ var ClientSecret = [0, n0, _CS, 8, 0];
550
+ var CodeVerifier = [0, n0, _CV, 8, 0];
551
+ var IdToken = [0, n0, _IT, 8, 0];
552
+ var RefreshToken = [0, n0, _RT, 8, 0];
553
+ var AccessDeniedException2 = [
554
+ -3,
555
+ n0,
556
+ _ADE,
557
+ {
558
+ [_e]: _c,
559
+ [_hE]: 400
560
+ },
561
+ [_e, _r, _ed],
562
+ [0, 0, 0]
563
+ ];
564
+ TypeRegistry.for(n0).registerError(AccessDeniedException2, AccessDeniedException);
565
+ var AuthorizationPendingException2 = [
566
+ -3,
567
+ n0,
568
+ _APE,
569
+ {
570
+ [_e]: _c,
571
+ [_hE]: 400
572
+ },
573
+ [_e, _ed],
574
+ [0, 0]
575
+ ];
576
+ TypeRegistry.for(n0).registerError(AuthorizationPendingException2, AuthorizationPendingException);
577
+ var CreateTokenRequest = [
578
+ 3,
579
+ n0,
580
+ _CTR,
581
+ 0,
582
+ [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
583
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]]
584
+ ];
585
+ var CreateTokenResponse = [
586
+ 3,
587
+ n0,
588
+ _CTRr,
589
+ 0,
590
+ [_aT, _tT, _eI, _rT, _iT],
591
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
592
+ ];
593
+ var ExpiredTokenException2 = [
594
+ -3,
595
+ n0,
596
+ _ETE,
597
+ {
598
+ [_e]: _c,
599
+ [_hE]: 400
600
+ },
601
+ [_e, _ed],
602
+ [0, 0]
603
+ ];
604
+ TypeRegistry.for(n0).registerError(ExpiredTokenException2, ExpiredTokenException);
605
+ var InternalServerException2 = [
606
+ -3,
607
+ n0,
608
+ _ISE,
609
+ {
610
+ [_e]: _se,
611
+ [_hE]: 500
612
+ },
613
+ [_e, _ed],
614
+ [0, 0]
615
+ ];
616
+ TypeRegistry.for(n0).registerError(InternalServerException2, InternalServerException);
617
+ var InvalidClientException2 = [
618
+ -3,
619
+ n0,
620
+ _ICE,
621
+ {
622
+ [_e]: _c,
623
+ [_hE]: 401
624
+ },
625
+ [_e, _ed],
626
+ [0, 0]
627
+ ];
628
+ TypeRegistry.for(n0).registerError(InvalidClientException2, InvalidClientException);
629
+ var InvalidGrantException2 = [
630
+ -3,
631
+ n0,
632
+ _IGE,
633
+ {
634
+ [_e]: _c,
635
+ [_hE]: 400
636
+ },
637
+ [_e, _ed],
638
+ [0, 0]
639
+ ];
640
+ TypeRegistry.for(n0).registerError(InvalidGrantException2, InvalidGrantException);
641
+ var InvalidRequestException2 = [
642
+ -3,
643
+ n0,
644
+ _IRE,
645
+ {
646
+ [_e]: _c,
647
+ [_hE]: 400
648
+ },
649
+ [_e, _r, _ed],
650
+ [0, 0, 0]
651
+ ];
652
+ TypeRegistry.for(n0).registerError(InvalidRequestException2, InvalidRequestException);
653
+ var InvalidScopeException2 = [
654
+ -3,
655
+ n0,
656
+ _ISEn,
657
+ {
658
+ [_e]: _c,
659
+ [_hE]: 400
660
+ },
661
+ [_e, _ed],
662
+ [0, 0]
663
+ ];
664
+ TypeRegistry.for(n0).registerError(InvalidScopeException2, InvalidScopeException);
665
+ var SlowDownException2 = [
666
+ -3,
667
+ n0,
668
+ _SDE,
669
+ {
670
+ [_e]: _c,
671
+ [_hE]: 400
672
+ },
673
+ [_e, _ed],
674
+ [0, 0]
675
+ ];
676
+ TypeRegistry.for(n0).registerError(SlowDownException2, SlowDownException);
677
+ var UnauthorizedClientException2 = [
678
+ -3,
679
+ n0,
680
+ _UCE,
681
+ {
682
+ [_e]: _c,
683
+ [_hE]: 400
684
+ },
685
+ [_e, _ed],
686
+ [0, 0]
687
+ ];
688
+ TypeRegistry.for(n0).registerError(UnauthorizedClientException2, UnauthorizedClientException);
689
+ var UnsupportedGrantTypeException2 = [
690
+ -3,
691
+ n0,
692
+ _UGTE,
693
+ {
694
+ [_e]: _c,
695
+ [_hE]: 400
696
+ },
697
+ [_e, _ed],
698
+ [0, 0]
699
+ ];
700
+ TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException2, UnsupportedGrantTypeException);
701
+ var SSOOIDCServiceException2 = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
702
+ TypeRegistry.for(_sm).registerError(SSOOIDCServiceException2, SSOOIDCServiceException);
703
+ var Scopes = 64 | 0;
704
+ var CreateToken = [
705
+ 9,
706
+ n0,
707
+ _CT,
708
+ {
709
+ [_h]: ["POST", "/token", 200]
710
+ },
711
+ () => CreateTokenRequest,
712
+ () => CreateTokenResponse
713
+ ];
792
714
  var CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
793
- return [
794
- getSerdePlugin(config, this.serialize, this.deserialize),
795
- getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
796
- ];
797
- }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
715
+ return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
716
+ }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken).build() {
798
717
  };
799
-
800
- // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
801
718
  var commands = {
802
719
  CreateTokenCommand
803
720
  };
804
721
  var SSOOIDC = class extends SSOOIDCClient {
805
722
  };
806
723
  createAggregatedClient(commands, SSOOIDC);
724
+ var AccessDeniedExceptionReason = {
725
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
726
+ };
727
+ var InvalidRequestExceptionReason = {
728
+ KMS_DISABLED_KEY: "KMS_DisabledException",
729
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
730
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
731
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
732
+ };
807
733
  export {
808
734
  Command as $Command,
809
735
  AccessDeniedException,
736
+ AccessDeniedExceptionReason,
810
737
  AuthorizationPendingException,
811
738
  CreateTokenCommand,
812
- CreateTokenRequestFilterSensitiveLog,
813
- CreateTokenResponseFilterSensitiveLog,
814
739
  ExpiredTokenException,
815
740
  InternalServerException,
816
741
  InvalidClientException,
817
742
  InvalidGrantException,
818
743
  InvalidRequestException,
744
+ InvalidRequestExceptionReason,
819
745
  InvalidScopeException,
820
746
  SSOOIDC,
821
747
  SSOOIDCClient,