@hasna/skills 0.10.6 → 0.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/server.js CHANGED
@@ -4827,7 +4827,6 @@ var require_serde = __commonJS((exports) => {
4827
4827
  const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
4828
4828
  const checksumRequired = base64Encoder !== undefined && bodyLengthChecker !== undefined && checksumAlgorithmFn !== undefined && checksumLocationName !== undefined && streamHasher !== undefined;
4829
4829
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
4830
- Promise.resolve(digest).catch(() => {});
4831
4830
  const reader = readableStream.getReader();
4832
4831
  return new ReadableStream({
4833
4832
  async pull(controller) {
@@ -4860,11 +4859,8 @@ ${value}\r
4860
4859
  const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
4861
4860
  const checksumRequired = base64Encoder !== undefined && checksumAlgorithmFn !== undefined && checksumLocationName !== undefined && streamHasher !== undefined;
4862
4861
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
4863
- Promise.resolve(digest).catch(() => {});
4864
4862
  const awsChunkedEncodingStream = new Readable({
4865
- read() {
4866
- readable.resume();
4867
- }
4863
+ read: () => {}
4868
4864
  });
4869
4865
  readable.on("data", (data) => {
4870
4866
  const length = bodyLengthChecker(data) || 0;
@@ -4874,30 +4870,20 @@ ${value}\r
4874
4870
  awsChunkedEncodingStream.push(`${length.toString(16)}\r
4875
4871
  `);
4876
4872
  awsChunkedEncodingStream.push(data);
4877
- if (!awsChunkedEncodingStream.push(`\r
4878
- `)) {
4879
- readable.pause();
4880
- }
4881
- });
4882
- readable.on("error", (err) => {
4883
- awsChunkedEncodingStream.destroy(err);
4873
+ awsChunkedEncodingStream.push(`\r
4874
+ `);
4884
4875
  });
4885
- readable.pause();
4886
4876
  readable.on("end", async () => {
4887
- try {
4888
- awsChunkedEncodingStream.push(`0\r
4877
+ awsChunkedEncodingStream.push(`0\r
4889
4878
  `);
4890
- if (checksumRequired) {
4891
- const checksum = base64Encoder(await digest);
4892
- awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r
4879
+ if (checksumRequired) {
4880
+ const checksum = base64Encoder(await digest);
4881
+ awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r
4893
4882
  `);
4894
- awsChunkedEncodingStream.push(`\r
4883
+ awsChunkedEncodingStream.push(`\r
4895
4884
  `);
4896
- }
4897
- awsChunkedEncodingStream.push(null);
4898
- } catch (err) {
4899
- awsChunkedEncodingStream.destroy(err);
4900
4885
  }
4886
+ awsChunkedEncodingStream.push(null);
4901
4887
  });
4902
4888
  return awsChunkedEncodingStream;
4903
4889
  }
@@ -7791,7 +7777,7 @@ var require_retry = __commonJS((exports) => {
7791
7777
  return errorMessages.has(error.message);
7792
7778
  };
7793
7779
  var isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true;
7794
- var isTransientError = (error, depth = 0) => error?.name !== "AbortError" && (isRetryableByTrait(error) || isClockSkewCorrectedError(error) || error.name === "InvalidSignatureException" && error.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || isNodeJsHttp2TransientError(error) || error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
7780
+ var isTransientError = (error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || error.name === "InvalidSignatureException" && error.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || isNodeJsHttp2TransientError(error) || error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1);
7795
7781
  var isServerError = (error) => {
7796
7782
  if (error.$metadata?.httpStatusCode !== undefined) {
7797
7783
  const statusCode = error.$metadata.httpStatusCode;
@@ -11664,12 +11650,8 @@ var require_util = __commonJS((exports) => {
11664
11650
  }
11665
11651
  return `${protocol}//${auth}${hostname}${path}${queryString}${fragment}`;
11666
11652
  }
11667
- function hasOwn(container, key) {
11668
- return Object.prototype.hasOwnProperty.call(container, key);
11669
- }
11670
11653
  exports.build = build;
11671
11654
  exports.formatUrl = formatUrl;
11672
- exports.hasOwn = hasOwn;
11673
11655
  exports.parse = parse;
11674
11656
  exports.validate = validate;
11675
11657
  });
@@ -19111,7 +19093,7 @@ var init_constants = __esm(() => {
19111
19093
  EXPIRE_WINDOW_MS = 5 * 60 * 1000;
19112
19094
  });
19113
19095
 
19114
- // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
19096
+ // node_modules/@aws-sdk/token-providers/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
19115
19097
  var require_sso_oidc = __commonJS((exports) => {
19116
19098
  var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
19117
19099
  var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs2();
@@ -19189,7 +19171,7 @@ var require_sso_oidc = __commonJS((exports) => {
19189
19171
  Region: { type: "builtInParams", name: "region" },
19190
19172
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
19191
19173
  };
19192
- var version = "3.997.44";
19174
+ var version = "3.997.43";
19193
19175
  var packageInfo = {
19194
19176
  version
19195
19177
  };
@@ -20013,7 +19995,7 @@ var init_dist_es4 = __esm(() => {
20013
19995
  init_fromSso();
20014
19996
  });
20015
19997
 
20016
- // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
19998
+ // node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
20017
19999
  function createAwsAuthSigv4HttpAuthOption2(authParameters) {
20018
20000
  return {
20019
20001
  schemeId: "aws.auth#sigv4",
@@ -20064,7 +20046,7 @@ var awsEndpointFunctions2, emitWarningIfUnsupportedVersion$1, createDefaultUserA
20064
20046
  useFipsEndpoint: options.useFipsEndpoint ?? false,
20065
20047
  defaultSigningName: "awsssoportal"
20066
20048
  });
20067
- }, commonParams2, version = "3.997.44", packageInfo, k2 = "ref", a2 = -1, b2 = true, c2 = "isSet", d2 = "PartitionResult", e2 = "booleanEquals", f2 = "getAttr", g2, h2, i2, j2, _data2, root2 = 2, r2 = 1e8, nodes2, bdd2, cache2, defaultEndpointResolver2 = (endpointParams, context = {}) => {
20049
+ }, commonParams2, version = "3.997.43", packageInfo, k2 = "ref", a2 = -1, b2 = true, c2 = "isSet", d2 = "PartitionResult", e2 = "booleanEquals", f2 = "getAttr", g2, h2, i2, j2, _data2, root2 = 2, r2 = 1e8, nodes2, bdd2, cache2, defaultEndpointResolver2 = (endpointParams, context = {}) => {
20068
20050
  return cache2.get(endpointParams, () => decideEndpoint2(bdd2, {
20069
20051
  endpointParams,
20070
20052
  logger: context.logger
@@ -20698,7 +20680,7 @@ var init_resolveCredentialSource = __esm(() => {
20698
20680
  import_config18 = __toESM(require_config(), 1);
20699
20681
  });
20700
20682
 
20701
- // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
20683
+ // node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
20702
20684
  var require_sts = __commonJS((exports) => {
20703
20685
  var { awsEndpointFunctions: awsEndpointFunctions3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2, setCredentialFeature: setCredentialFeature5, stsRegionDefaultResolver } = require_client2();
20704
20686
  var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
@@ -21029,7 +21011,7 @@ var require_sts = __commonJS((exports) => {
21029
21011
  Region: { type: "builtInParams", name: "region" },
21030
21012
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
21031
21013
  };
21032
- var version2 = "3.997.44";
21014
+ var version2 = "3.997.43";
21033
21015
  var packageInfo2 = {
21034
21016
  version: version2
21035
21017
  };
@@ -21788,7 +21770,7 @@ var init_resolveAssumeRoleCredentials = __esm(() => {
21788
21770
  import_config19 = __toESM(require_config(), 1);
21789
21771
  });
21790
21772
 
21791
- // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
21773
+ // node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
21792
21774
  var require_signin = __commonJS((exports) => {
21793
21775
  var { awsEndpointFunctions: awsEndpointFunctions3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2 } = require_client2();
21794
21776
  var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
@@ -21866,7 +21848,7 @@ var require_signin = __commonJS((exports) => {
21866
21848
  Region: { type: "builtInParams", name: "region" },
21867
21849
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
21868
21850
  };
21869
- var version2 = "3.997.44";
21851
+ var version2 = "3.997.43";
21870
21852
  var packageInfo2 = {
21871
21853
  version: version2
21872
21854
  };
@@ -22520,7 +22502,7 @@ var require_signin = __commonJS((exports) => {
22520
22502
  exports.errorTypeRegistries = errorTypeRegistries3;
22521
22503
  });
22522
22504
 
22523
- // node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
22505
+ // node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
22524
22506
  import { createHash as createHash2, createPrivateKey, createPublicKey, sign } from "crypto";
22525
22507
  import { promises as fs2 } from "fs";
22526
22508
  import { homedir } from "os";
@@ -22784,7 +22766,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
22784
22766
  };
22785
22767
  });
22786
22768
 
22787
- // node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
22769
+ // node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
22788
22770
  var import_client10, import_config21, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
22789
22771
  init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
22790
22772
  const profiles = await import_config21.parseKnownFiles(init || {});
@@ -22808,7 +22790,7 @@ var init_fromLoginCredentials = __esm(() => {
22808
22790
  import_config21 = __toESM(require_config(), 1);
22809
22791
  });
22810
22792
 
22811
- // node_modules/@aws-sdk/credential-provider-login/dist-es/index.js
22793
+ // node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js
22812
22794
  var exports_dist_es5 = {};
22813
22795
  __export(exports_dist_es5, {
22814
22796
  fromLoginCredentials: () => fromLoginCredentials
@@ -22974,129 +22956,1151 @@ var init_resolveStaticCredentials = __esm(() => {
22974
22956
  import_client15 = __toESM(require_client2(), 1);
22975
22957
  });
22976
22958
 
22977
- // node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
22978
- var fromWebToken = (init) => async (awsIdentityProperties) => {
22979
- init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
22980
- const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
22981
- let { roleAssumerWithWebIdentity } = init;
22982
- if (!roleAssumerWithWebIdentity) {
22983
- const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __toESM(require_sts(), 1));
22984
- roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
22985
- ...init.clientConfig,
22986
- credentialProviderLogger: init.logger,
22987
- parentClientConfig: {
22988
- ...awsIdentityProperties?.callerClientConfig,
22989
- ...init.parentClientConfig
22990
- }
22991
- }, init.clientPlugins);
22992
- }
22993
- return roleAssumerWithWebIdentity({
22994
- RoleArn: roleArn,
22995
- RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
22996
- WebIdentityToken: webIdentityToken,
22997
- ProviderId: providerId,
22998
- PolicyArns: policyArns,
22999
- Policy: policy,
23000
- DurationSeconds: durationSeconds
22959
+ // node_modules/@aws-sdk/credential-provider-web-identity/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
22960
+ var require_sts2 = __commonJS((exports) => {
22961
+ var { awsEndpointFunctions: awsEndpointFunctions3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2, setCredentialFeature: setCredentialFeature12, stsRegionDefaultResolver } = require_client2();
22962
+ var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
22963
+ var { normalizeProvider: normalizeProvider4, getSmithyContext: getSmithyContext4, ServiceException: ServiceException2, NoOpLogger: NoOpLogger3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion2, loadConfigsForDefaultMode: loadConfigsForDefaultMode2, getDefaultExtensionConfiguration: getDefaultExtensionConfiguration2, resolveDefaultRuntimeConfig: resolveDefaultRuntimeConfig2, Client: Client2, makeBuilder: makeBuilder3, createAggregatedClient: createAggregatedClient2 } = require_client();
22964
+ var { Command: $Command2 } = require_client();
22965
+ exports.$Command = $Command2;
22966
+ exports.__Client = Client2;
22967
+ var { resolveDefaultsModeConfig: resolveDefaultsModeConfig2, loadConfig: loadConfig4, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2, NODE_REGION_CONFIG_OPTIONS: NODE_REGION_CONFIG_OPTIONS2, NODE_REGION_CONFIG_FILE_OPTIONS: NODE_REGION_CONFIG_FILE_OPTIONS2, resolveRegionConfig: resolveRegionConfig2 } = require_config();
22968
+ var { BinaryDecisionDiagram: BinaryDecisionDiagram3, EndpointCache: EndpointCache3, decideEndpoint: decideEndpoint3, customEndpointFunctions: customEndpointFunctions3, resolveParams: resolveParams2, resolveEndpointConfig: resolveEndpointConfig2, getEndpointPlugin: getEndpointPlugin3 } = require_endpoints();
22969
+ var { parseUrl: parseUrl3, getHttpHandlerExtensionConfiguration: getHttpHandlerExtensionConfiguration2, resolveHttpHandlerRuntimeConfig: resolveHttpHandlerRuntimeConfig2, getContentLengthPlugin: getContentLengthPlugin2 } = require_protocols();
22970
+ var { DEFAULT_RETRY_MODE: DEFAULT_RETRY_MODE2, NODE_RETRY_MODE_CONFIG_OPTIONS: NODE_RETRY_MODE_CONFIG_OPTIONS2, NODE_MAX_ATTEMPT_CONFIG_OPTIONS: NODE_MAX_ATTEMPT_CONFIG_OPTIONS2, resolveRetryConfig: resolveRetryConfig2, getRetryPlugin: getRetryPlugin2 } = require_retry();
22971
+ var { TypeRegistry: TypeRegistry3, getSchemaSerdePlugin: getSchemaSerdePlugin2 } = require_schema();
22972
+ var { resolveAwsSdkSigV4Config: resolveAwsSdkSigV4Config3, resolveAwsSdkSigV4AConfig: resolveAwsSdkSigV4AConfig2, AwsSdkSigV4Signer: AwsSdkSigV4Signer2, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2 } = require_httpAuthSchemes();
22973
+ var { SignatureV4MultiRegion: SignatureV4MultiRegion2 } = require_dist_cjs4();
22974
+ var { toUtf8: toUtf82, fromUtf8: fromUtf82, toBase64: toBase642, fromBase64: fromBase642, calculateBodyLength: calculateBodyLength2 } = require_serde();
22975
+ var { streamCollector: streamCollector2, NodeHttpHandler: NodeHttpHandler3 } = require_dist_cjs6();
22976
+ var { AwsQueryProtocol } = require_protocols2();
22977
+ var { Sha256: Sha2562 } = require_checksum();
22978
+ var q2 = "ref";
22979
+ var a3 = -1;
22980
+ var b3 = true;
22981
+ var c3 = "isSet";
22982
+ var d3 = "PartitionResult";
22983
+ var e3 = "booleanEquals";
22984
+ var f3 = "stringEquals";
22985
+ var g3 = "getAttr";
22986
+ var h3 = "us-east-1";
22987
+ var i3 = "sigv4";
22988
+ var j3 = "sts";
22989
+ var k3 = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
22990
+ var l2 = { [q2]: "Endpoint" };
22991
+ var m2 = { [q2]: "Region" };
22992
+ var n2 = { [q2]: d3 };
22993
+ var o2 = {};
22994
+ var p2 = [m2];
22995
+ var _data3 = {
22996
+ conditions: [
22997
+ [c3, [l2]],
22998
+ [c3, p2],
22999
+ ["aws.partition", p2, d3],
23000
+ [e3, [{ [q2]: "UseFIPS" }, b3]],
23001
+ [e3, [{ [q2]: "UseDualStack" }, b3]],
23002
+ [f3, [m2, "aws-global"]],
23003
+ [e3, [{ [q2]: "UseGlobalEndpoint" }, b3]],
23004
+ [f3, [m2, "eu-central-1"]],
23005
+ [e3, [{ fn: g3, argv: [n2, "supportsDualStack"] }, b3]],
23006
+ [e3, [{ fn: g3, argv: [n2, "supportsFIPS"] }, b3]],
23007
+ [f3, [m2, "ap-south-1"]],
23008
+ [f3, [m2, "eu-north-1"]],
23009
+ [f3, [m2, "eu-west-1"]],
23010
+ [f3, [m2, "eu-west-2"]],
23011
+ [f3, [m2, "eu-west-3"]],
23012
+ [f3, [m2, "sa-east-1"]],
23013
+ [f3, [m2, h3]],
23014
+ [f3, [m2, "us-east-2"]],
23015
+ [f3, [m2, "us-west-2"]],
23016
+ [f3, [m2, "us-west-1"]],
23017
+ [f3, [m2, "ca-central-1"]],
23018
+ [f3, [m2, "ap-southeast-1"]],
23019
+ [f3, [m2, "ap-northeast-1"]],
23020
+ [f3, [m2, "ap-southeast-2"]],
23021
+ [f3, [{ fn: g3, argv: [n2, "name"] }, "aws-us-gov"]]
23022
+ ],
23023
+ results: [
23024
+ [a3],
23025
+ ["https://sts.amazonaws.com", { authSchemes: [{ name: i3, signingName: j3, signingRegion: h3 }] }],
23026
+ [k3, { authSchemes: [{ name: i3, signingName: j3, signingRegion: "{Region}" }] }],
23027
+ [a3, "Invalid Configuration: FIPS and custom endpoint are not supported"],
23028
+ [a3, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
23029
+ [l2, o2],
23030
+ ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o2],
23031
+ [a3, "FIPS and DualStack are enabled, but this partition does not support one or both"],
23032
+ ["https://sts.{Region}.amazonaws.com", o2],
23033
+ ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o2],
23034
+ [a3, "FIPS is enabled but this partition does not support FIPS"],
23035
+ ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o2],
23036
+ [a3, "DualStack is enabled but this partition does not support DualStack"],
23037
+ [k3, o2],
23038
+ [a3, "Invalid Configuration: Missing Region"]
23039
+ ]
23040
+ };
23041
+ var root3 = 2;
23042
+ var r3 = 1e8;
23043
+ var nodes3 = new Int32Array([
23044
+ -1,
23045
+ 1,
23046
+ -1,
23047
+ 0,
23048
+ 30,
23049
+ 3,
23050
+ 1,
23051
+ 4,
23052
+ r3 + 14,
23053
+ 2,
23054
+ 5,
23055
+ r3 + 14,
23056
+ 3,
23057
+ 25,
23058
+ 6,
23059
+ 4,
23060
+ 24,
23061
+ 7,
23062
+ 5,
23063
+ r3 + 1,
23064
+ 8,
23065
+ 6,
23066
+ 9,
23067
+ r3 + 13,
23068
+ 7,
23069
+ r3 + 1,
23070
+ 10,
23071
+ 10,
23072
+ r3 + 1,
23073
+ 11,
23074
+ 11,
23075
+ r3 + 1,
23076
+ 12,
23077
+ 12,
23078
+ r3 + 1,
23079
+ 13,
23080
+ 13,
23081
+ r3 + 1,
23082
+ 14,
23083
+ 14,
23084
+ r3 + 1,
23085
+ 15,
23086
+ 15,
23087
+ r3 + 1,
23088
+ 16,
23089
+ 16,
23090
+ r3 + 1,
23091
+ 17,
23092
+ 17,
23093
+ r3 + 1,
23094
+ 18,
23095
+ 18,
23096
+ r3 + 1,
23097
+ 19,
23098
+ 19,
23099
+ r3 + 1,
23100
+ 20,
23101
+ 20,
23102
+ r3 + 1,
23103
+ 21,
23104
+ 21,
23105
+ r3 + 1,
23106
+ 22,
23107
+ 22,
23108
+ r3 + 1,
23109
+ 23,
23110
+ 23,
23111
+ r3 + 1,
23112
+ r3 + 2,
23113
+ 8,
23114
+ r3 + 11,
23115
+ r3 + 12,
23116
+ 4,
23117
+ 28,
23118
+ 26,
23119
+ 9,
23120
+ 27,
23121
+ r3 + 10,
23122
+ 24,
23123
+ r3 + 8,
23124
+ r3 + 9,
23125
+ 8,
23126
+ 29,
23127
+ r3 + 7,
23128
+ 9,
23129
+ r3 + 6,
23130
+ r3 + 7,
23131
+ 3,
23132
+ r3 + 3,
23133
+ 31,
23134
+ 4,
23135
+ r3 + 4,
23136
+ r3 + 5
23137
+ ]);
23138
+ var bdd3 = BinaryDecisionDiagram3.from(nodes3, root3, _data3.conditions, _data3.results);
23139
+ var cache3 = new EndpointCache3({
23140
+ size: 50,
23141
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
23001
23142
  });
23002
- };
23003
-
23004
- // node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
23005
- import { readFileSync } from "fs";
23006
- var import_client16, import_config24, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
23007
- init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
23008
- const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
23009
- const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
23010
- const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
23011
- if (!webIdentityTokenFile || !roleArn) {
23012
- throw new import_config24.CredentialsProviderError("Web identity configuration not specified", {
23013
- logger: init.logger
23014
- });
23143
+ var defaultEndpointResolver3 = (endpointParams, context = {}) => {
23144
+ return cache3.get(endpointParams, () => decideEndpoint3(bdd3, {
23145
+ endpointParams,
23146
+ logger: context.logger
23147
+ }));
23148
+ };
23149
+ customEndpointFunctions3.aws = awsEndpointFunctions3;
23150
+ var createEndpointRuleSetHttpAuthSchemeParametersProvider2 = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
23151
+ if (!input) {
23152
+ throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
23153
+ }
23154
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
23155
+ const instructionsFn = getSmithyContext4(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
23156
+ if (!instructionsFn) {
23157
+ throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
23158
+ }
23159
+ const endpointParameters = await resolveParams2(input, { getEndpointParameterInstructions: instructionsFn }, config);
23160
+ return Object.assign(defaultParameters, endpointParameters);
23161
+ };
23162
+ var _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
23163
+ return {
23164
+ operation: getSmithyContext4(context).operation,
23165
+ region: await normalizeProvider4(config.region)() || (() => {
23166
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23167
+ })()
23168
+ };
23169
+ };
23170
+ var defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider2(_defaultSTSHttpAuthSchemeParametersProvider);
23171
+ function createAwsAuthSigv4HttpAuthOption3(authParameters) {
23172
+ return {
23173
+ schemeId: "aws.auth#sigv4",
23174
+ signingProperties: {
23175
+ name: "sts",
23176
+ region: authParameters.region
23177
+ },
23178
+ propertiesExtractor: (config, context) => ({
23179
+ signingProperties: {
23180
+ config,
23181
+ context
23182
+ }
23183
+ })
23184
+ };
23015
23185
  }
23016
- const credentials = await fromWebToken({
23017
- ...init,
23018
- webIdentityToken: import_config24.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
23019
- roleArn,
23020
- roleSessionName
23021
- })(awsIdentityProperties);
23022
- if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
23023
- import_client16.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
23186
+ function createAwsAuthSigv4aHttpAuthOption2(authParameters) {
23187
+ return {
23188
+ schemeId: "aws.auth#sigv4a",
23189
+ signingProperties: {
23190
+ name: "sts",
23191
+ region: authParameters.region
23192
+ },
23193
+ propertiesExtractor: (config, context) => ({
23194
+ signingProperties: {
23195
+ config,
23196
+ context
23197
+ }
23198
+ })
23199
+ };
23024
23200
  }
23025
- return credentials;
23026
- };
23027
- var init_fromTokenFile = __esm(() => {
23028
- import_client16 = __toESM(require_client2(), 1);
23029
- import_config24 = __toESM(require_config(), 1);
23030
- });
23031
-
23032
- // node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
23033
- var exports_dist_es7 = {};
23034
- __export(exports_dist_es7, {
23035
- fromWebToken: () => fromWebToken,
23036
- fromTokenFile: () => fromTokenFile
23037
- });
23038
- var init_dist_es8 = __esm(() => {
23039
- init_fromTokenFile();
23040
- });
23041
-
23042
- // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
23043
- var import_client17, 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, resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
23044
- const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
23045
- const credentials = await fromTokenFile2({
23046
- webIdentityTokenFile: profile.web_identity_token_file,
23047
- roleArn: profile.role_arn,
23048
- roleSessionName: profile.role_session_name,
23049
- roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
23050
- logger: options.logger,
23051
- parentClientConfig: options.parentClientConfig
23052
- })({
23053
- callerClientConfig
23201
+ function createSmithyApiNoAuthHttpAuthOption2(authParameters) {
23202
+ return {
23203
+ schemeId: "smithy.api#noAuth"
23204
+ };
23205
+ }
23206
+ var createEndpointRuleSetHttpAuthSchemeProvider2 = (defaultEndpointResolver4, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
23207
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
23208
+ const endpoint = defaultEndpointResolver4(authParameters);
23209
+ const authSchemes = endpoint.properties?.authSchemes;
23210
+ if (!authSchemes) {
23211
+ return defaultHttpAuthSchemeResolver(authParameters);
23212
+ }
23213
+ const options = [];
23214
+ for (const scheme of authSchemes) {
23215
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
23216
+ const name = resolvedName.toLowerCase();
23217
+ if (resolvedName !== name) {
23218
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
23219
+ }
23220
+ let schemeId;
23221
+ if (name === "sigv4a") {
23222
+ schemeId = "aws.auth#sigv4a";
23223
+ const sigv4Present = authSchemes.find((s2) => {
23224
+ const name2 = s2.name.toLowerCase();
23225
+ return name2 !== "sigv4a" && name2.startsWith("sigv4");
23226
+ });
23227
+ if (SignatureV4MultiRegion2.sigv4aDependency() === "none" && sigv4Present) {
23228
+ continue;
23229
+ }
23230
+ } else if (name.startsWith("sigv4")) {
23231
+ schemeId = "aws.auth#sigv4";
23232
+ } else {
23233
+ throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
23234
+ }
23235
+ const createOption = createHttpAuthOptionFunctions[schemeId];
23236
+ if (!createOption) {
23237
+ throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
23238
+ }
23239
+ const option = createOption(authParameters);
23240
+ option.schemeId = schemeId;
23241
+ option.signingProperties = { ...option.signingProperties || {}, ...rest, ...properties };
23242
+ options.push(option);
23243
+ }
23244
+ return options;
23245
+ };
23246
+ return endpointRuleSetHttpAuthSchemeProvider;
23247
+ };
23248
+ var _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
23249
+ const options = [];
23250
+ switch (authParameters.operation) {
23251
+ case "AssumeRoleWithWebIdentity": {
23252
+ options.push(createSmithyApiNoAuthHttpAuthOption2());
23253
+ options.push(createAwsAuthSigv4aHttpAuthOption2(authParameters));
23254
+ break;
23255
+ }
23256
+ default: {
23257
+ options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
23258
+ options.push(createAwsAuthSigv4aHttpAuthOption2(authParameters));
23259
+ }
23260
+ }
23261
+ return options;
23262
+ };
23263
+ var defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider2(defaultEndpointResolver3, _defaultSTSHttpAuthSchemeProvider, {
23264
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption3,
23265
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption2,
23266
+ "smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption2
23054
23267
  });
23055
- return import_client17.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
23056
- };
23057
- var init_resolveWebIdentityCredentials = __esm(() => {
23058
- import_client17 = __toESM(require_client2(), 1);
23059
- });
23268
+ var resolveHttpAuthSchemeConfig3 = (config) => {
23269
+ const config_0 = resolveAwsSdkSigV4Config3(config);
23270
+ const config_1 = resolveAwsSdkSigV4AConfig2(config_0);
23271
+ return Object.assign(config_1, {
23272
+ authSchemePreference: normalizeProvider4(config.authSchemePreference ?? [])
23273
+ });
23274
+ };
23275
+ var resolveClientEndpointParameters3 = (options) => {
23276
+ return Object.assign(options, {
23277
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23278
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
23279
+ useGlobalEndpoint: options.useGlobalEndpoint ?? false,
23280
+ defaultSigningName: "sts"
23281
+ });
23282
+ };
23283
+ var commonParams3 = {
23284
+ UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
23285
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
23286
+ Endpoint: { type: "builtInParams", name: "endpoint" },
23287
+ Region: { type: "builtInParams", name: "region" },
23288
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
23289
+ };
23290
+ var version2 = "3.997.43";
23291
+ var packageInfo2 = {
23292
+ version: version2
23293
+ };
23060
23294
 
23061
- // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
23062
- var import_config25, resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
23063
- const data = profiles[profileName];
23064
- if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
23065
- return resolveStaticCredentials(data, options);
23066
- }
23067
- if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
23068
- return resolveAssumeRoleCredentials(profileName, profiles, options, callerClientConfig, visitedProfiles, resolveProfileData);
23295
+ class STSServiceException extends ServiceException2 {
23296
+ constructor(options) {
23297
+ super(options);
23298
+ Object.setPrototypeOf(this, STSServiceException.prototype);
23299
+ }
23069
23300
  }
23070
- if (isStaticCredsProfile(data)) {
23071
- return resolveStaticCredentials(data, options);
23301
+
23302
+ class ExpiredTokenException extends STSServiceException {
23303
+ name = "ExpiredTokenException";
23304
+ $fault = "client";
23305
+ constructor(opts) {
23306
+ super({
23307
+ name: "ExpiredTokenException",
23308
+ $fault: "client",
23309
+ ...opts
23310
+ });
23311
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
23312
+ }
23072
23313
  }
23073
- if (isWebIdentityProfile(data)) {
23074
- return resolveWebIdentityCredentials(data, options, callerClientConfig);
23314
+
23315
+ class MalformedPolicyDocumentException extends STSServiceException {
23316
+ name = "MalformedPolicyDocumentException";
23317
+ $fault = "client";
23318
+ constructor(opts) {
23319
+ super({
23320
+ name: "MalformedPolicyDocumentException",
23321
+ $fault: "client",
23322
+ ...opts
23323
+ });
23324
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
23325
+ }
23075
23326
  }
23076
- if (isProcessProfile(data)) {
23077
- return resolveProcessCredentials2(options, profileName);
23327
+
23328
+ class PackedPolicyTooLargeException extends STSServiceException {
23329
+ name = "PackedPolicyTooLargeException";
23330
+ $fault = "client";
23331
+ constructor(opts) {
23332
+ super({
23333
+ name: "PackedPolicyTooLargeException",
23334
+ $fault: "client",
23335
+ ...opts
23336
+ });
23337
+ Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
23338
+ }
23078
23339
  }
23079
- if (isSsoProfile2(data)) {
23080
- return await resolveSsoCredentials(profileName, data, options, callerClientConfig);
23340
+
23341
+ class RegionDisabledException extends STSServiceException {
23342
+ name = "RegionDisabledException";
23343
+ $fault = "client";
23344
+ constructor(opts) {
23345
+ super({
23346
+ name: "RegionDisabledException",
23347
+ $fault: "client",
23348
+ ...opts
23349
+ });
23350
+ Object.setPrototypeOf(this, RegionDisabledException.prototype);
23351
+ }
23081
23352
  }
23082
- if (isLoginProfile(data)) {
23083
- return resolveLoginCredentials(profileName, options, callerClientConfig);
23353
+
23354
+ class IDPRejectedClaimException extends STSServiceException {
23355
+ name = "IDPRejectedClaimException";
23356
+ $fault = "client";
23357
+ constructor(opts) {
23358
+ super({
23359
+ name: "IDPRejectedClaimException",
23360
+ $fault: "client",
23361
+ ...opts
23362
+ });
23363
+ Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
23364
+ }
23084
23365
  }
23085
- throw new import_config25.CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
23086
- };
23087
- var init_resolveProfileData = __esm(() => {
23088
- init_resolveAssumeRoleCredentials();
23089
- init_resolveLoginCredentials();
23090
- init_resolveProcessCredentials2();
23091
- init_resolveSsoCredentials();
23092
- init_resolveStaticCredentials();
23093
- init_resolveWebIdentityCredentials();
23094
- import_config25 = __toESM(require_config(), 1);
23095
- });
23096
23366
 
23097
- // node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
23098
- var import_config26, fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
23099
- init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
23367
+ class InvalidIdentityTokenException extends STSServiceException {
23368
+ name = "InvalidIdentityTokenException";
23369
+ $fault = "client";
23370
+ constructor(opts) {
23371
+ super({
23372
+ name: "InvalidIdentityTokenException",
23373
+ $fault: "client",
23374
+ ...opts
23375
+ });
23376
+ Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
23377
+ }
23378
+ }
23379
+
23380
+ class IDPCommunicationErrorException extends STSServiceException {
23381
+ name = "IDPCommunicationErrorException";
23382
+ $fault = "client";
23383
+ $retryable = {};
23384
+ constructor(opts) {
23385
+ super({
23386
+ name: "IDPCommunicationErrorException",
23387
+ $fault: "client",
23388
+ ...opts
23389
+ });
23390
+ Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
23391
+ }
23392
+ }
23393
+ var _A2 = "Arn";
23394
+ var _AKI2 = "AccessKeyId";
23395
+ var _AR2 = "AssumeRole";
23396
+ var _ARI2 = "AssumedRoleId";
23397
+ var _ARR = "AssumeRoleRequest";
23398
+ var _ARRs = "AssumeRoleResponse";
23399
+ var _ARU = "AssumedRoleUser";
23400
+ var _ARWWI = "AssumeRoleWithWebIdentity";
23401
+ var _ARWWIR = "AssumeRoleWithWebIdentityRequest";
23402
+ var _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
23403
+ var _Au = "Audience";
23404
+ var _C2 = "Credentials";
23405
+ var _CA2 = "ContextAssertion";
23406
+ var _DS = "DurationSeconds";
23407
+ var _E2 = "Expiration";
23408
+ var _EI = "ExternalId";
23409
+ var _ETE = "ExpiredTokenException";
23410
+ var _IDPCEE = "IDPCommunicationErrorException";
23411
+ var _IDPRCE = "IDPRejectedClaimException";
23412
+ var _IITE = "InvalidIdentityTokenException";
23413
+ var _K2 = "Key";
23414
+ var _MPDE = "MalformedPolicyDocumentException";
23415
+ var _P2 = "Policy";
23416
+ var _PA = "PolicyArns";
23417
+ var _PAr = "ProviderArn";
23418
+ var _PC2 = "ProvidedContexts";
23419
+ var _PCLT = "ProvidedContextsListType";
23420
+ var _PCr = "ProvidedContext";
23421
+ var _PDT = "PolicyDescriptorType";
23422
+ var _PI2 = "ProviderId";
23423
+ var _PPS = "PackedPolicySize";
23424
+ var _PPTLE = "PackedPolicyTooLargeException";
23425
+ var _Pr2 = "Provider";
23426
+ var _RA = "RoleArn";
23427
+ var _RDE = "RegionDisabledException";
23428
+ var _RSN = "RoleSessionName";
23429
+ var _SAK2 = "SecretAccessKey";
23430
+ var _SFWIT = "SubjectFromWebIdentityToken";
23431
+ var _SI = "SourceIdentity";
23432
+ var _SN = "SerialNumber";
23433
+ var _ST2 = "SessionToken";
23434
+ var _T2 = "Tags";
23435
+ var _TC2 = "TokenCode";
23436
+ var _TTK = "TransitiveTagKeys";
23437
+ var _Ta2 = "Tag";
23438
+ var _V2 = "Value";
23439
+ var _WIT = "WebIdentityToken";
23440
+ var _a = "arn";
23441
+ var _aKST = "accessKeySecretType";
23442
+ var _aQE = "awsQueryError";
23443
+ var _c3 = "client";
23444
+ var _cTT = "clientTokenType";
23445
+ var _e3 = "error";
23446
+ var _hE3 = "httpError";
23447
+ var _m3 = "message";
23448
+ var _pDLT = "policyDescriptorListType";
23449
+ var _s3 = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
23450
+ var _tLT = "tagListType";
23451
+ var n03 = "com.amazonaws.sts";
23452
+ var _s_registry3 = TypeRegistry3.for(_s3);
23453
+ var STSServiceException$ = [-3, _s3, "STSServiceException", 0, [], []];
23454
+ _s_registry3.registerError(STSServiceException$, STSServiceException);
23455
+ var n0_registry3 = TypeRegistry3.for(n03);
23456
+ var ExpiredTokenException$ = [
23457
+ -3,
23458
+ n03,
23459
+ _ETE,
23460
+ { [_aQE]: [`ExpiredTokenException`, 400], [_e3]: _c3, [_hE3]: 400 },
23461
+ [_m3],
23462
+ [0]
23463
+ ];
23464
+ n0_registry3.registerError(ExpiredTokenException$, ExpiredTokenException);
23465
+ var IDPCommunicationErrorException$ = [
23466
+ -3,
23467
+ n03,
23468
+ _IDPCEE,
23469
+ { [_aQE]: [`IDPCommunicationError`, 400], [_e3]: _c3, [_hE3]: 400 },
23470
+ [_m3],
23471
+ [0]
23472
+ ];
23473
+ n0_registry3.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
23474
+ var IDPRejectedClaimException$ = [
23475
+ -3,
23476
+ n03,
23477
+ _IDPRCE,
23478
+ { [_aQE]: [`IDPRejectedClaim`, 403], [_e3]: _c3, [_hE3]: 403 },
23479
+ [_m3],
23480
+ [0]
23481
+ ];
23482
+ n0_registry3.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
23483
+ var InvalidIdentityTokenException$ = [
23484
+ -3,
23485
+ n03,
23486
+ _IITE,
23487
+ { [_aQE]: [`InvalidIdentityToken`, 400], [_e3]: _c3, [_hE3]: 400 },
23488
+ [_m3],
23489
+ [0]
23490
+ ];
23491
+ n0_registry3.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
23492
+ var MalformedPolicyDocumentException$ = [
23493
+ -3,
23494
+ n03,
23495
+ _MPDE,
23496
+ { [_aQE]: [`MalformedPolicyDocument`, 400], [_e3]: _c3, [_hE3]: 400 },
23497
+ [_m3],
23498
+ [0]
23499
+ ];
23500
+ n0_registry3.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
23501
+ var PackedPolicyTooLargeException$ = [
23502
+ -3,
23503
+ n03,
23504
+ _PPTLE,
23505
+ { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e3]: _c3, [_hE3]: 400 },
23506
+ [_m3],
23507
+ [0]
23508
+ ];
23509
+ n0_registry3.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
23510
+ var RegionDisabledException$ = [
23511
+ -3,
23512
+ n03,
23513
+ _RDE,
23514
+ { [_aQE]: [`RegionDisabledException`, 403], [_e3]: _c3, [_hE3]: 403 },
23515
+ [_m3],
23516
+ [0]
23517
+ ];
23518
+ n0_registry3.registerError(RegionDisabledException$, RegionDisabledException);
23519
+ var errorTypeRegistries3 = [
23520
+ _s_registry3,
23521
+ n0_registry3
23522
+ ];
23523
+ var accessKeySecretType = [0, n03, _aKST, 8, 0];
23524
+ var clientTokenType = [0, n03, _cTT, 8, 0];
23525
+ var AssumedRoleUser$ = [
23526
+ 3,
23527
+ n03,
23528
+ _ARU,
23529
+ 0,
23530
+ [_ARI2, _A2],
23531
+ [0, 0],
23532
+ 2
23533
+ ];
23534
+ var AssumeRoleRequest$ = [
23535
+ 3,
23536
+ n03,
23537
+ _ARR,
23538
+ 0,
23539
+ [_RA, _RSN, _PA, _P2, _DS, _T2, _TTK, _EI, _SN, _TC2, _SI, _PC2],
23540
+ [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
23541
+ 2
23542
+ ];
23543
+ var AssumeRoleResponse$ = [
23544
+ 3,
23545
+ n03,
23546
+ _ARRs,
23547
+ 0,
23548
+ [_C2, _ARU, _PPS, _SI],
23549
+ [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
23550
+ ];
23551
+ var AssumeRoleWithWebIdentityRequest$ = [
23552
+ 3,
23553
+ n03,
23554
+ _ARWWIR,
23555
+ 0,
23556
+ [_RA, _RSN, _WIT, _PI2, _PA, _P2, _DS],
23557
+ [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
23558
+ 3
23559
+ ];
23560
+ var AssumeRoleWithWebIdentityResponse$ = [
23561
+ 3,
23562
+ n03,
23563
+ _ARWWIRs,
23564
+ 0,
23565
+ [_C2, _SFWIT, _ARU, _PPS, _Pr2, _Au, _SI],
23566
+ [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
23567
+ ];
23568
+ var Credentials$ = [
23569
+ 3,
23570
+ n03,
23571
+ _C2,
23572
+ 0,
23573
+ [_AKI2, _SAK2, _ST2, _E2],
23574
+ [0, [() => accessKeySecretType, 0], 0, 4],
23575
+ 4
23576
+ ];
23577
+ var PolicyDescriptorType$ = [
23578
+ 3,
23579
+ n03,
23580
+ _PDT,
23581
+ 0,
23582
+ [_a],
23583
+ [0]
23584
+ ];
23585
+ var ProvidedContext$ = [
23586
+ 3,
23587
+ n03,
23588
+ _PCr,
23589
+ 0,
23590
+ [_PAr, _CA2],
23591
+ [0, 0]
23592
+ ];
23593
+ var Tag$2 = [
23594
+ 3,
23595
+ n03,
23596
+ _Ta2,
23597
+ 0,
23598
+ [_K2, _V2],
23599
+ [0, 0],
23600
+ 2
23601
+ ];
23602
+ var policyDescriptorListType = [
23603
+ 1,
23604
+ n03,
23605
+ _pDLT,
23606
+ 0,
23607
+ () => PolicyDescriptorType$
23608
+ ];
23609
+ var ProvidedContextsListType = [
23610
+ 1,
23611
+ n03,
23612
+ _PCLT,
23613
+ 0,
23614
+ () => ProvidedContext$
23615
+ ];
23616
+ var tagListType = [
23617
+ 1,
23618
+ n03,
23619
+ _tLT,
23620
+ 0,
23621
+ () => Tag$2
23622
+ ];
23623
+ var AssumeRole$ = [
23624
+ 9,
23625
+ n03,
23626
+ _AR2,
23627
+ 0,
23628
+ () => AssumeRoleRequest$,
23629
+ () => AssumeRoleResponse$
23630
+ ];
23631
+ var AssumeRoleWithWebIdentity$ = [
23632
+ 9,
23633
+ n03,
23634
+ _ARWWI,
23635
+ 0,
23636
+ () => AssumeRoleWithWebIdentityRequest$,
23637
+ () => AssumeRoleWithWebIdentityResponse$
23638
+ ];
23639
+ var getRuntimeConfig$12 = (config) => {
23640
+ return {
23641
+ apiVersion: "2011-06-15",
23642
+ base64Decoder: config?.base64Decoder ?? fromBase642,
23643
+ base64Encoder: config?.base64Encoder ?? toBase642,
23644
+ disableHostPrefix: config?.disableHostPrefix ?? false,
23645
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver3,
23646
+ extensions: config?.extensions ?? [],
23647
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
23648
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
23649
+ {
23650
+ schemeId: "aws.auth#sigv4",
23651
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
23652
+ signer: new AwsSdkSigV4Signer2
23653
+ },
23654
+ {
23655
+ schemeId: "aws.auth#sigv4a",
23656
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
23657
+ signer: new AwsSdkSigV4ASigner
23658
+ },
23659
+ {
23660
+ schemeId: "smithy.api#noAuth",
23661
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
23662
+ signer: new NoAuthSigner2
23663
+ }
23664
+ ],
23665
+ logger: config?.logger ?? new NoOpLogger3,
23666
+ protocol: config?.protocol ?? AwsQueryProtocol,
23667
+ protocolSettings: config?.protocolSettings ?? {
23668
+ defaultNamespace: "com.amazonaws.sts",
23669
+ errorTypeRegistries: errorTypeRegistries3,
23670
+ xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
23671
+ version: "2011-06-15",
23672
+ serviceTarget: "AWSSecurityTokenServiceV20110615"
23673
+ },
23674
+ serviceId: config?.serviceId ?? "STS",
23675
+ sha256: config?.sha256 ?? Sha2562,
23676
+ signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion2,
23677
+ urlParser: config?.urlParser ?? parseUrl3,
23678
+ utf8Decoder: config?.utf8Decoder ?? fromUtf82,
23679
+ utf8Encoder: config?.utf8Encoder ?? toUtf82
23680
+ };
23681
+ };
23682
+ var getRuntimeConfig2 = (config) => {
23683
+ emitWarningIfUnsupportedVersion2(process.version);
23684
+ const defaultsMode = resolveDefaultsModeConfig2(config);
23685
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode2);
23686
+ const clientSharedValues = getRuntimeConfig$12(config);
23687
+ emitWarningIfUnsupportedVersion$12(process.version);
23688
+ const loaderConfig = {
23689
+ profile: config?.profile,
23690
+ logger: clientSharedValues.logger
23691
+ };
23692
+ return {
23693
+ ...clientSharedValues,
23694
+ ...config,
23695
+ runtime: "node",
23696
+ defaultsMode,
23697
+ authSchemePreference: config?.authSchemePreference ?? loadConfig4(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2, loaderConfig),
23698
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength2,
23699
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider2({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo2.version }),
23700
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
23701
+ {
23702
+ schemeId: "aws.auth#sigv4",
23703
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
23704
+ signer: new AwsSdkSigV4Signer2
23705
+ },
23706
+ {
23707
+ schemeId: "aws.auth#sigv4a",
23708
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
23709
+ signer: new AwsSdkSigV4ASigner
23710
+ },
23711
+ {
23712
+ schemeId: "smithy.api#noAuth",
23713
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
23714
+ signer: new NoAuthSigner2
23715
+ }
23716
+ ],
23717
+ maxAttempts: config?.maxAttempts ?? loadConfig4(NODE_MAX_ATTEMPT_CONFIG_OPTIONS2, config),
23718
+ region: config?.region ?? loadConfig4(NODE_REGION_CONFIG_OPTIONS2, { ...NODE_REGION_CONFIG_FILE_OPTIONS2, ...loaderConfig }),
23719
+ requestHandler: NodeHttpHandler3.create(config?.requestHandler ?? defaultConfigProvider),
23720
+ retryMode: config?.retryMode ?? loadConfig4({
23721
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS2,
23722
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE2
23723
+ }, config),
23724
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig4(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
23725
+ streamCollector: config?.streamCollector ?? streamCollector2,
23726
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig4(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2, loaderConfig),
23727
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig4(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2, loaderConfig),
23728
+ userAgentAppId: config?.userAgentAppId ?? loadConfig4(NODE_APP_ID_CONFIG_OPTIONS2, loaderConfig)
23729
+ };
23730
+ };
23731
+ var getHttpAuthExtensionConfiguration2 = (runtimeConfig) => {
23732
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
23733
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
23734
+ let _credentials = runtimeConfig.credentials;
23735
+ return {
23736
+ setHttpAuthScheme(httpAuthScheme) {
23737
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
23738
+ if (index === -1) {
23739
+ _httpAuthSchemes.push(httpAuthScheme);
23740
+ } else {
23741
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
23742
+ }
23743
+ },
23744
+ httpAuthSchemes() {
23745
+ return _httpAuthSchemes;
23746
+ },
23747
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
23748
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
23749
+ },
23750
+ httpAuthSchemeProvider() {
23751
+ return _httpAuthSchemeProvider;
23752
+ },
23753
+ setCredentials(credentials) {
23754
+ _credentials = credentials;
23755
+ },
23756
+ credentials() {
23757
+ return _credentials;
23758
+ }
23759
+ };
23760
+ };
23761
+ var resolveHttpAuthRuntimeConfig2 = (config) => {
23762
+ return {
23763
+ httpAuthSchemes: config.httpAuthSchemes(),
23764
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
23765
+ credentials: config.credentials()
23766
+ };
23767
+ };
23768
+ var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
23769
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration2(runtimeConfig), getDefaultExtensionConfiguration2(runtimeConfig), getHttpHandlerExtensionConfiguration2(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
23770
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
23771
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration2(extensionConfiguration), resolveDefaultRuntimeConfig2(extensionConfiguration), resolveHttpHandlerRuntimeConfig2(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
23772
+ };
23773
+
23774
+ class STSClient extends Client2 {
23775
+ config;
23776
+ constructor(...[configuration]) {
23777
+ const _config_0 = getRuntimeConfig2(configuration || {});
23778
+ super(_config_0);
23779
+ this.initConfig = _config_0;
23780
+ const _config_1 = resolveClientEndpointParameters3(_config_0);
23781
+ const _config_2 = resolveUserAgentConfig2(_config_1);
23782
+ const _config_3 = resolveRetryConfig2(_config_2);
23783
+ const _config_4 = resolveRegionConfig2(_config_3);
23784
+ const _config_5 = resolveHostHeaderConfig2(_config_4);
23785
+ const _config_6 = resolveEndpointConfig2(_config_5);
23786
+ const _config_7 = resolveHttpAuthSchemeConfig3(_config_6);
23787
+ const _config_8 = resolveRuntimeExtensions2(_config_7, configuration?.extensions || []);
23788
+ this.config = _config_8;
23789
+ this.middlewareStack.use(getSchemaSerdePlugin2(this.config));
23790
+ this.middlewareStack.use(getUserAgentPlugin2(this.config));
23791
+ this.middlewareStack.use(getRetryPlugin2(this.config));
23792
+ this.middlewareStack.use(getContentLengthPlugin2(this.config));
23793
+ this.middlewareStack.use(getHostHeaderPlugin2(this.config));
23794
+ this.middlewareStack.use(getLoggerPlugin2(this.config));
23795
+ this.middlewareStack.use(getRecursionDetectionPlugin2(this.config));
23796
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin2(this.config, {
23797
+ httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
23798
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig2({
23799
+ "aws.auth#sigv4": config.credentials,
23800
+ "aws.auth#sigv4a": config.credentials
23801
+ })
23802
+ }));
23803
+ this.middlewareStack.use(getHttpSigningPlugin2(this.config));
23804
+ }
23805
+ destroy() {
23806
+ super.destroy();
23807
+ }
23808
+ }
23809
+ var command3 = makeBuilder3(commonParams3, "AWSSecurityTokenServiceV20110615", "STSClient", getEndpointPlugin3);
23810
+ var _ep03 = {};
23811
+ var _mw03 = (Command, cs, config, o3) => [];
23812
+
23813
+ class AssumeRoleCommand extends command3(_ep03, _mw03, "AssumeRole", AssumeRole$) {
23814
+ }
23815
+
23816
+ class AssumeRoleWithWebIdentityCommand extends command3(_ep03, _mw03, "AssumeRoleWithWebIdentity", AssumeRoleWithWebIdentity$) {
23817
+ }
23818
+ var commands2 = {
23819
+ AssumeRoleCommand,
23820
+ AssumeRoleWithWebIdentityCommand
23821
+ };
23822
+
23823
+ class STS extends STSClient {
23824
+ }
23825
+ createAggregatedClient2(commands2, STS);
23826
+ var getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
23827
+ if (typeof assumedRoleUser?.Arn === "string") {
23828
+ const arnComponents = assumedRoleUser.Arn.split(":");
23829
+ if (arnComponents.length > 4 && arnComponents[4] !== "") {
23830
+ return arnComponents[4];
23831
+ }
23832
+ }
23833
+ return;
23834
+ };
23835
+ var resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
23836
+ const region = typeof _region === "function" ? await _region() : _region;
23837
+ const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
23838
+ let stsDefaultRegion = "";
23839
+ const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver(loaderConfig)());
23840
+ credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
23841
+ return resolvedRegion;
23842
+ };
23843
+ var getDefaultRoleAssumer$1 = (stsOptions, STSClient2) => {
23844
+ let stsClient;
23845
+ let closureSourceCreds;
23846
+ return async (sourceCreds, params) => {
23847
+ closureSourceCreds = sourceCreds;
23848
+ if (!stsClient) {
23849
+ const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
23850
+ const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
23851
+ logger,
23852
+ profile
23853
+ });
23854
+ const isCompatibleRequestHandler = !isH2(requestHandler);
23855
+ stsClient = new STSClient2({
23856
+ ...stsOptions,
23857
+ userAgentAppId,
23858
+ profile,
23859
+ credentialDefaultProvider: () => async () => closureSourceCreds,
23860
+ region: resolvedRegion,
23861
+ requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
23862
+ logger
23863
+ });
23864
+ }
23865
+ const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
23866
+ if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
23867
+ throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
23868
+ }
23869
+ const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
23870
+ const credentials = {
23871
+ accessKeyId: Credentials.AccessKeyId,
23872
+ secretAccessKey: Credentials.SecretAccessKey,
23873
+ sessionToken: Credentials.SessionToken,
23874
+ expiration: Credentials.Expiration,
23875
+ ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
23876
+ ...accountId && { accountId }
23877
+ };
23878
+ setCredentialFeature12(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
23879
+ return credentials;
23880
+ };
23881
+ };
23882
+ var getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient2) => {
23883
+ let stsClient;
23884
+ return async (params) => {
23885
+ if (!stsClient) {
23886
+ const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
23887
+ const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
23888
+ logger,
23889
+ profile
23890
+ });
23891
+ const isCompatibleRequestHandler = !isH2(requestHandler);
23892
+ stsClient = new STSClient2({
23893
+ ...stsOptions,
23894
+ userAgentAppId,
23895
+ profile,
23896
+ region: resolvedRegion,
23897
+ requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
23898
+ logger
23899
+ });
23900
+ }
23901
+ const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
23902
+ if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
23903
+ throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
23904
+ }
23905
+ const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
23906
+ const credentials = {
23907
+ accessKeyId: Credentials.AccessKeyId,
23908
+ secretAccessKey: Credentials.SecretAccessKey,
23909
+ sessionToken: Credentials.SessionToken,
23910
+ expiration: Credentials.Expiration,
23911
+ ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
23912
+ ...accountId && { accountId }
23913
+ };
23914
+ if (accountId) {
23915
+ setCredentialFeature12(credentials, "RESOLVED_ACCOUNT_ID", "T");
23916
+ }
23917
+ setCredentialFeature12(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
23918
+ return credentials;
23919
+ };
23920
+ };
23921
+ var isH2 = (requestHandler) => {
23922
+ return requestHandler?.metadata?.handlerProtocol === "h2";
23923
+ };
23924
+ var getCustomizableStsClientCtor = (baseCtor, customizations) => {
23925
+ if (!customizations)
23926
+ return baseCtor;
23927
+ else
23928
+ return class CustomizableSTSClient extends baseCtor {
23929
+ constructor(config) {
23930
+ super(config);
23931
+ for (const customization of customizations) {
23932
+ this.middlewareStack.use(customization);
23933
+ }
23934
+ }
23935
+ };
23936
+ };
23937
+ var getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
23938
+ var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
23939
+ var decorateDefaultCredentialProvider = (provider) => (input) => provider({
23940
+ roleAssumer: getDefaultRoleAssumer(input),
23941
+ roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
23942
+ ...input
23943
+ });
23944
+ exports.AssumeRole$ = AssumeRole$;
23945
+ exports.AssumeRoleCommand = AssumeRoleCommand;
23946
+ exports.AssumeRoleRequest$ = AssumeRoleRequest$;
23947
+ exports.AssumeRoleResponse$ = AssumeRoleResponse$;
23948
+ exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
23949
+ exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
23950
+ exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
23951
+ exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
23952
+ exports.AssumedRoleUser$ = AssumedRoleUser$;
23953
+ exports.Credentials$ = Credentials$;
23954
+ exports.ExpiredTokenException = ExpiredTokenException;
23955
+ exports.ExpiredTokenException$ = ExpiredTokenException$;
23956
+ exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
23957
+ exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
23958
+ exports.IDPRejectedClaimException = IDPRejectedClaimException;
23959
+ exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
23960
+ exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
23961
+ exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
23962
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
23963
+ exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
23964
+ exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
23965
+ exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
23966
+ exports.PolicyDescriptorType$ = PolicyDescriptorType$;
23967
+ exports.ProvidedContext$ = ProvidedContext$;
23968
+ exports.RegionDisabledException = RegionDisabledException;
23969
+ exports.RegionDisabledException$ = RegionDisabledException$;
23970
+ exports.STS = STS;
23971
+ exports.STSClient = STSClient;
23972
+ exports.STSServiceException = STSServiceException;
23973
+ exports.STSServiceException$ = STSServiceException$;
23974
+ exports.Tag$ = Tag$2;
23975
+ exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
23976
+ exports.errorTypeRegistries = errorTypeRegistries3;
23977
+ exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
23978
+ exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
23979
+ });
23980
+
23981
+ // node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
23982
+ var fromWebToken = (init) => async (awsIdentityProperties) => {
23983
+ init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
23984
+ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
23985
+ let { roleAssumerWithWebIdentity } = init;
23986
+ if (!roleAssumerWithWebIdentity) {
23987
+ const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __toESM(require_sts2(), 1));
23988
+ roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
23989
+ ...init.clientConfig,
23990
+ credentialProviderLogger: init.logger,
23991
+ parentClientConfig: {
23992
+ ...awsIdentityProperties?.callerClientConfig,
23993
+ ...init.parentClientConfig
23994
+ }
23995
+ }, init.clientPlugins);
23996
+ }
23997
+ return roleAssumerWithWebIdentity({
23998
+ RoleArn: roleArn,
23999
+ RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
24000
+ WebIdentityToken: webIdentityToken,
24001
+ ProviderId: providerId,
24002
+ PolicyArns: policyArns,
24003
+ Policy: policy,
24004
+ DurationSeconds: durationSeconds
24005
+ });
24006
+ };
24007
+
24008
+ // node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
24009
+ import { readFileSync } from "fs";
24010
+ var import_client16, import_config24, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
24011
+ init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
24012
+ const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
24013
+ const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
24014
+ const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
24015
+ if (!webIdentityTokenFile || !roleArn) {
24016
+ throw new import_config24.CredentialsProviderError("Web identity configuration not specified", {
24017
+ logger: init.logger
24018
+ });
24019
+ }
24020
+ const credentials = await fromWebToken({
24021
+ ...init,
24022
+ webIdentityToken: import_config24.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
24023
+ roleArn,
24024
+ roleSessionName
24025
+ })(awsIdentityProperties);
24026
+ if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
24027
+ import_client16.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
24028
+ }
24029
+ return credentials;
24030
+ };
24031
+ var init_fromTokenFile = __esm(() => {
24032
+ import_client16 = __toESM(require_client2(), 1);
24033
+ import_config24 = __toESM(require_config(), 1);
24034
+ });
24035
+
24036
+ // node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
24037
+ var exports_dist_es7 = {};
24038
+ __export(exports_dist_es7, {
24039
+ fromWebToken: () => fromWebToken,
24040
+ fromTokenFile: () => fromTokenFile
24041
+ });
24042
+ var init_dist_es8 = __esm(() => {
24043
+ init_fromTokenFile();
24044
+ });
24045
+
24046
+ // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
24047
+ var import_client17, 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, resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
24048
+ const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
24049
+ const credentials = await fromTokenFile2({
24050
+ webIdentityTokenFile: profile.web_identity_token_file,
24051
+ roleArn: profile.role_arn,
24052
+ roleSessionName: profile.role_session_name,
24053
+ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
24054
+ logger: options.logger,
24055
+ parentClientConfig: options.parentClientConfig
24056
+ })({
24057
+ callerClientConfig
24058
+ });
24059
+ return import_client17.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
24060
+ };
24061
+ var init_resolveWebIdentityCredentials = __esm(() => {
24062
+ import_client17 = __toESM(require_client2(), 1);
24063
+ });
24064
+
24065
+ // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
24066
+ var import_config25, resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
24067
+ const data = profiles[profileName];
24068
+ if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
24069
+ return resolveStaticCredentials(data, options);
24070
+ }
24071
+ if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
24072
+ return resolveAssumeRoleCredentials(profileName, profiles, options, callerClientConfig, visitedProfiles, resolveProfileData);
24073
+ }
24074
+ if (isStaticCredsProfile(data)) {
24075
+ return resolveStaticCredentials(data, options);
24076
+ }
24077
+ if (isWebIdentityProfile(data)) {
24078
+ return resolveWebIdentityCredentials(data, options, callerClientConfig);
24079
+ }
24080
+ if (isProcessProfile(data)) {
24081
+ return resolveProcessCredentials2(options, profileName);
24082
+ }
24083
+ if (isSsoProfile2(data)) {
24084
+ return await resolveSsoCredentials(profileName, data, options, callerClientConfig);
24085
+ }
24086
+ if (isLoginProfile(data)) {
24087
+ return resolveLoginCredentials(profileName, options, callerClientConfig);
24088
+ }
24089
+ throw new import_config25.CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
24090
+ };
24091
+ var init_resolveProfileData = __esm(() => {
24092
+ init_resolveAssumeRoleCredentials();
24093
+ init_resolveLoginCredentials();
24094
+ init_resolveProcessCredentials2();
24095
+ init_resolveSsoCredentials();
24096
+ init_resolveStaticCredentials();
24097
+ init_resolveWebIdentityCredentials();
24098
+ import_config25 = __toESM(require_config(), 1);
24099
+ });
24100
+
24101
+ // node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
24102
+ var import_config26, fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
24103
+ init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
23100
24104
  const profiles = await import_config26.parseKnownFiles(init);
