@granite-js/pulumi-aws 0.1.34 → 1.0.1

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 +4 -116
  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,19 @@
1
1
  import {
2
+ AwsRestJsonProtocol
3
+ } from "./chunk-QCKAO4UT.js";
4
+ import {
5
+ createAggregatedClient,
2
6
  package_default
3
- } from "./chunk-IEZY5C3G.js";
7
+ } from "./chunk-DDZTWBHZ.js";
4
8
  import {
5
- loadRestJsonErrorCode,
6
- parseJsonBody,
7
- parseJsonErrorBody
8
- } from "./chunk-SX6SVQKS.js";
9
+ NoAuthSigner
10
+ } from "./chunk-G3FWLTNJ.js";
11
+ import "./chunk-SJ26Y3GW.js";
12
+ import "./chunk-BTBQTDRJ.js";
9
13
  import {
10
14
  AwsSdkSigV4Signer,
15
+ Client,
16
+ Command,
11
17
  DEFAULT_RETRY_MODE,
12
18
  DefaultIdentityProviderConfig,
13
19
  EndpointCache,
@@ -20,81 +26,64 @@ import {
20
26
  NODE_RETRY_MODE_CONFIG_OPTIONS,
21
27
  NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
22
28
  NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
23
- NoAuthSigner,
29
+ NoOpLogger,
30
+ ServiceException,
31
+ TypeRegistry,
24
32
  awsEndpointFunctions,
25
33
  calculateBodyLength,
26
34
  createDefaultUserAgentProvider,
27
35
  customEndpointFunctions,
28
- emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion2,
36
+ emitWarningIfUnsupportedVersion,
37
+ emitWarningIfUnsupportedVersion2,
29
38
  getAwsRegionExtensionConfiguration,
30
39
  getContentLengthPlugin,
40
+ getDefaultExtensionConfiguration,
31
41
  getEndpointPlugin,
32
42
  getHostHeaderPlugin,
33
43
  getHttpAuthSchemeEndpointRuleSetPlugin,
44
+ getHttpHandlerExtensionConfiguration,
34
45
  getHttpSigningPlugin,
35
46
  getLoggerPlugin,
36
47
  getRecursionDetectionPlugin,
37
48
  getRetryPlugin,
38
- getSerdePlugin,
49
+ getSchemaSerdePlugin,
39
50
  getSmithyContext,
40
51
  getUserAgentPlugin,
52
+ loadConfigsForDefaultMode,
41
53
  normalizeProvider,
42
54
  resolveAwsRegionExtensionConfiguration,
43
55
  resolveAwsSdkSigV4Config,
56
+ resolveDefaultRuntimeConfig,
44
57
  resolveDefaultsModeConfig,
45
58
  resolveEndpoint,
46
59
  resolveEndpointConfig,
47
60
  resolveHostHeaderConfig,
61
+ resolveHttpHandlerRuntimeConfig,
48
62
  resolveRegionConfig,
49
63
  resolveRetryConfig,
50
64
  resolveUserAgentConfig
51
- } from "./chunk-QAE2S7MG.js";
65
+ } from "./chunk-ASGFIK4A.js";
52
66
  import {
53
67
  loadConfig,
54
68
  parseUrl
55
- } from "./chunk-X6XO7USX.js";
69
+ } from "./chunk-LCO5F3JB.js";
70
+ import "./chunk-6KRYZP6R.js";
56
71
  import {
57
- Client,
58
- Command,
59
- NoOpLogger,
60
72
  NodeHttpHandler,
61
- SENSITIVE_STRING,
62
- ServiceException,
63
- _json,
64
- createAggregatedClient,
65
- decorateServiceException,
66
- emitWarningIfUnsupportedVersion,
67
- expectInt32,
68
- expectNonNull,
69
- expectObject,
70
- expectString,
71
73
  fromBase64,
72
- fromUtf8,
73
- getDefaultExtensionConfiguration,
74
- getHttpHandlerExtensionConfiguration,
75
- loadConfigsForDefaultMode,
76
- map,
77
- requestBuilder,
78
- resolveDefaultRuntimeConfig,
79
- resolveHttpHandlerRuntimeConfig,
80
74
  streamCollector,
81
- take,
82
- toBase64,
83
- toUtf8,
84
- withBaseException
85
- } from "./chunk-UT2RMOJS.js";
86
- import "./chunk-TJ744C2T.js";
87
- import "./chunk-64IS37V6.js";
88
- import "./chunk-XLUI7RQ4.js";
75
+ toBase64
76
+ } from "./chunk-OSJA4YYQ.js";
77
+ import "./chunk-NDDYFDCU.js";
78
+ import "./chunk-WDFKVCPC.js";
79
+ import "./chunk-3OYGHA4S.js";
80
+ import "./chunk-S4LJWEXU.js";
89
81
  import {
90
- init_esm_shims
91
- } from "./chunk-JBVMOFGH.js";
92
- import "./chunk-JSBRDJBE.js";
82
+ fromUtf8,
83
+ toUtf8
84
+ } from "./chunk-Z4UYYQ4J.js";
93
85
 
