@aws-sdk/client-signin 3.1075.0 → 3.1077.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.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,68 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
- const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
+ const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultSigninHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateOAuth2Token$, DeleteConsoleAuthorizationConfiguration$, DeleteResourcePermissionStatement$, GetConsoleAuthorizationConfiguration$, GetResourcePolicy$, ListResourcePermissionStatements$, PutConsoleAuthorizationConfiguration$, PutResourcePermissionStatement$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { SigninServiceException } = require("./models/SigninServiceException");
18
- exports.SigninServiceException = SigninServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "signin",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
42
+ return {
43
+ schemeId: "smithy.api#noAuth",
44
+ };
45
+ }
46
+ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
47
+ const options = [];
48
+ switch (authParameters.operation) {
49
+ case "CreateOAuth2Token":
50
+ {
51
+ options.push(createSmithyApiNoAuthHttpAuthOption());
52
+ break;
53
+ }
54
+ default: {
55
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
56
+ }
57
+ }
58
+ return options;
59
+ };
60
+ const resolveHttpAuthSchemeConfig = (config) => {
61
+ const config_0 = resolveAwsSdkSigV4Config(config);
62
+ return Object.assign(config_0, {
63
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
64
+ });
65
+ };
19
66
 
20
67
  const resolveClientEndpointParameters = (options) => {
21
68
  return Object.assign(options, {
@@ -31,6 +78,578 @@ const commonParams = {
31
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
79
  };
33
80
 
81
+ var version = "3.1076.0";
82
+ var packageInfo = {
83
+ version: version};
84
+
85
+ const p = "ref";
86
+ const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
87
+ const _data = {
88
+ conditions: [
89
+ [c, o],
90
+ [d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
91
+ [c, [i]],
92
+ ["aws.partition", o, e],
93
+ [d, [{ [p]: "UseFIPS" }, b]],
94
+ [d, [{ [p]: "UseDualStack" }, b]],
95
+ [f, [j, "aws"]],
96
+ [f, [j, "aws-cn"]],
97
+ [d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
98
+ [f, [l, "us-gov-west-1"]],
99
+ [f, [j, "aws-us-gov"]],
100
+ [d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
101
+ [f, [j, "aws-iso"]],
102
+ [f, [j, "aws-iso-b"]],
103
+ [f, [j, "aws-iso-f"]],
104
+ [f, [j, "aws-iso-e"]],
105
+ [f, [j, "aws-eusc"]]
106
+ ],
107
+ results: [
108
+ [a],
109
+ ["https://signin.{Region}.api.aws", m],
110
+ ["https://signin.{Region}.api.amazonwebservices.com.cn", m],
111
+ [h, m],
112
+ ["https://{Region}.signin.aws.amazon.com", n],
113
+ ["https://{Region}.signin.amazonaws.cn", n],
114
+ ["https://{Region}.signin.amazonaws-us-gov.com", n],
115
+ ["https://{Region}.signin.c2shome.ic.gov", n],
116
+ ["https://{Region}.signin.sc2shome.sgov.gov", n],
117
+ ["https://{Region}.signin.csphome.hci.ic.gov", n],
118
+ ["https://{Region}.signin.csphome.adc-e.uk", n],
119
+ ["https://{Region}.signin.amazonaws-eusc.eu", n],
120
+ ["https://signin-fips.amazonaws-us-gov.com", n],
121
+ ["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
122
+ ["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
123
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
124
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
125
+ [i, n],
126
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
127
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
128
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
129
+ [a, "FIPS is enabled but this partition does not support FIPS"],
130
+ [h, n],
131
+ [a, "DualStack is enabled but this partition does not support DualStack"],
132
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
133
+ [a, "Invalid Configuration: Missing Region"]
134
+ ]
135
+ };
136
+ const root = 2;
137
+ const r = 100_000_000;
138
+ const nodes = new Int32Array([
139
+ -1, 1, -1,
140
+ 0, 4, 3,
141
+ 2, 30, r + 25,
142
+ 1, 24, 5,
143
+ 2, 30, 6,
144
+ 3, 7, 26,
145
+ 4, 18, 8,
146
+ 5, 17, 9,
147
+ 6, r + 4, 10,
148
+ 7, r + 5, 11,
149
+ 10, r + 6, 12,
150
+ 12, r + 7, 13,
151
+ 13, r + 8, 14,
152
+ 14, r + 9, 15,
153
+ 15, r + 10, 16,
154
+ 16, r + 11, r + 14,
155
+ 8, r + 22, r + 23,
156
+ 5, 22, 19,
157
+ 9, r + 12, 20,
158
+ 10, r + 13, 21,
159
+ 11, r + 20, r + 21,
160
+ 8, 23, r + 19,
161
+ 11, r + 18, r + 19,
162
+ 2, 29, 25,
163
+ 3, 32, 26,
164
+ 4, 27, r + 25,
165
+ 5, r + 25, 28,
166
+ 9, r + 12, r + 25,
167
+ 3, 32, 30,
168
+ 4, r + 15, 31,
169
+ 5, r + 16, r + 17,
170
+ 6, r + 1, 33,
171
+ 7, r + 2, r + 3,
172
+ ]);
173
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
174
+
175
+ const cache = new EndpointCache({
176
+ size: 50,
177
+ params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
178
+ });
179
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
180
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
181
+ endpointParams: endpointParams,
182
+ logger: context.logger,
183
+ }));
184
+ };
185
+ customEndpointFunctions.aws = awsEndpointFunctions;
186
+
187
+ class SigninServiceException extends ServiceException {
188
+ constructor(options) {
189
+ super(options);
190
+ Object.setPrototypeOf(this, SigninServiceException.prototype);
191
+ }
192
+ }
193
+
194
+ class AccessDeniedException extends SigninServiceException {
195
+ name = "AccessDeniedException";
196
+ $fault = "client";
197
+ error;
198
+ constructor(opts) {
199
+ super({
200
+ name: "AccessDeniedException",
201
+ $fault: "client",
202
+ ...opts,
203
+ });
204
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
205
+ this.error = opts.error;
206
+ }
207
+ }
208
+ class ConflictException extends SigninServiceException {
209
+ name = "ConflictException";
210
+ $fault = "client";
211
+ error;
212
+ constructor(opts) {
213
+ super({
214
+ name: "ConflictException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ Object.setPrototypeOf(this, ConflictException.prototype);
219
+ this.error = opts.error;
220
+ }
221
+ }
222
+ class InternalServerException extends SigninServiceException {
223
+ name = "InternalServerException";
224
+ $fault = "server";
225
+ error;
226
+ constructor(opts) {
227
+ super({
228
+ name: "InternalServerException",
229
+ $fault: "server",
230
+ ...opts,
231
+ });
232
+ Object.setPrototypeOf(this, InternalServerException.prototype);
233
+ this.error = opts.error;
234
+ }
235
+ }
236
+ class TooManyRequestsError extends SigninServiceException {
237
+ name = "TooManyRequestsError";
238
+ $fault = "client";
239
+ error;
240
+ constructor(opts) {
241
+ super({
242
+ name: "TooManyRequestsError",
243
+ $fault: "client",
244
+ ...opts,
245
+ });
246
+ Object.setPrototypeOf(this, TooManyRequestsError.prototype);
247
+ this.error = opts.error;
248
+ }
249
+ }
250
+ class ValidationException extends SigninServiceException {
251
+ name = "ValidationException";
252
+ $fault = "client";
253
+ error;
254
+ constructor(opts) {
255
+ super({
256
+ name: "ValidationException",
257
+ $fault: "client",
258
+ ...opts,
259
+ });
260
+ Object.setPrototypeOf(this, ValidationException.prototype);
261
+ this.error = opts.error;
262
+ }
263
+ }
264
+ class ResourceNotFoundException extends SigninServiceException {
265
+ name = "ResourceNotFoundException";
266
+ $fault = "client";
267
+ error;
268
+ constructor(opts) {
269
+ super({
270
+ name: "ResourceNotFoundException",
271
+ $fault: "client",
272
+ ...opts,
273
+ });
274
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
275
+ this.error = opts.error;
276
+ }
277
+ }
278
+ class ServiceQuotaExceededException extends SigninServiceException {
279
+ name = "ServiceQuotaExceededException";
280
+ $fault = "client";
281
+ error;
282
+ constructor(opts) {
283
+ super({
284
+ name: "ServiceQuotaExceededException",
285
+ $fault: "client",
286
+ ...opts,
287
+ });
288
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
289
+ this.error = opts.error;
290
+ }
291
+ }
292
+
293
+ const _A = "Action";
294
+ const _ADE = "AccessDeniedException";
295
+ const _AT = "AccessToken";
296
+ const _C = "Condition";
297
+ const _CB = "ConditionBlock";
298
+ const _CE = "ConflictException";
299
+ const _COAT = "CreateOAuth2Token";
300
+ const _COATR = "CreateOAuth2TokenRequest";
301
+ const _COATRB = "CreateOAuth2TokenRequestBody";
302
+ const _COATRBr = "CreateOAuth2TokenResponseBody";
303
+ const _COATRr = "CreateOAuth2TokenResponse";
304
+ const _DCAC = "DeleteConsoleAuthorizationConfiguration";
305
+ const _DCACI = "DeleteConsoleAuthorizationConfigurationInput";
306
+ const _DCACO = "DeleteConsoleAuthorizationConfigurationOutput";
307
+ const _DRPS = "DeleteResourcePermissionStatement";
308
+ const _DRPSI = "DeleteResourcePermissionStatementInput";
309
+ const _DRPSO = "DeleteResourcePermissionStatementOutput";
310
+ const _E = "Effect";
311
+ const _GCAC = "GetConsoleAuthorizationConfiguration";
312
+ const _GCACI = "GetConsoleAuthorizationConfigurationInput";
313
+ const _GCACO = "GetConsoleAuthorizationConfigurationOutput";
314
+ const _GRP = "GetResourcePolicy";
315
+ const _GRPI = "GetResourcePolicyInput";
316
+ const _GRPO = "GetResourcePolicyOutput";
317
+ const _ISE = "InternalServerException";
318
+ const _LRPS = "ListResourcePermissionStatements";
319
+ const _LRPSI = "ListResourcePermissionStatementsInput";
320
+ const _LRPSO = "ListResourcePermissionStatementsOutput";
321
+ const _P = "Principal";
322
+ const _PCAC = "PutConsoleAuthorizationConfiguration";
323
+ const _PCACI = "PutConsoleAuthorizationConfigurationInput";
324
+ const _PCACO = "PutConsoleAuthorizationConfigurationOutput";
325
+ const _PRPS = "PutResourcePermissionStatement";
326
+ const _PRPSI = "PutResourcePermissionStatementInput";
327
+ const _PRPSO = "PutResourcePermissionStatementOutput";
328
+ const _PS = "PolicyStatement";
329
+ const _PSS = "PermissionStatementSummary";
330
+ const _PSSe = "PermissionStatementSummaries";
331
+ const _PSo = "PolicyStatements";
332
+ const _R = "Resource";
333
+ const _RNFE = "ResourceNotFoundException";
334
+ const _RT = "RefreshToken";
335
+ const _S = "Statement";
336
+ const _SQEE = "ServiceQuotaExceededException";
337
+ const _SRBP = "SigninResourceBasedPolicy";
338
+ const _TMRE = "TooManyRequestsError";
339
+ const _V = "Version";
340
+ const _VE = "ValidationException";
341
+ const _a = "action";
342
+ const _aKI = "accessKeyId";
343
+ const _aT = "accessToken";
344
+ const _c = "client";
345
+ const _cAE = "consoleAuthorizationEnabled";
346
+ const _cI = "clientId";
347
+ const _cSV = "consoleSourceVpce";
348
+ const _cT = "clientToken";
349
+ const _cV = "codeVerifier";
350
+ const _co = "code";
351
+ const _con = "condition";
352
+ const _e = "error";
353
+ const _eI = "expiresIn";
354
+ const _eP = "excludedPrincipal";
355
+ const _ef = "effect";
356
+ const _gT = "grantType";
357
+ const _h = "http";
358
+ const _hE = "httpError";
359
+ const _iT = "idToken";
360
+ const _jN = "jsonName";
361
+ const _m = "message";
362
+ const _mR = "maxResults";
363
+ const _nT = "nextToken";
364
+ const _p = "principal";
365
+ const _pS = "permissionStatements";
366
+ const _r = "resource";
367
+ const _rR = "requestedRegion";
368
+ const _rT = "refreshToken";
369
+ const _rU = "redirectUri";
370
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
371
+ const _sAK = "secretAccessKey";
372
+ const _sI = "statementId";
373
+ const _sIo = "sourceIp";
374
+ const _sRBP = "signinResourceBasedPolicy";
375
+ const _sSV = "signinSourceVpce";
376
+ const _sT = "sessionToken";
377
+ const _sV = "sourceVpc";
378
+ const _sc = "scope";
379
+ const _se = "server";
380
+ const _si = "sid";
381
+ const _st = "statement";
382
+ const _tI = "tokenInput";
383
+ const _tIa = "targetId";
384
+ const _tO = "tokenOutput";
385
+ const _tT = "tokenType";
386
+ const _v = "version";
387
+ const _vSI = "vpcSourceIp";
388
+ const n0 = "com.amazonaws.signin";
389
+ const _s_registry = TypeRegistry.for(_s);
390
+ var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
391
+ _s_registry.registerError(SigninServiceException$, SigninServiceException);
392
+ const n0_registry = TypeRegistry.for(n0);
393
+ var AccessDeniedException$ = [-3, n0, _ADE,
394
+ { [_e]: _c },
395
+ [_e, _m],
396
+ [0, 0], 2
397
+ ];
398
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
399
+ var ConflictException$ = [-3, n0, _CE,
400
+ { [_e]: _c, [_hE]: 409 },
401
+ [_e, _m],
402
+ [0, 0], 2
403
+ ];
404
+ n0_registry.registerError(ConflictException$, ConflictException);
405
+ var InternalServerException$ = [-3, n0, _ISE,
406
+ { [_e]: _se, [_hE]: 500 },
407
+ [_e, _m],
408
+ [0, 0], 2
409
+ ];
410
+ n0_registry.registerError(InternalServerException$, InternalServerException);
411
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
412
+ { [_e]: _c, [_hE]: 404 },
413
+ [_e, _m],
414
+ [0, 0], 2
415
+ ];
416
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
417
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
418
+ { [_e]: _c, [_hE]: 402 },
419
+ [_e, _m],
420
+ [0, 0], 2
421
+ ];
422
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
423
+ var TooManyRequestsError$ = [-3, n0, _TMRE,
424
+ { [_e]: _c, [_hE]: 429 },
425
+ [_e, _m],
426
+ [0, 0], 2
427
+ ];
428
+ n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
429
+ var ValidationException$ = [-3, n0, _VE,
430
+ { [_e]: _c, [_hE]: 400 },
431
+ [_e, _m],
432
+ [0, 0], 2
433
+ ];
434
+ n0_registry.registerError(ValidationException$, ValidationException);
435
+ const errorTypeRegistries = [
436
+ _s_registry,
437
+ n0_registry,
438
+ ];
439
+ var RefreshToken = [0, n0, _RT, 8, 0];
440
+ var AccessToken$ = [3, n0, _AT,
441
+ 8,
442
+ [_aKI, _sAK, _sT],
443
+ [[0, { [_jN]: _aKI }], [0, { [_jN]: _sAK }], [0, { [_jN]: _sT }]], 3
444
+ ];
445
+ var CreateOAuth2TokenRequest$ = [3, n0, _COATR,
446
+ 0,
447
+ [_tI],
448
+ [[() => CreateOAuth2TokenRequestBody$, 16]], 1
449
+ ];
450
+ var CreateOAuth2TokenRequestBody$ = [3, n0, _COATRB,
451
+ 0,
452
+ [_cI, _gT, _co, _rU, _cV, _rT],
453
+ [[0, { [_jN]: _cI }], [0, { [_jN]: _gT }], 0, [0, { [_jN]: _rU }], [0, { [_jN]: _cV }], [() => RefreshToken, { [_jN]: _rT }]], 2
454
+ ];
455
+ var CreateOAuth2TokenResponse$ = [3, n0, _COATRr,
456
+ 0,
457
+ [_tO],
458
+ [[() => CreateOAuth2TokenResponseBody$, 16]], 1
459
+ ];
460
+ var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
461
+ 0,
462
+ [_aT, _tT, _eI, _rT, _iT],
463
+ [[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
464
+ ];
465
+ var DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
466
+ 0,
467
+ [_tIa],
468
+ [0]
469
+ ];
470
+ var DeleteConsoleAuthorizationConfigurationOutput$ = [3, n0, _DCACO,
471
+ 0,
472
+ [_tIa, _sc, _cAE],
473
+ [0, 0, 2], 3
474
+ ];
475
+ var DeleteResourcePermissionStatementInput$ = [3, n0, _DRPSI,
476
+ 0,
477
+ [_sI, _cT],
478
+ [0, [0, 4]], 1
479
+ ];
480
+ var DeleteResourcePermissionStatementOutput$ = [3, n0, _DRPSO,
481
+ 0,
482
+ [],
483
+ []
484
+ ];
485
+ var GetConsoleAuthorizationConfigurationInput$ = [3, n0, _GCACI,
486
+ 0,
487
+ [_tIa],
488
+ [0]
489
+ ];
490
+ var GetConsoleAuthorizationConfigurationOutput$ = [3, n0, _GCACO,
491
+ 0,
492
+ [_tIa, _sc, _cAE],
493
+ [0, 0, 2], 3
494
+ ];
495
+ var GetResourcePolicyInput$ = [3, n0, _GRPI,
496
+ 0,
497
+ [],
498
+ []
499
+ ];
500
+ var GetResourcePolicyOutput$ = [3, n0, _GRPO,
501
+ 0,
502
+ [_sRBP],
503
+ [[() => SigninResourceBasedPolicy$, 0]], 1
504
+ ];
505
+ var ListResourcePermissionStatementsInput$ = [3, n0, _LRPSI,
506
+ 0,
507
+ [_mR, _nT],
508
+ [1, 0]
509
+ ];
510
+ var ListResourcePermissionStatementsOutput$ = [3, n0, _LRPSO,
511
+ 0,
512
+ [_pS, _nT],
513
+ [() => PermissionStatementSummaries, 0], 1
514
+ ];
515
+ var PermissionStatementSummary$ = [3, n0, _PSS,
516
+ 0,
517
+ [_si, _con],
518
+ [0, [2, n0, _CB, 0, 0, [2, n0, _C, 0, 0, 64 | 0]]], 1
519
+ ];
520
+ var PolicyStatement$ = [3, n0, _PS,
521
+ 0,
522
+ [_ef, _p, _a, _r, _con],
523
+ [[0, { [_jN]: _E }], [128 | 0, { [_jN]: _P }], [64 | 0, { [_jN]: _A }], [0, { [_jN]: _R }], [[2, n0, _CB, 0, 0, [2, n0, _C, 0, 0, 64 | 0]], { [_jN]: _C }]]
524
+ ];
525
+ var PutConsoleAuthorizationConfigurationInput$ = [3, n0, _PCACI,
526
+ 0,
527
+ [_tIa],
528
+ [0]
529
+ ];
530
+ var PutConsoleAuthorizationConfigurationOutput$ = [3, n0, _PCACO,
531
+ 0,
532
+ [_tIa, _sc, _cAE],
533
+ [0, 0, 2], 3
534
+ ];
535
+ var PutResourcePermissionStatementInput$ = [3, n0, _PRPSI,
536
+ 0,
537
+ [_sV, _sSV, _cSV, _vSI, _sIo, _rR, _eP, _cT],
538
+ [0, 0, 0, 0, 0, 0, 0, [0, 4]]
539
+ ];
540
+ var PutResourcePermissionStatementOutput$ = [3, n0, _PRPSO,
541
+ 0,
542
+ [_sI],
543
+ [0], 1
544
+ ];
545
+ var SigninResourceBasedPolicy$ = [3, n0, _SRBP,
546
+ 0,
547
+ [_v, _st],
548
+ [[0, { [_jN]: _V }], [() => PolicyStatements, { [_jN]: _S }]]
549
+ ];
550
+ var PermissionStatementSummaries = [1, n0, _PSSe,
551
+ 0, () => PermissionStatementSummary$
552
+ ];
553
+ var PolicyStatements = [1, n0, _PSo,
554
+ 0, [() => PolicyStatement$,
555
+ 0]
556
+ ];
557
+ var CreateOAuth2Token$ = [9, n0, _COAT,
558
+ { [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
559
+ ];
560
+ var DeleteConsoleAuthorizationConfiguration$ = [9, n0, _DCAC,
561
+ { [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => DeleteConsoleAuthorizationConfigurationInput$, () => DeleteConsoleAuthorizationConfigurationOutput$
562
+ ];
563
+ var DeleteResourcePermissionStatement$ = [9, n0, _DRPS,
564
+ { [_h]: ["POST", "/delete-resource-permission-statement", 200] }, () => DeleteResourcePermissionStatementInput$, () => DeleteResourcePermissionStatementOutput$
565
+ ];
566
+ var GetConsoleAuthorizationConfiguration$ = [9, n0, _GCAC,
567
+ { [_h]: ["POST", "/get-console-authorization-configuration", 200] }, () => GetConsoleAuthorizationConfigurationInput$, () => GetConsoleAuthorizationConfigurationOutput$
568
+ ];
569
+ var GetResourcePolicy$ = [9, n0, _GRP,
570
+ { [_h]: ["POST", "/get-resource-policy", 200] }, () => GetResourcePolicyInput$, () => GetResourcePolicyOutput$
571
+ ];
572
+ var ListResourcePermissionStatements$ = [9, n0, _LRPS,
573
+ { [_h]: ["POST", "/list-resource-permission-statements", 200] }, () => ListResourcePermissionStatementsInput$, () => ListResourcePermissionStatementsOutput$
574
+ ];
575
+ var PutConsoleAuthorizationConfiguration$ = [9, n0, _PCAC,
576
+ { [_h]: ["POST", "/put-console-authorization-configuration", 200] }, () => PutConsoleAuthorizationConfigurationInput$, () => PutConsoleAuthorizationConfigurationOutput$
577
+ ];
578
+ var PutResourcePermissionStatement$ = [9, n0, _PRPS,
579
+ { [_h]: ["POST", "/put-resource-permission-statement", 200] }, () => PutResourcePermissionStatementInput$, () => PutResourcePermissionStatementOutput$
580
+ ];
581
+
582
+ const getRuntimeConfig$1 = (config) => {
583
+ return {
584
+ apiVersion: "2023-01-01",
585
+ base64Decoder: config?.base64Decoder ?? fromBase64,
586
+ base64Encoder: config?.base64Encoder ?? toBase64,
587
+ disableHostPrefix: config?.disableHostPrefix ?? false,
588
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
589
+ extensions: config?.extensions ?? [],
590
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
591
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
592
+ {
593
+ schemeId: "aws.auth#sigv4",
594
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
595
+ signer: new AwsSdkSigV4Signer(),
596
+ },
597
+ {
598
+ schemeId: "smithy.api#noAuth",
599
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
600
+ signer: new NoAuthSigner(),
601
+ },
602
+ ],
603
+ logger: config?.logger ?? new NoOpLogger(),
604
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
605
+ protocolSettings: config?.protocolSettings ?? {
606
+ defaultNamespace: "com.amazonaws.signin",
607
+ errorTypeRegistries,
608
+ version: "2023-01-01",
609
+ serviceTarget: "Signin",
610
+ },
611
+ serviceId: config?.serviceId ?? "Signin",
612
+ sha256: config?.sha256 ?? Sha256,
613
+ urlParser: config?.urlParser ?? parseUrl,
614
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
615
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
616
+ };
617
+ };
618
+
619
+ const getRuntimeConfig = (config) => {
620
+ emitWarningIfUnsupportedVersion(process.version);
621
+ const defaultsMode = resolveDefaultsModeConfig(config);
622
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
623
+ const clientSharedValues = getRuntimeConfig$1(config);
624
+ emitWarningIfUnsupportedVersion$1(process.version);
625
+ const loaderConfig = {
626
+ profile: config?.profile,
627
+ logger: clientSharedValues.logger,
628
+ };
629
+ return {
630
+ ...clientSharedValues,
631
+ ...config,
632
+ runtime: "node",
633
+ defaultsMode,
634
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
635
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
636
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
637
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
638
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
639
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
640
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
641
+ retryMode: config?.retryMode ??
642
+ loadConfig({
643
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
644
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
645
+ }, config),
646
+ streamCollector: config?.streamCollector ?? streamCollector,
647
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
648
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
649
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
650
+ };
651
+ };
652
+
34
653
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
654
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
655
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -262,15 +881,62 @@ const OAuth2ErrorCode = {
262
881
  USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
263
882
  };
264
883
 
884
+ exports.AccessDeniedException = AccessDeniedException;
885
+ exports.AccessDeniedException$ = AccessDeniedException$;
886
+ exports.AccessToken$ = AccessToken$;
887
+ exports.ConflictException = ConflictException;
888
+ exports.ConflictException$ = ConflictException$;
889
+ exports.CreateOAuth2Token$ = CreateOAuth2Token$;
265
890
  exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
891
+ exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
892
+ exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
893
+ exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
894
+ exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
895
+ exports.DeleteConsoleAuthorizationConfiguration$ = DeleteConsoleAuthorizationConfiguration$;
266
896
  exports.DeleteConsoleAuthorizationConfigurationCommand = DeleteConsoleAuthorizationConfigurationCommand;
897
+ exports.DeleteConsoleAuthorizationConfigurationInput$ = DeleteConsoleAuthorizationConfigurationInput$;
898
+ exports.DeleteConsoleAuthorizationConfigurationOutput$ = DeleteConsoleAuthorizationConfigurationOutput$;
899
+ exports.DeleteResourcePermissionStatement$ = DeleteResourcePermissionStatement$;
267
900
  exports.DeleteResourcePermissionStatementCommand = DeleteResourcePermissionStatementCommand;
901
+ exports.DeleteResourcePermissionStatementInput$ = DeleteResourcePermissionStatementInput$;
902
+ exports.DeleteResourcePermissionStatementOutput$ = DeleteResourcePermissionStatementOutput$;
903
+ exports.GetConsoleAuthorizationConfiguration$ = GetConsoleAuthorizationConfiguration$;
268
904
  exports.GetConsoleAuthorizationConfigurationCommand = GetConsoleAuthorizationConfigurationCommand;
905
+ exports.GetConsoleAuthorizationConfigurationInput$ = GetConsoleAuthorizationConfigurationInput$;
906
+ exports.GetConsoleAuthorizationConfigurationOutput$ = GetConsoleAuthorizationConfigurationOutput$;
907
+ exports.GetResourcePolicy$ = GetResourcePolicy$;
269
908
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
909
+ exports.GetResourcePolicyInput$ = GetResourcePolicyInput$;
910
+ exports.GetResourcePolicyOutput$ = GetResourcePolicyOutput$;
911
+ exports.InternalServerException = InternalServerException;
912
+ exports.InternalServerException$ = InternalServerException$;
913
+ exports.ListResourcePermissionStatements$ = ListResourcePermissionStatements$;
270
914
  exports.ListResourcePermissionStatementsCommand = ListResourcePermissionStatementsCommand;
915
+ exports.ListResourcePermissionStatementsInput$ = ListResourcePermissionStatementsInput$;
916
+ exports.ListResourcePermissionStatementsOutput$ = ListResourcePermissionStatementsOutput$;
271
917
  exports.OAuth2ErrorCode = OAuth2ErrorCode;
918
+ exports.PermissionStatementSummary$ = PermissionStatementSummary$;
919
+ exports.PolicyStatement$ = PolicyStatement$;
920
+ exports.PutConsoleAuthorizationConfiguration$ = PutConsoleAuthorizationConfiguration$;
272
921
  exports.PutConsoleAuthorizationConfigurationCommand = PutConsoleAuthorizationConfigurationCommand;
922
+ exports.PutConsoleAuthorizationConfigurationInput$ = PutConsoleAuthorizationConfigurationInput$;
923
+ exports.PutConsoleAuthorizationConfigurationOutput$ = PutConsoleAuthorizationConfigurationOutput$;
924
+ exports.PutResourcePermissionStatement$ = PutResourcePermissionStatement$;
273
925
  exports.PutResourcePermissionStatementCommand = PutResourcePermissionStatementCommand;
926
+ exports.PutResourcePermissionStatementInput$ = PutResourcePermissionStatementInput$;
927
+ exports.PutResourcePermissionStatementOutput$ = PutResourcePermissionStatementOutput$;
928
+ exports.ResourceNotFoundException = ResourceNotFoundException;
929
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
930
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
931
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
274
932
  exports.Signin = Signin;
275
933
  exports.SigninClient = SigninClient;
934
+ exports.SigninResourceBasedPolicy$ = SigninResourceBasedPolicy$;
935
+ exports.SigninServiceException = SigninServiceException;
936
+ exports.SigninServiceException$ = SigninServiceException$;
937
+ exports.TooManyRequestsError = TooManyRequestsError;
938
+ exports.TooManyRequestsError$ = TooManyRequestsError$;
939
+ exports.ValidationException = ValidationException;
940
+ exports.ValidationException$ = ValidationException$;
941
+ exports.errorTypeRegistries = errorTypeRegistries;
276
942
  exports.paginateListResourcePermissionStatements = paginateListResourcePermissionStatements;