23101
24105
  return resolveProfileData(import_config26.getProfileName({
23102
24106
  profile: init.profile ?? callerClientConfig?.profile
@@ -23118,7 +24122,7 @@ var init_dist_es9 = __esm(() => {
23118
24122
  // package.json
23119
24123
  var package_default = {
23120
24124
  name: "@hasna/skills",
23121
- version: "0.10.6",
24125
+ version: "0.10.9",
23122
24126
  description: "Skills library for AI coding agents",
23123
24127
  type: "module",
23124
24128
  bin: {
@@ -23180,6 +24184,7 @@ var package_default = {
23180
24184
  migrate: "bun run ./src/server/migrate.ts",
23181
24185
  typecheck: "tsc --noEmit",
23182
24186
  "verify:release": "bun run scripts/release-guard.ts",
24187
+ "verify:release-review": "bun run scripts/verify-release-review.ts",
23183
24188
  "verify:consumer-types": "bun run scripts/consumer-types.ts",
23184
24189
  prepack: "bun run verify:generated && bun run verify:release && bun run verify:consumer-types",
23185
24190
  prepublishOnly: "bun run verify:producer && bun run typecheck && bun run test",
@@ -23239,12 +24244,12 @@ var package_default = {
23239
24244
  },
23240
24245
  repository: {
23241
24246
  type: "git",
23242
- url: "https://github.com/hasna/apps.git",
24247
+ url: "https://github.com/hasna/skills.git",
23243
24248
  directory: "apps/skills"
23244
24249
  },
23245
- homepage: "https://github.com/hasna/apps/tree/main/apps/skills",
24250
+ homepage: "https://github.com/hasna/skills/tree/main/apps/skills",
23246
24251
  bugs: {
23247
- url: "https://github.com/hasna/apps/issues"
24252
+ url: "https://github.com/hasna/skills/issues"
23248
24253
  }
23249
24254
  };
23250
24255
 
@@ -27309,7 +28314,6 @@ var _DBTR = "DeleteBucketTaggingRequest";
27309
28314
  var _DBW = "DeleteBucketWebsite";
27310
28315
  var _DBWR = "DeleteBucketWebsiteRequest";
27311
28316
  var _DE = "DataExport";
27312
- var _DEH = "DefaultEventHold";
27313
28317
  var _DIM = "DestinationIfMatch";
27314
28318
  var _DIMS = "DestinationIfModifiedSince";
27315
28319
  var _DINM = "DestinationIfNoneMatch";
@@ -27357,8 +28361,6 @@ var _ED = "ErrorDetails";
27357
28361
  var _EDr = "ErrorDocument";
27358
28362
  var _EE = "EndEvent";
27359
28363
  var _EH = "ExposeHeaders";
27360
- var _EHD = "EventHoldDuration";
27361
- var _EHv = "EventHold";
27362
28364
  var _EHx = "ExposeHeader";
27363
28365
  var _EM = "ErrorMessage";
27364
28366
  var _EODM = "ExpiredObjectDeleteMarker";
@@ -27703,9 +28705,6 @@ var _OL = "OutputLocation";
27703
28705
  var _OLC = "ObjectLockConfiguration";
27704
28706
  var _OLE = "ObjectLockEnabled";
27705
28707
  var _OLEFB = "ObjectLockEnabledForBucket";
27706
- var _OLEH = "ObjectLockEventHold";
27707
- var _OLEHDD = "ObjectLockEventHoldDurationDays";
27708
- var _OLEHDY = "ObjectLockEventHoldDurationYears";
27709
28708
  var _OLLH = "ObjectLockLegalHold";
27710
28709
  var _OLLHS = "ObjectLockLegalHoldStatus";
27711
28710
  var _OLM = "ObjectLockMode";
@@ -28149,9 +29148,6 @@ var _xampc = "x-amz-mp-parts-count";
28149
29148
  var _xaoa = "x-amz-object-attributes";
28150
29149
  var _xaoad = "x-amz-object-annotation-directive";
28151
29150
  var _xaoim = "x-amz-object-if-match";
28152
- var _xaoleh = "x-amz-object-lock-event-hold";
28153
- var _xaolehdd = "x-amz-object-lock-event-hold-duration-days";
28154
- var _xaolehdy = "x-amz-object-lock-event-hold-duration-years";
28155
29151
  var _xaollh = "x-amz-object-lock-legal-hold";
28156
29152
  var _xaolm = "x-amz-object-lock-mode";
28157
29153
  var _xaolrud = "x-amz-object-lock-retain-until-date";
@@ -28644,8 +29640,8 @@ var CopyObjectRequest$ = [
28644
29640
  n0,
28645
29641
  _CORo,
28646
29642
  0,
28647
- [_B, _CSo, _K, _ACL_, _CC, _CA, _CDo, _CEo, _CL, _CTo, _CSIM, _CSIMS, _CSINM, _CSIUS, _Exp, _GFC, _GR, _GRACP, _GWACP, _IM, _INM, _M, _MD, _TD, _ADn, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _CSSSECA, _CSSSECK, _CSSSECKMD, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY, _EBO, _ESBO],
28648
- [[0, 1], [0, { [_hH]: _xacs___ }], [0, 1], [0, { [_hH]: _xaa }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _xaca }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _xacsim }], [4, { [_hH]: _xacsims }], [0, { [_hH]: _xacsinm }], [4, { [_hH]: _xacsius }], [4, { [_hH]: _Exp }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagwa }], [0, { [_hH]: _IM_ }], [0, { [_hH]: _INM_ }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xamd }], [0, { [_hH]: _xatd }], [0, { [_hH]: _xaoad }], [0, { [_hH]: _xasse }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasseca }], [() => SSECustomerKey, { [_hH]: _xasseck }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH]: _xassec }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xacssseca }], [() => CopySourceSSECustomerKey, { [_hH]: _xacssseck }], [0, { [_hH]: _xacssseckM }], [0, { [_hH]: _xarp }], [0, { [_hH]: _xat }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaoleh }], [1, { [_hH]: _xaolehdd }], [1, { [_hH]: _xaolehdy }], [0, { [_hH]: _xaebo }], [0, { [_hH]: _xasebo }]],
29643
+ [_B, _CSo, _K, _ACL_, _CC, _CA, _CDo, _CEo, _CL, _CTo, _CSIM, _CSIMS, _CSINM, _CSIUS, _Exp, _GFC, _GR, _GRACP, _GWACP, _IM, _INM, _M, _MD, _TD, _ADn, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _CSSSECA, _CSSSECK, _CSSSECKMD, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _EBO, _ESBO],
29644
+ [[0, 1], [0, { [_hH]: _xacs___ }], [0, 1], [0, { [_hH]: _xaa }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _xaca }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _xacsim }], [4, { [_hH]: _xacsims }], [0, { [_hH]: _xacsinm }], [4, { [_hH]: _xacsius }], [4, { [_hH]: _Exp }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagwa }], [0, { [_hH]: _IM_ }], [0, { [_hH]: _INM_ }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xamd }], [0, { [_hH]: _xatd }], [0, { [_hH]: _xaoad }], [0, { [_hH]: _xasse }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasseca }], [() => SSECustomerKey, { [_hH]: _xasseck }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH]: _xassec }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xacssseca }], [() => CopySourceSSECustomerKey, { [_hH]: _xacssseck }], [0, { [_hH]: _xacssseckM }], [0, { [_hH]: _xarp }], [0, { [_hH]: _xat }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaebo }], [0, { [_hH]: _xasebo }]],
28649
29645
  3
