@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,710 @@
1
+ "use strict";
2
+ exports.id = "vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_signin_index_js";
3
+ exports.ids = ["vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_signin_index_js"];
4
+ exports.modules = {
5
+
6
+ /***/ "./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js"
7
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __webpack_require__.d(__webpack_exports__, {
12
+ CreateOAuth2TokenCommand: () => (/* reexport */ CreateOAuth2TokenCommand),
13
+ SigninClient: () => (/* reexport */ SigninClient)
14
+ });
15
+
16
+ // UNUSED EXPORTS: $Command, AccessDeniedException, AccessDeniedException$, AccessToken$, CreateOAuth2Token$, CreateOAuth2TokenRequest$, CreateOAuth2TokenRequestBody$, CreateOAuth2TokenResponse$, CreateOAuth2TokenResponseBody$, CreateOAuth2TokenWithIAM$, CreateOAuth2TokenWithIAMCommand, CreateOAuth2TokenWithIAMRequest$, CreateOAuth2TokenWithIAMResponse$, InternalServerException, InternalServerException$, OAuth2ErrorCode, Signin, SigninServiceException, SigninServiceException$, TooManyRequestsError, TooManyRequestsError$, ValidationException, ValidationException$, __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/signin/auth/httpAuthSchemeProvider.js
37
+
38
+
39
+ const defaultSigninHttpAuthSchemeParametersProvider = 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: "signin",
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 defaultSigninHttpAuthSchemeProvider = (authParameters) => {
68
+ const options = [];
69
+ switch (authParameters.operation) {
70
+ case "CreateOAuth2Token":
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/signin/endpoint/EndpointParameters.js
90
+ const resolveClientEndpointParameters = (options) => {
91
+ return Object.assign(options, {
92
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
93
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
94
+ defaultSigningName: "signin",
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/signin/endpoint/bdd.js
115
+
116
+ const s = "ref";
117
+ const a = -1, b = false, c = true, d = "isSet", e = "booleanEquals", f = "coalesce", g = "PartitionResult", h = "stringEquals", i = "getAttr", j = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k = { [s]: "Endpoint" }, l = { "fn": i, "argv": [{ [s]: g }, "name"] }, m = { [s]: "Region" }, n = { [s]: g }, o = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, p = {}, q = [m];
118
+ const _data = {
119
+ conditions: [
120
+ [d, q],
121
+ [e, [{ fn: f, argv: [{ [s]: "IsControlPlane" }, b] }, c]],
122
+ [d, [k]],
123
+ ["aws.partition", q, g],
124
+ [e, [{ [s]: "UseFIPS" }, c]],
125
+ [h, [l, "aws"]],
126
+ [e, [{ fn: f, argv: [{ [s]: "IsOAuthEndpoint" }, b] }, c]],
127
+ [e, [{ [s]: "UseDualStack" }, c]],
128
+ [h, [l, "aws-cn"]],
129
+ [h, [m, "us-gov-west-1"]],
130
+ [h, [l, "aws-us-gov"]],
131
+ [e, [{ fn: i, argv: [n, "supportsFIPS"] }, c]],
132
+ [h, [l, "aws-iso"]],
133
+ [h, [l, "aws-iso-b"]],
134
+ [h, [l, "aws-iso-f"]],
135
+ [h, [l, "aws-iso-e"]],
136
+ [h, [l, "aws-eusc"]],
137
+ [e, [{ fn: i, argv: [n, "supportsDualStack"] }, c]]
138
+ ],
139
+ results: [
140
+ [a],
141
+ ["https://signin.{Region}.api.aws", o],
142
+ ["https://signin.{Region}.api.amazonwebservices.com.cn", o],
143
+ [j, o],
144
+ [a, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],
145
+ ["https://{Region}.oauth.signin.aws", o],
146
+ ["https://{Region}.signin.aws.amazon.com", p],
147
+ ["https://{Region}.signin.amazonaws.cn", p],
148
+ ["https://{Region}.signin.amazonaws-us-gov.com", p],
149
+ ["https://{Region}.signin.c2shome.ic.gov", p],
150
+ ["https://{Region}.signin.sc2shome.sgov.gov", p],
151
+ ["https://{Region}.signin.csphome.hci.ic.gov", p],
152
+ ["https://{Region}.signin.csphome.adc-e.uk", p],
153
+ ["https://{Region}.signin.amazonaws-eusc.eu", p],
154
+ ["https://signin-fips.amazonaws-us-gov.com", p],
155
+ ["https://{Region}.signin-fips.amazonaws-us-gov.com", p],
156
+ ["https://{Region}.signin.{PartitionResult#dnsSuffix}", p],
157
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
158
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
159
+ [k, p],
160
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
161
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
162
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p],
163
+ [a, "FIPS is enabled but this partition does not support FIPS"],
164
+ [j, p],
165
+ [a, "DualStack is enabled but this partition does not support DualStack"],
166
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", p],
167
+ [a, "Invalid Configuration: Missing Region"]
168
+ ]
169
+ };
170
+ const root = 2;
171
+ const r = 100_000_000;
172
+ const nodes = new Int32Array([
173
+ -1, 1, -1,
174
+ 0, 6, 3,
175
+ 2, 36, 4,
176
+ 4, 5, r + 27,
177
+ 6, r + 4, r + 27,
178
+ 1, 29, 7,
179
+ 2, 36, 8,
180
+ 3, 9, 31,
181
+ 4, 22, 10,
182
+ 5, 19, 11,
183
+ 7, 21, 12,
184
+ 8, r + 7, 13,
185
+ 10, r + 8, 14,
186
+ 12, r + 9, 15,
187
+ 13, r + 10, 16,
188
+ 14, r + 11, 17,
189
+ 15, r + 12, 18,
190
+ 16, r + 13, r + 16,
191
+ 6, r + 5, 20,
192
+ 7, 21, r + 6,
193
+ 17, r + 24, r + 25,
194
+ 6, r + 4, 23,
195
+ 7, 27, 24,
196
+ 9, r + 14, 25,
197
+ 10, r + 15, 26,
198
+ 11, r + 22, r + 23,
199
+ 11, 28, r + 21,
200
+ 17, r + 20, r + 21,
201
+ 2, 35, 30,
202
+ 3, 39, 31,
203
+ 4, 32, r + 27,
204
+ 6, r + 4, 33,
205
+ 7, r + 27, 34,
206
+ 9, r + 14, r + 27,
207
+ 3, 39, 36,
208
+ 4, 38, 37,
209
+ 7, r + 18, r + 19,
210
+ 6, r + 4, r + 17,
211
+ 5, r + 1, 40,
212
+ 8, r + 2, r + 3,
213
+ ]);
214
+ const bdd = endpoints/* BinaryDecisionDiagram */.d5.from(nodes, root, _data.conditions, _data.results);
215
+
216
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js
217
+
218
+
219
+
220
+ const cache = new endpoints/* EndpointCache */.kS({
221
+ size: 50,
222
+ params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"],
223
+ });
224
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
225
+ return cache.get(endpointParams, () => (0,endpoints/* decideEndpoint */.cH)(bdd, {
226
+ endpointParams: endpointParams,
227
+ logger: context.logger,
228
+ }));
229
+ };
230
+ endpoints/* customEndpointFunctions */.mw.aws = client/* awsEndpointFunctions */.UF;
231
+
232
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js
233
+
234
+
235
+ class SigninServiceException extends submodules_client/* ServiceException */.TJ {
236
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";
237
+ constructor(options) {
238
+ super(options);
239
+ Object.setPrototypeOf(this, SigninServiceException.prototype);
240
+ }
241
+ }
242
+
243
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js
244
+
245
+ class AccessDeniedException extends SigninServiceException {
246
+ static shapeId = "com.amazonaws.signin#AccessDeniedException";
247
+ name = "AccessDeniedException";
248
+ $fault = "client";
249
+ error;
250
+ constructor(opts) {
251
+ super({
252
+ name: "AccessDeniedException",
253
+ $fault: "client",
254
+ ...opts,
255
+ });
256
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
257
+ this.error = opts.error;
258
+ }
259
+ }
260
+ class InternalServerException extends SigninServiceException {
261
+ static shapeId = "com.amazonaws.signin#InternalServerException";
262
+ name = "InternalServerException";
263
+ $fault = "server";
264
+ error;
265
+ constructor(opts) {
266
+ super({
267
+ name: "InternalServerException",
268
+ $fault: "server",
269
+ ...opts,
270
+ });
271
+ Object.setPrototypeOf(this, InternalServerException.prototype);
272
+ this.error = opts.error;
273
+ }
274
+ }
275
+ class TooManyRequestsError extends SigninServiceException {
276
+ static shapeId = "com.amazonaws.signin#TooManyRequestsError";
277
+ name = "TooManyRequestsError";
278
+ $fault = "client";
279
+ error;
280
+ constructor(opts) {
281
+ super({
282
+ name: "TooManyRequestsError",
283
+ $fault: "client",
284
+ ...opts,
285
+ });
286
+ Object.setPrototypeOf(this, TooManyRequestsError.prototype);
287
+ this.error = opts.error;
288
+ }
289
+ }
290
+ class ValidationException extends SigninServiceException {
291
+ static shapeId = "com.amazonaws.signin#ValidationException";
292
+ name = "ValidationException";
293
+ $fault = "client";
294
+ error;
295
+ constructor(opts) {
296
+ super({
297
+ name: "ValidationException",
298
+ $fault: "client",
299
+ ...opts,
300
+ });
301
+ Object.setPrototypeOf(this, ValidationException.prototype);
302
+ this.error = opts.error;
303
+ }
304
+ }
305
+
306
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js
307
+ const _ADE = "AccessDeniedException";
308
+ const _AT = "AccessToken";
309
+ const _COAT = "CreateOAuth2Token";
310
+ const _COATR = "CreateOAuth2TokenRequest";
311
+ const _COATRB = "CreateOAuth2TokenRequestBody";
312
+ const _COATRBr = "CreateOAuth2TokenResponseBody";
313
+ const _COATRr = "CreateOAuth2TokenResponse";
314
+ const _COATWIAM = "CreateOAuth2TokenWithIAM";
315
+ const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
316
+ const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
317
+ const _ISE = "InternalServerException";
318
+ const _OAAT = "OAuthAccessToken";
319
+ const _RT = "RefreshToken";
320
+ const _TMRE = "TooManyRequestsError";
321
+ const _VE = "ValidationException";
322
+ const _aKI = "accessKeyId";
323
+ const _aT = "accessToken";
324
+ const _at = "access_token";
325
+ const _c = "client";
326
+ const _cI = "clientId";
327
+ const _cV = "codeVerifier";
328
+ const _co = "code";
329
+ const _e = "error";
330
+ const _eI = "expiresIn";
331
+ const _ei = "expires_in";
332
+ const _gT = "grantType";
333
+ const _gt = "grant_type";
334
+ const _h = "http";
335
+ const _hE = "httpError";
336
+ const _iT = "idToken";
337
+ const _jN = "jsonName";
338
+ const _m = "message";
339
+ const _r = "resource";
340
+ const _rT = "refreshToken";
341
+ const _rU = "redirectUri";
342
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
343
+ const _sAK = "secretAccessKey";
344
+ const _sT = "sessionToken";
345
+ const _se = "server";
346
+ const _tI = "tokenInput";
347
+ const _tO = "tokenOutput";
348
+ const _tT = "tokenType";
349
+ const _tt = "token_type";
350
+ const n0 = "com.amazonaws.signin";
351
+
352
+
353
+
354
+ const _s_registry = new schema/* TypeRegistry */.OF(_s);
355
+ var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
356
+ _s_registry.registerError(SigninServiceException$, SigninServiceException);
357
+ const n0_registry = new schema/* TypeRegistry */.OF(n0);
358
+ var AccessDeniedException$ = [-3, n0, _ADE,
359
+ { [_e]: _c },
360
+ [_e, _m],
361
+ [0, 0], 2
362
+ ];
363
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
364
+ var InternalServerException$ = [-3, n0, _ISE,
365
+ { [_e]: _se, [_hE]: 500 },
366
+ [_e, _m],
367
+ [0, 0], 2
368
+ ];
369
+ n0_registry.registerError(InternalServerException$, InternalServerException);
370
+ var TooManyRequestsError$ = [-3, n0, _TMRE,
371
+ { [_e]: _c, [_hE]: 429 },
372
+ [_e, _m],
373
+ [0, 0], 2
374
+ ];
375
+ n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
376
+ var ValidationException$ = [-3, n0, _VE,
377
+ { [_e]: _c, [_hE]: 400 },
378
+ [_e, _m],
379
+ [0, 0], 2
380
+ ];
381
+ n0_registry.registerError(ValidationException$, ValidationException);
382
+ const errorTypeRegistries = [
383
+ _s_registry,
384
+ n0_registry,
385
+ ];
386
+ var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
387
+ var RefreshToken = [0, n0, _RT, 8, 0];
388
+ var AccessToken$ = [3, n0, _AT,
389
+ 8,
390
+ [_aKI, _sAK, _sT],
391
+ [[0, { [_jN]: _aKI }], [0, { [_jN]: _sAK }], [0, { [_jN]: _sT }]], 3
392
+ ];
393
+ var CreateOAuth2TokenRequest$ = [3, n0, _COATR,
394
+ 0,
395
+ [_tI],
396
+ [[() => CreateOAuth2TokenRequestBody$, 16]], 1
397
+ ];
398
+ var CreateOAuth2TokenRequestBody$ = [3, n0, _COATRB,
399
+ 0,
400
+ [_cI, _gT, _co, _rU, _cV, _rT],
401
+ [[0, { [_jN]: _cI }], [0, { [_jN]: _gT }], 0, [0, { [_jN]: _rU }], [0, { [_jN]: _cV }], [() => RefreshToken, { [_jN]: _rT }]], 2
402
+ ];
403
+ var CreateOAuth2TokenResponse$ = [3, n0, _COATRr,
404
+ 0,
405
+ [_tO],
406
+ [[() => CreateOAuth2TokenResponseBody$, 16]], 1
407
+ ];
408
+ var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
409
+ 0,
410
+ [_aT, _tT, _eI, _rT, _iT],
411
+ [[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
412
+ ];
413
+ var CreateOAuth2TokenWithIAMRequest$ = [3, n0, _COATWIAMR,
414
+ 0,
415
+ [_gT, _r],
416
+ [[0, { [_jN]: _gt }], 0], 2
417
+ ];
418
+ var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
419
+ 0,
420
+ [_aT, _tT, _eI],
421
+ [[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
422
+ ];
423
+ var CreateOAuth2Token$ = [9, n0, _COAT,
424
+ { [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
425
+ ];
426
+ var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
427
+ { [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
428
+ ];
429
+
430
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+ const getRuntimeConfig = (config) => {
442
+ return {
443
+ apiVersion: "2023-01-01",
444
+ base64Decoder: config?.base64Decoder ?? serde/* fromBase64 */.Ey,
445
+ base64Encoder: config?.base64Encoder ?? serde/* toBase64 */.nk,
446
+ disableHostPrefix: config?.disableHostPrefix ?? false,
447
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
448
+ extensions: config?.extensions ?? [],
449
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
450
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
451
+ {
452
+ schemeId: "aws.auth#sigv4",
453
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
454
+ signer: new httpAuthSchemes/* AwsSdkSigV4Signer */.f2(),
455
+ },
456
+ {
457
+ schemeId: "smithy.api#noAuth",
458
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
459
+ signer: new dist_es/* NoAuthSigner */.mR(),
460
+ },
461
+ ],
462
+ logger: config?.logger ?? new submodules_client/* NoOpLogger */.N4(),
463
+ protocol: config?.protocol ?? submodules_protocols/* AwsRestJsonProtocol */.Yu,
464
+ protocolSettings: config?.protocolSettings ?? {
465
+ defaultNamespace: "com.amazonaws.signin",
466
+ errorTypeRegistries: errorTypeRegistries,
467
+ version: "2023-01-01",
468
+ serviceTarget: "Signin",
469
+ },
470
+ serviceId: config?.serviceId ?? "Signin",
471
+ sha256: config?.sha256 ?? checksum/* Sha256 */.IA,
472
+ urlParser: config?.urlParser ?? protocols/* parseUrl */.Dl,
473
+ utf8Decoder: config?.utf8Decoder ?? serde/* fromUtf8 */.ar,
474
+ utf8Encoder: config?.utf8Encoder ?? serde/* toUtf8 */.Pq,
475
+ };
476
+ };
477
+
478
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+ const runtimeConfig_getRuntimeConfig = (config) => {
489
+ (0,submodules_client/* emitWarningIfUnsupportedVersion */.I9)(process.version);
490
+ const defaultsMode = (0,submodules_config/* resolveDefaultsModeConfig */.IZ)(config);
491
+ const defaultConfigProvider = () => defaultsMode().then(submodules_client/* loadConfigsForDefaultMode */.lT);
492
+ const clientSharedValues = getRuntimeConfig(config);
493
+ (0,client/* emitWarningIfUnsupportedVersion */.I9)(process.version);
494
+ const loaderConfig = {
495
+ profile: config?.profile,
496
+ logger: clientSharedValues.logger,
497
+ };
498
+ return {
499
+ ...clientSharedValues,
500
+ ...config,
501
+ runtime: "node",
502
+ defaultsMode,
503
+ authSchemePreference: config?.authSchemePreference ?? (0,submodules_config/* loadConfig */.Z9)(httpAuthSchemes/* NODE_AUTH_SCHEME_PREFERENCE_OPTIONS */.$S, loaderConfig),
504
+ bodyLengthChecker: config?.bodyLengthChecker ?? serde/* calculateBodyLength */.n8,
505
+ defaultSocketTimeout: (0,client/* getDefaultSocketTimeout */.ED)(config?.requestHandler, 300_000),
506
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0,client/* createDefaultUserAgentProvider */.pf)({ serviceId: clientSharedValues.serviceId, clientVersion: nested_clients_package/* version */.rE }),
507
+ maxAttempts: config?.maxAttempts ?? (0,submodules_config/* loadConfig */.Z9)(retry/* NODE_MAX_ATTEMPT_CONFIG_OPTIONS */.qs, config),
508
+ region: config?.region ?? (0,submodules_config/* loadConfig */.Z9)(submodules_config/* NODE_REGION_CONFIG_OPTIONS */.GG, { ...submodules_config/* NODE_REGION_CONFIG_FILE_OPTIONS */.zH, ...loaderConfig }),
509
+ requestHandler: node_http_handler_dist_es/* NodeHttpHandler */.$c.create(config?.requestHandler ?? defaultConfigProvider),
510
+ retryMode: config?.retryMode ??
511
+ (0,submodules_config/* loadConfig */.Z9)({
512
+ ...retry/* NODE_RETRY_MODE_CONFIG_OPTIONS */.kN,
513
+ default: async () => (await defaultConfigProvider()).retryMode || retry/* DEFAULT_RETRY_MODE */.L0,
514
+ }, config),
515
+ streamCollector: config?.streamCollector ?? node_http_handler_dist_es/* streamCollector */.kv,
516
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0,submodules_config/* loadConfig */.Z9)(submodules_config/* NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS */.e$, loaderConfig),
517
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0,submodules_config/* loadConfig */.Z9)(submodules_config/* NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS */.Ko, loaderConfig),
518
+ userAgentAppId: config?.userAgentAppId ?? (0,submodules_config/* loadConfig */.Z9)(client/* NODE_APP_ID_CONFIG_OPTIONS */.hV, loaderConfig),
519
+ };
520
+ };
521
+
522
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js
523
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
524
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
525
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
526
+ let _credentials = runtimeConfig.credentials;
527
+ return {
528
+ setHttpAuthScheme(httpAuthScheme) {
529
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
530
+ if (index === -1) {
531
+ _httpAuthSchemes.push(httpAuthScheme);
532
+ }
533
+ else {
534
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
535
+ }
536
+ },
537
+ httpAuthSchemes() {
538
+ return _httpAuthSchemes;
539
+ },
540
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
541
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
542
+ },
543
+ httpAuthSchemeProvider() {
544
+ return _httpAuthSchemeProvider;
545
+ },
546
+ setCredentials(credentials) {
547
+ _credentials = credentials;
548
+ },
549
+ credentials() {
550
+ return _credentials;
551
+ },
552
+ };
553
+ };
554
+ const resolveHttpAuthRuntimeConfig = (config) => {
555
+ return {
556
+ httpAuthSchemes: config.httpAuthSchemes(),
557
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
558
+ credentials: config.credentials(),
559
+ };
560
+ };
561
+
562
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js
563
+
564
+
565
+
566
+
567
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
568
+ const extensionConfiguration = Object.assign((0,client/* getAwsRegionExtensionConfiguration */.Rq)(runtimeConfig), (0,submodules_client/* getDefaultExtensionConfiguration */.xA)(runtimeConfig), (0,protocols/* getHttpHandlerExtensionConfiguration */.eS)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
569
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
570
+ return Object.assign(runtimeConfig, (0,client/* resolveAwsRegionExtensionConfiguration */.$3)(extensionConfiguration), (0,submodules_client/* resolveDefaultRuntimeConfig */.uv)(extensionConfiguration), (0,protocols/* resolveHttpHandlerRuntimeConfig */.jt)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
571
+ };
572
+
573
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+ class SigninClient extends submodules_client/* Client */.Kj {
588
+ config;
589
+ constructor(...[configuration]) {
590
+ const _config_0 = runtimeConfig_getRuntimeConfig(configuration || {});
591
+ super(_config_0);
592
+ this.initConfig = _config_0;
593
+ const _config_1 = resolveClientEndpointParameters(_config_0);
594
+ const _config_2 = (0,client/* resolveUserAgentConfig */.Dc)(_config_1);
595
+ const _config_3 = (0,retry/* resolveRetryConfig */.$z)(_config_2);
596
+ const _config_4 = (0,submodules_config/* resolveRegionConfig */.TD)(_config_3);
597
+ const _config_5 = (0,client/* resolveHostHeaderConfig */.OV)(_config_4);
598
+ const _config_6 = (0,endpoints/* resolveEndpointConfig */.Co)(_config_5);
599
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
600
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
601
+ this.config = _config_8;
602
+ this.middlewareStack.use((0,schema/* getSchemaSerdePlugin */.wq)(this.config));
603
+ this.middlewareStack.use((0,client/* getUserAgentPlugin */.sM)(this.config));
604
+ this.middlewareStack.use((0,retry/* getRetryPlugin */.ey)(this.config));
605
+ this.middlewareStack.use((0,protocols/* getContentLengthPlugin */.vK)(this.config));
606
+ this.middlewareStack.use((0,client/* getHostHeaderPlugin */.TC)(this.config));
607
+ this.middlewareStack.use((0,client/* getLoggerPlugin */.Y7)(this.config));
608
+ this.middlewareStack.use((0,client/* getRecursionDetectionPlugin */.n4)(this.config));
609
+ this.middlewareStack.use((0,dist_es/* getHttpAuthSchemeEndpointRuleSetPlugin */.wB)(this.config, {
610
+ httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
611
+ identityProviderConfigProvider: async (config) => new dist_es/* DefaultIdentityProviderConfig */.h$({
612
+ "aws.auth#sigv4": config.credentials,
613
+ }),
614
+ }));
615
+ this.middlewareStack.use((0,dist_es/* getHttpSigningPlugin */.lW)(this.config));
616
+ }
617
+ destroy() {
618
+ super.destroy();
619
+ }
620
+ }
621
+
622
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js
623
+
624
+
625
+
626
+ const command = (0,submodules_client/* makeBuilder */.k8)(commonParams, "Signin", "SigninClient", endpoints/* getEndpointPlugin */.rD);
627
+ const _ep0 = {
628
+ IsControlPlane: { type: "staticContextParams", value: false },
629
+ };
630
+ const _ep1 = {
631
+ IsOAuthEndpoint: { type: "staticContextParams", value: true },
632
+ };
633
+ const _mw0 = (Command, cs, config, o) => [];
634
+
635
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js
636
+
637
+
638
+ class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) {
639
+ }
640
+
641
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js
642
+
643
+
644
+ class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
645
+ }
646
+
647
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js
648
+
649
+
650
+
651
+
652
+ const commands = {
653
+ CreateOAuth2TokenCommand: CreateOAuth2TokenCommand,
654
+ CreateOAuth2TokenWithIAMCommand: CreateOAuth2TokenWithIAMCommand,
655
+ };
656
+ class Signin extends SigninClient {
657
+ }
658
+ ;(0,submodules_client/* createAggregatedClient */.J1)(commands, Signin);
659
+
660
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js
661
+
662
+
663
+
664
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js
665
+ const OAuth2ErrorCode = (/* unused pure expression or super */ null && ({
666
+ AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
667
+ CONFLICT: "CONFLICT",
668
+ INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
669
+ INVALID_REQUEST: "INVALID_REQUEST",
670
+ OAUTH_INVALID_GRANT: "invalid_grant",
671
+ OAUTH_INVALID_REQUEST: "invalid_request",
672
+ OAUTH_INVALID_SCOPE: "invalid_scope",
673
+ OAUTH_INVALID_TARGET: "invalid_target",
674
+ OAUTH_RATE_EXCEEDED: "rate_exceeded",
675
+ OAUTH_SERVICE_UNAVAILABLE: "service_unavailable",
676
+ OAUTH_UNSUPPORTED_GRANT_TYPE: "unsupported_grant_type",
677
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
678
+ SERVER_ERROR: "server_error",
679
+ SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
680
+ TOKEN_EXPIRED: "TOKEN_EXPIRED",
681
+ USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
682
+ }));
683
+
684
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js
685
+
686
+
687
+ ;// ./node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+ /***/ },
700
+
701
+ /***/ "./node_modules/@aws-sdk/nested-clients/package.json"
702
+ (module) {
703
+
704
+ module.exports = {"rE":"3.998.2"};
705
+
706
+ /***/ }
707
+
708
+ };
709
+ ;
710
+ //# sourceMappingURL=vendors-node_modules_aws-sdk_nested-clients_dist-es_submodules_signin_index_js.js.map