@granite-js/pulumi-aws 0.1.19 → 0.1.21

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 (58) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/chunk-5W7B34BN.js +3307 -0
  3. package/dist/chunk-64IS37V6.js +17 -0
  4. package/dist/chunk-AEOST5WF.js +63 -0
  5. package/dist/chunk-B7OAPHPY.js +46 -0
  6. package/dist/chunk-FO7L563E.js +13695 -0
  7. package/dist/chunk-FRWSD3YQ.js +1722 -0
  8. package/dist/chunk-IEZY5C3G.js +120 -0
  9. package/dist/chunk-ITI6QA2Q.js +12 -0
  10. package/dist/chunk-IUKLHJNE.js +49 -0
  11. package/dist/chunk-JBVMOFGH.js +152 -0
  12. package/dist/chunk-JSBRDJBE.js +30 -0
  13. package/dist/chunk-KGNTV362.js +209 -0
  14. package/dist/chunk-KRJS4RAS.js +1732 -0
  15. package/dist/chunk-M5GUUX64.js +63 -0
  16. package/dist/chunk-QAE2S7MG.js +3351 -0
  17. package/dist/chunk-SX6SVQKS.js +67 -0
  18. package/dist/chunk-TJ744C2T.js +198 -0
  19. package/dist/chunk-UNXXS5FM.js +120 -0
  20. package/dist/chunk-UT2RMOJS.js +2447 -0
  21. package/dist/chunk-VOTRVWIB.js +1965 -0
  22. package/dist/chunk-W3VXP3A3.js +119 -0
  23. package/dist/chunk-WCHHWTND.js +113 -0
  24. package/dist/chunk-X6XO7USX.js +110 -0
  25. package/dist/chunk-XLUI7RQ4.js +115 -0
  26. package/dist/dist-es-2M7RLZ5O.js +200 -0
  27. package/dist/dist-es-ADTONJUN-RVFWNZHO.js +67 -0
  28. package/dist/dist-es-CDFIYJVE.js +163 -0
  29. package/dist/dist-es-GHYMLBON.js +379 -0
  30. package/dist/dist-es-HJVOMDYC-PIAMWMAL.js +87 -0
  31. package/dist/dist-es-IDBDK36G-Y6TQMRO5.js +299 -0
  32. package/dist/dist-es-OCQVKISC-TNAJ62WG.js +161 -0
  33. package/dist/dist-es-OZGLUDWT.js +305 -0
  34. package/dist/dist-es-PRWCVZGQ-HTTVI42T.js +21 -0
  35. package/dist/dist-es-S75EKWRJ.js +88 -0
  36. package/dist/dist-es-SUPEA6VE-3B5JSW5C.js +368 -0
  37. package/dist/dist-es-WQHDOVD7.js +21 -0
  38. package/dist/dist-es-XQME5F6W.js +67 -0
  39. package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +196 -0
  40. package/dist/lambda/auto-cache-removal.d.cts +17 -0
  41. package/dist/lambda/auto-cache-removal.d.ts +17 -0
  42. package/dist/lambda/auto-cache-removal.js +5313 -0
  43. package/dist/lambda/origin-request.d.cts +14 -0
  44. package/dist/lambda/origin-request.d.ts +14 -0
  45. package/dist/lambda/origin-request.js +113 -0
  46. package/dist/lambda/origin-response.d.cts +6 -0
  47. package/dist/lambda/origin-response.d.ts +6 -0
  48. package/dist/lambda/origin-response.js +52 -0
  49. package/dist/loadSso-CZSSLFH6-SA5HOQAX.js +645 -0
  50. package/dist/loadSso-T7GJVVO2.js +655 -0
  51. package/dist/sso-oidc-55SJ27II.js +827 -0
  52. package/dist/sso-oidc-PKO5GYK5-LC65L46O.js +820 -0
  53. package/dist/sts-OPF4H3GL.js +1162 -0
  54. package/dist/sts-P7Q3MYTS-BKGWHQE4.js +1152 -0
  55. package/lambda/auto-cache-removal.d.ts +1 -0
  56. package/lambda/origin-request.d.ts +1 -0
  57. package/lambda/origin-response.d.ts +1 -0
  58. package/package.json +37 -10