28650
29646
  ];
28651
29647
  var CopyObjectResult$ = [
@@ -28738,8 +29734,8 @@ var CreateMultipartUploadRequest$ = [
28738
29734
  n0,
28739
29735
  _CMURr,
28740
29736
  0,
28741
- [_B, _K, _ACL_, _CC, _CDo, _CEo, _CL, _CTo, _Exp, _GFC, _GR, _GRACP, _GWACP, _M, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY, _EBO, _CA, _CT],
28742
- [[0, 1], [0, 1], [0, { [_hH]: _xaa }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagwa }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasse }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasseca }], [() => SSECustomerKey, { [_hH]: _xasseck }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH]: _xassec }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xarp }], [0, { [_hH]: _xat }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaoleh }], [1, { [_hH]: _xaolehdd }], [1, { [_hH]: _xaolehdy }], [0, { [_hH]: _xaebo }], [0, { [_hH]: _xaca }], [0, { [_hH]: _xact }]],
29737
+ [_B, _K, _ACL_, _CC, _CDo, _CEo, _CL, _CTo, _Exp, _GFC, _GR, _GRACP, _GWACP, _M, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _EBO, _CA, _CT],
29738
+ [[0, 1], [0, 1], [0, { [_hH]: _xaa }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagwa }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasse }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasseca }], [() => SSECustomerKey, { [_hH]: _xasseck }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH]: _xassec }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xarp }], [0, { [_hH]: _xat }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaebo }], [0, { [_hH]: _xaca }], [0, { [_hH]: _xact }]],
28743
29739
  2