94
- // ../deployment-manager/dist/sso-oidc-PKO5GYK5.js
95
- init_esm_shims();
96
- init_esm_shims();
97
- init_esm_shims();
86
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
98
87
  var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
99
88
  return {
100
89
  operation: getSmithyContext(context).operation,
@@ -142,7 +131,8 @@ var resolveHttpAuthSchemeConfig = (config) => {
142
131
  authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
143
132
  });
144
133
  };
145
- init_esm_shims();
134
+
135
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
146
136
  var resolveClientEndpointParameters = (options) => {
147
137
  return Object.assign(options, {
148
138
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -156,10 +146,8 @@ var commonParams = {
156
146
  Region: { type: "builtInParams", name: "region" },
157
147
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
158
148
  };
159
- init_esm_shims();
160
- init_esm_shims();
161
- init_esm_shims();
162
- init_esm_shims();
149
+
150
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js
163
151
  var u = "required";
164
152
  var v = "fn";
165
153
  var w = "argv";
@@ -172,8 +160,8 @@ var e = "endpoint";
172
160
  var f = "tree";
173
161
  var g = "PartitionResult";
174
162
  var h = "getAttr";
175
- var i = { [u]: false, "type": "String" };
176
- var j = { [u]: true, "default": false, "type": "Boolean" };
163
+ var i = { [u]: false, "type": "string" };
164
+ var j = { [u]: true, "default": false, "type": "boolean" };
177
165
  var k = { [x]: "Endpoint" };
178
166
  var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
179
167
  var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
@@ -186,6 +174,8 @@ var s = [m];
186
174
  var t = [{ [x]: "Region" }];
187
175
  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 }] };
188
176
  var ruleSet = _data;
177
+
178
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
189
179
  var cache = new EndpointCache({
190
180
  size: 50,
191
181
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
@@ -197,6 +187,8 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
197
187
  }));
198
188
  };
199
189
  customEndpointFunctions.aws = awsEndpointFunctions;
190
+
191
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
200
192
  var getRuntimeConfig = (config) => {
201
193
  return {
202
194
  apiVersion: "2019-06-10",
@@ -219,18 +211,21 @@ var getRuntimeConfig = (config) => {
219
211
  }
220
212
  ],
221
213
  logger: config?.logger ?? new NoOpLogger(),
214
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
222
215
  serviceId: config?.serviceId ?? "SSO OIDC",
223
216
  urlParser: config?.urlParser ?? parseUrl,
224
217
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
225
218
  utf8Encoder: config?.utf8Encoder ?? toUtf8
226
219
  };
227
220
  };
221
+
222
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
228
223
  var getRuntimeConfig2 = (config) => {
229
- emitWarningIfUnsupportedVersion(process.version);
224
+ emitWarningIfUnsupportedVersion2(process.version);
230
225
  const defaultsMode = resolveDefaultsModeConfig(config);
231
226
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
232
227
  const clientSharedValues = getRuntimeConfig(config);
233
- emitWarningIfUnsupportedVersion2(process.version);
228
+ emitWarningIfUnsupportedVersion(process.version);
234
229
  const loaderConfig = {
235
230
  profile: config?.profile,
236
231
  logger: clientSharedValues.logger
@@ -257,8 +252,8 @@ var getRuntimeConfig2 = (config) => {
257
252
  userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
258
253
  };
259
254
  };
260
- init_esm_shims();
261
- init_esm_shims();
255
+
256
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
262
257
  var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
263
258
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
264
259
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -296,11 +291,15 @@ var resolveHttpAuthRuntimeConfig = (config) => {
296
291
  credentials: config.credentials()
297
292
  };
298
293
  };
