@cloudsnorkel/cdk-github-runners 0.5.7 → 0.5.8

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.
@@ -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.213.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.213.0",
16324
+ "@aws-sdk/config-resolver": "3.212.0",
16325
+ "@aws-sdk/credential-provider-node": "3.212.0",
16326
+ "@aws-sdk/fetch-http-handler": "3.212.0",
16327
+ "@aws-sdk/hash-node": "3.212.0",
16328
+ "@aws-sdk/invalid-dependency": "3.212.0",
16329
+ "@aws-sdk/middleware-content-length": "3.212.0",
16330
+ "@aws-sdk/middleware-endpoint": "3.212.0",
16331
+ "@aws-sdk/middleware-host-header": "3.212.0",
16332
+ "@aws-sdk/middleware-logger": "3.212.0",
16333
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
16334
+ "@aws-sdk/middleware-retry": "3.212.0",
16335
+ "@aws-sdk/middleware-serde": "3.212.0",
16336
+ "@aws-sdk/middleware-signing": "3.212.0",
16337
+ "@aws-sdk/middleware-stack": "3.212.0",
16338
+ "@aws-sdk/middleware-user-agent": "3.212.0",
16339
+ "@aws-sdk/node-config-provider": "3.212.0",
16340
+ "@aws-sdk/node-http-handler": "3.212.0",
16341
+ "@aws-sdk/protocol-http": "3.212.0",
16342
+ "@aws-sdk/smithy-client": "3.212.0",
16343
+ "@aws-sdk/types": "3.212.0",
16344
+ "@aws-sdk/url-parser": "3.212.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.212.0",
16349
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
16350
+ "@aws-sdk/util-endpoints": "3.212.0",
16351
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
16352
+ "@aws-sdk/util-user-agent-node": "3.212.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.212.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.213.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.212.0",
19768
+ "@aws-sdk/credential-provider-node": "3.212.0",
19769
+ "@aws-sdk/fetch-http-handler": "3.212.0",
19770
+ "@aws-sdk/hash-node": "3.212.0",
19771
+ "@aws-sdk/invalid-dependency": "3.212.0",
19772
+ "@aws-sdk/middleware-content-length": "3.212.0",
19773
+ "@aws-sdk/middleware-endpoint": "3.212.0",
19774
+ "@aws-sdk/middleware-host-header": "3.212.0",
19775
+ "@aws-sdk/middleware-logger": "3.212.0",
19776
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
19777
+ "@aws-sdk/middleware-retry": "3.212.0",
19778
+ "@aws-sdk/middleware-sdk-sts": "3.212.0",
19779
+ "@aws-sdk/middleware-serde": "3.212.0",
19780
+ "@aws-sdk/middleware-signing": "3.212.0",
19781
+ "@aws-sdk/middleware-stack": "3.212.0",
19782
+ "@aws-sdk/middleware-user-agent": "3.212.0",
19783
+ "@aws-sdk/node-config-provider": "3.212.0",
19784
+ "@aws-sdk/node-http-handler": "3.212.0",
19785
+ "@aws-sdk/protocol-http": "3.212.0",
19786
+ "@aws-sdk/smithy-client": "3.212.0",
19787
+ "@aws-sdk/types": "3.212.0",
19788
+ "@aws-sdk/url-parser": "3.212.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.212.0",
19793
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
19794
+ "@aws-sdk/util-endpoints": "3.212.0",
19795
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
19796
+ "@aws-sdk/util-user-agent-node": "3.212.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.212.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.212.0",
21651
+ "@aws-sdk/fetch-http-handler": "3.212.0",
21652
+ "@aws-sdk/hash-node": "3.212.0",
21653
+ "@aws-sdk/invalid-dependency": "3.212.0",
21654
+ "@aws-sdk/middleware-content-length": "3.212.0",
21655
+ "@aws-sdk/middleware-endpoint": "3.212.0",
21656
+ "@aws-sdk/middleware-host-header": "3.212.0",
21657
+ "@aws-sdk/middleware-logger": "3.212.0",
21658
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
21659
+ "@aws-sdk/middleware-retry": "3.212.0",
21660
+ "@aws-sdk/middleware-serde": "3.212.0",
21661
+ "@aws-sdk/middleware-stack": "3.212.0",
21662
+ "@aws-sdk/middleware-user-agent": "3.212.0",
21663
+ "@aws-sdk/node-config-provider": "3.212.0",
21664
+ "@aws-sdk/node-http-handler": "3.212.0",
21665
+ "@aws-sdk/protocol-http": "3.212.0",
21666
+ "@aws-sdk/smithy-client": "3.212.0",
21667
+ "@aws-sdk/types": "3.212.0",
21668
+ "@aws-sdk/url-parser": "3.212.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.212.0",
21673
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
21674
+ "@aws-sdk/util-endpoints": "3.212.0",
21675
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
21676
+ "@aws-sdk/util-user-agent-node": "3.212.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,179 @@ 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-southeast-1": {
22433
+ description: "Asia Pacific (Singapore)"
22434
+ },
22435
+ "ap-southeast-2": {
22436
+ description: "Asia Pacific (Sydney)"
22437
+ },
22438
+ "ap-southeast-3": {
22439
+ description: "Asia Pacific (Jakarta)"
22440
+ },
22441
+ "aws-global": {
22442
+ description: "AWS Standard global region"
22443
+ },
22444
+ "ca-central-1": {
22445
+ description: "Canada (Central)"
22446
+ },
22447
+ "eu-central-1": {
22448
+ description: "Europe (Frankfurt)"
22449
+ },
22450
+ "eu-central-2": {
22451
+ description: "Europe (Zurich)"
22452
+ },
22453
+ "eu-north-1": {
22454
+ description: "Europe (Stockholm)"
22455
+ },
22456
+ "eu-south-1": {
22457
+ description: "Europe (Milan)"
22458
+ },
22459
+ "eu-south-2": {
22460
+ description: "Europe (Spain)"
22461
+ },
22462
+ "eu-west-1": {
22463
+ description: "Europe (Ireland)"
22464
+ },
22465
+ "eu-west-2": {
22466
+ description: "Europe (London)"
22467
+ },
22468
+ "eu-west-3": {
22469
+ description: "Europe (Paris)"
22470
+ },
22471
+ "me-central-1": {
22472
+ description: "Middle East (UAE)"
22473
+ },
22474
+ "me-south-1": {
22475
+ description: "Middle East (Bahrain)"
22476
+ },
22477
+ "sa-east-1": {
22478
+ description: "South America (Sao Paulo)"
22479
+ },
22480
+ "us-east-1": {
22481
+ description: "US East (N. Virginia)"
22482
+ },
22483
+ "us-east-2": {
22484
+ description: "US East (Ohio)"
22485
+ },
22486
+ "us-west-1": {
22487
+ description: "US West (N. California)"
22488
+ },
22489
+ "us-west-2": {
22490
+ description: "US West (Oregon)"
22437
22491
  }
22492
+ }
22493
+ }, {
22494
+ id: "aws-cn",
22495
+ outputs: {
22496
+ dnsSuffix: "amazonaws.com.cn",
22497
+ dualStackDnsSuffix: "api.amazonwebservices.com.cn",
22498
+ name: "aws-cn",
22499
+ supportsDualStack: true,
22500
+ supportsFIPS: true
22438
22501
  },
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": {}
22502
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
22503
+ regions: {
22504
+ "aws-cn-global": {
22505
+ description: "AWS China global region"
22506
+ },
22507
+ "cn-north-1": {
22508
+ description: "China (Beijing)"
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-northwest-1": {
22511
+ description: "China (Ningxia)"
22453
22512
  }
22513
+ }
22514
+ }, {
22515
+ id: "aws-us-gov",
22516
+ outputs: {
22517
+ dnsSuffix: "amazonaws.com",
22518
+ dualStackDnsSuffix: "api.aws",
22519
+ name: "aws-us-gov",
22520
+ supportsDualStack: true,
22521
+ supportsFIPS: true
22454
22522
  },
22455
- {
22456
- id: "aws-cn",
22457
- regionRegex: "^cn\\-\\w+\\-\\d+$",
22458
- regions: {
22459
- "cn-north-1": {},
22460
- "cn-northwest-1": {},
22461
- "aws-cn-global": {}
22523
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
22524
+ regions: {
22525
+ "aws-us-gov-global": {
22526
+ description: "AWS GovCloud (US) global region"
22462
22527
  },
22463
- outputs: {
22464
- name: "aws-cn",
22465
- dnsSuffix: "amazonaws.com.cn",
22466
- dualStackDnsSuffix: "api.amazonwebservices.com.cn",
22467
- supportsFIPS: true,
22468
- supportsDualStack: true
22528
+ "us-gov-east-1": {
22529
+ description: "AWS GovCloud (US-East)"
22530
+ },
22531
+ "us-gov-west-1": {
22532
+ description: "AWS GovCloud (US-West)"
22469
22533
  }
22534
+ }
22535
+ }, {
22536
+ id: "aws-iso",
22537
+ outputs: {
22538
+ dnsSuffix: "c2s.ic.gov",
22539
+ dualStackDnsSuffix: "c2s.ic.gov",
22540
+ name: "aws-iso",
22541
+ supportsDualStack: false,
22542
+ supportsFIPS: true
22470
22543
  },
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"
22544
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
22545
+ regions: {
22546
+ "aws-iso-global": {
22547
+ description: "AWS ISO (US) global region"
22548
+ },
22549
+ "us-iso-east-1": {
22550
+ description: "US ISO East"
22480
22551
  },
22481
- regions: {
22482
- "aws-iso-global": {}
22552
+ "us-iso-west-1": {
22553
+ description: "US ISO WEST"
22483
22554
  }
22555
+ }
22556
+ }, {
22557
+ id: "aws-iso-b",
22558
+ outputs: {
22559
+ dnsSuffix: "sc2s.sgov.gov",
22560
+ dualStackDnsSuffix: "sc2s.sgov.gov",
22561
+ name: "aws-iso-b",
22562
+ supportsDualStack: false,
22563
+ supportsFIPS: true
22484
22564
  },
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"
22565
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
22566
+ regions: {
22567
+ "aws-iso-b-global": {
22568
+ description: "AWS ISOB (US) global region"
22494
22569
  },
22495
- regions: {
22496
- "aws-iso-b-global": {}
22570
+ "us-isob-east-1": {
22571
+ description: "US ISOB East (Ohio)"
22497
22572
  }
22498
22573
  }
22499
- ]
22574
+ }],
22575
+ version: "1.1"
22500
22576
  };
22501
22577
  }
22502
22578
  });
@@ -23966,6 +24042,7 @@ var require_runtimeConfig_shared = __commonJS({
23966
24042
  "use strict";
23967
24043
  Object.defineProperty(exports, "__esModule", { value: true });
23968
24044
  exports.getRuntimeConfig = void 0;
24045
+ var smithy_client_1 = require_dist_cjs7();
23969
24046
  var url_parser_1 = require_dist_cjs2();
23970
24047
  var util_base64_1 = require_dist_cjs36();
23971
24048
  var endpointResolver_1 = require_endpointResolver();
@@ -23975,7 +24052,7 @@ var require_runtimeConfig_shared = __commonJS({
23975
24052
  base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
23976
24053
  disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
23977
24054
  endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
23978
- logger: (config == null ? void 0 : config.logger) ?? {},
24055
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
23979
24056
  serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO",
23980
24057
  urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
23981
24058
  });
@@ -24390,204 +24467,2058 @@ var require_dist_cjs40 = __commonJS({
24390
24467
  }
24391
24468
  });
24392
24469
 
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) {
24470
+ // node_modules/@aws-sdk/token-providers/dist-cjs/constants.js
24471
+ var require_constants8 = __commonJS({
24472
+ "node_modules/@aws-sdk/token-providers/dist-cjs/constants.js"(exports) {
24396
24473
  "use strict";
24397
24474
  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;
24475
+ exports.REFRESH_MESSAGE = exports.EXPIRE_WINDOW_MS = void 0;
24476
+ exports.EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
24477
+ exports.REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
24434
24478
  }
24435
24479
  });
24436
24480
 
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) {
24481
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js
24482
+ var require_SSOOIDCServiceException = __commonJS({
24483
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js"(exports) {
24440
24484
  "use strict";
24441
24485
  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);
24486
+ exports.SSOOIDCServiceException = void 0;
24487
+ var smithy_client_1 = require_dist_cjs7();
24488
+ var SSOOIDCServiceException = class extends smithy_client_1.ServiceException {
24489
+ constructor(options) {
24490
+ super(options);
24491
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
24449
24492
  }
24450
- return profile;
24451
24493
  };
24452
- exports.validateSsoProfile = validateSsoProfile;
24494
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
24453
24495
  }
24454
24496
  });
24455
24497
 
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) {
24498
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js
24499
+ var require_models_04 = __commonJS({
24500
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js"(exports) {
24459
24501
  "use strict";
24460
24502
  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
24503
+ 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;
24504
+ var SSOOIDCServiceException_1 = require_SSOOIDCServiceException();
24505
+ var AccessDeniedException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24506
+ constructor(opts) {
24507
+ super({
24508
+ name: "AccessDeniedException",
24509
+ $fault: "client",
24510
+ ...opts
24483
24511
  });
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 });
24512
+ this.name = "AccessDeniedException";
24513
+ this.$fault = "client";
24514
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
24515
+ this.error = opts.error;
24516
+ this.error_description = opts.error_description;
24488
24517
  }
24489
24518
  };
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
- })();
24519
+ exports.AccessDeniedException = AccessDeniedException;
24520
+ var AuthorizationPendingException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24521
+ constructor(opts) {
24522
+ super({
24523
+ name: "AuthorizationPendingException",
24524
+ $fault: "client",
24525
+ ...opts
24526
+ });
24527
+ this.name = "AuthorizationPendingException";
24528
+ this.$fault = "client";
24529
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
24530
+ this.error = opts.error;
24531
+ this.error_description = opts.error_description;
24532
+ }
24534
24533
  };
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) {
24566
- throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.`, false);
24534
+ exports.AuthorizationPendingException = AuthorizationPendingException;
24535
+ var ExpiredTokenException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24536
+ constructor(opts) {
24537
+ super({
24538
+ name: "ExpiredTokenException",
24539
+ $fault: "client",
24540
+ ...opts
24541
+ });
24542
+ this.name = "ExpiredTokenException";
24543
+ this.$fault = "client";
24544
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
24545
+ this.error = opts.error;
24546
+ this.error_description = opts.error_description;
24567
24547
  }
24568
- return roleAssumerWithWebIdentity({
24569
- RoleArn: roleArn,
24570
- RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`,
24571
- WebIdentityToken: webIdentityToken,
24572
- ProviderId: providerId,
24573
- PolicyArns: policyArns,
24574
- Policy: policy,
24575
- DurationSeconds: durationSeconds
24576
- });
24577
24548
  };