28744
29740
  ];
28745
29741
  var CreateSessionOutput$ = [
@@ -28781,8 +29777,8 @@ var DefaultRetention$ = [
28781
29777
  n0,
28782
29778
  _DRe,
28783
29779
  0,
28784
- [_Mo, _D, _Y, _DEH],
28785
- [0, 1, 1, () => EventHoldDuration$]
29780
+ [_Mo, _D, _Y],
29781
+ [0, 1, 1]
28786
29782
  ];
28787
29783
  var Delete$ = [
28788
29784
  3,
@@ -29104,14 +30100,6 @@ var EventBridgeConfiguration$ = [
29104
30100
  [],
29105
30101
  []
29106
30102
  ];
29107
- var EventHoldDuration$ = [
29108
- 3,
29109
- n0,
29110
- _EHD,
29111
- 0,
29112
- [_D, _Y],
29113
- [1, 1]
29114
- ];
29115
30103
  var ExistingObjectReplication$ = [
29116
30104
  3,
29117
30105
  n0,
@@ -29629,8 +30617,8 @@ var GetObjectOutput$ = [
29629
30617
  n0,
29630
30618
  _GOO,
29631
30619
  0,
29632
- [_Bo, _DM, _AR, _Ex, _Re, _LM, _CLo, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT, _MM, _VI, _CC, _CDo, _CEo, _CL, _CR, _CTo, _Exp, _ES, _WRL, _SSE, _M, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _SC, _RC, _RS, _PC, _TC, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY],
29633
- [[() => StreamingBlob, 16], [2, { [_hH]: _xadm }], [0, { [_hH]: _ar }], [0, { [_hH]: _xae }], [0, { [_hH]: _xar }], [4, { [_hH]: _LM_ }], [1, { [_hH]: _CL__ }], [0, { [_hH]: _ET }], [0, { [_hH]: _xacc }], [0, { [_hH]: _xacc_ }], [0, { [_hH]: _xacc__ }], [0, { [_hH]: _xacs }], [0, { [_hH]: _xacs_ }], [0, { [_hH]: _xacs__ }], [0, { [_hH]: _xacm }], [0, { [_hH]: _xacx }], [0, { [_hH]: _xacx_ }], [0, { [_hH]: _xacx__ }], [0, { [_hH]: _xact }], [1, { [_hH]: _xamm }], [0, { [_hH]: _xavi }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CR_ }], [0, { [_hH]: _CT_ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _ES }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasse }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasseca }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xarc }], [0, { [_hH]: _xars }], [1, { [_hH]: _xampc }], [1, { [_hH]: _xatc }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaoleh }], [1, { [_hH]: _xaolehdd }], [1, { [_hH]: _xaolehdy }]]
30620
+ [_Bo, _DM, _AR, _Ex, _Re, _LM, _CLo, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT, _MM, _VI, _CC, _CDo, _CEo, _CL, _CR, _CTo, _Exp, _ES, _WRL, _SSE, _M, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _SC, _RC, _RS, _PC, _TC, _OLM, _OLRUD, _OLLHS],
30621
+ [[() => StreamingBlob, 16], [2, { [_hH]: _xadm }], [0, { [_hH]: _ar }], [0, { [_hH]: _xae }], [0, { [_hH]: _xar }], [4, { [_hH]: _LM_ }], [1, { [_hH]: _CL__ }], [0, { [_hH]: _ET }], [0, { [_hH]: _xacc }], [0, { [_hH]: _xacc_ }], [0, { [_hH]: _xacc__ }], [0, { [_hH]: _xacs }], [0, { [_hH]: _xacs_ }], [0, { [_hH]: _xacs__ }], [0, { [_hH]: _xacm }], [0, { [_hH]: _xacx }], [0, { [_hH]: _xacx_ }], [0, { [_hH]: _xacx__ }], [0, { [_hH]: _xact }], [1, { [_hH]: _xamm }], [0, { [_hH]: _xavi }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CR_ }], [0, { [_hH]: _CT_ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _ES }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasse }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasseca }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xarc }], [0, { [_hH]: _xars }], [1, { [_hH]: _xampc }], [1, { [_hH]: _xatc }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }]]
29634
30622
  ];
