diff --git a/VKUI/s3/dist/index.js b/VKUI/s3/dist/index.js index 3c7bd22..f27c3b2 100644 --- a/VKUI/s3/dist/index.js +++ b/VKUI/s3/dist/index.js @@ -9539,10 +9539,10 @@ var require_mock_utils = __commonJS({ } function getMockDispatch(mockDispatches, key) { const basePath = key.query ? buildURL(key.path, key.query) : key.path; - const resolvedPath3 = typeof basePath === "string" ? safeUrl(basePath) : basePath; - let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path2 }) => matchValue(safeUrl(path2), resolvedPath3)); + const resolvedPath4 = typeof basePath === "string" ? safeUrl(basePath) : basePath; + let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path2 }) => matchValue(safeUrl(path2), resolvedPath4)); if (matchedMockDispatches.length === 0) { - throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath3}'`); + throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath4}'`); } matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method)); if (matchedMockDispatches.length === 0) { @@ -18782,7 +18782,7 @@ var require_dist_cjs2 = __commonJS({ __export2(src_exports, { Field: () => Field, Fields: () => Fields, - HttpRequest: () => HttpRequest7, + HttpRequest: () => HttpRequest8, HttpResponse: () => HttpResponse2, IHttpRequest: () => import_types5.HttpRequest, getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration, @@ -18960,7 +18960,7 @@ var require_dist_cjs2 = __commonJS({ } }; __name(_HttpRequest, "HttpRequest"); - var HttpRequest7 = _HttpRequest; + var HttpRequest8 = _HttpRequest; function cloneQuery(query) { return Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; @@ -19024,12 +19024,12 @@ var require_dist_cjs3 = __commonJS({ getAddExpectContinuePlugin: () => getAddExpectContinuePlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); function addExpectContinueMiddleware(options) { return (next) => async (args) => { var _a, _b; const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { + if (import_protocol_http9.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { if (((_b = (_a = options.requestHandler) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) !== "FetchHttpHandler") { request.headers = { ...request.headers, @@ -20002,7 +20002,7 @@ var require_dist_cjs12 = __commonJS({ streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); var import_http = require("http"); var import_https = require("https"); @@ -20300,7 +20300,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }; const requestFunc = isSSL ? import_https.request : import_http.request; const req2 = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new import_protocol_http8.HttpResponse({ + const httpResponse = new import_protocol_http9.HttpResponse({ statusCode: res.statusCode || -1, reason: res.statusMessage, headers: getTransformedHeaders(res.headers), @@ -20581,7 +20581,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }); session.ref(); req2.on("response", (headers) => { - const httpResponse = new import_protocol_http8.HttpResponse({ + const httpResponse = new import_protocol_http9.HttpResponse({ statusCode: headers[":status"] || -1, headers: getTransformedHeaders(headers), body: req2 @@ -20745,7 +20745,7 @@ var require_dist_cjs13 = __commonJS({ streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); function createRequest(url, requestOptions) { return new Request(url, requestOptions); @@ -20856,7 +20856,7 @@ var require_dist_cjs13 = __commonJS({ const hasReadableStream = response.body != void 0; if (!hasReadableStream) { return response.blob().then((body2) => ({ - response: new import_protocol_http8.HttpResponse({ + response: new import_protocol_http9.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -20865,7 +20865,7 @@ var require_dist_cjs13 = __commonJS({ })); } return { - response: new import_protocol_http8.HttpResponse({ + response: new import_protocol_http9.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -21437,7 +21437,7 @@ var require_dist_cjs15 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter2 + Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter3 }); module2.exports = __toCommonJS2(src_exports); var import_util_base64 = require_dist_cjs9(); @@ -21451,9 +21451,9 @@ var require_dist_cjs15 = __commonJS({ __name(transformToString, "transformToString"); function transformFromString(str, encoding) { if (encoding === "base64") { - return Uint8ArrayBlobAdapter2.mutate((0, import_util_base64.fromBase64)(str)); + return Uint8ArrayBlobAdapter3.mutate((0, import_util_base64.fromBase64)(str)); } - return Uint8ArrayBlobAdapter2.mutate((0, import_util_utf8.fromUtf8)(str)); + return Uint8ArrayBlobAdapter3.mutate((0, import_util_utf8.fromUtf8)(str)); } __name(transformFromString, "transformFromString"); var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter2 extends Uint8Array { @@ -21486,7 +21486,7 @@ var require_dist_cjs15 = __commonJS({ } }; __name(_Uint8ArrayBlobAdapter, "Uint8ArrayBlobAdapter"); - var Uint8ArrayBlobAdapter2 = _Uint8ArrayBlobAdapter; + var Uint8ArrayBlobAdapter3 = _Uint8ArrayBlobAdapter; __reExport(src_exports, require_getAwsChunkedEncodingStream(), module2.exports); __reExport(src_exports, require_sdk_stream_mixin(), module2.exports); __reExport(src_exports, require_splitStream(), module2.exports); @@ -21531,17 +21531,17 @@ var resolvedPath2; var init_resolve_path = __esm({ "../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() { init_extended_encode_uri_component(); - resolvedPath2 = (resolvedPath3, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + resolvedPath2 = (resolvedPath4, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { if (input != null && input[memberName] !== void 0) { const labelValue = labelValueProvider(); if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: " + memberName + "."); } - resolvedPath3 = resolvedPath3.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent2(segment)).join("/") : extendedEncodeURIComponent2(labelValue)); + resolvedPath4 = resolvedPath4.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent2(segment)).join("/") : extendedEncodeURIComponent2(labelValue)); } else { throw new Error("No value provided for input HTTP label: " + memberName + "."); } - return resolvedPath3; + return resolvedPath4; }; } }); @@ -22348,10 +22348,10 @@ var require_dist_cjs17 = __commonJS({ } return false; }, "hasHeader"); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => { var _a, _b; - const { headers, query = {} } = import_protocol_http8.HttpRequest.clone(request); + const { headers, query = {} } = import_protocol_http9.HttpRequest.clone(request); for (const name of Object.keys(headers)) { const lname = name.toLowerCase(); if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname)) || ((_b = options.hoistableHeaders) == null ? void 0 : _b.has(lname))) { @@ -22366,7 +22366,7 @@ var require_dist_cjs17 = __commonJS({ }; }, "moveHeadersToQuery"); var prepareRequest = /* @__PURE__ */ __name((request) => { - request = import_protocol_http8.HttpRequest.clone(request); + request = import_protocol_http9.HttpRequest.clone(request); for (const headerName of Object.keys(request.headers)) { if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { delete request.headers[headerName]; @@ -27694,7 +27694,7 @@ var require_dist_cjs23 = __commonJS({ default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION }; var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var CLIENT_SUPPORTED_ALGORITHMS = [ "CRC32", "CRC32C", @@ -27771,13 +27771,13 @@ var require_dist_cjs23 = __commonJS({ override: true }; var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) { return next(args); } - const { request } = args; + const { request, input } = args; const { body: requestBody, headers } = request; const { base64Encoder, streamHasher } = config; - const { input, requestChecksumRequired, requestAlgorithmMember } = middlewareConfig; + const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig; const checksumAlgorithm = getChecksumAlgorithmForRequest( input, { @@ -27865,7 +27865,7 @@ var require_dist_cjs23 = __commonJS({ return false; }, "isChecksumWithPartNumber"); var import_create_read_stream_on_buffer = require_create_read_stream_on_buffer(); - var import_util_stream2 = require_dist_cjs15(); + var import_util_stream3 = require_dist_cjs15(); var getChecksum = /* @__PURE__ */ __name(async (body, { checksumAlgorithmFn, base64Encoder }) => base64Encoder(await stringHasher(checksumAlgorithmFn, body)), "getChecksum"); var validateChecksumFromResponse = /* @__PURE__ */ __name(async (response, { config, responseAlgorithms }) => { const checksumAlgorithms = getChecksumAlgorithmListForResponse(responseAlgorithms); @@ -27877,7 +27877,7 @@ var require_dist_cjs23 = __commonJS({ const checksumAlgorithmFn = selectChecksumAlgorithmFunction(algorithm, config); const { base64Encoder } = config; if (isStreaming(responseBody)) { - response.body = (0, import_util_stream2.createChecksumStream)({ + response.body = (0, import_util_stream3.createChecksumStream)({ expectedChecksum: checksumFromResponse, checksumSourceLocation: responseHeader, checksum: new checksumAlgorithmFn(), @@ -27904,7 +27904,7 @@ var require_dist_cjs23 = __commonJS({ override: true }; var flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) { return next(args); } const input = args.input; @@ -27989,13 +27989,13 @@ var require_dist_cjs24 = __commonJS({ resolveHostHeaderConfig: () => resolveHostHeaderConfig }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); function resolveHostHeaderConfig(input) { return input; } __name(resolveHostHeaderConfig, "resolveHostHeaderConfig"); var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) return next(args); const { request } = args; const { handlerProtocol = "" } = options.requestHandler.metadata || {}; @@ -28128,13 +28128,13 @@ var require_dist_cjs26 = __commonJS({ recursionDetectionMiddleware: () => recursionDetectionMiddleware }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { const { request } = args; - if (!import_protocol_http8.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + if (!import_protocol_http9.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { return next(args); } const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; @@ -28333,14 +28333,14 @@ var require_dist_cjs29 = __commonJS({ validateBucketNameMiddlewareOptions: () => validateBucketNameMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_smithy_client4 = require_dist_cjs19(); var CONTENT_LENGTH_HEADER = "content-length"; function checkContentLengthHeader() { return (next, context) => async (args) => { var _a; const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { if (!(CONTENT_LENGTH_HEADER in request.headers)) { const message = `Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`; if (typeof ((_a = context == null ? void 0 : context.logger) == null ? void 0 : _a.warn) === "function" && !(context.logger instanceof import_smithy_client4.NoOpLogger)) { @@ -28447,7 +28447,7 @@ var require_dist_cjs29 = __commonJS({ var _a; const result = await next(args); const { response } = result; - if (import_protocol_http8.HttpResponse.isInstance(response)) { + if (import_protocol_http9.HttpResponse.isInstance(response)) { if (response.headers.expires) { response.headers.expiresstring = response.headers.expires; try { @@ -28671,7 +28671,7 @@ var require_dist_cjs29 = __commonJS({ } ); context.s3ExpressIdentity = s3ExpressIdentity; - if (import_protocol_http8.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { + if (import_protocol_http9.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { args.request.headers[SESSION_TOKEN_HEADER] = s3ExpressIdentity.sessionToken; } } @@ -28707,7 +28707,7 @@ var require_dist_cjs29 = __commonJS({ }, "defaultSuccessHandler"); var s3ExpressHttpSigningMiddlewareOptions = import_core22.httpSigningMiddlewareOptions; var s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) { return next(args); } const smithyContext = (0, import_util_middleware3.getSmithyContext)(context); @@ -28767,7 +28767,7 @@ var require_dist_cjs29 = __commonJS({ bucketEndpoint: input.bucketEndpoint ?? false }; }, "resolveS3Config"); - var import_util_stream2 = require_dist_cjs15(); + var import_util_stream3 = require_dist_cjs15(); var THROW_IF_EMPTY_BODY = { CopyObjectCommand: true, UploadPartCopyCommand: true, @@ -28777,7 +28777,7 @@ var require_dist_cjs29 = __commonJS({ var throw200ExceptionsMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { const result = await next(args); const { response } = result; - if (!import_protocol_http8.HttpResponse.isInstance(response)) { + if (!import_protocol_http9.HttpResponse.isInstance(response)) { return result; } const { statusCode, body: sourceBody } = response; @@ -28791,12 +28791,12 @@ var require_dist_cjs29 = __commonJS({ let bodyCopy = sourceBody; let body = sourceBody; if (sourceBody && typeof sourceBody === "object" && !(sourceBody instanceof Uint8Array)) { - [bodyCopy, body] = await (0, import_util_stream2.splitStream)(sourceBody); + [bodyCopy, body] = await (0, import_util_stream3.splitStream)(sourceBody); } response.body = body; - const bodyBytes = await collectBody4(bodyCopy, { + const bodyBytes = await collectBody5(bodyCopy, { streamCollector: async (stream) => { - return (0, import_util_stream2.headStream)(stream, MAX_BYTES_TO_INSPECT); + return (0, import_util_stream3.headStream)(stream, MAX_BYTES_TO_INSPECT); } }); if (typeof (bodyCopy == null ? void 0 : bodyCopy.destroy) === "function") { @@ -28813,7 +28813,7 @@ var require_dist_cjs29 = __commonJS({ } return result; }, "throw200ExceptionsMiddleware"); - var collectBody4 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { + var collectBody5 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } @@ -29803,7 +29803,7 @@ var require_dist_cjs32 = __commonJS({ } __name(resolveUserAgentConfig, "resolveUserAgentConfig"); var import_util_endpoints = require_dist_cjs31(); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/; async function checkFeatures(context, config, args) { @@ -29881,7 +29881,7 @@ var require_dist_cjs32 = __commonJS({ var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { var _a, _b, _c, _d; const { request } = args; - if (!import_protocol_http8.HttpRequest.isInstance(request)) { + if (!import_protocol_http9.HttpRequest.isInstance(request)) { return next(args); } const { headers } = request; @@ -30201,12 +30201,12 @@ var require_dist_cjs35 = __commonJS({ getContentLengthPlugin: () => getContentLengthPlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var CONTENT_LENGTH_HEADER = "content-length"; function contentLengthMiddleware(bodyLengthChecker) { return (next) => async (args) => { const request = args.request; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { const { body, headers } = request; if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { try { @@ -30792,205 +30792,1526 @@ var require_dist_cjs37 = __commonJS({ const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); this.updateTokenBucketRate(newRate); } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise( + this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate + ); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } + }; + __name(_DefaultRateLimiter, "DefaultRateLimiter"); + _DefaultRateLimiter.setTimeoutFn = setTimeout; + var DefaultRateLimiter = _DefaultRateLimiter; + var DEFAULT_RETRY_DELAY_BASE = 100; + var MAXIMUM_RETRY_DELAY = 20 * 1e3; + var THROTTLING_RETRY_DELAY_BASE = 500; + var INITIAL_RETRY_TOKENS = 500; + var RETRY_COST = 5; + var TIMEOUT_RETRY_COST = 10; + var NO_RETRY_INCREMENT = 1; + var INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; + var REQUEST_HEADER = "amz-sdk-request"; + var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => { + let delayBase = DEFAULT_RETRY_DELAY_BASE; + const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => { + return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + }, "computeNextBackoffDelay"); + const setDelayBase = /* @__PURE__ */ __name((delay) => { + delayBase = delay; + }, "setDelayBase"); + return { + computeNextBackoffDelay, + setDelayBase + }; + }, "getDefaultRetryBackoffStrategy"); + var createDefaultRetryToken = /* @__PURE__ */ __name(({ + retryDelay, + retryCount, + retryCost + }) => { + const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount"); + const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay"); + const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost"); + return { + getRetryCount, + getRetryDelay, + getRetryCost + }; + }, "createDefaultRetryToken"); + var _StandardRetryStrategy = class _StandardRetryStrategy { + constructor(maxAttempts) { + this.maxAttempts = maxAttempts; + this.mode = "standard"; + this.capacity = INITIAL_RETRY_TOKENS; + this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); + this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + async acquireInitialRetryToken(retryTokenScope) { + return createDefaultRetryToken({ + retryDelay: DEFAULT_RETRY_DELAY_BASE, + retryCount: 0 + }); + } + async refreshRetryTokenForRetry(token, errorInfo) { + const maxAttempts = await this.getMaxAttempts(); + if (this.shouldRetry(token, errorInfo, maxAttempts)) { + const errorType = errorInfo.errorType; + this.retryBackoffStrategy.setDelayBase( + errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE + ); + const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); + const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; + const capacityCost = this.getCapacityCost(errorType); + this.capacity -= capacityCost; + return createDefaultRetryToken({ + retryDelay, + retryCount: token.getRetryCount() + 1, + retryCost: capacityCost + }); + } + throw new Error("No retry token available"); + } + recordSuccess(token) { + this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); + } + /** + * @returns the current available retry capacity. + * + * This number decreases when retries are executed and refills when requests or retries succeed. + */ + getCapacity() { + return this.capacity; + } + async getMaxAttempts() { + try { + return await this.maxAttemptsProvider(); + } catch (error2) { + console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); + return DEFAULT_MAX_ATTEMPTS; + } + } + shouldRetry(tokenToRenew, errorInfo, maxAttempts) { + const attempts = tokenToRenew.getRetryCount() + 1; + return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); + } + getCapacityCost(errorType) { + return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST; + } + isRetryableError(errorType) { + return errorType === "THROTTLING" || errorType === "TRANSIENT"; + } + }; + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy { + constructor(maxAttemptsProvider, options) { + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = "adaptive"; + const { rateLimiter } = options ?? {}; + this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); + this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); + } + async acquireInitialRetryToken(retryTokenScope) { + await this.rateLimiter.getSendToken(); + return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); + } + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + this.rateLimiter.updateClientSendingRate(errorInfo); + return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + } + recordSuccess(token) { + this.rateLimiter.updateClientSendingRate({}); + this.standardRetryStrategy.recordSuccess(token); + } + }; + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy { + /** + * @param maxAttempts - the maximum number of retry attempts allowed. + * e.g., if set to 3, then 4 total requests are possible. + * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt + * and returns the delay. + * + * @example exponential backoff. + * ```js + * new Client({ + * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2) + * }); + * ``` + * @example constant delay. + * ```js + * new Client({ + * retryStrategy: new ConfiguredRetryStrategy(3, 2000) + * }); + * ``` + */ + constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) { + super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); + if (typeof computeNextBackoffDelay === "number") { + this.computeNextBackoffDelay = () => computeNextBackoffDelay; + } else { + this.computeNextBackoffDelay = computeNextBackoffDelay; + } + } + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); + return token; + } + }; + __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy"); + var ConfiguredRetryStrategy = _ConfiguredRetryStrategy; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js +var import_util_stream2, collectBody4; +var init_collect_stream_body2 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js"() { + import_util_stream2 = __toESM(require_dist_cjs15()); + collectBody4 = async (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return import_util_stream2.Uint8ArrayBlobAdapter.mutate(streamBody); + } + if (!streamBody) { + return import_util_stream2.Uint8ArrayBlobAdapter.mutate(new Uint8Array()); + } + const fromContext = context.streamCollector(streamBody); + return import_util_stream2.Uint8ArrayBlobAdapter.mutate(await fromContext); + }; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js +function extendedEncodeURIComponent3(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); +} +var init_extended_encode_uri_component2 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js"() { + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js +var resolvedPath3; +var init_resolve_path2 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() { + init_extended_encode_uri_component2(); + resolvedPath3 = (resolvedPath4, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + if (input != null && input[memberName] !== void 0) { + const labelValue = labelValueProvider(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: " + memberName + "."); + } + resolvedPath4 = resolvedPath4.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent3(segment)).join("/") : extendedEncodeURIComponent3(labelValue)); + } else { + throw new Error("No value provided for input HTTP label: " + memberName + "."); + } + return resolvedPath4; + }; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +function requestBuilder2(input, context) { + return new RequestBuilder2(input, context); +} +var import_protocol_http8, RequestBuilder2; +var init_requestBuilder3 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js"() { + import_protocol_http8 = __toESM(require_dist_cjs2()); + init_resolve_path2(); + RequestBuilder2 = class { + constructor(input, context) { + this.input = input; + this.context = context; + this.query = {}; + this.method = ""; + this.headers = {}; + this.path = ""; + this.body = null; + this.hostname = ""; + this.resolvePathStack = []; + } + async build() { + const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint(); + this.path = basePath; + for (const resolvePath of this.resolvePathStack) { + resolvePath(this.path); + } + return new import_protocol_http8.HttpRequest({ + protocol, + hostname: this.hostname || hostname, + port, + method: this.method, + path: this.path, + query: this.query, + body: this.body, + headers: this.headers + }); + } + hn(hostname) { + this.hostname = hostname; + return this; + } + bp(uriLabel) { + this.resolvePathStack.push((basePath) => { + this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel; + }); + return this; + } + p(memberName, labelValueProvider, uriLabel, isGreedyLabel) { + this.resolvePathStack.push((path2) => { + this.path = resolvedPath3(path2, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel); + }); + return this; + } + h(headers) { + this.headers = headers; + return this; + } + q(query) { + this.query = query; + return this; + } + b(body) { + this.body = body; + return this; + } + m(method) { + this.method = method; + return this; + } + }; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +var protocols_exports2 = {}; +__export(protocols_exports2, { + RequestBuilder: () => RequestBuilder2, + collectBody: () => collectBody4, + extendedEncodeURIComponent: () => extendedEncodeURIComponent3, + requestBuilder: () => requestBuilder2, + resolvedPath: () => resolvedPath3 +}); +var init_protocols3 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/index.js"() { + init_collect_stream_body2(); + init_extended_encode_uri_component2(); + init_requestBuilder3(); + init_resolve_path2(); + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/smithy-client/dist-cjs/index.js +var require_dist_cjs38 = __commonJS({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/smithy-client/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + Client: () => Client, + Command: () => Command, + LazyJsonString: () => LazyJsonString, + NoOpLogger: () => NoOpLogger, + SENSITIVE_STRING: () => SENSITIVE_STRING, + ServiceException: () => ServiceException, + StringWrapper: () => StringWrapper, + _json: () => _json, + collectBody: () => import_protocols2.collectBody, + convertMap: () => convertMap, + createAggregatedClient: () => createAggregatedClient, + dateToUtcString: () => dateToUtcString, + decorateServiceException: () => decorateServiceException, + emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion2, + expectBoolean: () => expectBoolean, + expectByte: () => expectByte, + expectFloat32: () => expectFloat32, + expectInt: () => expectInt, + expectInt32: () => expectInt32, + expectLong: () => expectLong, + expectNonNull: () => expectNonNull, + expectNumber: () => expectNumber, + expectObject: () => expectObject, + expectShort: () => expectShort, + expectString: () => expectString, + expectUnion: () => expectUnion2, + extendedEncodeURIComponent: () => import_protocols2.extendedEncodeURIComponent, + getArrayIfSingleItem: () => getArrayIfSingleItem, + getDefaultClientConfiguration: () => getDefaultClientConfiguration, + getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration, + getValueFromTextNode: () => getValueFromTextNode2, + handleFloat: () => handleFloat, + isSerializableHeaderValue: () => isSerializableHeaderValue, + limitedParseDouble: () => limitedParseDouble, + limitedParseFloat: () => limitedParseFloat, + limitedParseFloat32: () => limitedParseFloat32, + loadConfigsForDefaultMode: () => loadConfigsForDefaultMode, + logger: () => logger, + map: () => map, + parseBoolean: () => parseBoolean, + parseEpochTimestamp: () => parseEpochTimestamp, + parseRfc3339DateTime: () => parseRfc3339DateTime, + parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset, + parseRfc7231DateTime: () => parseRfc7231DateTime, + quoteHeader: () => quoteHeader, + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig, + resolvedPath: () => import_protocols2.resolvedPath, + serializeDateTime: () => serializeDateTime, + serializeFloat: () => serializeFloat, + splitEvery: () => splitEvery, + splitHeader: () => splitHeader, + strictParseByte: () => strictParseByte, + strictParseDouble: () => strictParseDouble, + strictParseFloat: () => strictParseFloat, + strictParseFloat32: () => strictParseFloat32, + strictParseInt: () => strictParseInt, + strictParseInt32: () => strictParseInt32, + strictParseLong: () => strictParseLong, + strictParseShort: () => strictParseShort, + take: () => take, + throwDefaultError: () => throwDefaultError, + withBaseException: () => withBaseException + }); + module2.exports = __toCommonJS2(src_exports); + var import_middleware_stack = require_dist_cjs18(); + var _Client = class _Client { + constructor(config) { + this.config = config; + this.middlewareStack = (0, import_middleware_stack.constructStack)(); + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; + const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; + const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true; + let handler; + if (useHandlerCache) { + if (!this.handlers) { + this.handlers = /* @__PURE__ */ new WeakMap(); + } + const handlers = this.handlers; + if (handlers.has(command.constructor)) { + handler = handlers.get(command.constructor); + } else { + handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + handlers.set(command.constructor, handler); + } + } else { + delete this.handlers; + handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + } + if (callback) { + handler(command).then( + (result) => callback(null, result.output), + (err) => callback(err) + ).catch( + // prevent any errors thrown in the callback from triggering an + // unhandled promise rejection + () => { + } + ); + } else { + return handler(command).then((result) => result.output); + } + } + destroy() { + var _a, _b, _c; + (_c = (_b = (_a = this.config) == null ? void 0 : _a.requestHandler) == null ? void 0 : _b.destroy) == null ? void 0 : _c.call(_b); + delete this.handlers; + } + }; + __name(_Client, "Client"); + var Client = _Client; + var import_protocols2 = (init_protocols3(), __toCommonJS(protocols_exports2)); + var import_types5 = require_dist_cjs(); + var _Command = class _Command { + constructor() { + this.middlewareStack = (0, import_middleware_stack.constructStack)(); + } + /** + * Factory for Command ClassBuilder. + * @internal + */ + static classBuilder() { + return new ClassBuilder(); + } + /** + * @internal + */ + resolveMiddlewareWithContext(clientStack, configuration2, options, { + middlewareFn, + clientName, + commandName, + inputFilterSensitiveLog, + outputFilterSensitiveLog, + smithyContext, + additionalContext, + CommandCtor + }) { + for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration2, options)) { + this.middlewareStack.use(mw); + } + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration2; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog, + outputFilterSensitiveLog, + [import_types5.SMITHY_CONTEXT_KEY]: { + commandInstance: this, + ...smithyContext + }, + ...additionalContext + }; + const { requestHandler } = configuration2; + return stack.resolve( + (request) => requestHandler.handle(request.request, options || {}), + handlerExecutionContext + ); + } + }; + __name(_Command, "Command"); + var Command = _Command; + var _ClassBuilder = class _ClassBuilder { + constructor() { + this._init = () => { + }; + this._ep = {}; + this._middlewareFn = () => []; + this._commandName = ""; + this._clientName = ""; + this._additionalContext = {}; + this._smithyContext = {}; + this._inputFilterSensitiveLog = (_) => _; + this._outputFilterSensitiveLog = (_) => _; + this._serializer = null; + this._deserializer = null; + } + /** + * Optional init callback. + */ + init(cb) { + this._init = cb; + } + /** + * Set the endpoint parameter instructions. + */ + ep(endpointParameterInstructions) { + this._ep = endpointParameterInstructions; + return this; + } + /** + * Add any number of middleware. + */ + m(middlewareSupplier) { + this._middlewareFn = middlewareSupplier; + return this; + } + /** + * Set the initial handler execution context Smithy field. + */ + s(service, operation, smithyContext = {}) { + this._smithyContext = { + service, + operation, + ...smithyContext + }; + return this; + } + /** + * Set the initial handler execution context. + */ + c(additionalContext = {}) { + this._additionalContext = additionalContext; + return this; + } + /** + * Set constant string identifiers for the operation. + */ + n(clientName, commandName) { + this._clientName = clientName; + this._commandName = commandName; + return this; + } + /** + * Set the input and output sensistive log filters. + */ + f(inputFilter = (_) => _, outputFilter = (_) => _) { + this._inputFilterSensitiveLog = inputFilter; + this._outputFilterSensitiveLog = outputFilter; + return this; + } + /** + * Sets the serializer. + */ + ser(serializer) { + this._serializer = serializer; + return this; + } + /** + * Sets the deserializer. + */ + de(deserializer) { + this._deserializer = deserializer; + return this; + } + /** + * @returns a Command class with the classBuilder properties. + */ + build() { + var _a; + const closure = this; + let CommandRef; + return CommandRef = (_a = class extends Command { + /** + * @public + */ + constructor(...[input]) { + super(); + this.serialize = closure._serializer; + this.deserialize = closure._deserializer; + this.input = input ?? {}; + closure._init(this); + } + /** + * @public + */ + static getEndpointParameterInstructions() { + return closure._ep; + } + /** + * @internal + */ + resolveMiddleware(stack, configuration2, options) { + return this.resolveMiddlewareWithContext(stack, configuration2, options, { + CommandCtor: CommandRef, + middlewareFn: closure._middlewareFn, + clientName: closure._clientName, + commandName: closure._commandName, + inputFilterSensitiveLog: closure._inputFilterSensitiveLog, + outputFilterSensitiveLog: closure._outputFilterSensitiveLog, + smithyContext: closure._smithyContext, + additionalContext: closure._additionalContext + }); + } + }, __name(_a, "CommandRef"), _a); + } + }; + __name(_ClassBuilder, "ClassBuilder"); + var ClassBuilder = _ClassBuilder; + var SENSITIVE_STRING = "***SensitiveInformation***"; + var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => { + for (const command of Object.keys(commands)) { + const CommandCtor = commands[command]; + const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) { + const command2 = new CommandCtor(args); + if (typeof optionsOrCb === "function") { + this.send(command2, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expected http options but got ${typeof optionsOrCb}`); + this.send(command2, optionsOrCb || {}, cb); + } else { + return this.send(command2, optionsOrCb); + } + }, "methodImpl"); + const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); + Client2.prototype[methodName] = methodImpl; + } + }, "createAggregatedClient"); + var parseBoolean = /* @__PURE__ */ __name((value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); + } + }, "parseBoolean"); + var expectBoolean = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "number") { + if (value === 0 || value === 1) { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; + } + } + if (typeof value === "string") { + const lower = value.toLowerCase(); + if (lower === "false" || lower === "true") { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (lower === "false") { + return false; + } + if (lower === "true") { + return true; + } + } + if (typeof value === "boolean") { + return value; + } + throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); + }, "expectBoolean"); + var expectNumber = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + } + return parsed; + } + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}: ${value}`); + }, "expectNumber"); + var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); + var expectFloat32 = /* @__PURE__ */ __name((value) => { + const expected = expectNumber(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); + } + } + return expected; + }, "expectFloat32"); + var expectLong = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); + }, "expectLong"); + var expectInt = expectLong; + var expectInt32 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), "expectInt32"); + var expectShort = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), "expectShort"); + var expectByte = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), "expectByte"); + var expectSizedInt = /* @__PURE__ */ __name((value, size) => { + const expected = expectLong(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); + } + return expected; + }, "expectSizedInt"); + var castInt = /* @__PURE__ */ __name((value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } + }, "castInt"); + var expectNonNull = /* @__PURE__ */ __name((value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); + } + throw new TypeError("Expected a non-null value"); + } + return value; + }, "expectNonNull"); + var expectObject = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? "array" : typeof value; + throw new TypeError(`Expected object, got ${receivedType}: ${value}`); + }, "expectObject"); + var expectString = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + return value; + } + if (["boolean", "number", "bigint"].includes(typeof value)) { + logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + return String(value); + } + throw new TypeError(`Expected string, got ${typeof value}: ${value}`); + }, "expectString"); + var expectUnion2 = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + const asObject = expectObject(value); + const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); + if (setKeys.length === 0) { + throw new TypeError(`Unions must have exactly one non-null member. None were found.`); + } + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + } + return asObject; + }, "expectUnion"); + var strictParseDouble = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return expectNumber(parseNumber(value)); + } + return expectNumber(value); + }, "strictParseDouble"); + var strictParseFloat = strictParseDouble; + var strictParseFloat32 = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return expectFloat32(parseNumber(value)); + } + return expectFloat32(value); + }, "strictParseFloat32"); + var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; + var parseNumber = /* @__PURE__ */ __name((value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(`Expected real number, got implicit NaN`); + } + return parseFloat(value); + }, "parseNumber"); + var limitedParseDouble = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectNumber(value); + }, "limitedParseDouble"); + var handleFloat = limitedParseDouble; + var limitedParseFloat = limitedParseDouble; + var limitedParseFloat32 = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectFloat32(value); + }, "limitedParseFloat32"); + var parseFloatString = /* @__PURE__ */ __name((value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } + }, "parseFloatString"); + var strictParseLong = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectLong(parseNumber(value)); + } + return expectLong(value); + }, "strictParseLong"); + var strictParseInt = strictParseLong; + var strictParseInt32 = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectInt32(parseNumber(value)); + } + return expectInt32(value); + }, "strictParseInt32"); + var strictParseShort = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectShort(parseNumber(value)); + } + return expectShort(value); + }, "strictParseShort"); + var strictParseByte = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectByte(parseNumber(value)); + } + return expectByte(value); + }, "strictParseByte"); + var stackTraceWarning = /* @__PURE__ */ __name((message) => { + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); + }, "stackTraceWarning"); + var logger = { + warn: console.warn + }; + var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; + } + __name(dateToUtcString, "dateToUtcString"); + var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); + var parseRfc3339DateTime = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + }, "parseRfc3339DateTime"); + var RFC3339_WITH_OFFSET = new RegExp( + /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/ + ); + var parseRfc3339DateTimeWithOffset = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339_WITH_OFFSET.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + if (offsetStr.toUpperCase() != "Z") { + date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); + } + return date; + }, "parseRfc3339DateTimeWithOffset"); + var IMF_FIXDATE = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ + ); + var RFC_850_DATE = new RegExp( + /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ + ); + var ASC_TIME = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/ + ); + var parseRfc7231DateTime = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); + } + let match = IMF_FIXDATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr, "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); + } + match = RFC_850_DATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year( + buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds + }) + ); + } + match = ASC_TIME.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr.trimLeft(), "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); + } + throw new TypeError("Invalid RFC-7231 date-time value"); + }, "parseRfc7231DateTime"); + var parseEpochTimestamp = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } else if (typeof value === "string") { + valueAsDouble = strictParseDouble(value); + } else if (typeof value === "object" && value.tag === 1) { + valueAsDouble = value.value; + } else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); + } + return new Date(Math.round(valueAsDouble * 1e3)); + }, "parseEpochTimestamp"); + var buildDate = /* @__PURE__ */ __name((year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date( + Date.UTC( + year, + adjustedMonth, + day, + parseDateValue(time.hours, "hour", 0, 23), + parseDateValue(time.minutes, "minute", 0, 59), + // seconds can go up to 60 for leap seconds + parseDateValue(time.seconds, "seconds", 0, 60), + parseMilliseconds(time.fractionalMilliseconds) + ) + ); + }, "buildDate"); + var parseTwoDigitYear = /* @__PURE__ */ __name((value) => { + const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; + }, "parseTwoDigitYear"); + var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; + var adjustRfc850Year = /* @__PURE__ */ __name((input) => { + if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date( + Date.UTC( + input.getUTCFullYear() - 100, + input.getUTCMonth(), + input.getUTCDate(), + input.getUTCHours(), + input.getUTCMinutes(), + input.getUTCSeconds(), + input.getUTCMilliseconds() + ) + ); + } + return input; + }, "adjustRfc850Year"); + var parseMonthByShortName = /* @__PURE__ */ __name((value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); + } + return monthIdx + 1; + }, "parseMonthByShortName"); + var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + var validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + } + }, "validateDayOfMonth"); + var isLeapYear = /* @__PURE__ */ __name((year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); + }, "isLeapYear"); + var parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => { + const dateVal = strictParseByte(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + } + return dateVal; + }, "parseDateValue"); + var parseMilliseconds = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return 0; + } + return strictParseFloat32("0." + value) * 1e3; + }, "parseMilliseconds"); + var parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => { + const directionStr = value[0]; + let direction = 1; + if (directionStr == "+") { + direction = 1; + } else if (directionStr == "-") { + direction = -1; + } else { + throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); + } + const hour = Number(value.substring(1, 3)); + const minute = Number(value.substring(4, 6)); + return direction * (hour * 60 + minute) * 60 * 1e3; + }, "parseOffsetToMilliseconds"); + var stripLeadingZeroes = /* @__PURE__ */ __name((value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); + }, "stripLeadingZeroes"); + var _ServiceException = class _ServiceException2 extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, _ServiceException2.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } + }; + __name(_ServiceException, "ServiceException"); + var ServiceException = _ServiceException; + var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => { + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === "") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || "UnknownError"; + exception.message = message; + delete exception.Message; + return exception; + }, "decorateServiceException"); + var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; + const response = new exceptionCtor({ + name: (parsedBody == null ? void 0 : parsedBody.code) || (parsedBody == null ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", + $fault: "client", + $metadata + }); + throw decorateServiceException(response, parsedBody); + }, "throwDefaultError"); + var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => { + return ({ output, parsedBody, errorCode }) => { + throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); + }; + }, "withBaseException"); + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }), "deserializeMetadata"); + var loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => { + switch (mode) { + case "standard": + return { + retryMode: "standard", + connectionTimeout: 3100 + }; + case "in-region": + return { + retryMode: "standard", + connectionTimeout: 1100 + }; + case "cross-region": + return { + retryMode: "standard", + connectionTimeout: 3100 + }; + case "mobile": + return { + retryMode: "standard", + connectionTimeout: 3e4 + }; + default: + return {}; + } + }, "loadConfigsForDefaultMode"); + var warningEmitted = false; + var emitWarningIfUnsupportedVersion2 = /* @__PURE__ */ __name((version2) => { + if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 16) { + warningEmitted = true; + } + }, "emitWarningIfUnsupportedVersion"); + var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { + const checksumAlgorithms = []; + for (const id in import_types5.AlgorithmId) { + const algorithmId = import_types5.AlgorithmId[id]; + if (runtimeConfig[algorithmId] === void 0) { + continue; + } + checksumAlgorithms.push({ + algorithmId: () => algorithmId, + checksumConstructor: () => runtimeConfig[algorithmId] + }); + } + return { + _checksumAlgorithms: checksumAlgorithms, + addChecksumAlgorithm(algo) { + this._checksumAlgorithms.push(algo); + }, + checksumAlgorithms() { + return this._checksumAlgorithms; + } + }; + }, "getChecksumConfiguration"); + var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => { + const runtimeConfig = {}; + clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { + runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); + }); + return runtimeConfig; + }, "resolveChecksumRuntimeConfig"); + var getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { + let _retryStrategy = runtimeConfig.retryStrategy; + return { + setRetryStrategy(retryStrategy) { + _retryStrategy = retryStrategy; + }, + retryStrategy() { + return _retryStrategy; + } + }; + }, "getRetryConfiguration"); + var resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => { + const runtimeConfig = {}; + runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); + return runtimeConfig; + }, "resolveRetryRuntimeConfig"); + var getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { + return { + ...getChecksumConfiguration(runtimeConfig), + ...getRetryConfiguration(runtimeConfig) + }; + }, "getDefaultExtensionConfiguration"); + var getDefaultClientConfiguration = getDefaultExtensionConfiguration; + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { + return { + ...resolveChecksumRuntimeConfig(config), + ...resolveRetryRuntimeConfig(config) + }; + }, "resolveDefaultRuntimeConfig"); + var getArrayIfSingleItem = /* @__PURE__ */ __name((mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray], "getArrayIfSingleItem"); + var getValueFromTextNode2 = /* @__PURE__ */ __name((obj) => { + const textNodeName = "#text"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { + obj[key] = obj[key][textNodeName]; + } else if (typeof obj[key] === "object" && obj[key] !== null) { + obj[key] = getValueFromTextNode2(obj[key]); + } + } + return obj; + }, "getValueFromTextNode"); + var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => { + return value != null; + }, "isSerializableHeaderValue"); + var StringWrapper = /* @__PURE__ */ __name(function() { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; + }, "StringWrapper"); + StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: StringWrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + Object.setPrototypeOf(StringWrapper, String); + var _LazyJsonString = class _LazyJsonString2 extends StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); + } + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof _LazyJsonString2) { + return object; + } else if (object instanceof String || typeof object === "string") { + return new _LazyJsonString2(object); + } + return new _LazyJsonString2(JSON.stringify(object)); + } + }; + __name(_LazyJsonString, "LazyJsonString"); + var LazyJsonString = _LazyJsonString; + var _NoOpLogger = class _NoOpLogger { + trace() { } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); + debug() { } - cubicSuccess(timestamp) { - return this.getPrecise( - this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate - ); + info() { } - enableTokenBucket() { - this.enabled = true; + warn() { } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + error() { } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; + }; + __name(_NoOpLogger, "NoOpLogger"); + var NoOpLogger = _NoOpLogger; + function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { + target = {}; + instructions = arg0; + } else { + target = arg0; + if (typeof arg1 === "function") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } else { + instructions = arg1; } } - getPrecise(num) { - return parseFloat(num.toFixed(8)); + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + applyInstruction(target, null, instructions, key); } - }; - __name(_DefaultRateLimiter, "DefaultRateLimiter"); - _DefaultRateLimiter.setTimeoutFn = setTimeout; - var DefaultRateLimiter = _DefaultRateLimiter; - var DEFAULT_RETRY_DELAY_BASE = 100; - var MAXIMUM_RETRY_DELAY = 20 * 1e3; - var THROTTLING_RETRY_DELAY_BASE = 500; - var INITIAL_RETRY_TOKENS = 500; - var RETRY_COST = 5; - var TIMEOUT_RETRY_COST = 10; - var NO_RETRY_INCREMENT = 1; - var INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; - var REQUEST_HEADER = "amz-sdk-request"; - var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => { - let delayBase = DEFAULT_RETRY_DELAY_BASE; - const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => { - return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - }, "computeNextBackoffDelay"); - const setDelayBase = /* @__PURE__ */ __name((delay) => { - delayBase = delay; - }, "setDelayBase"); - return { - computeNextBackoffDelay, - setDelayBase - }; - }, "getDefaultRetryBackoffStrategy"); - var createDefaultRetryToken = /* @__PURE__ */ __name(({ - retryDelay, - retryCount, - retryCost - }) => { - const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount"); - const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay"); - const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost"); - return { - getRetryCount, - getRetryDelay, - getRetryCost - }; - }, "createDefaultRetryToken"); - var _StandardRetryStrategy = class _StandardRetryStrategy { - constructor(maxAttempts) { - this.maxAttempts = maxAttempts; - this.mode = "standard"; - this.capacity = INITIAL_RETRY_TOKENS; - this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); - this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; + return target; + } + __name(map, "map"); + var convertMap = /* @__PURE__ */ __name((target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - async acquireInitialRetryToken(retryTokenScope) { - return createDefaultRetryToken({ - retryDelay: DEFAULT_RETRY_DELAY_BASE, - retryCount: 0 - }); + return output; + }, "convertMap"); + var take = /* @__PURE__ */ __name((source, instructions) => { + const out = {}; + for (const key in instructions) { + applyInstruction(out, source, instructions, key); } - async refreshRetryTokenForRetry(token, errorInfo) { - const maxAttempts = await this.getMaxAttempts(); - if (this.shouldRetry(token, errorInfo, maxAttempts)) { - const errorType = errorInfo.errorType; - this.retryBackoffStrategy.setDelayBase( - errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE - ); - const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); - const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; - const capacityCost = this.getCapacityCost(errorType); - this.capacity -= capacityCost; - return createDefaultRetryToken({ - retryDelay, - retryCount: token.getRetryCount() + 1, - retryCost: capacityCost - }); + return out; + }, "take"); + var mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => { + return map( + target, + Object.entries(instructions).reduce( + (_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } else { + if (typeof value === "function") { + _instructions[key] = [filter, value()]; + } else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, + {} + ) + ); + }, "mapWithFilter"); + var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, targetKey) => { + if (source !== null) { + let instruction = instructions[targetKey]; + if (typeof instruction === "function") { + instruction = [, instruction]; } - throw new Error("No retry token available"); - } - recordSuccess(token) { - this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); - } - /** - * @returns the current available retry capacity. - * - * This number decreases when retries are executed and refills when requests or retries succeed. - */ - getCapacity() { - return this.capacity; + const [filter2 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction; + if (typeof filter2 === "function" && filter2(source[sourceKey]) || typeof filter2 !== "function" && !!filter2) { + target[targetKey] = valueFn(source[sourceKey]); + } + return; } - async getMaxAttempts() { - try { - return await this.maxAttemptsProvider(); - } catch (error2) { - console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); - return DEFAULT_MAX_ATTEMPTS; + let [filter, value] = instructions[targetKey]; + if (typeof value === "function") { + let _value; + const defaultFilterPassed = filter === void 0 && (_value = value()) != null; + const customFilterPassed = typeof filter === "function" && !!filter(void 0) || typeof filter !== "function" && !!filter; + if (defaultFilterPassed) { + target[targetKey] = _value; + } else if (customFilterPassed) { + target[targetKey] = value(); + } + } else { + const defaultFilterPassed = filter === void 0 && value != null; + const customFilterPassed = typeof filter === "function" && !!filter(value) || typeof filter !== "function" && !!filter; + if (defaultFilterPassed || customFilterPassed) { + target[targetKey] = value; } } - shouldRetry(tokenToRenew, errorInfo, maxAttempts) { - const attempts = tokenToRenew.getRetryCount() + 1; - return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); + }, "applyInstruction"); + var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish"); + var pass = /* @__PURE__ */ __name((_) => _, "pass"); + function quoteHeader(part) { + if (part.includes(",") || part.includes('"')) { + part = `"${part.replace(/"/g, '\\"')}"`; } - getCapacityCost(errorType) { - return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST; + return part; + } + __name(quoteHeader, "quoteHeader"); + var serializeFloat = /* @__PURE__ */ __name((value) => { + if (value !== value) { + return "NaN"; } - isRetryableError(errorType) { - return errorType === "THROTTLING" || errorType === "TRANSIENT"; + switch (value) { + case Infinity: + return "Infinity"; + case -Infinity: + return "-Infinity"; + default: + return value; } - }; - __name(_StandardRetryStrategy, "StandardRetryStrategy"); - var StandardRetryStrategy = _StandardRetryStrategy; - var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy { - constructor(maxAttemptsProvider, options) { - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = "adaptive"; - const { rateLimiter } = options ?? {}; - this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); - this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); + }, "serializeFloat"); + var serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime"); + var _json = /* @__PURE__ */ __name((obj) => { + if (obj == null) { + return {}; } - async acquireInitialRetryToken(retryTokenScope) { - await this.rateLimiter.getSendToken(); - return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); + if (Array.isArray(obj)) { + return obj.filter((_) => _ != null).map(_json); } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - this.rateLimiter.updateClientSendingRate(errorInfo); - return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + if (typeof obj === "object") { + const target = {}; + for (const key of Object.keys(obj)) { + if (obj[key] == null) { + continue; + } + target[key] = _json(obj[key]); + } + return target; } - recordSuccess(token) { - this.rateLimiter.updateClientSendingRate({}); - this.standardRetryStrategy.recordSuccess(token); + return obj; + }, "_json"); + function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); } - }; - __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); - var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; - var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy { - /** - * @param maxAttempts - the maximum number of retry attempts allowed. - * e.g., if set to 3, then 4 total requests are possible. - * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt - * and returns the delay. - * - * @example exponential backoff. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2) - * }); - * ``` - * @example constant delay. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, 2000) - * }); - * ``` - */ - constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) { - super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); - if (typeof computeNextBackoffDelay === "number") { - this.computeNextBackoffDelay = () => computeNextBackoffDelay; + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; } else { - this.computeNextBackoffDelay = computeNextBackoffDelay; + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; } } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); - return token; + if (currentSegment !== "") { + compoundSegments.push(currentSegment); } - }; - __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy"); - var ConfiguredRetryStrategy = _ConfiguredRetryStrategy; + return compoundSegments; + } + __name(splitEvery, "splitEvery"); + var splitHeader = /* @__PURE__ */ __name((value) => { + const z = value.length; + const values = []; + let withinQuotes = false; + let prevChar = void 0; + let anchor = 0; + for (let i = 0; i < z; ++i) { + const char = value[i]; + switch (char) { + case `"`: + if (prevChar !== "\\") { + withinQuotes = !withinQuotes; + } + break; + case ",": + if (!withinQuotes) { + values.push(value.slice(anchor, i)); + anchor = i + 1; + } + break; + default: + } + prevChar = char; + } + values.push(value.slice(anchor)); + return values.map((v) => { + v = v.trim(); + const z2 = v.length; + if (z2 < 2) { + return v; + } + if (v[0] === `"` && v[z2 - 1] === `"`) { + v = v.slice(1, z2 - 1); + } + return v.replace(/\\"/g, '"'); + }); + }, "splitHeader"); } }); @@ -31007,7 +32328,7 @@ var require_isStreamingPayload = __commonJS({ }); // ../../node_modules/@smithy/middleware-retry/dist-cjs/index.js -var require_dist_cjs38 = __commonJS({ +var require_dist_cjs39 = __commonJS({ "../../node_modules/@smithy/middleware-retry/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31049,7 +32370,7 @@ var require_dist_cjs38 = __commonJS({ retryMiddlewareOptions: () => retryMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_uuid = (init_esm_node(), __toCommonJS(esm_node_exports)); var import_util_retry = require_dist_cjs37(); var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => { @@ -31121,12 +32442,12 @@ var require_dist_cjs38 = __commonJS({ let totalDelay = 0; const maxAttempts = await this.getMaxAttempts(); const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } while (true) { try { - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } if (options == null ? void 0 : options.beforeRequest) { @@ -31168,7 +32489,7 @@ var require_dist_cjs38 = __commonJS({ __name(_StandardRetryStrategy, "StandardRetryStrategy"); var StandardRetryStrategy = _StandardRetryStrategy; var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http8.HttpResponse.isInstance(response)) + if (!import_protocol_http9.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31253,7 +32574,7 @@ var require_dist_cjs38 = __commonJS({ }; var omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => { const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { delete request.headers[import_util_retry.INVOCATION_ID_HEADER]; delete request.headers[import_util_retry.REQUEST_HEADER]; } @@ -31271,7 +32592,7 @@ var require_dist_cjs38 = __commonJS({ clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); } }), "getOmitRetryHeadersPlugin"); - var import_smithy_client4 = require_dist_cjs19(); + var import_smithy_client4 = require_dist_cjs38(); var import_isStreamingPayload = require_isStreamingPayload(); var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { var _a; @@ -31284,7 +32605,7 @@ var require_dist_cjs38 = __commonJS({ let attempts = 0; let totalRetryDelay = 0; const { request } = args; - const isRequest = import_protocol_http8.HttpRequest.isInstance(request); + const isRequest = import_protocol_http9.HttpRequest.isInstance(request); if (isRequest) { request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } @@ -31364,7 +32685,7 @@ var require_dist_cjs38 = __commonJS({ } }), "getRetryPlugin"); var getRetryAfterHint = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http8.HttpResponse.isInstance(response)) + if (!import_protocol_http9.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31380,7 +32701,7 @@ var require_dist_cjs38 = __commonJS({ }); // ../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js -var require_dist_cjs39 = __commonJS({ +var require_dist_cjs40 = __commonJS({ "../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -31564,7 +32885,7 @@ var require_slurpFile = __commonJS({ }); // ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js -var require_dist_cjs40 = __commonJS({ +var require_dist_cjs41 = __commonJS({ "../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31729,7 +33050,7 @@ var require_dist_cjs40 = __commonJS({ }); // ../../node_modules/@smithy/node-config-provider/dist-cjs/index.js -var require_dist_cjs41 = __commonJS({ +var require_dist_cjs42 = __commonJS({ "../../node_modules/@smithy/node-config-provider/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31781,7 +33102,7 @@ var require_dist_cjs41 = __commonJS({ ); } }, "fromEnv"); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var fromSharedConfigFiles = /* @__PURE__ */ __name((configSelector, { preferredFile = "config", ...init } = {}) => async () => { const profile = (0, import_shared_ini_file_loader.getProfileName)(init); const { configFile, credentialsFile } = await (0, import_shared_ini_file_loader.loadSharedConfigFiles)(init); @@ -31820,7 +33141,7 @@ var require_getEndpointUrlConfig = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getEndpointUrlConfig = void 0; - var shared_ini_file_loader_1 = require_dist_cjs40(); + var shared_ini_file_loader_1 = require_dist_cjs41(); var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; var CONFIG_ENDPOINT_URL = "endpoint_url"; var getEndpointUrlConfig = (serviceId) => ({ @@ -31861,7 +33182,7 @@ var require_getEndpointFromConfig = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getEndpointFromConfig = void 0; - var node_config_provider_1 = require_dist_cjs41(); + var node_config_provider_1 = require_dist_cjs42(); var getEndpointUrlConfig_1 = require_getEndpointUrlConfig(); var getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId !== null && serviceId !== void 0 ? serviceId : ""))(); exports2.getEndpointFromConfig = getEndpointFromConfig; @@ -31869,7 +33190,7 @@ var require_getEndpointFromConfig = __commonJS({ }); // ../../node_modules/@smithy/querystring-parser/dist-cjs/index.js -var require_dist_cjs42 = __commonJS({ +var require_dist_cjs43 = __commonJS({ "../../node_modules/@smithy/querystring-parser/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31920,7 +33241,7 @@ var require_dist_cjs42 = __commonJS({ }); // ../../node_modules/@smithy/url-parser/dist-cjs/index.js -var require_dist_cjs43 = __commonJS({ +var require_dist_cjs44 = __commonJS({ "../../node_modules/@smithy/url-parser/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31945,7 +33266,7 @@ var require_dist_cjs43 = __commonJS({ parseUrl: () => parseUrl }); module2.exports = __toCommonJS2(src_exports); - var import_querystring_parser = require_dist_cjs42(); + var import_querystring_parser = require_dist_cjs43(); var parseUrl = /* @__PURE__ */ __name((url) => { if (typeof url === "string") { return parseUrl(new URL(url)); @@ -31967,7 +33288,7 @@ var require_dist_cjs43 = __commonJS({ }); // ../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js -var require_dist_cjs44 = __commonJS({ +var require_dist_cjs45 = __commonJS({ "../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -32069,7 +33390,7 @@ var require_dist_cjs44 = __commonJS({ return configProvider; }, "createConfigValueProvider"); var import_getEndpointFromConfig = require_getEndpointFromConfig(); - var import_url_parser = require_dist_cjs43(); + var import_url_parser = require_dist_cjs44(); var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => { if (typeof endpoint === "object") { if ("url" in endpoint) { @@ -32453,8 +33774,8 @@ var require_httpAuthSchemeProvider = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.resolveHttpAuthSchemeConfig = exports2.defaultS3HttpAuthSchemeProvider = exports2.defaultS3HttpAuthSchemeParametersProvider = void 0; var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var signature_v4_multi_region_1 = require_dist_cjs39(); - var middleware_endpoint_1 = require_dist_cjs44(); + var signature_v4_multi_region_1 = require_dist_cjs40(); + var middleware_endpoint_1 = require_dist_cjs45(); var util_middleware_1 = require_dist_cjs4(); var endpointResolver_1 = require_endpointResolver(); var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => { @@ -32576,7 +33897,7 @@ var require_httpAuthSchemeProvider = __commonJS({ }); // ../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js -var require_dist_cjs45 = __commonJS({ +var require_dist_cjs46 = __commonJS({ "../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -32741,7 +34062,7 @@ var require_package = __commonJS({ module2.exports = { name: "@aws-sdk/client-s3", description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.699.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-s3", @@ -32767,64 +34088,64 @@ var require_package = __commonJS({ "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.693.0", - "@aws-sdk/client-sts": "3.693.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/credential-provider-node": "3.693.0", - "@aws-sdk/middleware-bucket-endpoint": "3.693.0", - "@aws-sdk/middleware-expect-continue": "3.693.0", - "@aws-sdk/middleware-flexible-checksums": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-location-constraint": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-sdk-s3": "3.693.0", - "@aws-sdk/middleware-ssec": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/signature-v4-multi-region": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@aws-sdk/xml-builder": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/eventstream-serde-browser": "^3.0.12", - "@smithy/eventstream-serde-config-resolver": "^3.0.9", - "@smithy/eventstream-serde-node": "^3.0.11", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-blob-browser": "^3.1.8", - "@smithy/hash-node": "^3.0.9", - "@smithy/hash-stream-node": "^3.1.8", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/md5-js": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/client-sso-oidc": "3.699.0", + "@aws-sdk/client-sts": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-bucket-endpoint": "3.696.0", + "@aws-sdk/middleware-expect-continue": "3.696.0", + "@aws-sdk/middleware-flexible-checksums": "3.697.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-location-constraint": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-sdk-s3": "3.696.0", + "@aws-sdk/middleware-ssec": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/signature-v4-multi-region": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@aws-sdk/xml-builder": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/eventstream-serde-browser": "^3.0.13", + "@smithy/eventstream-serde-config-resolver": "^3.0.10", + "@smithy/eventstream-serde-node": "^3.0.12", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-blob-browser": "^3.1.9", + "@smithy/hash-node": "^3.0.10", + "@smithy/hash-stream-node": "^3.1.9", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/md5-js": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", - "@smithy/util-stream": "^3.3.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-stream": "^3.3.1", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.8", + "@smithy/util-waiter": "^3.1.9", tslib: "^2.6.2" }, devDependencies: { - "@aws-sdk/signature-v4-crt": "3.693.0", + "@aws-sdk/signature-v4-crt": "3.696.0", "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", concurrently: "7.0.0", @@ -32867,7 +34188,7 @@ var require_package = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js -var require_dist_cjs46 = __commonJS({ +var require_dist_cjs47 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -32934,7 +34255,7 @@ var require_dist_cjs46 = __commonJS({ }); // ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js -var require_dist_cjs47 = __commonJS({ +var require_dist_cjs48 = __commonJS({ "../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -33115,8 +34436,8 @@ var require_dist_cjs47 = __commonJS({ }; __name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError"); var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError; - var import_node_config_provider = require_dist_cjs41(); - var import_url_parser = require_dist_cjs43(); + var import_node_config_provider = require_dist_cjs42(); + var import_url_parser = require_dist_cjs44(); var Endpoint = /* @__PURE__ */ ((Endpoint2) => { Endpoint2["IPv4"] = "http://169.254.169.254"; Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; @@ -33520,7 +34841,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI }); // ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js -var require_dist_cjs48 = __commonJS({ +var require_dist_cjs49 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -33611,7 +34932,7 @@ var require_package2 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sso", description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.696.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sso", @@ -33630,40 +34951,40 @@ var require_package2 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-node": "^3.0.9", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, @@ -33710,7 +35031,7 @@ var require_package2 = __commonJS({ }); // ../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js -var require_dist_cjs49 = __commonJS({ +var require_dist_cjs50 = __commonJS({ "../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -33795,7 +35116,7 @@ var require_dist_cjs49 = __commonJS({ }); // ../../node_modules/@smithy/hash-node/dist-cjs/index.js -var require_dist_cjs50 = __commonJS({ +var require_dist_cjs51 = __commonJS({ "../../node_modules/@smithy/hash-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -33859,7 +35180,7 @@ var require_dist_cjs50 = __commonJS({ }); // ../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js -var require_dist_cjs51 = __commonJS({ +var require_dist_cjs52 = __commonJS({ "../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -33975,7 +35296,7 @@ var require_runtimeConfig_shared = __commonJS({ var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider2(); @@ -34013,7 +35334,7 @@ var require_runtimeConfig_shared = __commonJS({ }); // ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js -var require_dist_cjs52 = __commonJS({ +var require_dist_cjs53 = __commonJS({ "../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2, module2) { var __create2 = Object.create; var __defProp2 = Object.defineProperty; @@ -34049,7 +35370,7 @@ var require_dist_cjs52 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_config_resolver = require_dist_cjs33(); - var import_node_config_provider = require_dist_cjs41(); + var import_node_config_provider = require_dist_cjs42(); var import_property_provider2 = require_dist_cjs16(); var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; var AWS_REGION_ENV = "AWS_REGION"; @@ -34111,7 +35432,7 @@ var require_dist_cjs52 = __commonJS({ } if (!process.env[ENV_IMDS_DISABLED]) { try { - const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); const endpoint = await getInstanceMetadataEndpoint(); return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); } catch (e) { @@ -34130,17 +35451,17 @@ var require_runtimeConfig = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package2()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var util_user_agent_node_1 = require_dist_cjs49(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); - var hash_node_1 = require_dist_cjs50(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var hash_node_1 = require_dist_cjs51(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -34174,7 +35495,7 @@ var require_runtimeConfig = __commonJS({ }); // ../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js -var require_dist_cjs53 = __commonJS({ +var require_dist_cjs54 = __commonJS({ "../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -34272,7 +35593,7 @@ var require_dist_cjs53 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js -var require_dist_cjs54 = __commonJS({ +var require_dist_cjs55 = __commonJS({ "../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -34324,8 +35645,8 @@ var require_dist_cjs54 = __commonJS({ var import_config_resolver = require_dist_cjs33(); var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_middleware_content_length = require_dist_cjs35(); - var import_middleware_endpoint = require_dist_cjs44(); - var import_middleware_retry = require_dist_cjs38(); + var import_middleware_endpoint = require_dist_cjs45(); + var import_middleware_retry = require_dist_cjs39(); var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider2(); var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { @@ -34342,8 +35663,8 @@ var require_dist_cjs54 = __commonJS({ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; var import_runtimeConfig = require_runtimeConfig(); - var import_region_config_resolver = require_dist_cjs53(); - var import_protocol_http8 = require_dist_cjs2(); + var import_region_config_resolver = require_dist_cjs54(); + var import_protocol_http9 = require_dist_cjs2(); var import_smithy_client4 = require_dist_cjs19(); var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; @@ -34387,7 +35708,7 @@ var require_dist_cjs54 = __commonJS({ const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); @@ -34395,7 +35716,7 @@ var require_dist_cjs54 = __commonJS({ ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); @@ -34876,7 +36197,7 @@ var require_package3 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sso-oidc", description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.699.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sso-oidc", @@ -34895,41 +36216,41 @@ var require_package3 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/credential-provider-node": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-node": "^3.0.9", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, @@ -34960,7 +36281,7 @@ var require_package3 = __commonJS({ }, license: "Apache-2.0", peerDependencies: { - "@aws-sdk/client-sts": "^3.693.0" + "@aws-sdk/client-sts": "^3.699.0" }, browser: { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" @@ -35046,7 +36367,7 @@ var require_runtimeConfig_shared2 = __commonJS({ var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider3(); @@ -35092,18 +36413,18 @@ var require_runtimeConfig2 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package3()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs62(); - var util_user_agent_node_1 = require_dist_cjs49(); + var credential_provider_node_1 = require_dist_cjs63(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); - var hash_node_1 = require_dist_cjs50(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var hash_node_1 = require_dist_cjs51(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -35138,7 +36459,7 @@ var require_runtimeConfig2 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js -var require_dist_cjs55 = __commonJS({ +var require_dist_cjs56 = __commonJS({ "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -35198,8 +36519,8 @@ var require_dist_cjs55 = __commonJS({ var import_config_resolver = require_dist_cjs33(); var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_middleware_content_length = require_dist_cjs35(); - var import_middleware_endpoint = require_dist_cjs44(); - var import_middleware_retry = require_dist_cjs38(); + var import_middleware_endpoint = require_dist_cjs45(); + var import_middleware_retry = require_dist_cjs39(); var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider3(); var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { @@ -35216,8 +36537,8 @@ var require_dist_cjs55 = __commonJS({ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; var import_runtimeConfig = require_runtimeConfig2(); - var import_region_config_resolver = require_dist_cjs53(); - var import_protocol_http8 = require_dist_cjs2(); + var import_region_config_resolver = require_dist_cjs54(); + var import_protocol_http9 = require_dist_cjs2(); var import_smithy_client4 = require_dist_cjs19(); var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; @@ -35261,7 +36582,7 @@ var require_dist_cjs55 = __commonJS({ const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); @@ -35269,7 +36590,7 @@ var require_dist_cjs55 = __commonJS({ ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); @@ -36107,7 +37428,7 @@ var require_dist_cjs55 = __commonJS({ }); // ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js -var require_dist_cjs56 = __commonJS({ +var require_dist_cjs57 = __commonJS({ "../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -36147,19 +37468,20 @@ var require_dist_cjs56 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var EXPIRE_WINDOW_MS = 5 * 60 * 1e3; var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; - var ssoOidcClientsHash = {}; - var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion) => { - const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); - if (ssoOidcClientsHash[ssoRegion]) { - return ssoOidcClientsHash[ssoRegion]; - } - const ssoOidcClient = new SSOOIDCClient({ region: ssoRegion }); - ssoOidcClientsHash[ssoRegion] = ssoOidcClient; + var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init = {}) => { + var _a, _b, _c; + const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const ssoOidcClient = new SSOOIDCClient( + Object.assign({}, init.clientConfig ?? {}, { + region: ssoRegion ?? ((_a = init.clientConfig) == null ? void 0 : _a.region), + logger: ((_b = init.clientConfig) == null ? void 0 : _b.logger) ?? ((_c = init.parentClientConfig) == null ? void 0 : _c.logger) + }) + ); return ssoOidcClient; }, "getSsoOidcClient"); - var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion) => { - const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); - const ssoOidcClient = await getSsoOidcClient(ssoRegion); + var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init = {}) => { + const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const ssoOidcClient = await getSsoOidcClient(ssoRegion, init); return ssoOidcClient.send( new CreateTokenCommand({ clientId: ssoToken.clientId, @@ -36183,7 +37505,7 @@ var require_dist_cjs56 = __commonJS({ ); } }, "validateTokenKey"); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_fs2 = require("fs"); var { writeFile } = import_fs2.promises; var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => { @@ -36247,7 +37569,7 @@ var require_dist_cjs56 = __commonJS({ validateTokenKey("refreshToken", ssoToken.refreshToken, true); try { lastRefreshAttemptTime.setTime(Date.now()); - const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion); + const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init); validateTokenKey("accessToken", newSsoOidcToken.accessToken); validateTokenKey("expiresIn", newSsoOidcToken.expiresIn); const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3); @@ -36287,7 +37609,7 @@ var require_dist_cjs56 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js -var require_dist_cjs57 = __commonJS({ +var require_dist_cjs58 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -36320,7 +37642,7 @@ var require_dist_cjs57 = __commonJS({ var init_loadSso = __esm2({ "src/loadSso.ts"() { "use strict"; - import_client_sso = require_dist_cjs54(); + import_client_sso = require_dist_cjs55(); } }); var src_exports = {}; @@ -36332,9 +37654,9 @@ var require_dist_cjs57 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var isSsoProfile = /* @__PURE__ */ __name((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"), "isSsoProfile"); var import_client2 = (init_client(), __toCommonJS(client_exports)); - var import_token_providers = require_dist_cjs56(); + var import_token_providers = require_dist_cjs57(); var import_property_provider2 = require_dist_cjs16(); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var SHOULD_FAIL_CREDENTIAL_CHAIN = false; var resolveSSOCredentials = /* @__PURE__ */ __name(async ({ ssoStartUrl, @@ -36344,6 +37666,7 @@ var require_dist_cjs57 = __commonJS({ ssoRoleName, ssoClient, clientConfig, + parentClientConfig, profile, logger }) => { @@ -36382,6 +37705,7 @@ var require_dist_cjs57 = __commonJS({ const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports)); const sso = ssoClient || new SSOClient2( Object.assign({}, clientConfig ?? {}, { + logger: (clientConfig == null ? void 0 : clientConfig.logger) ?? (parentClientConfig == null ? void 0 : parentClientConfig.logger), region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion }) ); @@ -36485,6 +37809,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht ssoRoleName: sso_role_name, ssoClient, clientConfig: init.clientConfig, + parentClientConfig: init.parentClientConfig, profile: profileName }); } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { @@ -36501,6 +37826,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht ssoRoleName, ssoClient, clientConfig: init.clientConfig, + parentClientConfig: init.parentClientConfig, profile: profileName }); } @@ -36612,7 +37938,7 @@ var require_package4 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sts", description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.699.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sts", @@ -36633,42 +37959,42 @@ var require_package4 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.693.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/credential-provider-node": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-node": "^3.0.9", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/client-sso-oidc": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, @@ -36794,7 +38120,7 @@ var require_runtimeConfig_shared3 = __commonJS({ var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4(); @@ -36840,19 +38166,19 @@ var require_runtimeConfig3 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package4()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs62(); - var util_user_agent_node_1 = require_dist_cjs49(); + var credential_provider_node_1 = require_dist_cjs63(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var hash_node_1 = require_dist_cjs50(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var hash_node_1 = require_dist_cjs51(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -36952,7 +38278,7 @@ var require_runtimeExtensions = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.resolveRuntimeExtensions = void 0; - var region_config_resolver_1 = require_dist_cjs53(); + var region_config_resolver_1 = require_dist_cjs54(); var protocol_http_1 = require_dist_cjs2(); var smithy_client_1 = require_dist_cjs19(); var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration(); @@ -36990,8 +38316,8 @@ var require_STSClient = __commonJS({ var config_resolver_1 = require_dist_cjs33(); var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports)); var middleware_content_length_1 = require_dist_cjs35(); - var middleware_endpoint_1 = require_dist_cjs44(); - var middleware_retry_1 = require_dist_cjs38(); + var middleware_endpoint_1 = require_dist_cjs45(); + var middleware_retry_1 = require_dist_cjs39(); var smithy_client_1 = require_dist_cjs19(); Object.defineProperty(exports2, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; @@ -37036,7 +38362,7 @@ var require_STSClient = __commonJS({ }); // ../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js -var require_dist_cjs58 = __commonJS({ +var require_dist_cjs59 = __commonJS({ "../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -37095,7 +38421,7 @@ var require_dist_cjs58 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); __reExport(src_exports, require_STSClient(), module2.exports); - var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_endpoint = require_dist_cjs45(); var import_middleware_serde2 = require_dist_cjs5(); var import_EndpointParameters = require_EndpointParameters(); var import_smithy_client4 = require_dist_cjs19(); @@ -37283,7 +38609,7 @@ var require_dist_cjs58 = __commonJS({ ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } }), "GetSessionTokenResponseFilterSensitiveLog"); var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -38145,7 +39471,7 @@ var require_dist_cjs58 = __commonJS({ if (body !== void 0) { contents.body = body; } - return new import_protocol_http8.HttpRequest(contents); + return new import_protocol_http9.HttpRequest(contents); }, "buildHttpRpcRequest"); var SHARED_HEADERS = { "content-type": "application/x-www-form-urlencoded" @@ -38470,7 +39796,7 @@ var require_dist_cjs58 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js -var require_dist_cjs59 = __commonJS({ +var require_dist_cjs60 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38496,7 +39822,7 @@ var require_dist_cjs59 = __commonJS({ fromProcess: () => fromProcess }); module2.exports = __toCommonJS2(src_exports); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_property_provider2 = require_dist_cjs16(); var import_child_process = require("child_process"); var import_util = require("util"); @@ -38605,7 +39931,7 @@ var require_fromWebToken = __commonJS({ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; let { roleAssumerWithWebIdentity } = init; if (!roleAssumerWithWebIdentity) { - const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar2(require_dist_cjs58())); + const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar2(require_dist_cjs59())); roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({ ...init.clientConfig, credentialProviderLogger: init.logger, @@ -38665,7 +39991,7 @@ var require_fromTokenFile = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js -var require_dist_cjs60 = __commonJS({ +var require_dist_cjs61 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38690,7 +40016,7 @@ var require_dist_cjs60 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js -var require_dist_cjs61 = __commonJS({ +var require_dist_cjs62 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38726,25 +40052,25 @@ var require_dist_cjs61 = __commonJS({ fromIni: () => fromIni }); module2.exports = __toCommonJS2(src_exports); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_client2 = (init_client(), __toCommonJS(client_exports)); var import_property_provider2 = require_dist_cjs16(); var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger) => { const sourceProvidersMap = { EcsContainer: async (options) => { - const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); - const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs49())); + const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); return async () => (0, import_property_provider2.chain)(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider); }, Ec2InstanceMetadata: async (options) => { logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); - const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); return async () => fromInstanceMetadata(options)().then(setNamedProvider); }, Environment: async (options) => { logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); - const { fromEnv } = await Promise.resolve().then(() => __toESM2(require_dist_cjs46())); + const { fromEnv } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); return async () => fromEnv(options)().then(setNamedProvider); } }; @@ -38782,7 +40108,7 @@ var require_dist_cjs61 = __commonJS({ (_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); const data = profiles[profileName]; if (!options.roleAssumer) { - const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); + const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); options.roleAssumer = getDefaultRoleAssumer( { ...options.clientConfig, @@ -38842,17 +40168,19 @@ var require_dist_cjs61 = __commonJS({ return !section.role_arn && !!section.credential_source; }, "isCredentialSourceWithoutRoleArn"); var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile"); - var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs59())).then( + var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs60())).then( ({ fromProcess }) => fromProcess({ ...options, profile })().then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v")) ), "resolveProcessCredentials"); var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}) => { - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); return fromSSO({ profile, - logger: options.logger + logger: options.logger, + parentClientConfig: options.parentClientConfig, + clientConfig: options.clientConfig })().then((creds) => { if (profileData.sso_session) { return (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r"); @@ -38876,7 +40204,7 @@ var require_dist_cjs61 = __commonJS({ return (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n"); }, "resolveStaticCredentials"); var isWebIdentityProfile = /* @__PURE__ */ __name((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, "isWebIdentityProfile"); - var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs60())).then( + var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs61())).then( ({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({ webIdentityTokenFile: profile.web_identity_token_file, roleArn: profile.role_arn, @@ -38921,7 +40249,7 @@ var require_dist_cjs61 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js -var require_dist_cjs62 = __commonJS({ +var require_dist_cjs63 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38959,16 +40287,16 @@ var require_dist_cjs62 = __commonJS({ defaultProvider: () => defaultProvider }); module2.exports = __toCommonJS2(src_exports); - var import_credential_provider_env = require_dist_cjs46(); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_credential_provider_env = require_dist_cjs47(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_property_provider2 = require_dist_cjs16(); var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; var remoteProvider = /* @__PURE__ */ __name(async (init) => { var _a, _b; - const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) { (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); - const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); + const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs49())); return (0, import_property_provider2.chain)(fromHttp(init), fromContainerMetadata(init)); } if (process.env[ENV_IMDS_DISABLED]) { @@ -39022,25 +40350,25 @@ var require_dist_cjs62 = __commonJS({ { logger: init.logger } ); } - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); return fromSSO(init)(); }, async () => { var _a; (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); - const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs61())); + const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs62())); return fromIni(init)(); }, async () => { var _a; (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); - const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); + const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs60())); return fromProcess(init)(); }, async () => { var _a; (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); - const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs60())); + const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs61())); return fromTokenFile2(init)(); }, async () => { @@ -39064,7 +40392,7 @@ var require_dist_cjs62 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js -var require_dist_cjs63 = __commonJS({ +var require_dist_cjs64 = __commonJS({ "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -39125,7 +40453,7 @@ var require_dist_cjs63 = __commonJS({ default: false }; var import_util_arn_parser = require_dist_cjs28(); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; var DOTS_PATTERN = /\.\./; @@ -39430,7 +40758,7 @@ var require_dist_cjs63 = __commonJS({ const { Bucket: bucketName } = args.input; let replaceBucketInPath = options.bucketEndpoint; const request = args.request; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { if (options.bucketEndpoint) { request.hostname = bucketName; } else if ((0, import_util_arn_parser.validate)(bucketName)) { @@ -39529,7 +40857,7 @@ var require_dist_cjs63 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js -var require_dist_cjs64 = __commonJS({ +var require_dist_cjs65 = __commonJS({ "../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39987,7 +41315,7 @@ var require_dist_cjs64 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js -var require_dist_cjs65 = __commonJS({ +var require_dist_cjs66 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40013,7 +41341,7 @@ var require_dist_cjs65 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_codec = require_dist_cjs64(); + var import_eventstream_codec = require_dist_cjs65(); function getChunkedStream(source) { let currentMessageTotalLength = 0; let currentMessagePendingLength = 0; @@ -40156,7 +41484,7 @@ var require_dist_cjs65 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js -var require_dist_cjs66 = __commonJS({ +var require_dist_cjs67 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40182,7 +41510,7 @@ var require_dist_cjs66 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_serde_universal = require_dist_cjs65(); + var import_eventstream_serde_universal = require_dist_cjs66(); var import_stream = require("stream"); async function* readabletoIterable(readStream) { let streamEnded = false; @@ -40233,7 +41561,7 @@ var require_dist_cjs66 = __commonJS({ }); // ../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js -var require_dist_cjs67 = __commonJS({ +var require_dist_cjs68 = __commonJS({ "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40328,9 +41656,9 @@ var require_runtimeConfig_shared4 = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getRuntimeConfig = void 0; var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var signature_v4_multi_region_1 = require_dist_cjs39(); + var signature_v4_multi_region_1 = require_dist_cjs40(); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_stream_1 = require_dist_cjs15(); var util_utf8_1 = require_dist_cjs8(); @@ -40382,23 +41710,23 @@ var require_runtimeConfig4 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs62(); - var middleware_bucket_endpoint_1 = require_dist_cjs63(); + var credential_provider_node_1 = require_dist_cjs63(); + var middleware_bucket_endpoint_1 = require_dist_cjs64(); var middleware_flexible_checksums_1 = require_dist_cjs23(); var middleware_sdk_s3_1 = require_dist_cjs29(); - var util_user_agent_node_1 = require_dist_cjs49(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); - var eventstream_serde_node_1 = require_dist_cjs66(); - var hash_node_1 = require_dist_cjs50(); - var hash_stream_node_1 = require_dist_cjs67(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var eventstream_serde_node_1 = require_dist_cjs67(); + var hash_node_1 = require_dist_cjs51(); + var hash_stream_node_1 = require_dist_cjs68(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared4(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -40442,7 +41770,7 @@ var require_runtimeConfig4 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js -var require_dist_cjs68 = __commonJS({ +var require_dist_cjs69 = __commonJS({ "../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40538,7 +41866,7 @@ var require_dist_cjs68 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js -var require_dist_cjs69 = __commonJS({ +var require_dist_cjs70 = __commonJS({ "../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40598,7 +41926,7 @@ var require_dist_cjs69 = __commonJS({ }); // ../../node_modules/@smithy/util-waiter/dist-cjs/index.js -var require_dist_cjs70 = __commonJS({ +var require_dist_cjs71 = __commonJS({ "../../node_modules/@smithy/util-waiter/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40752,7 +42080,7 @@ var require_dist_cjs70 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js -var require_dist_cjs71 = __commonJS({ +var require_dist_cjs72 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40824,6 +42152,7 @@ var require_dist_cjs71 = __commonJS({ DeletePublicAccessBlockCommand: () => DeletePublicAccessBlockCommand, EncodingType: () => EncodingType, EncryptionFilterSensitiveLog: () => EncryptionFilterSensitiveLog, + EncryptionTypeMismatch: () => EncryptionTypeMismatch, Event: () => Event2, ExistingObjectReplicationStatus: () => ExistingObjectReplicationStatus, ExpirationStatus: () => ExpirationStatus, @@ -40872,6 +42201,8 @@ var require_dist_cjs71 = __commonJS({ IntelligentTieringAccessTier: () => IntelligentTieringAccessTier, IntelligentTieringStatus: () => IntelligentTieringStatus, InvalidObjectState: () => InvalidObjectState, + InvalidRequest: () => InvalidRequest, + InvalidWriteOffset: () => InvalidWriteOffset, InventoryConfigurationFilterSensitiveLog: () => InventoryConfigurationFilterSensitiveLog, InventoryDestinationFilterSensitiveLog: () => InventoryDestinationFilterSensitiveLog, InventoryEncryptionFilterSensitiveLog: () => InventoryEncryptionFilterSensitiveLog, @@ -40983,6 +42314,7 @@ var require_dist_cjs71 = __commonJS({ StorageClassAnalysisSchemaVersion: () => StorageClassAnalysisSchemaVersion, TaggingDirective: () => TaggingDirective, Tier: () => Tier, + TooManyParts: () => TooManyParts, TransitionDefaultMinimumObjectSize: () => TransitionDefaultMinimumObjectSize, TransitionStorageClass: () => TransitionStorageClass, Type: () => Type, @@ -41020,10 +42352,10 @@ var require_dist_cjs71 = __commonJS({ var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_eventstream_serde_config_resolver = require_dist_cjs34(); var import_middleware_content_length = require_dist_cjs35(); - var import_middleware_retry = require_dist_cjs38(); + var import_middleware_retry = require_dist_cjs39(); var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider(); var import_middleware_sdk_s3 = require_dist_cjs29(); - var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_endpoint = require_dist_cjs45(); var import_middleware_serde2 = require_dist_cjs5(); var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { @@ -41698,13 +43030,81 @@ var require_dist_cjs71 = __commonJS({ } }), "PutBucketInventoryConfigurationRequestFilterSensitiveLog"); var import_core4 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_xml_builder = require_dist_cjs45(); + var import_xml_builder = require_dist_cjs46(); var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var MFADelete = { Disabled: "Disabled", Enabled: "Enabled" }; + var _EncryptionTypeMismatch = class _EncryptionTypeMismatch2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "EncryptionTypeMismatch", + $fault: "client", + ...opts + }); + this.name = "EncryptionTypeMismatch"; + this.$fault = "client"; + Object.setPrototypeOf(this, _EncryptionTypeMismatch2.prototype); + } + }; + __name(_EncryptionTypeMismatch, "EncryptionTypeMismatch"); + var EncryptionTypeMismatch = _EncryptionTypeMismatch; + var _InvalidRequest = class _InvalidRequest2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidRequest", + $fault: "client", + ...opts + }); + this.name = "InvalidRequest"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequest2.prototype); + } + }; + __name(_InvalidRequest, "InvalidRequest"); + var InvalidRequest = _InvalidRequest; + var _InvalidWriteOffset = class _InvalidWriteOffset2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidWriteOffset", + $fault: "client", + ...opts + }); + this.name = "InvalidWriteOffset"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidWriteOffset2.prototype); + } + }; + __name(_InvalidWriteOffset, "InvalidWriteOffset"); + var InvalidWriteOffset = _InvalidWriteOffset; + var _TooManyParts = class _TooManyParts2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "TooManyParts", + $fault: "client", + ...opts + }); + this.name = "TooManyParts"; + this.$fault = "client"; + Object.setPrototypeOf(this, _TooManyParts2.prototype); + } + }; + __name(_TooManyParts, "TooManyParts"); + var TooManyParts = _TooManyParts; var _ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError2 extends S3ServiceException { /** * @internal @@ -41845,7 +43245,8 @@ var require_dist_cjs71 = __commonJS({ const b = (0, import_core22.requestBuilder)(input, context); const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], - [_xaebo]: input[_EBO] + [_xaebo]: input[_EBO], + [_xaimit]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMIT]).toString()] }); b.bp("/{Key+}"); b.p("Bucket", () => input.Bucket, "{Bucket}", false); @@ -42223,7 +43624,10 @@ var require_dist_cjs71 = __commonJS({ [_xam]: input[_MFA], [_xarp]: input[_RP], [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], - [_xaebo]: input[_EBO] + [_xaebo]: input[_EBO], + [_im]: input[_IM], + [_xaimlmt]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMLMT]).toString()], + [_xaims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()] }); b.bp("/{Key+}"); b.p("Bucket", () => input.Bucket, "{Bucket}", false); @@ -42583,7 +43987,7 @@ var require_dist_cjs71 = __commonJS({ const b = (0, import_core22.requestBuilder)(input, context); const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMS]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], @@ -42762,7 +44166,7 @@ var require_dist_cjs71 = __commonJS({ const b = (0, import_core22.requestBuilder)(input, context); const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMS]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], @@ -43442,6 +44846,7 @@ var require_dist_cjs71 = __commonJS({ [_xagr]: input[_GR], [_xagra]: input[_GRACP], [_xagwa]: input[_GWACP], + [_xawob]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()], [_xasse]: input[_SSE], [_xasc]: input[_SC], [_xawrl]: input[_WRL], @@ -43838,7 +45243,7 @@ var require_dist_cjs71 = __commonJS({ throw new Error("Empty value provided for input host prefix: RequestRoute."); } resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute); - if (!(0, import_protocol_http8.isValidHostname)(resolvedHostname)) { + if (!(0, import_protocol_http9.isValidHostname)(resolvedHostname)) { throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } @@ -45288,6 +46693,7 @@ var require_dist_cjs71 = __commonJS({ [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], + [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client4.strictParseLong)(output.headers[_xaos])], [_RC]: [, output.headers[_xarc]] }); await (0, import_smithy_client4.collectBody)(output.body, context); @@ -45461,6 +46867,18 @@ var require_dist_cjs71 = __commonJS({ case "NotFound": case "com.amazonaws.s3#NotFound": throw await de_NotFoundRes(parsedOutput, context); + case "EncryptionTypeMismatch": + case "com.amazonaws.s3#EncryptionTypeMismatch": + throw await de_EncryptionTypeMismatchRes(parsedOutput, context); + case "InvalidRequest": + case "com.amazonaws.s3#InvalidRequest": + throw await de_InvalidRequestRes(parsedOutput, context); + case "InvalidWriteOffset": + case "com.amazonaws.s3#InvalidWriteOffset": + throw await de_InvalidWriteOffsetRes(parsedOutput, context); + case "TooManyParts": + case "com.amazonaws.s3#TooManyParts": + throw await de_TooManyPartsRes(parsedOutput, context); case "ObjectAlreadyInActiveTierError": case "com.amazonaws.s3#ObjectAlreadyInActiveTierError": throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context); @@ -45492,6 +46910,15 @@ var require_dist_cjs71 = __commonJS({ }); return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_BucketAlreadyOwnedByYouRes"); + var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new EncryptionTypeMismatch({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_EncryptionTypeMismatchRes"); var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; @@ -45507,6 +46934,24 @@ var require_dist_cjs71 = __commonJS({ }); return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidObjectStateRes"); + var de_InvalidRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new InvalidRequest({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRequestRes"); + var de_InvalidWriteOffsetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new InvalidWriteOffset({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidWriteOffsetRes"); var de_NoSuchBucketRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; @@ -45561,6 +47006,15 @@ var require_dist_cjs71 = __commonJS({ }); return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ObjectNotInActiveTierErrorRes"); + var de_TooManyPartsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new TooManyParts({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_TooManyPartsRes"); var de_SelectObjectContentEventStream = /* @__PURE__ */ __name((output, context) => { return context.eventStreamMarshaller.deserialize(output, async (event) => { if (event["Records"] != null) { @@ -46363,6 +47817,13 @@ var require_dist_cjs71 = __commonJS({ if (input[_VI] != null) { bn.c(import_xml_builder.XmlNode.of(_OVI, input[_VI]).n(_VI)); } + bn.cc(input, _ETa); + if (input[_LMT] != null) { + bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client4.dateToUtcString)(input[_LMT]).toString()).n(_LMT)); + } + if (input[_Si] != null) { + bn.c(import_xml_builder.XmlNode.of(_Si, String(input[_Si])).n(_Si)); + } return bn; }, "se_ObjectIdentifier"); var se_ObjectIdentifierList = /* @__PURE__ */ __name((input, context) => { @@ -48600,7 +50061,10 @@ var require_dist_cjs71 = __commonJS({ var _IIOV = "InventoryIncludedObjectVersions"; var _IL = "IsLatest"; var _IM = "IfMatch"; - var _IMS = "IfModifiedSince"; + var _IMIT = "IfMatchInitiatedTime"; + var _IMLMT = "IfMatchLastModifiedTime"; + var _IMS = "IfMatchSize"; + var _IMSf = "IfModifiedSince"; var _INM = "IfNoneMatch"; var _IOF = "InventoryOptionalField"; var _IOV = "IncludedObjectVersions"; @@ -48643,6 +50107,7 @@ var require_dist_cjs71 = __commonJS({ var _LFCa = "LambdaFunctionConfiguration"; var _LI = "LocationInfo"; var _LM = "LastModified"; + var _LMT = "LastModifiedTime"; var _LNAS = "LocationNameAsString"; var _LP = "LocationPrefix"; var _LR = "LifecycleRule"; @@ -48869,6 +50334,7 @@ var require_dist_cjs71 = __commonJS({ var _Va = "Value"; var _Ve = "Versions"; var _WC = "WebsiteConfiguration"; + var _WOB = "WriteOffsetBytes"; var _WRL = "WebsiteRedirectLocation"; var _Y = "Years"; var _a = "analytics"; @@ -49025,6 +50491,9 @@ var require_dist_cjs71 = __commonJS({ var _xagra = "x-amz-grant-read-acp"; var _xagw = "x-amz-grant-write"; var _xagwa = "x-amz-grant-write-acp"; + var _xaimit = "x-amz-if-match-initiated-time"; + var _xaimlmt = "x-amz-if-match-last-modified-time"; + var _xaims = "x-amz-if-match-size"; var _xam = "x-amz-mfa"; var _xamd = "x-amz-metadata-directive"; var _xamm = "x-amz-missing-meta"; @@ -49036,6 +50505,7 @@ var require_dist_cjs71 = __commonJS({ var _xaolrud = "x-amz-object-lock-retain-until-date"; var _xaoo = "x-amz-object-ownership"; var _xaooa = "x-amz-optional-object-attributes"; + var _xaos = "x-amz-object-size"; var _xapnm = "x-amz-part-number-marker"; var _xar = "x-amz-restore"; var _xarc = "x-amz-request-charged"; @@ -49060,6 +50530,7 @@ var require_dist_cjs71 = __commonJS({ var _xatd = "x-amz-tagging-directive"; var _xatdmos = "x-amz-transition-default-minimum-object-size"; var _xavi = "x-amz-version-id"; + var _xawob = "x-amz-write-offset-bytes"; var _xawrl = "x-amz-website-redirect-location"; var _xi = "x-id"; var _CreateSessionCommand = class _CreateSessionCommand extends import_smithy_client4.Command.classBuilder().ep({ @@ -49077,7 +50548,7 @@ var require_dist_cjs71 = __commonJS({ __name(_CreateSessionCommand, "CreateSessionCommand"); var CreateSessionCommand = _CreateSessionCommand; var import_runtimeConfig = require_runtimeConfig4(); - var import_region_config_resolver = require_dist_cjs53(); + var import_region_config_resolver = require_dist_cjs54(); var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; @@ -49120,7 +50591,7 @@ var require_dist_cjs71 = __commonJS({ const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); @@ -49128,7 +50599,7 @@ var require_dist_cjs71 = __commonJS({ ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); @@ -49197,7 +50668,7 @@ var require_dist_cjs71 = __commonJS({ __name(_AbortMultipartUploadCommand, "AbortMultipartUploadCommand"); var AbortMultipartUploadCommand = _AbortMultipartUploadCommand; var import_middleware_sdk_s34 = require_dist_cjs29(); - var import_middleware_ssec = require_dist_cjs68(); + var import_middleware_ssec = require_dist_cjs69(); var _CompleteMultipartUploadCommand = class _CompleteMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, @@ -49231,7 +50702,7 @@ var require_dist_cjs71 = __commonJS({ }; __name(_CopyObjectCommand, "CopyObjectCommand"); var CopyObjectCommand = _CopyObjectCommand; - var import_middleware_location_constraint = require_dist_cjs69(); + var import_middleware_location_constraint = require_dist_cjs70(); var import_middleware_sdk_s36 = require_dist_cjs29(); var _CreateBucketCommand = class _CreateBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ ...commonParams, @@ -49458,7 +50929,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -49835,7 +51305,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestChecksumRequired: false, requestValidationModeMember: "ChecksumMode", responseAlgorithms: ["CRC32", "CRC32C", "SHA256", "SHA1"] @@ -50130,7 +51599,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }) @@ -50148,7 +51616,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50179,7 +51646,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50197,7 +51663,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50242,7 +51707,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50261,7 +51725,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50305,7 +51768,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestChecksumRequired: true }) ]; @@ -50322,7 +51784,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50340,7 +51801,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50358,7 +51818,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50376,7 +51835,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50394,7 +51852,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50412,7 +51869,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50431,7 +51887,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50451,7 +51906,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }), @@ -50472,7 +51926,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50491,7 +51944,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50510,7 +51962,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50529,7 +51980,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50548,7 +51998,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50566,7 +52015,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }), @@ -50608,7 +52056,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }), @@ -50757,7 +52204,7 @@ var require_dist_cjs71 = __commonJS({ var paginateListObjectsV2 = (0, import_core6.createPaginator)(S3Client, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys"); var import_core7 = (init_dist_es(), __toCommonJS(dist_es_exports)); var paginateListParts = (0, import_core7.createPaginator)(S3Client, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts"); - var import_util_waiter = require_dist_cjs70(); + var import_util_waiter = require_dist_cjs71(); var checkState = /* @__PURE__ */ __name(async (client, input) => { let reason; try { @@ -64957,7 +66404,7 @@ var require_mime_types = __commonJS({ var import_fs = __toESM(require("fs")); var import_path = __toESM(require("path")); var core = __toESM(require_core()); -var import_client_s3 = __toESM(require_dist_cjs71()); +var import_client_s3 = __toESM(require_dist_cjs72()); var import_lodash = __toESM(require_lodash()); var import_mime_types = __toESM(require_mime_types()); var maxConcurrentUploadFiles = 10; diff --git a/VKUI/size-upload/dist/index.js b/VKUI/size-upload/dist/index.js index ae43866..f517997 100644 --- a/VKUI/size-upload/dist/index.js +++ b/VKUI/size-upload/dist/index.js @@ -9539,10 +9539,10 @@ var require_mock_utils = __commonJS({ } function getMockDispatch(mockDispatches, key) { const basePath = key.query ? buildURL(key.path, key.query) : key.path; - const resolvedPath3 = typeof basePath === "string" ? safeUrl(basePath) : basePath; - let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path2 }) => matchValue(safeUrl(path2), resolvedPath3)); + const resolvedPath4 = typeof basePath === "string" ? safeUrl(basePath) : basePath; + let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path2 }) => matchValue(safeUrl(path2), resolvedPath4)); if (matchedMockDispatches.length === 0) { - throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath3}'`); + throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath4}'`); } matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method)); if (matchedMockDispatches.length === 0) { @@ -18782,7 +18782,7 @@ var require_dist_cjs2 = __commonJS({ __export2(src_exports, { Field: () => Field, Fields: () => Fields, - HttpRequest: () => HttpRequest7, + HttpRequest: () => HttpRequest8, HttpResponse: () => HttpResponse2, IHttpRequest: () => import_types5.HttpRequest, getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration, @@ -18960,7 +18960,7 @@ var require_dist_cjs2 = __commonJS({ } }; __name(_HttpRequest, "HttpRequest"); - var HttpRequest7 = _HttpRequest; + var HttpRequest8 = _HttpRequest; function cloneQuery(query) { return Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; @@ -19024,12 +19024,12 @@ var require_dist_cjs3 = __commonJS({ getAddExpectContinuePlugin: () => getAddExpectContinuePlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); function addExpectContinueMiddleware(options) { return (next) => async (args) => { var _a, _b; const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { + if (import_protocol_http9.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { if (((_b = (_a = options.requestHandler) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) !== "FetchHttpHandler") { request.headers = { ...request.headers, @@ -20002,7 +20002,7 @@ var require_dist_cjs12 = __commonJS({ streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); var import_http = require("http"); var import_https = require("https"); @@ -20300,7 +20300,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }; const requestFunc = isSSL ? import_https.request : import_http.request; const req2 = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new import_protocol_http8.HttpResponse({ + const httpResponse = new import_protocol_http9.HttpResponse({ statusCode: res.statusCode || -1, reason: res.statusMessage, headers: getTransformedHeaders(res.headers), @@ -20581,7 +20581,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }); session.ref(); req2.on("response", (headers) => { - const httpResponse = new import_protocol_http8.HttpResponse({ + const httpResponse = new import_protocol_http9.HttpResponse({ statusCode: headers[":status"] || -1, headers: getTransformedHeaders(headers), body: req2 @@ -20745,7 +20745,7 @@ var require_dist_cjs13 = __commonJS({ streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); function createRequest(url, requestOptions) { return new Request(url, requestOptions); @@ -20856,7 +20856,7 @@ var require_dist_cjs13 = __commonJS({ const hasReadableStream = response.body != void 0; if (!hasReadableStream) { return response.blob().then((body2) => ({ - response: new import_protocol_http8.HttpResponse({ + response: new import_protocol_http9.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -20865,7 +20865,7 @@ var require_dist_cjs13 = __commonJS({ })); } return { - response: new import_protocol_http8.HttpResponse({ + response: new import_protocol_http9.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -21437,7 +21437,7 @@ var require_dist_cjs15 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter2 + Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter3 }); module2.exports = __toCommonJS2(src_exports); var import_util_base64 = require_dist_cjs9(); @@ -21451,9 +21451,9 @@ var require_dist_cjs15 = __commonJS({ __name(transformToString, "transformToString"); function transformFromString(str, encoding) { if (encoding === "base64") { - return Uint8ArrayBlobAdapter2.mutate((0, import_util_base64.fromBase64)(str)); + return Uint8ArrayBlobAdapter3.mutate((0, import_util_base64.fromBase64)(str)); } - return Uint8ArrayBlobAdapter2.mutate((0, import_util_utf8.fromUtf8)(str)); + return Uint8ArrayBlobAdapter3.mutate((0, import_util_utf8.fromUtf8)(str)); } __name(transformFromString, "transformFromString"); var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter2 extends Uint8Array { @@ -21486,7 +21486,7 @@ var require_dist_cjs15 = __commonJS({ } }; __name(_Uint8ArrayBlobAdapter, "Uint8ArrayBlobAdapter"); - var Uint8ArrayBlobAdapter2 = _Uint8ArrayBlobAdapter; + var Uint8ArrayBlobAdapter3 = _Uint8ArrayBlobAdapter; __reExport(src_exports, require_getAwsChunkedEncodingStream(), module2.exports); __reExport(src_exports, require_sdk_stream_mixin(), module2.exports); __reExport(src_exports, require_splitStream(), module2.exports); @@ -21531,17 +21531,17 @@ var resolvedPath2; var init_resolve_path = __esm({ "../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() { init_extended_encode_uri_component(); - resolvedPath2 = (resolvedPath3, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + resolvedPath2 = (resolvedPath4, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { if (input != null && input[memberName] !== void 0) { const labelValue = labelValueProvider(); if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: " + memberName + "."); } - resolvedPath3 = resolvedPath3.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent2(segment)).join("/") : extendedEncodeURIComponent2(labelValue)); + resolvedPath4 = resolvedPath4.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent2(segment)).join("/") : extendedEncodeURIComponent2(labelValue)); } else { throw new Error("No value provided for input HTTP label: " + memberName + "."); } - return resolvedPath3; + return resolvedPath4; }; } }); @@ -22348,10 +22348,10 @@ var require_dist_cjs17 = __commonJS({ } return false; }, "hasHeader"); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => { var _a, _b; - const { headers, query = {} } = import_protocol_http8.HttpRequest.clone(request); + const { headers, query = {} } = import_protocol_http9.HttpRequest.clone(request); for (const name of Object.keys(headers)) { const lname = name.toLowerCase(); if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname)) || ((_b = options.hoistableHeaders) == null ? void 0 : _b.has(lname))) { @@ -22366,7 +22366,7 @@ var require_dist_cjs17 = __commonJS({ }; }, "moveHeadersToQuery"); var prepareRequest = /* @__PURE__ */ __name((request) => { - request = import_protocol_http8.HttpRequest.clone(request); + request = import_protocol_http9.HttpRequest.clone(request); for (const headerName of Object.keys(request.headers)) { if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { delete request.headers[headerName]; @@ -27694,7 +27694,7 @@ var require_dist_cjs23 = __commonJS({ default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION }; var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var CLIENT_SUPPORTED_ALGORITHMS = [ "CRC32", "CRC32C", @@ -27771,13 +27771,13 @@ var require_dist_cjs23 = __commonJS({ override: true }; var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) { return next(args); } - const { request } = args; + const { request, input } = args; const { body: requestBody, headers } = request; const { base64Encoder, streamHasher } = config; - const { input, requestChecksumRequired, requestAlgorithmMember } = middlewareConfig; + const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig; const checksumAlgorithm = getChecksumAlgorithmForRequest( input, { @@ -27865,7 +27865,7 @@ var require_dist_cjs23 = __commonJS({ return false; }, "isChecksumWithPartNumber"); var import_create_read_stream_on_buffer = require_create_read_stream_on_buffer(); - var import_util_stream2 = require_dist_cjs15(); + var import_util_stream3 = require_dist_cjs15(); var getChecksum = /* @__PURE__ */ __name(async (body, { checksumAlgorithmFn, base64Encoder }) => base64Encoder(await stringHasher(checksumAlgorithmFn, body)), "getChecksum"); var validateChecksumFromResponse = /* @__PURE__ */ __name(async (response, { config, responseAlgorithms }) => { const checksumAlgorithms = getChecksumAlgorithmListForResponse(responseAlgorithms); @@ -27877,7 +27877,7 @@ var require_dist_cjs23 = __commonJS({ const checksumAlgorithmFn = selectChecksumAlgorithmFunction(algorithm, config); const { base64Encoder } = config; if (isStreaming(responseBody)) { - response.body = (0, import_util_stream2.createChecksumStream)({ + response.body = (0, import_util_stream3.createChecksumStream)({ expectedChecksum: checksumFromResponse, checksumSourceLocation: responseHeader, checksum: new checksumAlgorithmFn(), @@ -27904,7 +27904,7 @@ var require_dist_cjs23 = __commonJS({ override: true }; var flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) { return next(args); } const input = args.input; @@ -27989,13 +27989,13 @@ var require_dist_cjs24 = __commonJS({ resolveHostHeaderConfig: () => resolveHostHeaderConfig }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); function resolveHostHeaderConfig(input) { return input; } __name(resolveHostHeaderConfig, "resolveHostHeaderConfig"); var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) return next(args); const { request } = args; const { handlerProtocol = "" } = options.requestHandler.metadata || {}; @@ -28128,13 +28128,13 @@ var require_dist_cjs26 = __commonJS({ recursionDetectionMiddleware: () => recursionDetectionMiddleware }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { const { request } = args; - if (!import_protocol_http8.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + if (!import_protocol_http9.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { return next(args); } const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; @@ -28333,14 +28333,14 @@ var require_dist_cjs29 = __commonJS({ validateBucketNameMiddlewareOptions: () => validateBucketNameMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_smithy_client4 = require_dist_cjs19(); var CONTENT_LENGTH_HEADER = "content-length"; function checkContentLengthHeader() { return (next, context) => async (args) => { var _a; const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { if (!(CONTENT_LENGTH_HEADER in request.headers)) { const message = `Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`; if (typeof ((_a = context == null ? void 0 : context.logger) == null ? void 0 : _a.warn) === "function" && !(context.logger instanceof import_smithy_client4.NoOpLogger)) { @@ -28447,7 +28447,7 @@ var require_dist_cjs29 = __commonJS({ var _a; const result = await next(args); const { response } = result; - if (import_protocol_http8.HttpResponse.isInstance(response)) { + if (import_protocol_http9.HttpResponse.isInstance(response)) { if (response.headers.expires) { response.headers.expiresstring = response.headers.expires; try { @@ -28671,7 +28671,7 @@ var require_dist_cjs29 = __commonJS({ } ); context.s3ExpressIdentity = s3ExpressIdentity; - if (import_protocol_http8.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { + if (import_protocol_http9.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { args.request.headers[SESSION_TOKEN_HEADER] = s3ExpressIdentity.sessionToken; } } @@ -28707,7 +28707,7 @@ var require_dist_cjs29 = __commonJS({ }, "defaultSuccessHandler"); var s3ExpressHttpSigningMiddlewareOptions = import_core22.httpSigningMiddlewareOptions; var s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { - if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http9.HttpRequest.isInstance(args.request)) { return next(args); } const smithyContext = (0, import_util_middleware3.getSmithyContext)(context); @@ -28767,7 +28767,7 @@ var require_dist_cjs29 = __commonJS({ bucketEndpoint: input.bucketEndpoint ?? false }; }, "resolveS3Config"); - var import_util_stream2 = require_dist_cjs15(); + var import_util_stream3 = require_dist_cjs15(); var THROW_IF_EMPTY_BODY = { CopyObjectCommand: true, UploadPartCopyCommand: true, @@ -28777,7 +28777,7 @@ var require_dist_cjs29 = __commonJS({ var throw200ExceptionsMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { const result = await next(args); const { response } = result; - if (!import_protocol_http8.HttpResponse.isInstance(response)) { + if (!import_protocol_http9.HttpResponse.isInstance(response)) { return result; } const { statusCode, body: sourceBody } = response; @@ -28791,12 +28791,12 @@ var require_dist_cjs29 = __commonJS({ let bodyCopy = sourceBody; let body = sourceBody; if (sourceBody && typeof sourceBody === "object" && !(sourceBody instanceof Uint8Array)) { - [bodyCopy, body] = await (0, import_util_stream2.splitStream)(sourceBody); + [bodyCopy, body] = await (0, import_util_stream3.splitStream)(sourceBody); } response.body = body; - const bodyBytes = await collectBody4(bodyCopy, { + const bodyBytes = await collectBody5(bodyCopy, { streamCollector: async (stream) => { - return (0, import_util_stream2.headStream)(stream, MAX_BYTES_TO_INSPECT); + return (0, import_util_stream3.headStream)(stream, MAX_BYTES_TO_INSPECT); } }); if (typeof (bodyCopy == null ? void 0 : bodyCopy.destroy) === "function") { @@ -28813,7 +28813,7 @@ var require_dist_cjs29 = __commonJS({ } return result; }, "throw200ExceptionsMiddleware"); - var collectBody4 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { + var collectBody5 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } @@ -29803,7 +29803,7 @@ var require_dist_cjs32 = __commonJS({ } __name(resolveUserAgentConfig, "resolveUserAgentConfig"); var import_util_endpoints = require_dist_cjs31(); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/; async function checkFeatures(context, config, args) { @@ -29881,7 +29881,7 @@ var require_dist_cjs32 = __commonJS({ var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { var _a, _b, _c, _d; const { request } = args; - if (!import_protocol_http8.HttpRequest.isInstance(request)) { + if (!import_protocol_http9.HttpRequest.isInstance(request)) { return next(args); } const { headers } = request; @@ -30201,12 +30201,12 @@ var require_dist_cjs35 = __commonJS({ getContentLengthPlugin: () => getContentLengthPlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var CONTENT_LENGTH_HEADER = "content-length"; function contentLengthMiddleware(bodyLengthChecker) { return (next) => async (args) => { const request = args.request; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { const { body, headers } = request; if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { try { @@ -30792,205 +30792,1526 @@ var require_dist_cjs37 = __commonJS({ const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); this.updateTokenBucketRate(newRate); } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise( + this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate + ); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } + }; + __name(_DefaultRateLimiter, "DefaultRateLimiter"); + _DefaultRateLimiter.setTimeoutFn = setTimeout; + var DefaultRateLimiter = _DefaultRateLimiter; + var DEFAULT_RETRY_DELAY_BASE = 100; + var MAXIMUM_RETRY_DELAY = 20 * 1e3; + var THROTTLING_RETRY_DELAY_BASE = 500; + var INITIAL_RETRY_TOKENS = 500; + var RETRY_COST = 5; + var TIMEOUT_RETRY_COST = 10; + var NO_RETRY_INCREMENT = 1; + var INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; + var REQUEST_HEADER = "amz-sdk-request"; + var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => { + let delayBase = DEFAULT_RETRY_DELAY_BASE; + const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => { + return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + }, "computeNextBackoffDelay"); + const setDelayBase = /* @__PURE__ */ __name((delay) => { + delayBase = delay; + }, "setDelayBase"); + return { + computeNextBackoffDelay, + setDelayBase + }; + }, "getDefaultRetryBackoffStrategy"); + var createDefaultRetryToken = /* @__PURE__ */ __name(({ + retryDelay, + retryCount, + retryCost + }) => { + const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount"); + const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay"); + const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost"); + return { + getRetryCount, + getRetryDelay, + getRetryCost + }; + }, "createDefaultRetryToken"); + var _StandardRetryStrategy = class _StandardRetryStrategy { + constructor(maxAttempts) { + this.maxAttempts = maxAttempts; + this.mode = "standard"; + this.capacity = INITIAL_RETRY_TOKENS; + this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); + this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + async acquireInitialRetryToken(retryTokenScope) { + return createDefaultRetryToken({ + retryDelay: DEFAULT_RETRY_DELAY_BASE, + retryCount: 0 + }); + } + async refreshRetryTokenForRetry(token, errorInfo) { + const maxAttempts = await this.getMaxAttempts(); + if (this.shouldRetry(token, errorInfo, maxAttempts)) { + const errorType = errorInfo.errorType; + this.retryBackoffStrategy.setDelayBase( + errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE + ); + const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); + const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; + const capacityCost = this.getCapacityCost(errorType); + this.capacity -= capacityCost; + return createDefaultRetryToken({ + retryDelay, + retryCount: token.getRetryCount() + 1, + retryCost: capacityCost + }); + } + throw new Error("No retry token available"); + } + recordSuccess(token) { + this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); + } + /** + * @returns the current available retry capacity. + * + * This number decreases when retries are executed and refills when requests or retries succeed. + */ + getCapacity() { + return this.capacity; + } + async getMaxAttempts() { + try { + return await this.maxAttemptsProvider(); + } catch (error2) { + console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); + return DEFAULT_MAX_ATTEMPTS; + } + } + shouldRetry(tokenToRenew, errorInfo, maxAttempts) { + const attempts = tokenToRenew.getRetryCount() + 1; + return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); + } + getCapacityCost(errorType) { + return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST; + } + isRetryableError(errorType) { + return errorType === "THROTTLING" || errorType === "TRANSIENT"; + } + }; + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy { + constructor(maxAttemptsProvider, options) { + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = "adaptive"; + const { rateLimiter } = options ?? {}; + this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); + this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); + } + async acquireInitialRetryToken(retryTokenScope) { + await this.rateLimiter.getSendToken(); + return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); + } + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + this.rateLimiter.updateClientSendingRate(errorInfo); + return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + } + recordSuccess(token) { + this.rateLimiter.updateClientSendingRate({}); + this.standardRetryStrategy.recordSuccess(token); + } + }; + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy { + /** + * @param maxAttempts - the maximum number of retry attempts allowed. + * e.g., if set to 3, then 4 total requests are possible. + * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt + * and returns the delay. + * + * @example exponential backoff. + * ```js + * new Client({ + * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2) + * }); + * ``` + * @example constant delay. + * ```js + * new Client({ + * retryStrategy: new ConfiguredRetryStrategy(3, 2000) + * }); + * ``` + */ + constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) { + super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); + if (typeof computeNextBackoffDelay === "number") { + this.computeNextBackoffDelay = () => computeNextBackoffDelay; + } else { + this.computeNextBackoffDelay = computeNextBackoffDelay; + } + } + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); + return token; + } + }; + __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy"); + var ConfiguredRetryStrategy = _ConfiguredRetryStrategy; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js +var import_util_stream2, collectBody4; +var init_collect_stream_body2 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js"() { + import_util_stream2 = __toESM(require_dist_cjs15()); + collectBody4 = async (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return import_util_stream2.Uint8ArrayBlobAdapter.mutate(streamBody); + } + if (!streamBody) { + return import_util_stream2.Uint8ArrayBlobAdapter.mutate(new Uint8Array()); + } + const fromContext = context.streamCollector(streamBody); + return import_util_stream2.Uint8ArrayBlobAdapter.mutate(await fromContext); + }; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js +function extendedEncodeURIComponent3(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); +} +var init_extended_encode_uri_component2 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js"() { + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js +var resolvedPath3; +var init_resolve_path2 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() { + init_extended_encode_uri_component2(); + resolvedPath3 = (resolvedPath4, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + if (input != null && input[memberName] !== void 0) { + const labelValue = labelValueProvider(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: " + memberName + "."); + } + resolvedPath4 = resolvedPath4.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent3(segment)).join("/") : extendedEncodeURIComponent3(labelValue)); + } else { + throw new Error("No value provided for input HTTP label: " + memberName + "."); + } + return resolvedPath4; + }; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +function requestBuilder2(input, context) { + return new RequestBuilder2(input, context); +} +var import_protocol_http8, RequestBuilder2; +var init_requestBuilder3 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js"() { + import_protocol_http8 = __toESM(require_dist_cjs2()); + init_resolve_path2(); + RequestBuilder2 = class { + constructor(input, context) { + this.input = input; + this.context = context; + this.query = {}; + this.method = ""; + this.headers = {}; + this.path = ""; + this.body = null; + this.hostname = ""; + this.resolvePathStack = []; + } + async build() { + const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint(); + this.path = basePath; + for (const resolvePath of this.resolvePathStack) { + resolvePath(this.path); + } + return new import_protocol_http8.HttpRequest({ + protocol, + hostname: this.hostname || hostname, + port, + method: this.method, + path: this.path, + query: this.query, + body: this.body, + headers: this.headers + }); + } + hn(hostname) { + this.hostname = hostname; + return this; + } + bp(uriLabel) { + this.resolvePathStack.push((basePath) => { + this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel; + }); + return this; + } + p(memberName, labelValueProvider, uriLabel, isGreedyLabel) { + this.resolvePathStack.push((path2) => { + this.path = resolvedPath3(path2, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel); + }); + return this; + } + h(headers) { + this.headers = headers; + return this; + } + q(query) { + this.query = query; + return this; + } + b(body) { + this.body = body; + return this; + } + m(method) { + this.method = method; + return this; + } + }; + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +var protocols_exports2 = {}; +__export(protocols_exports2, { + RequestBuilder: () => RequestBuilder2, + collectBody: () => collectBody4, + extendedEncodeURIComponent: () => extendedEncodeURIComponent3, + requestBuilder: () => requestBuilder2, + resolvedPath: () => resolvedPath3 +}); +var init_protocols3 = __esm({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/core/dist-es/submodules/protocols/index.js"() { + init_collect_stream_body2(); + init_extended_encode_uri_component2(); + init_requestBuilder3(); + init_resolve_path2(); + } +}); + +// ../../node_modules/@smithy/middleware-retry/node_modules/@smithy/smithy-client/dist-cjs/index.js +var require_dist_cjs38 = __commonJS({ + "../../node_modules/@smithy/middleware-retry/node_modules/@smithy/smithy-client/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + Client: () => Client, + Command: () => Command, + LazyJsonString: () => LazyJsonString, + NoOpLogger: () => NoOpLogger, + SENSITIVE_STRING: () => SENSITIVE_STRING, + ServiceException: () => ServiceException, + StringWrapper: () => StringWrapper, + _json: () => _json, + collectBody: () => import_protocols2.collectBody, + convertMap: () => convertMap, + createAggregatedClient: () => createAggregatedClient, + dateToUtcString: () => dateToUtcString, + decorateServiceException: () => decorateServiceException, + emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion2, + expectBoolean: () => expectBoolean, + expectByte: () => expectByte, + expectFloat32: () => expectFloat32, + expectInt: () => expectInt, + expectInt32: () => expectInt32, + expectLong: () => expectLong, + expectNonNull: () => expectNonNull, + expectNumber: () => expectNumber, + expectObject: () => expectObject, + expectShort: () => expectShort, + expectString: () => expectString, + expectUnion: () => expectUnion2, + extendedEncodeURIComponent: () => import_protocols2.extendedEncodeURIComponent, + getArrayIfSingleItem: () => getArrayIfSingleItem, + getDefaultClientConfiguration: () => getDefaultClientConfiguration, + getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration, + getValueFromTextNode: () => getValueFromTextNode2, + handleFloat: () => handleFloat, + isSerializableHeaderValue: () => isSerializableHeaderValue, + limitedParseDouble: () => limitedParseDouble, + limitedParseFloat: () => limitedParseFloat, + limitedParseFloat32: () => limitedParseFloat32, + loadConfigsForDefaultMode: () => loadConfigsForDefaultMode, + logger: () => logger, + map: () => map, + parseBoolean: () => parseBoolean, + parseEpochTimestamp: () => parseEpochTimestamp, + parseRfc3339DateTime: () => parseRfc3339DateTime, + parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset, + parseRfc7231DateTime: () => parseRfc7231DateTime, + quoteHeader: () => quoteHeader, + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig, + resolvedPath: () => import_protocols2.resolvedPath, + serializeDateTime: () => serializeDateTime, + serializeFloat: () => serializeFloat, + splitEvery: () => splitEvery, + splitHeader: () => splitHeader, + strictParseByte: () => strictParseByte, + strictParseDouble: () => strictParseDouble, + strictParseFloat: () => strictParseFloat, + strictParseFloat32: () => strictParseFloat32, + strictParseInt: () => strictParseInt, + strictParseInt32: () => strictParseInt32, + strictParseLong: () => strictParseLong, + strictParseShort: () => strictParseShort, + take: () => take, + throwDefaultError: () => throwDefaultError, + withBaseException: () => withBaseException + }); + module2.exports = __toCommonJS2(src_exports); + var import_middleware_stack = require_dist_cjs18(); + var _Client = class _Client { + constructor(config) { + this.config = config; + this.middlewareStack = (0, import_middleware_stack.constructStack)(); + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; + const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; + const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true; + let handler; + if (useHandlerCache) { + if (!this.handlers) { + this.handlers = /* @__PURE__ */ new WeakMap(); + } + const handlers = this.handlers; + if (handlers.has(command.constructor)) { + handler = handlers.get(command.constructor); + } else { + handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + handlers.set(command.constructor, handler); + } + } else { + delete this.handlers; + handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + } + if (callback) { + handler(command).then( + (result) => callback(null, result.output), + (err) => callback(err) + ).catch( + // prevent any errors thrown in the callback from triggering an + // unhandled promise rejection + () => { + } + ); + } else { + return handler(command).then((result) => result.output); + } + } + destroy() { + var _a, _b, _c; + (_c = (_b = (_a = this.config) == null ? void 0 : _a.requestHandler) == null ? void 0 : _b.destroy) == null ? void 0 : _c.call(_b); + delete this.handlers; + } + }; + __name(_Client, "Client"); + var Client = _Client; + var import_protocols2 = (init_protocols3(), __toCommonJS(protocols_exports2)); + var import_types5 = require_dist_cjs(); + var _Command = class _Command { + constructor() { + this.middlewareStack = (0, import_middleware_stack.constructStack)(); + } + /** + * Factory for Command ClassBuilder. + * @internal + */ + static classBuilder() { + return new ClassBuilder(); + } + /** + * @internal + */ + resolveMiddlewareWithContext(clientStack, configuration2, options, { + middlewareFn, + clientName, + commandName, + inputFilterSensitiveLog, + outputFilterSensitiveLog, + smithyContext, + additionalContext, + CommandCtor + }) { + for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration2, options)) { + this.middlewareStack.use(mw); + } + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration2; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog, + outputFilterSensitiveLog, + [import_types5.SMITHY_CONTEXT_KEY]: { + commandInstance: this, + ...smithyContext + }, + ...additionalContext + }; + const { requestHandler } = configuration2; + return stack.resolve( + (request) => requestHandler.handle(request.request, options || {}), + handlerExecutionContext + ); + } + }; + __name(_Command, "Command"); + var Command = _Command; + var _ClassBuilder = class _ClassBuilder { + constructor() { + this._init = () => { + }; + this._ep = {}; + this._middlewareFn = () => []; + this._commandName = ""; + this._clientName = ""; + this._additionalContext = {}; + this._smithyContext = {}; + this._inputFilterSensitiveLog = (_) => _; + this._outputFilterSensitiveLog = (_) => _; + this._serializer = null; + this._deserializer = null; + } + /** + * Optional init callback. + */ + init(cb) { + this._init = cb; + } + /** + * Set the endpoint parameter instructions. + */ + ep(endpointParameterInstructions) { + this._ep = endpointParameterInstructions; + return this; + } + /** + * Add any number of middleware. + */ + m(middlewareSupplier) { + this._middlewareFn = middlewareSupplier; + return this; + } + /** + * Set the initial handler execution context Smithy field. + */ + s(service, operation, smithyContext = {}) { + this._smithyContext = { + service, + operation, + ...smithyContext + }; + return this; + } + /** + * Set the initial handler execution context. + */ + c(additionalContext = {}) { + this._additionalContext = additionalContext; + return this; + } + /** + * Set constant string identifiers for the operation. + */ + n(clientName, commandName) { + this._clientName = clientName; + this._commandName = commandName; + return this; + } + /** + * Set the input and output sensistive log filters. + */ + f(inputFilter = (_) => _, outputFilter = (_) => _) { + this._inputFilterSensitiveLog = inputFilter; + this._outputFilterSensitiveLog = outputFilter; + return this; + } + /** + * Sets the serializer. + */ + ser(serializer) { + this._serializer = serializer; + return this; + } + /** + * Sets the deserializer. + */ + de(deserializer) { + this._deserializer = deserializer; + return this; + } + /** + * @returns a Command class with the classBuilder properties. + */ + build() { + var _a; + const closure = this; + let CommandRef; + return CommandRef = (_a = class extends Command { + /** + * @public + */ + constructor(...[input]) { + super(); + this.serialize = closure._serializer; + this.deserialize = closure._deserializer; + this.input = input ?? {}; + closure._init(this); + } + /** + * @public + */ + static getEndpointParameterInstructions() { + return closure._ep; + } + /** + * @internal + */ + resolveMiddleware(stack, configuration2, options) { + return this.resolveMiddlewareWithContext(stack, configuration2, options, { + CommandCtor: CommandRef, + middlewareFn: closure._middlewareFn, + clientName: closure._clientName, + commandName: closure._commandName, + inputFilterSensitiveLog: closure._inputFilterSensitiveLog, + outputFilterSensitiveLog: closure._outputFilterSensitiveLog, + smithyContext: closure._smithyContext, + additionalContext: closure._additionalContext + }); + } + }, __name(_a, "CommandRef"), _a); + } + }; + __name(_ClassBuilder, "ClassBuilder"); + var ClassBuilder = _ClassBuilder; + var SENSITIVE_STRING = "***SensitiveInformation***"; + var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => { + for (const command of Object.keys(commands)) { + const CommandCtor = commands[command]; + const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) { + const command2 = new CommandCtor(args); + if (typeof optionsOrCb === "function") { + this.send(command2, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expected http options but got ${typeof optionsOrCb}`); + this.send(command2, optionsOrCb || {}, cb); + } else { + return this.send(command2, optionsOrCb); + } + }, "methodImpl"); + const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); + Client2.prototype[methodName] = methodImpl; + } + }, "createAggregatedClient"); + var parseBoolean = /* @__PURE__ */ __name((value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); + } + }, "parseBoolean"); + var expectBoolean = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "number") { + if (value === 0 || value === 1) { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; + } + } + if (typeof value === "string") { + const lower = value.toLowerCase(); + if (lower === "false" || lower === "true") { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (lower === "false") { + return false; + } + if (lower === "true") { + return true; + } + } + if (typeof value === "boolean") { + return value; + } + throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); + }, "expectBoolean"); + var expectNumber = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + } + return parsed; + } + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}: ${value}`); + }, "expectNumber"); + var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); + var expectFloat32 = /* @__PURE__ */ __name((value) => { + const expected = expectNumber(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); + } + } + return expected; + }, "expectFloat32"); + var expectLong = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); + }, "expectLong"); + var expectInt = expectLong; + var expectInt32 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), "expectInt32"); + var expectShort = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), "expectShort"); + var expectByte = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), "expectByte"); + var expectSizedInt = /* @__PURE__ */ __name((value, size) => { + const expected = expectLong(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); + } + return expected; + }, "expectSizedInt"); + var castInt = /* @__PURE__ */ __name((value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } + }, "castInt"); + var expectNonNull = /* @__PURE__ */ __name((value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); + } + throw new TypeError("Expected a non-null value"); + } + return value; + }, "expectNonNull"); + var expectObject = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? "array" : typeof value; + throw new TypeError(`Expected object, got ${receivedType}: ${value}`); + }, "expectObject"); + var expectString = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + return value; + } + if (["boolean", "number", "bigint"].includes(typeof value)) { + logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + return String(value); + } + throw new TypeError(`Expected string, got ${typeof value}: ${value}`); + }, "expectString"); + var expectUnion2 = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + const asObject = expectObject(value); + const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); + if (setKeys.length === 0) { + throw new TypeError(`Unions must have exactly one non-null member. None were found.`); + } + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + } + return asObject; + }, "expectUnion"); + var strictParseDouble = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return expectNumber(parseNumber(value)); + } + return expectNumber(value); + }, "strictParseDouble"); + var strictParseFloat = strictParseDouble; + var strictParseFloat32 = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return expectFloat32(parseNumber(value)); + } + return expectFloat32(value); + }, "strictParseFloat32"); + var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; + var parseNumber = /* @__PURE__ */ __name((value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(`Expected real number, got implicit NaN`); + } + return parseFloat(value); + }, "parseNumber"); + var limitedParseDouble = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectNumber(value); + }, "limitedParseDouble"); + var handleFloat = limitedParseDouble; + var limitedParseFloat = limitedParseDouble; + var limitedParseFloat32 = /* @__PURE__ */ __name((value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectFloat32(value); + }, "limitedParseFloat32"); + var parseFloatString = /* @__PURE__ */ __name((value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } + }, "parseFloatString"); + var strictParseLong = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectLong(parseNumber(value)); + } + return expectLong(value); + }, "strictParseLong"); + var strictParseInt = strictParseLong; + var strictParseInt32 = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectInt32(parseNumber(value)); + } + return expectInt32(value); + }, "strictParseInt32"); + var strictParseShort = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectShort(parseNumber(value)); + } + return expectShort(value); + }, "strictParseShort"); + var strictParseByte = /* @__PURE__ */ __name((value) => { + if (typeof value === "string") { + return expectByte(parseNumber(value)); + } + return expectByte(value); + }, "strictParseByte"); + var stackTraceWarning = /* @__PURE__ */ __name((message) => { + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); + }, "stackTraceWarning"); + var logger = { + warn: console.warn + }; + var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; + } + __name(dateToUtcString, "dateToUtcString"); + var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); + var parseRfc3339DateTime = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + }, "parseRfc3339DateTime"); + var RFC3339_WITH_OFFSET = new RegExp( + /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/ + ); + var parseRfc3339DateTimeWithOffset = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339_WITH_OFFSET.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + if (offsetStr.toUpperCase() != "Z") { + date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); + } + return date; + }, "parseRfc3339DateTimeWithOffset"); + var IMF_FIXDATE = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ + ); + var RFC_850_DATE = new RegExp( + /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ + ); + var ASC_TIME = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/ + ); + var parseRfc7231DateTime = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); + } + let match = IMF_FIXDATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr, "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); + } + match = RFC_850_DATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year( + buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds + }) + ); + } + match = ASC_TIME.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr.trimLeft(), "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); + } + throw new TypeError("Invalid RFC-7231 date-time value"); + }, "parseRfc7231DateTime"); + var parseEpochTimestamp = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } else if (typeof value === "string") { + valueAsDouble = strictParseDouble(value); + } else if (typeof value === "object" && value.tag === 1) { + valueAsDouble = value.value; + } else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); + } + return new Date(Math.round(valueAsDouble * 1e3)); + }, "parseEpochTimestamp"); + var buildDate = /* @__PURE__ */ __name((year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date( + Date.UTC( + year, + adjustedMonth, + day, + parseDateValue(time.hours, "hour", 0, 23), + parseDateValue(time.minutes, "minute", 0, 59), + // seconds can go up to 60 for leap seconds + parseDateValue(time.seconds, "seconds", 0, 60), + parseMilliseconds(time.fractionalMilliseconds) + ) + ); + }, "buildDate"); + var parseTwoDigitYear = /* @__PURE__ */ __name((value) => { + const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; + }, "parseTwoDigitYear"); + var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; + var adjustRfc850Year = /* @__PURE__ */ __name((input) => { + if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date( + Date.UTC( + input.getUTCFullYear() - 100, + input.getUTCMonth(), + input.getUTCDate(), + input.getUTCHours(), + input.getUTCMinutes(), + input.getUTCSeconds(), + input.getUTCMilliseconds() + ) + ); + } + return input; + }, "adjustRfc850Year"); + var parseMonthByShortName = /* @__PURE__ */ __name((value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); + } + return monthIdx + 1; + }, "parseMonthByShortName"); + var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + var validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + } + }, "validateDayOfMonth"); + var isLeapYear = /* @__PURE__ */ __name((year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); + }, "isLeapYear"); + var parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => { + const dateVal = strictParseByte(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + } + return dateVal; + }, "parseDateValue"); + var parseMilliseconds = /* @__PURE__ */ __name((value) => { + if (value === null || value === void 0) { + return 0; + } + return strictParseFloat32("0." + value) * 1e3; + }, "parseMilliseconds"); + var parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => { + const directionStr = value[0]; + let direction = 1; + if (directionStr == "+") { + direction = 1; + } else if (directionStr == "-") { + direction = -1; + } else { + throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); + } + const hour = Number(value.substring(1, 3)); + const minute = Number(value.substring(4, 6)); + return direction * (hour * 60 + minute) * 60 * 1e3; + }, "parseOffsetToMilliseconds"); + var stripLeadingZeroes = /* @__PURE__ */ __name((value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); + }, "stripLeadingZeroes"); + var _ServiceException = class _ServiceException2 extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, _ServiceException2.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } + }; + __name(_ServiceException, "ServiceException"); + var ServiceException = _ServiceException; + var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => { + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === "") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || "UnknownError"; + exception.message = message; + delete exception.Message; + return exception; + }, "decorateServiceException"); + var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; + const response = new exceptionCtor({ + name: (parsedBody == null ? void 0 : parsedBody.code) || (parsedBody == null ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", + $fault: "client", + $metadata + }); + throw decorateServiceException(response, parsedBody); + }, "throwDefaultError"); + var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => { + return ({ output, parsedBody, errorCode }) => { + throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); + }; + }, "withBaseException"); + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }), "deserializeMetadata"); + var loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => { + switch (mode) { + case "standard": + return { + retryMode: "standard", + connectionTimeout: 3100 + }; + case "in-region": + return { + retryMode: "standard", + connectionTimeout: 1100 + }; + case "cross-region": + return { + retryMode: "standard", + connectionTimeout: 3100 + }; + case "mobile": + return { + retryMode: "standard", + connectionTimeout: 3e4 + }; + default: + return {}; + } + }, "loadConfigsForDefaultMode"); + var warningEmitted = false; + var emitWarningIfUnsupportedVersion2 = /* @__PURE__ */ __name((version2) => { + if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 16) { + warningEmitted = true; + } + }, "emitWarningIfUnsupportedVersion"); + var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { + const checksumAlgorithms = []; + for (const id in import_types5.AlgorithmId) { + const algorithmId = import_types5.AlgorithmId[id]; + if (runtimeConfig[algorithmId] === void 0) { + continue; + } + checksumAlgorithms.push({ + algorithmId: () => algorithmId, + checksumConstructor: () => runtimeConfig[algorithmId] + }); + } + return { + _checksumAlgorithms: checksumAlgorithms, + addChecksumAlgorithm(algo) { + this._checksumAlgorithms.push(algo); + }, + checksumAlgorithms() { + return this._checksumAlgorithms; + } + }; + }, "getChecksumConfiguration"); + var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => { + const runtimeConfig = {}; + clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { + runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); + }); + return runtimeConfig; + }, "resolveChecksumRuntimeConfig"); + var getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { + let _retryStrategy = runtimeConfig.retryStrategy; + return { + setRetryStrategy(retryStrategy) { + _retryStrategy = retryStrategy; + }, + retryStrategy() { + return _retryStrategy; + } + }; + }, "getRetryConfiguration"); + var resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => { + const runtimeConfig = {}; + runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); + return runtimeConfig; + }, "resolveRetryRuntimeConfig"); + var getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { + return { + ...getChecksumConfiguration(runtimeConfig), + ...getRetryConfiguration(runtimeConfig) + }; + }, "getDefaultExtensionConfiguration"); + var getDefaultClientConfiguration = getDefaultExtensionConfiguration; + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { + return { + ...resolveChecksumRuntimeConfig(config), + ...resolveRetryRuntimeConfig(config) + }; + }, "resolveDefaultRuntimeConfig"); + var getArrayIfSingleItem = /* @__PURE__ */ __name((mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray], "getArrayIfSingleItem"); + var getValueFromTextNode2 = /* @__PURE__ */ __name((obj) => { + const textNodeName = "#text"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { + obj[key] = obj[key][textNodeName]; + } else if (typeof obj[key] === "object" && obj[key] !== null) { + obj[key] = getValueFromTextNode2(obj[key]); + } + } + return obj; + }, "getValueFromTextNode"); + var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => { + return value != null; + }, "isSerializableHeaderValue"); + var StringWrapper = /* @__PURE__ */ __name(function() { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; + }, "StringWrapper"); + StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: StringWrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + Object.setPrototypeOf(StringWrapper, String); + var _LazyJsonString = class _LazyJsonString2 extends StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); + } + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof _LazyJsonString2) { + return object; + } else if (object instanceof String || typeof object === "string") { + return new _LazyJsonString2(object); + } + return new _LazyJsonString2(JSON.stringify(object)); + } + }; + __name(_LazyJsonString, "LazyJsonString"); + var LazyJsonString = _LazyJsonString; + var _NoOpLogger = class _NoOpLogger { + trace() { } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); + debug() { } - cubicSuccess(timestamp) { - return this.getPrecise( - this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate - ); + info() { } - enableTokenBucket() { - this.enabled = true; + warn() { } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + error() { } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; + }; + __name(_NoOpLogger, "NoOpLogger"); + var NoOpLogger = _NoOpLogger; + function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { + target = {}; + instructions = arg0; + } else { + target = arg0; + if (typeof arg1 === "function") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } else { + instructions = arg1; } } - getPrecise(num) { - return parseFloat(num.toFixed(8)); + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + applyInstruction(target, null, instructions, key); } - }; - __name(_DefaultRateLimiter, "DefaultRateLimiter"); - _DefaultRateLimiter.setTimeoutFn = setTimeout; - var DefaultRateLimiter = _DefaultRateLimiter; - var DEFAULT_RETRY_DELAY_BASE = 100; - var MAXIMUM_RETRY_DELAY = 20 * 1e3; - var THROTTLING_RETRY_DELAY_BASE = 500; - var INITIAL_RETRY_TOKENS = 500; - var RETRY_COST = 5; - var TIMEOUT_RETRY_COST = 10; - var NO_RETRY_INCREMENT = 1; - var INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; - var REQUEST_HEADER = "amz-sdk-request"; - var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => { - let delayBase = DEFAULT_RETRY_DELAY_BASE; - const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => { - return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - }, "computeNextBackoffDelay"); - const setDelayBase = /* @__PURE__ */ __name((delay) => { - delayBase = delay; - }, "setDelayBase"); - return { - computeNextBackoffDelay, - setDelayBase - }; - }, "getDefaultRetryBackoffStrategy"); - var createDefaultRetryToken = /* @__PURE__ */ __name(({ - retryDelay, - retryCount, - retryCost - }) => { - const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount"); - const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay"); - const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost"); - return { - getRetryCount, - getRetryDelay, - getRetryCost - }; - }, "createDefaultRetryToken"); - var _StandardRetryStrategy = class _StandardRetryStrategy { - constructor(maxAttempts) { - this.maxAttempts = maxAttempts; - this.mode = "standard"; - this.capacity = INITIAL_RETRY_TOKENS; - this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); - this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; + return target; + } + __name(map, "map"); + var convertMap = /* @__PURE__ */ __name((target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - async acquireInitialRetryToken(retryTokenScope) { - return createDefaultRetryToken({ - retryDelay: DEFAULT_RETRY_DELAY_BASE, - retryCount: 0 - }); + return output; + }, "convertMap"); + var take = /* @__PURE__ */ __name((source, instructions) => { + const out = {}; + for (const key in instructions) { + applyInstruction(out, source, instructions, key); } - async refreshRetryTokenForRetry(token, errorInfo) { - const maxAttempts = await this.getMaxAttempts(); - if (this.shouldRetry(token, errorInfo, maxAttempts)) { - const errorType = errorInfo.errorType; - this.retryBackoffStrategy.setDelayBase( - errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE - ); - const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); - const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; - const capacityCost = this.getCapacityCost(errorType); - this.capacity -= capacityCost; - return createDefaultRetryToken({ - retryDelay, - retryCount: token.getRetryCount() + 1, - retryCost: capacityCost - }); + return out; + }, "take"); + var mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => { + return map( + target, + Object.entries(instructions).reduce( + (_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } else { + if (typeof value === "function") { + _instructions[key] = [filter, value()]; + } else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, + {} + ) + ); + }, "mapWithFilter"); + var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, targetKey) => { + if (source !== null) { + let instruction = instructions[targetKey]; + if (typeof instruction === "function") { + instruction = [, instruction]; } - throw new Error("No retry token available"); - } - recordSuccess(token) { - this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); - } - /** - * @returns the current available retry capacity. - * - * This number decreases when retries are executed and refills when requests or retries succeed. - */ - getCapacity() { - return this.capacity; + const [filter2 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction; + if (typeof filter2 === "function" && filter2(source[sourceKey]) || typeof filter2 !== "function" && !!filter2) { + target[targetKey] = valueFn(source[sourceKey]); + } + return; } - async getMaxAttempts() { - try { - return await this.maxAttemptsProvider(); - } catch (error2) { - console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); - return DEFAULT_MAX_ATTEMPTS; + let [filter, value] = instructions[targetKey]; + if (typeof value === "function") { + let _value; + const defaultFilterPassed = filter === void 0 && (_value = value()) != null; + const customFilterPassed = typeof filter === "function" && !!filter(void 0) || typeof filter !== "function" && !!filter; + if (defaultFilterPassed) { + target[targetKey] = _value; + } else if (customFilterPassed) { + target[targetKey] = value(); + } + } else { + const defaultFilterPassed = filter === void 0 && value != null; + const customFilterPassed = typeof filter === "function" && !!filter(value) || typeof filter !== "function" && !!filter; + if (defaultFilterPassed || customFilterPassed) { + target[targetKey] = value; } } - shouldRetry(tokenToRenew, errorInfo, maxAttempts) { - const attempts = tokenToRenew.getRetryCount() + 1; - return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); + }, "applyInstruction"); + var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish"); + var pass = /* @__PURE__ */ __name((_) => _, "pass"); + function quoteHeader(part) { + if (part.includes(",") || part.includes('"')) { + part = `"${part.replace(/"/g, '\\"')}"`; } - getCapacityCost(errorType) { - return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST; + return part; + } + __name(quoteHeader, "quoteHeader"); + var serializeFloat = /* @__PURE__ */ __name((value) => { + if (value !== value) { + return "NaN"; } - isRetryableError(errorType) { - return errorType === "THROTTLING" || errorType === "TRANSIENT"; + switch (value) { + case Infinity: + return "Infinity"; + case -Infinity: + return "-Infinity"; + default: + return value; } - }; - __name(_StandardRetryStrategy, "StandardRetryStrategy"); - var StandardRetryStrategy = _StandardRetryStrategy; - var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy { - constructor(maxAttemptsProvider, options) { - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = "adaptive"; - const { rateLimiter } = options ?? {}; - this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); - this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); + }, "serializeFloat"); + var serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime"); + var _json = /* @__PURE__ */ __name((obj) => { + if (obj == null) { + return {}; } - async acquireInitialRetryToken(retryTokenScope) { - await this.rateLimiter.getSendToken(); - return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); + if (Array.isArray(obj)) { + return obj.filter((_) => _ != null).map(_json); } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - this.rateLimiter.updateClientSendingRate(errorInfo); - return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + if (typeof obj === "object") { + const target = {}; + for (const key of Object.keys(obj)) { + if (obj[key] == null) { + continue; + } + target[key] = _json(obj[key]); + } + return target; } - recordSuccess(token) { - this.rateLimiter.updateClientSendingRate({}); - this.standardRetryStrategy.recordSuccess(token); + return obj; + }, "_json"); + function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); } - }; - __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); - var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; - var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy { - /** - * @param maxAttempts - the maximum number of retry attempts allowed. - * e.g., if set to 3, then 4 total requests are possible. - * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt - * and returns the delay. - * - * @example exponential backoff. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2) - * }); - * ``` - * @example constant delay. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, 2000) - * }); - * ``` - */ - constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) { - super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); - if (typeof computeNextBackoffDelay === "number") { - this.computeNextBackoffDelay = () => computeNextBackoffDelay; + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; } else { - this.computeNextBackoffDelay = computeNextBackoffDelay; + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; } } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); - return token; + if (currentSegment !== "") { + compoundSegments.push(currentSegment); } - }; - __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy"); - var ConfiguredRetryStrategy = _ConfiguredRetryStrategy; + return compoundSegments; + } + __name(splitEvery, "splitEvery"); + var splitHeader = /* @__PURE__ */ __name((value) => { + const z = value.length; + const values = []; + let withinQuotes = false; + let prevChar = void 0; + let anchor = 0; + for (let i = 0; i < z; ++i) { + const char = value[i]; + switch (char) { + case `"`: + if (prevChar !== "\\") { + withinQuotes = !withinQuotes; + } + break; + case ",": + if (!withinQuotes) { + values.push(value.slice(anchor, i)); + anchor = i + 1; + } + break; + default: + } + prevChar = char; + } + values.push(value.slice(anchor)); + return values.map((v) => { + v = v.trim(); + const z2 = v.length; + if (z2 < 2) { + return v; + } + if (v[0] === `"` && v[z2 - 1] === `"`) { + v = v.slice(1, z2 - 1); + } + return v.replace(/\\"/g, '"'); + }); + }, "splitHeader"); } }); @@ -31007,7 +32328,7 @@ var require_isStreamingPayload = __commonJS({ }); // ../../node_modules/@smithy/middleware-retry/dist-cjs/index.js -var require_dist_cjs38 = __commonJS({ +var require_dist_cjs39 = __commonJS({ "../../node_modules/@smithy/middleware-retry/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31049,7 +32370,7 @@ var require_dist_cjs38 = __commonJS({ retryMiddlewareOptions: () => retryMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var import_uuid = (init_esm_node(), __toCommonJS(esm_node_exports)); var import_util_retry = require_dist_cjs37(); var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => { @@ -31121,12 +32442,12 @@ var require_dist_cjs38 = __commonJS({ let totalDelay = 0; const maxAttempts = await this.getMaxAttempts(); const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } while (true) { try { - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } if (options == null ? void 0 : options.beforeRequest) { @@ -31168,7 +32489,7 @@ var require_dist_cjs38 = __commonJS({ __name(_StandardRetryStrategy, "StandardRetryStrategy"); var StandardRetryStrategy = _StandardRetryStrategy; var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http8.HttpResponse.isInstance(response)) + if (!import_protocol_http9.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31253,7 +32574,7 @@ var require_dist_cjs38 = __commonJS({ }; var omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => { const { request } = args; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { delete request.headers[import_util_retry.INVOCATION_ID_HEADER]; delete request.headers[import_util_retry.REQUEST_HEADER]; } @@ -31271,7 +32592,7 @@ var require_dist_cjs38 = __commonJS({ clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); } }), "getOmitRetryHeadersPlugin"); - var import_smithy_client4 = require_dist_cjs19(); + var import_smithy_client4 = require_dist_cjs38(); var import_isStreamingPayload = require_isStreamingPayload(); var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { var _a; @@ -31284,7 +32605,7 @@ var require_dist_cjs38 = __commonJS({ let attempts = 0; let totalRetryDelay = 0; const { request } = args; - const isRequest = import_protocol_http8.HttpRequest.isInstance(request); + const isRequest = import_protocol_http9.HttpRequest.isInstance(request); if (isRequest) { request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } @@ -31364,7 +32685,7 @@ var require_dist_cjs38 = __commonJS({ } }), "getRetryPlugin"); var getRetryAfterHint = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http8.HttpResponse.isInstance(response)) + if (!import_protocol_http9.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31380,7 +32701,7 @@ var require_dist_cjs38 = __commonJS({ }); // ../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js -var require_dist_cjs39 = __commonJS({ +var require_dist_cjs40 = __commonJS({ "../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -31564,7 +32885,7 @@ var require_slurpFile = __commonJS({ }); // ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js -var require_dist_cjs40 = __commonJS({ +var require_dist_cjs41 = __commonJS({ "../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31729,7 +33050,7 @@ var require_dist_cjs40 = __commonJS({ }); // ../../node_modules/@smithy/node-config-provider/dist-cjs/index.js -var require_dist_cjs41 = __commonJS({ +var require_dist_cjs42 = __commonJS({ "../../node_modules/@smithy/node-config-provider/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31781,7 +33102,7 @@ var require_dist_cjs41 = __commonJS({ ); } }, "fromEnv"); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var fromSharedConfigFiles = /* @__PURE__ */ __name((configSelector, { preferredFile = "config", ...init } = {}) => async () => { const profile = (0, import_shared_ini_file_loader.getProfileName)(init); const { configFile, credentialsFile } = await (0, import_shared_ini_file_loader.loadSharedConfigFiles)(init); @@ -31820,7 +33141,7 @@ var require_getEndpointUrlConfig = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getEndpointUrlConfig = void 0; - var shared_ini_file_loader_1 = require_dist_cjs40(); + var shared_ini_file_loader_1 = require_dist_cjs41(); var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; var CONFIG_ENDPOINT_URL = "endpoint_url"; var getEndpointUrlConfig = (serviceId) => ({ @@ -31861,7 +33182,7 @@ var require_getEndpointFromConfig = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getEndpointFromConfig = void 0; - var node_config_provider_1 = require_dist_cjs41(); + var node_config_provider_1 = require_dist_cjs42(); var getEndpointUrlConfig_1 = require_getEndpointUrlConfig(); var getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId !== null && serviceId !== void 0 ? serviceId : ""))(); exports2.getEndpointFromConfig = getEndpointFromConfig; @@ -31869,7 +33190,7 @@ var require_getEndpointFromConfig = __commonJS({ }); // ../../node_modules/@smithy/querystring-parser/dist-cjs/index.js -var require_dist_cjs42 = __commonJS({ +var require_dist_cjs43 = __commonJS({ "../../node_modules/@smithy/querystring-parser/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31920,7 +33241,7 @@ var require_dist_cjs42 = __commonJS({ }); // ../../node_modules/@smithy/url-parser/dist-cjs/index.js -var require_dist_cjs43 = __commonJS({ +var require_dist_cjs44 = __commonJS({ "../../node_modules/@smithy/url-parser/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -31945,7 +33266,7 @@ var require_dist_cjs43 = __commonJS({ parseUrl: () => parseUrl }); module2.exports = __toCommonJS2(src_exports); - var import_querystring_parser = require_dist_cjs42(); + var import_querystring_parser = require_dist_cjs43(); var parseUrl = /* @__PURE__ */ __name((url) => { if (typeof url === "string") { return parseUrl(new URL(url)); @@ -31967,7 +33288,7 @@ var require_dist_cjs43 = __commonJS({ }); // ../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js -var require_dist_cjs44 = __commonJS({ +var require_dist_cjs45 = __commonJS({ "../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -32069,7 +33390,7 @@ var require_dist_cjs44 = __commonJS({ return configProvider; }, "createConfigValueProvider"); var import_getEndpointFromConfig = require_getEndpointFromConfig(); - var import_url_parser = require_dist_cjs43(); + var import_url_parser = require_dist_cjs44(); var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => { if (typeof endpoint === "object") { if ("url" in endpoint) { @@ -32453,8 +33774,8 @@ var require_httpAuthSchemeProvider = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.resolveHttpAuthSchemeConfig = exports2.defaultS3HttpAuthSchemeProvider = exports2.defaultS3HttpAuthSchemeParametersProvider = void 0; var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var signature_v4_multi_region_1 = require_dist_cjs39(); - var middleware_endpoint_1 = require_dist_cjs44(); + var signature_v4_multi_region_1 = require_dist_cjs40(); + var middleware_endpoint_1 = require_dist_cjs45(); var util_middleware_1 = require_dist_cjs4(); var endpointResolver_1 = require_endpointResolver(); var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => { @@ -32576,7 +33897,7 @@ var require_httpAuthSchemeProvider = __commonJS({ }); // ../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js -var require_dist_cjs45 = __commonJS({ +var require_dist_cjs46 = __commonJS({ "../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -32741,7 +34062,7 @@ var require_package = __commonJS({ module2.exports = { name: "@aws-sdk/client-s3", description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.699.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-s3", @@ -32767,64 +34088,64 @@ var require_package = __commonJS({ "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.693.0", - "@aws-sdk/client-sts": "3.693.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/credential-provider-node": "3.693.0", - "@aws-sdk/middleware-bucket-endpoint": "3.693.0", - "@aws-sdk/middleware-expect-continue": "3.693.0", - "@aws-sdk/middleware-flexible-checksums": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-location-constraint": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-sdk-s3": "3.693.0", - "@aws-sdk/middleware-ssec": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/signature-v4-multi-region": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@aws-sdk/xml-builder": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/eventstream-serde-browser": "^3.0.12", - "@smithy/eventstream-serde-config-resolver": "^3.0.9", - "@smithy/eventstream-serde-node": "^3.0.11", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-blob-browser": "^3.1.8", - "@smithy/hash-node": "^3.0.9", - "@smithy/hash-stream-node": "^3.1.8", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/md5-js": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/client-sso-oidc": "3.699.0", + "@aws-sdk/client-sts": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-bucket-endpoint": "3.696.0", + "@aws-sdk/middleware-expect-continue": "3.696.0", + "@aws-sdk/middleware-flexible-checksums": "3.697.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-location-constraint": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-sdk-s3": "3.696.0", + "@aws-sdk/middleware-ssec": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/signature-v4-multi-region": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@aws-sdk/xml-builder": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/eventstream-serde-browser": "^3.0.13", + "@smithy/eventstream-serde-config-resolver": "^3.0.10", + "@smithy/eventstream-serde-node": "^3.0.12", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-blob-browser": "^3.1.9", + "@smithy/hash-node": "^3.0.10", + "@smithy/hash-stream-node": "^3.1.9", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/md5-js": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", - "@smithy/util-stream": "^3.3.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-stream": "^3.3.1", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.8", + "@smithy/util-waiter": "^3.1.9", tslib: "^2.6.2" }, devDependencies: { - "@aws-sdk/signature-v4-crt": "3.693.0", + "@aws-sdk/signature-v4-crt": "3.696.0", "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", concurrently: "7.0.0", @@ -32867,7 +34188,7 @@ var require_package = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js -var require_dist_cjs46 = __commonJS({ +var require_dist_cjs47 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -32934,7 +34255,7 @@ var require_dist_cjs46 = __commonJS({ }); // ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js -var require_dist_cjs47 = __commonJS({ +var require_dist_cjs48 = __commonJS({ "../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -33115,8 +34436,8 @@ var require_dist_cjs47 = __commonJS({ }; __name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError"); var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError; - var import_node_config_provider = require_dist_cjs41(); - var import_url_parser = require_dist_cjs43(); + var import_node_config_provider = require_dist_cjs42(); + var import_url_parser = require_dist_cjs44(); var Endpoint = /* @__PURE__ */ ((Endpoint2) => { Endpoint2["IPv4"] = "http://169.254.169.254"; Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; @@ -33520,7 +34841,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI }); // ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js -var require_dist_cjs48 = __commonJS({ +var require_dist_cjs49 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -33611,7 +34932,7 @@ var require_package2 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sso", description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.696.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sso", @@ -33630,40 +34951,40 @@ var require_package2 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-node": "^3.0.9", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, @@ -33710,7 +35031,7 @@ var require_package2 = __commonJS({ }); // ../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js -var require_dist_cjs49 = __commonJS({ +var require_dist_cjs50 = __commonJS({ "../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -33795,7 +35116,7 @@ var require_dist_cjs49 = __commonJS({ }); // ../../node_modules/@smithy/hash-node/dist-cjs/index.js -var require_dist_cjs50 = __commonJS({ +var require_dist_cjs51 = __commonJS({ "../../node_modules/@smithy/hash-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -33859,7 +35180,7 @@ var require_dist_cjs50 = __commonJS({ }); // ../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js -var require_dist_cjs51 = __commonJS({ +var require_dist_cjs52 = __commonJS({ "../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -33975,7 +35296,7 @@ var require_runtimeConfig_shared = __commonJS({ var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider2(); @@ -34013,7 +35334,7 @@ var require_runtimeConfig_shared = __commonJS({ }); // ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js -var require_dist_cjs52 = __commonJS({ +var require_dist_cjs53 = __commonJS({ "../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2, module2) { var __create2 = Object.create; var __defProp2 = Object.defineProperty; @@ -34049,7 +35370,7 @@ var require_dist_cjs52 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_config_resolver = require_dist_cjs33(); - var import_node_config_provider = require_dist_cjs41(); + var import_node_config_provider = require_dist_cjs42(); var import_property_provider2 = require_dist_cjs16(); var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; var AWS_REGION_ENV = "AWS_REGION"; @@ -34111,7 +35432,7 @@ var require_dist_cjs52 = __commonJS({ } if (!process.env[ENV_IMDS_DISABLED]) { try { - const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); const endpoint = await getInstanceMetadataEndpoint(); return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); } catch (e) { @@ -34130,17 +35451,17 @@ var require_runtimeConfig = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package2()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var util_user_agent_node_1 = require_dist_cjs49(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); - var hash_node_1 = require_dist_cjs50(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var hash_node_1 = require_dist_cjs51(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -34174,7 +35495,7 @@ var require_runtimeConfig = __commonJS({ }); // ../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js -var require_dist_cjs53 = __commonJS({ +var require_dist_cjs54 = __commonJS({ "../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -34272,7 +35593,7 @@ var require_dist_cjs53 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js -var require_dist_cjs54 = __commonJS({ +var require_dist_cjs55 = __commonJS({ "../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -34324,8 +35645,8 @@ var require_dist_cjs54 = __commonJS({ var import_config_resolver = require_dist_cjs33(); var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_middleware_content_length = require_dist_cjs35(); - var import_middleware_endpoint = require_dist_cjs44(); - var import_middleware_retry = require_dist_cjs38(); + var import_middleware_endpoint = require_dist_cjs45(); + var import_middleware_retry = require_dist_cjs39(); var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider2(); var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { @@ -34342,8 +35663,8 @@ var require_dist_cjs54 = __commonJS({ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; var import_runtimeConfig = require_runtimeConfig(); - var import_region_config_resolver = require_dist_cjs53(); - var import_protocol_http8 = require_dist_cjs2(); + var import_region_config_resolver = require_dist_cjs54(); + var import_protocol_http9 = require_dist_cjs2(); var import_smithy_client4 = require_dist_cjs19(); var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; @@ -34387,7 +35708,7 @@ var require_dist_cjs54 = __commonJS({ const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); @@ -34395,7 +35716,7 @@ var require_dist_cjs54 = __commonJS({ ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); @@ -34876,7 +36197,7 @@ var require_package3 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sso-oidc", description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.699.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sso-oidc", @@ -34895,41 +36216,41 @@ var require_package3 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/credential-provider-node": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-node": "^3.0.9", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, @@ -34960,7 +36281,7 @@ var require_package3 = __commonJS({ }, license: "Apache-2.0", peerDependencies: { - "@aws-sdk/client-sts": "^3.693.0" + "@aws-sdk/client-sts": "^3.699.0" }, browser: { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" @@ -35046,7 +36367,7 @@ var require_runtimeConfig_shared2 = __commonJS({ var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider3(); @@ -35092,18 +36413,18 @@ var require_runtimeConfig2 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package3()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs62(); - var util_user_agent_node_1 = require_dist_cjs49(); + var credential_provider_node_1 = require_dist_cjs63(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); - var hash_node_1 = require_dist_cjs50(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var hash_node_1 = require_dist_cjs51(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -35138,7 +36459,7 @@ var require_runtimeConfig2 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js -var require_dist_cjs55 = __commonJS({ +var require_dist_cjs56 = __commonJS({ "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -35198,8 +36519,8 @@ var require_dist_cjs55 = __commonJS({ var import_config_resolver = require_dist_cjs33(); var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_middleware_content_length = require_dist_cjs35(); - var import_middleware_endpoint = require_dist_cjs44(); - var import_middleware_retry = require_dist_cjs38(); + var import_middleware_endpoint = require_dist_cjs45(); + var import_middleware_retry = require_dist_cjs39(); var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider3(); var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { @@ -35216,8 +36537,8 @@ var require_dist_cjs55 = __commonJS({ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; var import_runtimeConfig = require_runtimeConfig2(); - var import_region_config_resolver = require_dist_cjs53(); - var import_protocol_http8 = require_dist_cjs2(); + var import_region_config_resolver = require_dist_cjs54(); + var import_protocol_http9 = require_dist_cjs2(); var import_smithy_client4 = require_dist_cjs19(); var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; @@ -35261,7 +36582,7 @@ var require_dist_cjs55 = __commonJS({ const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); @@ -35269,7 +36590,7 @@ var require_dist_cjs55 = __commonJS({ ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); @@ -36107,7 +37428,7 @@ var require_dist_cjs55 = __commonJS({ }); // ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js -var require_dist_cjs56 = __commonJS({ +var require_dist_cjs57 = __commonJS({ "../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -36147,19 +37468,20 @@ var require_dist_cjs56 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var EXPIRE_WINDOW_MS = 5 * 60 * 1e3; var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; - var ssoOidcClientsHash = {}; - var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion) => { - const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); - if (ssoOidcClientsHash[ssoRegion]) { - return ssoOidcClientsHash[ssoRegion]; - } - const ssoOidcClient = new SSOOIDCClient({ region: ssoRegion }); - ssoOidcClientsHash[ssoRegion] = ssoOidcClient; + var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init = {}) => { + var _a, _b, _c; + const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const ssoOidcClient = new SSOOIDCClient( + Object.assign({}, init.clientConfig ?? {}, { + region: ssoRegion ?? ((_a = init.clientConfig) == null ? void 0 : _a.region), + logger: ((_b = init.clientConfig) == null ? void 0 : _b.logger) ?? ((_c = init.parentClientConfig) == null ? void 0 : _c.logger) + }) + ); return ssoOidcClient; }, "getSsoOidcClient"); - var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion) => { - const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); - const ssoOidcClient = await getSsoOidcClient(ssoRegion); + var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init = {}) => { + const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const ssoOidcClient = await getSsoOidcClient(ssoRegion, init); return ssoOidcClient.send( new CreateTokenCommand({ clientId: ssoToken.clientId, @@ -36183,7 +37505,7 @@ var require_dist_cjs56 = __commonJS({ ); } }, "validateTokenKey"); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_fs = require("fs"); var { writeFile } = import_fs.promises; var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => { @@ -36247,7 +37569,7 @@ var require_dist_cjs56 = __commonJS({ validateTokenKey("refreshToken", ssoToken.refreshToken, true); try { lastRefreshAttemptTime.setTime(Date.now()); - const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion); + const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init); validateTokenKey("accessToken", newSsoOidcToken.accessToken); validateTokenKey("expiresIn", newSsoOidcToken.expiresIn); const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3); @@ -36287,7 +37609,7 @@ var require_dist_cjs56 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js -var require_dist_cjs57 = __commonJS({ +var require_dist_cjs58 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -36320,7 +37642,7 @@ var require_dist_cjs57 = __commonJS({ var init_loadSso = __esm2({ "src/loadSso.ts"() { "use strict"; - import_client_sso = require_dist_cjs54(); + import_client_sso = require_dist_cjs55(); } }); var src_exports = {}; @@ -36332,9 +37654,9 @@ var require_dist_cjs57 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var isSsoProfile = /* @__PURE__ */ __name((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"), "isSsoProfile"); var import_client2 = (init_client(), __toCommonJS(client_exports)); - var import_token_providers = require_dist_cjs56(); + var import_token_providers = require_dist_cjs57(); var import_property_provider2 = require_dist_cjs16(); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var SHOULD_FAIL_CREDENTIAL_CHAIN = false; var resolveSSOCredentials = /* @__PURE__ */ __name(async ({ ssoStartUrl, @@ -36344,6 +37666,7 @@ var require_dist_cjs57 = __commonJS({ ssoRoleName, ssoClient, clientConfig, + parentClientConfig, profile, logger }) => { @@ -36382,6 +37705,7 @@ var require_dist_cjs57 = __commonJS({ const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports)); const sso = ssoClient || new SSOClient2( Object.assign({}, clientConfig ?? {}, { + logger: (clientConfig == null ? void 0 : clientConfig.logger) ?? (parentClientConfig == null ? void 0 : parentClientConfig.logger), region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion }) ); @@ -36485,6 +37809,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht ssoRoleName: sso_role_name, ssoClient, clientConfig: init.clientConfig, + parentClientConfig: init.parentClientConfig, profile: profileName }); } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { @@ -36501,6 +37826,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht ssoRoleName, ssoClient, clientConfig: init.clientConfig, + parentClientConfig: init.parentClientConfig, profile: profileName }); } @@ -36612,7 +37938,7 @@ var require_package4 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sts", description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", - version: "3.693.0", + version: "3.699.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sts", @@ -36633,42 +37959,42 @@ var require_package4 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.693.0", - "@aws-sdk/core": "3.693.0", - "@aws-sdk/credential-provider-node": "3.693.0", - "@aws-sdk/middleware-host-header": "3.693.0", - "@aws-sdk/middleware-logger": "3.693.0", - "@aws-sdk/middleware-recursion-detection": "3.693.0", - "@aws-sdk/middleware-user-agent": "3.693.0", - "@aws-sdk/region-config-resolver": "3.693.0", - "@aws-sdk/types": "3.692.0", - "@aws-sdk/util-endpoints": "3.693.0", - "@aws-sdk/util-user-agent-browser": "3.693.0", - "@aws-sdk/util-user-agent-node": "3.693.0", - "@smithy/config-resolver": "^3.0.11", - "@smithy/core": "^2.5.2", - "@smithy/fetch-http-handler": "^4.1.0", - "@smithy/hash-node": "^3.0.9", - "@smithy/invalid-dependency": "^3.0.9", - "@smithy/middleware-content-length": "^3.0.11", - "@smithy/middleware-endpoint": "^3.2.2", - "@smithy/middleware-retry": "^3.0.26", - "@smithy/middleware-serde": "^3.0.9", - "@smithy/middleware-stack": "^3.0.9", - "@smithy/node-config-provider": "^3.1.10", - "@smithy/node-http-handler": "^3.3.0", - "@smithy/protocol-http": "^4.1.6", - "@smithy/smithy-client": "^3.4.3", - "@smithy/types": "^3.7.0", - "@smithy/url-parser": "^3.0.9", + "@aws-sdk/client-sso-oidc": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.26", - "@smithy/util-defaults-mode-node": "^3.0.26", - "@smithy/util-endpoints": "^2.1.5", - "@smithy/util-middleware": "^3.0.9", - "@smithy/util-retry": "^3.0.9", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, @@ -36794,7 +38120,7 @@ var require_runtimeConfig_shared3 = __commonJS({ var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4(); @@ -36840,19 +38166,19 @@ var require_runtimeConfig3 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package4()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs62(); - var util_user_agent_node_1 = require_dist_cjs49(); + var credential_provider_node_1 = require_dist_cjs63(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var hash_node_1 = require_dist_cjs50(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var hash_node_1 = require_dist_cjs51(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -36952,7 +38278,7 @@ var require_runtimeExtensions = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.resolveRuntimeExtensions = void 0; - var region_config_resolver_1 = require_dist_cjs53(); + var region_config_resolver_1 = require_dist_cjs54(); var protocol_http_1 = require_dist_cjs2(); var smithy_client_1 = require_dist_cjs19(); var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration(); @@ -36990,8 +38316,8 @@ var require_STSClient = __commonJS({ var config_resolver_1 = require_dist_cjs33(); var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports)); var middleware_content_length_1 = require_dist_cjs35(); - var middleware_endpoint_1 = require_dist_cjs44(); - var middleware_retry_1 = require_dist_cjs38(); + var middleware_endpoint_1 = require_dist_cjs45(); + var middleware_retry_1 = require_dist_cjs39(); var smithy_client_1 = require_dist_cjs19(); Object.defineProperty(exports2, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; @@ -37036,7 +38362,7 @@ var require_STSClient = __commonJS({ }); // ../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js -var require_dist_cjs58 = __commonJS({ +var require_dist_cjs59 = __commonJS({ "../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -37095,7 +38421,7 @@ var require_dist_cjs58 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); __reExport(src_exports, require_STSClient(), module2.exports); - var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_endpoint = require_dist_cjs45(); var import_middleware_serde2 = require_dist_cjs5(); var import_EndpointParameters = require_EndpointParameters(); var import_smithy_client4 = require_dist_cjs19(); @@ -37283,7 +38609,7 @@ var require_dist_cjs58 = __commonJS({ ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } }), "GetSessionTokenResponseFilterSensitiveLog"); var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -38145,7 +39471,7 @@ var require_dist_cjs58 = __commonJS({ if (body !== void 0) { contents.body = body; } - return new import_protocol_http8.HttpRequest(contents); + return new import_protocol_http9.HttpRequest(contents); }, "buildHttpRpcRequest"); var SHARED_HEADERS = { "content-type": "application/x-www-form-urlencoded" @@ -38470,7 +39796,7 @@ var require_dist_cjs58 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js -var require_dist_cjs59 = __commonJS({ +var require_dist_cjs60 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38496,7 +39822,7 @@ var require_dist_cjs59 = __commonJS({ fromProcess: () => fromProcess }); module2.exports = __toCommonJS2(src_exports); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_property_provider2 = require_dist_cjs16(); var import_child_process = require("child_process"); var import_util = require("util"); @@ -38605,7 +39931,7 @@ var require_fromWebToken = __commonJS({ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; let { roleAssumerWithWebIdentity } = init; if (!roleAssumerWithWebIdentity) { - const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar2(require_dist_cjs58())); + const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar2(require_dist_cjs59())); roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({ ...init.clientConfig, credentialProviderLogger: init.logger, @@ -38665,7 +39991,7 @@ var require_fromTokenFile = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js -var require_dist_cjs60 = __commonJS({ +var require_dist_cjs61 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38690,7 +40016,7 @@ var require_dist_cjs60 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js -var require_dist_cjs61 = __commonJS({ +var require_dist_cjs62 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38726,25 +40052,25 @@ var require_dist_cjs61 = __commonJS({ fromIni: () => fromIni }); module2.exports = __toCommonJS2(src_exports); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_client2 = (init_client(), __toCommonJS(client_exports)); var import_property_provider2 = require_dist_cjs16(); var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger) => { const sourceProvidersMap = { EcsContainer: async (options) => { - const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); - const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs49())); + const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); return async () => (0, import_property_provider2.chain)(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider); }, Ec2InstanceMetadata: async (options) => { logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); - const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); return async () => fromInstanceMetadata(options)().then(setNamedProvider); }, Environment: async (options) => { logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); - const { fromEnv } = await Promise.resolve().then(() => __toESM2(require_dist_cjs46())); + const { fromEnv } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); return async () => fromEnv(options)().then(setNamedProvider); } }; @@ -38782,7 +40108,7 @@ var require_dist_cjs61 = __commonJS({ (_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); const data = profiles[profileName]; if (!options.roleAssumer) { - const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); + const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); options.roleAssumer = getDefaultRoleAssumer( { ...options.clientConfig, @@ -38842,17 +40168,19 @@ var require_dist_cjs61 = __commonJS({ return !section.role_arn && !!section.credential_source; }, "isCredentialSourceWithoutRoleArn"); var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile"); - var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs59())).then( + var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs60())).then( ({ fromProcess }) => fromProcess({ ...options, profile })().then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v")) ), "resolveProcessCredentials"); var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}) => { - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); return fromSSO({ profile, - logger: options.logger + logger: options.logger, + parentClientConfig: options.parentClientConfig, + clientConfig: options.clientConfig })().then((creds) => { if (profileData.sso_session) { return (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r"); @@ -38876,7 +40204,7 @@ var require_dist_cjs61 = __commonJS({ return (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n"); }, "resolveStaticCredentials"); var isWebIdentityProfile = /* @__PURE__ */ __name((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, "isWebIdentityProfile"); - var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs60())).then( + var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs61())).then( ({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({ webIdentityTokenFile: profile.web_identity_token_file, roleArn: profile.role_arn, @@ -38921,7 +40249,7 @@ var require_dist_cjs61 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js -var require_dist_cjs62 = __commonJS({ +var require_dist_cjs63 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38959,16 +40287,16 @@ var require_dist_cjs62 = __commonJS({ defaultProvider: () => defaultProvider }); module2.exports = __toCommonJS2(src_exports); - var import_credential_provider_env = require_dist_cjs46(); - var import_shared_ini_file_loader = require_dist_cjs40(); + var import_credential_provider_env = require_dist_cjs47(); + var import_shared_ini_file_loader = require_dist_cjs41(); var import_property_provider2 = require_dist_cjs16(); var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; var remoteProvider = /* @__PURE__ */ __name(async (init) => { var _a, _b; - const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); + const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) { (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); - const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); + const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs49())); return (0, import_property_provider2.chain)(fromHttp(init), fromContainerMetadata(init)); } if (process.env[ENV_IMDS_DISABLED]) { @@ -39022,25 +40350,25 @@ var require_dist_cjs62 = __commonJS({ { logger: init.logger } ); } - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); return fromSSO(init)(); }, async () => { var _a; (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); - const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs61())); + const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs62())); return fromIni(init)(); }, async () => { var _a; (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); - const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); + const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs60())); return fromProcess(init)(); }, async () => { var _a; (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); - const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs60())); + const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs61())); return fromTokenFile2(init)(); }, async () => { @@ -39064,7 +40392,7 @@ var require_dist_cjs62 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js -var require_dist_cjs63 = __commonJS({ +var require_dist_cjs64 = __commonJS({ "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -39125,7 +40453,7 @@ var require_dist_cjs63 = __commonJS({ default: false }; var import_util_arn_parser = require_dist_cjs28(); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; var DOTS_PATTERN = /\.\./; @@ -39430,7 +40758,7 @@ var require_dist_cjs63 = __commonJS({ const { Bucket: bucketName } = args.input; let replaceBucketInPath = options.bucketEndpoint; const request = args.request; - if (import_protocol_http8.HttpRequest.isInstance(request)) { + if (import_protocol_http9.HttpRequest.isInstance(request)) { if (options.bucketEndpoint) { request.hostname = bucketName; } else if ((0, import_util_arn_parser.validate)(bucketName)) { @@ -39529,7 +40857,7 @@ var require_dist_cjs63 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js -var require_dist_cjs64 = __commonJS({ +var require_dist_cjs65 = __commonJS({ "../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39987,7 +41315,7 @@ var require_dist_cjs64 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js -var require_dist_cjs65 = __commonJS({ +var require_dist_cjs66 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40013,7 +41341,7 @@ var require_dist_cjs65 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_codec = require_dist_cjs64(); + var import_eventstream_codec = require_dist_cjs65(); function getChunkedStream(source) { let currentMessageTotalLength = 0; let currentMessagePendingLength = 0; @@ -40156,7 +41484,7 @@ var require_dist_cjs65 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js -var require_dist_cjs66 = __commonJS({ +var require_dist_cjs67 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40182,7 +41510,7 @@ var require_dist_cjs66 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_serde_universal = require_dist_cjs65(); + var import_eventstream_serde_universal = require_dist_cjs66(); var import_stream = require("stream"); async function* readabletoIterable(readStream) { let streamEnded = false; @@ -40233,7 +41561,7 @@ var require_dist_cjs66 = __commonJS({ }); // ../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js -var require_dist_cjs67 = __commonJS({ +var require_dist_cjs68 = __commonJS({ "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40328,9 +41656,9 @@ var require_runtimeConfig_shared4 = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getRuntimeConfig = void 0; var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var signature_v4_multi_region_1 = require_dist_cjs39(); + var signature_v4_multi_region_1 = require_dist_cjs40(); var smithy_client_1 = require_dist_cjs19(); - var url_parser_1 = require_dist_cjs43(); + var url_parser_1 = require_dist_cjs44(); var util_base64_1 = require_dist_cjs9(); var util_stream_1 = require_dist_cjs15(); var util_utf8_1 = require_dist_cjs8(); @@ -40382,23 +41710,23 @@ var require_runtimeConfig4 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs62(); - var middleware_bucket_endpoint_1 = require_dist_cjs63(); + var credential_provider_node_1 = require_dist_cjs63(); + var middleware_bucket_endpoint_1 = require_dist_cjs64(); var middleware_flexible_checksums_1 = require_dist_cjs23(); var middleware_sdk_s3_1 = require_dist_cjs29(); - var util_user_agent_node_1 = require_dist_cjs49(); + var util_user_agent_node_1 = require_dist_cjs50(); var config_resolver_1 = require_dist_cjs33(); - var eventstream_serde_node_1 = require_dist_cjs66(); - var hash_node_1 = require_dist_cjs50(); - var hash_stream_node_1 = require_dist_cjs67(); - var middleware_retry_1 = require_dist_cjs38(); - var node_config_provider_1 = require_dist_cjs41(); + var eventstream_serde_node_1 = require_dist_cjs67(); + var hash_node_1 = require_dist_cjs51(); + var hash_stream_node_1 = require_dist_cjs68(); + var middleware_retry_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs42(); var node_http_handler_1 = require_dist_cjs12(); - var util_body_length_node_1 = require_dist_cjs51(); + var util_body_length_node_1 = require_dist_cjs52(); var util_retry_1 = require_dist_cjs37(); var runtimeConfig_shared_1 = require_runtimeConfig_shared4(); var smithy_client_1 = require_dist_cjs19(); - var util_defaults_mode_node_1 = require_dist_cjs52(); + var util_defaults_mode_node_1 = require_dist_cjs53(); var smithy_client_2 = require_dist_cjs19(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); @@ -40442,7 +41770,7 @@ var require_runtimeConfig4 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js -var require_dist_cjs68 = __commonJS({ +var require_dist_cjs69 = __commonJS({ "../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40538,7 +41866,7 @@ var require_dist_cjs68 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js -var require_dist_cjs69 = __commonJS({ +var require_dist_cjs70 = __commonJS({ "../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40598,7 +41926,7 @@ var require_dist_cjs69 = __commonJS({ }); // ../../node_modules/@smithy/util-waiter/dist-cjs/index.js -var require_dist_cjs70 = __commonJS({ +var require_dist_cjs71 = __commonJS({ "../../node_modules/@smithy/util-waiter/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40752,7 +42080,7 @@ var require_dist_cjs70 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js -var require_dist_cjs71 = __commonJS({ +var require_dist_cjs72 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40824,6 +42152,7 @@ var require_dist_cjs71 = __commonJS({ DeletePublicAccessBlockCommand: () => DeletePublicAccessBlockCommand, EncodingType: () => EncodingType, EncryptionFilterSensitiveLog: () => EncryptionFilterSensitiveLog, + EncryptionTypeMismatch: () => EncryptionTypeMismatch, Event: () => Event2, ExistingObjectReplicationStatus: () => ExistingObjectReplicationStatus, ExpirationStatus: () => ExpirationStatus, @@ -40872,6 +42201,8 @@ var require_dist_cjs71 = __commonJS({ IntelligentTieringAccessTier: () => IntelligentTieringAccessTier, IntelligentTieringStatus: () => IntelligentTieringStatus, InvalidObjectState: () => InvalidObjectState, + InvalidRequest: () => InvalidRequest, + InvalidWriteOffset: () => InvalidWriteOffset, InventoryConfigurationFilterSensitiveLog: () => InventoryConfigurationFilterSensitiveLog, InventoryDestinationFilterSensitiveLog: () => InventoryDestinationFilterSensitiveLog, InventoryEncryptionFilterSensitiveLog: () => InventoryEncryptionFilterSensitiveLog, @@ -40983,6 +42314,7 @@ var require_dist_cjs71 = __commonJS({ StorageClassAnalysisSchemaVersion: () => StorageClassAnalysisSchemaVersion, TaggingDirective: () => TaggingDirective, Tier: () => Tier, + TooManyParts: () => TooManyParts, TransitionDefaultMinimumObjectSize: () => TransitionDefaultMinimumObjectSize, TransitionStorageClass: () => TransitionStorageClass, Type: () => Type, @@ -41020,10 +42352,10 @@ var require_dist_cjs71 = __commonJS({ var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_eventstream_serde_config_resolver = require_dist_cjs34(); var import_middleware_content_length = require_dist_cjs35(); - var import_middleware_retry = require_dist_cjs38(); + var import_middleware_retry = require_dist_cjs39(); var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider(); var import_middleware_sdk_s3 = require_dist_cjs29(); - var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_endpoint = require_dist_cjs45(); var import_middleware_serde2 = require_dist_cjs5(); var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { @@ -41698,13 +43030,81 @@ var require_dist_cjs71 = __commonJS({ } }), "PutBucketInventoryConfigurationRequestFilterSensitiveLog"); var import_core4 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_xml_builder = require_dist_cjs45(); + var import_xml_builder = require_dist_cjs46(); var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_protocol_http8 = require_dist_cjs2(); + var import_protocol_http9 = require_dist_cjs2(); var MFADelete = { Disabled: "Disabled", Enabled: "Enabled" }; + var _EncryptionTypeMismatch = class _EncryptionTypeMismatch2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "EncryptionTypeMismatch", + $fault: "client", + ...opts + }); + this.name = "EncryptionTypeMismatch"; + this.$fault = "client"; + Object.setPrototypeOf(this, _EncryptionTypeMismatch2.prototype); + } + }; + __name(_EncryptionTypeMismatch, "EncryptionTypeMismatch"); + var EncryptionTypeMismatch = _EncryptionTypeMismatch; + var _InvalidRequest = class _InvalidRequest2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidRequest", + $fault: "client", + ...opts + }); + this.name = "InvalidRequest"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequest2.prototype); + } + }; + __name(_InvalidRequest, "InvalidRequest"); + var InvalidRequest = _InvalidRequest; + var _InvalidWriteOffset = class _InvalidWriteOffset2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidWriteOffset", + $fault: "client", + ...opts + }); + this.name = "InvalidWriteOffset"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidWriteOffset2.prototype); + } + }; + __name(_InvalidWriteOffset, "InvalidWriteOffset"); + var InvalidWriteOffset = _InvalidWriteOffset; + var _TooManyParts = class _TooManyParts2 extends S3ServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "TooManyParts", + $fault: "client", + ...opts + }); + this.name = "TooManyParts"; + this.$fault = "client"; + Object.setPrototypeOf(this, _TooManyParts2.prototype); + } + }; + __name(_TooManyParts, "TooManyParts"); + var TooManyParts = _TooManyParts; var _ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError2 extends S3ServiceException { /** * @internal @@ -41845,7 +43245,8 @@ var require_dist_cjs71 = __commonJS({ const b = (0, import_core22.requestBuilder)(input, context); const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], - [_xaebo]: input[_EBO] + [_xaebo]: input[_EBO], + [_xaimit]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMIT]).toString()] }); b.bp("/{Key+}"); b.p("Bucket", () => input.Bucket, "{Bucket}", false); @@ -42223,7 +43624,10 @@ var require_dist_cjs71 = __commonJS({ [_xam]: input[_MFA], [_xarp]: input[_RP], [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], - [_xaebo]: input[_EBO] + [_xaebo]: input[_EBO], + [_im]: input[_IM], + [_xaimlmt]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMLMT]).toString()], + [_xaims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()] }); b.bp("/{Key+}"); b.p("Bucket", () => input.Bucket, "{Bucket}", false); @@ -42583,7 +43987,7 @@ var require_dist_cjs71 = __commonJS({ const b = (0, import_core22.requestBuilder)(input, context); const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMS]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], @@ -42762,7 +44166,7 @@ var require_dist_cjs71 = __commonJS({ const b = (0, import_core22.requestBuilder)(input, context); const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMS]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], @@ -43442,6 +44846,7 @@ var require_dist_cjs71 = __commonJS({ [_xagr]: input[_GR], [_xagra]: input[_GRACP], [_xagwa]: input[_GWACP], + [_xawob]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()], [_xasse]: input[_SSE], [_xasc]: input[_SC], [_xawrl]: input[_WRL], @@ -43838,7 +45243,7 @@ var require_dist_cjs71 = __commonJS({ throw new Error("Empty value provided for input host prefix: RequestRoute."); } resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute); - if (!(0, import_protocol_http8.isValidHostname)(resolvedHostname)) { + if (!(0, import_protocol_http9.isValidHostname)(resolvedHostname)) { throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } @@ -45288,6 +46693,7 @@ var require_dist_cjs71 = __commonJS({ [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], + [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client4.strictParseLong)(output.headers[_xaos])], [_RC]: [, output.headers[_xarc]] }); await (0, import_smithy_client4.collectBody)(output.body, context); @@ -45461,6 +46867,18 @@ var require_dist_cjs71 = __commonJS({ case "NotFound": case "com.amazonaws.s3#NotFound": throw await de_NotFoundRes(parsedOutput, context); + case "EncryptionTypeMismatch": + case "com.amazonaws.s3#EncryptionTypeMismatch": + throw await de_EncryptionTypeMismatchRes(parsedOutput, context); + case "InvalidRequest": + case "com.amazonaws.s3#InvalidRequest": + throw await de_InvalidRequestRes(parsedOutput, context); + case "InvalidWriteOffset": + case "com.amazonaws.s3#InvalidWriteOffset": + throw await de_InvalidWriteOffsetRes(parsedOutput, context); + case "TooManyParts": + case "com.amazonaws.s3#TooManyParts": + throw await de_TooManyPartsRes(parsedOutput, context); case "ObjectAlreadyInActiveTierError": case "com.amazonaws.s3#ObjectAlreadyInActiveTierError": throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context); @@ -45492,6 +46910,15 @@ var require_dist_cjs71 = __commonJS({ }); return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_BucketAlreadyOwnedByYouRes"); + var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new EncryptionTypeMismatch({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_EncryptionTypeMismatchRes"); var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; @@ -45507,6 +46934,24 @@ var require_dist_cjs71 = __commonJS({ }); return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidObjectStateRes"); + var de_InvalidRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new InvalidRequest({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRequestRes"); + var de_InvalidWriteOffsetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new InvalidWriteOffset({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidWriteOffsetRes"); var de_NoSuchBucketRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; @@ -45561,6 +47006,15 @@ var require_dist_cjs71 = __commonJS({ }); return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ObjectNotInActiveTierErrorRes"); + var de_TooManyPartsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const exception = new TooManyParts({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_TooManyPartsRes"); var de_SelectObjectContentEventStream = /* @__PURE__ */ __name((output, context) => { return context.eventStreamMarshaller.deserialize(output, async (event) => { if (event["Records"] != null) { @@ -46363,6 +47817,13 @@ var require_dist_cjs71 = __commonJS({ if (input[_VI] != null) { bn.c(import_xml_builder.XmlNode.of(_OVI, input[_VI]).n(_VI)); } + bn.cc(input, _ETa); + if (input[_LMT] != null) { + bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client4.dateToUtcString)(input[_LMT]).toString()).n(_LMT)); + } + if (input[_Si] != null) { + bn.c(import_xml_builder.XmlNode.of(_Si, String(input[_Si])).n(_Si)); + } return bn; }, "se_ObjectIdentifier"); var se_ObjectIdentifierList = /* @__PURE__ */ __name((input, context) => { @@ -48600,7 +50061,10 @@ var require_dist_cjs71 = __commonJS({ var _IIOV = "InventoryIncludedObjectVersions"; var _IL = "IsLatest"; var _IM = "IfMatch"; - var _IMS = "IfModifiedSince"; + var _IMIT = "IfMatchInitiatedTime"; + var _IMLMT = "IfMatchLastModifiedTime"; + var _IMS = "IfMatchSize"; + var _IMSf = "IfModifiedSince"; var _INM = "IfNoneMatch"; var _IOF = "InventoryOptionalField"; var _IOV = "IncludedObjectVersions"; @@ -48643,6 +50107,7 @@ var require_dist_cjs71 = __commonJS({ var _LFCa = "LambdaFunctionConfiguration"; var _LI = "LocationInfo"; var _LM = "LastModified"; + var _LMT = "LastModifiedTime"; var _LNAS = "LocationNameAsString"; var _LP = "LocationPrefix"; var _LR = "LifecycleRule"; @@ -48869,6 +50334,7 @@ var require_dist_cjs71 = __commonJS({ var _Va = "Value"; var _Ve = "Versions"; var _WC = "WebsiteConfiguration"; + var _WOB = "WriteOffsetBytes"; var _WRL = "WebsiteRedirectLocation"; var _Y = "Years"; var _a = "analytics"; @@ -49025,6 +50491,9 @@ var require_dist_cjs71 = __commonJS({ var _xagra = "x-amz-grant-read-acp"; var _xagw = "x-amz-grant-write"; var _xagwa = "x-amz-grant-write-acp"; + var _xaimit = "x-amz-if-match-initiated-time"; + var _xaimlmt = "x-amz-if-match-last-modified-time"; + var _xaims = "x-amz-if-match-size"; var _xam = "x-amz-mfa"; var _xamd = "x-amz-metadata-directive"; var _xamm = "x-amz-missing-meta"; @@ -49036,6 +50505,7 @@ var require_dist_cjs71 = __commonJS({ var _xaolrud = "x-amz-object-lock-retain-until-date"; var _xaoo = "x-amz-object-ownership"; var _xaooa = "x-amz-optional-object-attributes"; + var _xaos = "x-amz-object-size"; var _xapnm = "x-amz-part-number-marker"; var _xar = "x-amz-restore"; var _xarc = "x-amz-request-charged"; @@ -49060,6 +50530,7 @@ var require_dist_cjs71 = __commonJS({ var _xatd = "x-amz-tagging-directive"; var _xatdmos = "x-amz-transition-default-minimum-object-size"; var _xavi = "x-amz-version-id"; + var _xawob = "x-amz-write-offset-bytes"; var _xawrl = "x-amz-website-redirect-location"; var _xi = "x-id"; var _CreateSessionCommand = class _CreateSessionCommand extends import_smithy_client4.Command.classBuilder().ep({ @@ -49077,7 +50548,7 @@ var require_dist_cjs71 = __commonJS({ __name(_CreateSessionCommand, "CreateSessionCommand"); var CreateSessionCommand = _CreateSessionCommand; var import_runtimeConfig = require_runtimeConfig4(); - var import_region_config_resolver = require_dist_cjs53(); + var import_region_config_resolver = require_dist_cjs54(); var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; @@ -49120,7 +50591,7 @@ var require_dist_cjs71 = __commonJS({ const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); @@ -49128,7 +50599,7 @@ var require_dist_cjs71 = __commonJS({ ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); @@ -49197,7 +50668,7 @@ var require_dist_cjs71 = __commonJS({ __name(_AbortMultipartUploadCommand, "AbortMultipartUploadCommand"); var AbortMultipartUploadCommand = _AbortMultipartUploadCommand; var import_middleware_sdk_s34 = require_dist_cjs29(); - var import_middleware_ssec = require_dist_cjs68(); + var import_middleware_ssec = require_dist_cjs69(); var _CompleteMultipartUploadCommand = class _CompleteMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, @@ -49231,7 +50702,7 @@ var require_dist_cjs71 = __commonJS({ }; __name(_CopyObjectCommand, "CopyObjectCommand"); var CopyObjectCommand = _CopyObjectCommand; - var import_middleware_location_constraint = require_dist_cjs69(); + var import_middleware_location_constraint = require_dist_cjs70(); var import_middleware_sdk_s36 = require_dist_cjs29(); var _CreateBucketCommand = class _CreateBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ ...commonParams, @@ -49458,7 +50929,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -49835,7 +51305,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestChecksumRequired: false, requestValidationModeMember: "ChecksumMode", responseAlgorithms: ["CRC32", "CRC32C", "SHA256", "SHA1"] @@ -50130,7 +51599,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }) @@ -50148,7 +51616,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50179,7 +51646,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50197,7 +51663,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50242,7 +51707,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50261,7 +51725,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50305,7 +51768,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestChecksumRequired: true }) ]; @@ -50322,7 +51784,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50340,7 +51801,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50358,7 +51818,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50376,7 +51835,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50394,7 +51852,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50412,7 +51869,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50431,7 +51887,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50451,7 +51906,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }), @@ -50472,7 +51926,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50491,7 +51944,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50510,7 +51962,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50529,7 +51980,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }), @@ -50548,7 +51998,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: true }) @@ -50566,7 +52015,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }), @@ -50608,7 +52056,6 @@ var require_dist_cjs71 = __commonJS({ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - input: this.input, requestAlgorithmMember: "ChecksumAlgorithm", requestChecksumRequired: false }), @@ -50757,7 +52204,7 @@ var require_dist_cjs71 = __commonJS({ var paginateListObjectsV2 = (0, import_core6.createPaginator)(S3Client, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys"); var import_core7 = (init_dist_es(), __toCommonJS(dist_es_exports)); var paginateListParts = (0, import_core7.createPaginator)(S3Client, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts"); - var import_util_waiter = require_dist_cjs70(); + var import_util_waiter = require_dist_cjs71(); var checkState = /* @__PURE__ */ __name(async (client, input) => { let reason; try { @@ -59477,7 +60924,7 @@ var require_mime_types = __commonJS({ var path = __toESM(require("node:path")); var crypto5 = __toESM(require("node:crypto")); var core = __toESM(require_core()); -var import_client_s3 = __toESM(require_dist_cjs71()); +var import_client_s3 = __toESM(require_dist_cjs72()); var import_mime_types = __toESM(require_mime_types()); // src/size_limit.ts