294
+
295
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
299
296
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
300
297
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
301
298
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
302
299
  return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
303
300
  };
301
+
302
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
304
303
  var SSOOIDCClient = class extends Client {
305
304
  config;
306
305
  constructor(...[configuration]) {
@@ -316,6 +315,7 @@ var SSOOIDCClient = class extends Client {
316
315
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
317
316
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
318
317
  this.config = _config_8;
318
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
319
319
  this.middlewareStack.use(getUserAgentPlugin(this.config));
320
320
  this.middlewareStack.use(getRetryPlugin(this.config));
321
321
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -334,20 +334,21 @@ var SSOOIDCClient = class extends Client {
334
334
  super.destroy();
335
335
  }
336
336
  };
337
- init_esm_shims();
338
- init_esm_shims();
339
- init_esm_shims();
340
- init_esm_shims();
337
+
338
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
341
339
  var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
342
340
  constructor(options) {
343
341
  super(options);
344
342
  Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
345
343
  }
346
344
  };
345
+
346
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js
347
347
  var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
348
348
  name = "AccessDeniedException";
349
349
  $fault = "client";
350
350
  error;
351
+ reason;
351
352
  error_description;
352
353
  constructor(opts) {
353
354
  super({
@@ -357,6 +358,7 @@ var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceE
357
358
  });
358
359
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
359
360
  this.error = opts.error;
361
+ this.reason = opts.reason;
360
362
  this.error_description = opts.error_description;
361
363
  }
362
364
  };
@@ -376,18 +378,6 @@ var AuthorizationPendingException = class _AuthorizationPendingException extends
376
378
  this.error_description = opts.error_description;
377
379
  }
378
380
  };
379
- var CreateTokenRequestFilterSensitiveLog = (obj) => ({
380
- ...obj,
381
- ...obj.clientSecret && { clientSecret: SENSITIVE_STRING },
382
- ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
383
- ...obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }
384
- });
385
- var CreateTokenResponseFilterSensitiveLog = (obj) => ({
386
- ...obj,
387
- ...obj.accessToken && { accessToken: SENSITIVE_STRING },
388
- ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
389
- ...obj.idToken && { idToken: SENSITIVE_STRING }
390
- });
391
381
  var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
392
382
  name = "ExpiredTokenException";
393
383
  $fault = "client";
@@ -456,6 +446,7 @@ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServ
456
446
  name = "InvalidRequestException";
457
447
  $fault = "client";
458
448
  error;
449
+ reason;
459
450
  error_description;
460
451
  constructor(opts) {
461
452
  super({
@@ -465,6 +456,7 @@ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServ
465
456
  });
466
457
  Object.setPrototypeOf(this, _InvalidRequestException.prototype);
467
458
  this.error = opts.error;
459
+ this.reason = opts.reason;
468
460
  this.error_description = opts.error_description;
469
461
  }
470
462
  };
@@ -532,283 +524,252 @@ var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends
532
524
  this.error_description = opts.error_description;
533
525
  }
534
526
  };