29635
30623
  var GetObjectRequest$ = [
29636
30624
  3,
@@ -29758,8 +30746,8 @@ var HeadObjectOutput$ = [
29758
30746
  n0,
29759
30747
  _HOO,
29760
30748
  0,
29761
- [_DM, _AR, _Ex, _Re, _ASr, _LM, _CLo, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT, _ET, _MM, _VI, _CC, _CDo, _CEo, _CL, _CTo, _CR, _Exp, _ES, _WRL, _SSE, _M, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _SC, _RC, _RS, _PC, _TC, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY],
29762
- [[2, { [_hH]: _xadm }], [0, { [_hH]: _ar }], [0, { [_hH]: _xae }], [0, { [_hH]: _xar }], [0, { [_hH]: _xaas }], [4, { [_hH]: _LM_ }], [1, { [_hH]: _CL__ }], [0, { [_hH]: _xacc }], [0, { [_hH]: _xacc_ }], [0, { [_hH]: _xacc__ }], [0, { [_hH]: _xacs }], [0, { [_hH]: _xacs_ }], [0, { [_hH]: _xacs__ }], [0, { [_hH]: _xacm }], [0, { [_hH]: _xacx }], [0, { [_hH]: _xacx_ }], [0, { [_hH]: _xacx__ }], [0, { [_hH]: _xact }], [0, { [_hH]: _ET }], [1, { [_hH]: _xamm }], [0, { [_hH]: _xavi }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CR_ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _ES }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasse }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasseca }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xarc }], [0, { [_hH]: _xars }], [1, { [_hH]: _xampc }], [1, { [_hH]: _xatc }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaoleh }], [1, { [_hH]: _xaolehdd }], [1, { [_hH]: _xaolehdy }]]
30749
+ [_DM, _AR, _Ex, _Re, _ASr, _LM, _CLo, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT, _ET, _MM, _VI, _CC, _CDo, _CEo, _CL, _CTo, _CR, _Exp, _ES, _WRL, _SSE, _M, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _SC, _RC, _RS, _PC, _TC, _OLM, _OLRUD, _OLLHS],
30750
+ [[2, { [_hH]: _xadm }], [0, { [_hH]: _ar }], [0, { [_hH]: _xae }], [0, { [_hH]: _xar }], [0, { [_hH]: _xaas }], [4, { [_hH]: _LM_ }], [1, { [_hH]: _CL__ }], [0, { [_hH]: _xacc }], [0, { [_hH]: _xacc_ }], [0, { [_hH]: _xacc__ }], [0, { [_hH]: _xacs }], [0, { [_hH]: _xacs_ }], [0, { [_hH]: _xacs__ }], [0, { [_hH]: _xacm }], [0, { [_hH]: _xacx }], [0, { [_hH]: _xacx_ }], [0, { [_hH]: _xacx__ }], [0, { [_hH]: _xact }], [0, { [_hH]: _ET }], [1, { [_hH]: _xamm }], [0, { [_hH]: _xavi }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CR_ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _ES }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasse }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasseca }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xarc }], [0, { [_hH]: _xars }], [1, { [_hH]: _xampc }], [1, { [_hH]: _xatc }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }]]
29763
30751
  ];
