@rharkor/caching-for-turbo 2.3.4 → 2.3.7
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/README.md +2 -0
- package/dist/cli/136.index.js +100 -108
- package/dist/cli/136.index.js.map +1 -1
- package/dist/cli/443.index.js +97 -155
- package/dist/cli/443.index.js.map +1 -1
- package/dist/cli/762.index.js +71 -162
- package/dist/cli/762.index.js.map +1 -1
- package/dist/cli/869.index.js +22 -24
- package/dist/cli/869.index.js.map +1 -1
- package/dist/cli/956.index.js +100 -108
- package/dist/cli/956.index.js.map +1 -1
- package/dist/cli/998.index.js +164 -246
- package/dist/cli/998.index.js.map +1 -1
- package/dist/cli/index.js +7298 -9726
- package/dist/cli/licenses.txt +201 -0
- package/package.json +2 -2
package/dist/cli/998.index.js
CHANGED
|
@@ -13,10 +13,9 @@ const util_middleware_1 = __webpack_require__(76324);
|
|
|
13
13
|
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
14
14
|
return {
|
|
15
15
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
16
|
-
region:
|
|
17
|
-
(
|
|
18
|
-
|
|
19
|
-
})(),
|
|
16
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
17
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
18
|
+
})(),
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
21
|
exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
|
|
@@ -43,22 +42,30 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
43
42
|
const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
44
43
|
const options = [];
|
|
45
44
|
switch (authParameters.operation) {
|
|
46
|
-
case "GetRoleCredentials":
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
case "
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
case "GetRoleCredentials":
|
|
46
|
+
{
|
|
47
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
;
|
|
51
|
+
case "ListAccountRoles":
|
|
52
|
+
{
|
|
53
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
;
|
|
57
|
+
case "ListAccounts":
|
|
58
|
+
{
|
|
59
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
;
|
|
63
|
+
case "Logout":
|
|
64
|
+
{
|
|
65
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
;
|
|
62
69
|
default: {
|
|
63
70
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
64
71
|
}
|
|
@@ -231,14 +238,14 @@ class SSOClient extends smithyClient.Client {
|
|
|
231
238
|
}
|
|
232
239
|
}
|
|
233
240
|
|
|
234
|
-
|
|
241
|
+
class SSOServiceException extends smithyClient.ServiceException {
|
|
235
242
|
constructor(options) {
|
|
236
243
|
super(options);
|
|
237
244
|
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
238
245
|
}
|
|
239
|
-
}
|
|
246
|
+
}
|
|
240
247
|
|
|
241
|
-
|
|
248
|
+
class InvalidRequestException extends SSOServiceException {
|
|
242
249
|
name = "InvalidRequestException";
|
|
243
250
|
$fault = "client";
|
|
244
251
|
constructor(opts) {
|
|
@@ -249,8 +256,8 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOService
|
|
|
249
256
|
});
|
|
250
257
|
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
251
258
|
}
|
|
252
|
-
}
|
|
253
|
-
|
|
259
|
+
}
|
|
260
|
+
class ResourceNotFoundException extends SSOServiceException {
|
|
254
261
|
name = "ResourceNotFoundException";
|
|
255
262
|
$fault = "client";
|
|
256
263
|
constructor(opts) {
|
|
@@ -261,8 +268,8 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSOSer
|
|
|
261
268
|
});
|
|
262
269
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
263
270
|
}
|
|
264
|
-
}
|
|
265
|
-
|
|
271
|
+
}
|
|
272
|
+
class TooManyRequestsException extends SSOServiceException {
|
|
266
273
|
name = "TooManyRequestsException";
|
|
267
274
|
$fault = "client";
|
|
268
275
|
constructor(opts) {
|
|
@@ -273,8 +280,8 @@ let TooManyRequestsException$1 = class TooManyRequestsException extends SSOServi
|
|
|
273
280
|
});
|
|
274
281
|
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
275
282
|
}
|
|
276
|
-
}
|
|
277
|
-
|
|
283
|
+
}
|
|
284
|
+
class UnauthorizedException extends SSOServiceException {
|
|
278
285
|
name = "UnauthorizedException";
|
|
279
286
|
$fault = "client";
|
|
280
287
|
constructor(opts) {
|
|
@@ -285,7 +292,7 @@ let UnauthorizedException$1 = class UnauthorizedException extends SSOServiceExce
|
|
|
285
292
|
});
|
|
286
293
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
287
294
|
}
|
|
288
|
-
}
|
|
295
|
+
}
|
|
289
296
|
|
|
290
297
|
const _AI = "AccountInfo";
|
|
291
298
|
const _ALT = "AccountListType";
|
|
@@ -341,213 +348,100 @@ const n0 = "com.amazonaws.sso";
|
|
|
341
348
|
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
342
349
|
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
343
350
|
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
344
|
-
var AccountInfo = [3, n0, _AI,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
351
|
+
var AccountInfo$ = [3, n0, _AI,
|
|
352
|
+
0,
|
|
353
|
+
[_aI, _aN, _eA],
|
|
354
|
+
[0, 0, 0]
|
|
355
|
+
];
|
|
356
|
+
var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
349
357
|
0,
|
|
350
358
|
[_rN, _aI, _aT],
|
|
351
|
-
[
|
|
352
|
-
[
|
|
353
|
-
0,
|
|
354
|
-
{
|
|
355
|
-
[_hQ]: _rn,
|
|
356
|
-
},
|
|
357
|
-
],
|
|
358
|
-
[
|
|
359
|
-
0,
|
|
360
|
-
{
|
|
361
|
-
[_hQ]: _ai,
|
|
362
|
-
},
|
|
363
|
-
],
|
|
364
|
-
[
|
|
365
|
-
() => AccessTokenType,
|
|
366
|
-
{
|
|
367
|
-
[_hH]: _xasbt,
|
|
368
|
-
},
|
|
369
|
-
],
|
|
370
|
-
],
|
|
359
|
+
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
371
360
|
];
|
|
372
|
-
var GetRoleCredentialsResponse = [3, n0, _GRCRe,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
[_hE]: 400,
|
|
380
|
-
},
|
|
361
|
+
var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
362
|
+
0,
|
|
363
|
+
[_rC],
|
|
364
|
+
[[() => RoleCredentials$, 0]]
|
|
365
|
+
];
|
|
366
|
+
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
367
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
381
368
|
[_m],
|
|
382
|
-
[0]
|
|
369
|
+
[0]
|
|
383
370
|
];
|
|
384
|
-
schema.TypeRegistry.for(n0).registerError(InvalidRequestException
|
|
385
|
-
var ListAccountRolesRequest = [
|
|
386
|
-
3,
|
|
387
|
-
n0,
|
|
388
|
-
_LARR,
|
|
371
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
372
|
+
var ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
389
373
|
0,
|
|
390
374
|
[_nT, _mR, _aT, _aI],
|
|
391
|
-
[
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
],
|
|
398
|
-
[
|
|
399
|
-
1,
|
|
400
|
-
{
|
|
401
|
-
[_hQ]: _mr,
|
|
402
|
-
},
|
|
403
|
-
],
|
|
404
|
-
[
|
|
405
|
-
() => AccessTokenType,
|
|
406
|
-
{
|
|
407
|
-
[_hH]: _xasbt,
|
|
408
|
-
},
|
|
409
|
-
],
|
|
410
|
-
[
|
|
411
|
-
0,
|
|
412
|
-
{
|
|
413
|
-
[_hQ]: _ai,
|
|
414
|
-
},
|
|
415
|
-
],
|
|
416
|
-
],
|
|
375
|
+
[[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }]]
|
|
376
|
+
];
|
|
377
|
+
var ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
378
|
+
0,
|
|
379
|
+
[_nT, _rL],
|
|
380
|
+
[0, () => RoleListType]
|
|
417
381
|
];
|
|
418
|
-
var
|
|
419
|
-
var ListAccountsRequest = [
|
|
420
|
-
3,
|
|
421
|
-
n0,
|
|
422
|
-
_LAR,
|
|
382
|
+
var ListAccountsRequest$ = [3, n0, _LAR,
|
|
423
383
|
0,
|
|
424
384
|
[_nT, _mR, _aT],
|
|
425
|
-
[
|
|
426
|
-
[
|
|
427
|
-
0,
|
|
428
|
-
{
|
|
429
|
-
[_hQ]: _nt,
|
|
430
|
-
},
|
|
431
|
-
],
|
|
432
|
-
[
|
|
433
|
-
1,
|
|
434
|
-
{
|
|
435
|
-
[_hQ]: _mr,
|
|
436
|
-
},
|
|
437
|
-
],
|
|
438
|
-
[
|
|
439
|
-
() => AccessTokenType,
|
|
440
|
-
{
|
|
441
|
-
[_hH]: _xasbt,
|
|
442
|
-
},
|
|
443
|
-
],
|
|
444
|
-
],
|
|
385
|
+
[[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
445
386
|
];
|
|
446
|
-
var ListAccountsResponse = [3, n0, _LARi,
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
387
|
+
var ListAccountsResponse$ = [3, n0, _LARi,
|
|
388
|
+
0,
|
|
389
|
+
[_nT, _aL],
|
|
390
|
+
[0, () => AccountListType]
|
|
391
|
+
];
|
|
392
|
+
var LogoutRequest$ = [3, n0, _LR,
|
|
451
393
|
0,
|
|
452
394
|
[_aT],
|
|
453
|
-
[
|
|
454
|
-
[
|
|
455
|
-
() => AccessTokenType,
|
|
456
|
-
{
|
|
457
|
-
[_hH]: _xasbt,
|
|
458
|
-
},
|
|
459
|
-
],
|
|
460
|
-
],
|
|
395
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
461
396
|
];
|
|
462
|
-
var ResourceNotFoundException = [
|
|
463
|
-
|
|
464
|
-
n0,
|
|
465
|
-
_RNFE,
|
|
466
|
-
{
|
|
467
|
-
[_e]: _c,
|
|
468
|
-
[_hE]: 404,
|
|
469
|
-
},
|
|
397
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
398
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
470
399
|
[_m],
|
|
471
|
-
[0]
|
|
400
|
+
[0]
|
|
472
401
|
];
|
|
473
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException
|
|
474
|
-
var RoleCredentials = [
|
|
475
|
-
3,
|
|
476
|
-
n0,
|
|
477
|
-
_RC,
|
|
402
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
403
|
+
var RoleCredentials$ = [3, n0, _RC,
|
|
478
404
|
0,
|
|
479
405
|
[_aKI, _sAK, _sT, _ex],
|
|
480
|
-
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
406
|
+
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
481
407
|
];
|
|
482
|
-
var RoleInfo = [3, n0, _RI,
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
[_hE]: 429,
|
|
490
|
-
},
|
|
408
|
+
var RoleInfo$ = [3, n0, _RI,
|
|
409
|
+
0,
|
|
410
|
+
[_rN, _aI],
|
|
411
|
+
[0, 0]
|
|
412
|
+
];
|
|
413
|
+
var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
414
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
491
415
|
[_m],
|
|
492
|
-
[0]
|
|
416
|
+
[0]
|
|
493
417
|
];
|
|
494
|
-
schema.TypeRegistry.for(n0).registerError(TooManyRequestsException
|
|
495
|
-
var UnauthorizedException = [
|
|
496
|
-
|
|
497
|
-
n0,
|
|
498
|
-
_UE,
|
|
499
|
-
{
|
|
500
|
-
[_e]: _c,
|
|
501
|
-
[_hE]: 401,
|
|
502
|
-
},
|
|
418
|
+
schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
419
|
+
var UnauthorizedException$ = [-3, n0, _UE,
|
|
420
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
503
421
|
[_m],
|
|
504
|
-
[0]
|
|
422
|
+
[0]
|
|
505
423
|
];
|
|
506
|
-
schema.TypeRegistry.for(n0).registerError(UnauthorizedException
|
|
424
|
+
schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
|
|
507
425
|
var __Unit = "unit";
|
|
508
|
-
var SSOServiceException = [-3, _s, "SSOServiceException", 0, [], []];
|
|
509
|
-
schema.TypeRegistry.for(_s).registerError(SSOServiceException
|
|
510
|
-
var AccountListType = [1, n0, _ALT,
|
|
511
|
-
|
|
512
|
-
var GetRoleCredentials = [
|
|
513
|
-
9,
|
|
514
|
-
n0,
|
|
515
|
-
_GRC,
|
|
516
|
-
{
|
|
517
|
-
[_h]: ["GET", "/federation/credentials", 200],
|
|
518
|
-
},
|
|
519
|
-
() => GetRoleCredentialsRequest,
|
|
520
|
-
() => GetRoleCredentialsResponse,
|
|
426
|
+
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
427
|
+
schema.TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException);
|
|
428
|
+
var AccountListType = [1, n0, _ALT,
|
|
429
|
+
0, () => AccountInfo$
|
|
521
430
|
];
|
|
522
|
-
var
|
|
523
|
-
|
|
524
|
-
n0,
|
|
525
|
-
_LARis,
|
|
526
|
-
{
|
|
527
|
-
[_h]: ["GET", "/assignment/roles", 200],
|
|
528
|
-
},
|
|
529
|
-
() => ListAccountRolesRequest,
|
|
530
|
-
() => ListAccountRolesResponse,
|
|
431
|
+
var RoleListType = [1, n0, _RLT,
|
|
432
|
+
0, () => RoleInfo$
|
|
531
433
|
];
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
n0,
|
|
535
|
-
_LA,
|
|
536
|
-
{
|
|
537
|
-
[_h]: ["GET", "/assignment/accounts", 200],
|
|
538
|
-
},
|
|
539
|
-
() => ListAccountsRequest,
|
|
540
|
-
() => ListAccountsResponse,
|
|
434
|
+
var GetRoleCredentials$ = [9, n0, _GRC,
|
|
435
|
+
{ [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
|
|
541
436
|
];
|
|
542
|
-
var
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
{
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
() => LogoutRequest
|
|
550
|
-
() => __Unit,
|
|
437
|
+
var ListAccountRoles$ = [9, n0, _LARis,
|
|
438
|
+
{ [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
|
|
439
|
+
];
|
|
440
|
+
var ListAccounts$ = [9, n0, _LA,
|
|
441
|
+
{ [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
|
|
442
|
+
];
|
|
443
|
+
var Logout$ = [9, n0, _L,
|
|
444
|
+
{ [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
|
|
551
445
|
];
|
|
552
446
|
|
|
553
447
|
class GetRoleCredentialsCommand extends smithyClient.Command
|
|
@@ -558,7 +452,7 @@ class GetRoleCredentialsCommand extends smithyClient.Command
|
|
|
558
452
|
})
|
|
559
453
|
.s("SWBPortalService", "GetRoleCredentials", {})
|
|
560
454
|
.n("SSOClient", "GetRoleCredentialsCommand")
|
|
561
|
-
.sc(GetRoleCredentials)
|
|
455
|
+
.sc(GetRoleCredentials$)
|
|
562
456
|
.build() {
|
|
563
457
|
}
|
|
564
458
|
|
|
@@ -570,7 +464,7 @@ class ListAccountRolesCommand extends smithyClient.Command
|
|
|
570
464
|
})
|
|
571
465
|
.s("SWBPortalService", "ListAccountRoles", {})
|
|
572
466
|
.n("SSOClient", "ListAccountRolesCommand")
|
|
573
|
-
.sc(ListAccountRoles)
|
|
467
|
+
.sc(ListAccountRoles$)
|
|
574
468
|
.build() {
|
|
575
469
|
}
|
|
576
470
|
|
|
@@ -582,7 +476,7 @@ class ListAccountsCommand extends smithyClient.Command
|
|
|
582
476
|
})
|
|
583
477
|
.s("SWBPortalService", "ListAccounts", {})
|
|
584
478
|
.n("SSOClient", "ListAccountsCommand")
|
|
585
|
-
.sc(ListAccounts)
|
|
479
|
+
.sc(ListAccounts$)
|
|
586
480
|
.build() {
|
|
587
481
|
}
|
|
588
482
|
|
|
@@ -594,7 +488,7 @@ class LogoutCommand extends smithyClient.Command
|
|
|
594
488
|
})
|
|
595
489
|
.s("SWBPortalService", "Logout", {})
|
|
596
490
|
.n("SSOClient", "LogoutCommand")
|
|
597
|
-
.sc(Logout)
|
|
491
|
+
.sc(Logout$)
|
|
598
492
|
.build() {
|
|
599
493
|
}
|
|
600
494
|
|
|
@@ -620,17 +514,36 @@ Object.defineProperty(exports, "__Client", ({
|
|
|
620
514
|
enumerable: true,
|
|
621
515
|
get: function () { return smithyClient.Client; }
|
|
622
516
|
}));
|
|
517
|
+
exports.AccountInfo$ = AccountInfo$;
|
|
518
|
+
exports.GetRoleCredentials$ = GetRoleCredentials$;
|
|
623
519
|
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
624
|
-
exports.
|
|
520
|
+
exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
|
|
521
|
+
exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;
|
|
522
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
523
|
+
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
524
|
+
exports.ListAccountRoles$ = ListAccountRoles$;
|
|
625
525
|
exports.ListAccountRolesCommand = ListAccountRolesCommand;
|
|
526
|
+
exports.ListAccountRolesRequest$ = ListAccountRolesRequest$;
|
|
527
|
+
exports.ListAccountRolesResponse$ = ListAccountRolesResponse$;
|
|
528
|
+
exports.ListAccounts$ = ListAccounts$;
|
|
626
529
|
exports.ListAccountsCommand = ListAccountsCommand;
|
|
530
|
+
exports.ListAccountsRequest$ = ListAccountsRequest$;
|
|
531
|
+
exports.ListAccountsResponse$ = ListAccountsResponse$;
|
|
532
|
+
exports.Logout$ = Logout$;
|
|
627
533
|
exports.LogoutCommand = LogoutCommand;
|
|
628
|
-
exports.
|
|
534
|
+
exports.LogoutRequest$ = LogoutRequest$;
|
|
535
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
536
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
537
|
+
exports.RoleCredentials$ = RoleCredentials$;
|
|
538
|
+
exports.RoleInfo$ = RoleInfo$;
|
|
629
539
|
exports.SSO = SSO;
|
|
630
540
|
exports.SSOClient = SSOClient;
|
|
631
|
-
exports.SSOServiceException = SSOServiceException
|
|
632
|
-
exports.
|
|
633
|
-
exports.
|
|
541
|
+
exports.SSOServiceException = SSOServiceException;
|
|
542
|
+
exports.SSOServiceException$ = SSOServiceException$;
|
|
543
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
544
|
+
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
545
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
546
|
+
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
634
547
|
exports.paginateListAccountRoles = paginateListAccountRoles;
|
|
635
548
|
exports.paginateListAccounts = paginateListAccounts;
|
|
636
549
|
|
|
@@ -652,14 +565,13 @@ const hash_node_1 = __webpack_require__(5092);
|
|
|
652
565
|
const middleware_retry_1 = __webpack_require__(19618);
|
|
653
566
|
const node_config_provider_1 = __webpack_require__(55704);
|
|
654
567
|
const node_http_handler_1 = __webpack_require__(61279);
|
|
568
|
+
const smithy_client_1 = __webpack_require__(61411);
|
|
655
569
|
const util_body_length_node_1 = __webpack_require__(13638);
|
|
570
|
+
const util_defaults_mode_node_1 = __webpack_require__(15435);
|
|
656
571
|
const util_retry_1 = __webpack_require__(15518);
|
|
657
572
|
const runtimeConfig_shared_1 = __webpack_require__(8073);
|
|
658
|
-
const smithy_client_1 = __webpack_require__(61411);
|
|
659
|
-
const util_defaults_mode_node_1 = __webpack_require__(15435);
|
|
660
|
-
const smithy_client_2 = __webpack_require__(61411);
|
|
661
573
|
const getRuntimeConfig = (config) => {
|
|
662
|
-
(0,
|
|
574
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
663
575
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
664
576
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
665
577
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -675,11 +587,9 @@ const getRuntimeConfig = (config) => {
|
|
|
675
587
|
defaultsMode,
|
|
676
588
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
677
589
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
678
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
679
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
590
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
680
591
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
681
|
-
region: config?.region ??
|
|
682
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
592
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
683
593
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
684
594
|
retryMode: config?.retryMode ??
|
|
685
595
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -735,7 +645,12 @@ const getRuntimeConfig = (config) => {
|
|
|
735
645
|
},
|
|
736
646
|
],
|
|
737
647
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
738
|
-
protocol: config?.protocol ??
|
|
648
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
649
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
650
|
+
defaultNamespace: "com.amazonaws.sso",
|
|
651
|
+
version: "2019-06-10",
|
|
652
|
+
serviceTarget: "SWBPortalService",
|
|
653
|
+
},
|
|
739
654
|
serviceId: config?.serviceId ?? "SSO",
|
|
740
655
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
741
656
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -926,7 +841,15 @@ const resolveAwsSdkSigV4Config = (config) => {
|
|
|
926
841
|
});
|
|
927
842
|
const boundProvider = bindCallerConfig(config, memoizedProvider);
|
|
928
843
|
if (isUserSupplied && !boundProvider.attributed) {
|
|
929
|
-
|
|
844
|
+
const isCredentialObject = typeof inputCredentials === "object" && inputCredentials !== null;
|
|
845
|
+
resolvedCredentials = async (options) => {
|
|
846
|
+
const creds = await boundProvider(options);
|
|
847
|
+
const attributedCreds = creds;
|
|
848
|
+
if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) {
|
|
849
|
+
return client.setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e");
|
|
850
|
+
}
|
|
851
|
+
return attributedCreds;
|
|
852
|
+
};
|
|
930
853
|
resolvedCredentials.memoized = boundProvider.memoized;
|
|
931
854
|
resolvedCredentials.configBound = boundProvider.configBound;
|
|
932
855
|
resolvedCredentials.attributed = true;
|
|
@@ -1072,7 +995,7 @@ const isSsoProfile = (arg) => arg &&
|
|
|
1072
995
|
typeof arg.sso_role_name === "string");
|
|
1073
996
|
|
|
1074
997
|
const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
1075
|
-
const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => {
|
|
998
|
+
const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => {
|
|
1076
999
|
let token;
|
|
1077
1000
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
1078
1001
|
if (ssoSession) {
|
|
@@ -1116,9 +1039,9 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
1116
1039
|
const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return __webpack_require__(16553); });
|
|
1117
1040
|
const sso = ssoClient ||
|
|
1118
1041
|
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
1119
|
-
logger: clientConfig?.logger ?? parentClientConfig?.logger,
|
|
1042
|
+
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
1120
1043
|
region: clientConfig?.region ?? ssoRegion,
|
|
1121
|
-
userAgentAppId: clientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId,
|
|
1044
|
+
userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId,
|
|
1122
1045
|
}));
|
|
1123
1046
|
let ssoResp;
|
|
1124
1047
|
try {
|
|
@@ -1214,6 +1137,7 @@ const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
1214
1137
|
ssoClient: ssoClient,
|
|
1215
1138
|
clientConfig: init.clientConfig,
|
|
1216
1139
|
parentClientConfig: init.parentClientConfig,
|
|
1140
|
+
callerClientConfig: init.callerClientConfig,
|
|
1217
1141
|
profile: profileName,
|
|
1218
1142
|
filepath: init.filepath,
|
|
1219
1143
|
configFilepath: init.configFilepath,
|
|
@@ -1235,6 +1159,7 @@ const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
1235
1159
|
ssoClient,
|
|
1236
1160
|
clientConfig: init.clientConfig,
|
|
1237
1161
|
parentClientConfig: init.parentClientConfig,
|
|
1162
|
+
callerClientConfig: init.callerClientConfig,
|
|
1238
1163
|
profile: profileName,
|
|
1239
1164
|
filepath: init.filepath,
|
|
1240
1165
|
configFilepath: init.configFilepath,
|
|
@@ -1300,9 +1225,9 @@ const fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
|
|
|
1300
1225
|
const EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
1301
1226
|
const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
1302
1227
|
|
|
1303
|
-
const getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
1228
|
+
const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
1304
1229
|
const { SSOOIDCClient } = await __webpack_require__.e(/* import() */ 443).then(__webpack_require__.t.bind(__webpack_require__, 89443, 19));
|
|
1305
|
-
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop];
|
|
1230
|
+
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
1306
1231
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
1307
1232
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
1308
1233
|
logger: coalesce("logger"),
|
|
@@ -1311,9 +1236,9 @@ const getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
|
1311
1236
|
return ssoOidcClient;
|
|
1312
1237
|
};
|
|
1313
1238
|
|
|
1314
|
-
const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
1239
|
+
const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
1315
1240
|
const { CreateTokenCommand } = await __webpack_require__.e(/* import() */ 443).then(__webpack_require__.t.bind(__webpack_require__, 89443, 19));
|
|
1316
|
-
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
|
|
1241
|
+
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
1317
1242
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
1318
1243
|
clientId: ssoToken.clientId,
|
|
1319
1244
|
clientSecret: ssoToken.clientSecret,
|
|
@@ -1342,14 +1267,7 @@ const writeSSOTokenToFile = (id, ssoToken) => {
|
|
|
1342
1267
|
};
|
|
1343
1268
|
|
|
1344
1269
|
const lastRefreshAttemptTime = new Date(0);
|
|
1345
|
-
const fromSso = (
|
|
1346
|
-
const init = {
|
|
1347
|
-
..._init,
|
|
1348
|
-
parentClientConfig: {
|
|
1349
|
-
...callerClientConfig,
|
|
1350
|
-
..._init.parentClientConfig,
|
|
1351
|
-
},
|
|
1352
|
-
};
|
|
1270
|
+
const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
1353
1271
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
1354
1272
|
const profiles = await sharedIniFileLoader.parseKnownFiles(init);
|
|
1355
1273
|
const profileName = sharedIniFileLoader.getProfileName({
|
|
@@ -1398,7 +1316,7 @@ const fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
1398
1316
|
validateTokenKey("refreshToken", ssoToken.refreshToken, true);
|
|
1399
1317
|
try {
|
|
1400
1318
|
lastRefreshAttemptTime.setTime(Date.now());
|
|
1401
|
-
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init);
|
|
1319
|
+
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
|
|
1402
1320
|
validateTokenKey("accessToken", newSsoOidcToken.accessToken);
|
|
1403
1321
|
validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
|
|
1404
1322
|
const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);
|
|
@@ -1446,7 +1364,7 @@ exports.nodeProvider = nodeProvider;
|
|
|
1446
1364
|
/***/ 45188:
|
|
1447
1365
|
/***/ ((module) => {
|
|
1448
1366
|
|
|
1449
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.
|
|
1367
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.968.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.968.0","@aws-sdk/middleware-host-header":"3.968.0","@aws-sdk/middleware-logger":"3.968.0","@aws-sdk/middleware-recursion-detection":"3.968.0","@aws-sdk/middleware-user-agent":"3.968.0","@aws-sdk/region-config-resolver":"3.968.0","@aws-sdk/types":"3.968.0","@aws-sdk/util-endpoints":"3.968.0","@aws-sdk/util-user-agent-browser":"3.968.0","@aws-sdk/util-user-agent-node":"3.968.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.3","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.4","@smithy/middleware-retry":"^4.4.20","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.5","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.19","@smithy/util-defaults-mode-node":"^4.2.22","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"5.0.10","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
|
1450
1368
|
|
|
1451
1369
|
/***/ })
|
|
1452
1370
|
|