24578
- exports.fromWebToken = fromWebToken;
24579
- }
24580
- });
24581
-
24582
- // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
24583
- var require_fromTokenFile = __commonJS({
24584
- "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports) {
24585
- "use strict";
24586
- Object.defineProperty(exports, "__esModule", { value: true });
24587
- exports.fromTokenFile = void 0;
24588
- var property_provider_1 = require_dist_cjs17();
24589
- var fs_1 = require("fs");
24590
- var fromWebToken_1 = require_fromWebToken();
24549
+ exports.ExpiredTokenException = ExpiredTokenException;
24550
+ var InternalServerException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24551
+ constructor(opts) {
24552
+ super({
24553
+ name: "InternalServerException",
24554
+ $fault: "server",
24555
+ ...opts
24556
+ });
24557
+ this.name = "InternalServerException";
24558
+ this.$fault = "server";
24559
+ Object.setPrototypeOf(this, InternalServerException.prototype);
24560
+ this.error = opts.error;
24561
+ this.error_description = opts.error_description;
24562
+ }
24563
+ };
24564
+ exports.InternalServerException = InternalServerException;
24565
+ var InvalidClientException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24566
+ constructor(opts) {
24567
+ super({
24568
+ name: "InvalidClientException",
24569
+ $fault: "client",
24570
+ ...opts
24571
+ });
24572
+ this.name = "InvalidClientException";
24573
+ this.$fault = "client";
24574
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
24575
+ this.error = opts.error;
24576
+ this.error_description = opts.error_description;
24577
+ }
24578
+ };
24579
+ exports.InvalidClientException = InvalidClientException;
24580
+ var InvalidGrantException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24581
+ constructor(opts) {
24582
+ super({
24583
+ name: "InvalidGrantException",
24584
+ $fault: "client",
24585
+ ...opts
24586
+ });
24587
+ this.name = "InvalidGrantException";
24588
+ this.$fault = "client";
24589
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
24590
+ this.error = opts.error;
24591
+ this.error_description = opts.error_description;
24592
+ }
24593
+ };
24594
+ exports.InvalidGrantException = InvalidGrantException;
24595
+ var InvalidRequestException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24596
+ constructor(opts) {
24597
+ super({
24598
+ name: "InvalidRequestException",
24599
+ $fault: "client",
24600
+ ...opts
24601
+ });
24602
+ this.name = "InvalidRequestException";
24603
+ this.$fault = "client";
24604
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
24605
+ this.error = opts.error;
24606
+ this.error_description = opts.error_description;
24607
+ }
24608
+ };
24609
+ exports.InvalidRequestException = InvalidRequestException;
24610
+ var InvalidScopeException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24611
+ constructor(opts) {
24612
+ super({
24613
+ name: "InvalidScopeException",
24614
+ $fault: "client",
24615
+ ...opts
24616
+ });
24617
+ this.name = "InvalidScopeException";
24618
+ this.$fault = "client";
24619
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
24620
+ this.error = opts.error;
24621
+ this.error_description = opts.error_description;
24622
+ }
24623
+ };
24624
+ exports.InvalidScopeException = InvalidScopeException;
24625
+ var SlowDownException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24626
+ constructor(opts) {
24627
+ super({
24628
+ name: "SlowDownException",
24629
+ $fault: "client",
24630
+ ...opts
24631
+ });
24632
+ this.name = "SlowDownException";
24633
+ this.$fault = "client";
24634
+ Object.setPrototypeOf(this, SlowDownException.prototype);
24635
+ this.error = opts.error;
24636
+ this.error_description = opts.error_description;
24637
+ }
24638
+ };
24639
+ exports.SlowDownException = SlowDownException;
24640
+ var UnauthorizedClientException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24641
+ constructor(opts) {
24642
+ super({
24643
+ name: "UnauthorizedClientException",
24644
+ $fault: "client",
24645
+ ...opts
24646
+ });
24647
+ this.name = "UnauthorizedClientException";
24648
+ this.$fault = "client";
24649
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
24650
+ this.error = opts.error;
24651
+ this.error_description = opts.error_description;
24652
+ }
24653
+ };
24654
+ exports.UnauthorizedClientException = UnauthorizedClientException;
24655
+ var UnsupportedGrantTypeException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24656
+ constructor(opts) {
24657
+ super({
24658
+ name: "UnsupportedGrantTypeException",
24659
+ $fault: "client",
24660
+ ...opts
24661
+ });
24662
+ this.name = "UnsupportedGrantTypeException";
24663
+ this.$fault = "client";
24664
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
24665
+ this.error = opts.error;
24666
+ this.error_description = opts.error_description;
24667
+ }
24668
+ };
24669
+ exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
24670
+ var InvalidClientMetadataException = class extends SSOOIDCServiceException_1.SSOOIDCServiceException {
24671
+ constructor(opts) {
24672
+ super({
24673
+ name: "InvalidClientMetadataException",
24674
+ $fault: "client",
24675
+ ...opts
24676
+ });
24677
+ this.name = "InvalidClientMetadataException";
24678
+ this.$fault = "client";
24679
+ Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
24680
+ this.error = opts.error;
24681
+ this.error_description = opts.error_description;
24682
+ }
24683
+ };
24684
+ exports.InvalidClientMetadataException = InvalidClientMetadataException;
24685
+ var CreateTokenRequestFilterSensitiveLog = (obj) => ({
24686
+ ...obj
24687
+ });
24688
+ exports.CreateTokenRequestFilterSensitiveLog = CreateTokenRequestFilterSensitiveLog;
24689
+ var CreateTokenResponseFilterSensitiveLog = (obj) => ({
24690
+ ...obj
24691
+ });
24692
+ exports.CreateTokenResponseFilterSensitiveLog = CreateTokenResponseFilterSensitiveLog;
24693
+ var RegisterClientRequestFilterSensitiveLog = (obj) => ({
24694
+ ...obj
24695
+ });
24696
+ exports.RegisterClientRequestFilterSensitiveLog = RegisterClientRequestFilterSensitiveLog;
24697
+ var RegisterClientResponseFilterSensitiveLog = (obj) => ({
24698
+ ...obj
24699
+ });
24700
+ exports.RegisterClientResponseFilterSensitiveLog = RegisterClientResponseFilterSensitiveLog;
24701
+ var StartDeviceAuthorizationRequestFilterSensitiveLog = (obj) => ({
24702
+ ...obj
24703
+ });
24704
+ exports.StartDeviceAuthorizationRequestFilterSensitiveLog = StartDeviceAuthorizationRequestFilterSensitiveLog;
24705
+ var StartDeviceAuthorizationResponseFilterSensitiveLog = (obj) => ({
24706
+ ...obj
24707
+ });
24708
+ exports.StartDeviceAuthorizationResponseFilterSensitiveLog = StartDeviceAuthorizationResponseFilterSensitiveLog;
24709
+ }
24710
+ });
24711
+
24712
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js
24713
+ var require_Aws_restJson13 = __commonJS({
24714
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js"(exports) {
24715
+ "use strict";
24716
+ Object.defineProperty(exports, "__esModule", { value: true });
24717
+ exports.deserializeAws_restJson1StartDeviceAuthorizationCommand = exports.deserializeAws_restJson1RegisterClientCommand = exports.deserializeAws_restJson1CreateTokenCommand = exports.serializeAws_restJson1StartDeviceAuthorizationCommand = exports.serializeAws_restJson1RegisterClientCommand = exports.serializeAws_restJson1CreateTokenCommand = void 0;
24718
+ var protocol_http_1 = require_dist_cjs8();
24719
+ var smithy_client_1 = require_dist_cjs7();
24720
+ var models_0_1 = require_models_04();
24721
+ var SSOOIDCServiceException_1 = require_SSOOIDCServiceException();
24722
+ var serializeAws_restJson1CreateTokenCommand = async (input, context) => {
24723
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24724
+ const headers = {
24725
+ "content-type": "application/json"
24726
+ };
24727
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/token`;
24728
+ let body;
24729
+ body = JSON.stringify({
24730
+ ...input.clientId != null && { clientId: input.clientId },
24731
+ ...input.clientSecret != null && { clientSecret: input.clientSecret },
24732
+ ...input.code != null && { code: input.code },
24733
+ ...input.deviceCode != null && { deviceCode: input.deviceCode },
24734
+ ...input.grantType != null && { grantType: input.grantType },
24735
+ ...input.redirectUri != null && { redirectUri: input.redirectUri },
24736
+ ...input.refreshToken != null && { refreshToken: input.refreshToken },
24737
+ ...input.scope != null && { scope: serializeAws_restJson1Scopes(input.scope, context) }
24738
+ });
24739
+ return new protocol_http_1.HttpRequest({
24740
+ protocol,
24741
+ hostname,
24742
+ port,
24743
+ method: "POST",
24744
+ headers,
24745
+ path: resolvedPath,
24746
+ body
24747
+ });
24748
+ };
24749
+ exports.serializeAws_restJson1CreateTokenCommand = serializeAws_restJson1CreateTokenCommand;
24750
+ var serializeAws_restJson1RegisterClientCommand = async (input, context) => {
24751
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24752
+ const headers = {
24753
+ "content-type": "application/json"
24754
+ };
24755
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/client/register`;
24756
+ let body;
24757
+ body = JSON.stringify({
24758
+ ...input.clientName != null && { clientName: input.clientName },
24759
+ ...input.clientType != null && { clientType: input.clientType },
24760
+ ...input.scopes != null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) }
24761
+ });
24762
+ return new protocol_http_1.HttpRequest({
24763
+ protocol,
24764
+ hostname,
24765
+ port,
24766
+ method: "POST",
24767
+ headers,
24768
+ path: resolvedPath,
24769
+ body
24770
+ });
24771
+ };
24772
+ exports.serializeAws_restJson1RegisterClientCommand = serializeAws_restJson1RegisterClientCommand;
24773
+ var serializeAws_restJson1StartDeviceAuthorizationCommand = async (input, context) => {
24774
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24775
+ const headers = {
24776
+ "content-type": "application/json"
24777
+ };
24778
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/device_authorization`;
24779
+ let body;
24780
+ body = JSON.stringify({
24781
+ ...input.clientId != null && { clientId: input.clientId },
24782
+ ...input.clientSecret != null && { clientSecret: input.clientSecret },
24783
+ ...input.startUrl != null && { startUrl: input.startUrl }
24784
+ });
24785
+ return new protocol_http_1.HttpRequest({
24786
+ protocol,
24787
+ hostname,
24788
+ port,
24789
+ method: "POST",
24790
+ headers,
24791
+ path: resolvedPath,
24792
+ body
24793
+ });
24794
+ };
24795
+ exports.serializeAws_restJson1StartDeviceAuthorizationCommand = serializeAws_restJson1StartDeviceAuthorizationCommand;
24796
+ var deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
24797
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
24798
+ return deserializeAws_restJson1CreateTokenCommandError(output, context);
24799
+ }
24800
+ const contents = map({
24801
+ $metadata: deserializeMetadata(output)
24802
+ });
24803
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
24804
+ if (data.accessToken != null) {
24805
+ contents.accessToken = (0, smithy_client_1.expectString)(data.accessToken);
24806
+ }
24807
+ if (data.expiresIn != null) {
24808
+ contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
24809
+ }
24810
+ if (data.idToken != null) {
24811
+ contents.idToken = (0, smithy_client_1.expectString)(data.idToken);
24812
+ }
24813
+ if (data.refreshToken != null) {
24814
+ contents.refreshToken = (0, smithy_client_1.expectString)(data.refreshToken);
24815
+ }
24816
+ if (data.tokenType != null) {
24817
+ contents.tokenType = (0, smithy_client_1.expectString)(data.tokenType);
24818
+ }
24819
+ return contents;
24820
+ };
24821
+ exports.deserializeAws_restJson1CreateTokenCommand = deserializeAws_restJson1CreateTokenCommand;
24822
+ var deserializeAws_restJson1CreateTokenCommandError = async (output, context) => {
24823
+ const parsedOutput = {
24824
+ ...output,
24825
+ body: await parseErrorBody(output.body, context)
24826
+ };
24827
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
24828
+ switch (errorCode) {
24829
+ case "AccessDeniedException":
24830
+ case "com.amazonaws.ssooidc#AccessDeniedException":
24831
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
24832
+ case "AuthorizationPendingException":
24833
+ case "com.amazonaws.ssooidc#AuthorizationPendingException":
24834
+ throw await deserializeAws_restJson1AuthorizationPendingExceptionResponse(parsedOutput, context);
24835
+ case "ExpiredTokenException":
24836
+ case "com.amazonaws.ssooidc#ExpiredTokenException":
24837
+ throw await deserializeAws_restJson1ExpiredTokenExceptionResponse(parsedOutput, context);
24838
+ case "InternalServerException":
24839
+ case "com.amazonaws.ssooidc#InternalServerException":
24840
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
24841
+ case "InvalidClientException":
24842
+ case "com.amazonaws.ssooidc#InvalidClientException":
24843
+ throw await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context);
24844
+ case "InvalidGrantException":
24845
+ case "com.amazonaws.ssooidc#InvalidGrantException":
24846
+ throw await deserializeAws_restJson1InvalidGrantExceptionResponse(parsedOutput, context);
24847
+ case "InvalidRequestException":
24848
+ case "com.amazonaws.ssooidc#InvalidRequestException":
24849
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
24850
+ case "InvalidScopeException":
24851
+ case "com.amazonaws.ssooidc#InvalidScopeException":
24852
+ throw await deserializeAws_restJson1InvalidScopeExceptionResponse(parsedOutput, context);
24853
+ case "SlowDownException":
24854
+ case "com.amazonaws.ssooidc#SlowDownException":
24855
+ throw await deserializeAws_restJson1SlowDownExceptionResponse(parsedOutput, context);
24856
+ case "UnauthorizedClientException":
24857
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
24858
+ throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
24859
+ case "UnsupportedGrantTypeException":
24860
+ case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
24861
+ throw await deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse(parsedOutput, context);
24862
+ default:
24863
+ const parsedBody = parsedOutput.body;
24864
+ (0, smithy_client_1.throwDefaultError)({
24865
+ output,
24866
+ parsedBody,
24867
+ exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
24868
+ errorCode
24869
+ });
24870
+ }
24871
+ };
24872
+ var deserializeAws_restJson1RegisterClientCommand = async (output, context) => {
24873
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
24874
+ return deserializeAws_restJson1RegisterClientCommandError(output, context);
24875
+ }
24876
+ const contents = map({
24877
+ $metadata: deserializeMetadata(output)
24878
+ });
24879
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
24880
+ if (data.authorizationEndpoint != null) {
24881
+ contents.authorizationEndpoint = (0, smithy_client_1.expectString)(data.authorizationEndpoint);
24882
+ }
24883
+ if (data.clientId != null) {
24884
+ contents.clientId = (0, smithy_client_1.expectString)(data.clientId);
24885
+ }
24886
+ if (data.clientIdIssuedAt != null) {
24887
+ contents.clientIdIssuedAt = (0, smithy_client_1.expectLong)(data.clientIdIssuedAt);
24888
+ }
24889
+ if (data.clientSecret != null) {
24890
+ contents.clientSecret = (0, smithy_client_1.expectString)(data.clientSecret);
24891
+ }
24892
+ if (data.clientSecretExpiresAt != null) {
24893
+ contents.clientSecretExpiresAt = (0, smithy_client_1.expectLong)(data.clientSecretExpiresAt);
24894
+ }
24895
+ if (data.tokenEndpoint != null) {
24896
+ contents.tokenEndpoint = (0, smithy_client_1.expectString)(data.tokenEndpoint);
24897
+ }
24898
+ return contents;
24899
+ };
24900
+ exports.deserializeAws_restJson1RegisterClientCommand = deserializeAws_restJson1RegisterClientCommand;
24901
+ var deserializeAws_restJson1RegisterClientCommandError = async (output, context) => {
24902
+ const parsedOutput = {
24903
+ ...output,
24904
+ body: await parseErrorBody(output.body, context)
24905
+ };
24906
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
24907
+ switch (errorCode) {
24908
+ case "InternalServerException":
24909
+ case "com.amazonaws.ssooidc#InternalServerException":
24910
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
24911
+ case "InvalidClientMetadataException":
24912
+ case "com.amazonaws.ssooidc#InvalidClientMetadataException":
24913
+ throw await deserializeAws_restJson1InvalidClientMetadataExceptionResponse(parsedOutput, context);
24914
+ case "InvalidRequestException":
24915
+ case "com.amazonaws.ssooidc#InvalidRequestException":
24916
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
24917
+ case "InvalidScopeException":
24918
+ case "com.amazonaws.ssooidc#InvalidScopeException":
24919
+ throw await deserializeAws_restJson1InvalidScopeExceptionResponse(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_restJson1StartDeviceAuthorizationCommand = async (output, context) => {
24931
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
24932
+ return deserializeAws_restJson1StartDeviceAuthorizationCommandError(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.deviceCode != null) {
24939
+ contents.deviceCode = (0, smithy_client_1.expectString)(data.deviceCode);
24940
+ }
24941
+ if (data.expiresIn != null) {
24942
+ contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
24943
+ }
24944
+ if (data.interval != null) {
24945
+ contents.interval = (0, smithy_client_1.expectInt32)(data.interval);
24946
+ }
24947
+ if (data.userCode != null) {
24948
+ contents.userCode = (0, smithy_client_1.expectString)(data.userCode);
24949
+ }
24950
+ if (data.verificationUri != null) {
24951
+ contents.verificationUri = (0, smithy_client_1.expectString)(data.verificationUri);
24952
+ }
24953
+ if (data.verificationUriComplete != null) {
24954
+ contents.verificationUriComplete = (0, smithy_client_1.expectString)(data.verificationUriComplete);
24955
+ }
24956
+ return contents;
24957
+ };
24958
+ exports.deserializeAws_restJson1StartDeviceAuthorizationCommand = deserializeAws_restJson1StartDeviceAuthorizationCommand;
24959
+ var deserializeAws_restJson1StartDeviceAuthorizationCommandError = 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 "InvalidClientException":
24970
+ case "com.amazonaws.ssooidc#InvalidClientException":
24971
+ throw await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context);
24972
+ case "InvalidRequestException":
24973
+ case "com.amazonaws.ssooidc#InvalidRequestException":
24974
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
24975
+ case "SlowDownException":
24976
+ case "com.amazonaws.ssooidc#SlowDownException":
24977
+ throw await deserializeAws_restJson1SlowDownExceptionResponse(parsedOutput, context);
24978
+ case "UnauthorizedClientException":
24979
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
24980
+ throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
24981
+ default:
24982
+ const parsedBody = parsedOutput.body;
24983
+ (0, smithy_client_1.throwDefaultError)({
24984
+ output,
24985
+ parsedBody,
24986
+ exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
24987
+ errorCode
24988
+ });
24989
+ }
24990
+ };
24991
+ var map = smithy_client_1.map;
24992
+ var deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
24993
+ const contents = map({});
24994
+ const data = parsedOutput.body;
24995
+ if (data.error != null) {
24996
+ contents.error = (0, smithy_client_1.expectString)(data.error);
24997
+ }
24998
+ if (data.error_description != null) {
24999
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25000
+ }
25001
+ const exception = new models_0_1.AccessDeniedException({
25002
+ $metadata: deserializeMetadata(parsedOutput),
25003
+ ...contents
25004
+ });
25005
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25006
+ };
25007
+ var deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (parsedOutput, context) => {
25008
+ const contents = map({});
25009
+ const data = parsedOutput.body;
25010
+ if (data.error != null) {
25011
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25012
+ }
25013
+ if (data.error_description != null) {
25014
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25015
+ }
25016
+ const exception = new models_0_1.AuthorizationPendingException({
25017
+ $metadata: deserializeMetadata(parsedOutput),
25018
+ ...contents
25019
+ });
25020
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25021
+ };
25022
+ var deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutput, context) => {
25023
+ const contents = map({});
25024
+ const data = parsedOutput.body;
25025
+ if (data.error != null) {
25026
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25027
+ }
25028
+ if (data.error_description != null) {
25029
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25030
+ }
25031
+ const exception = new models_0_1.ExpiredTokenException({
25032
+ $metadata: deserializeMetadata(parsedOutput),
25033
+ ...contents
25034
+ });
25035
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25036
+ };
25037
+ var deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
25038
+ const contents = map({});
25039
+ const data = parsedOutput.body;
25040
+ if (data.error != null) {
25041
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25042
+ }
25043
+ if (data.error_description != null) {
25044
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25045
+ }
25046
+ const exception = new models_0_1.InternalServerException({
25047
+ $metadata: deserializeMetadata(parsedOutput),
25048
+ ...contents
25049
+ });
25050
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25051
+ };
25052
+ var deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutput, context) => {
25053
+ const contents = map({});
25054
+ const data = parsedOutput.body;
25055
+ if (data.error != null) {
25056
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25057
+ }
25058
+ if (data.error_description != null) {
25059
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25060
+ }
25061
+ const exception = new models_0_1.InvalidClientException({
25062
+ $metadata: deserializeMetadata(parsedOutput),
25063
+ ...contents
25064
+ });
25065
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25066
+ };
25067
+ var deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (parsedOutput, context) => {
25068
+ const contents = map({});
25069
+ const data = parsedOutput.body;
25070
+ if (data.error != null) {
25071
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25072
+ }
25073
+ if (data.error_description != null) {
25074
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25075
+ }
25076
+ const exception = new models_0_1.InvalidClientMetadataException({
25077
+ $metadata: deserializeMetadata(parsedOutput),
25078
+ ...contents
25079
+ });
25080
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25081
+ };
25082
+ var deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutput, context) => {
25083
+ const contents = map({});
25084
+ const data = parsedOutput.body;
25085
+ if (data.error != null) {
25086
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25087
+ }
25088
+ if (data.error_description != null) {
25089
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25090
+ }
25091
+ const exception = new models_0_1.InvalidGrantException({
25092
+ $metadata: deserializeMetadata(parsedOutput),
25093
+ ...contents
25094
+ });
25095
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25096
+ };
25097
+ var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
25098
+ const contents = map({});
25099
+ const data = parsedOutput.body;
25100
+ if (data.error != null) {
25101
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25102
+ }
25103
+ if (data.error_description != null) {
25104
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25105
+ }
25106
+ const exception = new models_0_1.InvalidRequestException({
25107
+ $metadata: deserializeMetadata(parsedOutput),
25108
+ ...contents
25109
+ });
25110
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25111
+ };
25112
+ var deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutput, context) => {
25113
+ const contents = map({});
25114
+ const data = parsedOutput.body;
25115
+ if (data.error != null) {
25116
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25117
+ }
25118
+ if (data.error_description != null) {
25119
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25120
+ }
25121
+ const exception = new models_0_1.InvalidScopeException({
25122
+ $metadata: deserializeMetadata(parsedOutput),
25123
+ ...contents
25124
+ });
25125
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25126
+ };
25127
+ var deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, context) => {
25128
+ const contents = map({});
25129
+ const data = parsedOutput.body;
25130
+ if (data.error != null) {
25131
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25132
+ }
25133
+ if (data.error_description != null) {
25134
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25135
+ }
25136
+ const exception = new models_0_1.SlowDownException({
25137
+ $metadata: deserializeMetadata(parsedOutput),
25138
+ ...contents
25139
+ });
25140
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25141
+ };
25142
+ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
25143
+ const contents = map({});
25144
+ const data = parsedOutput.body;
25145
+ if (data.error != null) {
25146
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25147
+ }
25148
+ if (data.error_description != null) {
25149
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25150
+ }
25151
+ const exception = new models_0_1.UnauthorizedClientException({
25152
+ $metadata: deserializeMetadata(parsedOutput),
25153
+ ...contents
25154
+ });
25155
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25156
+ };
25157
+ var deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = async (parsedOutput, context) => {
25158
+ const contents = map({});
25159
+ const data = parsedOutput.body;
25160
+ if (data.error != null) {
25161
+ contents.error = (0, smithy_client_1.expectString)(data.error);
25162
+ }
25163
+ if (data.error_description != null) {
25164
+ contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
25165
+ }
25166
+ const exception = new models_0_1.UnsupportedGrantTypeException({
25167
+ $metadata: deserializeMetadata(parsedOutput),
25168
+ ...contents
25169
+ });
25170
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
25171
+ };
25172
+ var serializeAws_restJson1Scopes = (input, context) => {
25173
+ return input.filter((e) => e != null).map((entry) => {
25174
+ return entry;
25175
+ });
25176
+ };
25177
+ var deserializeMetadata = (output) => ({
25178
+ httpStatusCode: output.statusCode,
25179
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
25180
+ extendedRequestId: output.headers["x-amz-id-2"],
25181
+ cfId: output.headers["x-amz-cf-id"]
25182
+ });
25183
+ var collectBody = (streamBody = new Uint8Array(), context) => {
25184
+ if (streamBody instanceof Uint8Array) {
25185
+ return Promise.resolve(streamBody);
25186
+ }
25187
+ return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
25188
+ };
25189
+ var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
25190
+ var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
25191
+ if (encoded.length) {
25192
+ return JSON.parse(encoded);
25193
+ }
25194
+ return {};
25195
+ });
25196
+ var parseErrorBody = async (errorBody, context) => {
25197
+ const value = await parseBody(errorBody, context);
25198
+ value.message = value.message ?? value.Message;
25199
+ return value;
25200
+ };
25201
+ var loadRestJsonErrorCode = (output, data) => {
25202
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
25203
+ const sanitizeErrorCode = (rawValue) => {
25204
+ let cleanValue = rawValue;
25205
+ if (typeof cleanValue === "number") {
25206
+ cleanValue = cleanValue.toString();
25207
+ }
25208
+ if (cleanValue.indexOf(",") >= 0) {
25209
+ cleanValue = cleanValue.split(",")[0];
25210
+ }
25211
+ if (cleanValue.indexOf(":") >= 0) {
25212
+ cleanValue = cleanValue.split(":")[0];
25213
+ }
25214
+ if (cleanValue.indexOf("#") >= 0) {
25215
+ cleanValue = cleanValue.split("#")[1];
25216
+ }
25217
+ return cleanValue;
25218
+ };
25219
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
25220
+ if (headerKey !== void 0) {
25221
+ return sanitizeErrorCode(output.headers[headerKey]);
25222
+ }
25223
+ if (data.code !== void 0) {
25224
+ return sanitizeErrorCode(data.code);
25225
+ }
25226
+ if (data["__type"] !== void 0) {
25227
+ return sanitizeErrorCode(data["__type"]);
25228
+ }
25229
+ };
25230
+ }
25231
+ });
25232
+
25233
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js
25234
+ var require_CreateTokenCommand = __commonJS({
25235
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js"(exports) {
25236
+ "use strict";
25237
+ Object.defineProperty(exports, "__esModule", { value: true });
25238
+ exports.CreateTokenCommand = void 0;
25239
+ var middleware_endpoint_1 = require_dist_cjs5();
25240
+ var middleware_serde_1 = require_dist_cjs3();
25241
+ var smithy_client_1 = require_dist_cjs7();
25242
+ var models_0_1 = require_models_04();
25243
+ var Aws_restJson1_1 = require_Aws_restJson13();
25244
+ var CreateTokenCommand = class extends smithy_client_1.Command {
25245
+ constructor(input) {
25246
+ super();
25247
+ this.input = input;
25248
+ }
25249
+ static getEndpointParameterInstructions() {
25250
+ return {
25251
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25252
+ Endpoint: { type: "builtInParams", name: "endpoint" },
25253
+ Region: { type: "builtInParams", name: "region" },
25254
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
25255
+ };
25256
+ }
25257
+ resolveMiddleware(clientStack, configuration, options) {
25258
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25259
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateTokenCommand.getEndpointParameterInstructions()));
25260
+ const stack = clientStack.concat(this.middlewareStack);
25261
+ const { logger } = configuration;
25262
+ const clientName = "SSOOIDCClient";
25263
+ const commandName = "CreateTokenCommand";
25264
+ const handlerExecutionContext = {
25265
+ logger,
25266
+ clientName,
25267
+ commandName,
25268
+ inputFilterSensitiveLog: models_0_1.CreateTokenRequestFilterSensitiveLog,
25269
+ outputFilterSensitiveLog: models_0_1.CreateTokenResponseFilterSensitiveLog
25270
+ };
25271
+ const { requestHandler } = configuration;
25272
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25273
+ }
25274
+ serialize(input, context) {
25275
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateTokenCommand)(input, context);
25276
+ }
25277
+ deserialize(output, context) {
25278
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateTokenCommand)(output, context);
25279
+ }
25280
+ };
25281
+ exports.CreateTokenCommand = CreateTokenCommand;
25282
+ }
25283
+ });
25284
+
25285
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js
25286
+ var require_RegisterClientCommand = __commonJS({
25287
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js"(exports) {
25288
+ "use strict";
25289
+ Object.defineProperty(exports, "__esModule", { value: true });
25290
+ exports.RegisterClientCommand = void 0;
25291
+ var middleware_endpoint_1 = require_dist_cjs5();
25292
+ var middleware_serde_1 = require_dist_cjs3();
25293
+ var smithy_client_1 = require_dist_cjs7();
25294
+ var models_0_1 = require_models_04();
25295
+ var Aws_restJson1_1 = require_Aws_restJson13();
25296
+ var RegisterClientCommand = class extends smithy_client_1.Command {
25297
+ constructor(input) {
25298
+ super();
25299
+ this.input = input;
25300
+ }
25301
+ static getEndpointParameterInstructions() {
25302
+ return {
25303
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25304
+ Endpoint: { type: "builtInParams", name: "endpoint" },
25305
+ Region: { type: "builtInParams", name: "region" },
25306
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
25307
+ };
25308
+ }
25309
+ resolveMiddleware(clientStack, configuration, options) {
25310
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25311
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterClientCommand.getEndpointParameterInstructions()));
25312
+ const stack = clientStack.concat(this.middlewareStack);
25313
+ const { logger } = configuration;
25314
+ const clientName = "SSOOIDCClient";
25315
+ const commandName = "RegisterClientCommand";
25316
+ const handlerExecutionContext = {
25317
+ logger,
25318
+ clientName,
25319
+ commandName,
25320
+ inputFilterSensitiveLog: models_0_1.RegisterClientRequestFilterSensitiveLog,
25321
+ outputFilterSensitiveLog: models_0_1.RegisterClientResponseFilterSensitiveLog
25322
+ };
25323
+ const { requestHandler } = configuration;
25324
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25325
+ }
25326
+ serialize(input, context) {
25327
+ return (0, Aws_restJson1_1.serializeAws_restJson1RegisterClientCommand)(input, context);
25328
+ }
25329
+ deserialize(output, context) {
25330
+ return (0, Aws_restJson1_1.deserializeAws_restJson1RegisterClientCommand)(output, context);
25331
+ }
25332
+ };
25333
+ exports.RegisterClientCommand = RegisterClientCommand;
25334
+ }
25335
+ });
25336
+
25337
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js
25338
+ var require_StartDeviceAuthorizationCommand = __commonJS({
25339
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js"(exports) {
25340
+ "use strict";
25341
+ Object.defineProperty(exports, "__esModule", { value: true });
25342
+ exports.StartDeviceAuthorizationCommand = void 0;
25343
+ var middleware_endpoint_1 = require_dist_cjs5();
25344
+ var middleware_serde_1 = require_dist_cjs3();
25345
+ var smithy_client_1 = require_dist_cjs7();
25346
+ var models_0_1 = require_models_04();
25347
+ var Aws_restJson1_1 = require_Aws_restJson13();
25348
+ var StartDeviceAuthorizationCommand = class extends smithy_client_1.Command {
25349
+ constructor(input) {
25350
+ super();
25351
+ this.input = input;
25352
+ }
25353
+ static getEndpointParameterInstructions() {
25354
+ return {
25355
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25356
+ Endpoint: { type: "builtInParams", name: "endpoint" },
25357
+ Region: { type: "builtInParams", name: "region" },
25358
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
25359
+ };
25360
+ }
25361
+ resolveMiddleware(clientStack, configuration, options) {
25362
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25363
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartDeviceAuthorizationCommand.getEndpointParameterInstructions()));
25364
+ const stack = clientStack.concat(this.middlewareStack);
25365
+ const { logger } = configuration;
25366
+ const clientName = "SSOOIDCClient";
25367
+ const commandName = "StartDeviceAuthorizationCommand";
25368
+ const handlerExecutionContext = {
25369
+ logger,
25370
+ clientName,
25371
+ commandName,
25372
+ inputFilterSensitiveLog: models_0_1.StartDeviceAuthorizationRequestFilterSensitiveLog,
25373
+ outputFilterSensitiveLog: models_0_1.StartDeviceAuthorizationResponseFilterSensitiveLog
25374
+ };
25375
+ const { requestHandler } = configuration;
25376
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25377
+ }
25378
+ serialize(input, context) {
25379
+ return (0, Aws_restJson1_1.serializeAws_restJson1StartDeviceAuthorizationCommand)(input, context);
25380
+ }
25381
+ deserialize(output, context) {
25382
+ return (0, Aws_restJson1_1.deserializeAws_restJson1StartDeviceAuthorizationCommand)(output, context);
25383
+ }
25384
+ };
25385
+ exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
25386
+ }
25387
+ });
25388
+
25389
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js
25390
+ var require_EndpointParameters4 = __commonJS({
25391
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js"(exports) {
25392
+ "use strict";
25393
+ Object.defineProperty(exports, "__esModule", { value: true });
25394
+ exports.resolveClientEndpointParameters = void 0;
25395
+ var resolveClientEndpointParameters = (options) => {
25396
+ return {
25397
+ ...options,
25398
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
25399
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25400
+ defaultSigningName: "awsssooidc"
25401
+ };
25402
+ };
25403
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
25404
+ }
25405
+ });
25406
+
25407
+ // node_modules/@aws-sdk/client-sso-oidc/package.json
25408
+ var require_package4 = __commonJS({
25409
+ "node_modules/@aws-sdk/client-sso-oidc/package.json"(exports, module2) {
25410
+ module2.exports = {
25411
+ name: "@aws-sdk/client-sso-oidc",
25412
+ description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
25413
+ version: "3.212.0",
25414
+ scripts: {
25415
+ build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
25416
+ "build:cjs": "tsc -p tsconfig.cjs.json",
25417
+ "build:docs": "typedoc",
25418
+ "build:es": "tsc -p tsconfig.es.json",
25419
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
25420
+ "build:types": "tsc -p tsconfig.types.json",
25421
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
25422
+ clean: "rimraf ./dist-* && rimraf *.tsbuildinfo"
25423
+ },
25424
+ main: "./dist-cjs/index.js",
25425
+ types: "./dist-types/index.d.ts",
25426
+ module: "./dist-es/index.js",
25427
+ sideEffects: false,
25428
+ dependencies: {
25429
+ "@aws-crypto/sha256-browser": "2.0.0",
25430
+ "@aws-crypto/sha256-js": "2.0.0",
25431
+ "@aws-sdk/config-resolver": "3.212.0",
25432
+ "@aws-sdk/fetch-http-handler": "3.212.0",
25433
+ "@aws-sdk/hash-node": "3.212.0",
25434
+ "@aws-sdk/invalid-dependency": "3.212.0",
25435
+ "@aws-sdk/middleware-content-length": "3.212.0",
25436
+ "@aws-sdk/middleware-endpoint": "3.212.0",
25437
+ "@aws-sdk/middleware-host-header": "3.212.0",
25438
+ "@aws-sdk/middleware-logger": "3.212.0",
25439
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
25440
+ "@aws-sdk/middleware-retry": "3.212.0",
25441
+ "@aws-sdk/middleware-serde": "3.212.0",
25442
+ "@aws-sdk/middleware-stack": "3.212.0",
25443
+ "@aws-sdk/middleware-user-agent": "3.212.0",
25444
+ "@aws-sdk/node-config-provider": "3.212.0",
25445
+ "@aws-sdk/node-http-handler": "3.212.0",
25446
+ "@aws-sdk/protocol-http": "3.212.0",
25447
+ "@aws-sdk/smithy-client": "3.212.0",
25448
+ "@aws-sdk/types": "3.212.0",
25449
+ "@aws-sdk/url-parser": "3.212.0",
25450
+ "@aws-sdk/util-base64": "3.208.0",
25451
+ "@aws-sdk/util-body-length-browser": "3.188.0",
25452
+ "@aws-sdk/util-body-length-node": "3.208.0",
25453
+ "@aws-sdk/util-defaults-mode-browser": "3.212.0",
25454
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
25455
+ "@aws-sdk/util-endpoints": "3.212.0",
25456
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
25457
+ "@aws-sdk/util-user-agent-node": "3.212.0",
25458
+ "@aws-sdk/util-utf8-browser": "3.188.0",
25459
+ "@aws-sdk/util-utf8-node": "3.208.0",
25460
+ tslib: "^2.3.1"
25461
+ },
25462
+ devDependencies: {
25463
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
25464
+ "@tsconfig/node14": "1.0.3",
25465
+ "@types/node": "^14.14.31",
25466
+ concurrently: "7.0.0",
25467
+ "downlevel-dts": "0.10.1",
25468
+ rimraf: "3.0.2",
25469
+ typedoc: "0.19.2",
25470
+ typescript: "~4.6.2"
25471
+ },
25472
+ overrides: {
25473
+ typedoc: {
25474
+ typescript: "~4.6.2"
25475
+ }
25476
+ },
25477
+ engines: {
25478
+ node: ">=14.0.0"
25479
+ },
25480
+ typesVersions: {
25481
+ "<4.0": {
25482
+ "dist-types/*": [
25483
+ "dist-types/ts3.4/*"
25484
+ ]
25485
+ }
25486
+ },
25487
+ files: [
25488
+ "dist-*"
25489
+ ],
25490
+ author: {
25491
+ name: "AWS SDK for JavaScript Team",
25492
+ url: "https://aws.amazon.com/javascript/"
25493
+ },
25494
+ license: "Apache-2.0",
25495
+ browser: {
25496
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
25497
+ },
25498
+ "react-native": {
25499
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
25500
+ },
25501
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",
25502
+ repository: {
25503
+ type: "git",
25504
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
25505
+ directory: "clients/client-sso-oidc"
25506
+ }
25507
+ };
25508
+ }
25509
+ });
25510
+
25511
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
25512
+ var require_ruleset2 = __commonJS({
25513
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports) {
25514
+ "use strict";
25515
+ Object.defineProperty(exports, "__esModule", { value: true });
25516
+ exports.ruleSet = void 0;
25517
+ exports.ruleSet = {
25518
+ version: "1.0",
25519
+ parameters: {
25520
+ Region: {
25521
+ builtIn: "AWS::Region",
25522
+ required: false,
25523
+ documentation: "The AWS region used to dispatch the request.",
25524
+ type: "String"
25525
+ },
25526
+ UseDualStack: {
25527
+ builtIn: "AWS::UseDualStack",
25528
+ required: true,
25529
+ default: false,
25530
+ documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
25531
+ type: "Boolean"
25532
+ },
25533
+ UseFIPS: {
25534
+ builtIn: "AWS::UseFIPS",
25535
+ required: true,
25536
+ default: false,
25537
+ 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.",
25538
+ type: "Boolean"
25539
+ },
25540
+ Endpoint: {
25541
+ builtIn: "SDK::Endpoint",
25542
+ required: false,
25543
+ documentation: "Override the endpoint used to send this request",
25544
+ type: "String"
25545
+ }
25546
+ },
25547
+ rules: [
25548
+ {
25549
+ conditions: [
25550
+ {
25551
+ fn: "aws.partition",
25552
+ argv: [
25553
+ {
25554
+ ref: "Region"
25555
+ }
25556
+ ],
25557
+ assign: "PartitionResult"
25558
+ }
25559
+ ],
25560
+ type: "tree",
25561
+ rules: [
25562
+ {
25563
+ conditions: [
25564
+ {
25565
+ fn: "isSet",
25566
+ argv: [
25567
+ {
25568
+ ref: "Endpoint"
25569
+ }
25570
+ ]
25571
+ },
25572
+ {
25573
+ fn: "parseURL",
25574
+ argv: [
25575
+ {
25576
+ ref: "Endpoint"
25577
+ }
25578
+ ],
25579
+ assign: "url"
25580
+ }
25581
+ ],
25582
+ type: "tree",
25583
+ rules: [
25584
+ {
25585
+ conditions: [
25586
+ {
25587
+ fn: "booleanEquals",
25588
+ argv: [
25589
+ {
25590
+ ref: "UseFIPS"
25591
+ },
25592
+ true
25593
+ ]
25594
+ }
25595
+ ],
25596
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
25597
+ type: "error"
25598
+ },
25599
+ {
25600
+ conditions: [],
25601
+ type: "tree",
25602
+ rules: [
25603
+ {
25604
+ conditions: [
25605
+ {
25606
+ fn: "booleanEquals",
25607
+ argv: [
25608
+ {
25609
+ ref: "UseDualStack"
25610
+ },
25611
+ true
25612
+ ]
25613
+ }
25614
+ ],
25615
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
25616
+ type: "error"
25617
+ },
25618
+ {
25619
+ conditions: [],
25620
+ endpoint: {
25621
+ url: {
25622
+ ref: "Endpoint"
25623
+ },
25624
+ properties: {},
25625
+ headers: {}
25626
+ },
25627
+ type: "endpoint"
25628
+ }
25629
+ ]
25630
+ }
25631
+ ]
25632
+ },
25633
+ {
25634
+ conditions: [
25635
+ {
25636
+ fn: "booleanEquals",
25637
+ argv: [
25638
+ {
25639
+ ref: "UseFIPS"
25640
+ },
25641
+ true
25642
+ ]
25643
+ },
25644
+ {
25645
+ fn: "booleanEquals",
25646
+ argv: [
25647
+ {
25648
+ ref: "UseDualStack"
25649
+ },
25650
+ true
25651
+ ]
25652
+ }
25653
+ ],
25654
+ type: "tree",
25655
+ rules: [
25656
+ {
25657
+ conditions: [
25658
+ {
25659
+ fn: "booleanEquals",
25660
+ argv: [
25661
+ true,
25662
+ {
25663
+ fn: "getAttr",
25664
+ argv: [
25665
+ {
25666
+ ref: "PartitionResult"
25667
+ },
25668
+ "supportsFIPS"
25669
+ ]
25670
+ }
25671
+ ]
25672
+ },
25673
+ {
25674
+ fn: "booleanEquals",
25675
+ argv: [
25676
+ true,
25677
+ {
25678
+ fn: "getAttr",
25679
+ argv: [
25680
+ {
25681
+ ref: "PartitionResult"
25682
+ },
25683
+ "supportsDualStack"
25684
+ ]
25685
+ }
25686
+ ]
25687
+ }
25688
+ ],
25689
+ type: "tree",
25690
+ rules: [
25691
+ {
25692
+ conditions: [],
25693
+ endpoint: {
25694
+ url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
25695
+ properties: {},
25696
+ headers: {}
25697
+ },
25698
+ type: "endpoint"
25699
+ }
25700
+ ]
25701
+ },
25702
+ {
25703
+ conditions: [],
25704
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
25705
+ type: "error"
25706
+ }
25707
+ ]
25708
+ },
25709
+ {
25710
+ conditions: [
25711
+ {
25712
+ fn: "booleanEquals",
25713
+ argv: [
25714
+ {
25715
+ ref: "UseFIPS"
25716
+ },
25717
+ true
25718
+ ]
25719
+ }
25720
+ ],
25721
+ type: "tree",
25722
+ rules: [
25723
+ {
25724
+ conditions: [
25725
+ {
25726
+ fn: "booleanEquals",
25727
+ argv: [
25728
+ true,
25729
+ {
25730
+ fn: "getAttr",
25731
+ argv: [
25732
+ {
25733
+ ref: "PartitionResult"
25734
+ },
25735
+ "supportsFIPS"
25736
+ ]
25737
+ }
25738
+ ]
25739
+ }
25740
+ ],
25741
+ type: "tree",
25742
+ rules: [
25743
+ {
25744
+ conditions: [],
25745
+ type: "tree",
25746
+ rules: [
25747
+ {
25748
+ conditions: [],
25749
+ endpoint: {
25750
+ url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
25751
+ properties: {},
25752
+ headers: {}
25753
+ },
25754
+ type: "endpoint"
25755
+ }
25756
+ ]
25757
+ }
25758
+ ]
25759
+ },
25760
+ {
25761
+ conditions: [],
25762
+ error: "FIPS is enabled but this partition does not support FIPS",
25763
+ type: "error"
25764
+ }
25765
+ ]
25766
+ },
25767
+ {
25768
+ conditions: [
25769
+ {
25770
+ fn: "booleanEquals",
25771
+ argv: [
25772
+ {
25773
+ ref: "UseDualStack"
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
+ "supportsDualStack"
25794
+ ]
25795
+ }
25796
+ ]
25797
+ }
25798
+ ],
25799
+ type: "tree",
25800
+ rules: [
25801
+ {
25802
+ conditions: [],
25803
+ endpoint: {
25804
+ url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
25805
+ properties: {},
25806
+ headers: {}
25807
+ },
25808
+ type: "endpoint"
25809
+ }
25810
+ ]
25811
+ },
25812
+ {
25813
+ conditions: [],
25814
+ error: "DualStack is enabled but this partition does not support DualStack",
25815
+ type: "error"
25816
+ }
25817
+ ]
25818
+ },
25819
+ {
25820
+ conditions: [],
25821
+ endpoint: {
25822
+ url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}",
25823
+ properties: {},
25824
+ headers: {}
25825
+ },
25826
+ type: "endpoint"
25827
+ }
25828
+ ]
25829
+ }
25830
+ ]
25831
+ };
25832
+ }
25833
+ });
25834
+
25835
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
25836
+ var require_endpointResolver2 = __commonJS({
25837
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports) {
25838
+ "use strict";
25839
+ Object.defineProperty(exports, "__esModule", { value: true });
25840
+ exports.defaultEndpointResolver = void 0;
25841
+ var util_endpoints_1 = require_dist_cjs38();
25842
+ var ruleset_1 = require_ruleset2();
25843
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
25844
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
25845
+ endpointParams,
25846
+ logger: context.logger
25847
+ });
25848
+ };
25849
+ exports.defaultEndpointResolver = defaultEndpointResolver;
25850
+ }
25851
+ });
25852
+
25853
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
25854
+ var require_runtimeConfig_shared2 = __commonJS({
25855
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports) {
25856
+ "use strict";
25857
+ Object.defineProperty(exports, "__esModule", { value: true });
25858
+ exports.getRuntimeConfig = void 0;
25859
+ var smithy_client_1 = require_dist_cjs7();
25860
+ var url_parser_1 = require_dist_cjs2();
25861
+ var util_base64_1 = require_dist_cjs36();
25862
+ var endpointResolver_1 = require_endpointResolver2();
25863
+ var getRuntimeConfig = (config) => ({
25864
+ apiVersion: "2019-06-10",
25865
+ base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
25866
+ base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
25867
+ disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
25868
+ endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
25869
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
25870
+ serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO OIDC",
25871
+ urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
25872
+ });
25873
+ exports.getRuntimeConfig = getRuntimeConfig;
25874
+ }
25875
+ });
25876
+
25877
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
25878
+ var require_runtimeConfig2 = __commonJS({
25879
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports) {
25880
+ "use strict";
25881
+ Object.defineProperty(exports, "__esModule", { value: true });
25882
+ exports.getRuntimeConfig = void 0;
25883
+ var tslib_1 = require_tslib();
25884
+ var package_json_1 = tslib_1.__importDefault(require_package4());
25885
+ var config_resolver_1 = require_dist_cjs10();
25886
+ var hash_node_1 = require_dist_cjs30();
25887
+ var middleware_retry_1 = require_dist_cjs16();
25888
+ var node_config_provider_1 = require_dist_cjs27();
25889
+ var node_http_handler_1 = require_dist_cjs32();
25890
+ var util_body_length_node_1 = require_dist_cjs33();
25891
+ var util_user_agent_node_1 = require_dist_cjs34();
25892
+ var util_utf8_node_1 = require_dist_cjs35();
25893
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
25894
+ var smithy_client_1 = require_dist_cjs7();
25895
+ var util_defaults_mode_node_1 = require_dist_cjs39();
25896
+ var smithy_client_2 = require_dist_cjs7();
25897
+ var getRuntimeConfig = (config) => {
25898
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
25899
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25900
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25901
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25902
+ return {
25903
+ ...clientSharedValues,
25904
+ ...config,
25905
+ runtime: "node",
25906
+ defaultsMode,
25907
+ bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? util_body_length_node_1.calculateBodyLength,
25908
+ defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
25909
+ maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
25910
+ 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),
25911
+ requestHandler: (config == null ? void 0 : config.requestHandler) ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
25912
+ retryMode: (config == null ? void 0 : config.retryMode) ?? (0, node_config_provider_1.loadConfig)({
25913
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
25914
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE
25915
+ }),
25916
+ sha256: (config == null ? void 0 : config.sha256) ?? hash_node_1.Hash.bind(null, "sha256"),
25917
+ streamCollector: (config == null ? void 0 : config.streamCollector) ?? node_http_handler_1.streamCollector,
25918
+ useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
25919
+ useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
25920
+ utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_node_1.fromUtf8,
25921
+ utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_node_1.toUtf8
25922
+ };
25923
+ };
25924
+ exports.getRuntimeConfig = getRuntimeConfig;
25925
+ }
25926
+ });
25927
+
25928
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js
25929
+ var require_SSOOIDCClient = __commonJS({
25930
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js"(exports) {
25931
+ "use strict";
25932
+ Object.defineProperty(exports, "__esModule", { value: true });
25933
+ exports.SSOOIDCClient = void 0;
25934
+ var config_resolver_1 = require_dist_cjs10();
25935
+ var middleware_content_length_1 = require_dist_cjs11();
25936
+ var middleware_endpoint_1 = require_dist_cjs5();
25937
+ var middleware_host_header_1 = require_dist_cjs12();
25938
+ var middleware_logger_1 = require_dist_cjs13();
25939
+ var middleware_recursion_detection_1 = require_dist_cjs14();
25940
+ var middleware_retry_1 = require_dist_cjs16();
25941
+ var middleware_user_agent_1 = require_dist_cjs23();
25942
+ var smithy_client_1 = require_dist_cjs7();
25943
+ var EndpointParameters_1 = require_EndpointParameters4();
25944
+ var runtimeConfig_1 = require_runtimeConfig2();
25945
+ var SSOOIDCClient = class extends smithy_client_1.Client {
25946
+ constructor(configuration) {
25947
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
25948
+ const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
25949
+ const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
25950
+ const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
25951
+ const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
25952
+ const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
25953
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
25954
+ super(_config_6);
25955
+ this.config = _config_6;
25956
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
25957
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
25958
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
25959
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
25960
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
25961
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
25962
+ }
25963
+ destroy() {
25964
+ super.destroy();
25965
+ }
25966
+ };
25967
+ exports.SSOOIDCClient = SSOOIDCClient;
25968
+ }
25969
+ });
25970
+
25971
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js
25972
+ var require_SSOOIDC = __commonJS({
25973
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js"(exports) {
25974
+ "use strict";
25975
+ Object.defineProperty(exports, "__esModule", { value: true });
25976
+ exports.SSOOIDC = void 0;
25977
+ var CreateTokenCommand_1 = require_CreateTokenCommand();
25978
+ var RegisterClientCommand_1 = require_RegisterClientCommand();
25979
+ var StartDeviceAuthorizationCommand_1 = require_StartDeviceAuthorizationCommand();
25980
+ var SSOOIDCClient_1 = require_SSOOIDCClient();
25981
+ var SSOOIDC = class extends SSOOIDCClient_1.SSOOIDCClient {
25982
+ createToken(args, optionsOrCb, cb) {
25983
+ const command = new CreateTokenCommand_1.CreateTokenCommand(args);
25984
+ if (typeof optionsOrCb === "function") {
25985
+ this.send(command, optionsOrCb);
25986
+ } else if (typeof cb === "function") {
25987
+ if (typeof optionsOrCb !== "object")
25988
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
25989
+ this.send(command, optionsOrCb || {}, cb);
25990
+ } else {
25991
+ return this.send(command, optionsOrCb);
25992
+ }
25993
+ }
25994
+ registerClient(args, optionsOrCb, cb) {
25995
+ const command = new RegisterClientCommand_1.RegisterClientCommand(args);
25996
+ if (typeof optionsOrCb === "function") {
25997
+ this.send(command, optionsOrCb);
25998
+ } else if (typeof cb === "function") {
25999
+ if (typeof optionsOrCb !== "object")
26000
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26001
+ this.send(command, optionsOrCb || {}, cb);
26002
+ } else {
26003
+ return this.send(command, optionsOrCb);
26004
+ }
26005
+ }
26006
+ startDeviceAuthorization(args, optionsOrCb, cb) {
26007
+ const command = new StartDeviceAuthorizationCommand_1.StartDeviceAuthorizationCommand(args);
26008
+ if (typeof optionsOrCb === "function") {
26009
+ this.send(command, optionsOrCb);
26010
+ } else if (typeof cb === "function") {
26011
+ if (typeof optionsOrCb !== "object")
26012
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26013
+ this.send(command, optionsOrCb || {}, cb);
26014
+ } else {
26015
+ return this.send(command, optionsOrCb);
26016
+ }
26017
+ }
26018
+ };
26019
+ exports.SSOOIDC = SSOOIDC;
26020
+ }
26021
+ });
26022
+
26023
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js
26024
+ var require_commands2 = __commonJS({
26025
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js"(exports) {
26026
+ "use strict";
26027
+ Object.defineProperty(exports, "__esModule", { value: true });
26028
+ var tslib_1 = require_tslib();
26029
+ tslib_1.__exportStar(require_CreateTokenCommand(), exports);
26030
+ tslib_1.__exportStar(require_RegisterClientCommand(), exports);
26031
+ tslib_1.__exportStar(require_StartDeviceAuthorizationCommand(), exports);
26032
+ }
26033
+ });
26034
+
26035
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js
26036
+ var require_models2 = __commonJS({
26037
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js"(exports) {
26038
+ "use strict";
26039
+ Object.defineProperty(exports, "__esModule", { value: true });
26040
+ var tslib_1 = require_tslib();
26041
+ tslib_1.__exportStar(require_models_04(), exports);
26042
+ }
26043
+ });
26044
+
26045
+ // node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
26046
+ var require_dist_cjs41 = __commonJS({
26047
+ "node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports) {
26048
+ "use strict";
26049
+ Object.defineProperty(exports, "__esModule", { value: true });
26050
+ exports.SSOOIDCServiceException = void 0;
26051
+ var tslib_1 = require_tslib();
26052
+ tslib_1.__exportStar(require_SSOOIDC(), exports);
26053
+ tslib_1.__exportStar(require_SSOOIDCClient(), exports);
26054
+ tslib_1.__exportStar(require_commands2(), exports);
26055
+ tslib_1.__exportStar(require_models2(), exports);
26056
+ var SSOOIDCServiceException_1 = require_SSOOIDCServiceException();
26057
+ Object.defineProperty(exports, "SSOOIDCServiceException", { enumerable: true, get: function() {
26058
+ return SSOOIDCServiceException_1.SSOOIDCServiceException;
26059
+ } });
26060
+ }
26061
+ });
26062
+
26063
+ // node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js
26064
+ var require_getSsoOidcClient = __commonJS({
26065
+ "node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js"(exports) {
26066
+ "use strict";
26067
+ Object.defineProperty(exports, "__esModule", { value: true });
26068
+ exports.getSsoOidcClient = void 0;
26069
+ var client_sso_oidc_1 = require_dist_cjs41();
26070
+ var ssoOidcClientsHash = {};
26071
+ var getSsoOidcClient = (ssoRegion) => {
26072
+ if (ssoOidcClientsHash[ssoRegion]) {
26073
+ return ssoOidcClientsHash[ssoRegion];
26074
+ }
26075
+ const ssoOidcClient = new client_sso_oidc_1.SSOOIDCClient({ region: ssoRegion });
26076
+ ssoOidcClientsHash[ssoRegion] = ssoOidcClient;
26077
+ return ssoOidcClient;
26078
+ };
26079
+ exports.getSsoOidcClient = getSsoOidcClient;
26080
+ }
26081
+ });
26082
+
26083
+ // node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js
26084
+ var require_getNewSsoOidcToken = __commonJS({
26085
+ "node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js"(exports) {
26086
+ "use strict";
26087
+ Object.defineProperty(exports, "__esModule", { value: true });
26088
+ exports.getNewSsoOidcToken = void 0;
26089
+ var client_sso_oidc_1 = require_dist_cjs41();
26090
+ var getSsoOidcClient_1 = require_getSsoOidcClient();
26091
+ var getNewSsoOidcToken = (ssoToken, ssoRegion) => {
26092
+ const ssoOidcClient = (0, getSsoOidcClient_1.getSsoOidcClient)(ssoRegion);
26093
+ return ssoOidcClient.send(new client_sso_oidc_1.CreateTokenCommand({
26094
+ clientId: ssoToken.clientId,
26095
+ clientSecret: ssoToken.clientSecret,
26096
+ refreshToken: ssoToken.refreshToken,
26097
+ grantType: "refresh_token"
26098
+ }));
26099
+ };
26100
+ exports.getNewSsoOidcToken = getNewSsoOidcToken;
26101
+ }
26102
+ });
26103
+
26104
+ // node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js
26105
+ var require_validateTokenExpiry = __commonJS({
26106
+ "node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js"(exports) {
26107
+ "use strict";
26108
+ Object.defineProperty(exports, "__esModule", { value: true });
26109
+ exports.validateTokenExpiry = void 0;
26110
+ var property_provider_1 = require_dist_cjs17();
26111
+ var constants_1 = require_constants8();
26112
+ var validateTokenExpiry = (token) => {
26113
+ if (token.expiration && token.expiration.getTime() < Date.now()) {
26114
+ throw new property_provider_1.TokenProviderError(`Token is expired. ${constants_1.REFRESH_MESSAGE}`, false);
26115
+ }
26116
+ };
26117
+ exports.validateTokenExpiry = validateTokenExpiry;
26118
+ }
26119
+ });
26120
+
26121
+ // node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js
26122
+ var require_validateTokenKey = __commonJS({
26123
+ "node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js"(exports) {
26124
+ "use strict";
26125
+ Object.defineProperty(exports, "__esModule", { value: true });
26126
+ exports.validateTokenKey = void 0;
26127
+ var property_provider_1 = require_dist_cjs17();
26128
+ var constants_1 = require_constants8();
26129
+ var validateTokenKey = (key, value, forRefresh = false) => {
26130
+ if (typeof value === "undefined") {
26131
+ throw new property_provider_1.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${constants_1.REFRESH_MESSAGE}`, false);
26132
+ }
26133
+ };
26134
+ exports.validateTokenKey = validateTokenKey;
26135
+ }
26136
+ });
26137
+
26138
+ // node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js
26139
+ var require_writeSSOTokenToFile = __commonJS({
26140
+ "node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js"(exports) {
26141
+ "use strict";
26142
+ Object.defineProperty(exports, "__esModule", { value: true });
26143
+ exports.writeSSOTokenToFile = void 0;
26144
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26145
+ var fs_1 = require("fs");
26146
+ var { writeFile } = fs_1.promises;
26147
+ var writeSSOTokenToFile = (id, ssoToken) => {
26148
+ const tokenFilepath = (0, shared_ini_file_loader_1.getSSOTokenFilepath)(id);
26149
+ const tokenString = JSON.stringify(ssoToken, null, 2);
26150
+ return writeFile(tokenFilepath, tokenString);
26151
+ };
26152
+ exports.writeSSOTokenToFile = writeSSOTokenToFile;
26153
+ }
26154
+ });
26155
+
26156
+ // node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js
26157
+ var require_fromSso = __commonJS({
26158
+ "node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js"(exports) {
26159
+ "use strict";
26160
+ Object.defineProperty(exports, "__esModule", { value: true });
26161
+ exports.fromSso = void 0;
26162
+ var property_provider_1 = require_dist_cjs17();
26163
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26164
+ var constants_1 = require_constants8();
26165
+ var getNewSsoOidcToken_1 = require_getNewSsoOidcToken();
26166
+ var validateTokenExpiry_1 = require_validateTokenExpiry();
26167
+ var validateTokenKey_1 = require_validateTokenKey();
26168
+ var writeSSOTokenToFile_1 = require_writeSSOTokenToFile();
26169
+ var lastRefreshAttemptTime = new Date(0);
26170
+ var fromSso = (init = {}) => async () => {
26171
+ const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init);
26172
+ const profileName = (0, shared_ini_file_loader_1.getProfileName)(init);
26173
+ const profile = profiles[profileName];
26174
+ if (!profile) {
26175
+ throw new property_provider_1.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
26176
+ } else if (!profile["sso_session"]) {
26177
+ throw new property_provider_1.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
26178
+ }
26179
+ const ssoSessionName = profile["sso_session"];
26180
+ const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init);
26181
+ const ssoSession = ssoSessions[ssoSessionName];
26182
+ if (!ssoSession) {
26183
+ throw new property_provider_1.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
26184
+ }
26185
+ for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
26186
+ if (!ssoSession[ssoSessionRequiredKey]) {
26187
+ throw new property_provider_1.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
26188
+ }
26189
+ }
26190
+ const ssoStartUrl = ssoSession["sso_start_url"];
26191
+ const ssoRegion = ssoSession["sso_region"];
26192
+ let ssoToken;
26193
+ try {
26194
+ ssoToken = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoSessionName);
26195
+ } catch (e) {
26196
+ 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);
26197
+ }
26198
+ (0, validateTokenKey_1.validateTokenKey)("accessToken", ssoToken.accessToken);
26199
+ (0, validateTokenKey_1.validateTokenKey)("expiresAt", ssoToken.expiresAt);
26200
+ const { accessToken, expiresAt } = ssoToken;
26201
+ const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
26202
+ if (existingToken.expiration.getTime() - Date.now() > constants_1.EXPIRE_WINDOW_MS) {
26203
+ return existingToken;
26204
+ }
26205
+ if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1e3) {
26206
+ (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken);
26207
+ return existingToken;
26208
+ }
26209
+ (0, validateTokenKey_1.validateTokenKey)("clientId", ssoToken.clientId, true);
26210
+ (0, validateTokenKey_1.validateTokenKey)("clientSecret", ssoToken.clientSecret, true);
26211
+ (0, validateTokenKey_1.validateTokenKey)("refreshToken", ssoToken.refreshToken, true);
26212
+ try {
26213
+ lastRefreshAttemptTime.setTime(Date.now());
26214
+ const newSsoOidcToken = await (0, getNewSsoOidcToken_1.getNewSsoOidcToken)(ssoToken, ssoRegion);
26215
+ (0, validateTokenKey_1.validateTokenKey)("accessToken", newSsoOidcToken.accessToken);
26216
+ (0, validateTokenKey_1.validateTokenKey)("expiresIn", newSsoOidcToken.expiresIn);
26217
+ const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3);
26218
+ try {
26219
+ await (0, writeSSOTokenToFile_1.writeSSOTokenToFile)(ssoSessionName, {
26220
+ ...ssoToken,
26221
+ accessToken: newSsoOidcToken.accessToken,
26222
+ expiresAt: newTokenExpiration.toISOString(),
26223
+ refreshToken: newSsoOidcToken.refreshToken
26224
+ });
26225
+ } catch (error) {
26226
+ }
26227
+ return {
26228
+ token: newSsoOidcToken.accessToken,
26229
+ expiration: newTokenExpiration
26230
+ };
26231
+ } catch (error) {
26232
+ (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken);
26233
+ return existingToken;
26234
+ }
26235
+ };
26236
+ exports.fromSso = fromSso;
26237
+ }
26238
+ });
26239
+
26240
+ // node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js
26241
+ var require_fromStatic3 = __commonJS({
26242
+ "node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js"(exports) {
26243
+ "use strict";
26244
+ Object.defineProperty(exports, "__esModule", { value: true });
26245
+ exports.fromStatic = void 0;
26246
+ var property_provider_1 = require_dist_cjs17();
26247
+ var fromStatic = ({ token }) => async () => {
26248
+ if (!token || !token.token) {
26249
+ throw new property_provider_1.TokenProviderError(`Please pass a valid token to fromStatic`, false);
26250
+ }
26251
+ return token;
26252
+ };
26253
+ exports.fromStatic = fromStatic;
26254
+ }
26255
+ });
26256
+
26257
+ // node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js
26258
+ var require_nodeProvider = __commonJS({
26259
+ "node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js"(exports) {
26260
+ "use strict";
26261
+ Object.defineProperty(exports, "__esModule", { value: true });
26262
+ exports.nodeProvider = void 0;
26263
+ var property_provider_1 = require_dist_cjs17();
26264
+ var fromSso_1 = require_fromSso();
26265
+ var nodeProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromSso_1.fromSso)(init), async () => {
26266
+ throw new property_provider_1.TokenProviderError("Could not load token from any providers", false);
26267
+ }), (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5, (token) => token.expiration !== void 0);
26268
+ exports.nodeProvider = nodeProvider;
26269
+ }
26270
+ });
26271
+
26272
+ // node_modules/@aws-sdk/token-providers/dist-cjs/index.js
26273
+ var require_dist_cjs42 = __commonJS({
26274
+ "node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports) {
26275
+ "use strict";
26276
+ Object.defineProperty(exports, "__esModule", { value: true });
26277
+ var tslib_1 = require_tslib();
26278
+ tslib_1.__exportStar(require_fromSso(), exports);
26279
+ tslib_1.__exportStar(require_fromStatic3(), exports);
26280
+ tslib_1.__exportStar(require_nodeProvider(), exports);
26281
+ }
26282
+ });
26283
+
26284
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js
26285
+ var require_resolveSSOCredentials = __commonJS({
26286
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) {
26287
+ "use strict";
26288
+ Object.defineProperty(exports, "__esModule", { value: true });
26289
+ exports.resolveSSOCredentials = void 0;
26290
+ var client_sso_1 = require_dist_cjs40();
26291
+ var property_provider_1 = require_dist_cjs17();
26292
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26293
+ var token_providers_1 = require_dist_cjs42();
26294
+ var EXPIRE_WINDOW_MS = 15 * 60 * 1e3;
26295
+ var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
26296
+ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile }) => {
26297
+ let token;
26298
+ const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
26299
+ if (ssoSession) {
26300
+ try {
26301
+ const _token = await (0, token_providers_1.fromSso)({ profile })();
26302
+ token = {
26303
+ accessToken: _token.token,
26304
+ expiresAt: new Date(_token.expiration).toISOString()
26305
+ };
26306
+ } catch (e) {
26307
+ throw new property_provider_1.CredentialsProviderError(e.message, SHOULD_FAIL_CREDENTIAL_CHAIN);
26308
+ }
26309
+ } else {
26310
+ try {
26311
+ token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl);
26312
+ } catch (e) {
26313
+ throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
26314
+ }
26315
+ }
26316
+ if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) {
26317
+ throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
26318
+ }
26319
+ const { accessToken } = token;
26320
+ const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion });
26321
+ let ssoResp;
26322
+ try {
26323
+ ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({
26324
+ accountId: ssoAccountId,
26325
+ roleName: ssoRoleName,
26326
+ accessToken
26327
+ }));
26328
+ } catch (e) {
26329
+ throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN);
26330
+ }
26331
+ const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
26332
+ if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
26333
+ throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
26334
+ }
26335
+ return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
26336
+ };
26337
+ exports.resolveSSOCredentials = resolveSSOCredentials;
26338
+ }
26339
+ });
26340
+
26341
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js
26342
+ var require_validateSsoProfile = __commonJS({
26343
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) {
26344
+ "use strict";
26345
+ Object.defineProperty(exports, "__esModule", { value: true });
26346
+ exports.validateSsoProfile = void 0;
26347
+ var property_provider_1 = require_dist_cjs17();
26348
+ var validateSsoProfile = (profile) => {
26349
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
26350
+ if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
26351
+ 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(", ")}
26352
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false);
26353
+ }
26354
+ return profile;
26355
+ };
26356
+ exports.validateSsoProfile = validateSsoProfile;
26357
+ }
26358
+ });
26359
+
26360
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js
26361
+ var require_fromSSO = __commonJS({
26362
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) {
26363
+ "use strict";
26364
+ Object.defineProperty(exports, "__esModule", { value: true });
26365
+ exports.fromSSO = void 0;
26366
+ var property_provider_1 = require_dist_cjs17();
26367
+ var shared_ini_file_loader_1 = require_dist_cjs26();
26368
+ var isSsoProfile_1 = require_isSsoProfile();
26369
+ var resolveSSOCredentials_1 = require_resolveSSOCredentials();
26370
+ var validateSsoProfile_1 = require_validateSsoProfile();
26371
+ var fromSSO = (init = {}) => async () => {
26372
+ const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, ssoSession } = init;
26373
+ const profileName = (0, shared_ini_file_loader_1.getProfileName)(init);
26374
+ if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
26375
+ const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init);
26376
+ const profile = profiles[profileName];
26377
+ if (!profile) {
26378
+ throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} was not found.`);
26379
+ }
26380
+ if (!(0, isSsoProfile_1.isSsoProfile)(profile)) {
26381
+ throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`);
26382
+ }
26383
+ if (profile === null || profile === void 0 ? void 0 : profile.sso_session) {
26384
+ const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init);
26385
+ const session = ssoSessions[profile.sso_session];
26386
+ const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
26387
+ if (ssoRegion && ssoRegion !== session.sso_region) {
26388
+ throw new property_provider_1.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false);
26389
+ }
26390
+ if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
26391
+ throw new property_provider_1.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false);
26392
+ }
26393
+ profile.sso_region = session.sso_region;
26394
+ profile.sso_start_url = session.sso_start_url;
26395
+ }
26396
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = (0, validateSsoProfile_1.validateSsoProfile)(profile);
26397
+ return (0, resolveSSOCredentials_1.resolveSSOCredentials)({
26398
+ ssoStartUrl: sso_start_url,
26399
+ ssoSession: sso_session,
26400
+ ssoAccountId: sso_account_id,
26401
+ ssoRegion: sso_region,
26402
+ ssoRoleName: sso_role_name,
26403
+ ssoClient,
26404
+ profile: profileName
26405
+ });
26406
+ } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
26407
+ throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');
26408
+ } else {
26409
+ return (0, resolveSSOCredentials_1.resolveSSOCredentials)({
26410
+ ssoStartUrl,
26411
+ ssoSession,
26412
+ ssoAccountId,
26413
+ ssoRegion,
26414
+ ssoRoleName,
26415
+ ssoClient,
26416
+ profile: profileName
26417
+ });
26418
+ }
26419
+ };
26420
+ exports.fromSSO = fromSSO;
26421
+ }
26422
+ });
26423
+
26424
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js
26425
+ var require_types6 = __commonJS({
26426
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) {
26427
+ "use strict";
26428
+ Object.defineProperty(exports, "__esModule", { value: true });
26429
+ }
26430
+ });
26431
+
26432
+ // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
26433
+ var require_dist_cjs43 = __commonJS({
26434
+ "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) {
26435
+ "use strict";
26436
+ Object.defineProperty(exports, "__esModule", { value: true });
26437
+ var tslib_1 = require_tslib();
26438
+ tslib_1.__exportStar(require_fromSSO(), exports);
26439
+ tslib_1.__exportStar(require_isSsoProfile(), exports);
26440
+ tslib_1.__exportStar(require_types6(), exports);
26441
+ tslib_1.__exportStar(require_validateSsoProfile(), exports);
26442
+ }
26443
+ });
26444
+
26445
+ // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js
26446
+ var require_resolveSsoCredentials = __commonJS({
26447
+ "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) {
26448
+ "use strict";
26449
+ Object.defineProperty(exports, "__esModule", { value: true });
26450
+ exports.resolveSsoCredentials = exports.isSsoProfile = void 0;
26451
+ var credential_provider_sso_1 = require_dist_cjs43();
26452
+ var credential_provider_sso_2 = require_dist_cjs43();
26453
+ Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function() {
26454
+ return credential_provider_sso_2.isSsoProfile;
26455
+ } });
26456
+ var resolveSsoCredentials = (data) => {
26457
+ const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data);
26458
+ return (0, credential_provider_sso_1.fromSSO)({
26459
+ ssoStartUrl: sso_start_url,
26460
+ ssoAccountId: sso_account_id,
26461
+ ssoSession: sso_session,
26462
+ ssoRegion: sso_region,
26463
+ ssoRoleName: sso_role_name
26464
+ })();
26465
+ };
26466
+ exports.resolveSsoCredentials = resolveSsoCredentials;
26467
+ }
26468
+ });
26469
+
26470
+ // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js
26471
+ var require_resolveStaticCredentials = __commonJS({
26472
+ "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) {
26473
+ "use strict";
26474
+ Object.defineProperty(exports, "__esModule", { value: true });
26475
+ exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0;
26476
+ 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;
26477
+ exports.isStaticCredsProfile = isStaticCredsProfile;
26478
+ var resolveStaticCredentials = (profile) => Promise.resolve({
26479
+ accessKeyId: profile.aws_access_key_id,
26480
+ secretAccessKey: profile.aws_secret_access_key,
26481
+ sessionToken: profile.aws_session_token
26482
+ });
26483
+ exports.resolveStaticCredentials = resolveStaticCredentials;
26484
+ }
26485
+ });
26486
+
26487
+ // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
26488
+ var require_fromWebToken = __commonJS({
26489
+ "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports) {
26490
+ "use strict";
26491
+ Object.defineProperty(exports, "__esModule", { value: true });
26492
+ exports.fromWebToken = void 0;
26493
+ var property_provider_1 = require_dist_cjs17();
26494
+ var fromWebToken = (init) => () => {
26495
+ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init;
26496
+ if (!roleAssumerWithWebIdentity) {
26497
+ throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.`, false);
26498
+ }
26499
+ return roleAssumerWithWebIdentity({
26500
+ RoleArn: roleArn,
26501
+ RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`,
26502
+ WebIdentityToken: webIdentityToken,
26503
+ ProviderId: providerId,
26504
+ PolicyArns: policyArns,
26505
+ Policy: policy,
26506
+ DurationSeconds: durationSeconds
26507
+ });
26508
+ };
26509
+ exports.fromWebToken = fromWebToken;
26510
+ }
26511
+ });
26512
+
26513
+ // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
26514
+ var require_fromTokenFile = __commonJS({
26515
+ "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports) {
26516
+ "use strict";
26517
+ Object.defineProperty(exports, "__esModule", { value: true });
26518
+ exports.fromTokenFile = void 0;
26519
+ var property_provider_1 = require_dist_cjs17();
26520
+ var fs_1 = require("fs");
26521
+ var fromWebToken_1 = require_fromWebToken();
24591
26522
  var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
24592
26523
  var ENV_ROLE_ARN = "AWS_ROLE_ARN";
24593
26524
  var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
@@ -24614,7 +26545,7 @@ var require_fromTokenFile = __commonJS({
24614
26545
  });
24615
26546
 
24616
26547
  // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
24617
- var require_dist_cjs42 = __commonJS({
26548
+ var require_dist_cjs44 = __commonJS({
24618
26549
  "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports) {
24619
26550
  "use strict";
24620
26551
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24630,7 +26561,7 @@ var require_resolveWebIdentityCredentials = __commonJS({
24630
26561
  "use strict";
24631
26562
  Object.defineProperty(exports, "__esModule", { value: true });
24632
26563
  exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0;
24633
- var credential_provider_web_identity_1 = require_dist_cjs42();
26564
+ var credential_provider_web_identity_1 = require_dist_cjs44();
24634
26565
  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
26566
  exports.isWebIdentityProfile = isWebIdentityProfile;
24636
26567
  var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({
@@ -24694,7 +26625,7 @@ var require_fromIni = __commonJS({
24694
26625
  });
24695
26626
 
24696
26627
  // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
24697
- var require_dist_cjs43 = __commonJS({
26628
+ var require_dist_cjs45 = __commonJS({
24698
26629
  "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) {
24699
26630
  "use strict";
24700
26631
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24790,7 +26721,7 @@ var require_fromProcess = __commonJS({
24790
26721
  });
24791
26722
 
24792
26723
  // node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
24793
- var require_dist_cjs44 = __commonJS({
26724
+ var require_dist_cjs46 = __commonJS({
24794
26725
  "node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) {
24795
26726
  "use strict";
24796
26727
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24830,10 +26761,10 @@ var require_defaultProvider = __commonJS({
24830
26761
  Object.defineProperty(exports, "__esModule", { value: true });
24831
26762
  exports.defaultProvider = void 0;
24832
26763
  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();
26764
+ var credential_provider_ini_1 = require_dist_cjs45();
26765
+ var credential_provider_process_1 = require_dist_cjs46();
26766
+ var credential_provider_sso_1 = require_dist_cjs43();
26767
+ var credential_provider_web_identity_1 = require_dist_cjs44();
24837
26768
  var property_provider_1 = require_dist_cjs17();
24838
26769
  var shared_ini_file_loader_1 = require_dist_cjs26();
24839
26770
  var remoteProvider_1 = require_remoteProvider();
@@ -24845,7 +26776,7 @@ var require_defaultProvider = __commonJS({
24845
26776
  });
24846
26777
 
24847
26778
  // node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
24848
- var require_dist_cjs45 = __commonJS({
26779
+ var require_dist_cjs47 = __commonJS({
24849
26780
  "node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) {
24850
26781
  "use strict";
24851
26782
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24855,7 +26786,7 @@ var require_dist_cjs45 = __commonJS({
24855
26786
  });
24856
26787
 
24857
26788
  // node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
24858
- var require_ruleset2 = __commonJS({
26789
+ var require_ruleset3 = __commonJS({
24859
26790
  "node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports) {
24860
26791
  "use strict";
24861
26792
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25712,8 +27643,8 @@ var require_ruleset2 = __commonJS({
25712
27643
  authSchemes: [
25713
27644
  {
25714
27645
  name: "sigv4",
25715
- signingName: "sts",
25716
- signingRegion: "us-east-1"
27646
+ signingRegion: "us-east-1",
27647
+ signingName: "sts"
25717
27648
  }
25718
27649
  ]
25719
27650
  },
@@ -25740,13 +27671,13 @@ var require_ruleset2 = __commonJS({
25740
27671
  });
25741
27672
 
25742
27673
  // node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
25743
- var require_endpointResolver2 = __commonJS({
27674
+ var require_endpointResolver3 = __commonJS({
25744
27675
  "node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports) {
25745
27676
  "use strict";
25746
27677
  Object.defineProperty(exports, "__esModule", { value: true });
25747
27678
  exports.defaultEndpointResolver = void 0;
25748
27679
  var util_endpoints_1 = require_dist_cjs38();
25749
- var ruleset_1 = require_ruleset2();
27680
+ var ruleset_1 = require_ruleset3();
25750
27681
  var defaultEndpointResolver = (endpointParams, context = {}) => {
25751
27682
  return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
25752
27683
  endpointParams,
@@ -25758,21 +27689,22 @@ var require_endpointResolver2 = __commonJS({
25758
27689
  });
25759
27690
 
25760
27691
  // node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
25761
- var require_runtimeConfig_shared2 = __commonJS({
27692
+ var require_runtimeConfig_shared3 = __commonJS({
25762
27693
  "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) {
25763
27694
  "use strict";
25764
27695
  Object.defineProperty(exports, "__esModule", { value: true });
25765
27696
  exports.getRuntimeConfig = void 0;
27697
+ var smithy_client_1 = require_dist_cjs7();
25766
27698
  var url_parser_1 = require_dist_cjs2();
25767
27699
  var util_base64_1 = require_dist_cjs36();
25768
- var endpointResolver_1 = require_endpointResolver2();
27700
+ var endpointResolver_1 = require_endpointResolver3();
25769
27701
  var getRuntimeConfig = (config) => ({
25770
27702
  apiVersion: "2011-06-15",
25771
27703
  base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
25772
27704
  base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
25773
27705
  disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
25774
27706
  endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
25775
- logger: (config == null ? void 0 : config.logger) ?? {},
27707
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
25776
27708
  serviceId: (config == null ? void 0 : config.serviceId) ?? "STS",
25777
27709
  urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
25778
27710
  });
@@ -25781,7 +27713,7 @@ var require_runtimeConfig_shared2 = __commonJS({
25781
27713
  });
25782
27714
 
25783
27715
  // node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
25784
- var require_runtimeConfig2 = __commonJS({
27716
+ var require_runtimeConfig3 = __commonJS({
25785
27717
  "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) {
25786
27718
  "use strict";
25787
27719
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25790,7 +27722,7 @@ var require_runtimeConfig2 = __commonJS({
25790
27722
  var package_json_1 = tslib_1.__importDefault(require_package2());
25791
27723
  var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers();
25792
27724
  var config_resolver_1 = require_dist_cjs10();
25793
- var credential_provider_node_1 = require_dist_cjs45();
27725
+ var credential_provider_node_1 = require_dist_cjs47();
25794
27726
  var hash_node_1 = require_dist_cjs30();
25795
27727
  var middleware_retry_1 = require_dist_cjs16();
25796
27728
  var node_config_provider_1 = require_dist_cjs27();
@@ -25798,7 +27730,7 @@ var require_runtimeConfig2 = __commonJS({
25798
27730
  var util_body_length_node_1 = require_dist_cjs33();
25799
27731
  var util_user_agent_node_1 = require_dist_cjs34();
25800
27732
  var util_utf8_node_1 = require_dist_cjs35();
25801
- var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
27733
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
25802
27734
  var smithy_client_1 = require_dist_cjs7();
25803
27735
  var util_defaults_mode_node_1 = require_dist_cjs39();
25804
27736
  var smithy_client_2 = require_dist_cjs7();
@@ -25851,7 +27783,7 @@ var require_STSClient = __commonJS({
25851
27783
  var middleware_user_agent_1 = require_dist_cjs23();
25852
27784
  var smithy_client_1 = require_dist_cjs7();
25853
27785
  var EndpointParameters_1 = require_EndpointParameters2();
25854
- var runtimeConfig_1 = require_runtimeConfig2();
27786
+ var runtimeConfig_1 = require_runtimeConfig3();
25855
27787
  var STSClient = class extends smithy_client_1.Client {
25856
27788
  constructor(configuration) {
25857
27789
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
@@ -25997,7 +27929,7 @@ var require_STS = __commonJS({
25997
27929
  });
25998
27930
 
25999
27931
  // node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js
26000
- var require_commands2 = __commonJS({
27932
+ var require_commands3 = __commonJS({
26001
27933
  "node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) {
26002
27934
  "use strict";
26003
27935
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26048,7 +27980,7 @@ var require_defaultRoleAssumers = __commonJS({
26048
27980
  });
26049
27981
 
26050
27982
  // node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js
26051
- var require_models2 = __commonJS({
27983
+ var require_models3 = __commonJS({
26052
27984
  "node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) {
26053
27985
  "use strict";
26054
27986
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26058,7 +27990,7 @@ var require_models2 = __commonJS({
26058
27990
  });
26059
27991
 
26060
27992
  // node_modules/@aws-sdk/client-sts/dist-cjs/index.js
26061
- var require_dist_cjs46 = __commonJS({
27993
+ var require_dist_cjs48 = __commonJS({
26062
27994
  "node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) {
26063
27995
  "use strict";
26064
27996
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26066,9 +27998,9 @@ var require_dist_cjs46 = __commonJS({
26066
27998
  var tslib_1 = require_tslib();
26067
27999
  tslib_1.__exportStar(require_STS(), exports);
26068
28000
  tslib_1.__exportStar(require_STSClient(), exports);
26069
- tslib_1.__exportStar(require_commands2(), exports);
28001
+ tslib_1.__exportStar(require_commands3(), exports);
26070
28002
  tslib_1.__exportStar(require_defaultRoleAssumers(), exports);
26071
- tslib_1.__exportStar(require_models2(), exports);
28003
+ tslib_1.__exportStar(require_models3(), exports);
26072
28004
  var STSServiceException_1 = require_STSServiceException();
26073
28005
  Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function() {
26074
28006
  return STSServiceException_1.STSServiceException;
@@ -26077,7 +28009,7 @@ var require_dist_cjs46 = __commonJS({
26077
28009
  });
26078
28010
 
26079
28011
  // node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js
26080
- var require_ruleset3 = __commonJS({
28012
+ var require_ruleset4 = __commonJS({
26081
28013
  "node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js"(exports) {
26082
28014
  "use strict";
26083
28015
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26401,13 +28333,13 @@ var require_ruleset3 = __commonJS({
26401
28333
  });
26402
28334
 
26403
28335
  // node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js
26404
- var require_endpointResolver3 = __commonJS({
28336
+ var require_endpointResolver4 = __commonJS({
26405
28337
  "node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js"(exports) {
26406
28338
  "use strict";
26407
28339
  Object.defineProperty(exports, "__esModule", { value: true });
26408
28340
  exports.defaultEndpointResolver = void 0;
26409
28341
  var util_endpoints_1 = require_dist_cjs38();
26410
- var ruleset_1 = require_ruleset3();
28342
+ var ruleset_1 = require_ruleset4();
26411
28343
  var defaultEndpointResolver = (endpointParams, context = {}) => {
26412
28344
  return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
26413
28345
  endpointParams,
@@ -26419,21 +28351,22 @@ var require_endpointResolver3 = __commonJS({
26419
28351
  });
26420
28352
 
26421
28353
  // node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js
26422
- var require_runtimeConfig_shared3 = __commonJS({
28354
+ var require_runtimeConfig_shared4 = __commonJS({
26423
28355
  "node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js"(exports) {
26424
28356
  "use strict";
26425
28357
  Object.defineProperty(exports, "__esModule", { value: true });
26426
28358
  exports.getRuntimeConfig = void 0;
28359
+ var smithy_client_1 = require_dist_cjs7();
26427
28360
  var url_parser_1 = require_dist_cjs2();
26428
28361
  var util_base64_1 = require_dist_cjs36();
26429
- var endpointResolver_1 = require_endpointResolver3();
28362
+ var endpointResolver_1 = require_endpointResolver4();
26430
28363
  var getRuntimeConfig = (config) => ({
26431
28364
  apiVersion: "2015-03-31",
26432
28365
  base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
26433
28366
  base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
26434
28367
  disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
26435
28368
  endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
26436
- logger: (config == null ? void 0 : config.logger) ?? {},
28369
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
26437
28370
  serviceId: (config == null ? void 0 : config.serviceId) ?? "Lambda",
26438
28371
  urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
26439
28372
  });
@@ -26442,16 +28375,16 @@ var require_runtimeConfig_shared3 = __commonJS({
26442
28375
  });
26443
28376
 
26444
28377
  // node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js
26445
- var require_runtimeConfig3 = __commonJS({
28378
+ var require_runtimeConfig4 = __commonJS({
26446
28379
  "node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js"(exports) {
26447
28380
  "use strict";
26448
28381
  Object.defineProperty(exports, "__esModule", { value: true });
26449
28382
  exports.getRuntimeConfig = void 0;
26450
28383
  var tslib_1 = require_tslib();
26451
28384
  var package_json_1 = tslib_1.__importDefault(require_package());
26452
- var client_sts_1 = require_dist_cjs46();
28385
+ var client_sts_1 = require_dist_cjs48();
26453
28386
  var config_resolver_1 = require_dist_cjs10();
26454
- var credential_provider_node_1 = require_dist_cjs45();
28387
+ var credential_provider_node_1 = require_dist_cjs47();
26455
28388
  var hash_node_1 = require_dist_cjs30();
26456
28389
  var middleware_retry_1 = require_dist_cjs16();
26457
28390
  var node_config_provider_1 = require_dist_cjs27();
@@ -26459,7 +28392,7 @@ var require_runtimeConfig3 = __commonJS({
26459
28392
  var util_body_length_node_1 = require_dist_cjs33();
26460
28393
  var util_user_agent_node_1 = require_dist_cjs34();
26461
28394
  var util_utf8_node_1 = require_dist_cjs35();
26462
- var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
28395
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
26463
28396
  var smithy_client_1 = require_dist_cjs7();
26464
28397
  var util_defaults_mode_node_1 = require_dist_cjs39();
26465
28398
  var smithy_client_2 = require_dist_cjs7();
@@ -26512,7 +28445,7 @@ var require_LambdaClient = __commonJS({
26512
28445
  var middleware_user_agent_1 = require_dist_cjs23();
26513
28446
  var smithy_client_1 = require_dist_cjs7();
26514
28447
  var EndpointParameters_1 = require_EndpointParameters();
26515
- var runtimeConfig_1 = require_runtimeConfig3();
28448
+ var runtimeConfig_1 = require_runtimeConfig4();
26516
28449
  var LambdaClient = class extends smithy_client_1.Client {
26517
28450
  constructor(configuration) {
26518
28451
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
@@ -27374,7 +29307,7 @@ var require_Lambda = __commonJS({
27374
29307
  });
27375
29308
 
27376
29309
  // node_modules/@aws-sdk/client-lambda/dist-cjs/commands/index.js
27377
- var require_commands3 = __commonJS({
29310
+ var require_commands4 = __commonJS({
27378
29311
  "node_modules/@aws-sdk/client-lambda/dist-cjs/commands/index.js"(exports) {
27379
29312
  "use strict";
27380
29313
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -27446,7 +29379,7 @@ var require_commands3 = __commonJS({
27446
29379
  });
27447
29380
 
27448
29381
  // node_modules/@aws-sdk/client-lambda/dist-cjs/models/index.js
27449
- var require_models3 = __commonJS({
29382
+ var require_models4 = __commonJS({
27450
29383
  "node_modules/@aws-sdk/client-lambda/dist-cjs/models/index.js"(exports) {
27451
29384
  "use strict";
27452
29385
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28091,7 +30024,7 @@ var require_createWaiter = __commonJS({
28091
30024
  });
28092
30025
 
28093
30026
  // node_modules/@aws-sdk/util-waiter/dist-cjs/index.js
28094
- var require_dist_cjs47 = __commonJS({
30027
+ var require_dist_cjs49 = __commonJS({
28095
30028
  "node_modules/@aws-sdk/util-waiter/dist-cjs/index.js"(exports) {
28096
30029
  "use strict";
28097
30030
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28107,7 +30040,7 @@ var require_waitForFunctionActive = __commonJS({
28107
30040
  "use strict";
28108
30041
  Object.defineProperty(exports, "__esModule", { value: true });
28109
30042
  exports.waitUntilFunctionActive = exports.waitForFunctionActive = void 0;
28110
- var util_waiter_1 = require_dist_cjs47();
30043
+ var util_waiter_1 = require_dist_cjs49();
28111
30044
  var GetFunctionConfigurationCommand_1 = require_GetFunctionConfigurationCommand();
28112
30045
  var checkState = async (client, input) => {
28113
30046
  let reason;
@@ -28166,7 +30099,7 @@ var require_waitForFunctionActiveV2 = __commonJS({
28166
30099
  "use strict";
28167
30100
  Object.defineProperty(exports, "__esModule", { value: true });
28168
30101
  exports.waitUntilFunctionActiveV2 = exports.waitForFunctionActiveV2 = void 0;
28169
- var util_waiter_1 = require_dist_cjs47();
30102
+ var util_waiter_1 = require_dist_cjs49();
28170
30103
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28171
30104
  var checkState = async (client, input) => {
28172
30105
  let reason;
@@ -28225,7 +30158,7 @@ var require_waitForFunctionExists = __commonJS({
28225
30158
  "use strict";
28226
30159
  Object.defineProperty(exports, "__esModule", { value: true });
28227
30160
  exports.waitUntilFunctionExists = exports.waitForFunctionExists = void 0;
28228
- var util_waiter_1 = require_dist_cjs47();
30161
+ var util_waiter_1 = require_dist_cjs49();
28229
30162
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28230
30163
  var checkState = async (client, input) => {
28231
30164
  let reason;
@@ -28261,7 +30194,7 @@ var require_waitForFunctionUpdated = __commonJS({
28261
30194
  "use strict";
28262
30195
  Object.defineProperty(exports, "__esModule", { value: true });
28263
30196
  exports.waitUntilFunctionUpdated = exports.waitForFunctionUpdated = void 0;
28264
- var util_waiter_1 = require_dist_cjs47();
30197
+ var util_waiter_1 = require_dist_cjs49();
28265
30198
  var GetFunctionConfigurationCommand_1 = require_GetFunctionConfigurationCommand();
28266
30199
  var checkState = async (client, input) => {
28267
30200
  let reason;
@@ -28320,7 +30253,7 @@ var require_waitForFunctionUpdatedV2 = __commonJS({
28320
30253
  "use strict";
28321
30254
  Object.defineProperty(exports, "__esModule", { value: true });
28322
30255
  exports.waitUntilFunctionUpdatedV2 = exports.waitForFunctionUpdatedV2 = void 0;
28323
- var util_waiter_1 = require_dist_cjs47();
30256
+ var util_waiter_1 = require_dist_cjs49();
28324
30257
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28325
30258
  var checkState = async (client, input) => {
28326
30259
  let reason;
@@ -28388,7 +30321,7 @@ var require_waiters = __commonJS({
28388
30321
  });
28389
30322
 
28390
30323
  // node_modules/@aws-sdk/client-lambda/dist-cjs/index.js
28391
- var require_dist_cjs48 = __commonJS({
30324
+ var require_dist_cjs50 = __commonJS({
28392
30325
  "node_modules/@aws-sdk/client-lambda/dist-cjs/index.js"(exports) {
28393
30326
  "use strict";
28394
30327
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28396,8 +30329,8 @@ var require_dist_cjs48 = __commonJS({
28396
30329
  var tslib_1 = require_tslib();
28397
30330
  tslib_1.__exportStar(require_Lambda(), exports);
28398
30331
  tslib_1.__exportStar(require_LambdaClient(), exports);
28399
- tslib_1.__exportStar(require_commands3(), exports);
28400
- tslib_1.__exportStar(require_models3(), exports);
30332
+ tslib_1.__exportStar(require_commands4(), exports);
30333
+ tslib_1.__exportStar(require_models4(), exports);
28401
30334
  tslib_1.__exportStar(require_pagination3(), exports);
28402
30335
  tslib_1.__exportStar(require_waiters(), exports);
28403
30336
  var LambdaServiceException_1 = require_LambdaServiceException();
@@ -28413,7 +30346,7 @@ __export(update_lambda_exports, {
28413
30346
  handler: () => handler
28414
30347
  });
28415
30348
  module.exports = __toCommonJS(update_lambda_exports);
28416
- var import_client_lambda = __toESM(require_dist_cjs48());
30349
+ var import_client_lambda = __toESM(require_dist_cjs50());
28417
30350
  var AWS = __toESM(require("aws-sdk"));
28418
30351
  var lambda = new AWS.Lambda();
28419
30352
  function sleep(ms) {