@@ -0,0 +1,827 @@
1
+ import {
2
+ loadRestJsonErrorCode,
3
+ parseJsonBody,
4
+ parseJsonErrorBody
5
+ } from "./chunk-AEOST5WF.js";
6
+ import {
7
+ package_default
8
+ } from "./chunk-UNXXS5FM.js";
9
+ import {
10
+ AwsSdkSigV4Signer,
11
+ DEFAULT_RETRY_MODE,
12
+ DefaultIdentityProviderConfig,
13
+ EndpointCache,
14
+ Hash,
15
+ NODE_APP_ID_CONFIG_OPTIONS,
16
+ NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
17
+ NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
18
+ NODE_REGION_CONFIG_FILE_OPTIONS,
19
+ NODE_REGION_CONFIG_OPTIONS,
20
+ NODE_RETRY_MODE_CONFIG_OPTIONS,
21
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
22
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
23
+ NoAuthSigner,
24
+ awsEndpointFunctions,
25
+ calculateBodyLength,
26
+ createDefaultUserAgentProvider,
27
+ customEndpointFunctions,
28
+ emitWarningIfUnsupportedVersion,
29
+ getAwsRegionExtensionConfiguration,
30
+ getContentLengthPlugin,
31
+ getEndpointPlugin,
32
+ getHostHeaderPlugin,
33
+ getHttpAuthSchemeEndpointRuleSetPlugin,
34
+ getHttpSigningPlugin,
35
+ getLoggerPlugin,
36
+ getRecursionDetectionPlugin,
37
+ getRetryPlugin,
38
+ getSerdePlugin,
39
+ getSmithyContext,
40
+ getUserAgentPlugin,
41
+ normalizeProvider,
42
+ resolveAwsRegionExtensionConfiguration,
43
+ resolveAwsSdkSigV4Config,
44
+ resolveDefaultsModeConfig,
45
+ resolveEndpoint,
46
+ resolveEndpointConfig,
47
+ resolveHostHeaderConfig,
48
+ resolveRegionConfig,
49
+ resolveRetryConfig,
50
+ resolveUserAgentConfig
51
+ } from "./chunk-5W7B34BN.js";
52
+ import {
53
+ loadConfig,
54
+ parseUrl
55
+ } from "./chunk-WCHHWTND.js";
56
+ import "./chunk-KGNTV362.js";
57
+ import {
58
+ Client,
59
+ Command,
60
+ NoOpLogger,
61
+ 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
+ fromBase64,
73
+ fromUtf8,
74
+ getDefaultExtensionConfiguration,
75
+ getHttpHandlerExtensionConfiguration,
76
+ loadConfigsForDefaultMode,
77
+ map,
78
+ requestBuilder,
79
+ resolveDefaultRuntimeConfig,
80
+ resolveHttpHandlerRuntimeConfig,
81
+ 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";
91
+
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
93
+ var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
94
+ return {
95
+ operation: getSmithyContext(context).operation,
96
+ region: await normalizeProvider(config.region)() || (() => {
97
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
98
+ })()
99
+ };
100
+ };
101
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
102
+ return {
103
+ schemeId: "aws.auth#sigv4",
104
+ signingProperties: {
105
+ name: "sso-oauth",
106
+ region: authParameters.region
107
+ },
108
+ propertiesExtractor: (config, context) => ({
109
+ signingProperties: {
110
+ config,
111
+ context
112
+ }
113
+ })
114
+ };
115
+ }
116
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
117
+ return {
118
+ schemeId: "smithy.api#noAuth"
119
+ };
120
+ }
121
+ var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
122
+ const options = [];
123
+ switch (authParameters.operation) {
124
+ case "CreateToken": {
125
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
126
+ break;
127
+ }
128
+ default: {
129
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
130
+ }
131
+ }
132
+ return options;
133
+ };
134
+ var resolveHttpAuthSchemeConfig = (config) => {
135
+ const config_0 = resolveAwsSdkSigV4Config(config);
136
+ return Object.assign(config_0, {
137
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
138
+ });
139
+ };
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
+ var resolveClientEndpointParameters = (options) => {
143
+ return Object.assign(options, {
144
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
145
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
146
+ defaultSigningName: "sso-oauth"
147
+ });
148
+ };
149
+ var commonParams = {
150
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
151
+ Endpoint: { type: "builtInParams", name: "endpoint" },
152
+ Region: { type: "builtInParams", name: "region" },
153
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
154
+ };
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
+ var u = "required";
158
+ var v = "fn";
159
+ var w = "argv";
160
+ var x = "ref";
161
+ var a = true;
162
+ var b = "isSet";
163
+ var c = "booleanEquals";
164
+ var d = "error";
165
+ var e = "endpoint";
166
+ var f = "tree";
167
+ var g = "PartitionResult";
168
+ var h = "getAttr";
169
+ var i = { [u]: false, "type": "String" };
170
+ var j = { [u]: true, "default": false, "type": "Boolean" };
171
+ var k = { [x]: "Endpoint" };
172
+ var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
173
+ var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
174
+ var n = {};
175
+ var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
176
+ var p = { [x]: g };
177
+ var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
178
+ var r = [l];
179
+ var s = [m];
180
+ var t = [{ [x]: "Region" }];
181
+ 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
+ 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
+ var cache = new EndpointCache({
186
+ size: 50,
187
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
188
+ });
189
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
190
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
191
+ endpointParams,
192
+ logger: context.logger
193
+ }));
194
+ };
195
+ 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
+ var getRuntimeConfig = (config) => {
199
+ return {
200
+ apiVersion: "2019-06-10",
201
+ base64Decoder: config?.base64Decoder ?? fromBase64,
202
+ base64Encoder: config?.base64Encoder ?? toBase64,
203
+ disableHostPrefix: config?.disableHostPrefix ?? false,
204
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
205
+ extensions: config?.extensions ?? [],
206
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
207
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
208
+ {
209
+ schemeId: "aws.auth#sigv4",
210
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
211
+ signer: new AwsSdkSigV4Signer()
212
+ },
213
+ {
214
+ schemeId: "smithy.api#noAuth",
215
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
216
+ signer: new NoAuthSigner()
217
+ }
218
+ ],
219
+ logger: config?.logger ?? new NoOpLogger(),
220
+ serviceId: config?.serviceId ?? "SSO OIDC",
221
+ urlParser: config?.urlParser ?? parseUrl,
222
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
223
+ utf8Encoder: config?.utf8Encoder ?? toUtf8
224
+ };
225
+ };
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
+ var getRuntimeConfig2 = (config) => {
229
+ emitWarningIfUnsupportedVersion2(process.version);
230
+ const defaultsMode = resolveDefaultsModeConfig(config);
231
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
232
+ const clientSharedValues = getRuntimeConfig(config);
233
+ emitWarningIfUnsupportedVersion(process.version);
234
+ const loaderConfig = {
235
+ profile: config?.profile,
236
+ logger: clientSharedValues.logger
237
+ };
238
+ return {
239
+ ...clientSharedValues,
240
+ ...config,
241
+ runtime: "node",
242
+ defaultsMode,
243
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
244
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
245
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
246
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
247
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
248
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
249
+ retryMode: config?.retryMode ?? loadConfig({
250
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
251
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
252
+ }, config),
253
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
254
+ streamCollector: config?.streamCollector ?? streamCollector,
255
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
256
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
257
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
258
+ };
259
+ };
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
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
263
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
264
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
265
+ let _credentials = runtimeConfig.credentials;
266
+ return {
267
+ setHttpAuthScheme(httpAuthScheme) {
268
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
269
+ if (index === -1) {
270
+ _httpAuthSchemes.push(httpAuthScheme);
271
+ } else {
272
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
273
+ }
274
+ },
275
+ httpAuthSchemes() {
276
+ return _httpAuthSchemes;
277
+ },
278
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
279
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
280
+ },
281
+ httpAuthSchemeProvider() {
282
+ return _httpAuthSchemeProvider;
283
+ },
284
+ setCredentials(credentials) {
285
+ _credentials = credentials;
286
+ },
287
+ credentials() {
288
+ return _credentials;
289
+ }
290
+ };
291
+ };
292
+ var resolveHttpAuthRuntimeConfig = (config) => {
293
+ return {
294
+ httpAuthSchemes: config.httpAuthSchemes(),
295
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
296
+ credentials: config.credentials()
297
+ };
298
+ };
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
+ var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
302
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
303
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
304
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
305
+ };
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
+ var SSOOIDCClient = class extends Client {
309
+ config;
310
+ constructor(...[configuration]) {
311
+ const _config_0 = getRuntimeConfig2(configuration || {});
312
+ super(_config_0);
313
+ this.initConfig = _config_0;
314
+ const _config_1 = resolveClientEndpointParameters(_config_0);
315
+ const _config_2 = resolveUserAgentConfig(_config_1);
316
+ const _config_3 = resolveRetryConfig(_config_2);
317
+ const _config_4 = resolveRegionConfig(_config_3);
318
+ const _config_5 = resolveHostHeaderConfig(_config_4);
319
+ const _config_6 = resolveEndpointConfig(_config_5);
320
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
321
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
322
+ this.config = _config_8;
323
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
324
+ this.middlewareStack.use(getRetryPlugin(this.config));
325
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
326
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
327
+ this.middlewareStack.use(getLoggerPlugin(this.config));
328
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
329
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
330
+ httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
331
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
332
+ "aws.auth#sigv4": config.credentials
333
+ })
334
+ }));
335
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
336
+ }
337
+ destroy() {
338
+ super.destroy();
339
+ }
340
+ };
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
+ var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
344
+ constructor(options) {
345
+ super(options);
346
+ Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
347
+ }
348
+ };
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
+ var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
352
+ name = "AccessDeniedException";
353
+ $fault = "client";
354
+ error;
355
+ error_description;
356
+ constructor(opts) {
357
+ super({
358
+ name: "AccessDeniedException",
359
+ $fault: "client",
360
+ ...opts
361
+ });
362
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
363
+ this.error = opts.error;
364
+ this.error_description = opts.error_description;
365
+ }
366
+ };
367
+ var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
368
+ name = "AuthorizationPendingException";
369
+ $fault = "client";
370
+ error;
371
+ error_description;
372
+ constructor(opts) {
373
+ super({
374
+ name: "AuthorizationPendingException",
375
+ $fault: "client",
376
+ ...opts
377
+ });
378
+ Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
379
+ this.error = opts.error;
380
+ this.error_description = opts.error_description;
381
+ }
382
+ };
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
+ var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
396
+ name = "ExpiredTokenException";
397
+ $fault = "client";
398
+ error;
399
+ error_description;
400
+ constructor(opts) {
401
+ super({
402
+ name: "ExpiredTokenException",
403
+ $fault: "client",
404
+ ...opts
405
+ });
406
+ Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
407
+ this.error = opts.error;
408
+ this.error_description = opts.error_description;
409
+ }
410
+ };
411
+ var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
412
+ name = "InternalServerException";
413
+ $fault = "server";
414
+ error;
415
+ error_description;
416
+ constructor(opts) {
417
+ super({
418
+ name: "InternalServerException",
419
+ $fault: "server",
420
+ ...opts
421
+ });
422
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
423
+ this.error = opts.error;
424
+ this.error_description = opts.error_description;
425
+ }
426
+ };
427
+ var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
428
+ name = "InvalidClientException";
429
+ $fault = "client";
430
+ error;
431
+ error_description;
432
+ constructor(opts) {
433
+ super({
434
+ name: "InvalidClientException",
435
+ $fault: "client",
436
+ ...opts
437
+ });
438
+ Object.setPrototypeOf(this, _InvalidClientException.prototype);
439
+ this.error = opts.error;
440
+ this.error_description = opts.error_description;
441
+ }
442
+ };
443
+ var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
444
+ name = "InvalidGrantException";
445
+ $fault = "client";
446
+ error;
447
+ error_description;
448
+ constructor(opts) {
449
+ super({
450
+ name: "InvalidGrantException",
451
+ $fault: "client",
452
+ ...opts
453
+ });
454
+ Object.setPrototypeOf(this, _InvalidGrantException.prototype);
455
+ this.error = opts.error;
456
+ this.error_description = opts.error_description;
457
+ }
458
+ };
459
+ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
460
+ name = "InvalidRequestException";
461
+ $fault = "client";
462
+ error;
463
+ error_description;
464
+ constructor(opts) {
465
+ super({
466
+ name: "InvalidRequestException",
467
+ $fault: "client",
468
+ ...opts
469
+ });
470
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
471
+ this.error = opts.error;
472
+ this.error_description = opts.error_description;
473
+ }
474
+ };
475
+ var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
476
+ name = "InvalidScopeException";
477
+ $fault = "client";
478
+ error;
479
+ error_description;
480
+ constructor(opts) {
481
+ super({
482
+ name: "InvalidScopeException",
483
+ $fault: "client",
484
+ ...opts
485
+ });
486
+ Object.setPrototypeOf(this, _InvalidScopeException.prototype);
487
+ this.error = opts.error;
488
+ this.error_description = opts.error_description;
489
+ }
490
+ };
491
+ var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
492
+ name = "SlowDownException";
493
+ $fault = "client";
494
+ error;
495
+ error_description;
496
+ constructor(opts) {
497
+ super({
498
+ name: "SlowDownException",
499
+ $fault: "client",
500
+ ...opts
501
+ });
502
+ Object.setPrototypeOf(this, _SlowDownException.prototype);
503
+ this.error = opts.error;
504
+ this.error_description = opts.error_description;
505
+ }
506
+ };
507
+ var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
508
+ name = "UnauthorizedClientException";
509
+ $fault = "client";
510
+ error;
511
+ error_description;
512
+ constructor(opts) {
513
+ super({
514
+ name: "UnauthorizedClientException",
515
+ $fault: "client",
516
+ ...opts
517
+ });
518
+ Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
519
+ this.error = opts.error;
520
+ this.error_description = opts.error_description;
521
+ }
522
+ };
523
+ var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
524
+ name = "UnsupportedGrantTypeException";
525
+ $fault = "client";
526
+ error;
527
+ error_description;
528
+ constructor(opts) {
529
+ super({
530
+ name: "UnsupportedGrantTypeException",
531
+ $fault: "client",
532
+ ...opts
533
+ });
534
+ Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
535
+ this.error = opts.error;
536
+ this.error_description = opts.error_description;
537
+ }
538
+ };
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
792
+ 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() {
798
+ };
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
+ var commands = {
802
+ CreateTokenCommand
803
+ };
804
+ var SSOOIDC = class extends SSOOIDCClient {
805
+ };
806
+ createAggregatedClient(commands, SSOOIDC);
807
+ export {
808
+ Command as $Command,
809
+ AccessDeniedException,
810
+ AuthorizationPendingException,
811
+ CreateTokenCommand,
812
+ CreateTokenRequestFilterSensitiveLog,
813
+ CreateTokenResponseFilterSensitiveLog,
814
+ ExpiredTokenException,
815
+ InternalServerException,
816
+ InvalidClientException,
817
+ InvalidGrantException,
818
+ InvalidRequestException,
819
+ InvalidScopeException,
820
+ SSOOIDC,
821
+ SSOOIDCClient,
822
+ SSOOIDCServiceException,
823
+ SlowDownException,
824
+ UnauthorizedClientException,
825
+ UnsupportedGrantTypeException,
826
+ Client as __Client
827
+ };