29764
30752
  var HeadObjectRequest$ = [
29765
30753
  3,
@@ -30361,8 +31349,8 @@ var ObjectLockRetention$ = [
30361
31349
  n0,
30362
31350
  _OLR,
30363
31351
  0,
30364
- [_Mo, _RUD, _EHv, _EHD],
30365
- [0, 5, 0, () => EventHoldDuration$]
31352
+ [_Mo, _RUD],
31353
+ [0, 5]
30366
31354
  ];
30367
31355
  var ObjectLockRule$ = [
30368
31356
  3,
@@ -30746,8 +31734,8 @@ var PutObjectRequest$ = [
30746
31734
  n0,
30747
31735
  _POR,
30748
31736
  0,
30749
- [_B, _K, _ACL_, _Bo, _CC, _CDo, _CEo, _CL, _CLo, _CMDo, _CTo, _CA, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _Exp, _IM, _INM, _GFC, _GR, _GRACP, _GWACP, _WOB, _M, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY, _EBO],
30750
- [[0, 1], [0, 1], [0, { [_hH]: _xaa }], [() => StreamingBlob, 16], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [1, { [_hH]: _CL__ }], [0, { [_hH]: _CM }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _xasca }], [0, { [_hH]: _xacc }], [0, { [_hH]: _xacc_ }], [0, { [_hH]: _xacc__ }], [0, { [_hH]: _xacs }], [0, { [_hH]: _xacs_ }], [0, { [_hH]: _xacs__ }], [0, { [_hH]: _xacm }], [0, { [_hH]: _xacx }], [0, { [_hH]: _xacx_ }], [0, { [_hH]: _xacx__ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _IM_ }], [0, { [_hH]: _INM_ }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagwa }], [1, { [_hH]: _xawob }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasse }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasseca }], [() => SSECustomerKey, { [_hH]: _xasseck }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH]: _xassec }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xarp }], [0, { [_hH]: _xat }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaoleh }], [1, { [_hH]: _xaolehdd }], [1, { [_hH]: _xaolehdy }], [0, { [_hH]: _xaebo }]],
31737
+ [_B, _K, _ACL_, _Bo, _CC, _CDo, _CEo, _CL, _CLo, _CMDo, _CTo, _CA, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _Exp, _IM, _INM, _GFC, _GR, _GRACP, _GWACP, _WOB, _M, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _EBO],
31738
+ [[0, 1], [0, 1], [0, { [_hH]: _xaa }], [() => StreamingBlob, 16], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CD_ }], [0, { [_hH]: _CE_ }], [0, { [_hH]: _CL_ }], [1, { [_hH]: _CL__ }], [0, { [_hH]: _CM }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _xasca }], [0, { [_hH]: _xacc }], [0, { [_hH]: _xacc_ }], [0, { [_hH]: _xacc__ }], [0, { [_hH]: _xacs }], [0, { [_hH]: _xacs_ }], [0, { [_hH]: _xacs__ }], [0, { [_hH]: _xacm }], [0, { [_hH]: _xacx }], [0, { [_hH]: _xacx_ }], [0, { [_hH]: _xacx__ }], [4, { [_hH]: _Exp }], [0, { [_hH]: _IM_ }], [0, { [_hH]: _INM_ }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagwa }], [1, { [_hH]: _xawob }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH]: _xasse }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xawrl }], [0, { [_hH]: _xasseca }], [() => SSECustomerKey, { [_hH]: _xasseck }], [0, { [_hH]: _xasseckM }], [() => SSEKMSKeyId, { [_hH]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH]: _xassec }], [2, { [_hH]: _xassebke }], [0, { [_hH]: _xarp }], [0, { [_hH]: _xat }], [0, { [_hH]: _xaolm }], [5, { [_hH]: _xaolrud }], [0, { [_hH]: _xaollh }], [0, { [_hH]: _xaebo }]],
30751
31739
  2
