@cloudsnorkel/cdk-github-runners 0.5.6 → 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.
@@ -178,7 +178,7 @@ var require_tslib = __commonJS({
178
178
  function step(op) {
179
179
  if (f)
180
180
  throw new TypeError("Generator is already executing.");
181
- while (_)
181
+ while (g && (g = 0, op[0] && (_ = 0)), _)
182
182
  try {
183
183
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
184
184
  return t;
@@ -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) {
@@ -1731,13 +1753,6 @@ var require_emitWarningIfUnsupportedVersion = __commonJS({
1731
1753
  var emitWarningIfUnsupportedVersion = (version) => {
1732
1754
  if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) {
1733
1755
  warningEmitted = true;
1734
- process.emitWarning(`The AWS SDK for JavaScript (v3) will
1735
- no longer support Node.js ${version} on November 1, 2022.
1736
-
1737
- To continue receiving updates to AWS services, bug fixes, and security
1738
- updates please upgrade to Node.js 14.x or later.
1739
-
1740
- For details, please refer our blog post: https://a.co/48dbdYz`, `NodeDeprecationWarning`);
1741
1756
  }
1742
1757
  };
1743
1758
  exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
@@ -1996,6 +2011,7 @@ var require_dist_cjs7 = __commonJS({
1996
2011
  "use strict";
1997
2012
  Object.defineProperty(exports, "__esModule", { value: true });
1998
2013
  var tslib_1 = require_tslib();
2014
+ tslib_1.__exportStar(require_NoOpLogger(), exports);
1999
2015
  tslib_1.__exportStar(require_client(), exports);
2000
2016
  tslib_1.__exportStar(require_command(), exports);
2001
2017
  tslib_1.__exportStar(require_constants(), exports);
@@ -2259,6 +2275,7 @@ var require_models_0 = __commonJS({
2259
2275
  Runtime2["nodejs12x"] = "nodejs12.x";
2260
2276
  Runtime2["nodejs14x"] = "nodejs14.x";
2261
2277
  Runtime2["nodejs16x"] = "nodejs16.x";
2278
+ Runtime2["nodejs18x"] = "nodejs18.x";
2262
2279
  Runtime2["nodejs43"] = "nodejs4.3";
2263
2280
  Runtime2["nodejs43edge"] = "nodejs4.3-edge";
2264
2281
  Runtime2["nodejs610"] = "nodejs6.10";
@@ -3403,7 +3420,7 @@ var require_Aws_restJson1 = __commonJS({
3403
3420
  const headers = {
3404
3421
  "content-type": "application/json"
3405
3422
  };
3406
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;
3423
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;
3407
3424
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
3408
3425
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
3409
3426
  const query = map({
@@ -3433,7 +3450,7 @@ var require_Aws_restJson1 = __commonJS({
3433
3450
  const headers = {
3434
3451
  "content-type": "application/json"
3435
3452
  };
3436
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/policy`;
3453
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/policy`;
3437
3454
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3438
3455
  const query = map({
3439
3456
  Qualifier: [, input.Qualifier]
@@ -3467,7 +3484,7 @@ var require_Aws_restJson1 = __commonJS({
3467
3484
  const headers = {
3468
3485
  "content-type": "application/json"
3469
3486
  };
3470
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases`;
3487
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases`;
3471
3488
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3472
3489
  let body;
3473
3490
  body = JSON.stringify({
@@ -3494,7 +3511,7 @@ var require_Aws_restJson1 = __commonJS({
3494
3511
  const headers = {
3495
3512
  "content-type": "application/json"
3496
3513
  };
3497
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs`;
3514
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs`;
3498
3515
  let body;
3499
3516
  body = JSON.stringify({
3500
3517
  ...input.AllowedPublishers != null && {
@@ -3521,7 +3538,7 @@ var require_Aws_restJson1 = __commonJS({
3521
3538
  const headers = {
3522
3539
  "content-type": "application/json"
3523
3540
  };
3524
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings`;
3541
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings`;
3525
3542
  let body;
3526
3543
  body = JSON.stringify({
3527
3544
  ...input.AmazonManagedKafkaEventSourceConfig != null && {
@@ -3580,7 +3597,7 @@ var require_Aws_restJson1 = __commonJS({
3580
3597
  const headers = {
3581
3598
  "content-type": "application/json"
3582
3599
  };
3583
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions`;
3600
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions`;
3584
3601
  let body;
3585
3602
  body = JSON.stringify({
3586
3603
  ...input.Architectures != null && {
@@ -3632,7 +3649,7 @@ var require_Aws_restJson1 = __commonJS({
3632
3649
  const headers = {
3633
3650
  "content-type": "application/json"
3634
3651
  };
3635
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
3652
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
3636
3653
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3637
3654
  const query = map({
3638
3655
  Qualifier: [, input.Qualifier]
@@ -3657,7 +3674,7 @@ var require_Aws_restJson1 = __commonJS({
3657
3674
  var serializeAws_restJson1DeleteAliasCommand = async (input, context) => {
3658
3675
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3659
3676
  const headers = {};
3660
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;
3677
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;
3661
3678
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3662
3679
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
3663
3680
  let body;
@@ -3675,7 +3692,7 @@ var require_Aws_restJson1 = __commonJS({
3675
3692
  var serializeAws_restJson1DeleteCodeSigningConfigCommand = async (input, context) => {
3676
3693
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3677
3694
  const headers = {};
3678
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;
3695
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;
3679
3696
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
3680
3697
  let body;
3681
3698
  return new protocol_http_1.HttpRequest({
@@ -3692,7 +3709,7 @@ var require_Aws_restJson1 = __commonJS({
3692
3709
  var serializeAws_restJson1DeleteEventSourceMappingCommand = async (input, context) => {
3693
3710
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3694
3711
  const headers = {};
3695
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings/{UUID}`;
3712
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings/{UUID}`;
3696
3713
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UUID", () => input.UUID, "{UUID}", false);
3697
3714
  let body;
3698
3715
  return new protocol_http_1.HttpRequest({
@@ -3709,7 +3726,7 @@ var require_Aws_restJson1 = __commonJS({
3709
3726
  var serializeAws_restJson1DeleteFunctionCommand = async (input, context) => {
3710
3727
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3711
3728
  const headers = {};
3712
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}`;
3729
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}`;
3713
3730
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3714
3731
  const query = map({
3715
3732
  Qualifier: [, input.Qualifier]
@@ -3730,7 +3747,7 @@ var require_Aws_restJson1 = __commonJS({
3730
3747
  var serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = async (input, context) => {
3731
3748
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3732
3749
  const headers = {};
3733
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-06-30/functions/{FunctionName}/code-signing-config`;
3750
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-06-30/functions/{FunctionName}/code-signing-config`;
3734
3751
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3735
3752
  let body;
3736
3753
  return new protocol_http_1.HttpRequest({
@@ -3747,7 +3764,7 @@ var require_Aws_restJson1 = __commonJS({
3747
3764
  var serializeAws_restJson1DeleteFunctionConcurrencyCommand = async (input, context) => {
3748
3765
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3749
3766
  const headers = {};
3750
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-10-31/functions/{FunctionName}/concurrency`;
3767
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-10-31/functions/{FunctionName}/concurrency`;
3751
3768
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3752
3769
  let body;
3753
3770
  return new protocol_http_1.HttpRequest({
@@ -3764,7 +3781,7 @@ var require_Aws_restJson1 = __commonJS({
3764
3781
  var serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = async (input, context) => {
3765
3782
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3766
3783
  const headers = {};
3767
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
3784
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
3768
3785
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3769
3786
  const query = map({
3770
3787
  Qualifier: [, input.Qualifier]
@@ -3785,7 +3802,7 @@ var require_Aws_restJson1 = __commonJS({
3785
3802
  var serializeAws_restJson1DeleteFunctionUrlConfigCommand = async (input, context) => {
3786
3803
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3787
3804
  const headers = {};
3788
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
3805
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
3789
3806
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3790
3807
  const query = map({
3791
3808
  Qualifier: [, input.Qualifier]
@@ -3806,7 +3823,7 @@ var require_Aws_restJson1 = __commonJS({
3806
3823
  var serializeAws_restJson1DeleteLayerVersionCommand = async (input, context) => {
3807
3824
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3808
3825
  const headers = {};
3809
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;
3826
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;
3810
3827
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
3811
3828
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
3812
3829
  let body;
@@ -3824,7 +3841,7 @@ var require_Aws_restJson1 = __commonJS({
3824
3841
  var serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = async (input, context) => {
3825
3842
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3826
3843
  const headers = {};
3827
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
3844
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
3828
3845
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3829
3846
  const query = map({
3830
3847
  Qualifier: [, input.Qualifier]
@@ -3847,7 +3864,7 @@ var require_Aws_restJson1 = __commonJS({
3847
3864
  const headers = {
3848
3865
  "content-type": "application/json"
3849
3866
  };
3850
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2016-08-19/account-settings`;
3867
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2016-08-19/account-settings`;
3851
3868
  let body;
3852
3869
  body = "";
3853
3870
  return new protocol_http_1.HttpRequest({
@@ -3864,7 +3881,7 @@ var require_Aws_restJson1 = __commonJS({
3864
3881
  var serializeAws_restJson1GetAliasCommand = async (input, context) => {
3865
3882
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3866
3883
  const headers = {};
3867
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;
3884
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;
3868
3885
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3869
3886
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
3870
3887
  let body;
@@ -3882,7 +3899,7 @@ var require_Aws_restJson1 = __commonJS({
3882
3899
  var serializeAws_restJson1GetCodeSigningConfigCommand = async (input, context) => {
3883
3900
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3884
3901
  const headers = {};
3885
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;
3902
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;
3886
3903
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
3887
3904
  let body;
3888
3905
  return new protocol_http_1.HttpRequest({
@@ -3899,7 +3916,7 @@ var require_Aws_restJson1 = __commonJS({
3899
3916
  var serializeAws_restJson1GetEventSourceMappingCommand = async (input, context) => {
3900
3917
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3901
3918
  const headers = {};
3902
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings/{UUID}`;
3919
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings/{UUID}`;
3903
3920
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UUID", () => input.UUID, "{UUID}", false);
3904
3921
  let body;
3905
3922
  return new protocol_http_1.HttpRequest({
@@ -3916,7 +3933,7 @@ var require_Aws_restJson1 = __commonJS({
3916
3933
  var serializeAws_restJson1GetFunctionCommand = async (input, context) => {
3917
3934
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3918
3935
  const headers = {};
3919
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}`;
3936
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}`;
3920
3937
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3921
3938
  const query = map({
3922
3939
  Qualifier: [, input.Qualifier]
@@ -3937,7 +3954,7 @@ var require_Aws_restJson1 = __commonJS({
3937
3954
  var serializeAws_restJson1GetFunctionCodeSigningConfigCommand = async (input, context) => {
3938
3955
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3939
3956
  const headers = {};
3940
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-06-30/functions/{FunctionName}/code-signing-config`;
3957
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-06-30/functions/{FunctionName}/code-signing-config`;
3941
3958
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3942
3959
  let body;
3943
3960
  return new protocol_http_1.HttpRequest({
@@ -3954,7 +3971,7 @@ var require_Aws_restJson1 = __commonJS({
3954
3971
  var serializeAws_restJson1GetFunctionConcurrencyCommand = async (input, context) => {
3955
3972
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3956
3973
  const headers = {};
3957
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/concurrency`;
3974
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/concurrency`;
3958
3975
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3959
3976
  let body;
3960
3977
  return new protocol_http_1.HttpRequest({
@@ -3971,7 +3988,7 @@ var require_Aws_restJson1 = __commonJS({
3971
3988
  var serializeAws_restJson1GetFunctionConfigurationCommand = async (input, context) => {
3972
3989
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3973
3990
  const headers = {};
3974
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/configuration`;
3991
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/configuration`;
3975
3992
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3976
3993
  const query = map({
3977
3994
  Qualifier: [, input.Qualifier]
@@ -3992,7 +4009,7 @@ var require_Aws_restJson1 = __commonJS({
3992
4009
  var serializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (input, context) => {
3993
4010
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3994
4011
  const headers = {};
3995
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
4012
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
3996
4013
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
3997
4014
  const query = map({
3998
4015
  Qualifier: [, input.Qualifier]
@@ -4013,7 +4030,7 @@ var require_Aws_restJson1 = __commonJS({
4013
4030
  var serializeAws_restJson1GetFunctionUrlConfigCommand = async (input, context) => {
4014
4031
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4015
4032
  const headers = {};
4016
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
4033
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
4017
4034
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4018
4035
  const query = map({
4019
4036
  Qualifier: [, input.Qualifier]
@@ -4034,7 +4051,7 @@ var require_Aws_restJson1 = __commonJS({
4034
4051
  var serializeAws_restJson1GetLayerVersionCommand = async (input, context) => {
4035
4052
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4036
4053
  const headers = {};
4037
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;
4054
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;
4038
4055
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
4039
4056
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
4040
4057
  let body;
@@ -4052,7 +4069,7 @@ var require_Aws_restJson1 = __commonJS({
4052
4069
  var serializeAws_restJson1GetLayerVersionByArnCommand = async (input, context) => {
4053
4070
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4054
4071
  const headers = {};
4055
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers`;
4072
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers`;
4056
4073
  const query = map({
4057
4074
  find: [, "LayerVersion"],
4058
4075
  Arn: [, input.Arn]
@@ -4073,7 +4090,7 @@ var require_Aws_restJson1 = __commonJS({
4073
4090
  var serializeAws_restJson1GetLayerVersionPolicyCommand = async (input, context) => {
4074
4091
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4075
4092
  const headers = {};
4076
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;
4093
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;
4077
4094
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
4078
4095
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
4079
4096
  let body;
@@ -4091,7 +4108,7 @@ var require_Aws_restJson1 = __commonJS({
4091
4108
  var serializeAws_restJson1GetPolicyCommand = async (input, context) => {
4092
4109
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4093
4110
  const headers = {};
4094
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/policy`;
4111
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/policy`;
4095
4112
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4096
4113
  const query = map({
4097
4114
  Qualifier: [, input.Qualifier]
@@ -4112,7 +4129,7 @@ var require_Aws_restJson1 = __commonJS({
4112
4129
  var serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (input, context) => {
4113
4130
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4114
4131
  const headers = {};
4115
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
4132
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
4116
4133
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4117
4134
  const query = map({
4118
4135
  Qualifier: [, input.Qualifier]
@@ -4138,7 +4155,7 @@ var require_Aws_restJson1 = __commonJS({
4138
4155
  "x-amz-log-type": input.LogType,
4139
4156
  "x-amz-client-context": input.ClientContext
4140
4157
  });
4141
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/invocations`;
4158
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/invocations`;
4142
4159
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4143
4160
  const query = map({
4144
4161
  Qualifier: [, input.Qualifier]
@@ -4164,7 +4181,7 @@ var require_Aws_restJson1 = __commonJS({
4164
4181
  const headers = {
4165
4182
  "content-type": "application/octet-stream"
4166
4183
  };
4167
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2014-11-13/functions/{FunctionName}/invoke-async`;
4184
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2014-11-13/functions/{FunctionName}/invoke-async`;
4168
4185
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4169
4186
  let body;
4170
4187
  if (input.InvokeArgs !== void 0) {
@@ -4184,7 +4201,7 @@ var require_Aws_restJson1 = __commonJS({
4184
4201
  var serializeAws_restJson1ListAliasesCommand = async (input, context) => {
4185
4202
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4186
4203
  const headers = {};
4187
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases`;
4204
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases`;
4188
4205
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4189
4206
  const query = map({
4190
4207
  FunctionVersion: [, input.FunctionVersion],
@@ -4207,7 +4224,7 @@ var require_Aws_restJson1 = __commonJS({
4207
4224
  var serializeAws_restJson1ListCodeSigningConfigsCommand = async (input, context) => {
4208
4225
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4209
4226
  const headers = {};
4210
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs`;
4227
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs`;
4211
4228
  const query = map({
4212
4229
  Marker: [, input.Marker],
4213
4230
  MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()]
@@ -4228,7 +4245,7 @@ var require_Aws_restJson1 = __commonJS({
4228
4245
  var serializeAws_restJson1ListEventSourceMappingsCommand = async (input, context) => {
4229
4246
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4230
4247
  const headers = {};
4231
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings`;
4248
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings`;
4232
4249
  const query = map({
4233
4250
  EventSourceArn: [, input.EventSourceArn],
4234
4251
  FunctionName: [, input.FunctionName],
@@ -4251,7 +4268,7 @@ var require_Aws_restJson1 = __commonJS({
4251
4268
  var serializeAws_restJson1ListFunctionEventInvokeConfigsCommand = async (input, context) => {
4252
4269
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4253
4270
  const headers = {};
4254
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config/list`;
4271
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config/list`;
4255
4272
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4256
4273
  const query = map({
4257
4274
  Marker: [, input.Marker],
@@ -4273,7 +4290,7 @@ var require_Aws_restJson1 = __commonJS({
4273
4290
  var serializeAws_restJson1ListFunctionsCommand = async (input, context) => {
4274
4291
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4275
4292
  const headers = {};
4276
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions`;
4293
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions`;
4277
4294
  const query = map({
4278
4295
  MasterRegion: [, input.MasterRegion],
4279
4296
  FunctionVersion: [, input.FunctionVersion],
@@ -4296,7 +4313,7 @@ var require_Aws_restJson1 = __commonJS({
4296
4313
  var serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = async (input, context) => {
4297
4314
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4298
4315
  const headers = {};
4299
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions`;
4316
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions`;
4300
4317
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
4301
4318
  const query = map({
4302
4319
  Marker: [, input.Marker],
@@ -4318,7 +4335,7 @@ var require_Aws_restJson1 = __commonJS({
4318
4335
  var serializeAws_restJson1ListFunctionUrlConfigsCommand = async (input, context) => {
4319
4336
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4320
4337
  const headers = {};
4321
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/urls`;
4338
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/urls`;
4322
4339
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4323
4340
  const query = map({
4324
4341
  Marker: [, input.Marker],
@@ -4340,7 +4357,7 @@ var require_Aws_restJson1 = __commonJS({
4340
4357
  var serializeAws_restJson1ListLayersCommand = async (input, context) => {
4341
4358
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4342
4359
  const headers = {};
4343
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers`;
4360
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers`;
4344
4361
  const query = map({
4345
4362
  CompatibleRuntime: [, input.CompatibleRuntime],
4346
4363
  Marker: [, input.Marker],
@@ -4363,7 +4380,7 @@ var require_Aws_restJson1 = __commonJS({
4363
4380
  var serializeAws_restJson1ListLayerVersionsCommand = async (input, context) => {
4364
4381
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4365
4382
  const headers = {};
4366
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions`;
4383
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions`;
4367
4384
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
4368
4385
  const query = map({
4369
4386
  CompatibleRuntime: [, input.CompatibleRuntime],
@@ -4387,7 +4404,7 @@ var require_Aws_restJson1 = __commonJS({
4387
4404
  var serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = async (input, context) => {
4388
4405
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4389
4406
  const headers = {};
4390
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
4407
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
4391
4408
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4392
4409
  const query = map({
4393
4410
  List: [, "ALL"],
@@ -4410,7 +4427,7 @@ var require_Aws_restJson1 = __commonJS({
4410
4427
  var serializeAws_restJson1ListTagsCommand = async (input, context) => {
4411
4428
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4412
4429
  const headers = {};
4413
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-03-31/tags/{Resource}`;
4430
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-03-31/tags/{Resource}`;
4414
4431
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Resource", () => input.Resource, "{Resource}", false);
4415
4432
  let body;
4416
4433
  return new protocol_http_1.HttpRequest({
@@ -4427,7 +4444,7 @@ var require_Aws_restJson1 = __commonJS({
4427
4444
  var serializeAws_restJson1ListVersionsByFunctionCommand = async (input, context) => {
4428
4445
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4429
4446
  const headers = {};
4430
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/versions`;
4447
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/versions`;
4431
4448
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4432
4449
  const query = map({
4433
4450
  Marker: [, input.Marker],
@@ -4451,7 +4468,7 @@ var require_Aws_restJson1 = __commonJS({
4451
4468
  const headers = {
4452
4469
  "content-type": "application/json"
4453
4470
  };
4454
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions`;
4471
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions`;
4455
4472
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
4456
4473
  let body;
4457
4474
  body = JSON.stringify({
@@ -4481,7 +4498,7 @@ var require_Aws_restJson1 = __commonJS({
4481
4498
  const headers = {
4482
4499
  "content-type": "application/json"
4483
4500
  };
4484
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/versions`;
4501
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/versions`;
4485
4502
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4486
4503
  let body;
4487
4504
  body = JSON.stringify({
@@ -4505,7 +4522,7 @@ var require_Aws_restJson1 = __commonJS({
4505
4522
  const headers = {
4506
4523
  "content-type": "application/json"
4507
4524
  };
4508
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-06-30/functions/{FunctionName}/code-signing-config`;
4525
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-06-30/functions/{FunctionName}/code-signing-config`;
4509
4526
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4510
4527
  let body;
4511
4528
  body = JSON.stringify({
@@ -4527,7 +4544,7 @@ var require_Aws_restJson1 = __commonJS({
4527
4544
  const headers = {
4528
4545
  "content-type": "application/json"
4529
4546
  };
4530
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-10-31/functions/{FunctionName}/concurrency`;
4547
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-10-31/functions/{FunctionName}/concurrency`;
4531
4548
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4532
4549
  let body;
4533
4550
  body = JSON.stringify({
@@ -4551,7 +4568,7 @@ var require_Aws_restJson1 = __commonJS({
4551
4568
  const headers = {
4552
4569
  "content-type": "application/json"
4553
4570
  };
4554
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
4571
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
4555
4572
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4556
4573
  const query = map({
4557
4574
  Qualifier: [, input.Qualifier]
@@ -4581,7 +4598,7 @@ var require_Aws_restJson1 = __commonJS({
4581
4598
  const headers = {
4582
4599
  "content-type": "application/json"
4583
4600
  };
4584
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
4601
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;
4585
4602
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4586
4603
  const query = map({
4587
4604
  Qualifier: [, input.Qualifier]
@@ -4607,7 +4624,7 @@ var require_Aws_restJson1 = __commonJS({
4607
4624
  var serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input, context) => {
4608
4625
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4609
4626
  const headers = {};
4610
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}`;
4627
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}`;
4611
4628
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
4612
4629
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
4613
4630
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StatementId", () => input.StatementId, "{StatementId}", false);
@@ -4630,7 +4647,7 @@ var require_Aws_restJson1 = __commonJS({
4630
4647
  var serializeAws_restJson1RemovePermissionCommand = async (input, context) => {
4631
4648
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4632
4649
  const headers = {};
4633
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/policy/{StatementId}`;
4650
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/policy/{StatementId}`;
4634
4651
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4635
4652
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StatementId", () => input.StatementId, "{StatementId}", false);
4636
4653
  const query = map({
@@ -4655,7 +4672,7 @@ var require_Aws_restJson1 = __commonJS({
4655
4672
  const headers = {
4656
4673
  "content-type": "application/json"
4657
4674
  };
4658
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-03-31/tags/{Resource}`;
4675
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-03-31/tags/{Resource}`;
4659
4676
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Resource", () => input.Resource, "{Resource}", false);
4660
4677
  let body;
4661
4678
  body = JSON.stringify({
@@ -4675,7 +4692,7 @@ var require_Aws_restJson1 = __commonJS({
4675
4692
  var serializeAws_restJson1UntagResourceCommand = async (input, context) => {
4676
4693
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4677
4694
  const headers = {};
4678
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-03-31/tags/{Resource}`;
4695
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2017-03-31/tags/{Resource}`;
4679
4696
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Resource", () => input.Resource, "{Resource}", false);
4680
4697
  const query = map({
4681
4698
  tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)]
@@ -4698,7 +4715,7 @@ var require_Aws_restJson1 = __commonJS({
4698
4715
  const headers = {
4699
4716
  "content-type": "application/json"
4700
4717
  };
4701
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;
4718
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;
4702
4719
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4703
4720
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
4704
4721
  let body;
@@ -4726,7 +4743,7 @@ var require_Aws_restJson1 = __commonJS({
4726
4743
  const headers = {
4727
4744
  "content-type": "application/json"
4728
4745
  };
4729
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;
4746
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;
4730
4747
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
4731
4748
  let body;
4732
4749
  body = JSON.stringify({
@@ -4754,7 +4771,7 @@ var require_Aws_restJson1 = __commonJS({
4754
4771
  const headers = {
4755
4772
  "content-type": "application/json"
4756
4773
  };
4757
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings/{UUID}`;
4774
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/event-source-mappings/{UUID}`;
4758
4775
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UUID", () => input.UUID, "{UUID}", false);
4759
4776
  let body;
4760
4777
  body = JSON.stringify({
@@ -4798,7 +4815,7 @@ var require_Aws_restJson1 = __commonJS({
4798
4815
  const headers = {
4799
4816
  "content-type": "application/json"
4800
4817
  };
4801
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/code`;
4818
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/code`;
4802
4819
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4803
4820
  let body;
4804
4821
  body = JSON.stringify({
@@ -4830,7 +4847,7 @@ var require_Aws_restJson1 = __commonJS({
4830
4847
  const headers = {
4831
4848
  "content-type": "application/json"
4832
4849
  };
4833
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/configuration`;
4850
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2015-03-31/functions/{FunctionName}/configuration`;
4834
4851
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4835
4852
  let body;
4836
4853
  body = JSON.stringify({
@@ -4875,7 +4892,7 @@ var require_Aws_restJson1 = __commonJS({
4875
4892
  const headers = {
4876
4893
  "content-type": "application/json"
4877
4894
  };
4878
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
4895
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;
4879
4896
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4880
4897
  const query = map({
4881
4898
  Qualifier: [, input.Qualifier]
@@ -4905,7 +4922,7 @@ var require_Aws_restJson1 = __commonJS({
4905
4922
  const headers = {
4906
4923
  "content-type": "application/json"
4907
4924
  };
4908
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
4925
+ let resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/2021-10-31/functions/{FunctionName}/url`;
4909
4926
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
4910
4927
  const query = map({
4911
4928
  Qualifier: [, input.Qualifier]
@@ -9364,10 +9381,8 @@ var require_Aws_restJson1 = __commonJS({
9364
9381
  if (value === null) {
9365
9382
  return acc;
9366
9383
  }
9367
- return {
9368
- ...acc,
9369
- [key]: (0, smithy_client_1.serializeFloat)(value)
9370
- };
9384
+ acc[key] = (0, smithy_client_1.serializeFloat)(value);
9385
+ return acc;
9371
9386
  }, {});
9372
9387
  };
9373
9388
  var serializeAws_restJson1AliasRoutingConfiguration = (input, context) => {
@@ -9458,10 +9473,8 @@ var require_Aws_restJson1 = __commonJS({
9458
9473
  if (value === null) {
9459
9474
  return acc;
9460
9475
  }
9461
- return {
9462
- ...acc,
9463
- [key]: serializeAws_restJson1EndpointLists(value, context)
9464
- };
9476
+ acc[key] = serializeAws_restJson1EndpointLists(value, context);
9477
+ return acc;
9465
9478
  }, {});
9466
9479
  };
9467
9480
  var serializeAws_restJson1Environment = (input, context) => {
@@ -9474,10 +9487,8 @@ var require_Aws_restJson1 = __commonJS({
9474
9487
  if (value === null) {
9475
9488
  return acc;
9476
9489
  }
9477
- return {
9478
- ...acc,
9479
- [key]: value
9480
- };
9490
+ acc[key] = value;
9491
+ return acc;
9481
9492
  }, {});
9482
9493
  };
9483
9494
  var serializeAws_restJson1EphemeralStorage = (input, context) => {
@@ -9611,10 +9622,8 @@ var require_Aws_restJson1 = __commonJS({
9611
9622
  if (value === null) {
9612
9623
  return acc;
9613
9624
  }
9614
- return {
9615
- ...acc,
9616
- [key]: value
9617
- };
9625
+ acc[key] = value;
9626
+ return acc;
9618
9627
  }, {});
9619
9628
  };
9620
9629
  var serializeAws_restJson1Topics = (input, context) => {
@@ -9655,10 +9664,8 @@ var require_Aws_restJson1 = __commonJS({
9655
9664
  if (value === null) {
9656
9665
  return acc;
9657
9666
  }
9658
- return {
9659
- ...acc,
9660
- [key]: (0, smithy_client_1.limitedParseDouble)(value)
9661
- };
9667
+ acc[key] = (0, smithy_client_1.limitedParseDouble)(value);
9668
+ return acc;
9662
9669
  }, {});
9663
9670
  };
9664
9671
  var deserializeAws_restJson1AliasConfiguration = (output, context) => {
@@ -9804,10 +9811,8 @@ var require_Aws_restJson1 = __commonJS({
9804
9811
  if (value === null) {
9805
9812
  return acc;
9806
9813
  }
9807
- return {
9808
- ...acc,
9809
- [key]: deserializeAws_restJson1EndpointLists(value, context)
9810
- };
9814
+ acc[key] = deserializeAws_restJson1EndpointLists(value, context);
9815
+ return acc;
9811
9816
  }, {});
9812
9817
  };
9813
9818
  var deserializeAws_restJson1EnvironmentError = (output, context) => {
@@ -9827,10 +9832,8 @@ var require_Aws_restJson1 = __commonJS({
9827
9832
  if (value === null) {
9828
9833
  return acc;
9829
9834
  }
9830
- return {
9831
- ...acc,
9832
- [key]: (0, smithy_client_1.expectString)(value)
9833
- };
9835
+ acc[key] = (0, smithy_client_1.expectString)(value);
9836
+ return acc;
9834
9837
  }, {});
9835
9838
  };
9836
9839
  var deserializeAws_restJson1EphemeralStorage = (output, context) => {
@@ -10214,10 +10217,8 @@ var require_Aws_restJson1 = __commonJS({
10214
10217
  if (value === null) {
10215
10218
  return acc;
10216
10219
  }
10217
- return {
10218
- ...acc,
10219
- [key]: (0, smithy_client_1.expectString)(value)
10220
- };
10220
+ acc[key] = (0, smithy_client_1.expectString)(value);
10221
+ return acc;
10221
10222
  }, {});
10222
10223
  };
10223
10224
  var deserializeAws_restJson1Topics = (output, context) => {
@@ -10241,15 +10242,12 @@ var require_Aws_restJson1 = __commonJS({
10241
10242
  VpcId: (0, smithy_client_1.expectString)(output.VpcId)
10242
10243
  };
10243
10244
  };
10244
- var deserializeMetadata = (output) => {
10245
- var _a, _b;
10246
- return {
10247
- httpStatusCode: output.statusCode,
10248
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
10249
- extendedRequestId: output.headers["x-amz-id-2"],
10250
- cfId: output.headers["x-amz-cf-id"]
10251
- };
10252
- };
10245
+ var deserializeMetadata = (output) => ({
10246
+ httpStatusCode: output.statusCode,
10247
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
10248
+ extendedRequestId: output.headers["x-amz-id-2"],
10249
+ cfId: output.headers["x-amz-cf-id"]
10250
+ });
10253
10251
  var collectBody = (streamBody = new Uint8Array(), context) => {
10254
10252
  if (streamBody instanceof Uint8Array) {
10255
10253
  return Promise.resolve(streamBody);
@@ -10265,9 +10263,8 @@ var require_Aws_restJson1 = __commonJS({
10265
10263
  return {};
10266
10264
  });
10267
10265
  var parseErrorBody = async (errorBody, context) => {
10268
- var _a;
10269
10266
  const value = await parseBody(errorBody, context);
10270
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
10267
+ value.message = value.message ?? value.Message;
10271
10268
  return value;
10272
10269
  };
10273
10270
  var loadRestJsonErrorCode = (output, data) => {
@@ -16288,11 +16285,10 @@ var require_EndpointParameters = __commonJS({
16288
16285
  Object.defineProperty(exports, "__esModule", { value: true });
16289
16286
  exports.resolveClientEndpointParameters = void 0;
16290
16287
  var resolveClientEndpointParameters = (options) => {
16291
- var _a, _b;
16292
16288
  return {
16293
16289
  ...options,
16294
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
16295
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
16290
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
16291
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
16296
16292
  defaultSigningName: "lambda"
16297
16293
  };
16298
16294
  };
@@ -16306,7 +16302,7 @@ var require_package = __commonJS({
16306
16302
  module2.exports = {
16307
16303
  name: "@aws-sdk/client-lambda",
16308
16304
  description: "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
16309
- version: "3.199.0",
16305
+ version: "3.213.0",
16310
16306
  scripts: {
16311
16307
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
16312
16308
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -16324,46 +16320,45 @@ var require_package = __commonJS({
16324
16320
  dependencies: {
16325
16321
  "@aws-crypto/sha256-browser": "2.0.0",
16326
16322
  "@aws-crypto/sha256-js": "2.0.0",
16327
- "@aws-sdk/client-sts": "3.199.0",
16328
- "@aws-sdk/config-resolver": "3.198.0",
16329
- "@aws-sdk/credential-provider-node": "3.199.0",
16330
- "@aws-sdk/fetch-http-handler": "3.199.0",
16331
- "@aws-sdk/hash-node": "3.198.0",
16332
- "@aws-sdk/invalid-dependency": "3.198.0",
16333
- "@aws-sdk/middleware-content-length": "3.199.0",
16334
- "@aws-sdk/middleware-endpoint": "3.198.0",
16335
- "@aws-sdk/middleware-host-header": "3.198.0",
16336
- "@aws-sdk/middleware-logger": "3.198.0",
16337
- "@aws-sdk/middleware-recursion-detection": "3.198.0",
16338
- "@aws-sdk/middleware-retry": "3.198.0",
16339
- "@aws-sdk/middleware-serde": "3.198.0",
16340
- "@aws-sdk/middleware-signing": "3.198.0",
16341
- "@aws-sdk/middleware-stack": "3.198.0",
16342
- "@aws-sdk/middleware-user-agent": "3.198.0",
16343
- "@aws-sdk/node-config-provider": "3.198.0",
16344
- "@aws-sdk/node-http-handler": "3.199.0",
16345
- "@aws-sdk/protocol-http": "3.198.0",
16346
- "@aws-sdk/smithy-client": "3.198.0",
16347
- "@aws-sdk/types": "3.198.0",
16348
- "@aws-sdk/url-parser": "3.198.0",
16349
- "@aws-sdk/util-base64-browser": "3.188.0",
16350
- "@aws-sdk/util-base64-node": "3.188.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",
16351
16346
  "@aws-sdk/util-body-length-browser": "3.188.0",
16352
- "@aws-sdk/util-body-length-node": "3.188.0",
16353
- "@aws-sdk/util-defaults-mode-browser": "3.198.0",
16354
- "@aws-sdk/util-defaults-mode-node": "3.198.0",
16355
- "@aws-sdk/util-endpoints": "3.198.0",
16356
- "@aws-sdk/util-user-agent-browser": "3.198.0",
16357
- "@aws-sdk/util-user-agent-node": "3.198.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",
16358
16353
  "@aws-sdk/util-utf8-browser": "3.188.0",
16359
- "@aws-sdk/util-utf8-node": "3.199.0",
16360
- "@aws-sdk/util-waiter": "3.198.0",
16354
+ "@aws-sdk/util-utf8-node": "3.208.0",
16355
+ "@aws-sdk/util-waiter": "3.212.0",
16361
16356
  tslib: "^2.3.1"
16362
16357
  },
16363
16358
  devDependencies: {
16364
- "@aws-sdk/service-client-documentation-generator": "3.188.0",
16365
- "@tsconfig/recommended": "1.0.1",
16366
- "@types/node": "^12.7.5",
16359
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
16360
+ "@tsconfig/node14": "1.0.3",
16361
+ "@types/node": "^14.14.31",
16367
16362
  concurrently: "7.0.0",
16368
16363
  "downlevel-dts": "0.10.1",
16369
16364
  rimraf: "3.0.2",
@@ -16376,7 +16371,7 @@ var require_package = __commonJS({
16376
16371
  }
16377
16372
  },
16378
16373
  engines: {
16379
- node: ">=12.0.0"
16374
+ node: ">=14.0.0"
16380
16375
  },
16381
16376
  typesVersions: {
16382
16377
  "<4.0": {
@@ -18678,6 +18673,7 @@ var require_Aws_query = __commonJS({
18678
18673
  return (0, smithy_client_1.decorateServiceException)(exception, body);
18679
18674
  };
18680
18675
  var serializeAws_queryAssumeRoleRequest = (input, context) => {
18676
+ var _a, _b, _c;
18681
18677
  const entries = {};
18682
18678
  if (input.RoleArn != null) {
18683
18679
  entries["RoleArn"] = input.RoleArn;
@@ -18687,6 +18683,9 @@ var require_Aws_query = __commonJS({
18687
18683
  }
18688
18684
  if (input.PolicyArns != null) {
18689
18685
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
18686
+ if (((_a = input.PolicyArns) == null ? void 0 : _a.length) === 0) {
18687
+ entries.PolicyArns = [];
18688
+ }
18690
18689
  Object.entries(memberEntries).forEach(([key, value]) => {
18691
18690
  const loc = `PolicyArns.${key}`;
18692
18691
  entries[loc] = value;
@@ -18700,6 +18699,9 @@ var require_Aws_query = __commonJS({
18700
18699
  }
18701
18700
  if (input.Tags != null) {
18702
18701
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
18702
+ if (((_b = input.Tags) == null ? void 0 : _b.length) === 0) {
18703
+ entries.Tags = [];
18704
+ }
18703
18705
  Object.entries(memberEntries).forEach(([key, value]) => {
18704
18706
  const loc = `Tags.${key}`;
18705
18707
  entries[loc] = value;
@@ -18707,6 +18709,9 @@ var require_Aws_query = __commonJS({
18707
18709
  }
18708
18710
  if (input.TransitiveTagKeys != null) {
18709
18711
  const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
18712
+ if (((_c = input.TransitiveTagKeys) == null ? void 0 : _c.length) === 0) {
18713
+ entries.TransitiveTagKeys = [];
18714
+ }
18710
18715
  Object.entries(memberEntries).forEach(([key, value]) => {
18711
18716
  const loc = `TransitiveTagKeys.${key}`;
18712
18717
  entries[loc] = value;
@@ -18727,6 +18732,7 @@ var require_Aws_query = __commonJS({
18727
18732
  return entries;
18728
18733
  };
18729
18734
  var serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
18735
+ var _a;
18730
18736
  const entries = {};
18731
18737
  if (input.RoleArn != null) {
18732
18738
  entries["RoleArn"] = input.RoleArn;
@@ -18739,6 +18745,9 @@ var require_Aws_query = __commonJS({
18739
18745
  }
18740
18746
  if (input.PolicyArns != null) {
18741
18747
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
18748
+ if (((_a = input.PolicyArns) == null ? void 0 : _a.length) === 0) {
18749
+ entries.PolicyArns = [];
18750
+ }
18742
18751
  Object.entries(memberEntries).forEach(([key, value]) => {
18743
18752
  const loc = `PolicyArns.${key}`;
18744
18753
  entries[loc] = value;
@@ -18753,6 +18762,7 @@ var require_Aws_query = __commonJS({
18753
18762
  return entries;
18754
18763
  };
18755
18764
  var serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
18765
+ var _a;
18756
18766
  const entries = {};
18757
18767
  if (input.RoleArn != null) {
18758
18768
  entries["RoleArn"] = input.RoleArn;
@@ -18768,6 +18778,9 @@ var require_Aws_query = __commonJS({
18768
18778
  }
18769
18779
  if (input.PolicyArns != null) {
18770
18780
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
18781
+ if (((_a = input.PolicyArns) == null ? void 0 : _a.length) === 0) {
18782
+ entries.PolicyArns = [];
18783
+ }
18771
18784
  Object.entries(memberEntries).forEach(([key, value]) => {
18772
18785
  const loc = `PolicyArns.${key}`;
18773
18786
  entries[loc] = value;
@@ -18800,6 +18813,7 @@ var require_Aws_query = __commonJS({
18800
18813
  return entries;
18801
18814
  };
18802
18815
  var serializeAws_queryGetFederationTokenRequest = (input, context) => {
18816
+ var _a, _b;
18803
18817
  const entries = {};
18804
18818
  if (input.Name != null) {
18805
18819
  entries["Name"] = input.Name;
@@ -18809,6 +18823,9 @@ var require_Aws_query = __commonJS({
18809
18823
  }
18810
18824
  if (input.PolicyArns != null) {
18811
18825
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
18826
+ if (((_a = input.PolicyArns) == null ? void 0 : _a.length) === 0) {
18827
+ entries.PolicyArns = [];
18828
+ }
18812
18829
  Object.entries(memberEntries).forEach(([key, value]) => {
18813
18830
  const loc = `PolicyArns.${key}`;
18814
18831
  entries[loc] = value;
@@ -18819,6 +18836,9 @@ var require_Aws_query = __commonJS({
18819
18836
  }
18820
18837
  if (input.Tags != null) {
18821
18838
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
18839
+ if (((_b = input.Tags) == null ? void 0 : _b.length) === 0) {
18840
+ entries.Tags = [];
18841
+ }
18822
18842
  Object.entries(memberEntries).forEach(([key, value]) => {
18823
18843
  const loc = `Tags.${key}`;
18824
18844
  entries[loc] = value;
@@ -19173,15 +19193,12 @@ var require_Aws_query = __commonJS({
19173
19193
  }
19174
19194
  return contents;
19175
19195
  };
19176
- var deserializeMetadata = (output) => {
19177
- var _a, _b;
19178
- return {
19179
- httpStatusCode: output.statusCode,
19180
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
19181
- extendedRequestId: output.headers["x-amz-id-2"],
19182
- cfId: output.headers["x-amz-cf-id"]
19183
- };
19184
- };
19196
+ var deserializeMetadata = (output) => ({
19197
+ httpStatusCode: output.statusCode,
19198
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
19199
+ extendedRequestId: output.headers["x-amz-id-2"],
19200
+ cfId: output.headers["x-amz-cf-id"]
19201
+ });
19185
19202
  var collectBody = (streamBody = new Uint8Array(), context) => {
19186
19203
  if (streamBody instanceof Uint8Array) {
19187
19204
  return Promise.resolve(streamBody);
@@ -19233,10 +19250,9 @@ var require_Aws_query = __commonJS({
19233
19250
  return {};
19234
19251
  });
19235
19252
  var parseErrorBody = async (errorBody, context) => {
19236
- var _a;
19237
19253
  const value = await parseBody(errorBody, context);
19238
19254
  if (value.Error) {
19239
- value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
19255
+ value.Error.message = value.Error.message ?? value.Error.Message;
19240
19256
  }
19241
19257
  return value;
19242
19258
  };
@@ -19710,12 +19726,11 @@ var require_EndpointParameters2 = __commonJS({
19710
19726
  Object.defineProperty(exports, "__esModule", { value: true });
19711
19727
  exports.resolveClientEndpointParameters = void 0;
19712
19728
  var resolveClientEndpointParameters = (options) => {
19713
- var _a, _b, _c;
19714
19729
  return {
19715
19730
  ...options,
19716
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
19717
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
19718
- useGlobalEndpoint: (_c = options.useGlobalEndpoint) !== null && _c !== void 0 ? _c : false,
19731
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
19732
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
19733
+ useGlobalEndpoint: options.useGlobalEndpoint ?? false,
19719
19734
  defaultSigningName: "sts"
19720
19735
  };
19721
19736
  };
@@ -19729,7 +19744,7 @@ var require_package2 = __commonJS({
19729
19744
  module2.exports = {
19730
19745
  name: "@aws-sdk/client-sts",
19731
19746
  description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
19732
- version: "3.199.0",
19747
+ version: "3.213.0",
19733
19748
  scripts: {
19734
19749
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
19735
19750
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19749,46 +19764,45 @@ var require_package2 = __commonJS({
19749
19764
  dependencies: {
19750
19765
  "@aws-crypto/sha256-browser": "2.0.0",
19751
19766
  "@aws-crypto/sha256-js": "2.0.0",
19752
- "@aws-sdk/config-resolver": "3.198.0",
19753
- "@aws-sdk/credential-provider-node": "3.199.0",
19754
- "@aws-sdk/fetch-http-handler": "3.199.0",
19755
- "@aws-sdk/hash-node": "3.198.0",
19756
- "@aws-sdk/invalid-dependency": "3.198.0",
19757
- "@aws-sdk/middleware-content-length": "3.199.0",
19758
- "@aws-sdk/middleware-endpoint": "3.198.0",
19759
- "@aws-sdk/middleware-host-header": "3.198.0",
19760
- "@aws-sdk/middleware-logger": "3.198.0",
19761
- "@aws-sdk/middleware-recursion-detection": "3.198.0",
19762
- "@aws-sdk/middleware-retry": "3.198.0",
19763
- "@aws-sdk/middleware-sdk-sts": "3.199.0",
19764
- "@aws-sdk/middleware-serde": "3.198.0",
19765
- "@aws-sdk/middleware-signing": "3.198.0",
19766
- "@aws-sdk/middleware-stack": "3.198.0",
19767
- "@aws-sdk/middleware-user-agent": "3.198.0",
19768
- "@aws-sdk/node-config-provider": "3.198.0",
19769
- "@aws-sdk/node-http-handler": "3.199.0",
19770
- "@aws-sdk/protocol-http": "3.198.0",
19771
- "@aws-sdk/smithy-client": "3.198.0",
19772
- "@aws-sdk/types": "3.198.0",
19773
- "@aws-sdk/url-parser": "3.198.0",
19774
- "@aws-sdk/util-base64-browser": "3.188.0",
19775
- "@aws-sdk/util-base64-node": "3.188.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",
19776
19790
  "@aws-sdk/util-body-length-browser": "3.188.0",
19777
- "@aws-sdk/util-body-length-node": "3.188.0",
19778
- "@aws-sdk/util-defaults-mode-browser": "3.198.0",
19779
- "@aws-sdk/util-defaults-mode-node": "3.198.0",
19780
- "@aws-sdk/util-endpoints": "3.198.0",
19781
- "@aws-sdk/util-user-agent-browser": "3.198.0",
19782
- "@aws-sdk/util-user-agent-node": "3.198.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",
19783
19797
  "@aws-sdk/util-utf8-browser": "3.188.0",
19784
- "@aws-sdk/util-utf8-node": "3.199.0",
19798
+ "@aws-sdk/util-utf8-node": "3.208.0",
19785
19799
  "fast-xml-parser": "4.0.11",
19786
19800
  tslib: "^2.3.1"
19787
19801
  },
19788
19802
  devDependencies: {
19789
- "@aws-sdk/service-client-documentation-generator": "3.188.0",
19790
- "@tsconfig/recommended": "1.0.1",
19791
- "@types/node": "^12.7.5",
19803
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
19804
+ "@tsconfig/node14": "1.0.3",
19805
+ "@types/node": "^14.14.31",
19792
19806
  concurrently: "7.0.0",
19793
19807
  "downlevel-dts": "0.10.1",
19794
19808
  rimraf: "3.0.2",
@@ -19801,7 +19815,7 @@ var require_package2 = __commonJS({
19801
19815
  }
19802
19816
  },
19803
19817
  engines: {
19804
- node: ">=12.0.0"
19818
+ node: ">=14.0.0"
19805
19819
  },
19806
19820
  typesVersions: {
19807
19821
  "<4.0": {
@@ -19999,9 +20013,9 @@ var require_getSSOTokenFilepath = __commonJS({
19999
20013
  var crypto_1 = require("crypto");
20000
20014
  var path_1 = require("path");
20001
20015
  var getHomeDir_1 = require_getHomeDir();
20002
- var getSSOTokenFilepath = (ssoStartUrl) => {
20016
+ var getSSOTokenFilepath = (id) => {
20003
20017
  const hasher = (0, crypto_1.createHash)("sha1");
20004
- const cacheName = hasher.update(ssoStartUrl).digest("hex");
20018
+ const cacheName = hasher.update(id).digest("hex");
20005
20019
  return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`);
20006
20020
  };
20007
20021
  exports.getSSOTokenFilepath = getSSOTokenFilepath;
@@ -20017,8 +20031,8 @@ var require_getSSOTokenFromFile = __commonJS({
20017
20031
  var fs_1 = require("fs");
20018
20032
  var getSSOTokenFilepath_1 = require_getSSOTokenFilepath();
20019
20033
  var { readFile } = fs_1.promises;
20020
- var getSSOTokenFromFile = async (ssoStartUrl) => {
20021
- const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl);
20034
+ var getSSOTokenFromFile = async (id) => {
20035
+ const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
20022
20036
  const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
20023
20037
  return JSON.parse(ssoTokenText);
20024
20038
  };
@@ -20836,7 +20850,7 @@ var require_isSsoProfile = __commonJS({
20836
20850
  "use strict";
20837
20851
  Object.defineProperty(exports, "__esModule", { value: true });
20838
20852
  exports.isSsoProfile = void 0;
20839
- 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");
20840
20854
  exports.isSsoProfile = isSsoProfile;
20841
20855
  }
20842
20856
  });
@@ -20983,7 +20997,7 @@ var require_Aws_restJson12 = __commonJS({
20983
20997
  const headers = map({}, isSerializableHeaderValue, {
20984
20998
  "x-amz-sso_bearer_token": input.accessToken
20985
20999
  });
20986
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/federation/credentials`;
21000
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/federation/credentials`;
20987
21001
  const query = map({
20988
21002
  role_name: [, input.roleName],
20989
21003
  account_id: [, input.accountId]
@@ -21006,7 +21020,7 @@ var require_Aws_restJson12 = __commonJS({
21006
21020
  const headers = map({}, isSerializableHeaderValue, {
21007
21021
  "x-amz-sso_bearer_token": input.accessToken
21008
21022
  });
21009
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/roles`;
21023
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/roles`;
21010
21024
  const query = map({
21011
21025
  next_token: [, input.nextToken],
21012
21026
  max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -21030,7 +21044,7 @@ var require_Aws_restJson12 = __commonJS({
21030
21044
  const headers = map({}, isSerializableHeaderValue, {
21031
21045
  "x-amz-sso_bearer_token": input.accessToken
21032
21046
  });
21033
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/accounts`;
21047
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/accounts`;
21034
21048
  const query = map({
21035
21049
  next_token: [, input.nextToken],
21036
21050
  max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()]
@@ -21053,7 +21067,7 @@ var require_Aws_restJson12 = __commonJS({
21053
21067
  const headers = map({}, isSerializableHeaderValue, {
21054
21068
  "x-amz-sso_bearer_token": input.accessToken
21055
21069
  });
21056
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/logout`;
21070
+ const resolvedPath = `${(basePath == null ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/logout`;
21057
21071
  let body;
21058
21072
  return new protocol_http_1.HttpRequest({
21059
21073
  protocol,
@@ -21326,15 +21340,12 @@ var require_Aws_restJson12 = __commonJS({
21326
21340
  });
21327
21341
  return retVal;
21328
21342
  };
21329
- var deserializeMetadata = (output) => {
21330
- var _a, _b;
21331
- return {
21332
- httpStatusCode: output.statusCode,
21333
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
21334
- extendedRequestId: output.headers["x-amz-id-2"],
21335
- cfId: output.headers["x-amz-cf-id"]
21336
- };
21337
- };
21343
+ var deserializeMetadata = (output) => ({
21344
+ httpStatusCode: output.statusCode,
21345
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
21346
+ extendedRequestId: output.headers["x-amz-id-2"],
21347
+ cfId: output.headers["x-amz-cf-id"]
21348
+ });
21338
21349
  var collectBody = (streamBody = new Uint8Array(), context) => {
21339
21350
  if (streamBody instanceof Uint8Array) {
21340
21351
  return Promise.resolve(streamBody);
@@ -21350,9 +21361,8 @@ var require_Aws_restJson12 = __commonJS({
21350
21361
  return {};
21351
21362
  });
21352
21363
  var parseErrorBody = async (errorBody, context) => {
21353
- var _a;
21354
21364
  const value = await parseBody(errorBody, context);
21355
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
21365
+ value.message = value.message ?? value.Message;
21356
21366
  return value;
21357
21367
  };
21358
21368
  var loadRestJsonErrorCode = (output, data) => {
@@ -21602,11 +21612,10 @@ var require_EndpointParameters3 = __commonJS({
21602
21612
  Object.defineProperty(exports, "__esModule", { value: true });
21603
21613
  exports.resolveClientEndpointParameters = void 0;
21604
21614
  var resolveClientEndpointParameters = (options) => {
21605
- var _a, _b;
21606
21615
  return {
21607
21616
  ...options,
21608
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
21609
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
21617
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
21618
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
21610
21619
  defaultSigningName: "awsssoportal"
21611
21620
  };
21612
21621
  };
@@ -21620,7 +21629,7 @@ var require_package3 = __commonJS({
21620
21629
  module2.exports = {
21621
21630
  name: "@aws-sdk/client-sso",
21622
21631
  description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
21623
- version: "3.199.0",
21632
+ version: "3.212.0",
21624
21633
  scripts: {
21625
21634
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
21626
21635
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21638,42 +21647,41 @@ var require_package3 = __commonJS({
21638
21647
  dependencies: {
21639
21648
  "@aws-crypto/sha256-browser": "2.0.0",
21640
21649
  "@aws-crypto/sha256-js": "2.0.0",
21641
- "@aws-sdk/config-resolver": "3.198.0",
21642
- "@aws-sdk/fetch-http-handler": "3.199.0",
21643
- "@aws-sdk/hash-node": "3.198.0",
21644
- "@aws-sdk/invalid-dependency": "3.198.0",
21645
- "@aws-sdk/middleware-content-length": "3.199.0",
21646
- "@aws-sdk/middleware-endpoint": "3.198.0",
21647
- "@aws-sdk/middleware-host-header": "3.198.0",
21648
- "@aws-sdk/middleware-logger": "3.198.0",
21649
- "@aws-sdk/middleware-recursion-detection": "3.198.0",
21650
- "@aws-sdk/middleware-retry": "3.198.0",
21651
- "@aws-sdk/middleware-serde": "3.198.0",
21652
- "@aws-sdk/middleware-stack": "3.198.0",
21653
- "@aws-sdk/middleware-user-agent": "3.198.0",
21654
- "@aws-sdk/node-config-provider": "3.198.0",
21655
- "@aws-sdk/node-http-handler": "3.199.0",
21656
- "@aws-sdk/protocol-http": "3.198.0",
21657
- "@aws-sdk/smithy-client": "3.198.0",
21658
- "@aws-sdk/types": "3.198.0",
21659
- "@aws-sdk/url-parser": "3.198.0",
21660
- "@aws-sdk/util-base64-browser": "3.188.0",
21661
- "@aws-sdk/util-base64-node": "3.188.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",
21662
21670
  "@aws-sdk/util-body-length-browser": "3.188.0",
21663
- "@aws-sdk/util-body-length-node": "3.188.0",
21664
- "@aws-sdk/util-defaults-mode-browser": "3.198.0",
21665
- "@aws-sdk/util-defaults-mode-node": "3.198.0",
21666
- "@aws-sdk/util-endpoints": "3.198.0",
21667
- "@aws-sdk/util-user-agent-browser": "3.198.0",
21668
- "@aws-sdk/util-user-agent-node": "3.198.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",
21669
21677
  "@aws-sdk/util-utf8-browser": "3.188.0",
21670
- "@aws-sdk/util-utf8-node": "3.199.0",
21678
+ "@aws-sdk/util-utf8-node": "3.208.0",
21671
21679
  tslib: "^2.3.1"
21672
21680
  },
21673
21681
  devDependencies: {
21674
- "@aws-sdk/service-client-documentation-generator": "3.188.0",
21675
- "@tsconfig/recommended": "1.0.1",
21676
- "@types/node": "^12.7.5",
21682
+ "@aws-sdk/service-client-documentation-generator": "3.208.0",
21683
+ "@tsconfig/node14": "1.0.3",
21684
+ "@types/node": "^14.14.31",
21677
21685
  concurrently: "7.0.0",
21678
21686
  "downlevel-dts": "0.10.1",
21679
21687
  rimraf: "3.0.2",
@@ -21686,7 +21694,7 @@ var require_package3 = __commonJS({
21686
21694
  }
21687
21695
  },
21688
21696
  engines: {
21689
- node: ">=12.0.0"
21697
+ node: ">=14.0.0"
21690
21698
  },
21691
21699
  typesVersions: {
21692
21700
  "<4.0": {
@@ -22221,32 +22229,6 @@ var require_dist_cjs32 = __commonJS({
22221
22229
  }
22222
22230
  });
22223
22231
 
22224
- // node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js
22225
- var require_dist_cjs33 = __commonJS({
22226
- "node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js"(exports) {
22227
- "use strict";
22228
- Object.defineProperty(exports, "__esModule", { value: true });
22229
- exports.toBase64 = exports.fromBase64 = void 0;
22230
- var util_buffer_from_1 = require_dist_cjs29();
22231
- var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
22232
- function fromBase64(input) {
22233
- if (input.length * 3 % 4 !== 0) {
22234
- throw new TypeError(`Incorrect padding on base64 string.`);
22235
- }
22236
- if (!BASE64_REGEX.exec(input)) {
22237
- throw new TypeError(`Invalid base64 string.`);
22238
- }
22239
- const buffer = (0, util_buffer_from_1.fromString)(input, "base64");
22240
- return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
22241
- }
22242
- exports.fromBase64 = fromBase64;
22243
- function toBase64(input) {
22244
- return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64");
22245
- }
22246
- exports.toBase64 = toBase64;
22247
- }
22248
- });
22249
-
22250
22232
  // node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js
22251
22233
  var require_calculateBodyLength = __commonJS({
22252
22234
  "node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js"(exports) {
@@ -22276,7 +22258,7 @@ var require_calculateBodyLength = __commonJS({
22276
22258
  });
22277
22259
 
22278
22260
  // node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js
22279
- var require_dist_cjs34 = __commonJS({
22261
+ var require_dist_cjs33 = __commonJS({
22280
22262
  "node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js"(exports) {
22281
22263
  "use strict";
22282
22264
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -22306,7 +22288,7 @@ var require_is_crt_available = __commonJS({
22306
22288
  });
22307
22289
 
22308
22290
  // node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
22309
- var require_dist_cjs35 = __commonJS({
22291
+ var require_dist_cjs34 = __commonJS({
22310
22292
  "node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports) {
22311
22293
  "use strict";
22312
22294
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -22353,7 +22335,7 @@ var require_dist_cjs35 = __commonJS({
22353
22335
  });
22354
22336
 
22355
22337
  // node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js
22356
- var require_dist_cjs36 = __commonJS({
22338
+ var require_dist_cjs35 = __commonJS({
22357
22339
  "node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js"(exports) {
22358
22340
  "use strict";
22359
22341
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -22369,109 +22351,228 @@ var require_dist_cjs36 = __commonJS({
22369
22351
  }
22370
22352
  });
22371
22353
 
22354
+ // node_modules/@aws-sdk/util-base64/dist-cjs/fromBase64.js
22355
+ var require_fromBase64 = __commonJS({
22356
+ "node_modules/@aws-sdk/util-base64/dist-cjs/fromBase64.js"(exports) {
22357
+ "use strict";
22358
+ Object.defineProperty(exports, "__esModule", { value: true });
22359
+ exports.fromBase64 = void 0;
22360
+ var util_buffer_from_1 = require_dist_cjs29();
22361
+ var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
22362
+ var fromBase64 = (input) => {
22363
+ if (input.length * 3 % 4 !== 0) {
22364
+ throw new TypeError(`Incorrect padding on base64 string.`);
22365
+ }
22366
+ if (!BASE64_REGEX.exec(input)) {
22367
+ throw new TypeError(`Invalid base64 string.`);
22368
+ }
22369
+ const buffer = (0, util_buffer_from_1.fromString)(input, "base64");
22370
+ return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
22371
+ };
22372
+ exports.fromBase64 = fromBase64;
22373
+ }
22374
+ });
22375
+
22376
+ // node_modules/@aws-sdk/util-base64/dist-cjs/toBase64.js
22377
+ var require_toBase64 = __commonJS({
22378
+ "node_modules/@aws-sdk/util-base64/dist-cjs/toBase64.js"(exports) {
22379
+ "use strict";
22380
+ Object.defineProperty(exports, "__esModule", { value: true });
22381
+ exports.toBase64 = void 0;
22382
+ var util_buffer_from_1 = require_dist_cjs29();
22383
+ var toBase64 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64");
22384
+ exports.toBase64 = toBase64;
22385
+ }
22386
+ });
22387
+
22388
+ // node_modules/@aws-sdk/util-base64/dist-cjs/index.js
22389
+ var require_dist_cjs36 = __commonJS({
22390
+ "node_modules/@aws-sdk/util-base64/dist-cjs/index.js"(exports) {
22391
+ "use strict";
22392
+ Object.defineProperty(exports, "__esModule", { value: true });
22393
+ var tslib_1 = require_tslib();
22394
+ tslib_1.__exportStar(require_fromBase64(), exports);
22395
+ tslib_1.__exportStar(require_toBase64(), exports);
22396
+ }
22397
+ });
22398
+
22372
22399
  // node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json
22373
22400
  var require_partitions = __commonJS({
22374
22401
  "node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json"(exports, module2) {
22375
22402
  module2.exports = {
22376
- version: "1.1",
22377
- partitions: [
22378
- {
22379
- id: "aws",
22380
- regionRegex: "^(us|eu|ap|sa|ca|me|af)-\\w+-\\d+$",
22381
- regions: {
22382
- "af-south-1": {},
22383
- "af-east-1": {},
22384
- "ap-northeast-1": {},
22385
- "ap-northeast-2": {},
22386
- "ap-northeast-3": {},
22387
- "ap-south-1": {},
22388
- "ap-southeast-1": {},
22389
- "ap-southeast-2": {},
22390
- "ap-southeast-3": {},
22391
- "ca-central-1": {},
22392
- "eu-central-1": {},
22393
- "eu-north-1": {},
22394
- "eu-south-1": {},
22395
- "eu-west-1": {},
22396
- "eu-west-2": {},
22397
- "eu-west-3": {},
22398
- "me-south-1": {},
22399
- "sa-east-1": {},
22400
- "us-east-1": {},
22401
- "us-east-2": {},
22402
- "us-west-1": {},
22403
- "us-west-2": {},
22404
- "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)"
22425
+ },
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)"
22405
22476
  },
22406
- outputs: {
22407
- name: "aws",
22408
- dnsSuffix: "amazonaws.com",
22409
- dualStackDnsSuffix: "api.aws",
22410
- supportsFIPS: true,
22411
- supportsDualStack: true
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)"
22412
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
22413
22501
  },
22414
- {
22415
- id: "aws-us-gov",
22416
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
22417
- regions: {
22418
- "us-gov-west-1": {},
22419
- "us-gov-east-1": {},
22420
- "aws-us-gov-global": {}
22502
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
22503
+ regions: {
22504
+ "aws-cn-global": {
22505
+ description: "AWS China global region"
22421
22506
  },
22422
- outputs: {
22423
- name: "aws-us-gov",
22424
- dnsSuffix: "amazonaws.com",
22425
- dualStackDnsSuffix: "api.aws",
22426
- supportsFIPS: true,
22427
- supportsDualStack: true
22507
+ "cn-north-1": {
22508
+ description: "China (Beijing)"
22509
+ },
22510
+ "cn-northwest-1": {
22511
+ description: "China (Ningxia)"
22428
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
22429
22522
  },
22430
- {
22431
- id: "aws-cn",
22432
- regionRegex: "^cn\\-\\w+\\-\\d+$",
22433
- regions: {
22434
- "cn-north-1": {},
22435
- "cn-northwest-1": {},
22436
- "aws-cn-global": {}
22523
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
22524
+ regions: {
22525
+ "aws-us-gov-global": {
22526
+ description: "AWS GovCloud (US) global region"
22527
+ },
22528
+ "us-gov-east-1": {
22529
+ description: "AWS GovCloud (US-East)"
22437
22530
  },
22438
- outputs: {
22439
- name: "aws-cn",
22440
- dnsSuffix: "amazonaws.com.cn",
22441
- dualStackDnsSuffix: "api.amazonwebservices.com.cn",
22442
- supportsFIPS: true,
22443
- supportsDualStack: true
22531
+ "us-gov-west-1": {
22532
+ description: "AWS GovCloud (US-West)"
22444
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
22445
22543
  },
22446
- {
22447
- id: "aws-iso",
22448
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
22449
- outputs: {
22450
- name: "aws-iso",
22451
- dnsSuffix: "c2s.ic.gov",
22452
- supportsFIPS: true,
22453
- supportsDualStack: false,
22454
- dualStackDnsSuffix: "c2s.ic.gov"
22544
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
22545
+ regions: {
22546
+ "aws-iso-global": {
22547
+ description: "AWS ISO (US) global region"
22455
22548
  },
22456
- regions: {
22457
- "aws-iso-global": {}
22549
+ "us-iso-east-1": {
22550
+ description: "US ISO East"
22551
+ },
22552
+ "us-iso-west-1": {
22553
+ description: "US ISO WEST"
22458
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
22459
22564
  },
22460
- {
22461
- id: "aws-iso-b",
22462
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
22463
- outputs: {
22464
- name: "aws-iso-b",
22465
- dnsSuffix: "sc2s.sgov.gov",
22466
- supportsFIPS: true,
22467
- supportsDualStack: false,
22468
- dualStackDnsSuffix: "sc2s.sgov.gov"
22565
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
22566
+ regions: {
22567
+ "aws-iso-b-global": {
22568
+ description: "AWS ISOB (US) global region"
22469
22569
  },
22470
- regions: {
22471
- "aws-iso-b-global": {}
22570
+ "us-isob-east-1": {
22571
+ description: "US ISOB East (Ohio)"
22472
22572
  }
22473
22573
  }
22474
- ]
22574
+ }],
22575
+ version: "1.1"
22475
22576
  };
22476
22577
  }
22477
22578
  });
@@ -23163,26 +23264,39 @@ var require_evaluateTemplate = __commonJS({
23163
23264
  Object.defineProperty(exports, "__esModule", { value: true });
23164
23265
  exports.evaluateTemplate = void 0;
23165
23266
  var lib_1 = require_lib();
23166
- var ATTR_SHORTHAND_REGEX = new RegExp("\\${([\\w]+)#([\\w]+)}", "g");
23167
23267
  var evaluateTemplate = (template, options) => {
23168
- const templateToEvaluate = template.replace(new RegExp(`{([^{}]+)}`, "g"), "${$1}").replace(new RegExp(`{\\\${([^{}]+)}}`, "g"), "{$1}");
23268
+ const evaluatedTemplateArr = [];
23169
23269
  const templateContext = {
23170
23270
  ...options.endpointParams,
23171
23271
  ...options.referenceRecord
23172
23272
  };
23173
- const attrShortHandList = templateToEvaluate.match(ATTR_SHORTHAND_REGEX) || [];
23174
- const attrShortHandMap = attrShortHandList.reduce((acc, attrShortHand) => {
23175
- const indexOfHash = attrShortHand.indexOf("#");
23176
- const refName = attrShortHand.substring(2, indexOfHash);
23177
- const attrName = attrShortHand.substring(indexOfHash + 1, attrShortHand.length - 1);
23178
- acc[attrShortHand] = (0, lib_1.getAttr)(templateContext[refName], attrName);
23179
- return acc;
23180
- }, {});
23181
- const templateWithAttr = Object.entries(attrShortHandMap).reduce((acc, [shortHand, value]) => acc.replace(shortHand, value), templateToEvaluate);
23182
- const templateContextNames = Object.keys(templateContext);
23183
- const templateContextValues = Object.values(templateContext);
23184
- const templateWithTildeEscaped = templateWithAttr.replace(/\`/g, "\\`");
23185
- return new Function(...templateContextNames, `return \`${templateWithTildeEscaped}\``)(...templateContextValues);
23273
+ let currentIndex = 0;
23274
+ while (currentIndex < template.length) {
23275
+ const openingBraceIndex = template.indexOf("{", currentIndex);
23276
+ if (openingBraceIndex === -1) {
23277
+ evaluatedTemplateArr.push(template.slice(currentIndex));
23278
+ break;
23279
+ }
23280
+ evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
23281
+ const closingBraceIndex = template.indexOf("}", openingBraceIndex);
23282
+ if (closingBraceIndex === -1) {
23283
+ evaluatedTemplateArr.push(template.slice(openingBraceIndex));
23284
+ break;
23285
+ }
23286
+ if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
23287
+ evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
23288
+ currentIndex = closingBraceIndex + 2;
23289
+ }
23290
+ const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
23291
+ if (parameterName.includes("#")) {
23292
+ const [refName, attrName] = parameterName.split("#");
23293
+ evaluatedTemplateArr.push((0, lib_1.getAttr)(templateContext[refName], attrName));
23294
+ } else {
23295
+ evaluatedTemplateArr.push(templateContext[parameterName]);
23296
+ }
23297
+ currentIndex = closingBraceIndex + 1;
23298
+ }
23299
+ return evaluatedTemplateArr.join("");
23186
23300
  };
23187
23301
  exports.evaluateTemplate = evaluateTemplate;
23188
23302
  }
@@ -23928,19 +24042,20 @@ var require_runtimeConfig_shared = __commonJS({
23928
24042
  "use strict";
23929
24043
  Object.defineProperty(exports, "__esModule", { value: true });
23930
24044
  exports.getRuntimeConfig = void 0;
24045
+ var smithy_client_1 = require_dist_cjs7();
23931
24046
  var url_parser_1 = require_dist_cjs2();
24047
+ var util_base64_1 = require_dist_cjs36();
23932
24048
  var endpointResolver_1 = require_endpointResolver();
23933
- var getRuntimeConfig = (config) => {
23934
- var _a, _b, _c, _d, _e;
23935
- return {
23936
- apiVersion: "2019-06-10",
23937
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
23938
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
23939
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
23940
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO",
23941
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl
23942
- };
23943
- };
24049
+ var getRuntimeConfig = (config) => ({
24050
+ apiVersion: "2019-06-10",
24051
+ base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
24052
+ base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
24053
+ disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
24054
+ endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
24055
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
24056
+ serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO",
24057
+ urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
24058
+ });
23944
24059
  exports.getRuntimeConfig = getRuntimeConfig;
23945
24060
  }
23946
24061
  });
@@ -24064,16 +24179,14 @@ var require_runtimeConfig = __commonJS({
24064
24179
  var middleware_retry_1 = require_dist_cjs16();
24065
24180
  var node_config_provider_1 = require_dist_cjs27();
24066
24181
  var node_http_handler_1 = require_dist_cjs32();
24067
- var util_base64_node_1 = require_dist_cjs33();
24068
- var util_body_length_node_1 = require_dist_cjs34();
24069
- var util_user_agent_node_1 = require_dist_cjs35();
24070
- var util_utf8_node_1 = require_dist_cjs36();
24182
+ var util_body_length_node_1 = require_dist_cjs33();
24183
+ var util_user_agent_node_1 = require_dist_cjs34();
24184
+ var util_utf8_node_1 = require_dist_cjs35();
24071
24185
  var runtimeConfig_shared_1 = require_runtimeConfig_shared();
24072
24186
  var smithy_client_1 = require_dist_cjs7();
24073
24187
  var util_defaults_mode_node_1 = require_dist_cjs39();
24074
24188
  var smithy_client_2 = require_dist_cjs7();
24075
24189
  var getRuntimeConfig = (config) => {
24076
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
24077
24190
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24078
24191
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
24079
24192
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -24083,23 +24196,21 @@ var require_runtimeConfig = __commonJS({
24083
24196
  ...config,
24084
24197
  runtime: "node",
24085
24198
  defaultsMode,
24086
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
24087
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
24088
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
24089
- defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
24090
- maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
24091
- region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
24092
- requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
24093
- retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({
24199
+ bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? util_body_length_node_1.calculateBodyLength,
24200
+ defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
24201
+ maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
24202
+ 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),
24203
+ requestHandler: (config == null ? void 0 : config.requestHandler) ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
24204
+ retryMode: (config == null ? void 0 : config.retryMode) ?? (0, node_config_provider_1.loadConfig)({
24094
24205
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
24095
24206
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE
24096
24207
  }),
24097
- sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"),
24098
- streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector,
24099
- useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
24100
- useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
24101
- utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8,
24102
- utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8
24208
+ sha256: (config == null ? void 0 : config.sha256) ?? hash_node_1.Hash.bind(null, "sha256"),
24209
+ streamCollector: (config == null ? void 0 : config.streamCollector) ?? node_http_handler_1.streamCollector,
24210
+ useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
24211
+ useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
24212
+ utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_node_1.fromUtf8,
24213
+ utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_node_1.toUtf8
24103
24214
  };
24104
24215
  };
24105
24216
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -24356,101 +24467,1954 @@ var require_dist_cjs40 = __commonJS({
24356
24467
  }
24357
24468
  });
24358
24469
 
24359
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js
24360
- var require_resolveSSOCredentials = __commonJS({
24361
- "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) {
24362
24473
  "use strict";
24363
24474
  Object.defineProperty(exports, "__esModule", { value: true });
24364
- exports.resolveSSOCredentials = void 0;
24365
- var client_sso_1 = require_dist_cjs40();
24366
- var property_provider_1 = require_dist_cjs17();
24367
- var shared_ini_file_loader_1 = require_dist_cjs26();
24368
- var EXPIRE_WINDOW_MS = 15 * 60 * 1e3;
24369
- var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
24370
- var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => {
24371
- let token;
24372
- const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
24373
- try {
24374
- token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl);
24375
- } catch (e) {
24376
- throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
24377
- }
24378
- if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) {
24379
- throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN);
24380
- }
24381
- const { accessToken } = token;
24382
- const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion });
24383
- let ssoResp;
24384
- try {
24385
- ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({
24386
- accountId: ssoAccountId,
24387
- roleName: ssoRoleName,
24388
- accessToken
24389
- }));
24390
- } catch (e) {
24391
- throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN);
24392
- }
24393
- const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
24394
- if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
24395
- throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
24396
- }
24397
- return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
24398
- };
24399
- 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.`;
24400
24478
  }
24401
24479
  });
24402
24480
 
24403
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js
24404
- var require_validateSsoProfile = __commonJS({
24405
- "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) {
24406
24484
  "use strict";
24407
24485
  Object.defineProperty(exports, "__esModule", { value: true });
24408
- exports.validateSsoProfile = void 0;
24409
- var property_provider_1 = require_dist_cjs17();
24410
- var validateSsoProfile = (profile) => {
24411
- const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
24412
- if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
24413
- 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(", ")}
24414
- 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);
24415
24492
  }
24416
- return profile;
24417
24493
  };
24418
- exports.validateSsoProfile = validateSsoProfile;
24494
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
24419
24495
  }
24420
24496
  });
24421
24497
 
24422
- // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js
24423
- var require_fromSSO = __commonJS({
24424
- "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) {
24425
24501
  "use strict";
24426
24502
  Object.defineProperty(exports, "__esModule", { value: true });
24427
- exports.fromSSO = void 0;
24428
- var property_provider_1 = require_dist_cjs17();
24429
- var shared_ini_file_loader_1 = require_dist_cjs26();
24430
- var isSsoProfile_1 = require_isSsoProfile();
24431
- var resolveSSOCredentials_1 = require_resolveSSOCredentials();
24432
- var validateSsoProfile_1 = require_validateSsoProfile();
24433
- var fromSSO = (init = {}) => async () => {
24434
- const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init;
24435
- if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) {
24436
- const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init);
24437
- const profileName = (0, shared_ini_file_loader_1.getProfileName)(init);
24438
- const profile = profiles[profileName];
24439
- if (!(0, isSsoProfile_1.isSsoProfile)(profile)) {
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
24511
+ });
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;
24517
+ }
24518
+ };
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
+ }
24533
+ };
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;
24547
+ }
24548
+ };
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)) {
24440
26381
  throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`);
24441
26382
  }
24442
- const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile);
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);
24443
26397
  return (0, resolveSSOCredentials_1.resolveSSOCredentials)({
24444
26398
  ssoStartUrl: sso_start_url,
26399
+ ssoSession: sso_session,
24445
26400
  ssoAccountId: sso_account_id,
24446
26401
  ssoRegion: sso_region,
24447
26402
  ssoRoleName: sso_role_name,
24448
- ssoClient
26403
+ ssoClient,
26404
+ profile: profileName
24449
26405
  });
24450
26406
  } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
24451
26407
  throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');
24452
26408
  } else {
24453
- return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient });
26409
+ return (0, resolveSSOCredentials_1.resolveSSOCredentials)({
26410
+ ssoStartUrl,
26411
+ ssoSession,
26412
+ ssoAccountId,
26413
+ ssoRegion,
26414
+ ssoRoleName,
26415
+ ssoClient,
26416
+ profile: profileName
26417
+ });
24454
26418
  }
24455
26419
  };
24456
26420
  exports.fromSSO = fromSSO;
@@ -24466,7 +26430,7 @@ var require_types6 = __commonJS({
24466
26430
  });
24467
26431
 
24468
26432
  // node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
24469
- var require_dist_cjs41 = __commonJS({
26433
+ var require_dist_cjs43 = __commonJS({
24470
26434
  "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) {
24471
26435
  "use strict";
24472
26436
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24484,16 +26448,17 @@ var require_resolveSsoCredentials = __commonJS({
24484
26448
  "use strict";
24485
26449
  Object.defineProperty(exports, "__esModule", { value: true });
24486
26450
  exports.resolveSsoCredentials = exports.isSsoProfile = void 0;
24487
- var credential_provider_sso_1 = require_dist_cjs41();
24488
- var credential_provider_sso_2 = require_dist_cjs41();
26451
+ var credential_provider_sso_1 = require_dist_cjs43();
26452
+ var credential_provider_sso_2 = require_dist_cjs43();
24489
26453
  Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function() {
24490
26454
  return credential_provider_sso_2.isSsoProfile;
24491
26455
  } });
24492
26456
  var resolveSsoCredentials = (data) => {
24493
- const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data);
26457
+ const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data);
24494
26458
  return (0, credential_provider_sso_1.fromSSO)({
24495
26459
  ssoStartUrl: sso_start_url,
24496
26460
  ssoAccountId: sso_account_id,
26461
+ ssoSession: sso_session,
24497
26462
  ssoRegion: sso_region,
24498
26463
  ssoRoleName: sso_role_name
24499
26464
  })();
@@ -24580,7 +26545,7 @@ var require_fromTokenFile = __commonJS({
24580
26545
  });
24581
26546
 
24582
26547
  // node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
24583
- var require_dist_cjs42 = __commonJS({
26548
+ var require_dist_cjs44 = __commonJS({
24584
26549
  "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports) {
24585
26550
  "use strict";
24586
26551
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24596,7 +26561,7 @@ var require_resolveWebIdentityCredentials = __commonJS({
24596
26561
  "use strict";
24597
26562
  Object.defineProperty(exports, "__esModule", { value: true });
24598
26563
  exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0;
24599
- var credential_provider_web_identity_1 = require_dist_cjs42();
26564
+ var credential_provider_web_identity_1 = require_dist_cjs44();
24600
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;
24601
26566
  exports.isWebIdentityProfile = isWebIdentityProfile;
24602
26567
  var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({
@@ -24660,7 +26625,7 @@ var require_fromIni = __commonJS({
24660
26625
  });
24661
26626
 
24662
26627
  // node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
24663
- var require_dist_cjs43 = __commonJS({
26628
+ var require_dist_cjs45 = __commonJS({
24664
26629
  "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) {
24665
26630
  "use strict";
24666
26631
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24756,7 +26721,7 @@ var require_fromProcess = __commonJS({
24756
26721
  });
24757
26722
 
24758
26723
  // node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
24759
- var require_dist_cjs44 = __commonJS({
26724
+ var require_dist_cjs46 = __commonJS({
24760
26725
  "node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) {
24761
26726
  "use strict";
24762
26727
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24796,10 +26761,10 @@ var require_defaultProvider = __commonJS({
24796
26761
  Object.defineProperty(exports, "__esModule", { value: true });
24797
26762
  exports.defaultProvider = void 0;
24798
26763
  var credential_provider_env_1 = require_dist_cjs25();
24799
- var credential_provider_ini_1 = require_dist_cjs43();
24800
- var credential_provider_process_1 = require_dist_cjs44();
24801
- var credential_provider_sso_1 = require_dist_cjs41();
24802
- 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();
24803
26768
  var property_provider_1 = require_dist_cjs17();
24804
26769
  var shared_ini_file_loader_1 = require_dist_cjs26();
24805
26770
  var remoteProvider_1 = require_remoteProvider();
@@ -24811,7 +26776,7 @@ var require_defaultProvider = __commonJS({
24811
26776
  });
24812
26777
 
24813
26778
  // node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
24814
- var require_dist_cjs45 = __commonJS({
26779
+ var require_dist_cjs47 = __commonJS({
24815
26780
  "node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) {
24816
26781
  "use strict";
24817
26782
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24821,7 +26786,7 @@ var require_dist_cjs45 = __commonJS({
24821
26786
  });
24822
26787
 
24823
26788
  // node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
24824
- var require_ruleset2 = __commonJS({
26789
+ var require_ruleset3 = __commonJS({
24825
26790
  "node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports) {
24826
26791
  "use strict";
24827
26792
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25678,8 +27643,8 @@ var require_ruleset2 = __commonJS({
25678
27643
  authSchemes: [
25679
27644
  {
25680
27645
  name: "sigv4",
25681
- signingName: "sts",
25682
- signingRegion: "us-east-1"
27646
+ signingRegion: "us-east-1",
27647
+ signingName: "sts"
25683
27648
  }
25684
27649
  ]
25685
27650
  },
@@ -25706,13 +27671,13 @@ var require_ruleset2 = __commonJS({
25706
27671
  });
25707
27672
 
25708
27673
  // node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
25709
- var require_endpointResolver2 = __commonJS({
27674
+ var require_endpointResolver3 = __commonJS({
25710
27675
  "node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports) {
25711
27676
  "use strict";
25712
27677
  Object.defineProperty(exports, "__esModule", { value: true });
25713
27678
  exports.defaultEndpointResolver = void 0;
25714
27679
  var util_endpoints_1 = require_dist_cjs38();
25715
- var ruleset_1 = require_ruleset2();
27680
+ var ruleset_1 = require_ruleset3();
25716
27681
  var defaultEndpointResolver = (endpointParams, context = {}) => {
25717
27682
  return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
25718
27683
  endpointParams,
@@ -25724,30 +27689,31 @@ var require_endpointResolver2 = __commonJS({
25724
27689
  });
25725
27690
 
25726
27691
  // node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
25727
- var require_runtimeConfig_shared2 = __commonJS({
27692
+ var require_runtimeConfig_shared3 = __commonJS({
25728
27693
  "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) {
25729
27694
  "use strict";
25730
27695
  Object.defineProperty(exports, "__esModule", { value: true });
25731
27696
  exports.getRuntimeConfig = void 0;
27697
+ var smithy_client_1 = require_dist_cjs7();
25732
27698
  var url_parser_1 = require_dist_cjs2();
25733
- var endpointResolver_1 = require_endpointResolver2();
25734
- var getRuntimeConfig = (config) => {
25735
- var _a, _b, _c, _d, _e;
25736
- return {
25737
- apiVersion: "2011-06-15",
25738
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
25739
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
25740
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
25741
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "STS",
25742
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl
25743
- };
25744
- };
27699
+ var util_base64_1 = require_dist_cjs36();
27700
+ var endpointResolver_1 = require_endpointResolver3();
27701
+ var getRuntimeConfig = (config) => ({
27702
+ apiVersion: "2011-06-15",
27703
+ base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
27704
+ base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
27705
+ disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
27706
+ endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
27707
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
27708
+ serviceId: (config == null ? void 0 : config.serviceId) ?? "STS",
27709
+ urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
27710
+ });
25745
27711
  exports.getRuntimeConfig = getRuntimeConfig;
25746
27712
  }
25747
27713
  });
25748
27714
 
25749
27715
  // node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
25750
- var require_runtimeConfig2 = __commonJS({
27716
+ var require_runtimeConfig3 = __commonJS({
25751
27717
  "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) {
25752
27718
  "use strict";
25753
27719
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25756,21 +27722,19 @@ var require_runtimeConfig2 = __commonJS({
25756
27722
  var package_json_1 = tslib_1.__importDefault(require_package2());
25757
27723
  var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers();
25758
27724
  var config_resolver_1 = require_dist_cjs10();
25759
- var credential_provider_node_1 = require_dist_cjs45();
27725
+ var credential_provider_node_1 = require_dist_cjs47();
25760
27726
  var hash_node_1 = require_dist_cjs30();
25761
27727
  var middleware_retry_1 = require_dist_cjs16();
25762
27728
  var node_config_provider_1 = require_dist_cjs27();
25763
27729
  var node_http_handler_1 = require_dist_cjs32();
25764
- var util_base64_node_1 = require_dist_cjs33();
25765
- var util_body_length_node_1 = require_dist_cjs34();
25766
- var util_user_agent_node_1 = require_dist_cjs35();
25767
- var util_utf8_node_1 = require_dist_cjs36();
25768
- var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
27730
+ var util_body_length_node_1 = require_dist_cjs33();
27731
+ var util_user_agent_node_1 = require_dist_cjs34();
27732
+ var util_utf8_node_1 = require_dist_cjs35();
27733
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
25769
27734
  var smithy_client_1 = require_dist_cjs7();
25770
27735
  var util_defaults_mode_node_1 = require_dist_cjs39();
25771
27736
  var smithy_client_2 = require_dist_cjs7();
25772
27737
  var getRuntimeConfig = (config) => {
25773
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
25774
27738
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
25775
27739
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25776
27740
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -25780,24 +27744,22 @@ var require_runtimeConfig2 = __commonJS({
25780
27744
  ...config,
25781
27745
  runtime: "node",
25782
27746
  defaultsMode,
25783
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
25784
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
25785
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
25786
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
25787
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
25788
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
25789
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
25790
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
25791
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
27747
+ bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? util_body_length_node_1.calculateBodyLength,
27748
+ credentialDefaultProvider: (config == null ? void 0 : config.credentialDefaultProvider) ?? (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
27749
+ defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27750
+ maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
27751
+ 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),
27752
+ requestHandler: (config == null ? void 0 : config.requestHandler) ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
27753
+ retryMode: (config == null ? void 0 : config.retryMode) ?? (0, node_config_provider_1.loadConfig)({
25792
27754
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
25793
27755
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE
25794
27756
  }),
25795
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
25796
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
25797
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
25798
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
25799
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
25800
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8
27757
+ sha256: (config == null ? void 0 : config.sha256) ?? hash_node_1.Hash.bind(null, "sha256"),
27758
+ streamCollector: (config == null ? void 0 : config.streamCollector) ?? node_http_handler_1.streamCollector,
27759
+ useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
27760
+ useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
27761
+ utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_node_1.fromUtf8,
27762
+ utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_node_1.toUtf8
25801
27763
  };
25802
27764
  };
25803
27765
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -25821,7 +27783,7 @@ var require_STSClient = __commonJS({
25821
27783
  var middleware_user_agent_1 = require_dist_cjs23();
25822
27784
  var smithy_client_1 = require_dist_cjs7();
25823
27785
  var EndpointParameters_1 = require_EndpointParameters2();
25824
- var runtimeConfig_1 = require_runtimeConfig2();
27786
+ var runtimeConfig_1 = require_runtimeConfig3();
25825
27787
  var STSClient = class extends smithy_client_1.Client {
25826
27788
  constructor(configuration) {
25827
27789
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
@@ -25967,7 +27929,7 @@ var require_STS = __commonJS({
25967
27929
  });
25968
27930
 
25969
27931
  // node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js
25970
- var require_commands2 = __commonJS({
27932
+ var require_commands3 = __commonJS({
25971
27933
  "node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) {
25972
27934
  "use strict";
25973
27935
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26018,7 +27980,7 @@ var require_defaultRoleAssumers = __commonJS({
26018
27980
  });
26019
27981
 
26020
27982
  // node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js
26021
- var require_models2 = __commonJS({
27983
+ var require_models3 = __commonJS({
26022
27984
  "node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) {
26023
27985
  "use strict";
26024
27986
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26028,7 +27990,7 @@ var require_models2 = __commonJS({
26028
27990
  });
26029
27991
 
26030
27992
  // node_modules/@aws-sdk/client-sts/dist-cjs/index.js
26031
- var require_dist_cjs46 = __commonJS({
27993
+ var require_dist_cjs48 = __commonJS({
26032
27994
  "node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) {
26033
27995
  "use strict";
26034
27996
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26036,9 +27998,9 @@ var require_dist_cjs46 = __commonJS({
26036
27998
  var tslib_1 = require_tslib();
26037
27999
  tslib_1.__exportStar(require_STS(), exports);
26038
28000
  tslib_1.__exportStar(require_STSClient(), exports);
26039
- tslib_1.__exportStar(require_commands2(), exports);
28001
+ tslib_1.__exportStar(require_commands3(), exports);
26040
28002
  tslib_1.__exportStar(require_defaultRoleAssumers(), exports);
26041
- tslib_1.__exportStar(require_models2(), exports);
28003
+ tslib_1.__exportStar(require_models3(), exports);
26042
28004
  var STSServiceException_1 = require_STSServiceException();
26043
28005
  Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function() {
26044
28006
  return STSServiceException_1.STSServiceException;
@@ -26047,7 +28009,7 @@ var require_dist_cjs46 = __commonJS({
26047
28009
  });
26048
28010
 
26049
28011
  // node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js
26050
- var require_ruleset3 = __commonJS({
28012
+ var require_ruleset4 = __commonJS({
26051
28013
  "node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js"(exports) {
26052
28014
  "use strict";
26053
28015
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26371,13 +28333,13 @@ var require_ruleset3 = __commonJS({
26371
28333
  });
26372
28334
 
26373
28335
  // node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js
26374
- var require_endpointResolver3 = __commonJS({
28336
+ var require_endpointResolver4 = __commonJS({
26375
28337
  "node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js"(exports) {
26376
28338
  "use strict";
26377
28339
  Object.defineProperty(exports, "__esModule", { value: true });
26378
28340
  exports.defaultEndpointResolver = void 0;
26379
28341
  var util_endpoints_1 = require_dist_cjs38();
26380
- var ruleset_1 = require_ruleset3();
28342
+ var ruleset_1 = require_ruleset4();
26381
28343
  var defaultEndpointResolver = (endpointParams, context = {}) => {
26382
28344
  return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
26383
28345
  endpointParams,
@@ -26389,53 +28351,52 @@ var require_endpointResolver3 = __commonJS({
26389
28351
  });
26390
28352
 
26391
28353
  // node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js
26392
- var require_runtimeConfig_shared3 = __commonJS({
28354
+ var require_runtimeConfig_shared4 = __commonJS({
26393
28355
  "node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js"(exports) {
26394
28356
  "use strict";
26395
28357
  Object.defineProperty(exports, "__esModule", { value: true });
26396
28358
  exports.getRuntimeConfig = void 0;
28359
+ var smithy_client_1 = require_dist_cjs7();
26397
28360
  var url_parser_1 = require_dist_cjs2();
26398
- var endpointResolver_1 = require_endpointResolver3();
26399
- var getRuntimeConfig = (config) => {
26400
- var _a, _b, _c, _d, _e;
26401
- return {
26402
- apiVersion: "2015-03-31",
26403
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
26404
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
26405
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
26406
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Lambda",
26407
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl
26408
- };
26409
- };
28361
+ var util_base64_1 = require_dist_cjs36();
28362
+ var endpointResolver_1 = require_endpointResolver4();
28363
+ var getRuntimeConfig = (config) => ({
28364
+ apiVersion: "2015-03-31",
28365
+ base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
28366
+ base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
28367
+ disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
28368
+ endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
28369
+ logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
28370
+ serviceId: (config == null ? void 0 : config.serviceId) ?? "Lambda",
28371
+ urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl
28372
+ });
26410
28373
  exports.getRuntimeConfig = getRuntimeConfig;
26411
28374
  }
26412
28375
  });
26413
28376
 
26414
28377
  // node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js
26415
- var require_runtimeConfig3 = __commonJS({
28378
+ var require_runtimeConfig4 = __commonJS({
26416
28379
  "node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js"(exports) {
26417
28380
  "use strict";
26418
28381
  Object.defineProperty(exports, "__esModule", { value: true });
26419
28382
  exports.getRuntimeConfig = void 0;
26420
28383
  var tslib_1 = require_tslib();
26421
28384
  var package_json_1 = tslib_1.__importDefault(require_package());
26422
- var client_sts_1 = require_dist_cjs46();
28385
+ var client_sts_1 = require_dist_cjs48();
26423
28386
  var config_resolver_1 = require_dist_cjs10();
26424
- var credential_provider_node_1 = require_dist_cjs45();
28387
+ var credential_provider_node_1 = require_dist_cjs47();
26425
28388
  var hash_node_1 = require_dist_cjs30();
26426
28389
  var middleware_retry_1 = require_dist_cjs16();
26427
28390
  var node_config_provider_1 = require_dist_cjs27();
26428
28391
  var node_http_handler_1 = require_dist_cjs32();
26429
- var util_base64_node_1 = require_dist_cjs33();
26430
- var util_body_length_node_1 = require_dist_cjs34();
26431
- var util_user_agent_node_1 = require_dist_cjs35();
26432
- var util_utf8_node_1 = require_dist_cjs36();
26433
- var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
28392
+ var util_body_length_node_1 = require_dist_cjs33();
28393
+ var util_user_agent_node_1 = require_dist_cjs34();
28394
+ var util_utf8_node_1 = require_dist_cjs35();
28395
+ var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
26434
28396
  var smithy_client_1 = require_dist_cjs7();
26435
28397
  var util_defaults_mode_node_1 = require_dist_cjs39();
26436
28398
  var smithy_client_2 = require_dist_cjs7();
26437
28399
  var getRuntimeConfig = (config) => {
26438
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
26439
28400
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
26440
28401
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
26441
28402
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -26445,24 +28406,22 @@ var require_runtimeConfig3 = __commonJS({
26445
28406
  ...config,
26446
28407
  runtime: "node",
26447
28408
  defaultsMode,
26448
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26449
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
26450
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
26451
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
26452
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26453
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
26454
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
26455
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
26456
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
28409
+ bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? util_body_length_node_1.calculateBodyLength,
28410
+ credentialDefaultProvider: (config == null ? void 0 : config.credentialDefaultProvider) ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
28411
+ defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28412
+ maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
28413
+ 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),
28414
+ requestHandler: (config == null ? void 0 : config.requestHandler) ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
28415
+ retryMode: (config == null ? void 0 : config.retryMode) ?? (0, node_config_provider_1.loadConfig)({
26457
28416
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
26458
28417
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE
26459
28418
  }),
26460
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
26461
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
26462
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
26463
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
26464
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
26465
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8
28419
+ sha256: (config == null ? void 0 : config.sha256) ?? hash_node_1.Hash.bind(null, "sha256"),
28420
+ streamCollector: (config == null ? void 0 : config.streamCollector) ?? node_http_handler_1.streamCollector,
28421
+ useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
28422
+ useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
28423
+ utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_node_1.fromUtf8,
28424
+ utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_node_1.toUtf8
26466
28425
  };
26467
28426
  };
26468
28427
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -26486,7 +28445,7 @@ var require_LambdaClient = __commonJS({
26486
28445
  var middleware_user_agent_1 = require_dist_cjs23();
26487
28446
  var smithy_client_1 = require_dist_cjs7();
26488
28447
  var EndpointParameters_1 = require_EndpointParameters();
26489
- var runtimeConfig_1 = require_runtimeConfig3();
28448
+ var runtimeConfig_1 = require_runtimeConfig4();
26490
28449
  var LambdaClient = class extends smithy_client_1.Client {
26491
28450
  constructor(configuration) {
26492
28451
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
@@ -27348,7 +29307,7 @@ var require_Lambda = __commonJS({
27348
29307
  });
27349
29308
 
27350
29309
  // node_modules/@aws-sdk/client-lambda/dist-cjs/commands/index.js
27351
- var require_commands3 = __commonJS({
29310
+ var require_commands4 = __commonJS({
27352
29311
  "node_modules/@aws-sdk/client-lambda/dist-cjs/commands/index.js"(exports) {
27353
29312
  "use strict";
27354
29313
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -27420,7 +29379,7 @@ var require_commands3 = __commonJS({
27420
29379
  });
27421
29380
 
27422
29381
  // node_modules/@aws-sdk/client-lambda/dist-cjs/models/index.js
27423
- var require_models3 = __commonJS({
29382
+ var require_models4 = __commonJS({
27424
29383
  "node_modules/@aws-sdk/client-lambda/dist-cjs/models/index.js"(exports) {
27425
29384
  "use strict";
27426
29385
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28065,7 +30024,7 @@ var require_createWaiter = __commonJS({
28065
30024
  });
28066
30025
 
28067
30026
  // node_modules/@aws-sdk/util-waiter/dist-cjs/index.js
28068
- var require_dist_cjs47 = __commonJS({
30027
+ var require_dist_cjs49 = __commonJS({
28069
30028
  "node_modules/@aws-sdk/util-waiter/dist-cjs/index.js"(exports) {
28070
30029
  "use strict";
28071
30030
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28081,7 +30040,7 @@ var require_waitForFunctionActive = __commonJS({
28081
30040
  "use strict";
28082
30041
  Object.defineProperty(exports, "__esModule", { value: true });
28083
30042
  exports.waitUntilFunctionActive = exports.waitForFunctionActive = void 0;
28084
- var util_waiter_1 = require_dist_cjs47();
30043
+ var util_waiter_1 = require_dist_cjs49();
28085
30044
  var GetFunctionConfigurationCommand_1 = require_GetFunctionConfigurationCommand();
28086
30045
  var checkState = async (client, input) => {
28087
30046
  let reason;
@@ -28140,7 +30099,7 @@ var require_waitForFunctionActiveV2 = __commonJS({
28140
30099
  "use strict";
28141
30100
  Object.defineProperty(exports, "__esModule", { value: true });
28142
30101
  exports.waitUntilFunctionActiveV2 = exports.waitForFunctionActiveV2 = void 0;
28143
- var util_waiter_1 = require_dist_cjs47();
30102
+ var util_waiter_1 = require_dist_cjs49();
28144
30103
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28145
30104
  var checkState = async (client, input) => {
28146
30105
  let reason;
@@ -28199,7 +30158,7 @@ var require_waitForFunctionExists = __commonJS({
28199
30158
  "use strict";
28200
30159
  Object.defineProperty(exports, "__esModule", { value: true });
28201
30160
  exports.waitUntilFunctionExists = exports.waitForFunctionExists = void 0;
28202
- var util_waiter_1 = require_dist_cjs47();
30161
+ var util_waiter_1 = require_dist_cjs49();
28203
30162
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28204
30163
  var checkState = async (client, input) => {
28205
30164
  let reason;
@@ -28235,7 +30194,7 @@ var require_waitForFunctionUpdated = __commonJS({
28235
30194
  "use strict";
28236
30195
  Object.defineProperty(exports, "__esModule", { value: true });
28237
30196
  exports.waitUntilFunctionUpdated = exports.waitForFunctionUpdated = void 0;
28238
- var util_waiter_1 = require_dist_cjs47();
30197
+ var util_waiter_1 = require_dist_cjs49();
28239
30198
  var GetFunctionConfigurationCommand_1 = require_GetFunctionConfigurationCommand();
28240
30199
  var checkState = async (client, input) => {
28241
30200
  let reason;
@@ -28294,7 +30253,7 @@ var require_waitForFunctionUpdatedV2 = __commonJS({
28294
30253
  "use strict";
28295
30254
  Object.defineProperty(exports, "__esModule", { value: true });
28296
30255
  exports.waitUntilFunctionUpdatedV2 = exports.waitForFunctionUpdatedV2 = void 0;
28297
- var util_waiter_1 = require_dist_cjs47();
30256
+ var util_waiter_1 = require_dist_cjs49();
28298
30257
  var GetFunctionCommand_1 = require_GetFunctionCommand();
28299
30258
  var checkState = async (client, input) => {
28300
30259
  let reason;
@@ -28362,7 +30321,7 @@ var require_waiters = __commonJS({
28362
30321
  });
28363
30322
 
28364
30323
  // node_modules/@aws-sdk/client-lambda/dist-cjs/index.js
28365
- var require_dist_cjs48 = __commonJS({
30324
+ var require_dist_cjs50 = __commonJS({
28366
30325
  "node_modules/@aws-sdk/client-lambda/dist-cjs/index.js"(exports) {
28367
30326
  "use strict";
28368
30327
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28370,8 +30329,8 @@ var require_dist_cjs48 = __commonJS({
28370
30329
  var tslib_1 = require_tslib();
28371
30330
  tslib_1.__exportStar(require_Lambda(), exports);
28372
30331
  tslib_1.__exportStar(require_LambdaClient(), exports);
28373
- tslib_1.__exportStar(require_commands3(), exports);
28374
- tslib_1.__exportStar(require_models3(), exports);
30332
+ tslib_1.__exportStar(require_commands4(), exports);
30333
+ tslib_1.__exportStar(require_models4(), exports);
28375
30334
  tslib_1.__exportStar(require_pagination3(), exports);
28376
30335
  tslib_1.__exportStar(require_waiters(), exports);
28377
30336
  var LambdaServiceException_1 = require_LambdaServiceException();
@@ -28387,7 +30346,7 @@ __export(update_lambda_exports, {
28387
30346
  handler: () => handler
28388
30347
  });
28389
30348
  module.exports = __toCommonJS(update_lambda_exports);
28390
- var import_client_lambda = __toESM(require_dist_cjs48());
30349
+ var import_client_lambda = __toESM(require_dist_cjs50());
28391
30350
  var AWS = __toESM(require("aws-sdk"));
28392
30351
  var lambda = new AWS.Lambda();
28393
30352
  function sleep(ms) {