535
- init_esm_shims();
536
- var se_CreateTokenCommand = async (input, context) => {
537
- const b2 = requestBuilder(input, context);
538
- const headers = {
539
- "content-type": "application/json"
540
- };
541
- b2.bp("/token");
542
- let body;
543
- body = JSON.stringify(take(input, {
544
- clientId: [],
545
- clientSecret: [],
546
- code: [],
547
- codeVerifier: [],
548
- deviceCode: [],
549
- grantType: [],
550
- redirectUri: [],
551
- refreshToken: [],
552
- scope: (_) => _json(_)
553
- }));
554
- b2.m("POST").h(headers).b(body);
555
- return b2.build();
556
- };
557
- var de_CreateTokenCommand = async (output, context) => {
558
- if (output.statusCode !== 200 && output.statusCode >= 300) {
559
- return de_CommandError(output, context);
560
- }
561
- const contents = map({
562
- $metadata: deserializeMetadata(output)
563
- });
564
- const data = expectNonNull(expectObject(await parseJsonBody(output.body, context)), "body");
565
- const doc = take(data, {
566
- accessToken: expectString,
567
- expiresIn: expectInt32,
568
- idToken: expectString,
569
- refreshToken: expectString,
570
- tokenType: expectString
571
- });
572
- Object.assign(contents, doc);
573
- return contents;
574
- };
575
- var de_CommandError = async (output, context) => {
576
- const parsedOutput = {
577
- ...output,
578
- body: await parseJsonErrorBody(output.body, context)
579
- };
580
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
581
- switch (errorCode) {
582
- case "AccessDeniedException":
583
- case "com.amazonaws.ssooidc#AccessDeniedException":
584
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
585
- case "AuthorizationPendingException":
586
- case "com.amazonaws.ssooidc#AuthorizationPendingException":
587
- throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
588
- case "ExpiredTokenException":
589
- case "com.amazonaws.ssooidc#ExpiredTokenException":
590
- throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
591
- case "InternalServerException":
592
- case "com.amazonaws.ssooidc#InternalServerException":
593
- throw await de_InternalServerExceptionRes(parsedOutput, context);
594
- case "InvalidClientException":
595
- case "com.amazonaws.ssooidc#InvalidClientException":
596
- throw await de_InvalidClientExceptionRes(parsedOutput, context);
597
- case "InvalidGrantException":
598
- case "com.amazonaws.ssooidc#InvalidGrantException":
599
- throw await de_InvalidGrantExceptionRes(parsedOutput, context);
600
- case "InvalidRequestException":
601
- case "com.amazonaws.ssooidc#InvalidRequestException":
602
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
603
- case "InvalidScopeException":
604
- case "com.amazonaws.ssooidc#InvalidScopeException":
605
- throw await de_InvalidScopeExceptionRes(parsedOutput, context);
606
- case "SlowDownException":
607
- case "com.amazonaws.ssooidc#SlowDownException":
608
- throw await de_SlowDownExceptionRes(parsedOutput, context);
609
- case "UnauthorizedClientException":
610
- case "com.amazonaws.ssooidc#UnauthorizedClientException":
611
- throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
612
- case "UnsupportedGrantTypeException":
613
- case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
614
- throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
615
- default:
616
- const parsedBody = parsedOutput.body;
617
- return throwDefaultError({
618
- output,
619
- parsedBody,
620
- errorCode
621
- });
622
- }
623
- };
624
- var throwDefaultError = withBaseException(SSOOIDCServiceException);
625
- var de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
626
- const contents = map({});
627
- const data = parsedOutput.body;
628
- const doc = take(data, {
629
- error: expectString,
630
- error_description: expectString
631
- });
632
- Object.assign(contents, doc);
633
- const exception = new AccessDeniedException({
634
- $metadata: deserializeMetadata(parsedOutput),
635
- ...contents
636
- });
637
- return decorateServiceException(exception, parsedOutput.body);
638
- };
639
- var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
640
- const contents = map({});
641
- const data = parsedOutput.body;
642
- const doc = take(data, {
643
- error: expectString,
644
- error_description: expectString
645
- });
646
- Object.assign(contents, doc);
647
- const exception = new AuthorizationPendingException({
648
- $metadata: deserializeMetadata(parsedOutput),
649
- ...contents
650
- });
651
- return decorateServiceException(exception, parsedOutput.body);
652
- };
653
- var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
654
- const contents = map({});
655
- const data = parsedOutput.body;
656
- const doc = take(data, {
657
- error: expectString,
658
- error_description: expectString
659
- });
660
- Object.assign(contents, doc);
661
- const exception = new ExpiredTokenException({
662
- $metadata: deserializeMetadata(parsedOutput),
663
- ...contents
664
- });
665
- return decorateServiceException(exception, parsedOutput.body);
666
- };
667
- var de_InternalServerExceptionRes = async (parsedOutput, context) => {
668
- const contents = map({});
669
- const data = parsedOutput.body;
670
- const doc = take(data, {
671
- error: expectString,
672
- error_description: expectString
673
- });
674
- Object.assign(contents, doc);
675
- const exception = new InternalServerException({
676
- $metadata: deserializeMetadata(parsedOutput),
677
- ...contents
678
- });
679
- return decorateServiceException(exception, parsedOutput.body);
680
- };
681
- var de_InvalidClientExceptionRes = async (parsedOutput, context) => {
682
- const contents = map({});
683
- const data = parsedOutput.body;
684
- const doc = take(data, {
685
- error: expectString,
686
- error_description: expectString
687
- });
688
- Object.assign(contents, doc);
689
- const exception = new InvalidClientException({
690
- $metadata: deserializeMetadata(parsedOutput),
691
- ...contents
692
- });
693
- return decorateServiceException(exception, parsedOutput.body);
694
- };
695
- var de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
696
- const contents = map({});
697
- const data = parsedOutput.body;
698
- const doc = take(data, {
699
- error: expectString,
700
- error_description: expectString
701
- });
702
- Object.assign(contents, doc);
703
- const exception = new InvalidGrantException({
704
- $metadata: deserializeMetadata(parsedOutput),
705
- ...contents
706
- });
707
- return decorateServiceException(exception, parsedOutput.body);
708
- };
709
- var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
710
- const contents = map({});
711
- const data = parsedOutput.body;
712
- const doc = take(data, {
713
- error: expectString,
714
- error_description: expectString
715
- });
716
- Object.assign(contents, doc);
717
- const exception = new InvalidRequestException({
718
- $metadata: deserializeMetadata(parsedOutput),
719
- ...contents
720
- });
721
- return decorateServiceException(exception, parsedOutput.body);
722
- };
723
- var de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
724
- const contents = map({});
725
- const data = parsedOutput.body;
726
- const doc = take(data, {
727
- error: expectString,
728
- error_description: expectString
729
- });
730
- Object.assign(contents, doc);
731
- const exception = new InvalidScopeException({
732
- $metadata: deserializeMetadata(parsedOutput),
733
- ...contents
734
- });
735
- return decorateServiceException(exception, parsedOutput.body);
736
- };
737
- var de_SlowDownExceptionRes = async (parsedOutput, context) => {
738
- const contents = map({});
739
- const data = parsedOutput.body;
740
- const doc = take(data, {
741
- error: expectString,
742
- error_description: expectString
743
- });
744
- Object.assign(contents, doc);
745
- const exception = new SlowDownException({
746
- $metadata: deserializeMetadata(parsedOutput),
747
- ...contents
748
- });
749
- return decorateServiceException(exception, parsedOutput.body);
750
- };
751
- var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
752
- const contents = map({});
753
- const data = parsedOutput.body;
754
- const doc = take(data, {
755
- error: expectString,
756
- error_description: expectString
757
- });
758
- Object.assign(contents, doc);
759
- const exception = new UnauthorizedClientException({
760
- $metadata: deserializeMetadata(parsedOutput),
761
- ...contents
762
- });
763
- return decorateServiceException(exception, parsedOutput.body);
764
- };
765
- var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
766
- const contents = map({});
767
- const data = parsedOutput.body;
768
- const doc = take(data, {
769
- error: expectString,
770
- error_description: expectString
771
- });
772
- Object.assign(contents, doc);
773
- const exception = new UnsupportedGrantTypeException({
774
- $metadata: deserializeMetadata(parsedOutput),
775
- ...contents
776
- });
777
- return decorateServiceException(exception, parsedOutput.body);
778
- };
779
- var deserializeMetadata = (output) => ({
780
- httpStatusCode: output.statusCode,
781
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
782
- extendedRequestId: output.headers["x-amz-id-2"],
783
- cfId: output.headers["x-amz-cf-id"]
784
- });
527
+
528
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
529
+ var _ADE = "AccessDeniedException";
530
+ var _APE = "AuthorizationPendingException";
531
+ var _AT = "AccessToken";
532
+ var _CS = "ClientSecret";
533
+ var _CT = "CreateToken";
534
+ var _CTR = "CreateTokenRequest";
535
+ var _CTRr = "CreateTokenResponse";
536
+ var _CV = "CodeVerifier";
537
+ var _ETE = "ExpiredTokenException";
538
+ var _ICE = "InvalidClientException";
539
+ var _IGE = "InvalidGrantException";
540
+ var _IRE = "InvalidRequestException";
541
+ var _ISE = "InternalServerException";
542
+ var _ISEn = "InvalidScopeException";
543
+ var _IT = "IdToken";
544
+ var _RT = "RefreshToken";
545
+ var _SDE = "SlowDownException";
546
+ var _UCE = "UnauthorizedClientException";
547
+ var _UGTE = "UnsupportedGrantTypeException";
548
+ var _aT = "accessToken";
549
+ var _c = "client";
550
+ var _cI = "clientId";
551
+ var _cS = "clientSecret";
552
+ var _cV = "codeVerifier";
553
+ var _co = "code";
554
+ var _dC = "deviceCode";
555
+ var _e = "error";
556
+ var _eI = "expiresIn";
557
+ var _ed = "error_description";
558
+ var _gT = "grantType";
559
+ var _h = "http";
560
+ var _hE = "httpError";
561
+ var _iT = "idToken";
562
+ var _r = "reason";
563
+ var _rT = "refreshToken";
564
+ var _rU = "redirectUri";
565
+ var _s = "scope";
566
+ var _se = "server";
567
+ var _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
568
+ var _tT = "tokenType";
569
+ var n0 = "com.amazonaws.ssooidc";
570
+ var AccessToken = [0, n0, _AT, 8, 0];
571
+ var ClientSecret = [0, n0, _CS, 8, 0];
572
+ var CodeVerifier = [0, n0, _CV, 8, 0];
573
+ var IdToken = [0, n0, _IT, 8, 0];
574
+ var RefreshToken = [0, n0, _RT, 8, 0];
575
+ var AccessDeniedException2 = [
576
+ -3,
577
+ n0,
578
+ _ADE,
579
+ {
580
+ [_e]: _c,
581
+ [_hE]: 400
582
+ },
583
+ [_e, _r, _ed],
584
+ [0, 0, 0]
585
+ ];
586
+ TypeRegistry.for(n0).registerError(AccessDeniedException2, AccessDeniedException);
587
+ var AuthorizationPendingException2 = [
588
+ -3,
589
+ n0,
590
+ _APE,
591
+ {
592
+ [_e]: _c,
593
+ [_hE]: 400
594
+ },
595
+ [_e, _ed],
596
+ [0, 0]
597
+ ];
598
+ TypeRegistry.for(n0).registerError(AuthorizationPendingException2, AuthorizationPendingException);
599
+ var CreateTokenRequest = [
600
+ 3,
601
+ n0,
602
+ _CTR,
603
+ 0,
604
+ [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
605
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]]
606
+ ];
607
+ var CreateTokenResponse = [
608
+ 3,
609
+ n0,
610
+ _CTRr,
611
+ 0,
612
+ [_aT, _tT, _eI, _rT, _iT],
613
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
614
+ ];
615
+ var ExpiredTokenException2 = [
616
+ -3,
617
+ n0,
618
+ _ETE,
619
+ {
620
+ [_e]: _c,
621
+ [_hE]: 400
622
+ },
623
+ [_e, _ed],
624
+ [0, 0]
625
+ ];
626
+ TypeRegistry.for(n0).registerError(ExpiredTokenException2, ExpiredTokenException);
627
+ var InternalServerException2 = [
628
+ -3,
629
+ n0,
630
+ _ISE,
631
+ {
632
+ [_e]: _se,
633
+ [_hE]: 500
634
+ },
635
+ [_e, _ed],
636
+ [0, 0]
637
+ ];
638
+ TypeRegistry.for(n0).registerError(InternalServerException2, InternalServerException);
639
+ var InvalidClientException2 = [
640
+ -3,
641
+ n0,
642
+ _ICE,
643
+ {
644
+ [_e]: _c,
645
+ [_hE]: 401
646
+ },
647
+ [_e, _ed],
648
+ [0, 0]
649
+ ];
650
+ TypeRegistry.for(n0).registerError(InvalidClientException2, InvalidClientException);
651
+ var InvalidGrantException2 = [
652
+ -3,
653
+ n0,
654
+ _IGE,
655
+ {
656
+ [_e]: _c,
657
+ [_hE]: 400
658
+ },
659
+ [_e, _ed],
660
+ [0, 0]
661
+ ];
662
+ TypeRegistry.for(n0).registerError(InvalidGrantException2, InvalidGrantException);
663
+ var InvalidRequestException2 = [
664
+ -3,
665
+ n0,
666
+ _IRE,
667
+ {
668
+ [_e]: _c,
669
+ [_hE]: 400
670
+ },
671
+ [_e, _r, _ed],
672
+ [0, 0, 0]
673
+ ];
674
+ TypeRegistry.for(n0).registerError(InvalidRequestException2, InvalidRequestException);
675
+ var InvalidScopeException2 = [
676
+ -3,
677
+ n0,
678
+ _ISEn,
679
+ {
680
+ [_e]: _c,
681
+ [_hE]: 400
682
+ },
683
+ [_e, _ed],
684
+ [0, 0]
685
+ ];
686
+ TypeRegistry.for(n0).registerError(InvalidScopeException2, InvalidScopeException);
687
+ var SlowDownException2 = [
688
+ -3,
689
+ n0,
690
+ _SDE,
691
+ {
692
+ [_e]: _c,
693
+ [_hE]: 400
694
+ },
695
+ [_e, _ed],
696
+ [0, 0]
697
+ ];
698
+ TypeRegistry.for(n0).registerError(SlowDownException2, SlowDownException);
699
+ var UnauthorizedClientException2 = [
700
+ -3,
701
+ n0,
702
+ _UCE,
703
+ {
704
+ [_e]: _c,
705
+ [_hE]: 400
706
+ },
707
+ [_e, _ed],
708
+ [0, 0]
709
+ ];
710
+ TypeRegistry.for(n0).registerError(UnauthorizedClientException2, UnauthorizedClientException);
711
+ var UnsupportedGrantTypeException2 = [
712
+ -3,
713
+ n0,
714
+ _UGTE,
715
+ {
716
+ [_e]: _c,
717
+ [_hE]: 400
718
+ },
719
+ [_e, _ed],
720
+ [0, 0]
721
+ ];
722
+ TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException2, UnsupportedGrantTypeException);
723
+ var SSOOIDCServiceException2 = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
724
+ TypeRegistry.for(_sm).registerError(SSOOIDCServiceException2, SSOOIDCServiceException);
725
+ var Scopes = 64 | 0;
726
+ var CreateToken = [
727
+ 9,
728
+ n0,
729
+ _CT,
730
+ {
731
+ [_h]: ["POST", "/token", 200]
732
+ },
733
+ () => CreateTokenRequest,
734
+ () => CreateTokenResponse
735
+ ];
736
+
737
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
785
738
  var CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
