@aws/cloudformation-languageserver 0.0.0 → 1.15.0

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 (70) hide show
  1. package/LICENSE +175 -0
  2. package/NOTICE +10 -0
  3. package/README.md +71 -3
  4. package/THIRD-PARTY-LICENSES.txt +16160 -0
  5. package/assets/featureFlag/alpha.json +57 -0
  6. package/assets/featureFlag/beta.json +56 -0
  7. package/assets/featureFlag/prod.json +56 -0
  8. package/assets/relationship_schemas.json +16282 -0
  9. package/assets/release-manifest.json +701 -0
  10. package/assets/wheels/annotated_types-0.7.0-py3-none-any.whl +0 -0
  11. package/assets/wheels/attrs-26.1.0-py3-none-any.whl +0 -0
  12. package/assets/wheels/aws_sam_translator-1.109.0-py3-none-any.whl +0 -0
  13. package/assets/wheels/boto3-1.43.4-py3-none-any.whl +0 -0
  14. package/assets/wheels/botocore-1.43.4-py3-none-any.whl +0 -0
  15. package/assets/wheels/cfn_lint-1.57.0-py3-none-any.whl +0 -0
  16. package/assets/wheels/jmespath-1.1.0-py3-none-any.whl +0 -0
  17. package/assets/wheels/jsonpatch-1.33-py2.py3-none-any.whl +0 -0
  18. package/assets/wheels/jsonpointer-3.1.1-py3-none-any.whl +0 -0
  19. package/assets/wheels/jsonschema-4.26.0-py3-none-any.whl +0 -0
  20. package/assets/wheels/jsonschema_specifications-2025.9.1-py3-none-any.whl +0 -0
  21. package/assets/wheels/micropip-0.10.1-py3-none-any.whl +0 -0
  22. package/assets/wheels/mpmath-1.4.1-py3-none-any.whl +0 -0
  23. package/assets/wheels/networkx-3.6.1-py3-none-any.whl +0 -0
  24. package/assets/wheels/pydantic-2.10.6-py3-none-any.whl +0 -0
  25. package/assets/wheels/pydantic_core-2.27.2-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  26. package/assets/wheels/python_dateutil-2.9.0.post0-py2.py3-none-any.whl +0 -0
  27. package/assets/wheels/pyyaml-6.0.2-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  28. package/assets/wheels/referencing-0.37.0-py3-none-any.whl +0 -0
  29. package/assets/wheels/regex-2024.11.6-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  30. package/assets/wheels/rpds_py-0.23.1-cp313-cp313-pyodide_2025_0_wasm32.whl +0 -0
  31. package/assets/wheels/s3transfer-0.17.0-py3-none-any.whl +0 -0
  32. package/assets/wheels/six-1.17.0-py2.py3-none-any.whl +0 -0
  33. package/assets/wheels/sympy-1.14.0-py3-none-any.whl +0 -0
  34. package/assets/wheels/typing_extensions-4.15.0-py3-none-any.whl +0 -0
  35. package/assets/wheels/urllib3-2.7.0-py3-none-any.whl +0 -0
  36. package/cfn-lsp-server-standalone.js +44504 -0
  37. package/cfn-lsp-server-standalone.js.map +1 -0
  38. package/cfn-validate-worker.js +83 -0
  39. package/cfn-validate-worker.js.map +1 -0
  40. package/node_modules_aws-sdk_credential-provider-http_dist-es_index_js.js +225 -0
  41. package/node_modules_aws-sdk_credential-provider-http_dist-es_index_js.js.map +1 -0
  42. package/node_modules_aws-sdk_credential-provider-ini_dist-es_index_js.js +280 -0
  43. package/node_modules_aws-sdk_credential-provider-ini_dist-es_index_js.js.map +1 -0
  44. package/node_modules_aws-sdk_credential-provider-login_dist-es_index_js.js +329 -0
  45. package/node_modules_aws-sdk_credential-provider-login_dist-es_index_js.js.map +1 -0
  46. package/node_modules_aws-sdk_credential-provider-process_dist-es_index_js.js +111 -0
  47. package/node_modules_aws-sdk_credential-provider-process_dist-es_index_js.js.map +1 -0
  48. package/node_modules_aws-sdk_credential-provider-sso_dist-es_index_js.js +442 -0
  49. package/node_modules_aws-sdk_credential-provider-sso_dist-es_index_js.js.map +1 -0
  50. package/node_modules_aws-sdk_credential-provider-web-identity_dist-es_index_js.js +90 -0
  51. package/node_modules_aws-sdk_credential-provider-web-identity_dist-es_index_js.js.map +1 -0
  52. package/node_modules_smithy_credential-provider-imds_dist-es_index_js.js +437 -0
  53. package/node_modules_smithy_credential-provider-imds_dist-es_index_js.js.map +1 -0
  54. package/package.json +74 -7
  55. package/pyodide-worker.js +1216 -0
  56. package/pyodide-worker.js.map +1 -0
  57. package/vendors-node_modules_aws-sdk_client-cloudcontrol_dist-es_index_js-node_modules_aws-sdk_client-4d5eee.js +149900 -0
  58. package/vendors-node_modules_aws-sdk_client-cloudcontrol_dist-es_index_js-node_modules_aws-sdk_client-4d5eee.js.map +1 -0
  59. package/vendors-node_modules_aws-sdk_credential-provider-sso_dist-es_loadSso_js.js +583 -0
  60. package/vendors-node_modules_aws-sdk_credential-provider-sso_dist-es_loadSso_js.js.map +1 -0
  61. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_signin_index_js.js +710 -0
  62. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_signin_index_js.js.map +1 -0
  63. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_js.js +782 -0
  64. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_js.js.map +1 -0
  65. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sts_index_js.js +999 -0
  66. package/vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sts_index_js.js.map +1 -0
  67. package/vendors-node_modules_base2_pretty-print-object_dist_index_js-node_modules_vscode-jsonrpc_node-9a0a8d.js +8429 -0
  68. package/vendors-node_modules_base2_pretty-print-object_dist_index_js-node_modules_vscode-jsonrpc_node-9a0a8d.js.map +1 -0
  69. package/vendors-node_modules_bowser_bowser_mjs.js +2244 -0
  70. package/vendors-node_modules_bowser_bowser_mjs.js.map +1 -0
