@cloudsnorkel/cdk-github-runners 0.5.7 → 0.6.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 (40) hide show
  1. package/.jsii +1501 -327
  2. package/API.md +836 -186
  3. package/README.md +11 -11
  4. package/lib/index.d.ts +5 -2
  5. package/lib/index.js +7 -2
  6. package/lib/lambdas/delete-ami/index.js +130 -0
  7. package/lib/lambdas/setup/index.html +1 -1
  8. package/lib/lambdas/status/index.js +11 -1
  9. package/lib/lambdas/update-lambda/index.js +2420 -429
  10. package/lib/providers/codebuild.d.ts +6 -4
  11. package/lib/providers/codebuild.js +20 -3
  12. package/lib/providers/common.d.ts +137 -9
  13. package/lib/providers/common.js +53 -4
  14. package/lib/providers/docker-images/codebuild/linux-arm64/Dockerfile +1 -0
  15. package/lib/providers/docker-images/codebuild/linux-x64/Dockerfile +1 -0
  16. package/lib/providers/docker-images/fargate/linux-arm64/Dockerfile +1 -0
  17. package/lib/providers/docker-images/fargate/linux-x64/Dockerfile +1 -0
  18. package/lib/providers/docker-images/lambda/linux-arm64/runner.sh +2 -0
  19. package/lib/providers/docker-images/lambda/linux-x64/runner.sh +2 -0
  20. package/lib/providers/ec2.d.ts +106 -0
  21. package/lib/providers/ec2.js +252 -0
  22. package/lib/providers/fargate.d.ts +5 -3
  23. package/lib/providers/fargate.js +26 -5
  24. package/lib/providers/image-builders/ami.d.ts +131 -0
  25. package/lib/providers/image-builders/ami.js +274 -0
  26. package/lib/providers/image-builders/codebuild.js +3 -2
  27. package/lib/providers/image-builders/common.d.ts +196 -0
  28. package/lib/providers/image-builders/common.js +288 -0
  29. package/lib/providers/image-builders/container.d.ts +6 -100
  30. package/lib/providers/image-builders/container.js +41 -304
  31. package/lib/providers/image-builders/linux-components.d.ts +15 -0
  32. package/lib/providers/image-builders/linux-components.js +156 -0
  33. package/lib/providers/image-builders/static.js +3 -2
  34. package/lib/providers/image-builders/windows-components.d.ts +14 -0
  35. package/lib/providers/image-builders/windows-components.js +119 -0
  36. package/lib/providers/lambda.d.ts +5 -3
  37. package/lib/providers/lambda.js +20 -3
  38. package/lib/runner.js +8 -18
  39. package/lib/secrets.js +1 -1
  40. package/package.json +13 -13
@@ -921,6 +921,28 @@ var require_dist_cjs5 = __commonJS({
921
921
  }
922
922
  });
923
923
 
924
+ // node_modules/@aws-sdk/smithy-client/dist-cjs/NoOpLogger.js
925
+ var require_NoOpLogger = __commonJS({
926
+ "node_modules/@aws-sdk/smithy-client/dist-cjs/NoOpLogger.js"(exports) {
927
+ "use strict";
928
+ Object.defineProperty(exports, "__esModule", { value: true });
929
+ exports.NoOpLogger = void 0;
930
+ var NoOpLogger = class {
931
+ trace() {
932
+ }
933
+ debug() {
934
+ }
935
+ info() {
936
+ }
937
+ warn() {
938
+ }
939
+ error() {
940
+ }
941
+ };
942
+ exports.NoOpLogger = NoOpLogger;
943
+ }
944
+ });
945
+
924
946
  // node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js