786
- return [
787
- getSerdePlugin(config, this.serialize, this.deserialize),
788
- getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
789
- ];
790
- }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
739
+ return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
740
+ }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken).build() {
791
741
  };
742
+
743
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
792
744
  var commands = {
793
745
  CreateTokenCommand
794
746
  };
795
747
  var SSOOIDC = class extends SSOOIDCClient {
796
748
  };
797
749
  createAggregatedClient(commands, SSOOIDC);
798
- init_esm_shims();
799
- init_esm_shims();
750
+
751
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js
752
+ var AccessDeniedExceptionReason = {
753
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
754
+ };
755
+ var InvalidRequestExceptionReason = {
756
+ KMS_DISABLED_KEY: "KMS_DisabledException",
757
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
758
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
759
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
760
+ };
800
761
  export {
801
762
  Command as $Command,
802
763
  AccessDeniedException,
764
+ AccessDeniedExceptionReason,
803
765
  AuthorizationPendingException,
804
766
  CreateTokenCommand,
805
- CreateTokenRequestFilterSensitiveLog,
806
- CreateTokenResponseFilterSensitiveLog,
807
767
  ExpiredTokenException,
808
768
  InternalServerException,
809
769
  InvalidClientException,
810
770
  InvalidGrantException,
811
771
  InvalidRequestException,
772
+ InvalidRequestExceptionReason,
812
773
  InvalidScopeException,
813
774
  SSOOIDC,
814
775
  SSOOIDCClient,