@@ -0,0 +1,782 @@
1
+ "use strict";
2
+ exports.id = "vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_js";
3
+ exports.ids = ["vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_js"];
4
+ exports.modules = {
5
+
6
+ /***/ "./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js"
7
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __webpack_require__.d(__webpack_exports__, {
12
+ CreateTokenCommand: () => (/* reexport */ CreateTokenCommand),
13
+ SSOOIDCClient: () => (/* reexport */ SSOOIDCClient)
14
+ });
15
+
16
+ // UNUSED EXPORTS: $Command, AccessDeniedException, AccessDeniedException$, AccessDeniedExceptionReason, AuthorizationPendingException, AuthorizationPendingException$, CreateToken$, CreateTokenRequest$, CreateTokenResponse$, ExpiredTokenException, ExpiredTokenException$, InternalServerException, InternalServerException$, InvalidClientException, InvalidClientException$, InvalidGrantException, InvalidGrantException$, InvalidRequestException, InvalidRequestException$, InvalidRequestExceptionReason, InvalidScopeException, InvalidScopeException$, SSOOIDC, SSOOIDCServiceException, SSOOIDCServiceException$, SlowDownException, SlowDownException$, UnauthorizedClientException, UnauthorizedClientException$, UnsupportedGrantTypeException, UnsupportedGrantTypeException$, __Client, errorTypeRegistries
17
+
18
+ // EXTERNAL MODULE: ./node_modules/@aws-sdk/core/dist-es/submodules/client/index.js + 36 modules
19
+ var client = __webpack_require__("./node_modules/@aws-sdk/core/dist-es/submodules/client/index.js");
20
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/index.js + 18 modules
21
+ var dist_es = __webpack_require__("./node_modules/@smithy/core/dist-es/index.js");
22
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/client/index.js + 29 modules
23
+ var submodules_client = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/client/index.js");
24
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/config/index.js + 49 modules
25
+ var submodules_config = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/config/index.js");
26
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/endpoints/index.js + 50 modules
27
+ var endpoints = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/endpoints/index.js");
28
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/protocols/index.js + 37 modules
29
+ var protocols = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/protocols/index.js");
30
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/retry/index.js + 23 modules
31
+ var retry = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/retry/index.js");
32
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/schema/index.js + 16 modules
33
+ var schema = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/schema/index.js");
34
+ // EXTERNAL MODULE: ./node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js + 15 modules
35
+ var httpAuthSchemes = __webpack_require__("./node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js");
36
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
37
+
38
+
39
+ const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
40
+ return {
41
+ operation: (0,submodules_client/* getSmithyContext */.ug)(context).operation,
42
+ region: await (0,submodules_client/* normalizeProvider */.te)(config.region)() || (() => {
43
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
44
+ })(),
45
+ };
46
+ };
47
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
48
+ return {
49
+ schemeId: "aws.auth#sigv4",
50
+ signingProperties: {
51
+ name: "sso-oauth",
52
+ region: authParameters.region,
53
+ },
54
+ propertiesExtractor: (config, context) => ({
55
+ signingProperties: {
56
+ config,
57
+ context,
58
+ },
59
+ }),
60
+ };
61
+ }
62
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
63
+ return {
64
+ schemeId: "smithy.api#noAuth",
65
+ };
66
+ }
67
+ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
68
+ const options = [];
69
+ switch (authParameters.operation) {
70
+ case "CreateToken":
71
+ {
72
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
73
+ break;
74
+ }
75
+ ;
76
+ default: {
77
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
78
+ }
79
+ }
80
+ return options;
81
+ };
82
+ const resolveHttpAuthSchemeConfig = (config) => {
83
+ const config_0 = (0,httpAuthSchemes/* resolveAwsSdkSigV4Config */.ho)(config);
84
+ return Object.assign(config_0, {
85
+ authSchemePreference: (0,submodules_client/* normalizeProvider */.te)(config.authSchemePreference ?? []),
86
+ });
87
+ };
88
+
89
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
90
+ const resolveClientEndpointParameters = (options) => {
91
+ return Object.assign(options, {
92
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
93
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
94
+ defaultSigningName: "sso-oauth",
95
+ });
96
+ };
97
+ const commonParams = {
98
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
99
+ Endpoint: { type: "builtInParams", name: "endpoint" },
100
+ Region: { type: "builtInParams", name: "region" },
101
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
102
+ };
103
+
104
+ // EXTERNAL MODULE: ./node_modules/@aws-sdk/nested-clients/package.json
105
+ var nested_clients_package = __webpack_require__("./node_modules/@aws-sdk/nested-clients/package.json");
106
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/serde/index.js + 48 modules
107
+ var serde = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/serde/index.js");
108
+ // EXTERNAL MODULE: ./node_modules/@smithy/node-http-handler/dist-es/index.js + 17 modules
109
+ var node_http_handler_dist_es = __webpack_require__("./node_modules/@smithy/node-http-handler/dist-es/index.js");
110
+ // EXTERNAL MODULE: ./node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js + 39 modules
111
+ var submodules_protocols = __webpack_require__("./node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js");
112
+ // EXTERNAL MODULE: ./node_modules/@smithy/core/dist-es/submodules/checksum/index.js + 12 modules
113
+ var checksum = __webpack_require__("./node_modules/@smithy/core/dist-es/submodules/checksum/index.js");
114
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js
115
+
116
+ const k = "ref";
117
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
118
+ const _data = {
119
+ conditions: [
120
+ [c, [g]],
121
+ [c, j],
122
+ ["aws.partition", j, d],
123
+ [e, [{ [k]: "UseFIPS" }, b]],
124
+ [e, [{ [k]: "UseDualStack" }, b]],
125
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
126
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
127
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
128
+ ],
129
+ results: [
130
+ [a],
131
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
132
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
133
+ [g, i],
134
+ ["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
135
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
136
+ ["https://oidc.{Region}.amazonaws.com", i],
137
+ ["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
138
+ [a, "FIPS is enabled but this partition does not support FIPS"],
139
+ ["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
140
+ [a, "DualStack is enabled but this partition does not support DualStack"],
141
+ ["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
142
+ [a, "Invalid Configuration: Missing Region"]
143
+ ]
144
+ };
145
+ const root = 2;
146
+ const r = 100_000_000;
147
+ const nodes = new Int32Array([
148
+ -1, 1, -1,
149
+ 0, 13, 3,
150
+ 1, 4, r + 12,
151
+ 2, 5, r + 12,
152
+ 3, 8, 6,
153
+ 4, 7, r + 11,
154
+ 5, r + 9, r + 10,
155
+ 4, 11, 9,
156
+ 6, 10, r + 8,
157
+ 7, r + 6, r + 7,
158
+ 5, 12, r + 5,
159
+ 6, r + 4, r + 5,
160
+ 3, r + 1, 14,
161
+ 4, r + 2, r + 3,
162
+ ]);
163
+ const bdd = endpoints/* BinaryDecisionDiagram */.d5.from(nodes, root, _data.conditions, _data.results);
164
+
165
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
166
+
167
+
168
+
169
+ const cache = new endpoints/* EndpointCache */.kS({
170
+ size: 50,
171
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
172
+ });
173
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
174
+ return cache.get(endpointParams, () => (0,endpoints/* decideEndpoint */.cH)(bdd, {
175
+ endpointParams: endpointParams,
176
+ logger: context.logger,
177
+ }));
178
+ };
179
+ endpoints/* customEndpointFunctions */.mw.aws = client/* awsEndpointFunctions */.UF;
180
+
181
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
182
+
183
+
184
+ class SSOOIDCServiceException extends submodules_client/* ServiceException */.TJ {
185
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";
186
+ constructor(options) {
187
+ super(options);
188
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
189
+ }
190
+ }
191
+
192
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js
193
+
194
+ class AccessDeniedException extends SSOOIDCServiceException {
195
+ static shapeId = "com.amazonaws.ssooidc#AccessDeniedException";
196
+ name = "AccessDeniedException";
197
+ $fault = "client";
198
+ error;
199
+ reason;
200
+ error_description;
201
+ constructor(opts) {
202
+ super({
203
+ name: "AccessDeniedException",
204
+ $fault: "client",
205
+ ...opts,
206
+ });
207
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
208
+ this.error = opts.error;
209
+ this.reason = opts.reason;
210
+ this.error_description = opts.error_description;
211
+ }
212
+ }
213
+ class AuthorizationPendingException extends SSOOIDCServiceException {
214
+ static shapeId = "com.amazonaws.ssooidc#AuthorizationPendingException";
215
+ name = "AuthorizationPendingException";
216
+ $fault = "client";
217
+ error;
218
+ error_description;
219
+ constructor(opts) {
220
+ super({
221
+ name: "AuthorizationPendingException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
226
+ this.error = opts.error;
227
+ this.error_description = opts.error_description;
228
+ }
229
+ }
230
+ class ExpiredTokenException extends SSOOIDCServiceException {
231
+ static shapeId = "com.amazonaws.ssooidc#ExpiredTokenException";
232
+ name = "ExpiredTokenException";
233
+ $fault = "client";
234
+ error;
235
+ error_description;
236
+ constructor(opts) {
237
+ super({
238
+ name: "ExpiredTokenException",
239
+ $fault: "client",
240
+ ...opts,
241
+ });
242
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
243
+ this.error = opts.error;
244
+ this.error_description = opts.error_description;
245
+ }
246
+ }
247
+ class InternalServerException extends SSOOIDCServiceException {
248
+ static shapeId = "com.amazonaws.ssooidc#InternalServerException";
249
+ name = "InternalServerException";
250
+ $fault = "server";
251
+ error;
252
+ error_description;
253
+ constructor(opts) {
254
+ super({
255
+ name: "InternalServerException",
256
+ $fault: "server",
257
+ ...opts,
258
+ });
259
+ Object.setPrototypeOf(this, InternalServerException.prototype);
260
+ this.error = opts.error;
261
+ this.error_description = opts.error_description;
262
+ }
263
+ }
264
+ class InvalidClientException extends SSOOIDCServiceException {
265
+ static shapeId = "com.amazonaws.ssooidc#InvalidClientException";
266
+ name = "InvalidClientException";
267
+ $fault = "client";
268
+ error;
269
+ error_description;
270
+ constructor(opts) {
271
+ super({
272
+ name: "InvalidClientException",
273
+ $fault: "client",
274
+ ...opts,
275
+ });
276
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
277
+ this.error = opts.error;
278
+ this.error_description = opts.error_description;
279
+ }
280
+ }
281
+ class InvalidGrantException extends SSOOIDCServiceException {
282
+ static shapeId = "com.amazonaws.ssooidc#InvalidGrantException";
283
+ name = "InvalidGrantException";
284
+ $fault = "client";
285
+ error;
286
+ error_description;
287
+ constructor(opts) {
288
+ super({
289
+ name: "InvalidGrantException",
290
+ $fault: "client",
291
+ ...opts,
292
+ });
293
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
294
+ this.error = opts.error;
295
+ this.error_description = opts.error_description;
296
+ }
297
+ }
298
+ class InvalidRequestException extends SSOOIDCServiceException {
299
+ static shapeId = "com.amazonaws.ssooidc#InvalidRequestException";
300
+ name = "InvalidRequestException";
301
+ $fault = "client";
302
+ error;
303
+ reason;
304
+ error_description;
305
+ constructor(opts) {
306
+ super({
307
+ name: "InvalidRequestException",
308
+ $fault: "client",
309
+ ...opts,
310
+ });
311
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
312
+ this.error = opts.error;
313
+ this.reason = opts.reason;
314
+ this.error_description = opts.error_description;
315
+ }
316
+ }
317
+ class InvalidScopeException extends SSOOIDCServiceException {
318
+ static shapeId = "com.amazonaws.ssooidc#InvalidScopeException";
319
+ name = "InvalidScopeException";
320
+ $fault = "client";
321
+ error;
322
+ error_description;
323
+ constructor(opts) {
324
+ super({
325
+ name: "InvalidScopeException",
326
+ $fault: "client",
327
+ ...opts,
328
+ });
329
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
330
+ this.error = opts.error;
331
+ this.error_description = opts.error_description;
332
+ }
333
+ }
334
+ class SlowDownException extends SSOOIDCServiceException {
335
+ static shapeId = "com.amazonaws.ssooidc#SlowDownException";
336
+ name = "SlowDownException";
337
+ $fault = "client";
338
+ error;
339
+ error_description;
340
+ constructor(opts) {
341
+ super({
342
+ name: "SlowDownException",
343
+ $fault: "client",
344
+ ...opts,
345
+ });
346
+ Object.setPrototypeOf(this, SlowDownException.prototype);
347
+ this.error = opts.error;
348
+ this.error_description = opts.error_description;
349
+ }
350
+ }
351
+ class UnauthorizedClientException extends SSOOIDCServiceException {
352
+ static shapeId = "com.amazonaws.ssooidc#UnauthorizedClientException";
353
+ name = "UnauthorizedClientException";
354
+ $fault = "client";
355
+ error;
356
+ error_description;
357
+ constructor(opts) {
358
+ super({
359
+ name: "UnauthorizedClientException",
360
+ $fault: "client",
361
+ ...opts,
362
+ });
363
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
364
+ this.error = opts.error;
365
+ this.error_description = opts.error_description;
366
+ }
367
+ }
368
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
369
+ static shapeId = "com.amazonaws.ssooidc#UnsupportedGrantTypeException";
370
+ name = "UnsupportedGrantTypeException";
371
+ $fault = "client";
372
+ error;
373
+ error_description;
374
+ constructor(opts) {
375
+ super({
376
+ name: "UnsupportedGrantTypeException",
377
+ $fault: "client",
378
+ ...opts,
379
+ });
380
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
381
+ this.error = opts.error;
382
+ this.error_description = opts.error_description;
383
+ }
384
+ }
385
+
386
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
387
+ const _ADE = "AccessDeniedException";
388
+ const _APE = "AuthorizationPendingException";
389
+ const _AT = "AccessToken";
390
+ const _CS = "ClientSecret";
391
+ const _CT = "CreateToken";
392
+ const _CTR = "CreateTokenRequest";
393
+ const _CTRr = "CreateTokenResponse";
394
+ const _CV = "CodeVerifier";
395
+ const _ETE = "ExpiredTokenException";
396
+ const _ICE = "InvalidClientException";
397
+ const _IGE = "InvalidGrantException";
398
+ const _IRE = "InvalidRequestException";
399
+ const _ISE = "InternalServerException";
400
+ const _ISEn = "InvalidScopeException";
401
+ const _IT = "IdToken";
402
+ const _RT = "RefreshToken";
403
+ const _SDE = "SlowDownException";
404
+ const _UCE = "UnauthorizedClientException";
405
+ const _UGTE = "UnsupportedGrantTypeException";
406
+ const _aT = "accessToken";
407
+ const _c = "client";
408
+ const _cI = "clientId";
409
+ const _cS = "clientSecret";
410
+ const _cV = "codeVerifier";
411
+ const _co = "code";
412
+ const _dC = "deviceCode";
413
+ const _e = "error";
414
+ const _eI = "expiresIn";
415
+ const _ed = "error_description";
416
+ const _gT = "grantType";
417
+ const _h = "http";
418
+ const _hE = "httpError";
419
+ const _iT = "idToken";
420
+ const _r = "reason";
421
+ const _rT = "refreshToken";
422
+ const _rU = "redirectUri";
423
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
424
+ const _sc = "scope";
425
+ const _se = "server";
426
+ const _tT = "tokenType";
427
+ const n0 = "com.amazonaws.ssooidc";
428
+
429
+
430
+
431
+ const _s_registry = new schema/* TypeRegistry */.OF(_s);
432
+ var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
433
+ _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
434
+ const n0_registry = new schema/* TypeRegistry */.OF(n0);
435
+ var AccessDeniedException$ = [-3, n0, _ADE,
436
+ { [_e]: _c, [_hE]: 400 },
437
+ [_e, _r, _ed],
438
+ [0, 0, 0]
439
+ ];
440
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
441
+ var AuthorizationPendingException$ = [-3, n0, _APE,
442
+ { [_e]: _c, [_hE]: 400 },
443
+ [_e, _ed],
444
+ [0, 0]
445
+ ];
446
+ n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
447
+ var ExpiredTokenException$ = [-3, n0, _ETE,
448
+ { [_e]: _c, [_hE]: 400 },
449
+ [_e, _ed],
450
+ [0, 0]
451
+ ];
452
+ n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
453
+ var InternalServerException$ = [-3, n0, _ISE,
454
+ { [_e]: _se, [_hE]: 500 },
455
+ [_e, _ed],
456
+ [0, 0]
457
+ ];
458
+ n0_registry.registerError(InternalServerException$, InternalServerException);
459
+ var InvalidClientException$ = [-3, n0, _ICE,
460
+ { [_e]: _c, [_hE]: 401 },
461
+ [_e, _ed],
462
+ [0, 0]
463
+ ];
464
+ n0_registry.registerError(InvalidClientException$, InvalidClientException);
465
+ var InvalidGrantException$ = [-3, n0, _IGE,
466
+ { [_e]: _c, [_hE]: 400 },
467
+ [_e, _ed],
468
+ [0, 0]
469
+ ];
470
+ n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
471
+ var InvalidRequestException$ = [-3, n0, _IRE,
472
+ { [_e]: _c, [_hE]: 400 },
473
+ [_e, _r, _ed],
474
+ [0, 0, 0]
475
+ ];
476
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
477
+ var InvalidScopeException$ = [-3, n0, _ISEn,
478
+ { [_e]: _c, [_hE]: 400 },
479
+ [_e, _ed],
480
+ [0, 0]
481
+ ];
482
+ n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
483
+ var SlowDownException$ = [-3, n0, _SDE,
484
+ { [_e]: _c, [_hE]: 400 },
485
+ [_e, _ed],
486
+ [0, 0]
487
+ ];
488
+ n0_registry.registerError(SlowDownException$, SlowDownException);
489
+ var UnauthorizedClientException$ = [-3, n0, _UCE,
490
+ { [_e]: _c, [_hE]: 400 },
491
+ [_e, _ed],
492
+ [0, 0]
493
+ ];
494
+ n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
495
+ var UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
496
+ { [_e]: _c, [_hE]: 400 },
497
+ [_e, _ed],
498
+ [0, 0]
499
+ ];
500
+ n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
501
+ const errorTypeRegistries = [
502
+ _s_registry,
503
+ n0_registry,
504
+ ];
505
+ var AccessToken = [0, n0, _AT, 8, 0];
506
+ var ClientSecret = [0, n0, _CS, 8, 0];
507
+ var CodeVerifier = [0, n0, _CV, 8, 0];
508
+ var IdToken = [0, n0, _IT, 8, 0];
509
+ var RefreshToken = [0, n0, _RT, 8, 0];
510
+ var CreateTokenRequest$ = [3, n0, _CTR,
511
+ 0,
512
+ [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
513
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], 3
514
+ ];
515
+ var CreateTokenResponse$ = [3, n0, _CTRr,
516
+ 0,
517
+ [_aT, _tT, _eI, _rT, _iT],
518
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
519
+ ];
520
+ var Scopes = (/* unused pure expression or super */ null && (64 | 0));
521
+ var CreateToken$ = [9, n0, _CT,
522
+ { [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$
523
+ ];
524
+
525
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+ const getRuntimeConfig = (config) => {
537
+ return {
538
+ apiVersion: "2019-06-10",
539
+ base64Decoder: config?.base64Decoder ?? serde/* fromBase64 */.Ey,
540
+ base64Encoder: config?.base64Encoder ?? serde/* toBase64 */.nk,
541
+ disableHostPrefix: config?.disableHostPrefix ?? false,
542
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
543
+ extensions: config?.extensions ?? [],
544
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
545
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
546
+ {
547
+ schemeId: "aws.auth#sigv4",
548
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
549
+ signer: new httpAuthSchemes/* AwsSdkSigV4Signer */.f2(),
550
+ },
551
+ {
552
+ schemeId: "smithy.api#noAuth",
553
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
554
+ signer: new dist_es/* NoAuthSigner */.mR(),
555
+ },
556
+ ],
557
+ logger: config?.logger ?? new submodules_client/* NoOpLogger */.N4(),
558
+ protocol: config?.protocol ?? submodules_protocols/* AwsRestJsonProtocol */.Yu,
559
+ protocolSettings: config?.protocolSettings ?? {
560
+ defaultNamespace: "com.amazonaws.ssooidc",
561
+ errorTypeRegistries: errorTypeRegistries,
562
+ version: "2019-06-10",
563
+ serviceTarget: "AWSSSOOIDCService",
564
+ },
565
+ serviceId: config?.serviceId ?? "SSO OIDC",
566
+ sha256: config?.sha256 ?? checksum/* Sha256 */.IA,
567
+ urlParser: config?.urlParser ?? protocols/* parseUrl */.Dl,
568
+ utf8Decoder: config?.utf8Decoder ?? serde/* fromUtf8 */.ar,
569
+ utf8Encoder: config?.utf8Encoder ?? serde/* toUtf8 */.Pq,
570
+ };
571
+ };
572
+
573
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+ const runtimeConfig_getRuntimeConfig = (config) => {
584
+ (0,submodules_client/* emitWarningIfUnsupportedVersion */.I9)(process.version);
585
+ const defaultsMode = (0,submodules_config/* resolveDefaultsModeConfig */.IZ)(config);
586
+ const defaultConfigProvider = () => defaultsMode().then(submodules_client/* loadConfigsForDefaultMode */.lT);
587
+ const clientSharedValues = getRuntimeConfig(config);
588
+ (0,client/* emitWarningIfUnsupportedVersion */.I9)(process.version);
589
+ const loaderConfig = {
590
+ profile: config?.profile,
591
+ logger: clientSharedValues.logger,
592
+ };
593
+ return {
594
+ ...clientSharedValues,
595
+ ...config,
596
+ runtime: "node",
597
+ defaultsMode,
598
+ authSchemePreference: config?.authSchemePreference ?? (0,submodules_config/* loadConfig */.Z9)(httpAuthSchemes/* NODE_AUTH_SCHEME_PREFERENCE_OPTIONS */.$S, loaderConfig),
599
+ bodyLengthChecker: config?.bodyLengthChecker ?? serde/* calculateBodyLength */.n8,
600
+ defaultSocketTimeout: (0,client/* getDefaultSocketTimeout */.ED)(config?.requestHandler, 300_000),
601
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0,client/* createDefaultUserAgentProvider */.pf)({ serviceId: clientSharedValues.serviceId, clientVersion: nested_clients_package/* version */.rE }),
602
+ maxAttempts: config?.maxAttempts ?? (0,submodules_config/* loadConfig */.Z9)(retry/* NODE_MAX_ATTEMPT_CONFIG_OPTIONS */.qs, config),
603
+ region: config?.region ?? (0,submodules_config/* loadConfig */.Z9)(submodules_config/* NODE_REGION_CONFIG_OPTIONS */.GG, { ...submodules_config/* NODE_REGION_CONFIG_FILE_OPTIONS */.zH, ...loaderConfig }),
604
+ requestHandler: node_http_handler_dist_es/* NodeHttpHandler */.$c.create(config?.requestHandler ?? defaultConfigProvider),
605
+ retryMode: config?.retryMode ??
606
+ (0,submodules_config/* loadConfig */.Z9)({
607
+ ...retry/* NODE_RETRY_MODE_CONFIG_OPTIONS */.kN,
608
+ default: async () => (await defaultConfigProvider()).retryMode || retry/* DEFAULT_RETRY_MODE */.L0,
609
+ }, config),
610
+ streamCollector: config?.streamCollector ?? node_http_handler_dist_es/* streamCollector */.kv,
611
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0,submodules_config/* loadConfig */.Z9)(submodules_config/* NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS */.e$, loaderConfig),
612
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0,submodules_config/* loadConfig */.Z9)(submodules_config/* NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS */.Ko, loaderConfig),
613
+ userAgentAppId: config?.userAgentAppId ?? (0,submodules_config/* loadConfig */.Z9)(client/* NODE_APP_ID_CONFIG_OPTIONS */.hV, loaderConfig),
614
+ };
615
+ };
616
+
617
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
618
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
619
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
620
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
621
+ let _credentials = runtimeConfig.credentials;
622
+ return {
623
+ setHttpAuthScheme(httpAuthScheme) {
624
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
625
+ if (index === -1) {
626
+ _httpAuthSchemes.push(httpAuthScheme);
627
+ }
628
+ else {
629
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
630
+ }
631
+ },
632
+ httpAuthSchemes() {
633
+ return _httpAuthSchemes;
634
+ },
635
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
636
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
637
+ },
638
+ httpAuthSchemeProvider() {
639
+ return _httpAuthSchemeProvider;
640
+ },
641
+ setCredentials(credentials) {
642
+ _credentials = credentials;
643
+ },
644
+ credentials() {
645
+ return _credentials;
646
+ },
647
+ };
648
+ };
649
+ const resolveHttpAuthRuntimeConfig = (config) => {
650
+ return {
651
+ httpAuthSchemes: config.httpAuthSchemes(),
652
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
653
+ credentials: config.credentials(),
654
+ };
655
+ };
656
+
657
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
658
+
659
+
660
+
661
+
662
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
663
+ const extensionConfiguration = Object.assign((0,client/* getAwsRegionExtensionConfiguration */.Rq)(runtimeConfig), (0,submodules_client/* getDefaultExtensionConfiguration */.xA)(runtimeConfig), (0,protocols/* getHttpHandlerExtensionConfiguration */.eS)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
664
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
665
+ return Object.assign(runtimeConfig, (0,client/* resolveAwsRegionExtensionConfiguration */.$3)(extensionConfiguration), (0,submodules_client/* resolveDefaultRuntimeConfig */.uv)(extensionConfiguration), (0,protocols/* resolveHttpHandlerRuntimeConfig */.jt)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
666
+ };
667
+
668
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+ class SSOOIDCClient extends submodules_client/* Client */.Kj {
683
+ config;
684
+ constructor(...[configuration]) {
685
+ const _config_0 = runtimeConfig_getRuntimeConfig(configuration || {});
686
+ super(_config_0);
687
+ this.initConfig = _config_0;
688
+ const _config_1 = resolveClientEndpointParameters(_config_0);
689
+ const _config_2 = (0,client/* resolveUserAgentConfig */.Dc)(_config_1);
690
+ const _config_3 = (0,retry/* resolveRetryConfig */.$z)(_config_2);
691
+ const _config_4 = (0,submodules_config/* resolveRegionConfig */.TD)(_config_3);
692
+ const _config_5 = (0,client/* resolveHostHeaderConfig */.OV)(_config_4);
693
+ const _config_6 = (0,endpoints/* resolveEndpointConfig */.Co)(_config_5);
694
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
695
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
696
+ this.config = _config_8;
697
+ this.middlewareStack.use((0,schema/* getSchemaSerdePlugin */.wq)(this.config));
698
+ this.middlewareStack.use((0,client/* getUserAgentPlugin */.sM)(this.config));
699
+ this.middlewareStack.use((0,retry/* getRetryPlugin */.ey)(this.config));
700
+ this.middlewareStack.use((0,protocols/* getContentLengthPlugin */.vK)(this.config));
701
+ this.middlewareStack.use((0,client/* getHostHeaderPlugin */.TC)(this.config));
702
+ this.middlewareStack.use((0,client/* getLoggerPlugin */.Y7)(this.config));
703
+ this.middlewareStack.use((0,client/* getRecursionDetectionPlugin */.n4)(this.config));
704
+ this.middlewareStack.use((0,dist_es/* getHttpAuthSchemeEndpointRuleSetPlugin */.wB)(this.config, {
705
+ httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
706
+ identityProviderConfigProvider: async (config) => new dist_es/* DefaultIdentityProviderConfig */.h$({
707
+ "aws.auth#sigv4": config.credentials,
708
+ }),
709
+ }));
710
+ this.middlewareStack.use((0,dist_es/* getHttpSigningPlugin */.lW)(this.config));
711
+ }
712
+ destroy() {
713
+ super.destroy();
714
+ }
715
+ }
716
+
717
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js
718
+
719
+
720
+
721
+ const command = (0,submodules_client/* makeBuilder */.k8)(commonParams, "AWSSSOOIDCService", "SSOOIDCClient", endpoints/* getEndpointPlugin */.rD);
722
+ const _ep0 = {};
723
+ const _mw0 = (Command, cs, config, o) => [];
724
+
725
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
726
+
727
+
728
+ class CreateTokenCommand extends command(_ep0, _mw0, "CreateToken", CreateToken$) {
729
+ }
730
+
731
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
732
+
733
+
734
+
735
+ const commands = {
736
+ CreateTokenCommand: CreateTokenCommand,
737
+ };
738
+ class SSOOIDC extends SSOOIDCClient {
739
+ }
740
+ ;(0,submodules_client/* createAggregatedClient */.J1)(commands, SSOOIDC);
741
+
742
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js
743
+
744
+
745
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js
746
+ const AccessDeniedExceptionReason = (/* unused pure expression or super */ null && ({
747
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
748
+ }));
749
+ const InvalidRequestExceptionReason = (/* unused pure expression or super */ null && ({
750
+ KMS_DISABLED_KEY: "KMS_DisabledException",
751
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
752
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
753
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
754
+ }));
755
+
756
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js
757
+
758
+
759
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+ /***/ },
772
+
773
+ /***/ "./node_modules/@aws-sdk/nested-clients/package.json"
774
+ (module) {
775
+
776
+ module.exports = {"rE":"3.998.2"};
777
+
778
+ /***/ }
779
+
780
+ };
781
+ ;
782
+ //# sourceMappingURL=vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_js.js.map