925
947
  var require_MiddlewareStack = __commonJS({
926
948
  "node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js"(exports) {
@@ -1989,6 +2011,7 @@ var require_dist_cjs7 = __commonJS({
1989
2011
  "use strict";
1990
2012
  Object.defineProperty(exports, "__esModule", { value: true });
1991
2013
  var tslib_1 = require_tslib();
2014
+ tslib_1.__exportStar(require_NoOpLogger(), exports);
1992
2015
  tslib_1.__exportStar(require_client(), exports);
1993
2016
  tslib_1.__exportStar(require_command(), exports);
1994
2017
  tslib_1.__exportStar(require_constants(), exports);
@@ -2252,6 +2275,7 @@ var require_models_0 = __commonJS({
2252
2275
  Runtime2["nodejs12x"] = "nodejs12.x";
2253
2276
  Runtime2["nodejs14x"] = "nodejs14.x";
2254
2277
  Runtime2["nodejs16x"] = "nodejs16.x";
2278
+ Runtime2["nodejs18x"] = "nodejs18.x";
2255
2279
  Runtime2["nodejs43"] = "nodejs4.3";
2256
2280
  Runtime2["nodejs43edge"] = "nodejs4.3-edge";
2257
2281
  Runtime2["nodejs610"] = "nodejs6.10";
@@ -9357,10 +9381,8 @@ var require_Aws_restJson1 = __commonJS({
9357
9381
  if (value === null) {
9358
9382
  return acc;
9359
9383
  }
9360
- return {
9361
- ...acc,
9362
- [key]: (0, smithy_client_1.serializeFloat)(value)
9363
- };
9384
+ acc[key] = (0, smithy_client_1.serializeFloat)(value);
9385
+ return acc;
9364
9386
  }, {});
9365
9387
  };
9366
9388
  var serializeAws_restJson1AliasRoutingConfiguration = (input, context) => {
@@ -9451,10 +9473,8 @@ var require_Aws_restJson1 = __commonJS({
9451
9473
  if (value === null) {
9452
9474
  return acc;
9453
9475
  }
9454
- return {
9455
- ...acc,
9456
- [key]: serializeAws_restJson1EndpointLists(value, context)
9457
- };
9476
+ acc[key] = serializeAws_restJson1EndpointLists(value, context);
9477
+ return acc;
9458
9478
  }, {});
9459
9479
  };
9460
9480
  var serializeAws_restJson1Environment = (input, context) => {
@@ -9467,10 +9487,8 @@ var require_Aws_restJson1 = __commonJS({
9467
9487
  if (value === null) {
9468
9488
  return acc;
9469
9489
  }
9470
- return {
9471
- ...acc,
9472
- [key]: value
9473
- };
9490
+ acc[key] = value;
9491
+ return acc;
9474
9492
  }, {});
9475
9493
  };
9476
9494
  var serializeAws_restJson1EphemeralStorage = (input, context) => {
@@ -9604,10 +9622,8 @@ var require_Aws_restJson1 = __commonJS({
9604
9622
  if (value === null) {
9605
9623
  return acc;
9606
9624
  }
9607
- return {
9608
- ...acc,
9609
- [key]: value
9610
- };
9625
+ acc[key] = value;
9626
+ return acc;
9611
9627
  }, {});
9612
9628
  };
9613
9629
  var serializeAws_restJson1Topics = (input, context) => {
@@ -9648,10 +9664,8 @@ var require_Aws_restJson1 = __commonJS({
9648
9664
  if (value === null) {
9649
9665
  return acc;
9650
9666
  }
9651
- return {
9652
- ...acc,
9653
- [key]: (0, smithy_client_1.limitedParseDouble)(value)
9654
- };
9667
+ acc[key] = (0, smithy_client_1.limitedParseDouble)(value);
9668
+ return acc;
9655
9669
  }, {});
9656
9670
  };
9657
9671
  var deserializeAws_restJson1AliasConfiguration = (output, context) => {
@@ -9797,10 +9811,8 @@ var require_Aws_restJson1 = __commonJS({
9797
9811
  if (value === null) {
9798
9812
  return acc;
9799
9813
  }
9800
- return {
9801
- ...acc,
9802
- [key]: deserializeAws_restJson1EndpointLists(value, context)
9803
- };
9814
+ acc[key] = deserializeAws_restJson1EndpointLists(value, context);
9815
+ return acc;
9804
9816
  }, {});
9805
9817
  };
9806
9818
  var deserializeAws_restJson1EnvironmentError = (output, context) => {
@@ -9820,10 +9832,8 @@ var require_Aws_restJson1 = __commonJS({
9820
9832
  if (value === null) {
9821
9833
  return acc;
9822
9834
  }
9823
- return {
9824
- ...acc,
9825
- [key]: (0, smithy_client_1.expectString)(value)
9826
- };
9835
+ acc[key] = (0, smithy_client_1.expectString)(value);
9836
+ return acc;
9827
9837
  }, {});
9828
9838
  };
9829
9839
  var deserializeAws_restJson1EphemeralStorage = (output, context) => {
@@ -10207,10 +10217,8 @@ var require_Aws_restJson1 = __commonJS({
10207
10217
  if (value === null) {
10208
10218
  return acc;
10209
10219
  }
10210
- return {
10211
- ...acc,
10212
- [key]: (0, smithy_client_1.expectString)(value)
10213
- };
10220
+ acc[key] = (0, smithy_client_1.expectString)(value);
10221
+ return acc;
10214
10222
  }, {});
10215
10223
  };
10216
10224
  var deserializeAws_restJson1Topics = (output, context) => {
@@ -16294,7 +16302,7 @@ var require_package = __commonJS({
16294
16302
  module2.exports = {
16295
16303
  name: "@aws-sdk/client-lambda",
16296
16304
  description: "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
16297
- version: "3.204.0",
16305
+ version: "3.216.0",
16298
16306
  scripts: {
16299
16307
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
16300
16308
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -16312,47 +16320,45 @@ var require_package = __commonJS({
16312
16320
  dependencies: {
16313
16321
  "@aws-crypto/sha256-browser": "2.0.0",
16314
16322
  "@aws-crypto/sha256-js": "2.0.0",
16315
- "@aws-sdk/client-sts": "3.204.0",
16316
- "@aws-sdk/config-resolver": "3.201.0",
16317
- "@aws-sdk/credential-provider-node": "3.204.0",
16318
- "@aws-sdk/fetch-http-handler": "3.204.0",
16319
- "@aws-sdk/hash-node": "3.201.0",
16320
- "@aws-sdk/invalid-dependency": "3.201.0",
16321
- "@aws-sdk/middleware-content-length": "3.201.0",
16322
- "@aws-sdk/middleware-endpoint": "3.201.0",
16323
- "@aws-sdk/middleware-host-header": "3.201.0",
16324
- "@aws-sdk/middleware-logger": "3.201.0",
16325
- "@aws-sdk/middleware-recursion-detection": "3.201.0",
16326
- "@aws-sdk/middleware-retry": "3.201.0",
16327
- "@aws-sdk/middleware-serde": "3.201.0",
16328
- "@aws-sdk/middleware-signing": "3.201.0",
16329
- "@aws-sdk/middleware-stack": "3.201.0",
16330
- "@aws-sdk/middleware-user-agent": "3.201.0",
16331
- "@aws-sdk/node-config-provider": "3.201.0",
16332
- "@aws-sdk/node-http-handler": "3.201.0",
16333
- "@aws-sdk/protocol-http": "3.201.0",
16334
- "@aws-sdk/smithy-client": "3.201.0",
16335
- "@aws-sdk/types": "3.201.0",
16336
- "@aws-sdk/url-parser": "3.201.0",
16337
- "@aws-sdk/util-base64": "3.202.0",
16338
- "@aws-sdk/util-base64-browser": "3.188.0",
16339
- "@aws-sdk/util-base64-node": "3.201.0",
16323
+ "@aws-sdk/client-sts": "3.216.0",
16324
+ "@aws-sdk/config-resolver": "3.215.0",
16325
+ "@aws-sdk/credential-provider-node": "3.216.0",
16326
+ "@aws-sdk/fetch-http-handler": "3.215.0",
16327
+ "@aws-sdk/hash-node": "3.215.0",
16328
+ "@aws-sdk/invalid-dependency": "3.215.0",
16329
+ "@aws-sdk/middleware-content-length": "3.215.0",
16330
+ "@aws-sdk/middleware-endpoint": "3.215.0",
16331
+ "@aws-sdk/middleware-host-header": "3.215.0",
16332
+ "@aws-sdk/middleware-logger": "3.215.0",
16333
+ "@aws-sdk/middleware-recursion-detection": "3.215.0",
16334
+ "@aws-sdk/middleware-retry": "3.215.0",
16335
+ "@aws-sdk/middleware-serde": "3.215.0",
16336
+ "@aws-sdk/middleware-signing": "3.215.0",
16337
+ "@aws-sdk/middleware-stack": "3.215.0",
16338
+ "@aws-sdk/middleware-user-agent": "3.215.0",
16339
+ "@aws-sdk/node-config-provider": "3.215.0",
16340
+ "@aws-sdk/node-http-handler": "3.215.0",
16341
+ "@aws-sdk/protocol-http": "3.215.0",
16342
+ "@aws-sdk/smithy-client": "3.215.0",
16343
+ "@aws-sdk/types": "3.215.0",
16344
+ "@aws-sdk/url-parser": "3.215.0",
16345
+ "@aws-sdk/util-base64": "3.208.0",
16340
16346
  "@aws-sdk/util-body-length-browser": "3.188.0",
16341
- "@aws-sdk/util-body-length-node": "3.201.0",
16342
- "@aws-sdk/util-defaults-mode-browser": "3.201.0",
16343
- "@aws-sdk/util-defaults-mode-node": "3.201.0",
16344
- "@aws-sdk/util-endpoints": "3.202.0",
16345
- "@aws-sdk/util-user-agent-browser": "3.201.0",
16346
- "@aws-sdk/util-user-agent-node": "3.201.0",
16347
+ "@aws-sdk/util-body-length-node": "3.208.0",
16348
+ "@aws-sdk/util-defaults-mode-browser": "3.215.0",
16349
+ "@aws-sdk/util-defaults-mode-node": "3.215.0",
16350
+ "@aws-sdk/util-endpoints": "3.216.0",
16351
+ "@aws-sdk/util-user-agent-browser": "3.215.0",
16352
+ "@aws-sdk/util-user-agent-node": "3.215.0",
16347
16353
  "@aws-sdk/util-utf8-browser": "3.188.0",
16348
- "@aws-sdk/util-utf8-node": "3.201.0",
16349
- "@aws-sdk/util-waiter": "3.201.0",
16354
+ "@aws-sdk/util-utf8-node": "3.208.0",
16355
+ "@aws-sdk/util-waiter": "3.215.0",
16350
16356
  tslib: "^2.3.1"
16351
16357
  },
16352
16358
  devDependencies: {
16353
- "@aws-sdk/service-client-documentation-generator": "3.188.0",
16359
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
16354
16360
  "@tsconfig/node14": "1.0.3",
16355
- "@types/node": "^12.7.5",
16361
+ "@types/node": "^14.14.31",
16356
16362
  concurrently: "7.0.0",
16357
16363
  "downlevel-dts": "0.10.1",
16358
16364
  rimraf: "3.0.2",
@@ -19738,7 +19744,7 @@ var require_package2 = __commonJS({
19738
19744
  module2.exports = {
19739
19745
  name: "@aws-sdk/client-sts",
19740
19746
  description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
19741
- version: "3.204.0",
19747
+ version: "3.216.0",
19742
19748
  scripts: {
19743
19749
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
19744
19750
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19758,47 +19764,45 @@ var require_package2 = __commonJS({
19758
19764
  dependencies: {
19759
19765
  "@aws-crypto/sha256-browser": "2.0.0",
19760
19766
  "@aws-crypto/sha256-js": "2.0.0",
19761
- "@aws-sdk/config-resolver": "3.201.0",
19762
- "@aws-sdk/credential-provider-node": "3.204.0",
19763
- "@aws-sdk/fetch-http-handler": "3.204.0",
19764
- "@aws-sdk/hash-node": "3.201.0",
19765
- "@aws-sdk/invalid-dependency": "3.201.0",
19766
- "@aws-sdk/middleware-content-length": "3.201.0",
19767
- "@aws-sdk/middleware-endpoint": "3.201.0",
19768
- "@aws-sdk/middleware-host-header": "3.201.0",
19769
- "@aws-sdk/middleware-logger": "3.201.0",
19770
- "@aws-sdk/middleware-recursion-detection": "3.201.0",
19771
- "@aws-sdk/middleware-retry": "3.201.0",
19772
- "@aws-sdk/middleware-sdk-sts": "3.201.0",
19773
- "@aws-sdk/middleware-serde": "3.201.0",
19774
- "@aws-sdk/middleware-signing": "3.201.0",
19775
- "@aws-sdk/middleware-stack": "3.201.0",
19776
- "@aws-sdk/middleware-user-agent": "3.201.0",
19777
- "@aws-sdk/node-config-provider": "3.201.0",
19778
- "@aws-sdk/node-http-handler": "3.201.0",
19779
- "@aws-sdk/protocol-http": "3.201.0",
19780
- "@aws-sdk/smithy-client": "3.201.0",
19781
- "@aws-sdk/types": "3.201.0",
19782
- "@aws-sdk/url-parser": "3.201.0",
19783
- "@aws-sdk/util-base64": "3.202.0",
19784
- "@aws-sdk/util-base64-browser": "3.188.0",
19785
- "@aws-sdk/util-base64-node": "3.201.0",
19767
+ "@aws-sdk/config-resolver": "3.215.0",
19768
+ "@aws-sdk/credential-provider-node": "3.216.0",
19769
+ "@aws-sdk/fetch-http-handler": "3.215.0",
19770
+ "@aws-sdk/hash-node": "3.215.0",
19771
+ "@aws-sdk/invalid-dependency": "3.215.0",
19772
+ "@aws-sdk/middleware-content-length": "3.215.0",
19773
+ "@aws-sdk/middleware-endpoint": "3.215.0",
19774
+ "@aws-sdk/middleware-host-header": "3.215.0",
19775
+ "@aws-sdk/middleware-logger": "3.215.0",
19776
+ "@aws-sdk/middleware-recursion-detection": "3.215.0",
19777
+ "@aws-sdk/middleware-retry": "3.215.0",
19778
+ "@aws-sdk/middleware-sdk-sts": "3.215.0",
19779
+ "@aws-sdk/middleware-serde": "3.215.0",
19780
+ "@aws-sdk/middleware-signing": "3.215.0",
19781
+ "@aws-sdk/middleware-stack": "3.215.0",
19782
+ "@aws-sdk/middleware-user-agent": "3.215.0",
19783
+ "@aws-sdk/node-config-provider": "3.215.0",
19784
+ "@aws-sdk/node-http-handler": "3.215.0",
19785
+ "@aws-sdk/protocol-http": "3.215.0",
19786
+ "@aws-sdk/smithy-client": "3.215.0",
19787
+ "@aws-sdk/types": "3.215.0",
19788
+ "@aws-sdk/url-parser": "3.215.0",
19789
+ "@aws-sdk/util-base64": "3.208.0",
19786
19790
  "@aws-sdk/util-body-length-browser": "3.188.0",
19787
- "@aws-sdk/util-body-length-node": "3.201.0",
19788
- "@aws-sdk/util-defaults-mode-browser": "3.201.0",
19789
- "@aws-sdk/util-defaults-mode-node": "3.201.0",
19790
- "@aws-sdk/util-endpoints": "3.202.0",
19791
- "@aws-sdk/util-user-agent-browser": "3.201.0",
19792
- "@aws-sdk/util-user-agent-node": "3.201.0",
19791
+ "@aws-sdk/util-body-length-node": "3.208.0",
19792
+ "@aws-sdk/util-defaults-mode-browser": "3.215.0",
19793
+ "@aws-sdk/util-defaults-mode-node": "3.215.0",
19794
+ "@aws-sdk/util-endpoints": "3.216.0",
19795
+ "@aws-sdk/util-user-agent-browser": "3.215.0",
19796
+ "@aws-sdk/util-user-agent-node": "3.215.0",
19793
19797
  "@aws-sdk/util-utf8-browser": "3.188.0",
19794
- "@aws-sdk/util-utf8-node": "3.201.0",
19798
+ "@aws-sdk/util-utf8-node": "3.208.0",
19795
19799
  "fast-xml-parser": "4.0.11",
19796
19800
  tslib: "^2.3.1"
19797
19801
  },
19798
19802
  devDependencies: {
19799
- "@aws-sdk/service-client-documentation-generator": "3.188.0",
19803
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
19800
19804
  "@tsconfig/node14": "1.0.3",
19801
- "@types/node": "^12.7.5",
19805
+ "@types/node": "^14.14.31",
19802
19806
  concurrently: "7.0.0",
19803
19807
  "downlevel-dts": "0.10.1",
19804
19808
  rimraf: "3.0.2",
@@ -20009,9 +20013,9 @@ var require_getSSOTokenFilepath = __commonJS({
20009
20013
  var crypto_1 = require("crypto");
20010
20014
  var path_1 = require("path");
20011
20015
  var getHomeDir_1 = require_getHomeDir();
20012
- var getSSOTokenFilepath = (ssoStartUrl) => {
20016
+ var getSSOTokenFilepath = (id) => {
20013
20017
  const hasher = (0, crypto_1.createHash)("sha1");
20014
- const cacheName = hasher.update(ssoStartUrl).digest("hex");
20018
+ const cacheName = hasher.update(id).digest("hex");
20015
20019
  return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`);
20016
20020
  };
20017
20021
  exports.getSSOTokenFilepath = getSSOTokenFilepath;
@@ -20027,8 +20031,8 @@ var require_getSSOTokenFromFile = __commonJS({
20027
20031
  var fs_1 = require("fs");
20028
20032
  var getSSOTokenFilepath_1 = require_getSSOTokenFilepath();
20029
20033
  var { readFile } = fs_1.promises;
20030
- var getSSOTokenFromFile = async (ssoStartUrl) => {
20031
- const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl);
20034
+ var getSSOTokenFromFile = async (id) => {
20035
+ const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
20032
20036
  const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
20033
20037
  return JSON.parse(ssoTokenText);
20034
20038
  };
@@ -20846,7 +20850,7 @@ var require_isSsoProfile = __commonJS({
20846
20850
  "use strict";
20847
20851
  Object.defineProperty(exports, "__esModule", { value: true });
20848
20852
  exports.isSsoProfile = void 0;
20849
- var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
20853
+ var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
20850
20854
  exports.isSsoProfile = isSsoProfile;
20851
20855
  }
20852
20856
  });
@@ -21625,7 +21629,7 @@ var require_package3 = __commonJS({
21625
21629
  module2.exports = {
21626
21630
  name: "@aws-sdk/client-sso",
21627
21631
  description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
21628
- version: "3.204.0",
21632
+ version: "3.216.0",
21629
21633
  scripts: {
21630
21634
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
21631
21635
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21643,43 +21647,41 @@ var require_package3 = __commonJS({
21643
21647
  dependencies: {
21644
21648
  "@aws-crypto/sha256-browser": "2.0.0",
21645
21649
  "@aws-crypto/sha256-js": "2.0.0",
21646
- "@aws-sdk/config-resolver": "3.201.0",
21647
- "@aws-sdk/fetch-http-handler": "3.204.0",
21648
- "@aws-sdk/hash-node": "3.201.0",
21649
- "@aws-sdk/invalid-dependency": "3.201.0",
21650
- "@aws-sdk/middleware-content-length": "3.201.0",
21651
- "@aws-sdk/middleware-endpoint": "3.201.0",
21652
- "@aws-sdk/middleware-host-header": "3.201.0",
21653
- "@aws-sdk/middleware-logger": "3.201.0",
21654
- "@aws-sdk/middleware-recursion-detection": "3.201.0",
21655
- "@aws-sdk/middleware-retry": "3.201.0",
21656
- "@aws-sdk/middleware-serde": "3.201.0",
21657
- "@aws-sdk/middleware-stack": "3.201.0",
21658
- "@aws-sdk/middleware-user-agent": "3.201.0",
21659
- "@aws-sdk/node-config-provider": "3.201.0",
21660
- "@aws-sdk/node-http-handler": "3.201.0",
21661
- "@aws-sdk/protocol-http": "3.201.0",
21662
- "@aws-sdk/smithy-client": "3.201.0",
21663
- "@aws-sdk/types": "3.201.0",
21664
- "@aws-sdk/url-parser": "3.201.0",
21665
- "@aws-sdk/util-base64": "3.202.0",
21666
- "@aws-sdk/util-base64-browser": "3.188.0",
21667
- "@aws-sdk/util-base64-node": "3.201.0",
21650
+ "@aws-sdk/config-resolver": "3.215.0",
21651
+ "@aws-sdk/fetch-http-handler": "3.215.0",
21652
+ "@aws-sdk/hash-node": "3.215.0",
21653
+ "@aws-sdk/invalid-dependency": "3.215.0",
21654
+ "@aws-sdk/middleware-content-length": "3.215.0",
21655
+ "@aws-sdk/middleware-endpoint": "3.215.0",
21656
+ "@aws-sdk/middleware-host-header": "3.215.0",
21657
+ "@aws-sdk/middleware-logger": "3.215.0",
21658
+ "@aws-sdk/middleware-recursion-detection": "3.215.0",
21659
+ "@aws-sdk/middleware-retry": "3.215.0",
21660
+ "@aws-sdk/middleware-serde": "3.215.0",
21661
+ "@aws-sdk/middleware-stack": "3.215.0",
21662
+ "@aws-sdk/middleware-user-agent": "3.215.0",
21663
+ "@aws-sdk/node-config-provider": "3.215.0",
21664
+ "@aws-sdk/node-http-handler": "3.215.0",
21665
+ "@aws-sdk/protocol-http": "3.215.0",
21666
+ "@aws-sdk/smithy-client": "3.215.0",
21667
+ "@aws-sdk/types": "3.215.0",
21668
+ "@aws-sdk/url-parser": "3.215.0",
21669
+ "@aws-sdk/util-base64": "3.208.0",
21668
21670
  "@aws-sdk/util-body-length-browser": "3.188.0",
21669
- "@aws-sdk/util-body-length-node": "3.201.0",
21670
- "@aws-sdk/util-defaults-mode-browser": "3.201.0",
21671
- "@aws-sdk/util-defaults-mode-node": "3.201.0",
21672
- "@aws-sdk/util-endpoints": "3.202.0",
21673
- "@aws-sdk/util-user-agent-browser": "3.201.0",
21674
- "@aws-sdk/util-user-agent-node": "3.201.0",
21671
+ "@aws-sdk/util-body-length-node": "3.208.0",
21672
+ "@aws-sdk/util-defaults-mode-browser": "3.215.0",
21673
+ "@aws-sdk/util-defaults-mode-node": "3.215.0",
21674
+ "@aws-sdk/util-endpoints": "3.216.0",
21675
+ "@aws-sdk/util-user-agent-browser": "3.215.0",
21676
+ "@aws-sdk/util-user-agent-node": "3.215.0",
21675
21677
  "@aws-sdk/util-utf8-browser": "3.188.0",
21676
- "@aws-sdk/util-utf8-node": "3.201.0",
21678
+ "@aws-sdk/util-utf8-node": "3.208.0",
21677
21679
  tslib: "^2.3.1"
21678
21680
  },
21679
21681
  devDependencies: {
21680
- "@aws-sdk/service-client-documentation-generator": "3.188.0",
21682
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
21681
21683
  "@tsconfig/node14": "1.0.3",
21682
- "@types/node": "^12.7.5",
21684
+ "@types/node": "^14.14.31",
21683
21685
  concurrently: "7.0.0",
21684
21686
  "downlevel-dts": "0.10.1",
21685
21687
  rimraf: "3.0.2",
@@ -22398,105 +22400,182 @@ var require_dist_cjs36 = __commonJS({
22398
22400
  var require_partitions = __commonJS({
22399
22401
  "node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json"(exports, module2) {
22400
22402
  module2.exports = {
22401
- version: "1.1",
22402
- partitions: [
22403
- {
22404
- id: "aws",
22405
- regionRegex: "^(us|eu|ap|sa|ca|me|af)-\\w+-\\d+$",
22406
- regions: {
22407
- "af-south-1": {},
22408
- "af-east-1": {},
22409
- "ap-northeast-1": {},
22410
- "ap-northeast-2": {},
22411
- "ap-northeast-3": {},
22412
- "ap-south-1": {},
22413
- "ap-southeast-1": {},
22414
- "ap-southeast-2": {},
22415
- "ap-southeast-3": {},
22416
- "ca-central-1": {},
22417
- "eu-central-1": {},
22418
- "eu-north-1": {},
22419
- "eu-south-1": {},
22420
- "eu-west-1": {},
22421
- "eu-west-2": {},
22422
- "eu-west-3": {},
22423
- "me-south-1": {},
22424
- "sa-east-1": {},
22425
- "us-east-1": {},
22426
- "us-east-2": {},
22427
- "us-west-1": {},
22428
- "us-west-2": {},
22429
- "aws-global": {}
22403
+ partitions: [{
22404
+ id: "aws",
22405
+ outputs: {
22406
+ dnsSuffix: "amazonaws.com",
22407
+ dualStackDnsSuffix: "api.aws",
22408
+ name: "aws",
22409
+ supportsDualStack: true,
22410
+ supportsFIPS: true
22411
+ },
22412
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
22413
+ regions: {
22414
+ "af-south-1": {
22415
+ description: "Africa (Cape Town)"
22416
+ },
22417
+ "ap-east-1": {
22418
+ description: "Asia Pacific (Hong Kong)"
22419
+ },
22420
+ "ap-northeast-1": {
22421
+ description: "Asia Pacific (Tokyo)"
22422
+ },
22423
+ "ap-northeast-2": {
22424
+ description: "Asia Pacific (Seoul)"
22430
22425
  },
22431
- outputs: {
22432
- name: "aws",
22433
- dnsSuffix: "amazonaws.com",
22434
- dualStackDnsSuffix: "api.aws",
22435
- supportsFIPS: true,
22436
- supportsDualStack: true
22426
+ "ap-northeast-3": {
22427
+ description: "Asia Pacific (Osaka)"
22428
+ },
22429
+ "ap-south-1": {
22430
+ description: "Asia Pacific (Mumbai)"
22431
+ },
22432
+ "ap-south-2": {
22433
+ description: "Asia Pacific (Hyderabad)"
22434
+ },
22435
+ "ap-southeast-1": {
22436
+ description: "Asia Pacific (Singapore)"
22437
+ },
22438
+ "ap-southeast-2": {
22439
+ description: "Asia Pacific (Sydney)"
22440
+ },
22441
+ "ap-southeast-3": {
22442
+ description: "Asia Pacific (Jakarta)"
22443
+ },
22444
+ "aws-global": {
22445
+ description: "AWS Standard global region"
22446
+ },
22447
+ "ca-central-1": {
22448
+ description: "Canada (Central)"
22449
+ },
22450
+ "eu-central-1": {
22451
+ description: "Europe (Frankfurt)"
22452
+ },
22453
+ "eu-central-2": {
22454
+ description: "Europe (Zurich)"
22455
+ },
22456
+ "eu-north-1": {
22457
+ description: "Europe (Stockholm)"
22458
+ },
22459
+ "eu-south-1": {
22460
+ description: "Europe (Milan)"
22461
+ },
22462
+ "eu-south-2": {
22463
+ description: "Europe (Spain)"
22464
+ },
22465
+ "eu-west-1": {
22466
+ description: "Europe (Ireland)"
22467
+ },
22468
+ "eu-west-2": {
22469
+ description: "Europe (London)"
22470
+ },
22471
+ "eu-west-3": {
22472
+ description: "Europe (Paris)"
22473
+ },
22474
+ "me-central-1": {
22475
+ description: "Middle East (UAE)"
22476
+ },
22477
+ "me-south-1": {
22478
+ description: "Middle East (Bahrain)"
22479
+ },
22480
+ "sa-east-1": {
22481
+ description: "South America (Sao Paulo)"
22482
+ },
22483
+ "us-east-1": {
22484
+ description: "US East (N. Virginia)"
22485
+ },
22486
+ "us-east-2": {
22487
+ description: "US East (Ohio)"
22488
+ },
22489
+ "us-west-1": {
22490
+ description: "US West (N. California)"
22491
+ },
22492
+ "us-west-2": {
22493
+ description: "US West (Oregon)"
22437
22494
  }
22495
+ }
22496
+ }, {
22497
+ id: "aws-cn",
22498
+ outputs: {
22499
+ dnsSuffix: "amazonaws.com.cn",
22500
+ dualStackDnsSuffix: "api.amazonwebservices.com.cn",
22501
+ name: "aws-cn",
22502
+ supportsDualStack: true,
22503
+ supportsFIPS: true
22438
22504
  },
22439
- {
22440
- id: "aws-us-gov",
22441
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
22442
- regions: {
22443
- "us-gov-west-1": {},
22444
- "us-gov-east-1": {},
22445
- "aws-us-gov-global": {}
22505
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
22506
+ regions: {
22507
+ "aws-cn-global": {
22508
+ description: "AWS China global region"
22446
22509
  },
22447
- outputs: {
22448
- name: "aws-us-gov",
22449
- dnsSuffix: "amazonaws.com",
22450
- dualStackDnsSuffix: "api.aws",
22451
- supportsFIPS: true,
22452
- supportsDualStack: true
22510
+ "cn-north-1": {
22511
+ description: "China (Beijing)"
22512
+ },
22513
+ "cn-northwest-1": {
22514
+ description: "China (Ningxia)"
22453
22515
  }
22516
+ }
22517
+ }, {
22518
+ id: "aws-us-gov",
22519
+ outputs: {
22520
+ dnsSuffix: "amazonaws.com",
22521
+ dualStackDnsSuffix: "api.aws",
22522
+ name: "aws-us-gov",
22523
+ supportsDualStack: true,
22524
+ supportsFIPS: true
22454
22525
  },
22455
- {
22456
- id: "aws-cn",
22457
- regionRegex: "^cn\\-\\w+\\-\\d+$",
22458
- regions: {
22459
- "cn-north-1": {},
22460
- "cn-northwest-1": {},
22461
- "aws-cn-global": {}
22526
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
22527
+ regions: {
22528
+ "aws-us-gov-global": {
22529
+ description: "AWS GovCloud (US) global region"
22530
+ },
22531
+ "us-gov-east-1": {
22532
+ description: "AWS GovCloud (US-East)"
22462
22533
  },
22463
- outputs: {
22464
- name: "aws-cn",
22465
- dnsSuffix: "amazonaws.com.cn",
22466
- dualStackDnsSuffix: "api.amazonwebservices.com.cn",
22467
- supportsFIPS: true,
22468
- supportsDualStack: true
22534
+ "us-gov-west-1": {
22535
+ description: "AWS GovCloud (US-West)"
22469
22536
  }
22537
+ }
22538
+ }, {
22539
+ id: "aws-iso",
22540
+ outputs: {
22541
+ dnsSuffix: "c2s.ic.gov",
22542
+ dualStackDnsSuffix: "c2s.ic.gov",
22543
+ name: "aws-iso",
22544
+ supportsDualStack: false,
22545
+ supportsFIPS: true
22470
22546
  },
22471
- {
22472
- id: "aws-iso",
22473
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
22474
- outputs: {
22475
- name: "aws-iso",
22476
- dnsSuffix: "c2s.ic.gov",
22477
- supportsFIPS: true,
22478
- supportsDualStack: false,
22479
- dualStackDnsSuffix: "c2s.ic.gov"
22547
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
22548
+ regions: {
22549
+ "aws-iso-global": {
22550
+ description: "AWS ISO (US) global region"
22480
22551
  },
22481
- regions: {
22482
- "aws-iso-global": {}
22552
+ "us-iso-east-1": {
22553
+ description: "US ISO East"
22554
+ },
22555
+ "us-iso-west-1": {
22556
+ description: "US ISO WEST"
22483
22557
  }
22558
+ }
22559
+ }, {
22560
+ id: "aws-iso-b",
22561
+ outputs: {
22562
+ dnsSuffix: "sc2s.sgov.gov",
22563
+ dualStackDnsSuffix: "sc2s.sgov.gov",
22564
+ name: "aws-iso-b",
22565
+ supportsDualStack: false,
22566
+ supportsFIPS: true
22484
22567
  },
22485
- {
22486
- id: "aws-iso-b",
22487
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
22488
- outputs: {
22489
- name: "aws-iso-b",
22490
- dnsSuffix: "sc2s.sgov.gov",
22491
- supportsFIPS: true,
22492
- supportsDualStack: false,
22493
- dualStackDnsSuffix: "sc2s.sgov.gov"
22568
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
22569
+ regions: {
22570
+ "aws-iso-b-global": {
22571
+ description: "AWS ISOB (US) global region"
22494
22572
  },
22495
- regions: {
22496
- "aws-iso-b-global": {}
22573
+ "us-isob-east-1": {
22574
+ description: "US ISOB East (Ohio)"
22497
22575
  }
22498
22576
  }
22499
- ]
22577
+ }],
22578
+ version: "1.1"
22500
22579
  };
22501
22580
  }
22502
22581
  });
@@ -22928,6 +23007,60 @@ var require_http = __commonJS({
22928
23007
  }
22929
23008
  });
22930
23009
 
23010
+ // node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js
23011
+ var require_AnonymousIdentity = __commonJS({
23012
+ "node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js"(exports) {
23013
+ "use strict";
23014
+ Object.defineProperty(exports, "__esModule", { value: true });
23015
+ }
23016
+ });
23017
+
23018
+ // node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js
23019
+ var require_AwsCredentialIdentity = __commonJS({
23020
+ "node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js"(exports) {
23021
+ "use strict";
23022
+ Object.defineProperty(exports, "__esModule", { value: true });
23023
+ }
23024
+ });
23025
+
23026
+ // node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js
23027
+ var require_Identity = __commonJS({
23028
+ "node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js"(exports) {
23029
+ "use strict";
23030
+ Object.defineProperty(exports, "__esModule", { value: true });
23031
+ }
23032
+ });
23033
+
23034
+ // node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js
23035
+ var require_LoginIdentity = __commonJS({
23036
+ "node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js"(exports) {
23037
+ "use strict";
23038
+ Object.defineProperty(exports, "__esModule", { value: true });
23039
+ }
23040
+ });
23041
+
23042
+ // node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js
23043
+ var require_TokenIdentity = __commonJS({
23044
+ "node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js"(exports) {
23045
+ "use strict";
23046
+ Object.defineProperty(exports, "__esModule", { value: true });
23047
+ }
23048
+ });
23049
+
23050
+ // node_modules/@aws-sdk/types/dist-cjs/identity/index.js
23051
+ var require_identity = __commonJS({
23052
+ "node_modules/@aws-sdk/types/dist-cjs/identity/index.js"(exports) {
23053
+ "use strict";
23054
+ Object.defineProperty(exports, "__esModule", { value: true });
23055
+ var tslib_1 = require_tslib();
23056
+ tslib_1.__exportStar(require_AnonymousIdentity(), exports);
23057
+ tslib_1.__exportStar(require_AwsCredentialIdentity(), exports);
23058
+ tslib_1.__exportStar(require_Identity(), exports);
23059
+ tslib_1.__exportStar(require_LoginIdentity(), exports);
23060
+ tslib_1.__exportStar(require_TokenIdentity(), exports);
23061
+ }
23062
+ });
23063
+
22931
23064
  // node_modules/@aws-sdk/types/dist-cjs/logger.js
22932
23065
  var require_logger = __commonJS({
22933
23066
  "node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports) {
@@ -23047,6 +23180,7 @@ var require_dist_cjs37 = __commonJS({
23047
23180
  tslib_1.__exportStar(require_endpoint(), exports);
23048
23181
  tslib_1.__exportStar(require_eventStream(), exports);
23049
23182
  tslib_1.__exportStar(require_http(), exports);
23183
+ tslib_1.__exportStar(require_identity(), exports);
23050
23184
  tslib_1.__exportStar(require_logger(), exports);
23051
23185
  tslib_1.__exportStar(require_middleware2(), exports);
23052
23186
  tslib_1.__exportStar(require_pagination(), exports);
@@ -23966,6 +24100,7 @@ var require_runtimeConfig_shared = __commonJS({
23966
24100
  "use strict";
23967
24101
  Object.defineProperty(exports, "__esModule", { value: true });
23968
24102
  exports.getRuntimeConfig = void 0;
24103
+ var smithy_client_1 = require_dist_cjs7();
23969
24104
  var url_parser_1 = require_dist_cjs2();
23970
24105
  var util_base64_1 = require_dist_cjs36();
23971
24106
  var endpointResolver_1 = require_endpointResolver();
@@ -23975,7 +24110,7 @@ var require_runtimeConfig_shared = __commonJS({
23975
24110
  base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
23976
24111
  disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
23977
24112
  endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
23978
- logger: (config == null ? void 0 : config.logger) ?? {},
24113
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
23979
24114
  serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO",
23980
24115
  urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
23981
24116
  });
@@ -24390,179 +24525,2033 @@ var require_dist_cjs40 = __commonJS({
24390
24525
  }
24391
24526
  });
24392
24527
 
24393
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js
24394
- var require_resolveSSOCredentials = __commonJS({
24395
- "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) {
24528
+ // node_modules/@aws-sdk/token-providers/dist-cjs/constants.js
24529
+ var require_constants8 = __commonJS({
24530
+ "node_modules/@aws-sdk/token-providers/dist-cjs/constants.js"(exports) {
24396
24531
  "use strict";
24397
24532
  Object.defineProperty(exports, "__esModule", { value: true });
24398
- exports.resolveSSOCredentials = void 0;
24399
- var client_sso_1 = require_dist_cjs40();
24400
- var property_provider_1 = require_dist_cjs17();
24401
- var shared_ini_file_loader_1 = require_dist_cjs26();
24402
- var EXPIRE_WINDOW_MS = 15 * 60 * 1e3;
24403
- var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
24404
- var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => {
24405
- let token;
24406
- const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
24407
- try {
24408
- token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl);
24409
- } catch (e) {
24410
- throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
24411
- }
24412
- if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) {
24413
- throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
24414
- }
24415
- const { accessToken } = token;
24416
- const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion });
24417
- let ssoResp;
24418
- try {
24419
- ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({
24420
- accountId: ssoAccountId,
24421
- roleName: ssoRoleName,
24422
- accessToken
24423
- }));
24424
- } catch (e) {
24425
- throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN);
24426
- }
24427
- const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
24428
- if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
24429
- throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
24430
- }
24431
- return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
24432
- };
24433
- exports.resolveSSOCredentials = resolveSSOCredentials;
24533
+ exports.REFRESH_MESSAGE = exports.EXPIRE_WINDOW_MS = void 0;
24534
+ exports.EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
24535
+ exports.REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
24434
24536
  }
24435
24537
  });
24436
24538
 
24437
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js
24438
- var require_validateSsoProfile = __commonJS({
24439
- "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) {
24539
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js
24540
+ var require_SSOOIDCServiceException = __commonJS({
24541
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js"(exports) {
24440
24542
  "use strict";
24441
24543
  Object.defineProperty(exports, "__esModule", { value: true });
24442
- exports.validateSsoProfile = void 0;
24443
- var property_provider_1 = require_dist_cjs17();
24444
- var validateSsoProfile = (profile) => {
24445
- const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
24446
- if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
24447
- throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
24448
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false);
24544
+ exports.SSOOIDCServiceException = void 0;
24545
+ var smithy_client_1 = require_dist_cjs7();
24546
+ var SSOOIDCServiceException = class extends smithy_client_1.ServiceException {
24547
+ constructor(options) {
24548
+ super(options);
24549
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
24449
24550
  }
24450
- return profile;
24451
24551
  };
24452
- exports.validateSsoProfile = validateSsoProfile;
24552
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
24453
24553
  }
24454
24554
  });
24455
24555
 
24456
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js
24457
- var require_fromSSO = __commonJS({
24458
- "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) {
24556
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js
24557
+ var require_models_04 = __commonJS({
24558
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js"(exports) {
24459
24559
  "use strict";
24460
24560
  Object.defineProperty(exports, "__esModule", { value: true });
24461
- exports.fromSSO = void 0;
24462
- var property_provider_1 = require_dist_cjs17();
24463
- var shared_ini_file_loader_1 = require_dist_cjs26();
24464
- var isSsoProfile_1 = require_isSsoProfile();
24465
- var resolveSSOCredentials_1 = require_resolveSSOCredentials();
24466
- var validateSsoProfile_1 = require_validateSsoProfile();
24467
- var fromSSO = (init = {}) => async () => {
24468
- const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init;
24469
- if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) {
24470
- const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init);
24471
- const profileName = (0, shared_ini_file_loader_1.getProfileName)(init);
24472
- const profile = profiles[profileName];
24473
- if (!(0, isSsoProfile_1.isSsoProfile)(profile)) {
24474
- throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`);
24475
- }
24476
- const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile);
24477
- return (0, resolveSSOCredentials_1.resolveSSOCredentials)({
24478
- ssoStartUrl: sso_start_url,
24479
- ssoAccountId: sso_account_id,
24480
- ssoRegion: sso_region,
24481
- ssoRoleName: sso_role_name,
24482
- ssoClient
24561
+ exports.StartDeviceAuthorizationResponseFilterSensitiveLog = exports.StartDeviceAuthorizationRequestFilterSensitiveLog = exports.RegisterClientResponseFilterSensitiveLog = exports.RegisterClientRequestFilterSensitiveLog = exports.CreateTokenResponseFilterSensitiveLog = exports.CreateTokenRequestFilterSensitiveLog = exports.InvalidClientMetadataException = exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
24562
+ var SSOOIDCServiceException_1 = require_SSOOIDCServiceException();
24563
+ var AccessDeniedException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24564
+ constructor(opts) {
24565
+ super({
24566
+ name: "AccessDeniedException",
24567
+ $fault: "client",
24568
+ ...opts
24483
24569
  });
24484
- } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
24485
- throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');
24486
- } else {
24487
- return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient });
24570
+ this.name = "AccessDeniedException";
24571
+ this.$fault = "client";
24572
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
24573
+ this.error = opts.error;
24574
+ this.error_description = opts.error_description;
24488
24575
  }
24489
24576
  };
24490
- exports.fromSSO = fromSSO;
24491
- }
24492
- });
24493
-
24494
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js
24495
- var require_types6 = __commonJS({
24496
- "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) {
24497
- "use strict";
24498
- Object.defineProperty(exports, "__esModule", { value: true });
24499
- }
24500
- });
24501
-
24502
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
24503
- var require_dist_cjs41 = __commonJS({
24504
- "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) {
24505
- "use strict";
24506
- Object.defineProperty(exports, "__esModule", { value: true });
24507
- var tslib_1 = require_tslib();
24508
- tslib_1.__exportStar(require_fromSSO(), exports);
24509
- tslib_1.__exportStar(require_isSsoProfile(), exports);
24510
- tslib_1.__exportStar(require_types6(), exports);
24511
- tslib_1.__exportStar(require_validateSsoProfile(), exports);
24512
- }
24513
- });
24514
-
24515
- // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js
24516
- var require_resolveSsoCredentials = __commonJS({
24517
- "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) {
24518
- "use strict";
24519
- Object.defineProperty(exports, "__esModule", { value: true });
24520
- exports.resolveSsoCredentials = exports.isSsoProfile = void 0;
24521
- var credential_provider_sso_1 = require_dist_cjs41();
24522
- var credential_provider_sso_2 = require_dist_cjs41();
24523
- Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function() {
24524
- return credential_provider_sso_2.isSsoProfile;
24525
- } });
24526
- var resolveSsoCredentials = (data) => {
24527
- const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data);
24528
- return (0, credential_provider_sso_1.fromSSO)({
24529
- ssoStartUrl: sso_start_url,
24530
- ssoAccountId: sso_account_id,
24531
- ssoRegion: sso_region,
24532
- ssoRoleName: sso_role_name
24533
- })();
24577
+ exports.AccessDeniedException = AccessDeniedException;
24578
+ var AuthorizationPendingException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24579
+ constructor(opts) {
24580
+ super({
24581
+ name: "AuthorizationPendingException",
24582
+ $fault: "client",
24583
+ ...opts
24584
+ });
24585
+ this.name = "AuthorizationPendingException";
24586
+ this.$fault = "client";
24587
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
24588
+ this.error = opts.error;
24589
+ this.error_description = opts.error_description;
24590
+ }
24534
24591
  };
24535
- exports.resolveSsoCredentials = resolveSsoCredentials;
24536
- }
24537
- });
24538
-
24539
- // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js
24540
- var require_resolveStaticCredentials = __commonJS({
24541
- "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) {
24542
- "use strict";
24543
- Object.defineProperty(exports, "__esModule", { value: true });
24544
- exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0;
24545
- var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1;
24546
- exports.isStaticCredsProfile = isStaticCredsProfile;
24547
- var resolveStaticCredentials = (profile) => Promise.resolve({
24548
- accessKeyId: profile.aws_access_key_id,
24549
- secretAccessKey: profile.aws_secret_access_key,
24550
- sessionToken: profile.aws_session_token
24551
- });
24552
- exports.resolveStaticCredentials = resolveStaticCredentials;
24553
- }
24554
- });
24555
-
24556
- // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
24557
- var require_fromWebToken = __commonJS({
24558
- "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports) {
24559
- "use strict";
24560
- Object.defineProperty(exports, "__esModule", { value: true });
24561
- exports.fromWebToken = void 0;
24562
- var property_provider_1 = require_dist_cjs17();
24563
- var fromWebToken = (init) => () => {
24564
- const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init;
24565
- if (!roleAssumerWithWebIdentity) {
24592
+ exports.AuthorizationPendingException = AuthorizationPendingException;
24593
+ var ExpiredTokenException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24594
+ constructor(opts) {
24595
+ super({
24596
+ name: "ExpiredTokenException",
24597
+ $fault: "client",
24598
+ ...opts
24599
+ });
24600
+ this.name = "ExpiredTokenException";
24601
+ this.$fault = "client";
24602
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
24603
+ this.error = opts.error;
24604
+ this.error_description = opts.error_description;
24605
+ }
24606
+ };
24607
+ exports.ExpiredTokenException = ExpiredTokenException;
24608
+ var InternalServerException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24609
+ constructor(opts) {
24610
+ super({
24611
+ name: "InternalServerException",
24612
+ $fault: "server",
24613
+ ...opts
24614
+ });
24615
+ this.name = "InternalServerException";
24616
+ this.$fault = "server";
24617
+ Object.setPrototypeOf(this, InternalServerException.prototype);
24618
+ this.error = opts.error;
24619
+ this.error_description = opts.error_description;
24620
+ }
24621
+ };
24622
+ exports.InternalServerException = InternalServerException;
24623
+ var InvalidClientException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24624
+ constructor(opts) {
24625
+ super({
24626
+ name: "InvalidClientException",
24627
+ $fault: "client",
24628
+ ...opts
24629
+ });
24630
+ this.name = "InvalidClientException";
24631
+ this.$fault = "client";
24632
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
24633
+ this.error = opts.error;
24634
+ this.error_description = opts.error_description;
24635
+ }
24636
+ };
24637
+ exports.InvalidClientException = InvalidClientException;
24638
+ var InvalidGrantException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24639
+ constructor(opts) {
24640
+ super({
24641
+ name: "InvalidGrantException",
24642
+ $fault: "client",
24643
+ ...opts
24644
+ });
24645
+ this.name = "InvalidGrantException";
24646
+ this.$fault = "client";
24647
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
24648
+ this.error = opts.error;
24649
+ this.error_description = opts.error_description;
24650
+ }
24651
+ };
24652
+ exports.InvalidGrantException = InvalidGrantException;
24653
+ var InvalidRequestException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24654
+ constructor(opts) {
24655
+ super({
24656
+ name: "InvalidRequestException",
24657
+ $fault: "client",
24658
+ ...opts
24659
+ });
24660
+ this.name = "InvalidRequestException";
24661
+ this.$fault = "client";
24662
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
24663
+ this.error = opts.error;
24664
+ this.error_description = opts.error_description;
24665
+ }
24666
+ };
24667
+ exports.InvalidRequestException = InvalidRequestException;
24668
+ var InvalidScopeException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24669
+ constructor(opts) {
24670
+ super({
24671
+ name: "InvalidScopeException",
24672
+ $fault: "client",
24673
+ ...opts
24674
+ });
24675
+ this.name = "InvalidScopeException";
24676
+ this.$fault = "client";
24677
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
24678
+ this.error = opts.error;
24679
+ this.error_description = opts.error_description;
24680
+ }
24681
+ };
24682
+ exports.InvalidScopeException = InvalidScopeException;
24683
+ var SlowDownException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24684
+ constructor(opts) {
24685
+ super({
24686
+ name: "SlowDownException",
24687
+ $fault: "client",
24688
+ ...opts
24689
+ });
24690
+ this.name = "SlowDownException";
24691
+ this.$fault = "client";
24692
+ Object.setPrototypeOf(this, SlowDownException.prototype);
24693
+ this.error = opts.error;
24694
+ this.error_description = opts.error_description;
24695
+ }
24696
+ };
24697
+ exports.SlowDownException = SlowDownException;
24698
+ var UnauthorizedClientException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24699
+ constructor(opts) {
24700
+ super({
24701
+ name: "UnauthorizedClientException",
24702
+ $fault: "client",
24703
+ ...opts
24704
+ });
24705
+ this.name = "UnauthorizedClientException";
24706
+ this.$fault = "client";
24707
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
24708
+ this.error = opts.error;
24709
+ this.error_description = opts.error_description;
24710
+ }
24711
+ };
24712
+ exports.UnauthorizedClientException = UnauthorizedClientException;
24713
+ var UnsupportedGrantTypeException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24714
+ constructor(opts) {
24715
+ super({
24716
+ name: "UnsupportedGrantTypeException",
24717
+ $fault: "client",
24718
+ ...opts
24719
+ });
24720
+ this.name = "UnsupportedGrantTypeException";
24721
+ this.$fault = "client";
24722
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
24723
+ this.error = opts.error;
24724
+ this.error_description = opts.error_description;
24725
+ }
24726
+ };
24727
+ exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
24728
+ var InvalidClientMetadataException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24729
+ constructor(opts) {
24730
+ super({
24731
+ name: "InvalidClientMetadataException",
24732
+ $fault: "client",
24733
+ ...opts
24734
+ });
24735
+ this.name = "InvalidClientMetadataException";
24736
+ this.$fault = "client";
24737
+ Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
24738
+ this.error = opts.error;
24739
+ this.error_description = opts.error_description;
24740
+ }
24741
+ };
24742
+ exports.InvalidClientMetadataException = InvalidClientMetadataException;
24743
+ var CreateTokenRequestFilterSensitiveLog = (obj) => ({
24744
+ ...obj
24745
+ });
24746
+ exports.CreateTokenRequestFilterSensitiveLog = CreateTokenRequestFilterSensitiveLog;
24747
+ var CreateTokenResponseFilterSensitiveLog = (obj) => ({
24748
+ ...obj
24749
+ });
24750
+ exports.CreateTokenResponseFilterSensitiveLog = CreateTokenResponseFilterSensitiveLog;
24751
+ var RegisterClientRequestFilterSensitiveLog = (obj) => ({
24752
+ ...obj
24753
+ });
24754
+ exports.RegisterClientRequestFilterSensitiveLog = RegisterClientRequestFilterSensitiveLog;
24755
+ var RegisterClientResponseFilterSensitiveLog = (obj) => ({
24756
+ ...obj
24757
+ });
24758
+ exports.RegisterClientResponseFilterSensitiveLog = RegisterClientResponseFilterSensitiveLog;
24759
+ var StartDeviceAuthorizationRequestFilterSensitiveLog = (obj) => ({
24760
+ ...obj
24761
+ });
24762
+ exports.StartDeviceAuthorizationRequestFilterSensitiveLog = StartDeviceAuthorizationRequestFilterSensitiveLog;
24763
+ var StartDeviceAuthorizationResponseFilterSensitiveLog = (obj) => ({
24764
+ ...obj
24765
+ });
24766
+ exports.StartDeviceAuthorizationResponseFilterSensitiveLog = StartDeviceAuthorizationResponseFilterSensitiveLog;
24767
+ }
24768
+ });
24769
+
24770
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js
24771
+ var require_Aws_restJson13 = __commonJS({
24772
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js"(exports) {
24773
+ "use strict";
24774
+ Object.defineProperty(exports, "__esModule", { value: true });
24775
+ exports.deserializeAws_restJson1StartDeviceAuthorizationCommand = exports.deserializeAws_restJson1RegisterClientCommand = exports.deserializeAws_restJson1CreateTokenCommand = exports.serializeAws_restJson1StartDeviceAuthorizationCommand = exports.serializeAws_restJson1RegisterClientCommand = exports.serializeAws_restJson1CreateTokenCommand = void 0;
24776
+ var protocol_http_1 = require_dist_cjs8();
24777
+ var smithy_client_1 = require_dist_cjs7();
24778
+ var models_0_1 = require_models_04();
24779
+ var SSOOIDCServiceException_1 = require_SSOOIDCServiceException();
24780
+ var serializeAws_restJson1CreateTokenCommand = async (input, context) => {
24781
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24782
+ const headers = {
24783
+ "content-type": "application/json"
24784
+ };
24785
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/token`;
24786
+ let body;
24787
+ body = JSON.stringify({
24788
+ ...input.clientId != null && { clientId: input.clientId },
24789
+ ...input.clientSecret != null && { clientSecret: input.clientSecret },
24790
+ ...input.code != null && { code: input.code },
24791
+ ...input.deviceCode != null && { deviceCode: input.deviceCode },
24792
+ ...input.grantType != null && { grantType: input.grantType },
24793
+ ...input.redirectUri != null && { redirectUri: input.redirectUri },
24794
+ ...input.refreshToken != null && { refreshToken: input.refreshToken },
24795
+ ...input.scope != null && { scope: serializeAws_restJson1Scopes(input.scope, context) }
24796
+ });
24797
+ return new protocol_http_1.HttpRequest({
24798
+ protocol,
24799
+ hostname,
24800
+ port,
24801
+ method: "POST",
24802
+ headers,
24803
+ path: resolvedPath,
24804
+ body
24805
+ });
24806
+ };
24807
+ exports.serializeAws_restJson1CreateTokenCommand = serializeAws_restJson1CreateTokenCommand;
24808
+ var serializeAws_restJson1RegisterClientCommand = async (input, context) => {
24809
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24810
+ const headers = {
24811
+ "content-type": "application/json"
24812
+ };
24813
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/client/register`;
24814
+ let body;
24815
+ body = JSON.stringify({
24816
+ ...input.clientName != null && { clientName: input.clientName },
24817
+ ...input.clientType != null && { clientType: input.clientType },
24818
+ ...input.scopes != null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) }
24819
+ });
24820
+ return new protocol_http_1.HttpRequest({
24821
+ protocol,
24822
+ hostname,
24823
+ port,
24824
+ method: "POST",
24825
+ headers,
24826
+ path: resolvedPath,
24827
+ body
24828
+ });
24829
+ };
24830
+ exports.serializeAws_restJson1RegisterClientCommand = serializeAws_restJson1RegisterClientCommand;
24831
+ var serializeAws_restJson1StartDeviceAuthorizationCommand = async (input, context) => {
24832
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24833
+ const headers = {
24834
+ "content-type": "application/json"
24835
+ };
24836
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/device_authorization`;
24837
+ let body;
24838
+ body = JSON.stringify({
24839
+ ...input.clientId != null && { clientId: input.clientId },
24840
+ ...input.clientSecret != null && { clientSecret: input.clientSecret },
24841
+ ...input.startUrl != null && { startUrl: input.startUrl }
24842
+ });
24843
+ return new protocol_http_1.HttpRequest({
24844
+ protocol,
24845
+ hostname,
24846
+ port,
24847
+ method: "POST",
24848
+ headers,
24849
+ path: resolvedPath,
24850
+ body
24851
+ });
24852
+ };
24853
+ exports.serializeAws_restJson1StartDeviceAuthorizationCommand = serializeAws_restJson1StartDeviceAuthorizationCommand;
24854
+ var deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
24855
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
24856
+ return deserializeAws_restJson1CreateTokenCommandError(output, context);
24857
+ }
24858
+ const contents = map({
24859
+ $metadata: deserializeMetadata(output)
24860
+ });
24861
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
24862
+ if (data.accessToken != null) {
24863
+ contents.accessToken = (0, smithy_client_1.expectString)(data.accessToken);
24864
+ }
24865
+ if (data.expiresIn != null) {
24866
+ contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
24867
+ }
24868
+ if (data.idToken != null) {
24869
+ contents.idToken = (0, smithy_client_1.expectString)(data.idToken);
24870
+ }
24871
+ if (data.refreshToken != null) {
24872
+ contents.refreshToken = (0, smithy_client_1.expectString)(data.refreshToken);
24873
+ }
24874
+ if (data.tokenType != null) {
24875
+ contents.tokenType = (0, smithy_client_1.expectString)(data.tokenType);
24876
+ }
24877
+ return contents;
24878
+ };
24879
+ exports.deserializeAws_restJson1CreateTokenCommand = deserializeAws_restJson1CreateTokenCommand;
24880
+ var deserializeAws_restJson1CreateTokenCommandError = async (output, context) => {
24881
+ const parsedOutput = {
24882
+ ...output,
24883
+ body: await parseErrorBody(output.body, context)
24884
+ };
24885
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
24886
+ switch (errorCode) {
24887
+ case "AccessDeniedException":
24888
+ case "com.amazonaws.ssooidc#AccessDeniedException":
24889
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
24890
+ case "AuthorizationPendingException":
24891
+ case "com.amazonaws.ssooidc#AuthorizationPendingException":
24892
+ throw await deserializeAws_restJson1AuthorizationPendingExceptionResponse(parsedOutput, context);
24893
+ case "ExpiredTokenException":
24894
+ case "com.amazonaws.ssooidc#ExpiredTokenException":
24895
+ throw await deserializeAws_restJson1ExpiredTokenExceptionResponse(parsedOutput, context);
24896
+ case "InternalServerException":
24897
+ case "com.amazonaws.ssooidc#InternalServerException":
24898
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
24899
+ case "InvalidClientException":
24900
+ case "com.amazonaws.ssooidc#InvalidClientException":
24901
+ throw await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context);
24902
+ case "InvalidGrantException":
24903
+ case "com.amazonaws.ssooidc#InvalidGrantException":
24904
+ throw await deserializeAws_restJson1InvalidGrantExceptionResponse(parsedOutput, context);
24905
+ case "InvalidRequestException":
24906
+ case "com.amazonaws.ssooidc#InvalidRequestException":
24907
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
24908
+ case "InvalidScopeException":
24909
+ case "com.amazonaws.ssooidc#InvalidScopeException":
24910
+ throw await deserializeAws_restJson1InvalidScopeExceptionResponse(parsedOutput, context);
24911
+ case "SlowDownException":
24912
+ case "com.amazonaws.ssooidc#SlowDownException":
24913
+ throw await deserializeAws_restJson1SlowDownExceptionResponse(parsedOutput, context);
24914
+ case "UnauthorizedClientException":
24915
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
24916
+ throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
24917
+ case "UnsupportedGrantTypeException":
24918
+ case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
24919
+ throw await deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse(parsedOutput, context);
24920
+ default:
24921
+ const parsedBody = parsedOutput.body;
24922
+ (0, smithy_client_1.throwDefaultError)({
24923
+ output,
24924
+ parsedBody,
24925
+ exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
24926
+ errorCode
24927
+ });
24928
+ }
24929
+ };
24930
+ var deserializeAws_restJson1RegisterClientCommand = async (output, context) => {
24931
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
24932
+ return deserializeAws_restJson1RegisterClientCommandError(output, context);
24933
+ }
24934
+ const contents = map({
24935
+ $metadata: deserializeMetadata(output)
24936
+ });
24937
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
24938
+ if (data.authorizationEndpoint != null) {
24939
+ contents.authorizationEndpoint = (0, smithy_client_1.expectString)(data.authorizationEndpoint);
24940
+ }
24941
+ if (data.clientId != null) {
24942
+ contents.clientId = (0, smithy_client_1.expectString)(data.clientId);
24943
+ }
24944
+ if (data.clientIdIssuedAt != null) {
24945
+ contents.clientIdIssuedAt = (0, smithy_client_1.expectLong)(data.clientIdIssuedAt);
24946
+ }
24947
+ if (data.clientSecret != null) {
24948
+ contents.clientSecret = (0, smithy_client_1.expectString)(data.clientSecret);
24949
+ }
24950
+ if (data.clientSecretExpiresAt != null) {
24951
+ contents.clientSecretExpiresAt = (0, smithy_client_1.expectLong)(data.clientSecretExpiresAt);
24952
+ }
24953
+ if (data.tokenEndpoint != null) {
24954
+ contents.tokenEndpoint = (0, smithy_client_1.expectString)(data.tokenEndpoint);
24955
+ }
24956
+ return contents;
24957
+ };
24958
+ exports.deserializeAws_restJson1RegisterClientCommand = deserializeAws_restJson1RegisterClientCommand;
24959
+ var deserializeAws_restJson1RegisterClientCommandError = async (output, context) => {
24960
+ const parsedOutput = {
24961
+ ...output,
24962
+ body: await parseErrorBody(output.body, context)
24963
+ };
24964
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
24965
+ switch (errorCode) {
24966
+ case "InternalServerException":
24967
+ case "com.amazonaws.ssooidc#InternalServerException":
24968
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
24969
+ case "InvalidClientMetadataException":
24970
+ case "com.amazonaws.ssooidc#InvalidClientMetadataException":
24971
+ throw await deserializeAws_restJson1InvalidClientMetadataExceptionResponse(parsedOutput, context);
24972
+ case "InvalidRequestException":
24973
+ case "com.amazonaws.ssooidc#InvalidRequestException":
24974
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
24975
+ case "InvalidScopeException":
24976
+ case "com.amazonaws.ssooidc#InvalidScopeException":
24977
+ throw await deserializeAws_restJson1InvalidScopeExceptionResponse(parsedOutput, context);
24978
+ default:
24979
+ const parsedBody = parsedOutput.body;
24980
+ (0, smithy_client_1.throwDefaultError)({
24981
+ output,
24982
+ parsedBody,
24983
+ exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
24984
+ errorCode
24985
+ });
24986
+ }
24987
+ };
24988
+ var deserializeAws_restJson1StartDeviceAuthorizationCommand = async (output, context) => {
24989
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
24990
+ return deserializeAws_restJson1StartDeviceAuthorizationCommandError(output, context);
24991
+ }
24992
+ const contents = map({
24993
+ $metadata: deserializeMetadata(output)
24994
+ });
24995
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
24996
+ if (data.deviceCode != null) {
24997
+ contents.deviceCode = (0, smithy_client_1.expectString)(data.deviceCode);
24998
+ }
24999
+ if (data.expiresIn != null) {
25000
+ contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
25001
+ }
25002
+ if (data.interval != null) {
25003
+ contents.interval = (0, smithy_client_1.expectInt32)(data.interval);
25004
+ }
25005
+ if (data.userCode != null) {
25006
+ contents.userCode = (0, smithy_client_1.expectString)(data.userCode);
25007
+ }
25008
+ if (data.verificationUri != null) {
25009
+ contents.verificationUri = (0, smithy_client_1.expectString)(data.verificationUri);
25010
+ }
25011
+ if (data.verificationUriComplete != null) {
25012
+ contents.verificationUriComplete = (0, smithy_client_1.expectString)(data.verificationUriComplete);
25013
+ }
25014
+ return contents;
25015
+ };
25016
+ exports.deserializeAws_restJson1StartDeviceAuthorizationCommand = deserializeAws_restJson1StartDeviceAuthorizationCommand;
25017
+ var deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (output, context) => {
25018
+ const parsedOutput = {
25019
+ ...output,
25020
+ body: await parseErrorBody(output.body, context)
25021
+ };
25022
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
25023
+ switch (errorCode) {
25024
+ case "InternalServerException":
25025
+ case "com.amazonaws.ssooidc#InternalServerException":
25026
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
25027
+ case "InvalidClientException":
25028
+ case "com.amazonaws.ssooidc#InvalidClientException":
25029
+ throw await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context);
25030
+ case "InvalidRequestException":
25031
+ case "com.amazonaws.ssooidc#InvalidRequestException":
25032
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
25033
+ case "SlowDownException":
25034
+ case "com.amazonaws.ssooidc#SlowDownException":
25035
+ throw await deserializeAws_restJson1SlowDownExceptionResponse(parsedOutput, context);
25036
+ case "UnauthorizedClientException":
25037
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
25038
+ throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
25039
+ default:
25040
+ const parsedBody = parsedOutput.body;
25041
+ (0, smithy_client_1.throwDefaultError)({
25042
+ output,
25043
+ parsedBody,
25044
+ exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
25045
+ errorCode
25046
+ });
25047
+ }
25048
+ };
25049
+ var map = smithy_client_1.map;
25050
+ var deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
25051
+ const contents = map({});
25052
+ const data = parsedOutput.body;
25053
+ if (data.error != null) {
25054
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25055
+ }
25056
+ if (data.error_description != null) {
25057
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25058
+ }
25059
+ const exception = new models_0_1.AccessDeniedException({
25060
+ $metadata: deserializeMetadata(parsedOutput),
25061
+ ...contents
25062
+ });
25063
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25064
+ };
25065
+ var deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (parsedOutput, context) => {
25066
+ const contents = map({});
25067
+ const data = parsedOutput.body;
25068
+ if (data.error != null) {
25069
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25070
+ }
25071
+ if (data.error_description != null) {
25072
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25073
+ }
25074
+ const exception = new models_0_1.AuthorizationPendingException({
25075
+ $metadata: deserializeMetadata(parsedOutput),
25076
+ ...contents
25077
+ });
25078
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25079
+ };
25080
+ var deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutput, context) => {
25081
+ const contents = map({});
25082
+ const data = parsedOutput.body;
25083
+ if (data.error != null) {
25084
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25085
+ }
25086
+ if (data.error_description != null) {
25087
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25088
+ }
25089
+ const exception = new models_0_1.ExpiredTokenException({
25090
+ $metadata: deserializeMetadata(parsedOutput),
25091
+ ...contents
25092
+ });
25093
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25094
+ };
25095
+ var deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
25096
+ const contents = map({});
25097
+ const data = parsedOutput.body;
25098
+ if (data.error != null) {
25099
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25100
+ }
25101
+ if (data.error_description != null) {
25102
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25103
+ }
25104
+ const exception = new models_0_1.InternalServerException({
25105
+ $metadata: deserializeMetadata(parsedOutput),
25106
+ ...contents
25107
+ });
25108
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25109
+ };
25110
+ var deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutput, context) => {
25111
+ const contents = map({});
25112
+ const data = parsedOutput.body;
25113
+ if (data.error != null) {
25114
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25115
+ }
25116
+ if (data.error_description != null) {
25117
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25118
+ }
25119
+ const exception = new models_0_1.InvalidClientException({
25120
+ $metadata: deserializeMetadata(parsedOutput),
25121
+ ...contents
25122
+ });
25123
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25124
+ };
25125
+ var deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (parsedOutput, context) => {
25126
+ const contents = map({});
25127
+ const data = parsedOutput.body;
25128
+ if (data.error != null) {
25129
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25130
+ }
25131
+ if (data.error_description != null) {
25132
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25133
+ }
25134
+ const exception = new models_0_1.InvalidClientMetadataException({
25135
+ $metadata: deserializeMetadata(parsedOutput),
25136
+ ...contents
25137
+ });
25138
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25139
+ };
25140
+ var deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutput, context) => {
25141
+ const contents = map({});
25142
+ const data = parsedOutput.body;
25143
+ if (data.error != null) {
25144
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25145
+ }
25146
+ if (data.error_description != null) {
25147
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25148
+ }
25149
+ const exception = new models_0_1.InvalidGrantException({
25150
+ $metadata: deserializeMetadata(parsedOutput),
25151
+ ...contents
25152
+ });
25153
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25154
+ };
25155
+ var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
25156
+ const contents = map({});
25157
+ const data = parsedOutput.body;
25158
+ if (data.error != null) {
25159
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25160
+ }
25161
+ if (data.error_description != null) {
25162
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25163
+ }
25164
+ const exception = new models_0_1.InvalidRequestException({
25165
+ $metadata: deserializeMetadata(parsedOutput),
25166
+ ...contents
25167
+ });
25168
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25169
+ };
25170
+ var deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutput, context) => {
25171
+ const contents = map({});
25172
+ const data = parsedOutput.body;
25173
+ if (data.error != null) {
25174
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25175
+ }
25176
+ if (data.error_description != null) {
25177
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25178
+ }
25179
+ const exception = new models_0_1.InvalidScopeException({
25180
+ $metadata: deserializeMetadata(parsedOutput),
25181
+ ...contents
25182
+ });
25183
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25184
+ };
25185
+ var deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, context) => {
25186
+ const contents = map({});
25187
+ const data = parsedOutput.body;
25188
+ if (data.error != null) {
25189
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25190
+ }
25191
+ if (data.error_description != null) {
25192
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25193
+ }
25194
+ const exception = new models_0_1.SlowDownException({
25195
+ $metadata: deserializeMetadata(parsedOutput),
25196
+ ...contents
25197
+ });
25198
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25199
+ };
25200
+ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
25201
+ const contents = map({});
25202
+ const data = parsedOutput.body;
25203
+ if (data.error != null) {
25204
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25205
+ }
25206
+ if (data.error_description != null) {
25207
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25208
+ }
25209
+ const exception = new models_0_1.UnauthorizedClientException({
25210
+ $metadata: deserializeMetadata(parsedOutput),
25211
+ ...contents
25212
+ });
25213
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25214
+ };
25215
+ var deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = async (parsedOutput, context) => {
25216
+ const contents = map({});
25217
+ const data = parsedOutput.body;
25218
+ if (data.error != null) {
25219
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25220
+ }
25221
+ if (data.error_description != null) {
25222
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25223
+ }
25224
+ const exception = new models_0_1.UnsupportedGrantTypeException({
25225
+ $metadata: deserializeMetadata(parsedOutput),
25226
+ ...contents
25227
+ });
25228
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25229
+ };
25230
+ var serializeAws_restJson1Scopes = (input, context) => {
25231
+ return input.filter((e) => e != null).map((entry) => {
25232
+ return entry;
25233
+ });
25234
+ };
25235
+ var deserializeMetadata = (output) => ({
25236
+ httpStatusCode: output.statusCode,
25237
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
25238
+ extendedRequestId: output.headers["x-amz-id-2"],
25239
+ cfId: output.headers["x-amz-cf-id"]
25240
+ });
25241
+ var collectBody = (streamBody = new Uint8Array(), context) => {
25242
+ if (streamBody instanceof Uint8Array) {
25243
+ return Promise.resolve(streamBody);
25244
+ }
25245
+ return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
25246
+ };
25247
+ var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
25248
+ var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
25249
+ if (encoded.length) {
25250
+ return JSON.parse(encoded);
25251
+ }
25252
+ return {};
25253
+ });
25254
+ var parseErrorBody = async (errorBody, context) => {
25255
+ const value = await parseBody(errorBody, context);
25256
+ value.message = value.message ?? value.Message;
25257
+ return value;
25258
+ };
25259
+ var loadRestJsonErrorCode = (output, data) => {
25260
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
25261
+ const sanitizeErrorCode = (rawValue) => {
25262
+ let cleanValue = rawValue;
25263
+ if (typeof cleanValue === "number") {
25264
+ cleanValue = cleanValue.toString();
25265
+ }
25266
+ if (cleanValue.indexOf(",") >= 0) {
25267
+ cleanValue = cleanValue.split(",")[0];
25268
+ }
25269
+ if (cleanValue.indexOf(":") >= 0) {
25270
+ cleanValue = cleanValue.split(":")[0];
25271
+ }
25272
+ if (cleanValue.indexOf("#") >= 0) {
25273
+ cleanValue = cleanValue.split("#")[1];
25274
+ }
25275
+ return cleanValue;
25276
+ };
25277
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
25278
+ if (headerKey !== void 0) {
25279
+ return sanitizeErrorCode(output.headers[headerKey]);
25280
+ }
25281
+ if (data.code !== void 0) {
25282
+ return sanitizeErrorCode(data.code);
25283
+ }
25284
+ if (data["__type"] !== void 0) {
25285
+ return sanitizeErrorCode(data["__type"]);
25286
+ }
25287
+ };
25288
+ }
25289
+ });
25290
+
25291
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js
25292
+ var require_CreateTokenCommand = __commonJS({
25293
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js"(exports) {
25294
+ "use strict";
25295
+ Object.defineProperty(exports, "__esModule", { value: true });
25296
+ exports.CreateTokenCommand = void 0;
25297
+ var middleware_endpoint_1 = require_dist_cjs5();
25298
+ var middleware_serde_1 = require_dist_cjs3();
25299
+ var smithy_client_1 = require_dist_cjs7();
25300
+ var models_0_1 = require_models_04();
25301
+ var Aws_restJson1_1 = require_Aws_restJson13();
25302
+ var CreateTokenCommand = class extends smithy_client_1.Command {
25303
+ constructor(input) {
25304
+ super();
25305
+ this.input = input;
25306
+ }
25307
+ static getEndpointParameterInstructions() {
25308
+ return {
25309
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25310
+ Endpoint: { type: "builtInParams", name: "endpoint" },
25311
+ Region: { type: "builtInParams", name: "region" },
25312
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
25313
+ };
25314
+ }
25315
+ resolveMiddleware(clientStack, configuration, options) {
25316
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25317
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateTokenCommand.getEndpointParameterInstructions()));
25318
+ const stack = clientStack.concat(this.middlewareStack);
25319
+ const { logger } = configuration;
25320
+ const clientName = "SSOOIDCClient";
25321
+ const commandName = "CreateTokenCommand";
25322
+ const handlerExecutionContext = {
25323
+ logger,
25324
+ clientName,
25325
+ commandName,
25326
+ inputFilterSensitiveLog: models_0_1.CreateTokenRequestFilterSensitiveLog,
25327
+ outputFilterSensitiveLog: models_0_1.CreateTokenResponseFilterSensitiveLog
25328
+ };
25329
+ const { requestHandler } = configuration;
25330
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25331
+ }
25332
+ serialize(input, context) {
25333
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateTokenCommand)(input, context);
25334
+ }
25335
+ deserialize(output, context) {
25336
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateTokenCommand)(output, context);
25337
+ }
25338
+ };
25339
+ exports.CreateTokenCommand = CreateTokenCommand;
25340
+ }
25341
+ });
25342
+
25343
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js
25344
+ var require_RegisterClientCommand = __commonJS({
25345
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js"(exports) {
25346
+ "use strict";
25347
+ Object.defineProperty(exports, "__esModule", { value: true });
25348
+ exports.RegisterClientCommand = void 0;
25349
+ var middleware_endpoint_1 = require_dist_cjs5();
25350
+ var middleware_serde_1 = require_dist_cjs3();
25351
+ var smithy_client_1 = require_dist_cjs7();
25352
+ var models_0_1 = require_models_04();
25353
+ var Aws_restJson1_1 = require_Aws_restJson13();
25354
+ var RegisterClientCommand = class extends smithy_client_1.Command {
25355
+ constructor(input) {
25356
+ super();
25357
+ this.input = input;
25358
+ }
25359
+ static getEndpointParameterInstructions() {
25360
+ return {
25361
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25362
+ Endpoint: { type: "builtInParams", name: "endpoint" },
25363
+ Region: { type: "builtInParams", name: "region" },
25364
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
25365
+ };
25366
+ }
25367
+ resolveMiddleware(clientStack, configuration, options) {
25368
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25369
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterClientCommand.getEndpointParameterInstructions()));
25370
+ const stack = clientStack.concat(this.middlewareStack);
25371
+ const { logger } = configuration;
25372
+ const clientName = "SSOOIDCClient";
25373
+ const commandName = "RegisterClientCommand";
25374
+ const handlerExecutionContext = {
25375
+ logger,
25376
+ clientName,
25377
+ commandName,
25378
+ inputFilterSensitiveLog: models_0_1.RegisterClientRequestFilterSensitiveLog,
25379
+ outputFilterSensitiveLog: models_0_1.RegisterClientResponseFilterSensitiveLog
25380
+ };
25381
+ const { requestHandler } = configuration;
25382
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25383
+ }
25384
+ serialize(input, context) {
25385
+ return (0, Aws_restJson1_1.serializeAws_restJson1RegisterClientCommand)(input, context);
25386
+ }
25387
+ deserialize(output, context) {
25388
+ return (0, Aws_restJson1_1.deserializeAws_restJson1RegisterClientCommand)(output, context);
25389
+ }
25390
+ };
25391
+ exports.RegisterClientCommand = RegisterClientCommand;
25392
+ }
25393
+ });
25394
+
25395
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js
25396
+ var require_StartDeviceAuthorizationCommand = __commonJS({
25397
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js"(exports) {
25398
+ "use strict";
25399
+ Object.defineProperty(exports, "__esModule", { value: true });
25400
+ exports.StartDeviceAuthorizationCommand = void 0;
25401
+ var middleware_endpoint_1 = require_dist_cjs5();
25402
+ var middleware_serde_1 = require_dist_cjs3();
25403
+ var smithy_client_1 = require_dist_cjs7();
25404
+ var models_0_1 = require_models_04();
25405
+ var Aws_restJson1_1 = require_Aws_restJson13();
25406
+ var StartDeviceAuthorizationCommand = class extends smithy_client_1.Command {
25407
+ constructor(input) {
25408
+ super();
25409
+ this.input = input;
25410
+ }
25411
+ static getEndpointParameterInstructions() {
25412
+ return {
25413
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25414
+ Endpoint: { type: "builtInParams", name: "endpoint" },
25415
+ Region: { type: "builtInParams", name: "region" },
25416
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
25417
+ };
25418
+ }
25419
+ resolveMiddleware(clientStack, configuration, options) {
25420
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25421
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartDeviceAuthorizationCommand.getEndpointParameterInstructions()));
25422
+ const stack = clientStack.concat(this.middlewareStack);
25423
+ const { logger } = configuration;
25424
+ const clientName = "SSOOIDCClient";
25425
+ const commandName = "StartDeviceAuthorizationCommand";
25426
+ const handlerExecutionContext = {
25427
+ logger,
25428
+ clientName,
25429
+ commandName,
25430
+ inputFilterSensitiveLog: models_0_1.StartDeviceAuthorizationRequestFilterSensitiveLog,
25431
+ outputFilterSensitiveLog: models_0_1.StartDeviceAuthorizationResponseFilterSensitiveLog
25432
+ };
25433
+ const { requestHandler } = configuration;
25434
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25435
+ }
25436
+ serialize(input, context) {
25437
+ return (0, Aws_restJson1_1.serializeAws_restJson1StartDeviceAuthorizationCommand)(input, context);
25438
+ }
25439
+ deserialize(output, context) {
25440
+ return (0, Aws_restJson1_1.deserializeAws_restJson1StartDeviceAuthorizationCommand)(output, context);
25441
+ }
25442
+ };
25443
+ exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
25444
+ }
25445
+ });
25446
+
25447
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js
25448
+ var require_EndpointParameters4 = __commonJS({
25449
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js"(exports) {
25450
+ "use strict";
25451
+ Object.defineProperty(exports, "__esModule", { value: true });
25452
+ exports.resolveClientEndpointParameters = void 0;
25453
+ var resolveClientEndpointParameters = (options) => {
25454
+ return {
25455
+ ...options,
25456
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
25457
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25458
+ defaultSigningName: "awsssooidc"
25459
+ };
25460
+ };
25461
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
25462
+ }
25463
+ });
25464
+
25465
+ // node_modules/@aws-sdk/client-sso-oidc/package.json
25466
+ var require_package4 = __commonJS({
25467
+ "node_modules/@aws-sdk/client-sso-oidc/package.json"(exports, module2) {
25468
+ module2.exports = {
25469
+ name: "@aws-sdk/client-sso-oidc",
25470
+ description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
25471
+ version: "3.216.0",
25472
+ scripts: {
25473
+ build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
25474
+ "build:cjs": "tsc -p tsconfig.cjs.json",
25475
+ "build:docs": "typedoc",
25476
+ "build:es": "tsc -p tsconfig.es.json",
25477
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
25478
+ "build:types": "tsc -p tsconfig.types.json",
25479
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
25480
+ clean: "rimraf ./dist-* && rimraf *.tsbuildinfo"
25481
+ },
25482
+ main: "./dist-cjs/index.js",
25483
+ types: "./dist-types/index.d.ts",
25484
+ module: "./dist-es/index.js",
25485
+ sideEffects: false,
25486
+ dependencies: {
25487
+ "@aws-crypto/sha256-browser": "2.0.0",
25488
+ "@aws-crypto/sha256-js": "2.0.0",
25489
+ "@aws-sdk/config-resolver": "3.215.0",
25490
+ "@aws-sdk/fetch-http-handler": "3.215.0",
25491
+ "@aws-sdk/hash-node": "3.215.0",
25492
+ "@aws-sdk/invalid-dependency": "3.215.0",
25493
+ "@aws-sdk/middleware-content-length": "3.215.0",
25494
+ "@aws-sdk/middleware-endpoint": "3.215.0",
25495
+ "@aws-sdk/middleware-host-header": "3.215.0",
25496
+ "@aws-sdk/middleware-logger": "3.215.0",
25497
+ "@aws-sdk/middleware-recursion-detection": "3.215.0",
25498
+ "@aws-sdk/middleware-retry": "3.215.0",
25499
+ "@aws-sdk/middleware-serde": "3.215.0",
25500
+ "@aws-sdk/middleware-stack": "3.215.0",
25501
+ "@aws-sdk/middleware-user-agent": "3.215.0",
25502
+ "@aws-sdk/node-config-provider": "3.215.0",
25503
+ "@aws-sdk/node-http-handler": "3.215.0",
25504
+ "@aws-sdk/protocol-http": "3.215.0",
25505
+ "@aws-sdk/smithy-client": "3.215.0",
25506
+ "@aws-sdk/types": "3.215.0",
25507
+ "@aws-sdk/url-parser": "3.215.0",
25508
+ "@aws-sdk/util-base64": "3.208.0",
25509
+ "@aws-sdk/util-body-length-browser": "3.188.0",
25510
+ "@aws-sdk/util-body-length-node": "3.208.0",
25511
+ "@aws-sdk/util-defaults-mode-browser": "3.215.0",
25512
+ "@aws-sdk/util-defaults-mode-node": "3.215.0",
25513
+ "@aws-sdk/util-endpoints": "3.216.0",
25514
+ "@aws-sdk/util-user-agent-browser": "3.215.0",
25515
+ "@aws-sdk/util-user-agent-node": "3.215.0",
25516
+ "@aws-sdk/util-utf8-browser": "3.188.0",
25517
+ "@aws-sdk/util-utf8-node": "3.208.0",
25518
+ tslib: "^2.3.1"
25519
+ },
25520
+ devDependencies: {
25521
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
25522
+ "@tsconfig/node14": "1.0.3",
25523
+ "@types/node": "^14.14.31",
25524
+ concurrently: "7.0.0",
25525
+ "downlevel-dts": "0.10.1",
25526
+ rimraf: "3.0.2",
25527
+ typedoc: "0.19.2",
25528
+ typescript: "~4.6.2"
25529
+ },
25530
+ overrides: {
25531
+ typedoc: {
25532
+ typescript: "~4.6.2"
25533
+ }
25534
+ },
25535
+ engines: {
25536
+ node: ">=14.0.0"
25537
+ },
25538
+ typesVersions: {
25539
+ "<4.0": {
25540
+ "dist-types/*": [
25541
+ "dist-types/ts3.4/*"
25542
+ ]
25543
+ }
25544
+ },
25545
+ files: [
25546
+ "dist-*"
25547
+ ],
25548
+ author: {
25549
+ name: "AWS SDK for JavaScript Team",
25550
+ url: "https://aws.amazon.com/javascript/"
25551
+ },
25552
+ license: "Apache-2.0",
25553
+ browser: {
25554
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
25555
+ },
25556
+ "react-native": {
25557
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
25558
+ },
25559
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",
25560
+ repository: {
25561
+ type: "git",
25562
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
25563
+ directory: "clients/client-sso-oidc"
25564
+ }
25565
+ };
25566
+ }
25567
+ });
25568
+
25569
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
25570
+ var require_ruleset2 = __commonJS({
25571
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports) {
25572
+ "use strict";
25573
+ Object.defineProperty(exports, "__esModule", { value: true });
25574
+ exports.ruleSet = void 0;
25575
+ exports.ruleSet = {
25576
+ version: "1.0",
25577
+ parameters: {
25578
+ Region: {
25579
+ builtIn: "AWS::Region",
25580
+ required: false,
25581
+ documentation: "The AWS region used to dispatch the request.",
25582
+ type: "String"
25583
+ },
25584
+ UseDualStack: {
25585
+ builtIn: "AWS::UseDualStack",
25586
+ required: true,
25587
+ default: false,
25588
+ documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
25589
+ type: "Boolean"
25590
+ },
25591
+ UseFIPS: {
25592
+ builtIn: "AWS::UseFIPS",
25593
+ required: true,
25594
+ default: false,
25595
+ documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
25596
+ type: "Boolean"
25597
+ },
25598
+ Endpoint: {
25599
+ builtIn: "SDK::Endpoint",
25600
+ required: false,
25601
+ documentation: "Override the endpoint used to send this request",
25602
+ type: "String"
25603
+ }
25604
+ },
25605
+ rules: [
25606
+ {
25607
+ conditions: [
25608
+ {
25609
+ fn: "aws.partition",
25610
+ argv: [
25611
+ {
25612
+ ref: "Region"
25613
+ }
25614
+ ],
25615
+ assign: "PartitionResult"
25616
+ }
25617
+ ],
25618
+ type: "tree",
25619
+ rules: [
25620
+ {
25621
+ conditions: [
25622
+ {
25623
+ fn: "isSet",
25624
+ argv: [
25625
+ {
25626
+ ref: "Endpoint"
25627
+ }
25628
+ ]
25629
+ },
25630
+ {
25631
+ fn: "parseURL",
25632
+ argv: [
25633
+ {
25634
+ ref: "Endpoint"
25635
+ }
25636
+ ],
25637
+ assign: "url"
25638
+ }
25639
+ ],
25640
+ type: "tree",
25641
+ rules: [
25642
+ {
25643
+ conditions: [
25644
+ {
25645
+ fn: "booleanEquals",
25646
+ argv: [
25647
+ {
25648
+ ref: "UseFIPS"
25649
+ },
25650
+ true
25651
+ ]
25652
+ }
25653
+ ],
25654
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
25655
+ type: "error"
25656
+ },
25657
+ {
25658
+ conditions: [],
25659
+ type: "tree",
25660
+ rules: [
25661
+ {
25662
+ conditions: [
25663
+ {
25664
+ fn: "booleanEquals",
25665
+ argv: [
25666
+ {
25667
+ ref: "UseDualStack"
25668
+ },
25669
+ true
25670
+ ]
25671
+ }
25672
+ ],
25673
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
25674
+ type: "error"
25675
+ },
25676
+ {
25677
+ conditions: [],
25678
+ endpoint: {
25679
+ url: {
25680
+ ref: "Endpoint"
25681
+ },
25682
+ properties: {},
25683
+ headers: {}
25684
+ },
25685
+ type: "endpoint"
25686
+ }
25687
+ ]
25688
+ }
25689
+ ]
25690
+ },
25691
+ {
25692
+ conditions: [
25693
+ {
25694
+ fn: "booleanEquals",
25695
+ argv: [
25696
+ {
25697
+ ref: "UseFIPS"
25698
+ },
25699
+ true
25700
+ ]
25701
+ },
25702
+ {
25703
+ fn: "booleanEquals",
25704
+ argv: [
25705
+ {
25706
+ ref: "UseDualStack"
25707
+ },
25708
+ true
25709
+ ]
25710
+ }
25711
+ ],
25712
+ type: "tree",
25713
+ rules: [
25714
+ {
25715
+ conditions: [
25716
+ {
25717
+ fn: "booleanEquals",
25718
+ argv: [
25719
+ true,
25720
+ {
25721
+ fn: "getAttr",
25722
+ argv: [
25723
+ {
25724
+ ref: "PartitionResult"
25725
+ },
25726
+ "supportsFIPS"
25727
+ ]
25728
+ }
25729
+ ]
25730
+ },
25731
+ {
25732
+ fn: "booleanEquals",
25733
+ argv: [
25734
+ true,
25735
+ {
25736
+ fn: "getAttr",
25737
+ argv: [
25738
+ {
25739
+ ref: "PartitionResult"
25740
+ },
25741
+ "supportsDualStack"
25742
+ ]
25743
+ }
25744
+ ]
25745
+ }
25746
+ ],
25747
+ type: "tree",
25748
+ rules: [
25749
+ {
25750
+ conditions: [],
25751
+ endpoint: {
25752
+ url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
25753
+ properties: {},
25754
+ headers: {}
25755
+ },
25756
+ type: "endpoint"
25757
+ }
25758
+ ]
25759
+ },
25760
+ {
25761
+ conditions: [],
25762
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
25763
+ type: "error"
25764
+ }
25765
+ ]
25766
+ },
25767
+ {
25768
+ conditions: [
25769
+ {
25770
+ fn: "booleanEquals",
25771
+ argv: [
25772
+ {
25773
+ ref: "UseFIPS"
25774
+ },
25775
+ true
25776
+ ]
25777
+ }
25778
+ ],
25779
+ type: "tree",
25780
+ rules: [
25781
+ {
25782
+ conditions: [
25783
+ {
25784
+ fn: "booleanEquals",
25785
+ argv: [
25786
+ true,
25787
+ {
25788
+ fn: "getAttr",
25789
+ argv: [
25790
+ {
25791
+ ref: "PartitionResult"
25792
+ },
25793
+ "supportsFIPS"
25794
+ ]
25795
+ }
25796
+ ]
25797
+ }
25798
+ ],
25799
+ type: "tree",
25800
+ rules: [
25801
+ {
25802
+ conditions: [],
25803
+ type: "tree",
25804
+ rules: [
25805
+ {
25806
+ conditions: [],
25807
+ endpoint: {
25808
+ url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
25809
+ properties: {},
25810
+ headers: {}
25811
+ },
25812
+ type: "endpoint"
25813
+ }
25814
+ ]
25815
+ }
25816
+ ]
25817
+ },
25818
+ {
25819
+ conditions: [],
25820
+ error: "FIPS is enabled but this partition does not support FIPS",
25821
+ type: "error"
25822
+ }
25823
+ ]
25824
+ },
25825
+ {
25826
+ conditions: [
25827
+ {
25828
+ fn: "booleanEquals",
25829
+ argv: [
25830
+ {
25831
+ ref: "UseDualStack"
25832
+ },
25833
+ true
25834
+ ]
25835
+ }
25836
+ ],
25837
+ type: "tree",
25838
+ rules: [
25839
+ {
25840
+ conditions: [
25841
+ {
25842
+ fn: "booleanEquals",
25843
+ argv: [
25844
+ true,
25845
+ {
25846
+ fn: "getAttr",
25847
+ argv: [
25848
+ {
25849
+ ref: "PartitionResult"
25850
+ },
25851
+ "supportsDualStack"
25852
+ ]
25853
+ }
25854
+ ]
25855
+ }
25856
+ ],
25857
+ type: "tree",
25858
+ rules: [
25859
+ {
25860
+ conditions: [],
25861
+ endpoint: {
25862
+ url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
25863
+ properties: {},
25864
+ headers: {}
25865
+ },
25866
+ type: "endpoint"
25867
+ }
25868
+ ]
25869
+ },
25870
+ {
25871
+ conditions: [],
25872
+ error: "DualStack is enabled but this partition does not support DualStack",
25873
+ type: "error"
25874
+ }
25875
+ ]
25876
+ },
25877
+ {
25878
+ conditions: [],
25879
+ endpoint: {
25880
+ url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}",
25881
+ properties: {},
25882
+ headers: {}
25883
+ },
25884
+ type: "endpoint"
25885
+ }
25886
+ ]
25887
+ }
25888
+ ]
25889
+ };
25890
+ }
25891
+ });
25892
+
25893
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
25894
+ var require_endpointResolver2 = __commonJS({
25895
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports) {
25896
+ "use strict";
25897
+ Object.defineProperty(exports, "__esModule", { value: true });
25898
+ exports.defaultEndpointResolver = void 0;
25899
+ var util_endpoints_1 = require_dist_cjs38();
25900
+ var ruleset_1 = require_ruleset2();
25901
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
25902
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
25903
+ endpointParams,
25904
+ logger: context.logger
25905
+ });
25906
+ };
25907
+ exports.defaultEndpointResolver = defaultEndpointResolver;
25908
+ }
25909
+ });
25910
+
25911
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
25912
+ var require_runtimeConfig_shared2 = __commonJS({
25913
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports) {
25914
+ "use strict";
25915
+ Object.defineProperty(exports, "__esModule", { value: true });
25916
+ exports.getRuntimeConfig = void 0;
25917
+ var smithy_client_1 = require_dist_cjs7();
25918
+ var url_parser_1 = require_dist_cjs2();
25919
+ var util_base64_1 = require_dist_cjs36();
25920
+ var endpointResolver_1 = require_endpointResolver2();
25921
+ var getRuntimeConfig = (config) => ({
25922
+ apiVersion: "2019-06-10",
25923
+ base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
25924
+ base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
25925
+ disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
25926
+ endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
25927
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
25928
+ serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO OIDC",
25929
+ urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
25930
+ });
25931
+ exports.getRuntimeConfig = getRuntimeConfig;
25932
+ }
25933
+ });
25934
+
25935
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
25936
+ var require_runtimeConfig2 = __commonJS({
25937
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports) {
25938
+ "use strict";
25939
+ Object.defineProperty(exports, "__esModule", { value: true });
25940
+ exports.getRuntimeConfig = void 0;
25941
+ var tslib_1 = require_tslib();
25942
+ var package_json_1 = tslib_1.__importDefault(require_package4());
25943
+ var config_resolver_1 = require_dist_cjs10();
25944
+ var hash_node_1 = require_dist_cjs30();
25945
+ var middleware_retry_1 = require_dist_cjs16();
25946
+ var node_config_provider_1 = require_dist_cjs27();
25947
+ var node_http_handler_1 = require_dist_cjs32();
25948
+ var util_body_length_node_1 = require_dist_cjs33();
25949
+ var util_user_agent_node_1 = require_dist_cjs34();
25950
+ var util_utf8_node_1 = require_dist_cjs35();
25951
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
25952
+ var smithy_client_1 = require_dist_cjs7();
25953
+ var util_defaults_mode_node_1 = require_dist_cjs39();
25954
+ var smithy_client_2 = require_dist_cjs7();
25955
+ var getRuntimeConfig = (config) => {
25956
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
25957
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25958
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25959
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25960
+ return {
25961
+ ...clientSharedValues,
25962
+ ...config,
25963
+ runtime: "node",
25964
+ defaultsMode,
25965
+ bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? util_body_length_node_1.calculateBodyLength,
25966
+ defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
25967
+ maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
25968
+ region: (config == null ? void 0 : config.region) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
25969
+ requestHandler: (config == null ? void 0 : config.requestHandler) ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
25970
+ retryMode: (config == null ? void 0 : config.retryMode) ?? (0, node_config_provider_1.loadConfig)({
25971
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
25972
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE
25973
+ }),
25974
+ sha256: (config == null ? void 0 : config.sha256) ?? hash_node_1.Hash.bind(null, "sha256"),
25975
+ streamCollector: (config == null ? void 0 : config.streamCollector) ?? node_http_handler_1.streamCollector,
25976
+ useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
25977
+ useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
25978
+ utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_node_1.fromUtf8,
25979
+ utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_node_1.toUtf8
25980
+ };
25981
+ };
25982
+ exports.getRuntimeConfig = getRuntimeConfig;
25983
+ }
25984
+ });
25985
+
25986
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js
25987
+ var require_SSOOIDCClient = __commonJS({
25988
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js"(exports) {
25989
+ "use strict";
25990
+ Object.defineProperty(exports, "__esModule", { value: true });
25991
+ exports.SSOOIDCClient = void 0;
25992
+ var config_resolver_1 = require_dist_cjs10();
25993
+ var middleware_content_length_1 = require_dist_cjs11();
25994
+ var middleware_endpoint_1 = require_dist_cjs5();
25995
+ var middleware_host_header_1 = require_dist_cjs12();
25996
+ var middleware_logger_1 = require_dist_cjs13();
25997
+ var middleware_recursion_detection_1 = require_dist_cjs14();
25998
+ var middleware_retry_1 = require_dist_cjs16();
25999
+ var middleware_user_agent_1 = require_dist_cjs23();
26000
+ var smithy_client_1 = require_dist_cjs7();
26001
+ var EndpointParameters_1 = require_EndpointParameters4();
26002
+ var runtimeConfig_1 = require_runtimeConfig2();
26003
+ var SSOOIDCClient = class extends smithy_client_1.Client {
26004
+ constructor(configuration) {
26005
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
26006
+ const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
26007
+ const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
26008
+ const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
26009
+ const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
26010
+ const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
26011
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
26012
+ super(_config_6);
26013
+ this.config = _config_6;
26014
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
26015
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26016
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
26017
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
26018
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
26019
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
26020
+ }
26021
+ destroy() {
26022
+ super.destroy();
26023
+ }
26024
+ };
26025
+ exports.SSOOIDCClient = SSOOIDCClient;
26026
+ }
26027
+ });
26028
+
26029
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js
26030
+ var require_SSOOIDC = __commonJS({
26031
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js"(exports) {
26032
+ "use strict";
26033
+ Object.defineProperty(exports, "__esModule", { value: true });
26034
+ exports.SSOOIDC = void 0;
26035
+ var CreateTokenCommand_1 = require_CreateTokenCommand();
26036
+ var RegisterClientCommand_1 = require_RegisterClientCommand();
26037
+ var StartDeviceAuthorizationCommand_1 = require_StartDeviceAuthorizationCommand();
26038
+ var SSOOIDCClient_1 = require_SSOOIDCClient();
26039
+ var SSOOIDC = class extends SSOOIDCClient_1.SSOOIDCClient {
26040
+ createToken(args, optionsOrCb, cb) {
26041
+ const command = new CreateTokenCommand_1.CreateTokenCommand(args);
26042
+ if (typeof optionsOrCb === "function") {
26043
+ this.send(command, optionsOrCb);
26044
+ } else if (typeof cb === "function") {
26045
+ if (typeof optionsOrCb !== "object")
26046
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26047
+ this.send(command, optionsOrCb || {}, cb);
26048
+ } else {
26049
+ return this.send(command, optionsOrCb);
26050
+ }
26051
+ }
26052
+ registerClient(args, optionsOrCb, cb) {
26053
+ const command = new RegisterClientCommand_1.RegisterClientCommand(args);
26054
+ if (typeof optionsOrCb === "function") {
26055
+ this.send(command, optionsOrCb);
26056
+ } else if (typeof cb === "function") {
26057
+ if (typeof optionsOrCb !== "object")
26058
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26059
+ this.send(command, optionsOrCb || {}, cb);
26060
+ } else {
26061
+ return this.send(command, optionsOrCb);
26062
+ }
26063
+ }
26064
+ startDeviceAuthorization(args, optionsOrCb, cb) {
26065
+ const command = new StartDeviceAuthorizationCommand_1.StartDeviceAuthorizationCommand(args);
26066
+ if (typeof optionsOrCb === "function") {
26067
+ this.send(command, optionsOrCb);
26068
+ } else if (typeof cb === "function") {
26069
+ if (typeof optionsOrCb !== "object")
26070
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26071
+ this.send(command, optionsOrCb || {}, cb);
26072
+ } else {
26073
+ return this.send(command, optionsOrCb);
26074
+ }
26075
+ }
26076
+ };
26077
+ exports.SSOOIDC = SSOOIDC;
26078
+ }
26079
+ });
26080
+
26081
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js
26082
+ var require_commands2 = __commonJS({
26083
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js"(exports) {
26084
+ "use strict";
26085
+ Object.defineProperty(exports, "__esModule", { value: true });
26086
+ var tslib_1 = require_tslib();
26087
+ tslib_1.__exportStar(require_CreateTokenCommand(), exports);
26088
+ tslib_1.__exportStar(require_RegisterClientCommand(), exports);
26089
+ tslib_1.__exportStar(require_StartDeviceAuthorizationCommand(), exports);
26090
+ }
26091
+ });
26092
+
26093
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js
26094
+ var require_models2 = __commonJS({
26095
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js"(exports) {
26096
+ "use strict";
26097
+ Object.defineProperty(exports, "__esModule", { value: true });
26098
+ var tslib_1 = require_tslib();
26099
+ tslib_1.__exportStar(require_models_04(), exports);
26100
+ }
26101
+ });
26102
+
26103
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
26104
+ var require_dist_cjs41 = __commonJS({
26105
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports) {
26106
+ "use strict";
26107
+ Object.defineProperty(exports, "__esModule", { value: true });
26108
+ exports.SSOOIDCServiceException = void 0;
26109
+ var tslib_1 = require_tslib();
26110
+ tslib_1.__exportStar(require_SSOOIDC(), exports);
26111
+ tslib_1.__exportStar(require_SSOOIDCClient(), exports);
26112
+ tslib_1.__exportStar(require_commands2(), exports);
26113
+ tslib_1.__exportStar(require_models2(), exports);
26114
+ var SSOOIDCServiceException_1 = require_SSOOIDCServiceException();
26115
+ Object.defineProperty(exports, "SSOOIDCServiceException", { enumerable: true, get: function() {
26116
+ return SSOOIDCServiceException_1.SSOOIDCServiceException;
26117
+ } });
26118
+ }
26119
+ });
26120
+
26121
+ // node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js
26122
+ var require_getSsoOidcClient = __commonJS({
26123
+ "node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js"(exports) {
26124
+ "use strict";
26125
+ Object.defineProperty(exports, "__esModule", { value: true });
26126
+ exports.getSsoOidcClient = void 0;
26127
+ var client_sso_oidc_1 = require_dist_cjs41();
26128
+ var ssoOidcClientsHash = {};
26129
+ var getSsoOidcClient = (ssoRegion) => {
26130
+ if (ssoOidcClientsHash[ssoRegion]) {
26131
+ return ssoOidcClientsHash[ssoRegion];
26132
+ }
26133
+ const ssoOidcClient = new client_sso_oidc_1.SSOOIDCClient({ region: ssoRegion });
26134
+ ssoOidcClientsHash[ssoRegion] = ssoOidcClient;
26135
+ return ssoOidcClient;
26136
+ };
26137
+ exports.getSsoOidcClient = getSsoOidcClient;
26138
+ }
26139
+ });
26140
+
26141
+ // node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js
26142
+ var require_getNewSsoOidcToken = __commonJS({
26143
+ "node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js"(exports) {
26144
+ "use strict";
26145
+ Object.defineProperty(exports, "__esModule", { value: true });
26146
+ exports.getNewSsoOidcToken = void 0;
26147
+ var client_sso_oidc_1 = require_dist_cjs41();
26148
+ var getSsoOidcClient_1 = require_getSsoOidcClient();
26149
+ var getNewSsoOidcToken = (ssoToken, ssoRegion) => {
26150
+ const ssoOidcClient = (0, getSsoOidcClient_1.getSsoOidcClient)(ssoRegion);
26151
+ return ssoOidcClient.send(new client_sso_oidc_1.CreateTokenCommand({
26152
+ clientId: ssoToken.clientId,
26153
+ clientSecret: ssoToken.clientSecret,
26154
+ refreshToken: ssoToken.refreshToken,
26155
+ grantType: "refresh_token"
26156
+ }));
26157
+ };
26158
+ exports.getNewSsoOidcToken = getNewSsoOidcToken;
26159
+ }
26160
+ });
26161
+
26162
+ // node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js
26163
+ var require_validateTokenExpiry = __commonJS({
26164
+ "node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js"(exports) {
26165
+ "use strict";
26166
+ Object.defineProperty(exports, "__esModule", { value: true });
26167
+ exports.validateTokenExpiry = void 0;
26168
+ var property_provider_1 = require_dist_cjs17();
26169
+ var constants_1 = require_constants8();
26170
+ var validateTokenExpiry = (token) => {
26171
+ if (token.expiration && token.expiration.getTime() < Date.now()) {
26172
+ throw new property_provider_1.TokenProviderError(`Token is expired. ${constants_1.REFRESH_MESSAGE}`, false);
26173
+ }
26174
+ };
26175
+ exports.validateTokenExpiry = validateTokenExpiry;
26176
+ }
26177
+ });
26178
+
26179
+ // node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js
26180
+ var require_validateTokenKey = __commonJS({
26181
+ "node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js"(exports) {
26182
+ "use strict";
26183
+ Object.defineProperty(exports, "__esModule", { value: true });
26184
+ exports.validateTokenKey = void 0;
26185
+ var property_provider_1 = require_dist_cjs17();
26186
+ var constants_1 = require_constants8();
26187
+ var validateTokenKey = (key, value, forRefresh = false) => {
26188
+ if (typeof value === "undefined") {
26189
+ throw new property_provider_1.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${constants_1.REFRESH_MESSAGE}`, false);
26190
+ }
26191
+ };
26192
+ exports.validateTokenKey = validateTokenKey;
26193
+ }
26194
+ });
26195
+
26196
+ // node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js
26197
+ var require_writeSSOTokenToFile = __commonJS({
26198
+ "node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js"(exports) {
26199
+ "use strict";
26200
+ Object.defineProperty(exports, "__esModule", { value: true });
26201
+ exports.writeSSOTokenToFile = void 0;
26202
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26203
+ var fs_1 = require("fs");
26204
+ var { writeFile } = fs_1.promises;
26205
+ var writeSSOTokenToFile = (id, ssoToken) => {
26206
+ const tokenFilepath = (0, shared_ini_file_loader_1.getSSOTokenFilepath)(id);
26207
+ const tokenString = JSON.stringify(ssoToken, null, 2);
26208
+ return writeFile(tokenFilepath, tokenString);
26209
+ };
26210
+ exports.writeSSOTokenToFile = writeSSOTokenToFile;
26211
+ }
26212
+ });
26213
+
26214
+ // node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js
26215
+ var require_fromSso = __commonJS({
26216
+ "node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js"(exports) {
26217
+ "use strict";
26218
+ Object.defineProperty(exports, "__esModule", { value: true });
26219
+ exports.fromSso = void 0;
26220
+ var property_provider_1 = require_dist_cjs17();
26221
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26222
+ var constants_1 = require_constants8();
26223
+ var getNewSsoOidcToken_1 = require_getNewSsoOidcToken();
26224
+ var validateTokenExpiry_1 = require_validateTokenExpiry();
26225
+ var validateTokenKey_1 = require_validateTokenKey();
26226
+ var writeSSOTokenToFile_1 = require_writeSSOTokenToFile();
26227
+ var lastRefreshAttemptTime = new Date(0);
26228
+ var fromSso = (init = {}) => async () => {
26229
+ const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init);
26230
+ const profileName = (0, shared_ini_file_loader_1.getProfileName)(init);
26231
+ const profile = profiles[profileName];
26232
+ if (!profile) {
26233
+ throw new property_provider_1.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
26234
+ } else if (!profile["sso_session"]) {
26235
+ throw new property_provider_1.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
26236
+ }
26237
+ const ssoSessionName = profile["sso_session"];
26238
+ const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init);
26239
+ const ssoSession = ssoSessions[ssoSessionName];
26240
+ if (!ssoSession) {
26241
+ throw new property_provider_1.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
26242
+ }
26243
+ for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
26244
+ if (!ssoSession[ssoSessionRequiredKey]) {
26245
+ throw new property_provider_1.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
26246
+ }
26247
+ }
26248
+ const ssoStartUrl = ssoSession["sso_start_url"];
26249
+ const ssoRegion = ssoSession["sso_region"];
26250
+ let ssoToken;
26251
+ try {
26252
+ ssoToken = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoSessionName);
26253
+ } catch (e) {
26254
+ throw new property_provider_1.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${constants_1.REFRESH_MESSAGE}`, false);
26255
+ }
26256
+ (0, validateTokenKey_1.validateTokenKey)("accessToken", ssoToken.accessToken);
26257
+ (0, validateTokenKey_1.validateTokenKey)("expiresAt", ssoToken.expiresAt);
26258
+ const { accessToken, expiresAt } = ssoToken;
26259
+ const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
26260
+ if (existingToken.expiration.getTime() - Date.now() > constants_1.EXPIRE_WINDOW_MS) {
26261
+ return existingToken;
26262
+ }
26263
+ if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1e3) {
26264
+ (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken);
26265
+ return existingToken;
26266
+ }
26267
+ (0, validateTokenKey_1.validateTokenKey)("clientId", ssoToken.clientId, true);
26268
+ (0, validateTokenKey_1.validateTokenKey)("clientSecret", ssoToken.clientSecret, true);
26269
+ (0, validateTokenKey_1.validateTokenKey)("refreshToken", ssoToken.refreshToken, true);
26270
+ try {
26271
+ lastRefreshAttemptTime.setTime(Date.now());
26272
+ const newSsoOidcToken = await (0, getNewSsoOidcToken_1.getNewSsoOidcToken)(ssoToken, ssoRegion);
26273
+ (0, validateTokenKey_1.validateTokenKey)("accessToken", newSsoOidcToken.accessToken);
26274
+ (0, validateTokenKey_1.validateTokenKey)("expiresIn", newSsoOidcToken.expiresIn);
26275
+ const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3);
26276
+ try {
26277
+ await (0, writeSSOTokenToFile_1.writeSSOTokenToFile)(ssoSessionName, {
26278
+ ...ssoToken,
26279
+ accessToken: newSsoOidcToken.accessToken,
26280
+ expiresAt: newTokenExpiration.toISOString(),
26281
+ refreshToken: newSsoOidcToken.refreshToken
26282
+ });
26283
+ } catch (error) {
26284
+ }
26285
+ return {
26286
+ token: newSsoOidcToken.accessToken,
26287
+ expiration: newTokenExpiration
26288
+ };
26289
+ } catch (error) {
26290
+ (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken);
26291
+ return existingToken;
26292
+ }
26293
+ };
26294
+ exports.fromSso = fromSso;
26295
+ }
26296
+ });
26297
+
26298
+ // node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js
26299
+ var require_fromStatic3 = __commonJS({
26300
+ "node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js"(exports) {
26301
+ "use strict";
26302
+ Object.defineProperty(exports, "__esModule", { value: true });
26303
+ exports.fromStatic = void 0;
26304
+ var property_provider_1 = require_dist_cjs17();
26305
+ var fromStatic = ({ token }) => async () => {
26306
+ if (!token || !token.token) {
26307
+ throw new property_provider_1.TokenProviderError(`Please pass a valid token to fromStatic`, false);
26308
+ }
26309
+ return token;
26310
+ };
26311
+ exports.fromStatic = fromStatic;
26312
+ }
26313
+ });
26314
+
26315
+ // node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js
26316
+ var require_nodeProvider = __commonJS({
26317
+ "node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js"(exports) {
26318
+ "use strict";
26319
+ Object.defineProperty(exports, "__esModule", { value: true });
26320
+ exports.nodeProvider = void 0;
26321
+ var property_provider_1 = require_dist_cjs17();
26322
+ var fromSso_1 = require_fromSso();
26323
+ var nodeProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromSso_1.fromSso)(init), async () => {
26324
+ throw new property_provider_1.TokenProviderError("Could not load token from any providers", false);
26325
+ }), (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5, (token) => token.expiration !== void 0);
26326
+ exports.nodeProvider = nodeProvider;
26327
+ }
26328
+ });
26329
+
26330
+ // node_modules/@aws-sdk/token-providers/dist-cjs/index.js
26331
+ var require_dist_cjs42 = __commonJS({
26332
+ "node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports) {
26333
+ "use strict";
26334
+ Object.defineProperty(exports, "__esModule", { value: true });
26335
+ var tslib_1 = require_tslib();
26336
+ tslib_1.__exportStar(require_fromSso(), exports);
26337
+ tslib_1.__exportStar(require_fromStatic3(), exports);
26338
+ tslib_1.__exportStar(require_nodeProvider(), exports);
26339
+ }
26340
+ });
26341
+
26342
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js
26343
+ var require_resolveSSOCredentials = __commonJS({
26344
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) {
26345
+ "use strict";
26346
+ Object.defineProperty(exports, "__esModule", { value: true });
26347
+ exports.resolveSSOCredentials = void 0;
26348
+ var client_sso_1 = require_dist_cjs40();
26349
+ var property_provider_1 = require_dist_cjs17();
26350
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26351
+ var token_providers_1 = require_dist_cjs42();
26352
+ var EXPIRE_WINDOW_MS = 15 * 60 * 1e3;
26353
+ var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
26354
+ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile }) => {
26355
+ let token;
26356
+ const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
26357
+ if (ssoSession) {
26358
+ try {
26359
+ const _token = await (0, token_providers_1.fromSso)({ profile })();
26360
+ token = {
26361
+ accessToken: _token.token,
26362
+ expiresAt: new Date(_token.expiration).toISOString()
26363
+ };
26364
+ } catch (e) {
26365
+ throw new property_provider_1.CredentialsProviderError(e.message, SHOULD_FAIL_CREDENTIAL_CHAIN);
26366
+ }
26367
+ } else {
26368
+ try {
26369
+ token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl);
26370
+ } catch (e) {
26371
+ throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
26372
+ }
26373
+ }
26374
+ if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) {
26375
+ throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
26376
+ }
26377
+ const { accessToken } = token;
26378
+ const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion });
26379
+ let ssoResp;
26380
+ try {
26381
+ ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({
26382
+ accountId: ssoAccountId,
26383
+ roleName: ssoRoleName,
26384
+ accessToken
26385
+ }));
26386
+ } catch (e) {
26387
+ throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN);
26388
+ }
26389
+ const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
26390
+ if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
26391
+ throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
26392
+ }
26393
+ return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
26394
+ };
26395
+ exports.resolveSSOCredentials = resolveSSOCredentials;
26396
+ }
26397
+ });
26398
+
26399
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js
26400
+ var require_validateSsoProfile = __commonJS({
26401
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) {
26402
+ "use strict";
26403
+ Object.defineProperty(exports, "__esModule", { value: true });
26404
+ exports.validateSsoProfile = void 0;
26405
+ var property_provider_1 = require_dist_cjs17();
26406
+ var validateSsoProfile = (profile) => {
26407
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
26408
+ if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
26409
+ throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
26410
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false);
26411
+ }
26412
+ return profile;
26413
+ };
26414
+ exports.validateSsoProfile = validateSsoProfile;
26415
+ }
26416
+ });
26417
+
26418
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js
26419
+ var require_fromSSO = __commonJS({
26420
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) {
26421
+ "use strict";
26422
+ Object.defineProperty(exports, "__esModule", { value: true });
26423
+ exports.fromSSO = void 0;
26424
+ var property_provider_1 = require_dist_cjs17();
26425
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26426
+ var isSsoProfile_1 = require_isSsoProfile();
26427
+ var resolveSSOCredentials_1 = require_resolveSSOCredentials();
26428
+ var validateSsoProfile_1 = require_validateSsoProfile();
26429
+ var fromSSO = (init = {}) => async () => {
26430
+ const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, ssoSession } = init;
26431
+ const profileName = (0, shared_ini_file_loader_1.getProfileName)(init);
26432
+ if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
26433
+ const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init);
26434
+ const profile = profiles[profileName];
26435
+ if (!profile) {
26436
+ throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} was not found.`);
26437
+ }
26438
+ if (!(0, isSsoProfile_1.isSsoProfile)(profile)) {
26439
+ throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`);
26440
+ }
26441
+ if (profile === null || profile === void 0 ? void 0 : profile.sso_session) {
26442
+ const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init);
26443
+ const session = ssoSessions[profile.sso_session];
26444
+ const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
26445
+ if (ssoRegion && ssoRegion !== session.sso_region) {
26446
+ throw new property_provider_1.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false);
26447
+ }
26448
+ if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
26449
+ throw new property_provider_1.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false);
26450
+ }
26451
+ profile.sso_region = session.sso_region;
26452
+ profile.sso_start_url = session.sso_start_url;
26453
+ }
26454
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = (0, validateSsoProfile_1.validateSsoProfile)(profile);
26455
+ return (0, resolveSSOCredentials_1.resolveSSOCredentials)({
26456
+ ssoStartUrl: sso_start_url,
26457
+ ssoSession: sso_session,
26458
+ ssoAccountId: sso_account_id,
26459
+ ssoRegion: sso_region,
26460
+ ssoRoleName: sso_role_name,
26461
+ ssoClient,
26462
+ profile: profileName
26463
+ });
26464
+ } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
26465
+ throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');
26466
+ } else {
26467
+ return (0, resolveSSOCredentials_1.resolveSSOCredentials)({
26468
+ ssoStartUrl,
26469
+ ssoSession,
26470
+ ssoAccountId,
26471
+ ssoRegion,
26472
+ ssoRoleName,
26473
+ ssoClient,
26474
+ profile: profileName
26475
+ });
26476
+ }
26477
+ };
26478
+ exports.fromSSO = fromSSO;
26479
+ }
26480
+ });
26481
+
26482
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js
26483
+ var require_types6 = __commonJS({
26484
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) {
26485
+ "use strict";
26486
+ Object.defineProperty(exports, "__esModule", { value: true });
26487
+ }
26488
+ });
26489
+
26490
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
26491
+ var require_dist_cjs43 = __commonJS({
26492
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) {
26493
+ "use strict";
26494
+ Object.defineProperty(exports, "__esModule", { value: true });
26495
+ var tslib_1 = require_tslib();
26496
+ tslib_1.__exportStar(require_fromSSO(), exports);
26497
+ tslib_1.__exportStar(require_isSsoProfile(), exports);
26498
+ tslib_1.__exportStar(require_types6(), exports);
26499
+ tslib_1.__exportStar(require_validateSsoProfile(), exports);
26500
+ }
26501
+ });
26502
+
26503
+ // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js
26504
+ var require_resolveSsoCredentials = __commonJS({
26505
+ "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) {
26506
+ "use strict";
26507
+ Object.defineProperty(exports, "__esModule", { value: true });
26508
+ exports.resolveSsoCredentials = exports.isSsoProfile = void 0;
26509
+ var credential_provider_sso_1 = require_dist_cjs43();
26510
+ var credential_provider_sso_2 = require_dist_cjs43();
26511
+ Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function() {
26512
+ return credential_provider_sso_2.isSsoProfile;
26513
+ } });
26514
+ var resolveSsoCredentials = (data) => {
26515
+ const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data);
26516
+ return (0, credential_provider_sso_1.fromSSO)({
26517
+ ssoStartUrl: sso_start_url,
26518
+ ssoAccountId: sso_account_id,
26519
+ ssoSession: sso_session,
26520
+ ssoRegion: sso_region,
26521
+ ssoRoleName: sso_role_name
26522
+ })();
26523
+ };
26524
+ exports.resolveSsoCredentials = resolveSsoCredentials;
26525
+ }
26526
+ });
26527
+
26528
+ // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js
26529
+ var require_resolveStaticCredentials = __commonJS({
26530
+ "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) {
26531
+ "use strict";
26532
+ Object.defineProperty(exports, "__esModule", { value: true });
26533
+ exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0;
26534
+ var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1;
26535
+ exports.isStaticCredsProfile = isStaticCredsProfile;
26536
+ var resolveStaticCredentials = (profile) => Promise.resolve({
26537
+ accessKeyId: profile.aws_access_key_id,
26538
+ secretAccessKey: profile.aws_secret_access_key,
26539
+ sessionToken: profile.aws_session_token
26540
+ });
26541
+ exports.resolveStaticCredentials = resolveStaticCredentials;
26542
+ }
26543
+ });
26544
+
26545
+ // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
26546
+ var require_fromWebToken = __commonJS({
26547
+ "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports) {
26548
+ "use strict";
26549
+ Object.defineProperty(exports, "__esModule", { value: true });
26550
+ exports.fromWebToken = void 0;
26551
+ var property_provider_1 = require_dist_cjs17();
26552
+ var fromWebToken = (init) => () => {
26553
+ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init;
26554
+ if (!roleAssumerWithWebIdentity) {
24566
26555
  throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.`, false);