30752
31740
  ];
30753
31741
  var PutObjectRetentionOutput$ = [
@@ -32586,7 +33574,7 @@ class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSe
32586
33574
  // node_modules/@aws-sdk/client-s3/package.json
32587
33575
  var package_default2 = {
32588
33576
  name: "@aws-sdk/client-s3",
32589
- version: "3.1136.0",
33577
+ version: "3.1127.0",
32590
33578
  description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
32591
33579
  homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
32592
33580
  license: "Apache-2.0",
@@ -32640,10 +33628,10 @@ var package_default2 = {
32640
33628
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
32641
33629
  },
32642
33630
  dependencies: {
32643
- "@aws-sdk/checksums": "^3.1001.0",
32644
- "@aws-sdk/core": "^3.978.0",
32645
- "@aws-sdk/credential-provider-node": "^3.972.83",
32646
- "@aws-sdk/middleware-sdk-s3": "^3.972.76",
33631
+ "@aws-sdk/checksums": "^3.1000.29",
33632
+ "@aws-sdk/core": "^3.977.9",
33633
+ "@aws-sdk/credential-provider-node": "^3.972.82",
33634
+ "@aws-sdk/middleware-sdk-s3": "^3.972.75",
32647
33635
  "@aws-sdk/signature-v4-multi-region": "^3.996.46",
32648
33636
  "@aws-sdk/types": "^3.974.5",
32649
33637
  "@smithy/core": "^3.33.3",
@@ -32653,7 +33641,7 @@ var package_default2 = {
32653
33641
  tslib: "^2.6.2"
32654
33642
  },
32655
33643
  devDependencies: {
32656
- "@aws-sdk/signature-v4-crt": "3.1136.0",
33644
+ "@aws-sdk/signature-v4-crt": "3.1127.0",
32657
33645
  "@smithy/snapshot-testing": "^2.3.2",
32658
33646
  "@tsconfig/node20": "20.1.8",
32659
33647
  "@types/node": "^20.14.8",
@@ -37672,7 +38660,7 @@ var commonParams3 = {
37672
38660
  // node_modules/@aws-sdk/client-ecs/package.json
37673
38661
  var package_default3 = {
37674
38662
  name: "@aws-sdk/client-ecs",
37675
- version: "3.1136.0",
38663
+ version: "3.1127.0",
37676
38664
  description: "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
37677
38665
  homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs",
37678
38666
  license: "Apache-2.0",
@@ -37720,8 +38708,8 @@ var package_default3 = {
37720
38708
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
37721
38709
  },
37722
38710
  dependencies: {
37723
- "@aws-sdk/core": "^3.978.0",
37724
- "@aws-sdk/credential-provider-node": "^3.972.83",
38711
+ "@aws-sdk/core": "^3.977.9",
38712
+ "@aws-sdk/credential-provider-node": "^3.972.82",
37725
38713
  "@aws-sdk/types": "^3.974.5",
37726
38714
  "@smithy/core": "^3.33.3",
37727
38715
  "@smithy/fetch-http-handler": "^5.7.2",