24567
26556
  }
24568
26557
  return roleAssumerWithWebIdentity({
@@ -24614,7 +26603,7 @@ var require_fromTokenFile = __commonJS({
24614
26603
  });
24615
26604
 
24616
26605
  // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
24617
- var require_dist_cjs42 = __commonJS({
26606
+ var require_dist_cjs44 = __commonJS({
24618
26607
  "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports) {
24619
26608
  "use strict";
24620
26609
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24630,7 +26619,7 @@ var require_resolveWebIdentityCredentials = __commonJS({
24630
26619
  "use strict";
24631
26620
  Object.defineProperty(exports, "__esModule", { value: true });
24632
26621
  exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0;
24633
- var credential_provider_web_identity_1 = require_dist_cjs42();
26622
+ var credential_provider_web_identity_1 = require_dist_cjs44();
24634
26623
  var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
24635
26624
  exports.isWebIdentityProfile = isWebIdentityProfile;
24636
26625
  var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({
@@ -24694,7 +26683,7 @@ var require_fromIni = __commonJS({
24694
26683
  });
24695
26684
 
24696
26685
  // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
24697
- var require_dist_cjs43 = __commonJS({
26686
+ var require_dist_cjs45 = __commonJS({
24698
26687
  "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) {
24699
26688
  "use strict";
24700
26689
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24790,7 +26779,7 @@ var require_fromProcess = __commonJS({
24790
26779
  });
24791
26780
 
24792
26781
  // node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
24793
- var require_dist_cjs44 = __commonJS({
26782
+ var require_dist_cjs46 = __commonJS({
24794
26783
  "node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) {
24795
26784
  "use strict";
24796
26785
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24830,10 +26819,10 @@ var require_defaultProvider = __commonJS({
24830
26819
  Object.defineProperty(exports, "__esModule", { value: true });
24831
26820
  exports.defaultProvider = void 0;
24832
26821
  var credential_provider_env_1 = require_dist_cjs25();
24833
- var credential_provider_ini_1 = require_dist_cjs43();
24834
- var credential_provider_process_1 = require_dist_cjs44();
24835
- var credential_provider_sso_1 = require_dist_cjs41();
24836
- var credential_provider_web_identity_1 = require_dist_cjs42();
26822
+ var credential_provider_ini_1 = require_dist_cjs45();
26823
+ var credential_provider_process_1 = require_dist_cjs46();
26824
+ var credential_provider_sso_1 = require_dist_cjs43();
26825
+ var credential_provider_web_identity_1 = require_dist_cjs44();
24837
26826
  var property_provider_1 = require_dist_cjs17();
24838
26827
  var shared_ini_file_loader_1 = require_dist_cjs26();
24839
26828
  var remoteProvider_1 = require_remoteProvider();
@@ -24845,7 +26834,7 @@ var require_defaultProvider = __commonJS({
24845
26834
  });
24846
26835
 
24847
26836
  // node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
24848
- var require_dist_cjs45 = __commonJS({
26837
+ var require_dist_cjs47 = __commonJS({
24849
26838
  "node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) {
24850
26839
  "use strict";
24851
26840
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24855,7 +26844,7 @@ var require_dist_cjs45 = __commonJS({
24855
26844
  });
24856
26845
 
24857
26846
  // node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
24858
- var require_ruleset2 = __commonJS({
26847
+ var require_ruleset3 = __commonJS({
24859
26848
  "node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports) {
24860
26849
  "use strict";
24861
26850
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25712,8 +27701,8 @@ var require_ruleset2 = __commonJS({
25712
27701
  authSchemes: [
25713
27702
  {
25714
27703
  name: "sigv4",
25715
- signingName: "sts",
25716
- signingRegion: "us-east-1"
27704
+ signingRegion: "us-east-1",
27705
+ signingName: "sts"
25717
27706
  }
25718
27707
  ]
25719
27708
  },
@@ -25740,13 +27729,13 @@ var require_ruleset2 = __commonJS({
25740
27729
  });
25741
27730
 
25742
27731
  // node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
25743
- var require_endpointResolver2 = __commonJS({
27732
+ var require_endpointResolver3 = __commonJS({
25744
27733
  "node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports) {
25745
27734
  "use strict";
25746
27735
  Object.defineProperty(exports, "__esModule", { value: true });
25747
27736
  exports.defaultEndpointResolver = void 0;
25748
27737
  var util_endpoints_1 = require_dist_cjs38();
25749
- var ruleset_1 = require_ruleset2();
27738
+ var ruleset_1 = require_ruleset3();
25750
27739
  var defaultEndpointResolver = (endpointParams, context = {}) => {
25751
27740
  return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
25752
27741
  endpointParams,
@@ -25758,21 +27747,22 @@ var require_endpointResolver2 = __commonJS({
25758
27747
  });
25759
27748
 
25760
27749
  // node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
25761
- var require_runtimeConfig_shared2 = __commonJS({
27750
+ var require_runtimeConfig_shared3 = __commonJS({
25762
27751
  "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) {
25763
27752
  "use strict";
25764
27753
  Object.defineProperty(exports, "__esModule", { value: true });
25765
27754
  exports.getRuntimeConfig = void 0;
27755
+ var smithy_client_1 = require_dist_cjs7();
25766
27756
  var url_parser_1 = require_dist_cjs2();
25767
27757
  var util_base64_1 = require_dist_cjs36();
25768
- var endpointResolver_1 = require_endpointResolver2();
27758
+ var endpointResolver_1 = require_endpointResolver3();
25769
27759
  var getRuntimeConfig = (config) => ({
25770
27760
  apiVersion: "2011-06-15",
25771
27761
  base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
25772
27762
  base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
25773
27763
  disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
25774
27764
  endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
25775
- logger: (config == null ? void 0 : config.logger) ?? {},
27765
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
25776
27766
  serviceId: (config == null ? void 0 : config.serviceId) ?? "STS",
25777
27767
  urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
25778
27768
  });
@@ -25781,7 +27771,7 @@ var require_runtimeConfig_shared2 = __commonJS({
25781
27771
  });
25782
27772
 
25783
27773
  // node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
25784
- var require_runtimeConfig2 = __commonJS({
27774
+ var require_runtimeConfig3 = __commonJS({
25785
27775
  "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) {
25786
27776
  "use strict";
25787
27777
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25790,7 +27780,7 @@ var require_runtimeConfig2 = __commonJS({
25790
27780
  var package_json_1 = tslib_1.__importDefault(require_package2());
25791
27781
  var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers();
25792
27782
  var config_resolver_1 = require_dist_cjs10();
25793
- var credential_provider_node_1 = require_dist_cjs45();
27783
+ var credential_provider_node_1 = require_dist_cjs47();
25794
27784
  var hash_node_1 = require_dist_cjs30();
25795
27785
  var middleware_retry_1 = require_dist_cjs16();
25796
27786
  var node_config_provider_1 = require_dist_cjs27();
@@ -25798,7 +27788,7 @@ var require_runtimeConfig2 = __commonJS({
25798
27788
  var util_body_length_node_1 = require_dist_cjs33();
25799
27789
  var util_user_agent_node_1 = require_dist_cjs34();
25800
27790
  var util_utf8_node_1 = require_dist_cjs35();
25801
- var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
27791
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
25802
27792
  var smithy_client_1 = require_dist_cjs7();
25803
27793
  var util_defaults_mode_node_1 = require_dist_cjs39();
25804
27794
  var smithy_client_2 = require_dist_cjs7();
@@ -25851,7 +27841,7 @@ var require_STSClient = __commonJS({
25851
27841
  var middleware_user_agent_1 = require_dist_cjs23();
25852
27842
  var smithy_client_1 = require_dist_cjs7();
25853
27843
  var EndpointParameters_1 = require_EndpointParameters2();
25854
- var runtimeConfig_1 = require_runtimeConfig2();
27844
+ var runtimeConfig_1 = require_runtimeConfig3();
25855
27845
  var STSClient = class extends smithy_client_1.Client {
25856
27846
  constructor(configuration) {
25857
27847
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
@@ -25997,7 +27987,7 @@ var require_STS = __commonJS({
25997
27987
  });
25998
27988
 
25999
27989
  // node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js
26000
- var require_commands2 = __commonJS({
27990
+ var require_commands3 = __commonJS({
26001
27991
  "node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) {
26002
27992
  "use strict";
26003
27993
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26048,7 +28038,7 @@ var require_defaultRoleAssumers = __commonJS({
26048
28038
  });
26049
28039
 
26050
28040
  // node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js
26051
- var require_models2 = __commonJS({
28041
+ var require_models3 = __commonJS({
26052
28042
  "node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) {
26053
28043
  "use strict";
26054
28044
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26058,7 +28048,7 @@ var require_models2 = __commonJS({
26058
28048
  });
26059
28049
 
26060
28050
  // node_modules/@aws-sdk/client-sts/dist-cjs/index.js
26061
- var require_dist_cjs46 = __commonJS({
28051
+ var require_dist_cjs48 = __commonJS({
26062
28052
  "node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) {
26063
28053
  "use strict";
26064
28054
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26066,9 +28056,9 @@ var require_dist_cjs46 = __commonJS({
26066
28056
  var tslib_1 = require_tslib();
26067
28057
  tslib_1.__exportStar(require_STS(), exports);
26068
28058
  tslib_1.__exportStar(require_STSClient(), exports);
26069
- tslib_1.__exportStar(require_commands2(), exports);
28059
+ tslib_1.__exportStar(require_commands3(), exports);
26070
28060
  tslib_1.__exportStar(require_defaultRoleAssumers(), exports);
26071
- tslib_1.__exportStar(require_models2(), exports);
28061
+ tslib_1.__exportStar(require_models3(), exports);
26072
28062
  var STSServiceException_1 = require_STSServiceException();
26073
28063
  Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function() {
26074
28064
  return STSServiceException_1.STSServiceException;
@@ -26077,7 +28067,7 @@ var require_dist_cjs46 = __commonJS({
26077
28067
  });
26078
28068
 
26079
28069
  // node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js
26080
- var require_ruleset3 = __commonJS({
28070
+ var require_ruleset4 = __commonJS({
26081
28071
  "node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js"(exports) {
26082
28072
  "use strict";
26083
28073
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26401,13 +28391,13 @@ var require_ruleset3 = __commonJS({
26401
28391
  });
26402
28392
 
26403
28393
  // node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js
26404
- var require_endpointResolver3 = __commonJS({
28394
+ var require_endpointResolver4 = __commonJS({
26405
28395
  "node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js"(exports) {
26406
28396
  "use strict";
26407
28397
  Object.defineProperty(exports, "__esModule", { value: true });
26408
28398
  exports.defaultEndpointResolver = void 0;
26409
28399
  var util_endpoints_1 = require_dist_cjs38();
26410
- var ruleset_1 = require_ruleset3();
28400
+ var ruleset_1 = require_ruleset4();
26411
28401
  var defaultEndpointResolver = (endpointParams, context = {}) => {
26412
28402
  return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
26413
28403
  endpointParams,
@@ -26419,21 +28409,22 @@ var require_endpointResolver3 = __commonJS({
26419
28409
  });
26420
28410
 
26421
28411
  // node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js
26422
- var require_runtimeConfig_shared3 = __commonJS({
28412
+ var require_runtimeConfig_shared4 = __commonJS({
26423
28413
  "node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js"(exports) {
26424
28414
  "use strict";
26425
28415
  Object.defineProperty(exports, "__esModule", { value: true });
26426
28416
  exports.getRuntimeConfig = void 0;
28417
+ var smithy_client_1 = require_dist_cjs7();
26427
28418
  var url_parser_1 = require_dist_cjs2();
26428
28419
  var util_base64_1 = require_dist_cjs36();
26429
- var endpointResolver_1 = require_endpointResolver3();
28420
+ var endpointResolver_1 = require_endpointResolver4();
26430
28421
  var getRuntimeConfig = (config) => ({
26431
28422
  apiVersion: "2015-03-31",
26432
28423
  base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
26433
28424
  base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
26434
28425
  disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
26435
28426
  endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
26436
- logger: (config == null ? void 0 : config.logger) ?? {},
28427
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
26437
28428
  serviceId: (config == null ? void 0 : config.serviceId) ?? "Lambda",
26438
28429
  urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
26439
28430
  });
@@ -26442,16 +28433,16 @@ var require_runtimeConfig_shared3 = __commonJS({
26442
28433
  });
26443
28434
 
26444
28435
  // node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js
26445
- var require_runtimeConfig3 = __commonJS({
28436
+ var require_runtimeConfig4 = __commonJS({
26446
28437
  "node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js"(exports) {
26447
28438
  "use strict";
26448
28439
  Object.defineProperty(exports, "__esModule", { value: true });
26449
28440
  exports.getRuntimeConfig = void 0;
26450
28441
  var tslib_1 = require_tslib();
26451
28442
  var package_json_1 = tslib_1.__importDefault(require_package());
26452
- var client_sts_1 = require_dist_cjs46();
28443
+ var client_sts_1 = require_dist_cjs48();
26453
28444
  var config_resolver_1 = require_dist_cjs10();
26454
- var credential_provider_node_1 = require_dist_cjs45();
28445
+ var credential_provider_node_1 = require_dist_cjs47();
26455
28446
  var hash_node_1 = require_dist_cjs30();
26456
28447
  var middleware_retry_1 = require_dist_cjs16();
26457
28448
  var node_config_provider_1 = require_dist_cjs27();
@@ -26459,7 +28450,7 @@ var require_runtimeConfig3 = __commonJS({
26459
28450
  var util_body_length_node_1 = require_dist_cjs33();
26460
28451
  var util_user_agent_node_1 = require_dist_cjs34();
26461
28452
  var util_utf8_node_1 = require_dist_cjs35();
26462
- var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
28453
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
26463
28454
  var smithy_client_1 = require_dist_cjs7();
26464
28455
  var util_defaults_mode_node_1 = require_dist_cjs39();
26465
28456
  var smithy_client_2 = require_dist_cjs7();
@@ -26512,7 +28503,7 @@ var require_LambdaClient = __commonJS({
26512
28503
  var middleware_user_agent_1 = require_dist_cjs23();
26513
28504
  var smithy_client_1 = require_dist_cjs7();
26514
28505
  var EndpointParameters_1 = require_EndpointParameters();
26515
- var runtimeConfig_1 = require_runtimeConfig3();
28506
+ var runtimeConfig_1 = require_runtimeConfig4();
26516
28507
  var LambdaClient = class extends smithy_client_1.Client {
26517
28508
  constructor(configuration) {
26518
28509
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
@@ -27374,7 +29365,7 @@ var require_Lambda = __commonJS({
27374
29365
  });
27375
29366
 
27376
29367
  // node_modules/@aws-sdk/client-lambda/dist-cjs/commands/index.js
27377
- var require_commands3 = __commonJS({
29368
+ var require_commands4 = __commonJS({
27378
29369
  "node_modules/@aws-sdk/client-lambda/dist-cjs/commands/index.js"(exports) {
27379
29370
  "use strict";
27380
29371
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -27446,7 +29437,7 @@ var require_commands3 = __commonJS({
27446
29437
  });
27447
29438
 
27448
29439
  // node_modules/@aws-sdk/client-lambda/dist-cjs/models/index.js
27449
- var require_models3 = __commonJS({
29440
+ var require_models4 = __commonJS({
27450
29441
  "node_modules/@aws-sdk/client-lambda/dist-cjs/models/index.js"(exports) {
27451
29442
  "use strict";
27452
29443
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28091,7 +30082,7 @@ var require_createWaiter = __commonJS({
28091
30082
  });
28092
30083
 
28093
30084
  // node_modules/@aws-sdk/util-waiter/dist-cjs/index.js
28094
- var require_dist_cjs47 = __commonJS({
30085
+ var require_dist_cjs49 = __commonJS({
28095
30086
  "node_modules/@aws-sdk/util-waiter/dist-cjs/index.js"(exports) {
28096
30087
  "use strict";
28097
30088
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28107,7 +30098,7 @@ var require_waitForFunctionActive = __commonJS({
28107
30098
  "use strict";
28108
30099
  Object.defineProperty(exports, "__esModule", { value: true });
28109
30100
  exports.waitUntilFunctionActive = exports.waitForFunctionActive = void 0;
28110
- var util_waiter_1 = require_dist_cjs47();
30101
+ var util_waiter_1 = require_dist_cjs49();
28111
30102
  var GetFunctionConfigurationCommand_1 = require_GetFunctionConfigurationCommand();
28112
30103
  var checkState = async (client, input) => {
28113
30104
  let reason;
@@ -28166,7 +30157,7 @@ var require_waitForFunctionActiveV2 = __commonJS({
28166
30157
  "use strict";
28167
30158
  Object.defineProperty(exports, "__esModule", { value: true });
28168
30159
  exports.waitUntilFunctionActiveV2 = exports.waitForFunctionActiveV2 = void 0;
28169
- var util_waiter_1 = require_dist_cjs47();
30160
+ var util_waiter_1 = require_dist_cjs49();
28170
30161
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28171
30162
  var checkState = async (client, input) => {
28172
30163
  let reason;
@@ -28225,7 +30216,7 @@ var require_waitForFunctionExists = __commonJS({
28225
30216
  "use strict";
28226
30217
  Object.defineProperty(exports, "__esModule", { value: true });
28227
30218
  exports.waitUntilFunctionExists = exports.waitForFunctionExists = void 0;
28228
- var util_waiter_1 = require_dist_cjs47();
30219
+ var util_waiter_1 = require_dist_cjs49();
28229
30220
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28230
30221
  var checkState = async (client, input) => {
28231
30222
  let reason;
@@ -28261,7 +30252,7 @@ var require_waitForFunctionUpdated = __commonJS({
28261
30252
  "use strict";
28262
30253
  Object.defineProperty(exports, "__esModule", { value: true });
28263
30254
  exports.waitUntilFunctionUpdated = exports.waitForFunctionUpdated = void 0;
28264
- var util_waiter_1 = require_dist_cjs47();
30255
+ var util_waiter_1 = require_dist_cjs49();
28265
30256
  var GetFunctionConfigurationCommand_1 = require_GetFunctionConfigurationCommand();
28266
30257
  var checkState = async (client, input) => {
28267
30258
  let reason;
@@ -28320,7 +30311,7 @@ var require_waitForFunctionUpdatedV2 = __commonJS({
28320
30311
  "use strict";
28321
30312
  Object.defineProperty(exports, "__esModule", { value: true });
28322
30313
  exports.waitUntilFunctionUpdatedV2 = exports.waitForFunctionUpdatedV2 = void 0;
28323
- var util_waiter_1 = require_dist_cjs47();
30314
+ var util_waiter_1 = require_dist_cjs49();
28324
30315
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28325
30316
  var checkState = async (client, input) => {
28326
30317
  let reason;
@@ -28388,7 +30379,7 @@ var require_waiters = __commonJS({
28388
30379
  });
28389
30380
 
28390
30381
  // node_modules/@aws-sdk/client-lambda/dist-cjs/index.js
28391
- var require_dist_cjs48 = __commonJS({
30382
+ var require_dist_cjs50 = __commonJS({
28392
30383
  "node_modules/@aws-sdk/client-lambda/dist-cjs/index.js"(exports) {
28393
30384
  "use strict";
28394
30385
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28396,8 +30387,8 @@ var require_dist_cjs48 = __commonJS({
28396
30387
  var tslib_1 = require_tslib();
28397
30388
  tslib_1.__exportStar(require_Lambda(), exports);
28398
30389
  tslib_1.__exportStar(require_LambdaClient(), exports);
28399
- tslib_1.__exportStar(require_commands3(), exports);
28400
- tslib_1.__exportStar(require_models3(), exports);
30390
+ tslib_1.__exportStar(require_commands4(), exports);
30391
+ tslib_1.__exportStar(require_models4(), exports);
28401
30392
  tslib_1.__exportStar(require_pagination3(), exports);
28402
30393
  tslib_1.__exportStar(require_waiters(), exports);
28403
30394
  var LambdaServiceException_1 = require_LambdaServiceException();
@@ -28413,7 +30404,7 @@ __export(update_lambda_exports, {
28413
30404
  handler: () => handler
28414
30405
  });
28415
30406
  module.exports = __toCommonJS(update_lambda_exports);
28416
- var import_client_lambda = __toESM(require_dist_cjs48());
30407
+ var import_client_lambda = __toESM(require_dist_cjs50());
28417
30408
  var AWS = __toESM(require("aws-sdk"));
28418
30409
  var lambda = new AWS.Lambda();
28419
30410
  function sleep(ms) {