@stacksjs/storage 0.70.9 → 0.70.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +965 -582
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -171883,6 +171883,516 @@ class S3ExpressIdentityProviderImpl {
|
|
|
171883
171883
|
}
|
|
171884
171884
|
var init_S3ExpressIdentityProviderImpl = () => {};
|
|
171885
171885
|
|
|
171886
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/constants.js
|
|
171887
|
+
var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm", CREDENTIAL_QUERY_PARAM = "X-Amz-Credential", AMZ_DATE_QUERY_PARAM = "X-Amz-Date", SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders", EXPIRES_QUERY_PARAM = "X-Amz-Expires", SIGNATURE_QUERY_PARAM = "X-Amz-Signature", TOKEN_QUERY_PARAM = "X-Amz-Security-Token", AUTH_HEADER = "authorization", AMZ_DATE_HEADER, DATE_HEADER = "date", GENERATED_HEADERS, SIGNATURE_HEADER, SHA256_HEADER = "x-amz-content-sha256", TOKEN_HEADER, ALWAYS_UNSIGNABLE_HEADERS, PROXY_HEADER_PATTERN, SEC_HEADER_PATTERN, ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256", EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD", UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD", MAX_CACHE_SIZE = 50, KEY_TYPE_IDENTIFIER = "aws4_request", MAX_PRESIGNED_TTL;
|
|
171888
|
+
var init_constants3 = __esm(() => {
|
|
171889
|
+
AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase();
|
|
171890
|
+
GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER];
|
|
171891
|
+
SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase();
|
|
171892
|
+
TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase();
|
|
171893
|
+
ALWAYS_UNSIGNABLE_HEADERS = {
|
|
171894
|
+
authorization: true,
|
|
171895
|
+
"cache-control": true,
|
|
171896
|
+
connection: true,
|
|
171897
|
+
expect: true,
|
|
171898
|
+
from: true,
|
|
171899
|
+
"keep-alive": true,
|
|
171900
|
+
"max-forwards": true,
|
|
171901
|
+
pragma: true,
|
|
171902
|
+
referer: true,
|
|
171903
|
+
te: true,
|
|
171904
|
+
trailer: true,
|
|
171905
|
+
"transfer-encoding": true,
|
|
171906
|
+
upgrade: true,
|
|
171907
|
+
"user-agent": true,
|
|
171908
|
+
"x-amzn-trace-id": true
|
|
171909
|
+
};
|
|
171910
|
+
PROXY_HEADER_PATTERN = /^proxy-/;
|
|
171911
|
+
SEC_HEADER_PATTERN = /^sec-/;
|
|
171912
|
+
MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
|
|
171913
|
+
});
|
|
171914
|
+
|
|
171915
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
|
|
171916
|
+
var import_util_hex_encoding2, signingKeyCache, cacheQueue, createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => {
|
|
171917
|
+
const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId);
|
|
171918
|
+
const cacheKey = `${shortDate}:${region}:${service}:${import_util_hex_encoding2.toHex(credsHash)}:${credentials.sessionToken}`;
|
|
171919
|
+
if (cacheKey in signingKeyCache) {
|
|
171920
|
+
return signingKeyCache[cacheKey];
|
|
171921
|
+
}
|
|
171922
|
+
cacheQueue.push(cacheKey);
|
|
171923
|
+
while (cacheQueue.length > MAX_CACHE_SIZE) {
|
|
171924
|
+
delete signingKeyCache[cacheQueue.shift()];
|
|
171925
|
+
}
|
|
171926
|
+
let key2 = `AWS4${credentials.secretAccessKey}`;
|
|
171927
|
+
for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) {
|
|
171928
|
+
key2 = await hmac(sha256Constructor, key2, signable);
|
|
171929
|
+
}
|
|
171930
|
+
return signingKeyCache[cacheKey] = key2;
|
|
171931
|
+
}, hmac = (ctor, secret, data2) => {
|
|
171932
|
+
const hash3 = new ctor(secret);
|
|
171933
|
+
hash3.update(toUint8Array2(data2));
|
|
171934
|
+
return hash3.digest();
|
|
171935
|
+
};
|
|
171936
|
+
var init_credentialDerivation = __esm(() => {
|
|
171937
|
+
import_util_hex_encoding2 = __toESM(require_dist_cjs13(), 1);
|
|
171938
|
+
init_dist_es6();
|
|
171939
|
+
init_constants3();
|
|
171940
|
+
signingKeyCache = {};
|
|
171941
|
+
cacheQueue = [];
|
|
171942
|
+
});
|
|
171943
|
+
|
|
171944
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
|
|
171945
|
+
var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
|
|
171946
|
+
const canonical = {};
|
|
171947
|
+
for (const headerName of Object.keys(headers).sort()) {
|
|
171948
|
+
if (headers[headerName] == undefined) {
|
|
171949
|
+
continue;
|
|
171950
|
+
}
|
|
171951
|
+
const canonicalHeaderName = headerName.toLowerCase();
|
|
171952
|
+
if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) {
|
|
171953
|
+
if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) {
|
|
171954
|
+
continue;
|
|
171955
|
+
}
|
|
171956
|
+
}
|
|
171957
|
+
canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " ");
|
|
171958
|
+
}
|
|
171959
|
+
return canonical;
|
|
171960
|
+
};
|
|
171961
|
+
var init_getCanonicalHeaders = __esm(() => {
|
|
171962
|
+
init_constants3();
|
|
171963
|
+
});
|
|
171964
|
+
|
|
171965
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
|
|
171966
|
+
var getCanonicalQuery = ({ query = {} }) => {
|
|
171967
|
+
const keys2 = [];
|
|
171968
|
+
const serialized = {};
|
|
171969
|
+
for (const key2 of Object.keys(query)) {
|
|
171970
|
+
if (key2.toLowerCase() === SIGNATURE_HEADER) {
|
|
171971
|
+
continue;
|
|
171972
|
+
}
|
|
171973
|
+
const encodedKey = escapeUri(key2);
|
|
171974
|
+
keys2.push(encodedKey);
|
|
171975
|
+
const value = query[key2];
|
|
171976
|
+
if (typeof value === "string") {
|
|
171977
|
+
serialized[encodedKey] = `${encodedKey}=${escapeUri(value)}`;
|
|
171978
|
+
} else if (Array.isArray(value)) {
|
|
171979
|
+
serialized[encodedKey] = value.slice(0).reduce((encoded, value2) => encoded.concat([`${encodedKey}=${escapeUri(value2)}`]), []).sort().join("&");
|
|
171980
|
+
}
|
|
171981
|
+
}
|
|
171982
|
+
return keys2.sort().map((key2) => serialized[key2]).filter((serialized2) => serialized2).join("&");
|
|
171983
|
+
};
|
|
171984
|
+
var init_getCanonicalQuery = __esm(() => {
|
|
171985
|
+
init_dist_es8();
|
|
171986
|
+
init_constants3();
|
|
171987
|
+
});
|
|
171988
|
+
|
|
171989
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
|
|
171990
|
+
var import_util_hex_encoding3, getPayloadHash = async ({ headers, body }, hashConstructor) => {
|
|
171991
|
+
for (const headerName of Object.keys(headers)) {
|
|
171992
|
+
if (headerName.toLowerCase() === SHA256_HEADER) {
|
|
171993
|
+
return headers[headerName];
|
|
171994
|
+
}
|
|
171995
|
+
}
|
|
171996
|
+
if (body == undefined) {
|
|
171997
|
+
return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
|
|
171998
|
+
} else if (typeof body === "string" || ArrayBuffer.isView(body) || isArrayBuffer(body)) {
|
|
171999
|
+
const hashCtor = new hashConstructor;
|
|
172000
|
+
hashCtor.update(toUint8Array2(body));
|
|
172001
|
+
return import_util_hex_encoding3.toHex(await hashCtor.digest());
|
|
172002
|
+
}
|
|
172003
|
+
return UNSIGNED_PAYLOAD;
|
|
172004
|
+
};
|
|
172005
|
+
var init_getPayloadHash = __esm(() => {
|
|
172006
|
+
import_util_hex_encoding3 = __toESM(require_dist_cjs13(), 1);
|
|
172007
|
+
init_dist_es6();
|
|
172008
|
+
init_constants3();
|
|
172009
|
+
});
|
|
172010
|
+
|
|
172011
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
|
|
172012
|
+
class HeaderFormatter {
|
|
172013
|
+
format(headers) {
|
|
172014
|
+
const chunks = [];
|
|
172015
|
+
for (const headerName of Object.keys(headers)) {
|
|
172016
|
+
const bytes = fromUtf84(headerName);
|
|
172017
|
+
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
172018
|
+
}
|
|
172019
|
+
const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
|
|
172020
|
+
let position = 0;
|
|
172021
|
+
for (const chunk of chunks) {
|
|
172022
|
+
out.set(chunk, position);
|
|
172023
|
+
position += chunk.byteLength;
|
|
172024
|
+
}
|
|
172025
|
+
return out;
|
|
172026
|
+
}
|
|
172027
|
+
formatHeaderValue(header) {
|
|
172028
|
+
switch (header.type) {
|
|
172029
|
+
case "boolean":
|
|
172030
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
172031
|
+
case "byte":
|
|
172032
|
+
return Uint8Array.from([2, header.value]);
|
|
172033
|
+
case "short":
|
|
172034
|
+
const shortView = new DataView(new ArrayBuffer(3));
|
|
172035
|
+
shortView.setUint8(0, 3);
|
|
172036
|
+
shortView.setInt16(1, header.value, false);
|
|
172037
|
+
return new Uint8Array(shortView.buffer);
|
|
172038
|
+
case "integer":
|
|
172039
|
+
const intView = new DataView(new ArrayBuffer(5));
|
|
172040
|
+
intView.setUint8(0, 4);
|
|
172041
|
+
intView.setInt32(1, header.value, false);
|
|
172042
|
+
return new Uint8Array(intView.buffer);
|
|
172043
|
+
case "long":
|
|
172044
|
+
const longBytes = new Uint8Array(9);
|
|
172045
|
+
longBytes[0] = 5;
|
|
172046
|
+
longBytes.set(header.value.bytes, 1);
|
|
172047
|
+
return longBytes;
|
|
172048
|
+
case "binary":
|
|
172049
|
+
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
172050
|
+
binView.setUint8(0, 6);
|
|
172051
|
+
binView.setUint16(1, header.value.byteLength, false);
|
|
172052
|
+
const binBytes = new Uint8Array(binView.buffer);
|
|
172053
|
+
binBytes.set(header.value, 3);
|
|
172054
|
+
return binBytes;
|
|
172055
|
+
case "string":
|
|
172056
|
+
const utf8Bytes = fromUtf84(header.value);
|
|
172057
|
+
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
172058
|
+
strView.setUint8(0, 7);
|
|
172059
|
+
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
172060
|
+
const strBytes = new Uint8Array(strView.buffer);
|
|
172061
|
+
strBytes.set(utf8Bytes, 3);
|
|
172062
|
+
return strBytes;
|
|
172063
|
+
case "timestamp":
|
|
172064
|
+
const tsBytes = new Uint8Array(9);
|
|
172065
|
+
tsBytes[0] = 8;
|
|
172066
|
+
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
172067
|
+
return tsBytes;
|
|
172068
|
+
case "uuid":
|
|
172069
|
+
if (!UUID_PATTERN.test(header.value)) {
|
|
172070
|
+
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
172071
|
+
}
|
|
172072
|
+
const uuidBytes = new Uint8Array(17);
|
|
172073
|
+
uuidBytes[0] = 9;
|
|
172074
|
+
uuidBytes.set(import_util_hex_encoding4.fromHex(header.value.replace(/\-/g, "")), 1);
|
|
172075
|
+
return uuidBytes;
|
|
172076
|
+
}
|
|
172077
|
+
}
|
|
172078
|
+
}
|
|
172079
|
+
|
|
172080
|
+
class Int64 {
|
|
172081
|
+
constructor(bytes) {
|
|
172082
|
+
this.bytes = bytes;
|
|
172083
|
+
if (bytes.byteLength !== 8) {
|
|
172084
|
+
throw new Error("Int64 buffers must be exactly 8 bytes");
|
|
172085
|
+
}
|
|
172086
|
+
}
|
|
172087
|
+
static fromNumber(number) {
|
|
172088
|
+
if (number > 9223372036854776000 || number < -9223372036854776000) {
|
|
172089
|
+
throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
|
|
172090
|
+
}
|
|
172091
|
+
const bytes = new Uint8Array(8);
|
|
172092
|
+
for (let i4 = 7, remaining = Math.abs(Math.round(number));i4 > -1 && remaining > 0; i4--, remaining /= 256) {
|
|
172093
|
+
bytes[i4] = remaining;
|
|
172094
|
+
}
|
|
172095
|
+
if (number < 0) {
|
|
172096
|
+
negate(bytes);
|
|
172097
|
+
}
|
|
172098
|
+
return new Int64(bytes);
|
|
172099
|
+
}
|
|
172100
|
+
valueOf() {
|
|
172101
|
+
const bytes = this.bytes.slice(0);
|
|
172102
|
+
const negative = bytes[0] & 128;
|
|
172103
|
+
if (negative) {
|
|
172104
|
+
negate(bytes);
|
|
172105
|
+
}
|
|
172106
|
+
return parseInt(import_util_hex_encoding4.toHex(bytes), 16) * (negative ? -1 : 1);
|
|
172107
|
+
}
|
|
172108
|
+
toString() {
|
|
172109
|
+
return String(this.valueOf());
|
|
172110
|
+
}
|
|
172111
|
+
}
|
|
172112
|
+
function negate(bytes) {
|
|
172113
|
+
for (let i4 = 0;i4 < 8; i4++) {
|
|
172114
|
+
bytes[i4] ^= 255;
|
|
172115
|
+
}
|
|
172116
|
+
for (let i4 = 7;i4 > -1; i4--) {
|
|
172117
|
+
bytes[i4]++;
|
|
172118
|
+
if (bytes[i4] !== 0)
|
|
172119
|
+
break;
|
|
172120
|
+
}
|
|
172121
|
+
}
|
|
172122
|
+
var import_util_hex_encoding4, HEADER_VALUE_TYPE, UUID_PATTERN;
|
|
172123
|
+
var init_HeaderFormatter = __esm(() => {
|
|
172124
|
+
import_util_hex_encoding4 = __toESM(require_dist_cjs13(), 1);
|
|
172125
|
+
init_dist_es6();
|
|
172126
|
+
(function(HEADER_VALUE_TYPE2) {
|
|
172127
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolTrue"] = 0] = "boolTrue";
|
|
172128
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolFalse"] = 1] = "boolFalse";
|
|
172129
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byte"] = 2] = "byte";
|
|
172130
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["short"] = 3] = "short";
|
|
172131
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["integer"] = 4] = "integer";
|
|
172132
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["long"] = 5] = "long";
|
|
172133
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byteArray"] = 6] = "byteArray";
|
|
172134
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["string"] = 7] = "string";
|
|
172135
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["timestamp"] = 8] = "timestamp";
|
|
172136
|
+
HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["uuid"] = 9] = "uuid";
|
|
172137
|
+
})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
|
|
172138
|
+
UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
|
172139
|
+
});
|
|
172140
|
+
|
|
172141
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/headerUtil.js
|
|
172142
|
+
var hasHeader2 = (soughtHeader, headers) => {
|
|
172143
|
+
soughtHeader = soughtHeader.toLowerCase();
|
|
172144
|
+
for (const headerName of Object.keys(headers)) {
|
|
172145
|
+
if (soughtHeader === headerName.toLowerCase()) {
|
|
172146
|
+
return true;
|
|
172147
|
+
}
|
|
172148
|
+
}
|
|
172149
|
+
return false;
|
|
172150
|
+
};
|
|
172151
|
+
|
|
172152
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
|
|
172153
|
+
var moveHeadersToQuery = (request4, options2 = {}) => {
|
|
172154
|
+
const { headers, query = {} } = HttpRequest.clone(request4);
|
|
172155
|
+
for (const name of Object.keys(headers)) {
|
|
172156
|
+
const lname = name.toLowerCase();
|
|
172157
|
+
if (lname.slice(0, 6) === "x-amz-" && !options2.unhoistableHeaders?.has(lname) || options2.hoistableHeaders?.has(lname)) {
|
|
172158
|
+
query[name] = headers[name];
|
|
172159
|
+
delete headers[name];
|
|
172160
|
+
}
|
|
172161
|
+
}
|
|
172162
|
+
return {
|
|
172163
|
+
...request4,
|
|
172164
|
+
headers,
|
|
172165
|
+
query
|
|
172166
|
+
};
|
|
172167
|
+
};
|
|
172168
|
+
var init_moveHeadersToQuery = __esm(() => {
|
|
172169
|
+
init_dist_es();
|
|
172170
|
+
});
|
|
172171
|
+
|
|
172172
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
|
|
172173
|
+
var prepareRequest = (request4) => {
|
|
172174
|
+
request4 = HttpRequest.clone(request4);
|
|
172175
|
+
for (const headerName of Object.keys(request4.headers)) {
|
|
172176
|
+
if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
|
|
172177
|
+
delete request4.headers[headerName];
|
|
172178
|
+
}
|
|
172179
|
+
}
|
|
172180
|
+
return request4;
|
|
172181
|
+
};
|
|
172182
|
+
var init_prepareRequest = __esm(() => {
|
|
172183
|
+
init_dist_es();
|
|
172184
|
+
init_constants3();
|
|
172185
|
+
});
|
|
172186
|
+
|
|
172187
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/utilDate.js
|
|
172188
|
+
var iso86012 = (time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z"), toDate = (time) => {
|
|
172189
|
+
if (typeof time === "number") {
|
|
172190
|
+
return new Date(time * 1000);
|
|
172191
|
+
}
|
|
172192
|
+
if (typeof time === "string") {
|
|
172193
|
+
if (Number(time)) {
|
|
172194
|
+
return new Date(Number(time) * 1000);
|
|
172195
|
+
}
|
|
172196
|
+
return new Date(time);
|
|
172197
|
+
}
|
|
172198
|
+
return time;
|
|
172199
|
+
};
|
|
172200
|
+
|
|
172201
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
|
|
172202
|
+
class SignatureV4 {
|
|
172203
|
+
constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
|
|
172204
|
+
this.headerFormatter = new HeaderFormatter;
|
|
172205
|
+
this.service = service;
|
|
172206
|
+
this.sha256 = sha256;
|
|
172207
|
+
this.uriEscapePath = uriEscapePath;
|
|
172208
|
+
this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true;
|
|
172209
|
+
this.regionProvider = normalizeProvider(region);
|
|
172210
|
+
this.credentialProvider = normalizeProvider(credentials);
|
|
172211
|
+
}
|
|
172212
|
+
async presign(originalRequest, options2 = {}) {
|
|
172213
|
+
const { signingDate = new Date, expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, hoistableHeaders, signingRegion, signingService } = options2;
|
|
172214
|
+
const credentials = await this.credentialProvider();
|
|
172215
|
+
this.validateResolvedCredentials(credentials);
|
|
172216
|
+
const region = signingRegion ?? await this.regionProvider();
|
|
172217
|
+
const { longDate, shortDate } = formatDate(signingDate);
|
|
172218
|
+
if (expiresIn > MAX_PRESIGNED_TTL) {
|
|
172219
|
+
return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future");
|
|
172220
|
+
}
|
|
172221
|
+
const scope = createScope(shortDate, region, signingService ?? this.service);
|
|
172222
|
+
const request4 = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders });
|
|
172223
|
+
if (credentials.sessionToken) {
|
|
172224
|
+
request4.query[TOKEN_QUERY_PARAM] = credentials.sessionToken;
|
|
172225
|
+
}
|
|
172226
|
+
request4.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER;
|
|
172227
|
+
request4.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`;
|
|
172228
|
+
request4.query[AMZ_DATE_QUERY_PARAM] = longDate;
|
|
172229
|
+
request4.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10);
|
|
172230
|
+
const canonicalHeaders = getCanonicalHeaders(request4, unsignableHeaders, signableHeaders);
|
|
172231
|
+
request4.query[SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders);
|
|
172232
|
+
request4.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request4, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256)));
|
|
172233
|
+
return request4;
|
|
172234
|
+
}
|
|
172235
|
+
async sign(toSign, options2) {
|
|
172236
|
+
if (typeof toSign === "string") {
|
|
172237
|
+
return this.signString(toSign, options2);
|
|
172238
|
+
} else if (toSign.headers && toSign.payload) {
|
|
172239
|
+
return this.signEvent(toSign, options2);
|
|
172240
|
+
} else if (toSign.message) {
|
|
172241
|
+
return this.signMessage(toSign, options2);
|
|
172242
|
+
} else {
|
|
172243
|
+
return this.signRequest(toSign, options2);
|
|
172244
|
+
}
|
|
172245
|
+
}
|
|
172246
|
+
async signEvent({ headers, payload }, { signingDate = new Date, priorSignature, signingRegion, signingService }) {
|
|
172247
|
+
const region = signingRegion ?? await this.regionProvider();
|
|
172248
|
+
const { shortDate, longDate } = formatDate(signingDate);
|
|
172249
|
+
const scope = createScope(shortDate, region, signingService ?? this.service);
|
|
172250
|
+
const hashedPayload = await getPayloadHash({ headers: {}, body: payload }, this.sha256);
|
|
172251
|
+
const hash3 = new this.sha256;
|
|
172252
|
+
hash3.update(headers);
|
|
172253
|
+
const hashedHeaders = import_util_hex_encoding5.toHex(await hash3.digest());
|
|
172254
|
+
const stringToSign = [
|
|
172255
|
+
EVENT_ALGORITHM_IDENTIFIER,
|
|
172256
|
+
longDate,
|
|
172257
|
+
scope,
|
|
172258
|
+
priorSignature,
|
|
172259
|
+
hashedHeaders,
|
|
172260
|
+
hashedPayload
|
|
172261
|
+
].join(`
|
|
172262
|
+
`);
|
|
172263
|
+
return this.signString(stringToSign, { signingDate, signingRegion: region, signingService });
|
|
172264
|
+
}
|
|
172265
|
+
async signMessage(signableMessage, { signingDate = new Date, signingRegion, signingService }) {
|
|
172266
|
+
const promise3 = this.signEvent({
|
|
172267
|
+
headers: this.headerFormatter.format(signableMessage.message.headers),
|
|
172268
|
+
payload: signableMessage.message.body
|
|
172269
|
+
}, {
|
|
172270
|
+
signingDate,
|
|
172271
|
+
signingRegion,
|
|
172272
|
+
signingService,
|
|
172273
|
+
priorSignature: signableMessage.priorSignature
|
|
172274
|
+
});
|
|
172275
|
+
return promise3.then((signature) => {
|
|
172276
|
+
return { message: signableMessage.message, signature };
|
|
172277
|
+
});
|
|
172278
|
+
}
|
|
172279
|
+
async signString(stringToSign, { signingDate = new Date, signingRegion, signingService } = {}) {
|
|
172280
|
+
const credentials = await this.credentialProvider();
|
|
172281
|
+
this.validateResolvedCredentials(credentials);
|
|
172282
|
+
const region = signingRegion ?? await this.regionProvider();
|
|
172283
|
+
const { shortDate } = formatDate(signingDate);
|
|
172284
|
+
const hash3 = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService));
|
|
172285
|
+
hash3.update(toUint8Array2(stringToSign));
|
|
172286
|
+
return import_util_hex_encoding5.toHex(await hash3.digest());
|
|
172287
|
+
}
|
|
172288
|
+
async signRequest(requestToSign, { signingDate = new Date, signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) {
|
|
172289
|
+
const credentials = await this.credentialProvider();
|
|
172290
|
+
this.validateResolvedCredentials(credentials);
|
|
172291
|
+
const region = signingRegion ?? await this.regionProvider();
|
|
172292
|
+
const request4 = prepareRequest(requestToSign);
|
|
172293
|
+
const { longDate, shortDate } = formatDate(signingDate);
|
|
172294
|
+
const scope = createScope(shortDate, region, signingService ?? this.service);
|
|
172295
|
+
request4.headers[AMZ_DATE_HEADER] = longDate;
|
|
172296
|
+
if (credentials.sessionToken) {
|
|
172297
|
+
request4.headers[TOKEN_HEADER] = credentials.sessionToken;
|
|
172298
|
+
}
|
|
172299
|
+
const payloadHash = await getPayloadHash(request4, this.sha256);
|
|
172300
|
+
if (!hasHeader2(SHA256_HEADER, request4.headers) && this.applyChecksum) {
|
|
172301
|
+
request4.headers[SHA256_HEADER] = payloadHash;
|
|
172302
|
+
}
|
|
172303
|
+
const canonicalHeaders = getCanonicalHeaders(request4, unsignableHeaders, signableHeaders);
|
|
172304
|
+
const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request4, canonicalHeaders, payloadHash));
|
|
172305
|
+
request4.headers[AUTH_HEADER] = `${ALGORITHM_IDENTIFIER} ` + `Credential=${credentials.accessKeyId}/${scope}, ` + `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + `Signature=${signature}`;
|
|
172306
|
+
return request4;
|
|
172307
|
+
}
|
|
172308
|
+
createCanonicalRequest(request4, canonicalHeaders, payloadHash) {
|
|
172309
|
+
const sortedHeaders = Object.keys(canonicalHeaders).sort();
|
|
172310
|
+
return `${request4.method}
|
|
172311
|
+
${this.getCanonicalPath(request4)}
|
|
172312
|
+
${getCanonicalQuery(request4)}
|
|
172313
|
+
${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join(`
|
|
172314
|
+
`)}
|
|
172315
|
+
|
|
172316
|
+
${sortedHeaders.join(";")}
|
|
172317
|
+
${payloadHash}`;
|
|
172318
|
+
}
|
|
172319
|
+
async createStringToSign(longDate, credentialScope, canonicalRequest) {
|
|
172320
|
+
const hash3 = new this.sha256;
|
|
172321
|
+
hash3.update(toUint8Array2(canonicalRequest));
|
|
172322
|
+
const hashedRequest = await hash3.digest();
|
|
172323
|
+
return `${ALGORITHM_IDENTIFIER}
|
|
172324
|
+
${longDate}
|
|
172325
|
+
${credentialScope}
|
|
172326
|
+
${import_util_hex_encoding5.toHex(hashedRequest)}`;
|
|
172327
|
+
}
|
|
172328
|
+
getCanonicalPath({ path: path4 }) {
|
|
172329
|
+
if (this.uriEscapePath) {
|
|
172330
|
+
const normalizedPathSegments = [];
|
|
172331
|
+
for (const pathSegment of path4.split("/")) {
|
|
172332
|
+
if (pathSegment?.length === 0)
|
|
172333
|
+
continue;
|
|
172334
|
+
if (pathSegment === ".")
|
|
172335
|
+
continue;
|
|
172336
|
+
if (pathSegment === "..") {
|
|
172337
|
+
normalizedPathSegments.pop();
|
|
172338
|
+
} else {
|
|
172339
|
+
normalizedPathSegments.push(pathSegment);
|
|
172340
|
+
}
|
|
172341
|
+
}
|
|
172342
|
+
const normalizedPath = `${path4?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path4?.endsWith("/") ? "/" : ""}`;
|
|
172343
|
+
const doubleEncoded = escapeUri(normalizedPath);
|
|
172344
|
+
return doubleEncoded.replace(/%2F/g, "/");
|
|
172345
|
+
}
|
|
172346
|
+
return path4;
|
|
172347
|
+
}
|
|
172348
|
+
async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
|
|
172349
|
+
const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
|
|
172350
|
+
const hash3 = new this.sha256(await keyPromise);
|
|
172351
|
+
hash3.update(toUint8Array2(stringToSign));
|
|
172352
|
+
return import_util_hex_encoding5.toHex(await hash3.digest());
|
|
172353
|
+
}
|
|
172354
|
+
getSigningKey(credentials, region, shortDate, service) {
|
|
172355
|
+
return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service);
|
|
172356
|
+
}
|
|
172357
|
+
validateResolvedCredentials(credentials) {
|
|
172358
|
+
if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
|
|
172359
|
+
throw new Error("Resolved credential object is not valid");
|
|
172360
|
+
}
|
|
172361
|
+
}
|
|
172362
|
+
}
|
|
172363
|
+
var import_util_hex_encoding5, formatDate = (now2) => {
|
|
172364
|
+
const longDate = iso86012(now2).replace(/[\-:]/g, "");
|
|
172365
|
+
return {
|
|
172366
|
+
longDate,
|
|
172367
|
+
shortDate: longDate.slice(0, 8)
|
|
172368
|
+
};
|
|
172369
|
+
}, getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";");
|
|
172370
|
+
var init_SignatureV4 = __esm(() => {
|
|
172371
|
+
import_util_hex_encoding5 = __toESM(require_dist_cjs13(), 1);
|
|
172372
|
+
init_dist_es12();
|
|
172373
|
+
init_dist_es8();
|
|
172374
|
+
init_dist_es6();
|
|
172375
|
+
init_constants3();
|
|
172376
|
+
init_credentialDerivation();
|
|
172377
|
+
init_getCanonicalHeaders();
|
|
172378
|
+
init_getCanonicalQuery();
|
|
172379
|
+
init_getPayloadHash();
|
|
172380
|
+
init_HeaderFormatter();
|
|
172381
|
+
init_moveHeadersToQuery();
|
|
172382
|
+
init_prepareRequest();
|
|
172383
|
+
});
|
|
172384
|
+
|
|
172385
|
+
// ../../../../node_modules/@smithy/signature-v4/dist-es/index.js
|
|
172386
|
+
var init_dist_es19 = __esm(() => {
|
|
172387
|
+
init_SignatureV4();
|
|
172388
|
+
init_getCanonicalHeaders();
|
|
172389
|
+
init_getCanonicalQuery();
|
|
172390
|
+
init_getPayloadHash();
|
|
172391
|
+
init_moveHeadersToQuery();
|
|
172392
|
+
init_prepareRequest();
|
|
172393
|
+
init_credentialDerivation();
|
|
172394
|
+
});
|
|
172395
|
+
|
|
171886
172396
|
// ../../../../node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
|
|
171887
172397
|
var booleanSelector = (obj, key2, type2) => {
|
|
171888
172398
|
if (!(key2 in obj))
|
|
@@ -171903,14 +172413,14 @@ var init_types6 = __esm(() => {
|
|
|
171903
172413
|
});
|
|
171904
172414
|
|
|
171905
172415
|
// ../../../../node_modules/@smithy/util-config-provider/dist-es/index.js
|
|
171906
|
-
var
|
|
172416
|
+
var init_dist_es20 = __esm(() => {
|
|
171907
172417
|
init_types6();
|
|
171908
172418
|
});
|
|
171909
172419
|
|
|
171910
172420
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js
|
|
171911
172421
|
var S3_EXPRESS_BUCKET_TYPE = "Directory", S3_EXPRESS_BACKEND = "S3Express", S3_EXPRESS_AUTH_SCHEME = "sigv4-s3express", SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token", SESSION_TOKEN_HEADER, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH", NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME = "s3_disable_express_session_auth", NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS;
|
|
171912
|
-
var
|
|
171913
|
-
|
|
172422
|
+
var init_constants4 = __esm(() => {
|
|
172423
|
+
init_dist_es20();
|
|
171914
172424
|
SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
|
|
171915
172425
|
NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS = {
|
|
171916
172426
|
environmentVariableSelector: (env6) => booleanSelector(env6, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME, SelectorType2.ENV),
|
|
@@ -171940,11 +172450,11 @@ function setSingleOverride(privateAccess, credentialsWithoutSessionToken) {
|
|
|
171940
172450
|
};
|
|
171941
172451
|
privateAccess.credentialProvider = overrideCredentialsProviderOnce;
|
|
171942
172452
|
}
|
|
171943
|
-
var
|
|
172453
|
+
var SignatureV4S3Express;
|
|
171944
172454
|
var init_SignatureV4S3Express = __esm(() => {
|
|
171945
|
-
|
|
171946
|
-
|
|
171947
|
-
SignatureV4S3Express = class SignatureV4S3Express extends
|
|
172455
|
+
init_dist_es19();
|
|
172456
|
+
init_constants4();
|
|
172457
|
+
SignatureV4S3Express = class SignatureV4S3Express extends SignatureV4 {
|
|
171948
172458
|
async signWithCredentials(requestToSign, credentials, options2) {
|
|
171949
172459
|
const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
|
|
171950
172460
|
requestToSign.headers[SESSION_TOKEN_HEADER] = credentials.sessionToken;
|
|
@@ -171999,7 +172509,7 @@ var import_core5, s3ExpressMiddleware = (options2) => {
|
|
|
171999
172509
|
var init_s3ExpressMiddleware = __esm(() => {
|
|
172000
172510
|
import_core5 = __toESM(require_dist_cjs20(), 1);
|
|
172001
172511
|
init_dist_es();
|
|
172002
|
-
|
|
172512
|
+
init_constants4();
|
|
172003
172513
|
s3ExpressMiddlewareOptions = {
|
|
172004
172514
|
name: "s3ExpressMiddleware",
|
|
172005
172515
|
step: "build",
|
|
@@ -172058,7 +172568,7 @@ var init_s3ExpressHttpSigningMiddleware = __esm(() => {
|
|
|
172058
172568
|
var init_s3_express = __esm(() => {
|
|
172059
172569
|
init_S3ExpressIdentityProviderImpl();
|
|
172060
172570
|
init_SignatureV4S3Express();
|
|
172061
|
-
|
|
172571
|
+
init_constants4();
|
|
172062
172572
|
init_s3ExpressMiddleware();
|
|
172063
172573
|
init_s3ExpressHttpSigningMiddleware();
|
|
172064
172574
|
});
|
|
@@ -172219,7 +172729,7 @@ var init_validate_bucket_name = __esm(() => {
|
|
|
172219
172729
|
});
|
|
172220
172730
|
|
|
172221
172731
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js
|
|
172222
|
-
var
|
|
172732
|
+
var init_dist_es21 = __esm(() => {
|
|
172223
172733
|
init_check_content_length_header();
|
|
172224
172734
|
init_region_redirect_endpoint_middleware();
|
|
172225
172735
|
init_region_redirect_middleware();
|
|
@@ -172864,7 +173374,7 @@ var init_resolveEndpoint = __esm(() => {
|
|
|
172864
173374
|
});
|
|
172865
173375
|
|
|
172866
173376
|
// ../../../../node_modules/@smithy/util-endpoints/dist-es/index.js
|
|
172867
|
-
var
|
|
173377
|
+
var init_dist_es22 = __esm(() => {
|
|
172868
173378
|
init_isIpAddress();
|
|
172869
173379
|
init_isValidHostLabel();
|
|
172870
173380
|
init_customEndpointFunctions();
|
|
@@ -172874,7 +173384,7 @@ var init_dist_es21 = __esm(() => {
|
|
|
172874
173384
|
|
|
172875
173385
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js
|
|
172876
173386
|
var init_isIpAddress2 = __esm(() => {
|
|
172877
|
-
|
|
173387
|
+
init_dist_es22();
|
|
172878
173388
|
});
|
|
172879
173389
|
|
|
172880
173390
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
|
|
@@ -172902,7 +173412,7 @@ var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
|
172902
173412
|
return true;
|
|
172903
173413
|
};
|
|
172904
173414
|
var init_isVirtualHostableS3Bucket = __esm(() => {
|
|
172905
|
-
|
|
173415
|
+
init_dist_es22();
|
|
172906
173416
|
init_isIpAddress2();
|
|
172907
173417
|
});
|
|
172908
173418
|
|
|
@@ -173196,7 +173706,7 @@ var init_partition = __esm(() => {
|
|
|
173196
173706
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
|
|
173197
173707
|
var awsEndpointFunctions;
|
|
173198
173708
|
var init_aws = __esm(() => {
|
|
173199
|
-
|
|
173709
|
+
init_dist_es22();
|
|
173200
173710
|
init_isVirtualHostableS3Bucket();
|
|
173201
173711
|
init_partition();
|
|
173202
173712
|
awsEndpointFunctions = {
|
|
@@ -173209,12 +173719,12 @@ var init_aws = __esm(() => {
|
|
|
173209
173719
|
|
|
173210
173720
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js
|
|
173211
173721
|
var init_resolveEndpoint2 = __esm(() => {
|
|
173212
|
-
|
|
173722
|
+
init_dist_es22();
|
|
173213
173723
|
});
|
|
173214
173724
|
|
|
173215
173725
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js
|
|
173216
173726
|
var init_EndpointError2 = __esm(() => {
|
|
173217
|
-
|
|
173727
|
+
init_dist_es22();
|
|
173218
173728
|
});
|
|
173219
173729
|
|
|
173220
173730
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js
|
|
@@ -173243,7 +173753,7 @@ var init_types8 = __esm(() => {
|
|
|
173243
173753
|
});
|
|
173244
173754
|
|
|
173245
173755
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints/dist-es/index.js
|
|
173246
|
-
var
|
|
173756
|
+
var init_dist_es23 = __esm(() => {
|
|
173247
173757
|
init_aws();
|
|
173248
173758
|
init_partition();
|
|
173249
173759
|
init_isIpAddress2();
|
|
@@ -173305,7 +173815,7 @@ var init_check_features = __esm(() => {
|
|
|
173305
173815
|
|
|
173306
173816
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
|
|
173307
173817
|
var USER_AGENT = "user-agent", X_AMZ_USER_AGENT = "x-amz-user-agent", SPACE = " ", UA_NAME_SEPARATOR = "/", UA_NAME_ESCAPE_REGEX, UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR = "-";
|
|
173308
|
-
var
|
|
173818
|
+
var init_constants5 = __esm(() => {
|
|
173309
173819
|
UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
|
|
173310
173820
|
UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;
|
|
173311
173821
|
});
|
|
@@ -173389,10 +173899,10 @@ var userAgentMiddleware = (options2) => (next, context) => async (args) => {
|
|
|
173389
173899
|
}
|
|
173390
173900
|
});
|
|
173391
173901
|
var init_user_agent_middleware = __esm(() => {
|
|
173392
|
-
|
|
173902
|
+
init_dist_es23();
|
|
173393
173903
|
init_dist_es();
|
|
173394
173904
|
init_check_features();
|
|
173395
|
-
|
|
173905
|
+
init_constants5();
|
|
173396
173906
|
getUserAgentMiddlewareOptions = {
|
|
173397
173907
|
name: "getUserAgentMiddleware",
|
|
173398
173908
|
step: "build",
|
|
@@ -173403,7 +173913,7 @@ var init_user_agent_middleware = __esm(() => {
|
|
|
173403
173913
|
});
|
|
173404
173914
|
|
|
173405
173915
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js
|
|
173406
|
-
var
|
|
173916
|
+
var init_dist_es24 = __esm(() => {
|
|
173407
173917
|
init_configurations();
|
|
173408
173918
|
init_user_agent_middleware();
|
|
173409
173919
|
});
|
|
@@ -173411,7 +173921,7 @@ var init_dist_es23 = __esm(() => {
|
|
|
173411
173921
|
// ../../../../node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
173412
173922
|
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT", CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint", NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS;
|
|
173413
173923
|
var init_NodeUseDualstackEndpointConfigOptions = __esm(() => {
|
|
173414
|
-
|
|
173924
|
+
init_dist_es20();
|
|
173415
173925
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
173416
173926
|
environmentVariableSelector: (env6) => booleanSelector(env6, ENV_USE_DUALSTACK_ENDPOINT, SelectorType2.ENV),
|
|
173417
173927
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType2.CONFIG),
|
|
@@ -173422,7 +173932,7 @@ var init_NodeUseDualstackEndpointConfigOptions = __esm(() => {
|
|
|
173422
173932
|
// ../../../../node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
|
|
173423
173933
|
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT", CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint", NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS;
|
|
173424
173934
|
var init_NodeUseFipsEndpointConfigOptions = __esm(() => {
|
|
173425
|
-
|
|
173935
|
+
init_dist_es20();
|
|
173426
173936
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
173427
173937
|
environmentVariableSelector: (env6) => booleanSelector(env6, ENV_USE_FIPS_ENDPOINT, SelectorType2.ENV),
|
|
173428
173938
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType2.CONFIG),
|
|
@@ -173519,7 +174029,7 @@ var init_regionInfo = __esm(() => {
|
|
|
173519
174029
|
});
|
|
173520
174030
|
|
|
173521
174031
|
// ../../../../node_modules/@smithy/config-resolver/dist-es/index.js
|
|
173522
|
-
var
|
|
174032
|
+
var init_dist_es25 = __esm(() => {
|
|
173523
174033
|
init_endpointsConfig();
|
|
173524
174034
|
init_regionConfig();
|
|
173525
174035
|
init_regionInfo();
|
|
@@ -173532,7 +174042,7 @@ var resolveEventStreamSerdeConfig = (input) => ({
|
|
|
173532
174042
|
});
|
|
173533
174043
|
|
|
173534
174044
|
// ../../../../node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js
|
|
173535
|
-
var
|
|
174045
|
+
var init_dist_es26 = () => {};
|
|
173536
174046
|
|
|
173537
174047
|
// ../../../../node_modules/@smithy/middleware-content-length/dist-es/index.js
|
|
173538
174048
|
function contentLengthMiddleware(bodyLengthChecker) {
|
|
@@ -173561,7 +174071,7 @@ var CONTENT_LENGTH_HEADER2 = "content-length", contentLengthMiddlewareOptions, g
|
|
|
173561
174071
|
clientStack.add(contentLengthMiddleware(options2.bodyLengthChecker), contentLengthMiddlewareOptions);
|
|
173562
174072
|
}
|
|
173563
174073
|
});
|
|
173564
|
-
var
|
|
174074
|
+
var init_dist_es27 = __esm(() => {
|
|
173565
174075
|
init_dist_es();
|
|
173566
174076
|
contentLengthMiddlewareOptions = {
|
|
173567
174077
|
step: "build",
|
|
@@ -173650,139 +174160,6 @@ var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config5)
|
|
|
173650
174160
|
return configProvider;
|
|
173651
174161
|
};
|
|
173652
174162
|
|
|
173653
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/ProviderError.js
|
|
173654
|
-
var ProviderError;
|
|
173655
|
-
var init_ProviderError = __esm(() => {
|
|
173656
|
-
ProviderError = class ProviderError extends Error {
|
|
173657
|
-
constructor(message, options2 = true) {
|
|
173658
|
-
let logger3;
|
|
173659
|
-
let tryNextLink = true;
|
|
173660
|
-
if (typeof options2 === "boolean") {
|
|
173661
|
-
logger3 = undefined;
|
|
173662
|
-
tryNextLink = options2;
|
|
173663
|
-
} else if (options2 != null && typeof options2 === "object") {
|
|
173664
|
-
logger3 = options2.logger;
|
|
173665
|
-
tryNextLink = options2.tryNextLink ?? true;
|
|
173666
|
-
}
|
|
173667
|
-
super(message);
|
|
173668
|
-
this.name = "ProviderError";
|
|
173669
|
-
this.tryNextLink = tryNextLink;
|
|
173670
|
-
Object.setPrototypeOf(this, ProviderError.prototype);
|
|
173671
|
-
logger3?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
|
|
173672
|
-
}
|
|
173673
|
-
static from(error, options2 = true) {
|
|
173674
|
-
return Object.assign(new this(error.message, options2), error);
|
|
173675
|
-
}
|
|
173676
|
-
};
|
|
173677
|
-
});
|
|
173678
|
-
|
|
173679
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js
|
|
173680
|
-
var CredentialsProviderError;
|
|
173681
|
-
var init_CredentialsProviderError = __esm(() => {
|
|
173682
|
-
init_ProviderError();
|
|
173683
|
-
CredentialsProviderError = class CredentialsProviderError extends ProviderError {
|
|
173684
|
-
constructor(message, options2 = true) {
|
|
173685
|
-
super(message, options2);
|
|
173686
|
-
this.name = "CredentialsProviderError";
|
|
173687
|
-
Object.setPrototypeOf(this, CredentialsProviderError.prototype);
|
|
173688
|
-
}
|
|
173689
|
-
};
|
|
173690
|
-
});
|
|
173691
|
-
|
|
173692
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/TokenProviderError.js
|
|
173693
|
-
var TokenProviderError;
|
|
173694
|
-
var init_TokenProviderError = __esm(() => {
|
|
173695
|
-
init_ProviderError();
|
|
173696
|
-
TokenProviderError = class TokenProviderError extends ProviderError {
|
|
173697
|
-
constructor(message, options2 = true) {
|
|
173698
|
-
super(message, options2);
|
|
173699
|
-
this.name = "TokenProviderError";
|
|
173700
|
-
Object.setPrototypeOf(this, TokenProviderError.prototype);
|
|
173701
|
-
}
|
|
173702
|
-
};
|
|
173703
|
-
});
|
|
173704
|
-
|
|
173705
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/chain.js
|
|
173706
|
-
var chain = (...providers) => async () => {
|
|
173707
|
-
if (providers.length === 0) {
|
|
173708
|
-
throw new ProviderError("No providers in chain");
|
|
173709
|
-
}
|
|
173710
|
-
let lastProviderError;
|
|
173711
|
-
for (const provider of providers) {
|
|
173712
|
-
try {
|
|
173713
|
-
const credentials = await provider();
|
|
173714
|
-
return credentials;
|
|
173715
|
-
} catch (err2) {
|
|
173716
|
-
lastProviderError = err2;
|
|
173717
|
-
if (err2?.tryNextLink) {
|
|
173718
|
-
continue;
|
|
173719
|
-
}
|
|
173720
|
-
throw err2;
|
|
173721
|
-
}
|
|
173722
|
-
}
|
|
173723
|
-
throw lastProviderError;
|
|
173724
|
-
};
|
|
173725
|
-
var init_chain = __esm(() => {
|
|
173726
|
-
init_ProviderError();
|
|
173727
|
-
});
|
|
173728
|
-
|
|
173729
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/fromStatic.js
|
|
173730
|
-
var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
|
|
173731
|
-
|
|
173732
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/memoize.js
|
|
173733
|
-
var memoize2 = (provider, isExpired, requiresRefresh) => {
|
|
173734
|
-
let resolved;
|
|
173735
|
-
let pending;
|
|
173736
|
-
let hasResult;
|
|
173737
|
-
let isConstant = false;
|
|
173738
|
-
const coalesceProvider = async () => {
|
|
173739
|
-
if (!pending) {
|
|
173740
|
-
pending = provider();
|
|
173741
|
-
}
|
|
173742
|
-
try {
|
|
173743
|
-
resolved = await pending;
|
|
173744
|
-
hasResult = true;
|
|
173745
|
-
isConstant = false;
|
|
173746
|
-
} finally {
|
|
173747
|
-
pending = undefined;
|
|
173748
|
-
}
|
|
173749
|
-
return resolved;
|
|
173750
|
-
};
|
|
173751
|
-
if (isExpired === undefined) {
|
|
173752
|
-
return async (options2) => {
|
|
173753
|
-
if (!hasResult || options2?.forceRefresh) {
|
|
173754
|
-
resolved = await coalesceProvider();
|
|
173755
|
-
}
|
|
173756
|
-
return resolved;
|
|
173757
|
-
};
|
|
173758
|
-
}
|
|
173759
|
-
return async (options2) => {
|
|
173760
|
-
if (!hasResult || options2?.forceRefresh) {
|
|
173761
|
-
resolved = await coalesceProvider();
|
|
173762
|
-
}
|
|
173763
|
-
if (isConstant) {
|
|
173764
|
-
return resolved;
|
|
173765
|
-
}
|
|
173766
|
-
if (requiresRefresh && !requiresRefresh(resolved)) {
|
|
173767
|
-
isConstant = true;
|
|
173768
|
-
return resolved;
|
|
173769
|
-
}
|
|
173770
|
-
if (isExpired(resolved)) {
|
|
173771
|
-
await coalesceProvider();
|
|
173772
|
-
return resolved;
|
|
173773
|
-
}
|
|
173774
|
-
return resolved;
|
|
173775
|
-
};
|
|
173776
|
-
};
|
|
173777
|
-
|
|
173778
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/index.js
|
|
173779
|
-
var init_dist_es27 = __esm(() => {
|
|
173780
|
-
init_CredentialsProviderError();
|
|
173781
|
-
init_ProviderError();
|
|
173782
|
-
init_TokenProviderError();
|
|
173783
|
-
init_chain();
|
|
173784
|
-
});
|
|
173785
|
-
|
|
173786
174163
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
|
|
173787
174164
|
function getSelectorName(functionString) {
|
|
173788
174165
|
try {
|
|
@@ -173797,7 +174174,7 @@ function getSelectorName(functionString) {
|
|
|
173797
174174
|
}
|
|
173798
174175
|
|
|
173799
174176
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
|
|
173800
|
-
var fromEnv = (envVarSelector, logger3) => async () => {
|
|
174177
|
+
var import_property_provider, fromEnv = (envVarSelector, logger3) => async () => {
|
|
173801
174178
|
try {
|
|
173802
174179
|
const config5 = envVarSelector(process.env);
|
|
173803
174180
|
if (config5 === undefined) {
|
|
@@ -173805,11 +174182,11 @@ var fromEnv = (envVarSelector, logger3) => async () => {
|
|
|
173805
174182
|
}
|
|
173806
174183
|
return config5;
|
|
173807
174184
|
} catch (e2) {
|
|
173808
|
-
throw new CredentialsProviderError(e2.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: logger3 });
|
|
174185
|
+
throw new import_property_provider.CredentialsProviderError(e2.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: logger3 });
|
|
173809
174186
|
}
|
|
173810
174187
|
};
|
|
173811
174188
|
var init_fromEnv = __esm(() => {
|
|
173812
|
-
|
|
174189
|
+
import_property_provider = __toESM(require_dist_cjs16(), 1);
|
|
173813
174190
|
});
|
|
173814
174191
|
|
|
173815
174192
|
// ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js
|
|
@@ -174055,7 +174432,7 @@ var init_dist_es28 = __esm(() => {
|
|
|
174055
174432
|
});
|
|
174056
174433
|
|
|
174057
174434
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
|
|
174058
|
-
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init3 } = {}) => async () => {
|
|
174435
|
+
var import_property_provider2, fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init3 } = {}) => async () => {
|
|
174059
174436
|
const profile = getProfileName(init3);
|
|
174060
174437
|
const { configFile, credentialsFile } = await loadSharedConfigFiles(init3);
|
|
174061
174438
|
const profileFromCredentials = credentialsFile[profile] || {};
|
|
@@ -174069,24 +174446,24 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
174069
174446
|
}
|
|
174070
174447
|
return configValue;
|
|
174071
174448
|
} catch (e2) {
|
|
174072
|
-
throw new CredentialsProviderError(e2.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init3.logger });
|
|
174449
|
+
throw new import_property_provider2.CredentialsProviderError(e2.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init3.logger });
|
|
174073
174450
|
}
|
|
174074
174451
|
};
|
|
174075
174452
|
var init_fromSharedConfigFiles = __esm(() => {
|
|
174076
|
-
|
|
174453
|
+
import_property_provider2 = __toESM(require_dist_cjs16(), 1);
|
|
174077
174454
|
init_dist_es28();
|
|
174078
174455
|
});
|
|
174079
174456
|
|
|
174080
174457
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
|
|
174081
|
-
var isFunction2 = (func) => typeof func === "function",
|
|
174458
|
+
var import_property_provider3, isFunction2 = (func) => typeof func === "function", fromStatic = (defaultValue) => isFunction2(defaultValue) ? async () => await defaultValue() : import_property_provider3.fromStatic(defaultValue);
|
|
174082
174459
|
var init_fromStatic = __esm(() => {
|
|
174083
|
-
|
|
174460
|
+
import_property_provider3 = __toESM(require_dist_cjs16(), 1);
|
|
174084
174461
|
});
|
|
174085
174462
|
|
|
174086
174463
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
174087
|
-
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) =>
|
|
174464
|
+
var import_property_provider4, loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => import_property_provider4.memoize(import_property_provider4.chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
|
|
174088
174465
|
var init_configLoader = __esm(() => {
|
|
174089
|
-
|
|
174466
|
+
import_property_provider4 = __toESM(require_dist_cjs16(), 1);
|
|
174090
174467
|
init_fromEnv();
|
|
174091
174468
|
init_fromSharedConfigFiles();
|
|
174092
174469
|
init_fromStatic();
|
|
@@ -174448,7 +174825,7 @@ var init_config4 = __esm(() => {
|
|
|
174448
174825
|
|
|
174449
174826
|
// ../../../../node_modules/@smithy/service-error-classification/dist-es/constants.js
|
|
174450
174827
|
var THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, NODEJS_TIMEOUT_ERROR_CODES2;
|
|
174451
|
-
var
|
|
174828
|
+
var init_constants6 = __esm(() => {
|
|
174452
174829
|
THROTTLING_ERROR_CODES = [
|
|
174453
174830
|
"BandwidthLimitExceeded",
|
|
174454
174831
|
"EC2ThrottledException",
|
|
@@ -174482,7 +174859,7 @@ var isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected,
|
|
|
174482
174859
|
return false;
|
|
174483
174860
|
};
|
|
174484
174861
|
var init_dist_es33 = __esm(() => {
|
|
174485
|
-
|
|
174862
|
+
init_constants6();
|
|
174486
174863
|
});
|
|
174487
174864
|
|
|
174488
174865
|
// ../../../../node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
|
|
@@ -174590,7 +174967,7 @@ var init_DefaultRateLimiter = __esm(() => {
|
|
|
174590
174967
|
|
|
174591
174968
|
// ../../../../node_modules/@smithy/util-retry/dist-es/constants.js
|
|
174592
174969
|
var DEFAULT_RETRY_DELAY_BASE = 100, MAXIMUM_RETRY_DELAY, THROTTLING_RETRY_DELAY_BASE = 500, INITIAL_RETRY_TOKENS = 500, RETRY_COST = 5, TIMEOUT_RETRY_COST = 10, NO_RETRY_INCREMENT = 1, INVOCATION_ID_HEADER = "amz-sdk-invocation-id", REQUEST_HEADER = "amz-sdk-request";
|
|
174593
|
-
var
|
|
174970
|
+
var init_constants7 = __esm(() => {
|
|
174594
174971
|
MAXIMUM_RETRY_DELAY = 20 * 1000;
|
|
174595
174972
|
});
|
|
174596
174973
|
|
|
@@ -174609,7 +174986,7 @@ var getDefaultRetryBackoffStrategy = () => {
|
|
|
174609
174986
|
};
|
|
174610
174987
|
};
|
|
174611
174988
|
var init_defaultRetryBackoffStrategy = __esm(() => {
|
|
174612
|
-
|
|
174989
|
+
init_constants7();
|
|
174613
174990
|
});
|
|
174614
174991
|
|
|
174615
174992
|
// ../../../../node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js
|
|
@@ -174624,7 +175001,7 @@ var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => {
|
|
|
174624
175001
|
};
|
|
174625
175002
|
};
|
|
174626
175003
|
var init_defaultRetryToken = __esm(() => {
|
|
174627
|
-
|
|
175004
|
+
init_constants7();
|
|
174628
175005
|
});
|
|
174629
175006
|
|
|
174630
175007
|
// ../../../../node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
|
|
@@ -174686,7 +175063,7 @@ class StandardRetryStrategy {
|
|
|
174686
175063
|
}
|
|
174687
175064
|
var init_StandardRetryStrategy = __esm(() => {
|
|
174688
175065
|
init_config4();
|
|
174689
|
-
|
|
175066
|
+
init_constants7();
|
|
174690
175067
|
init_defaultRetryBackoffStrategy();
|
|
174691
175068
|
init_defaultRetryToken();
|
|
174692
175069
|
});
|
|
@@ -174721,7 +175098,7 @@ var init_AdaptiveRetryStrategy = __esm(() => {
|
|
|
174721
175098
|
|
|
174722
175099
|
// ../../../../node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js
|
|
174723
175100
|
var init_ConfiguredRetryStrategy = __esm(() => {
|
|
174724
|
-
|
|
175101
|
+
init_constants7();
|
|
174725
175102
|
init_StandardRetryStrategy();
|
|
174726
175103
|
});
|
|
174727
175104
|
|
|
@@ -174735,7 +175112,7 @@ var init_dist_es34 = __esm(() => {
|
|
|
174735
175112
|
init_DefaultRateLimiter();
|
|
174736
175113
|
init_StandardRetryStrategy();
|
|
174737
175114
|
init_config4();
|
|
174738
|
-
|
|
175115
|
+
init_constants7();
|
|
174739
175116
|
init_types11();
|
|
174740
175117
|
});
|
|
174741
175118
|
|
|
@@ -175515,7 +175892,7 @@ class SignatureV4MultiRegion {
|
|
|
175515
175892
|
}
|
|
175516
175893
|
}
|
|
175517
175894
|
var init_SignatureV4MultiRegion = __esm(() => {
|
|
175518
|
-
|
|
175895
|
+
init_dist_es21();
|
|
175519
175896
|
init_signature_v4_crt_container();
|
|
175520
175897
|
});
|
|
175521
175898
|
|
|
@@ -175659,8 +176036,8 @@ var cache3, defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
175659
176036
|
}));
|
|
175660
176037
|
};
|
|
175661
176038
|
var init_endpointResolver = __esm(() => {
|
|
176039
|
+
init_dist_es23();
|
|
175662
176040
|
init_dist_es22();
|
|
175663
|
-
init_dist_es21();
|
|
175664
176041
|
init_ruleset();
|
|
175665
176042
|
cache3 = new EndpointCache({
|
|
175666
176043
|
size: 50,
|
|
@@ -182673,7 +183050,7 @@ var init_Aws_restXml = __esm(() => {
|
|
|
182673
183050
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js
|
|
182674
183051
|
var CreateSessionCommand;
|
|
182675
183052
|
var init_CreateSessionCommand = __esm(() => {
|
|
182676
|
-
|
|
183053
|
+
init_dist_es21();
|
|
182677
183054
|
init_dist_es32();
|
|
182678
183055
|
init_dist_es31();
|
|
182679
183056
|
init_dist_es18();
|
|
@@ -182823,7 +183200,7 @@ var init_package3 = __esm(() => {
|
|
|
182823
183200
|
});
|
|
182824
183201
|
|
|
182825
183202
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
182826
|
-
var import_client, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCESS_KEY", ENV_SESSION = "AWS_SESSION_TOKEN", ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID", fromEnv2 = (init3) => async () => {
|
|
183203
|
+
var import_client, import_property_provider5, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCESS_KEY", ENV_SESSION = "AWS_SESSION_TOKEN", ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID", fromEnv2 = (init3) => async () => {
|
|
182827
183204
|
init3?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
182828
183205
|
const accessKeyId = process.env[ENV_KEY];
|
|
182829
183206
|
const secretAccessKey = process.env[ENV_SECRET];
|
|
@@ -182843,11 +183220,11 @@ var import_client, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCES
|
|
|
182843
183220
|
import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
182844
183221
|
return credentials;
|
|
182845
183222
|
}
|
|
182846
|
-
throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init3?.logger });
|
|
183223
|
+
throw new import_property_provider5.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init3?.logger });
|
|
182847
183224
|
};
|
|
182848
183225
|
var init_fromEnv2 = __esm(() => {
|
|
182849
183226
|
import_client = __toESM(require_client4(), 1);
|
|
182850
|
-
|
|
183227
|
+
import_property_provider5 = __toESM(require_dist_cjs16(), 1);
|
|
182851
183228
|
});
|
|
182852
183229
|
|
|
182853
183230
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
@@ -182876,17 +183253,17 @@ function httpRequest2(options2) {
|
|
|
182876
183253
|
hostname: options2.hostname?.replace(/^\[(.+)\]$/, "$1")
|
|
182877
183254
|
});
|
|
182878
183255
|
req.on("error", (err2) => {
|
|
182879
|
-
reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err2));
|
|
183256
|
+
reject(Object.assign(new import_property_provider6.ProviderError("Unable to connect to instance metadata service"), err2));
|
|
182880
183257
|
req.destroy();
|
|
182881
183258
|
});
|
|
182882
183259
|
req.on("timeout", () => {
|
|
182883
|
-
reject(new ProviderError("TimeoutError from instance metadata service"));
|
|
183260
|
+
reject(new import_property_provider6.ProviderError("TimeoutError from instance metadata service"));
|
|
182884
183261
|
req.destroy();
|
|
182885
183262
|
});
|
|
182886
183263
|
req.on("response", (res) => {
|
|
182887
183264
|
const { statusCode = 400 } = res;
|
|
182888
183265
|
if (statusCode < 200 || 300 <= statusCode) {
|
|
182889
|
-
reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode }));
|
|
183266
|
+
reject(Object.assign(new import_property_provider6.ProviderError("Error response received from instance metadata service"), { statusCode }));
|
|
182890
183267
|
req.destroy();
|
|
182891
183268
|
}
|
|
182892
183269
|
const chunks = [];
|
|
@@ -182901,8 +183278,9 @@ function httpRequest2(options2) {
|
|
|
182901
183278
|
req.end();
|
|
182902
183279
|
});
|
|
182903
183280
|
}
|
|
183281
|
+
var import_property_provider6;
|
|
182904
183282
|
var init_httpRequest = __esm(() => {
|
|
182905
|
-
|
|
183283
|
+
import_property_provider6 = __toESM(require_dist_cjs16(), 1);
|
|
182906
183284
|
});
|
|
182907
183285
|
|
|
182908
183286
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
@@ -182928,13 +183306,13 @@ var retry2 = (toRetry, maxRetries) => {
|
|
|
182928
183306
|
|
|
182929
183307
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
182930
183308
|
import { parse as parse10 } from "url";
|
|
182931
|
-
var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromContainerMetadata = (init3 = {}) => {
|
|
183309
|
+
var import_property_provider7, ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromContainerMetadata = (init3 = {}) => {
|
|
182932
183310
|
const { timeout, maxRetries } = providerConfigFromInit(init3);
|
|
182933
183311
|
return () => retry2(async () => {
|
|
182934
183312
|
const requestOptions = await getCmdsUri({ logger: init3.logger });
|
|
182935
183313
|
const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
|
|
182936
183314
|
if (!isImdsCredentials(credsResponse)) {
|
|
182937
|
-
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
183315
|
+
throw new import_property_provider7.CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
182938
183316
|
logger: init3.logger
|
|
182939
183317
|
});
|
|
182940
183318
|
}
|
|
@@ -182962,13 +183340,13 @@ var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", ENV_CMDS_RELATIVE_
|
|
|
182962
183340
|
if (process.env[ENV_CMDS_FULL_URI]) {
|
|
182963
183341
|
const parsed = parse10(process.env[ENV_CMDS_FULL_URI]);
|
|
182964
183342
|
if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
|
|
182965
|
-
throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
|
|
183343
|
+
throw new import_property_provider7.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
|
|
182966
183344
|
tryNextLink: false,
|
|
182967
183345
|
logger: logger3
|
|
182968
183346
|
});
|
|
182969
183347
|
}
|
|
182970
183348
|
if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
|
|
182971
|
-
throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
|
|
183349
|
+
throw new import_property_provider7.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
|
|
182972
183350
|
tryNextLink: false,
|
|
182973
183351
|
logger: logger3
|
|
182974
183352
|
});
|
|
@@ -182978,13 +183356,13 @@ var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", ENV_CMDS_RELATIVE_
|
|
|
182978
183356
|
port: parsed.port ? parseInt(parsed.port, 10) : undefined
|
|
182979
183357
|
};
|
|
182980
183358
|
}
|
|
182981
|
-
throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
|
|
183359
|
+
throw new import_property_provider7.CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
|
|
182982
183360
|
tryNextLink: false,
|
|
182983
183361
|
logger: logger3
|
|
182984
183362
|
});
|
|
182985
183363
|
};
|
|
182986
183364
|
var init_fromContainerMetadata = __esm(() => {
|
|
182987
|
-
|
|
183365
|
+
import_property_provider7 = __toESM(require_dist_cjs16(), 1);
|
|
182988
183366
|
init_httpRequest();
|
|
182989
183367
|
GREENGRASS_HOSTS = {
|
|
182990
183368
|
localhost: true,
|
|
@@ -182997,10 +183375,10 @@ var init_fromContainerMetadata = __esm(() => {
|
|
|
182997
183375
|
});
|
|
182998
183376
|
|
|
182999
183377
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
183000
|
-
var InstanceMetadataV1FallbackError;
|
|
183378
|
+
var import_property_provider8, InstanceMetadataV1FallbackError;
|
|
183001
183379
|
var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
183002
|
-
|
|
183003
|
-
InstanceMetadataV1FallbackError = class InstanceMetadataV1FallbackError extends CredentialsProviderError {
|
|
183380
|
+
import_property_provider8 = __toESM(require_dist_cjs16(), 1);
|
|
183381
|
+
InstanceMetadataV1FallbackError = class InstanceMetadataV1FallbackError extends import_property_provider8.CredentialsProviderError {
|
|
183004
183382
|
constructor(message, tryNextLink = true) {
|
|
183005
183383
|
super(message, tryNextLink);
|
|
183006
183384
|
this.tryNextLink = tryNextLink;
|
|
@@ -183116,7 +183494,7 @@ var init_staticStabilityProvider = __esm(() => {
|
|
|
183116
183494
|
});
|
|
183117
183495
|
|
|
183118
183496
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
183119
|
-
var IMDS_PATH = "/latest/meta-data/iam/security-credentials/", IMDS_TOKEN_PATH = "/latest/api/token", AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED", PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled", X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token", fromInstanceMetadata = (init3 = {}) => staticStabilityProvider(getInstanceMetadataProvider(init3), { logger: init3.logger }), getInstanceMetadataProvider = (init3 = {}) => {
|
|
183497
|
+
var import_property_provider9, IMDS_PATH = "/latest/meta-data/iam/security-credentials/", IMDS_TOKEN_PATH = "/latest/api/token", AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED", PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled", X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token", fromInstanceMetadata = (init3 = {}) => staticStabilityProvider(getInstanceMetadataProvider(init3), { logger: init3.logger }), getInstanceMetadataProvider = (init3 = {}) => {
|
|
183120
183498
|
let disableFetchToken = false;
|
|
183121
183499
|
const { logger: logger3, profile } = init3;
|
|
183122
183500
|
const { timeout, maxRetries } = providerConfigFromInit(init3);
|
|
@@ -183130,7 +183508,7 @@ var IMDS_PATH = "/latest/meta-data/iam/security-credentials/", IMDS_TOKEN_PATH =
|
|
|
183130
183508
|
const envValue = env6[AWS_EC2_METADATA_V1_DISABLED];
|
|
183131
183509
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
183132
183510
|
if (envValue === undefined) {
|
|
183133
|
-
throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init3.logger });
|
|
183511
|
+
throw new import_property_provider9.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init3.logger });
|
|
183134
183512
|
}
|
|
183135
183513
|
return fallbackBlockedFromProcessEnv;
|
|
183136
183514
|
},
|
|
@@ -183221,7 +183599,7 @@ var IMDS_PATH = "/latest/meta-data/iam/security-credentials/", IMDS_TOKEN_PATH =
|
|
|
183221
183599
|
path: IMDS_PATH + profile
|
|
183222
183600
|
})).toString());
|
|
183223
183601
|
if (!isImdsCredentials(credentialsResponse)) {
|
|
183224
|
-
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
183602
|
+
throw new import_property_provider9.CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
183225
183603
|
logger: init3.logger
|
|
183226
183604
|
});
|
|
183227
183605
|
}
|
|
@@ -183229,7 +183607,7 @@ var IMDS_PATH = "/latest/meta-data/iam/security-credentials/", IMDS_TOKEN_PATH =
|
|
|
183229
183607
|
};
|
|
183230
183608
|
var init_fromInstanceMetadata = __esm(() => {
|
|
183231
183609
|
init_dist_es29();
|
|
183232
|
-
|
|
183610
|
+
import_property_provider9 = __toESM(require_dist_cjs16(), 1);
|
|
183233
183611
|
init_InstanceMetadataV1FallbackError();
|
|
183234
183612
|
init_httpRequest();
|
|
183235
183613
|
init_getInstanceMetadataEndpoint();
|
|
@@ -183264,7 +183642,7 @@ var init_dist_es39 = __esm(() => {
|
|
|
183264
183642
|
});
|
|
183265
183643
|
|
|
183266
183644
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
183267
|
-
var ECS_CONTAINER_HOST = "169.254.170.2", EKS_CONTAINER_HOST_IPv4 = "169.254.170.23", EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]", checkUrl = (url, logger3) => {
|
|
183645
|
+
var import_property_provider10, ECS_CONTAINER_HOST = "169.254.170.2", EKS_CONTAINER_HOST_IPv4 = "169.254.170.23", EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]", checkUrl = (url, logger3) => {
|
|
183268
183646
|
if (url.protocol === "https:") {
|
|
183269
183647
|
return;
|
|
183270
183648
|
}
|
|
@@ -183288,13 +183666,13 @@ var ECS_CONTAINER_HOST = "169.254.170.2", EKS_CONTAINER_HOST_IPv4 = "169.254.170
|
|
|
183288
183666
|
return;
|
|
183289
183667
|
}
|
|
183290
183668
|
}
|
|
183291
|
-
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
183669
|
+
throw new import_property_provider10.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
183292
183670
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
183293
183671
|
- ECS container host 169.254.170.2
|
|
183294
183672
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger: logger3 });
|
|
183295
183673
|
};
|
|
183296
183674
|
var init_checkUrl = __esm(() => {
|
|
183297
|
-
|
|
183675
|
+
import_property_provider10 = __toESM(require_dist_cjs16(), 1);
|
|
183298
183676
|
});
|
|
183299
183677
|
|
|
183300
183678
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
@@ -183317,7 +183695,7 @@ async function getCredentials(response4, logger3) {
|
|
|
183317
183695
|
if (response4.statusCode === 200) {
|
|
183318
183696
|
const parsed = JSON.parse(str2);
|
|
183319
183697
|
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
|
|
183320
|
-
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger: logger3 });
|
|
183698
|
+
throw new import_property_provider11.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger: logger3 });
|
|
183321
183699
|
}
|
|
183322
183700
|
return {
|
|
183323
183701
|
accessKeyId: parsed.AccessKeyId,
|
|
@@ -183331,15 +183709,16 @@ async function getCredentials(response4, logger3) {
|
|
|
183331
183709
|
try {
|
|
183332
183710
|
parsedBody = JSON.parse(str2);
|
|
183333
183711
|
} catch (e3) {}
|
|
183334
|
-
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger3 }), {
|
|
183712
|
+
throw Object.assign(new import_property_provider11.CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger3 }), {
|
|
183335
183713
|
Code: parsedBody.Code,
|
|
183336
183714
|
Message: parsedBody.Message
|
|
183337
183715
|
});
|
|
183338
183716
|
}
|
|
183339
|
-
throw new CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger3 });
|
|
183717
|
+
throw new import_property_provider11.CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger3 });
|
|
183340
183718
|
}
|
|
183719
|
+
var import_property_provider11;
|
|
183341
183720
|
var init_requestHelpers = __esm(() => {
|
|
183342
|
-
|
|
183721
|
+
import_property_provider11 = __toESM(require_dist_cjs16(), 1);
|
|
183343
183722
|
init_dist_es();
|
|
183344
183723
|
init_dist_es18();
|
|
183345
183724
|
init_dist_es11();
|
|
@@ -183361,7 +183740,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
183361
183740
|
|
|
183362
183741
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
183363
183742
|
import fs4 from "fs/promises";
|
|
183364
|
-
var import_client2, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp = (options2 = {}) => {
|
|
183743
|
+
var import_client2, import_property_provider12, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp = (options2 = {}) => {
|
|
183365
183744
|
options2.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
183366
183745
|
let host;
|
|
183367
183746
|
const relative3 = options2.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
|
@@ -183382,7 +183761,7 @@ var import_client2, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CRED
|
|
|
183382
183761
|
} else if (relative3) {
|
|
183383
183762
|
host = `${DEFAULT_LINK_LOCAL_HOST}${relative3}`;
|
|
183384
183763
|
} else {
|
|
183385
|
-
throw new CredentialsProviderError(`No HTTP credential provider host provided.
|
|
183764
|
+
throw new import_property_provider12.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
183386
183765
|
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options2.logger });
|
|
183387
183766
|
}
|
|
183388
183767
|
const url = new URL(host);
|
|
@@ -183402,14 +183781,14 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
183402
183781
|
const result2 = await requestHandler.handle(request5);
|
|
183403
183782
|
return getCredentials(result2.response).then((creds) => import_client2.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
183404
183783
|
} catch (e3) {
|
|
183405
|
-
throw new CredentialsProviderError(String(e3), { logger: options2.logger });
|
|
183784
|
+
throw new import_property_provider12.CredentialsProviderError(String(e3), { logger: options2.logger });
|
|
183406
183785
|
}
|
|
183407
183786
|
}, options2.maxRetries ?? 3, options2.timeout ?? 1000);
|
|
183408
183787
|
};
|
|
183409
183788
|
var init_fromHttp = __esm(() => {
|
|
183410
183789
|
import_client2 = __toESM(require_client4(), 1);
|
|
183411
183790
|
init_dist_es10();
|
|
183412
|
-
|
|
183791
|
+
import_property_provider12 = __toESM(require_dist_cjs16(), 1);
|
|
183413
183792
|
init_checkUrl();
|
|
183414
183793
|
init_requestHelpers();
|
|
183415
183794
|
});
|
|
@@ -183424,23 +183803,23 @@ var init_dist_es40 = __esm(() => {
|
|
|
183424
183803
|
});
|
|
183425
183804
|
|
|
183426
183805
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
183427
|
-
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED", remoteProvider = async (init3) => {
|
|
183806
|
+
var import_property_provider13, ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED", remoteProvider = async (init3) => {
|
|
183428
183807
|
const { ENV_CMDS_FULL_URI: ENV_CMDS_FULL_URI2, ENV_CMDS_RELATIVE_URI: ENV_CMDS_RELATIVE_URI2, fromContainerMetadata: fromContainerMetadata3, fromInstanceMetadata: fromInstanceMetadata3 } = await Promise.resolve().then(() => (init_dist_es39(), exports_dist_es2));
|
|
183429
183808
|
if (process.env[ENV_CMDS_RELATIVE_URI2] || process.env[ENV_CMDS_FULL_URI2]) {
|
|
183430
183809
|
init3.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
183431
183810
|
const { fromHttp: fromHttp2 } = await Promise.resolve().then(() => (init_dist_es40(), exports_dist_es3));
|
|
183432
|
-
return chain(fromHttp2(init3), fromContainerMetadata3(init3));
|
|
183811
|
+
return import_property_provider13.chain(fromHttp2(init3), fromContainerMetadata3(init3));
|
|
183433
183812
|
}
|
|
183434
183813
|
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
183435
183814
|
return async () => {
|
|
183436
|
-
throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init3.logger });
|
|
183815
|
+
throw new import_property_provider13.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init3.logger });
|
|
183437
183816
|
};
|
|
183438
183817
|
}
|
|
183439
183818
|
init3.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
|
|
183440
183819
|
return fromInstanceMetadata3(init3);
|
|
183441
183820
|
};
|
|
183442
183821
|
var init_remoteProvider = __esm(() => {
|
|
183443
|
-
|
|
183822
|
+
import_property_provider13 = __toESM(require_dist_cjs16(), 1);
|
|
183444
183823
|
});
|
|
183445
183824
|
|
|
183446
183825
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
@@ -183448,7 +183827,7 @@ var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typ
|
|
|
183448
183827
|
|
|
183449
183828
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
183450
183829
|
var EXPIRE_WINDOW_MS, REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
183451
|
-
var
|
|
183830
|
+
var init_constants8 = __esm(() => {
|
|
183452
183831
|
EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
183453
183832
|
});
|
|
183454
183833
|
|
|
@@ -183480,13 +183859,13 @@ var require_dist_cjs21 = __commonJS((exports, module) => {
|
|
|
183480
183859
|
resolveHostHeaderConfig: () => resolveHostHeaderConfig2
|
|
183481
183860
|
});
|
|
183482
183861
|
module.exports = __toCommonJS2(src_exports);
|
|
183483
|
-
var
|
|
183862
|
+
var import_protocol_http22 = require_dist_cjs2();
|
|
183484
183863
|
function resolveHostHeaderConfig2(input) {
|
|
183485
183864
|
return input;
|
|
183486
183865
|
}
|
|
183487
183866
|
__name(resolveHostHeaderConfig2, "resolveHostHeaderConfig");
|
|
183488
183867
|
var hostHeaderMiddleware2 = /* @__PURE__ */ __name((options2) => (next) => async (args) => {
|
|
183489
|
-
if (!
|
|
183868
|
+
if (!import_protocol_http22.HttpRequest.isInstance(args.request))
|
|
183490
183869
|
return next(args);
|
|
183491
183870
|
const { request: request5 } = args;
|
|
183492
183871
|
const { handlerProtocol = "" } = options2.requestHandler.metadata || {};
|
|
@@ -183612,13 +183991,13 @@ var require_dist_cjs23 = __commonJS((exports, module) => {
|
|
|
183612
183991
|
recursionDetectionMiddleware: () => recursionDetectionMiddleware2
|
|
183613
183992
|
});
|
|
183614
183993
|
module.exports = __toCommonJS2(index_exports);
|
|
183615
|
-
var
|
|
183994
|
+
var import_protocol_http22 = require_dist_cjs2();
|
|
183616
183995
|
var TRACE_ID_HEADER_NAME2 = "X-Amzn-Trace-Id";
|
|
183617
183996
|
var ENV_LAMBDA_FUNCTION_NAME2 = "AWS_LAMBDA_FUNCTION_NAME";
|
|
183618
183997
|
var ENV_TRACE_ID2 = "_X_AMZN_TRACE_ID";
|
|
183619
183998
|
var recursionDetectionMiddleware2 = /* @__PURE__ */ __name((options2) => (next) => async (args) => {
|
|
183620
183999
|
const { request: request5 } = args;
|
|
183621
|
-
if (!
|
|
184000
|
+
if (!import_protocol_http22.HttpRequest.isInstance(request5) || options2.runtime !== "node") {
|
|
183622
184001
|
return next(args);
|
|
183623
184002
|
}
|
|
183624
184003
|
const traceIdHeader = Object.keys(request5.headers ?? {}).find((h4) => h4.toLowerCase() === TRACE_ID_HEADER_NAME2.toLowerCase()) ?? TRACE_ID_HEADER_NAME2;
|
|
@@ -184522,7 +184901,7 @@ var require_dist_cjs26 = __commonJS((exports, module) => {
|
|
|
184522
184901
|
}
|
|
184523
184902
|
__name(resolveUserAgentConfig2, "resolveUserAgentConfig");
|
|
184524
184903
|
var import_util_endpoints9 = require_dist_cjs25();
|
|
184525
|
-
var
|
|
184904
|
+
var import_protocol_http22 = require_dist_cjs2();
|
|
184526
184905
|
var import_core22 = require_dist_cjs20();
|
|
184527
184906
|
var ACCOUNT_ID_ENDPOINT_REGEX2 = /\d{12}\.ddb/;
|
|
184528
184907
|
async function checkFeatures2(context, config6, args) {
|
|
@@ -184598,7 +184977,7 @@ var require_dist_cjs26 = __commonJS((exports, module) => {
|
|
|
184598
184977
|
__name(encodeFeatures2, "encodeFeatures");
|
|
184599
184978
|
var userAgentMiddleware2 = /* @__PURE__ */ __name((options2) => (next, context) => async (args) => {
|
|
184600
184979
|
const { request: request5 } = args;
|
|
184601
|
-
if (!
|
|
184980
|
+
if (!import_protocol_http22.HttpRequest.isInstance(request5)) {
|
|
184602
184981
|
return next(args);
|
|
184603
184982
|
}
|
|
184604
184983
|
const { headers } = request5;
|
|
@@ -184774,15 +185153,15 @@ var require_dist_cjs28 = __commonJS((exports, module) => {
|
|
|
184774
185153
|
configFileSelector: (profile) => (0, import_util_config_provider4.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT2, import_util_config_provider4.SelectorType.CONFIG),
|
|
184775
185154
|
default: false
|
|
184776
185155
|
};
|
|
184777
|
-
var
|
|
185156
|
+
var import_util_middleware10 = require_dist_cjs3();
|
|
184778
185157
|
var resolveCustomEndpointsConfig2 = /* @__PURE__ */ __name((input) => {
|
|
184779
185158
|
const { endpoint, urlParser } = input;
|
|
184780
185159
|
return {
|
|
184781
185160
|
...input,
|
|
184782
185161
|
tls: input.tls ?? true,
|
|
184783
|
-
endpoint: (0,
|
|
185162
|
+
endpoint: (0, import_util_middleware10.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint),
|
|
184784
185163
|
isCustomEndpoint: true,
|
|
184785
|
-
useDualstackEndpoint: (0,
|
|
185164
|
+
useDualstackEndpoint: (0, import_util_middleware10.normalizeProvider)(input.useDualstackEndpoint ?? false)
|
|
184786
185165
|
};
|
|
184787
185166
|
}, "resolveCustomEndpointsConfig");
|
|
184788
185167
|
var getEndpointFromRegion2 = /* @__PURE__ */ __name(async (input) => {
|
|
@@ -184801,12 +185180,12 @@ var require_dist_cjs28 = __commonJS((exports, module) => {
|
|
|
184801
185180
|
return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`);
|
|
184802
185181
|
}, "getEndpointFromRegion");
|
|
184803
185182
|
var resolveEndpointsConfig2 = /* @__PURE__ */ __name((input) => {
|
|
184804
|
-
const useDualstackEndpoint = (0,
|
|
185183
|
+
const useDualstackEndpoint = (0, import_util_middleware10.normalizeProvider)(input.useDualstackEndpoint ?? false);
|
|
184805
185184
|
const { endpoint, useFipsEndpoint, urlParser } = input;
|
|
184806
185185
|
return {
|
|
184807
185186
|
...input,
|
|
184808
185187
|
tls: input.tls ?? true,
|
|
184809
|
-
endpoint: endpoint ? (0,
|
|
185188
|
+
endpoint: endpoint ? (0, import_util_middleware10.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion2({ ...input, useDualstackEndpoint, useFipsEndpoint }),
|
|
184810
185189
|
isCustomEndpoint: !!endpoint,
|
|
184811
185190
|
useDualstackEndpoint
|
|
184812
185191
|
};
|
|
@@ -184922,12 +185301,12 @@ var require_dist_cjs29 = __commonJS((exports, module) => {
|
|
|
184922
185301
|
getContentLengthPlugin: () => getContentLengthPlugin2
|
|
184923
185302
|
});
|
|
184924
185303
|
module.exports = __toCommonJS2(src_exports);
|
|
184925
|
-
var
|
|
185304
|
+
var import_protocol_http22 = require_dist_cjs2();
|
|
184926
185305
|
var CONTENT_LENGTH_HEADER3 = "content-length";
|
|
184927
185306
|
function contentLengthMiddleware2(bodyLengthChecker) {
|
|
184928
185307
|
return (next) => async (args) => {
|
|
184929
185308
|
const request5 = args.request;
|
|
184930
|
-
if (
|
|
185309
|
+
if (import_protocol_http22.HttpRequest.isInstance(request5)) {
|
|
184931
185310
|
const { body, headers } = request5;
|
|
184932
185311
|
if (body && Object.keys(headers).map((str2) => str2.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER3) === -1) {
|
|
184933
185312
|
try {
|
|
@@ -185261,8 +185640,8 @@ var require_dist_cjs31 = __commonJS((exports, module) => {
|
|
|
185261
185640
|
}
|
|
185262
185641
|
}, "fromSharedConfigFiles");
|
|
185263
185642
|
var isFunction3 = /* @__PURE__ */ __name((func) => typeof func === "function", "isFunction");
|
|
185264
|
-
var
|
|
185265
|
-
var loadConfig2 = /* @__PURE__ */ __name(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, import_property_provider14.memoize)((0, import_property_provider14.chain)(fromEnv4(environmentVariableSelector), fromSharedConfigFiles2(configFileSelector, configuration),
|
|
185643
|
+
var fromStatic2 = /* @__PURE__ */ __name((defaultValue) => isFunction3(defaultValue) ? async () => await defaultValue() : (0, import_property_provider14.fromStatic)(defaultValue), "fromStatic");
|
|
185644
|
+
var loadConfig2 = /* @__PURE__ */ __name(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, import_property_provider14.memoize)((0, import_property_provider14.chain)(fromEnv4(environmentVariableSelector), fromSharedConfigFiles2(configFileSelector, configuration), fromStatic2(defaultValue))), "loadConfig");
|
|
185266
185645
|
});
|
|
185267
185646
|
|
|
185268
185647
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
|
|
@@ -185569,7 +185948,7 @@ var require_dist_cjs34 = __commonJS((exports, module) => {
|
|
|
185569
185948
|
return endpointParams;
|
|
185570
185949
|
}, "resolveParams");
|
|
185571
185950
|
var import_core13 = require_dist_cjs15();
|
|
185572
|
-
var
|
|
185951
|
+
var import_util_middleware10 = require_dist_cjs3();
|
|
185573
185952
|
var endpointMiddleware3 = /* @__PURE__ */ __name(({
|
|
185574
185953
|
config: config6,
|
|
185575
185954
|
instructions
|
|
@@ -185589,7 +185968,7 @@ var require_dist_cjs34 = __commonJS((exports, module) => {
|
|
|
185589
185968
|
if (authScheme) {
|
|
185590
185969
|
context["signing_region"] = authScheme.signingRegion;
|
|
185591
185970
|
context["signing_service"] = authScheme.signingName;
|
|
185592
|
-
const smithyContext = (0,
|
|
185971
|
+
const smithyContext = (0, import_util_middleware10.getSmithyContext)(context);
|
|
185593
185972
|
const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
|
|
185594
185973
|
if (httpAuthOption) {
|
|
185595
185974
|
httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
|
|
@@ -185627,15 +186006,15 @@ var require_dist_cjs34 = __commonJS((exports, module) => {
|
|
|
185627
186006
|
var resolveEndpointConfig3 = /* @__PURE__ */ __name((input) => {
|
|
185628
186007
|
const tls = input.tls ?? true;
|
|
185629
186008
|
const { endpoint } = input;
|
|
185630
|
-
const customEndpointProvider = endpoint != null ? async () => toEndpointV13(await (0,
|
|
186009
|
+
const customEndpointProvider = endpoint != null ? async () => toEndpointV13(await (0, import_util_middleware10.normalizeProvider)(endpoint)()) : undefined;
|
|
185631
186010
|
const isCustomEndpoint = !!endpoint;
|
|
185632
186011
|
const resolvedConfig = {
|
|
185633
186012
|
...input,
|
|
185634
186013
|
endpoint: customEndpointProvider,
|
|
185635
186014
|
tls,
|
|
185636
186015
|
isCustomEndpoint,
|
|
185637
|
-
useDualstackEndpoint: (0,
|
|
185638
|
-
useFipsEndpoint: (0,
|
|
186016
|
+
useDualstackEndpoint: (0, import_util_middleware10.normalizeProvider)(input.useDualstackEndpoint ?? false),
|
|
186017
|
+
useFipsEndpoint: (0, import_util_middleware10.normalizeProvider)(input.useFipsEndpoint ?? false)
|
|
185639
186018
|
};
|
|
185640
186019
|
let configuredEndpointPromise = undefined;
|
|
185641
186020
|
resolvedConfig.serviceConfiguredEndpoint = async () => {
|
|
@@ -186063,7 +186442,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186063
186442
|
retryMiddlewareOptions: () => retryMiddlewareOptions2
|
|
186064
186443
|
});
|
|
186065
186444
|
module.exports = __toCommonJS2(src_exports);
|
|
186066
|
-
var
|
|
186445
|
+
var import_protocol_http22 = require_dist_cjs2();
|
|
186067
186446
|
var import_uuid2 = require_dist4();
|
|
186068
186447
|
var import_util_retry8 = require_dist_cjs36();
|
|
186069
186448
|
var getDefaultRetryQuota2 = /* @__PURE__ */ __name((initialRetryTokens, options2) => {
|
|
@@ -186138,12 +186517,12 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186138
186517
|
let totalDelay = 0;
|
|
186139
186518
|
const maxAttempts = await this.getMaxAttempts();
|
|
186140
186519
|
const { request: request5 } = args;
|
|
186141
|
-
if (
|
|
186520
|
+
if (import_protocol_http22.HttpRequest.isInstance(request5)) {
|
|
186142
186521
|
request5.headers[import_util_retry8.INVOCATION_ID_HEADER] = (0, import_uuid2.v4)();
|
|
186143
186522
|
}
|
|
186144
186523
|
while (true) {
|
|
186145
186524
|
try {
|
|
186146
|
-
if (
|
|
186525
|
+
if (import_protocol_http22.HttpRequest.isInstance(request5)) {
|
|
186147
186526
|
request5.headers[import_util_retry8.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
|
186148
186527
|
}
|
|
186149
186528
|
if (options2?.beforeRequest) {
|
|
@@ -186180,7 +186559,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186180
186559
|
}
|
|
186181
186560
|
};
|
|
186182
186561
|
var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response4) => {
|
|
186183
|
-
if (!
|
|
186562
|
+
if (!import_protocol_http22.HttpResponse.isInstance(response4))
|
|
186184
186563
|
return;
|
|
186185
186564
|
const retryAfterHeaderName = Object.keys(response4.headers).find((key2) => key2.toLowerCase() === "retry-after");
|
|
186186
186565
|
if (!retryAfterHeaderName)
|
|
@@ -186213,7 +186592,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186213
186592
|
});
|
|
186214
186593
|
}
|
|
186215
186594
|
};
|
|
186216
|
-
var
|
|
186595
|
+
var import_util_middleware10 = require_dist_cjs3();
|
|
186217
186596
|
var ENV_MAX_ATTEMPTS2 = "AWS_MAX_ATTEMPTS";
|
|
186218
186597
|
var CONFIG_MAX_ATTEMPTS2 = "max_attempts";
|
|
186219
186598
|
var NODE_MAX_ATTEMPT_CONFIG_OPTIONS2 = {
|
|
@@ -186241,7 +186620,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186241
186620
|
};
|
|
186242
186621
|
var resolveRetryConfig2 = /* @__PURE__ */ __name((input) => {
|
|
186243
186622
|
const { retryStrategy } = input;
|
|
186244
|
-
const maxAttempts = (0,
|
|
186623
|
+
const maxAttempts = (0, import_util_middleware10.normalizeProvider)(input.maxAttempts ?? import_util_retry8.DEFAULT_MAX_ATTEMPTS);
|
|
186245
186624
|
return {
|
|
186246
186625
|
...input,
|
|
186247
186626
|
maxAttempts,
|
|
@@ -186249,7 +186628,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186249
186628
|
if (retryStrategy) {
|
|
186250
186629
|
return retryStrategy;
|
|
186251
186630
|
}
|
|
186252
|
-
const retryMode = await (0,
|
|
186631
|
+
const retryMode = await (0, import_util_middleware10.normalizeProvider)(input.retryMode)();
|
|
186253
186632
|
if (retryMode === import_util_retry8.RETRY_MODES.ADAPTIVE) {
|
|
186254
186633
|
return new import_util_retry8.AdaptiveRetryStrategy(maxAttempts);
|
|
186255
186634
|
}
|
|
@@ -186266,7 +186645,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186266
186645
|
};
|
|
186267
186646
|
var omitRetryHeadersMiddleware2 = /* @__PURE__ */ __name(() => (next) => async (args) => {
|
|
186268
186647
|
const { request: request5 } = args;
|
|
186269
|
-
if (
|
|
186648
|
+
if (import_protocol_http22.HttpRequest.isInstance(request5)) {
|
|
186270
186649
|
delete request5.headers[import_util_retry8.INVOCATION_ID_HEADER];
|
|
186271
186650
|
delete request5.headers[import_util_retry8.REQUEST_HEADER];
|
|
186272
186651
|
}
|
|
@@ -186296,7 +186675,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186296
186675
|
let attempts = 0;
|
|
186297
186676
|
let totalRetryDelay = 0;
|
|
186298
186677
|
const { request: request5 } = args;
|
|
186299
|
-
const isRequest =
|
|
186678
|
+
const isRequest = import_protocol_http22.HttpRequest.isInstance(request5);
|
|
186300
186679
|
if (isRequest) {
|
|
186301
186680
|
request5.headers[import_util_retry8.INVOCATION_ID_HEADER] = (0, import_uuid2.v4)();
|
|
186302
186681
|
}
|
|
@@ -186374,7 +186753,7 @@ var require_dist_cjs37 = __commonJS((exports, module) => {
|
|
|
186374
186753
|
}
|
|
186375
186754
|
}), "getRetryPlugin");
|
|
186376
186755
|
var getRetryAfterHint2 = /* @__PURE__ */ __name((response4) => {
|
|
186377
|
-
if (!
|
|
186756
|
+
if (!import_protocol_http22.HttpResponse.isInstance(response4))
|
|
186378
186757
|
return;
|
|
186379
186758
|
const retryAfterHeaderName = Object.keys(response4.headers).find((key2) => key2.toLowerCase() === "retry-after");
|
|
186380
186759
|
if (!retryAfterHeaderName)
|
|
@@ -186668,7 +187047,7 @@ var require_dist_cjs39 = __commonJS((exports, module) => {
|
|
|
186668
187047
|
});
|
|
186669
187048
|
module.exports = __toCommonJS2(src_exports);
|
|
186670
187049
|
var import_util_buffer_from8 = require_dist_cjs6();
|
|
186671
|
-
var
|
|
187050
|
+
var import_util_utf810 = require_dist_cjs7();
|
|
186672
187051
|
var import_buffer4 = __require("buffer");
|
|
186673
187052
|
var import_crypto2 = __require("crypto");
|
|
186674
187053
|
var Hash = class {
|
|
@@ -186681,7 +187060,7 @@ var require_dist_cjs39 = __commonJS((exports, module) => {
|
|
|
186681
187060
|
this.reset();
|
|
186682
187061
|
}
|
|
186683
187062
|
update(toHash, encoding) {
|
|
186684
|
-
this.hash.update((0,
|
|
187063
|
+
this.hash.update((0, import_util_utf810.toUint8Array)(castSourceData(toHash, encoding)));
|
|
186685
187064
|
}
|
|
186686
187065
|
digest() {
|
|
186687
187066
|
return Promise.resolve(this.hash.digest());
|
|
@@ -187532,7 +187911,7 @@ var require_sso_oidc = __commonJS((exports, module) => {
|
|
|
187532
187911
|
};
|
|
187533
187912
|
var import_runtimeConfig = require_runtimeConfig();
|
|
187534
187913
|
var import_region_config_resolver = require_dist_cjs43();
|
|
187535
|
-
var
|
|
187914
|
+
var import_protocol_http22 = require_dist_cjs2();
|
|
187536
187915
|
var import_smithy_client10 = require_dist_cjs19();
|
|
187537
187916
|
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
187538
187917
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
@@ -187576,7 +187955,7 @@ var require_sso_oidc = __commonJS((exports, module) => {
|
|
|
187576
187955
|
const extensionConfiguration = {
|
|
187577
187956
|
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
187578
187957
|
...asPartial((0, import_smithy_client10.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
187579
|
-
...asPartial((0,
|
|
187958
|
+
...asPartial((0, import_protocol_http22.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
187580
187959
|
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
187581
187960
|
};
|
|
187582
187961
|
extensions3.forEach((extension) => extension.configure(extensionConfiguration));
|
|
@@ -187584,7 +187963,7 @@ var require_sso_oidc = __commonJS((exports, module) => {
|
|
|
187584
187963
|
...runtimeConfig,
|
|
187585
187964
|
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
187586
187965
|
...(0, import_smithy_client10.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
187587
|
-
...(0,
|
|
187966
|
+
...(0, import_protocol_http22.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
187588
187967
|
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
187589
187968
|
};
|
|
187590
187969
|
}, "resolveRuntimeExtensions");
|
|
@@ -188156,25 +188535,25 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init3 = {}) => {
|
|
|
188156
188535
|
var init_getNewSsoOidcToken = () => {};
|
|
188157
188536
|
|
|
188158
188537
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
188159
|
-
var validateTokenExpiry = (token) => {
|
|
188538
|
+
var import_property_provider14, validateTokenExpiry = (token) => {
|
|
188160
188539
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
188161
|
-
throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
188540
|
+
throw new import_property_provider14.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
188162
188541
|
}
|
|
188163
188542
|
};
|
|
188164
188543
|
var init_validateTokenExpiry = __esm(() => {
|
|
188165
|
-
|
|
188166
|
-
|
|
188544
|
+
import_property_provider14 = __toESM(require_dist_cjs16(), 1);
|
|
188545
|
+
init_constants8();
|
|
188167
188546
|
});
|
|
188168
188547
|
|
|
188169
188548
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
188170
|
-
var validateTokenKey = (key2, value, forRefresh = false) => {
|
|
188549
|
+
var import_property_provider15, validateTokenKey = (key2, value, forRefresh = false) => {
|
|
188171
188550
|
if (typeof value === "undefined") {
|
|
188172
|
-
throw new TokenProviderError(`Value not present for '${key2}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
188551
|
+
throw new import_property_provider15.TokenProviderError(`Value not present for '${key2}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
188173
188552
|
}
|
|
188174
188553
|
};
|
|
188175
188554
|
var init_validateTokenKey = __esm(() => {
|
|
188176
|
-
|
|
188177
|
-
|
|
188555
|
+
import_property_provider15 = __toESM(require_dist_cjs16(), 1);
|
|
188556
|
+
init_constants8();
|
|
188178
188557
|
});
|
|
188179
188558
|
|
|
188180
188559
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
@@ -188190,7 +188569,7 @@ var init_writeSSOTokenToFile = __esm(() => {
|
|
|
188190
188569
|
});
|
|
188191
188570
|
|
|
188192
188571
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
188193
|
-
var lastRefreshAttemptTime, fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
188572
|
+
var import_property_provider16, lastRefreshAttemptTime, fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
188194
188573
|
const init3 = {
|
|
188195
188574
|
..._init,
|
|
188196
188575
|
parentClientConfig: {
|
|
@@ -188205,19 +188584,19 @@ var lastRefreshAttemptTime, fromSso = (_init = {}) => async ({ callerClientConfi
|
|
|
188205
188584
|
});
|
|
188206
188585
|
const profile = profiles[profileName];
|
|
188207
188586
|
if (!profile) {
|
|
188208
|
-
throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
188587
|
+
throw new import_property_provider16.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
188209
188588
|
} else if (!profile["sso_session"]) {
|
|
188210
|
-
throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
188589
|
+
throw new import_property_provider16.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
188211
188590
|
}
|
|
188212
188591
|
const ssoSessionName = profile["sso_session"];
|
|
188213
188592
|
const ssoSessions = await loadSsoSessionData(init3);
|
|
188214
188593
|
const ssoSession = ssoSessions[ssoSessionName];
|
|
188215
188594
|
if (!ssoSession) {
|
|
188216
|
-
throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
188595
|
+
throw new import_property_provider16.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
188217
188596
|
}
|
|
188218
188597
|
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
|
|
188219
188598
|
if (!ssoSession[ssoSessionRequiredKey]) {
|
|
188220
|
-
throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
188599
|
+
throw new import_property_provider16.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
188221
188600
|
}
|
|
188222
188601
|
}
|
|
188223
188602
|
const ssoStartUrl = ssoSession["sso_start_url"];
|
|
@@ -188226,7 +188605,7 @@ var lastRefreshAttemptTime, fromSso = (_init = {}) => async ({ callerClientConfi
|
|
|
188226
188605
|
try {
|
|
188227
188606
|
ssoToken = await getSSOTokenFromFile2(ssoSessionName);
|
|
188228
188607
|
} catch (e3) {
|
|
188229
|
-
throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
|
|
188608
|
+
throw new import_property_provider16.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
|
|
188230
188609
|
}
|
|
188231
188610
|
validateTokenKey("accessToken", ssoToken.accessToken);
|
|
188232
188611
|
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
|
@@ -188266,9 +188645,9 @@ var lastRefreshAttemptTime, fromSso = (_init = {}) => async ({ callerClientConfi
|
|
|
188266
188645
|
}
|
|
188267
188646
|
};
|
|
188268
188647
|
var init_fromSso = __esm(() => {
|
|
188269
|
-
|
|
188648
|
+
import_property_provider16 = __toESM(require_dist_cjs16(), 1);
|
|
188270
188649
|
init_dist_es28();
|
|
188271
|
-
|
|
188650
|
+
init_constants8();
|
|
188272
188651
|
init_getNewSsoOidcToken();
|
|
188273
188652
|
init_validateTokenExpiry();
|
|
188274
188653
|
init_validateTokenKey();
|
|
@@ -188277,13 +188656,15 @@ var init_fromSso = __esm(() => {
|
|
|
188277
188656
|
});
|
|
188278
188657
|
|
|
188279
188658
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js
|
|
188659
|
+
var import_property_provider17;
|
|
188280
188660
|
var init_fromStatic2 = __esm(() => {
|
|
188281
|
-
|
|
188661
|
+
import_property_provider17 = __toESM(require_dist_cjs16(), 1);
|
|
188282
188662
|
});
|
|
188283
188663
|
|
|
188284
188664
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js
|
|
188665
|
+
var import_property_provider18;
|
|
188285
188666
|
var init_nodeProvider = __esm(() => {
|
|
188286
|
-
|
|
188667
|
+
import_property_provider18 = __toESM(require_dist_cjs16(), 1);
|
|
188287
188668
|
});
|
|
188288
188669
|
|
|
188289
188670
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js
|
|
@@ -188531,7 +188912,7 @@ var init_defaultUserAgent = __esm(() => {
|
|
|
188531
188912
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
|
|
188532
188913
|
var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID", UA_APP_ID_INI_NAME = "sdk_ua_app_id", UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id", NODE_APP_ID_CONFIG_OPTIONS;
|
|
188533
188914
|
var init_nodeAppIdConfigOptions = __esm(() => {
|
|
188534
|
-
|
|
188915
|
+
init_dist_es24();
|
|
188535
188916
|
NODE_APP_ID_CONFIG_OPTIONS = {
|
|
188536
188917
|
environmentVariableSelector: (env7) => env7[UA_APP_ID_ENV_NAME],
|
|
188537
188918
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
@@ -188637,8 +189018,8 @@ var cache4, defaultEndpointResolver2 = (endpointParams, context = {}) => {
|
|
|
188637
189018
|
}));
|
|
188638
189019
|
};
|
|
188639
189020
|
var init_endpointResolver2 = __esm(() => {
|
|
189021
|
+
init_dist_es23();
|
|
188640
189022
|
init_dist_es22();
|
|
188641
|
-
init_dist_es21();
|
|
188642
189023
|
init_ruleset2();
|
|
188643
189024
|
cache4 = new EndpointCache({
|
|
188644
189025
|
size: 50,
|
|
@@ -188689,7 +189070,7 @@ var init_runtimeConfig_shared = __esm(() => {
|
|
|
188689
189070
|
|
|
188690
189071
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
|
|
188691
189072
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV", AWS_REGION_ENV = "AWS_REGION", AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION", ENV_IMDS_DISABLED2 = "AWS_EC2_METADATA_DISABLED", DEFAULTS_MODE_OPTIONS, IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
188692
|
-
var
|
|
189073
|
+
var init_constants9 = __esm(() => {
|
|
188693
189074
|
DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
|
|
188694
189075
|
});
|
|
188695
189076
|
|
|
@@ -188708,7 +189089,7 @@ var init_defaultsModeConfig = __esm(() => {
|
|
|
188708
189089
|
});
|
|
188709
189090
|
|
|
188710
189091
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
188711
|
-
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) =>
|
|
189092
|
+
var import_property_provider19, resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => import_property_provider19.memoize(async () => {
|
|
188712
189093
|
const mode2 = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
188713
189094
|
switch (mode2?.toLowerCase()) {
|
|
188714
189095
|
case "auto":
|
|
@@ -188751,10 +189132,10 @@ var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTION
|
|
|
188751
189132
|
}
|
|
188752
189133
|
};
|
|
188753
189134
|
var init_resolveDefaultsModeConfig = __esm(() => {
|
|
188754
|
-
|
|
189135
|
+
init_dist_es25();
|
|
188755
189136
|
init_dist_es29();
|
|
188756
|
-
|
|
188757
|
-
|
|
189137
|
+
import_property_provider19 = __toESM(require_dist_cjs16(), 1);
|
|
189138
|
+
init_constants9();
|
|
188758
189139
|
init_defaultsModeConfig();
|
|
188759
189140
|
});
|
|
188760
189141
|
|
|
@@ -188796,7 +189177,7 @@ var init_runtimeConfig = __esm(() => {
|
|
|
188796
189177
|
init_package4();
|
|
188797
189178
|
import_core16 = __toESM(require_dist_cjs20(), 1);
|
|
188798
189179
|
init_dist_es42();
|
|
188799
|
-
|
|
189180
|
+
init_dist_es25();
|
|
188800
189181
|
init_dist_es43();
|
|
188801
189182
|
init_dist_es35();
|
|
188802
189183
|
init_dist_es29();
|
|
@@ -188923,10 +189304,10 @@ var init_SSOClient = __esm(() => {
|
|
|
188923
189304
|
init_dist_es14();
|
|
188924
189305
|
init_dist_es15();
|
|
188925
189306
|
init_dist_es16();
|
|
188926
|
-
init_dist_es23();
|
|
188927
189307
|
init_dist_es24();
|
|
189308
|
+
init_dist_es25();
|
|
188928
189309
|
import_core17 = __toESM(require_dist_cjs15(), 1);
|
|
188929
|
-
|
|
189310
|
+
init_dist_es27();
|
|
188930
189311
|
init_dist_es32();
|
|
188931
189312
|
init_dist_es35();
|
|
188932
189313
|
init_dist_es18();
|
|
@@ -189397,7 +189778,7 @@ var init_loadSso = __esm(() => {
|
|
|
189397
189778
|
});
|
|
189398
189779
|
|
|
189399
189780
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
189400
|
-
var import_client3, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger: logger3 }) => {
|
|
189781
|
+
var import_client3, import_property_provider20, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger: logger3 }) => {
|
|
189401
189782
|
let token;
|
|
189402
189783
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
189403
189784
|
if (ssoSession) {
|
|
@@ -189408,7 +189789,7 @@ var import_client3, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials
|
|
|
189408
189789
|
expiresAt: new Date(_token.expiration).toISOString()
|
|
189409
189790
|
};
|
|
189410
189791
|
} catch (e4) {
|
|
189411
|
-
throw new CredentialsProviderError(e4.message, {
|
|
189792
|
+
throw new import_property_provider20.CredentialsProviderError(e4.message, {
|
|
189412
189793
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
189413
189794
|
logger: logger3
|
|
189414
189795
|
});
|
|
@@ -189417,14 +189798,14 @@ var import_client3, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials
|
|
|
189417
189798
|
try {
|
|
189418
189799
|
token = await getSSOTokenFromFile2(ssoStartUrl);
|
|
189419
189800
|
} catch (e4) {
|
|
189420
|
-
throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
189801
|
+
throw new import_property_provider20.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
189421
189802
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
189422
189803
|
logger: logger3
|
|
189423
189804
|
});
|
|
189424
189805
|
}
|
|
189425
189806
|
}
|
|
189426
189807
|
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
|
189427
|
-
throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
189808
|
+
throw new import_property_provider20.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
189428
189809
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
189429
189810
|
logger: logger3
|
|
189430
189811
|
});
|
|
@@ -189443,14 +189824,14 @@ var import_client3, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials
|
|
|
189443
189824
|
accessToken
|
|
189444
189825
|
}));
|
|
189445
189826
|
} catch (e4) {
|
|
189446
|
-
throw new CredentialsProviderError(e4, {
|
|
189827
|
+
throw new import_property_provider20.CredentialsProviderError(e4, {
|
|
189447
189828
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
189448
189829
|
logger: logger3
|
|
189449
189830
|
});
|
|
189450
189831
|
}
|
|
189451
189832
|
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
|
|
189452
189833
|
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
|
189453
|
-
throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
189834
|
+
throw new import_property_provider20.CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
189454
189835
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
189455
189836
|
logger: logger3
|
|
189456
189837
|
});
|
|
@@ -189473,25 +189854,25 @@ var import_client3, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials
|
|
|
189473
189854
|
var init_resolveSSOCredentials = __esm(() => {
|
|
189474
189855
|
import_client3 = __toESM(require_client4(), 1);
|
|
189475
189856
|
init_dist_es41();
|
|
189476
|
-
|
|
189857
|
+
import_property_provider20 = __toESM(require_dist_cjs16(), 1);
|
|
189477
189858
|
init_dist_es28();
|
|
189478
189859
|
});
|
|
189479
189860
|
|
|
189480
189861
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
189481
|
-
var validateSsoProfile = (profile, logger3) => {
|
|
189862
|
+
var import_property_provider21, validateSsoProfile = (profile, logger3) => {
|
|
189482
189863
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
189483
189864
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
189484
|
-
throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
189865
|
+
throw new import_property_provider21.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
189485
189866
|
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger: logger3 });
|
|
189486
189867
|
}
|
|
189487
189868
|
return profile;
|
|
189488
189869
|
};
|
|
189489
189870
|
var init_validateSsoProfile = __esm(() => {
|
|
189490
|
-
|
|
189871
|
+
import_property_provider21 = __toESM(require_dist_cjs16(), 1);
|
|
189491
189872
|
});
|
|
189492
189873
|
|
|
189493
189874
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
189494
|
-
var fromSSO = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
189875
|
+
var import_property_provider22, fromSSO = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
189495
189876
|
init3.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
189496
189877
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init3;
|
|
189497
189878
|
const { ssoClient } = init3;
|
|
@@ -189502,10 +189883,10 @@ var fromSSO = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
189502
189883
|
const profiles = await parseKnownFiles(init3);
|
|
189503
189884
|
const profile = profiles[profileName];
|
|
189504
189885
|
if (!profile) {
|
|
189505
|
-
throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init3.logger });
|
|
189886
|
+
throw new import_property_provider22.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init3.logger });
|
|
189506
189887
|
}
|
|
189507
189888
|
if (!isSsoProfile(profile)) {
|
|
189508
|
-
throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
189889
|
+
throw new import_property_provider22.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
189509
189890
|
logger: init3.logger
|
|
189510
189891
|
});
|
|
189511
189892
|
}
|
|
@@ -189514,13 +189895,13 @@ var fromSSO = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
189514
189895
|
const session = ssoSessions[profile.sso_session];
|
|
189515
189896
|
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
|
189516
189897
|
if (ssoRegion && ssoRegion !== session.sso_region) {
|
|
189517
|
-
throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
189898
|
+
throw new import_property_provider22.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
189518
189899
|
tryNextLink: false,
|
|
189519
189900
|
logger: init3.logger
|
|
189520
189901
|
});
|
|
189521
189902
|
}
|
|
189522
189903
|
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
|
189523
|
-
throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
189904
|
+
throw new import_property_provider22.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
189524
189905
|
tryNextLink: false,
|
|
189525
189906
|
logger: init3.logger
|
|
189526
189907
|
});
|
|
@@ -189541,7 +189922,7 @@ var fromSSO = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
189541
189922
|
profile: profileName
|
|
189542
189923
|
});
|
|
189543
189924
|
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
189544
|
-
throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init3.logger });
|
|
189925
|
+
throw new import_property_provider22.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init3.logger });
|
|
189545
189926
|
} else {
|
|
189546
189927
|
return resolveSSOCredentials({
|
|
189547
189928
|
ssoStartUrl,
|
|
@@ -189557,7 +189938,7 @@ var fromSSO = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
189557
189938
|
}
|
|
189558
189939
|
};
|
|
189559
189940
|
var init_fromSSO = __esm(() => {
|
|
189560
|
-
|
|
189941
|
+
import_property_provider22 = __toESM(require_dist_cjs16(), 1);
|
|
189561
189942
|
init_dist_es28();
|
|
189562
189943
|
init_resolveSSOCredentials();
|
|
189563
189944
|
init_validateSsoProfile();
|
|
@@ -189580,13 +189961,13 @@ var init_dist_es48 = __esm(() => {
|
|
|
189580
189961
|
});
|
|
189581
189962
|
|
|
189582
189963
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
189583
|
-
var import_client4, resolveCredentialSource = (credentialSource, profileName, logger3) => {
|
|
189964
|
+
var import_client4, import_property_provider23, resolveCredentialSource = (credentialSource, profileName, logger3) => {
|
|
189584
189965
|
const sourceProvidersMap = {
|
|
189585
189966
|
EcsContainer: async (options2) => {
|
|
189586
189967
|
const { fromHttp: fromHttp2 } = await Promise.resolve().then(() => (init_dist_es40(), exports_dist_es3));
|
|
189587
189968
|
const { fromContainerMetadata: fromContainerMetadata3 } = await Promise.resolve().then(() => (init_dist_es39(), exports_dist_es2));
|
|
189588
189969
|
logger3?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
189589
|
-
return async () => chain(fromHttp2(options2 ?? {}), fromContainerMetadata3(options2))().then(setNamedProvider);
|
|
189970
|
+
return async () => import_property_provider23.chain(fromHttp2(options2 ?? {}), fromContainerMetadata3(options2))().then(setNamedProvider);
|
|
189590
189971
|
},
|
|
189591
189972
|
Ec2InstanceMetadata: async (options2) => {
|
|
189592
189973
|
logger3?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
@@ -189602,12 +189983,12 @@ var import_client4, resolveCredentialSource = (credentialSource, profileName, lo
|
|
|
189602
189983
|
if (credentialSource in sourceProvidersMap) {
|
|
189603
189984
|
return sourceProvidersMap[credentialSource];
|
|
189604
189985
|
} else {
|
|
189605
|
-
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger: logger3 });
|
|
189986
|
+
throw new import_property_provider23.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger: logger3 });
|
|
189606
189987
|
}
|
|
189607
189988
|
}, setNamedProvider = (creds) => import_client4.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
189608
189989
|
var init_resolveCredentialSource = __esm(() => {
|
|
189609
189990
|
import_client4 = __toESM(require_client4(), 1);
|
|
189610
|
-
|
|
189991
|
+
import_property_provider23 = __toESM(require_dist_cjs16(), 1);
|
|
189611
189992
|
});
|
|
189612
189993
|
|
|
189613
189994
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
|
|
@@ -190301,7 +190682,7 @@ var require_sts = __commonJS((exports, module) => {
|
|
|
190301
190682
|
}
|
|
190302
190683
|
};
|
|
190303
190684
|
var import_core22 = require_dist_cjs20();
|
|
190304
|
-
var
|
|
190685
|
+
var import_protocol_http23 = require_dist_cjs2();
|
|
190305
190686
|
var import_smithy_client32 = require_dist_cjs19();
|
|
190306
190687
|
var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
190307
190688
|
const headers = SHARED_HEADERS;
|
|
@@ -190772,7 +191153,7 @@ var require_sts = __commonJS((exports, module) => {
|
|
|
190772
191153
|
if (body !== undefined) {
|
|
190773
191154
|
contents.body = body;
|
|
190774
191155
|
}
|
|
190775
|
-
return new
|
|
191156
|
+
return new import_protocol_http23.HttpRequest(contents);
|
|
190776
191157
|
}, "buildHttpRpcRequest");
|
|
190777
191158
|
var SHARED_HEADERS = {
|
|
190778
191159
|
"content-type": "application/x-www-form-urlencoded"
|
|
@@ -190984,7 +191365,7 @@ var require_sts = __commonJS((exports, module) => {
|
|
|
190984
191365
|
});
|
|
190985
191366
|
|
|
190986
191367
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
190987
|
-
var import_client5, isAssumeRoleProfile = (arg, { profile = "default", logger: logger3 } = {}) => {
|
|
191368
|
+
var import_client5, import_property_provider24, isAssumeRoleProfile = (arg, { profile = "default", logger: logger3 } = {}) => {
|
|
190988
191369
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger: logger3 }) || isCredentialSourceProfile(arg, { profile, logger: logger3 }));
|
|
190989
191370
|
}, isAssumeRoleWithSourceProfile = (arg, { profile, logger: logger3 }) => {
|
|
190990
191371
|
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
@@ -191014,7 +191395,7 @@ var import_client5, isAssumeRoleProfile = (arg, { profile = "default", logger: l
|
|
|
191014
191395
|
}, options2.clientPlugins);
|
|
191015
191396
|
}
|
|
191016
191397
|
if (source_profile && source_profile in visitedProfiles) {
|
|
191017
|
-
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options2)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options2.logger });
|
|
191398
|
+
throw new import_property_provider24.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options2)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options2.logger });
|
|
191018
191399
|
}
|
|
191019
191400
|
options2.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
191020
191401
|
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options2, {
|
|
@@ -191033,7 +191414,7 @@ var import_client5, isAssumeRoleProfile = (arg, { profile = "default", logger: l
|
|
|
191033
191414
|
const { mfa_serial } = profileData;
|
|
191034
191415
|
if (mfa_serial) {
|
|
191035
191416
|
if (!options2.mfaCodeProvider) {
|
|
191036
|
-
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options2.logger, tryNextLink: false });
|
|
191417
|
+
throw new import_property_provider24.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options2.logger, tryNextLink: false });
|
|
191037
191418
|
}
|
|
191038
191419
|
params2.SerialNumber = mfa_serial;
|
|
191039
191420
|
params2.TokenCode = await options2.mfaCodeProvider(mfa_serial);
|
|
@@ -191046,7 +191427,7 @@ var import_client5, isAssumeRoleProfile = (arg, { profile = "default", logger: l
|
|
|
191046
191427
|
};
|
|
191047
191428
|
var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
191048
191429
|
import_client5 = __toESM(require_client4(), 1);
|
|
191049
|
-
|
|
191430
|
+
import_property_provider24 = __toESM(require_dist_cjs16(), 1);
|
|
191050
191431
|
init_dist_es28();
|
|
191051
191432
|
init_resolveCredentialSource();
|
|
191052
191433
|
init_resolveProfileData();
|
|
@@ -191089,7 +191470,7 @@ var init_getValidatedProcessCredentials = __esm(() => {
|
|
|
191089
191470
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
191090
191471
|
import { exec as exec3 } from "child_process";
|
|
191091
191472
|
import { promisify as promisify2 } from "util";
|
|
191092
|
-
var resolveProcessCredentials = async (profileName, profiles, logger3) => {
|
|
191473
|
+
var import_property_provider25, resolveProcessCredentials = async (profileName, profiles, logger3) => {
|
|
191093
191474
|
const profile = profiles[profileName];
|
|
191094
191475
|
if (profiles[profileName]) {
|
|
191095
191476
|
const credentialProcess = profile["credential_process"];
|
|
@@ -191105,19 +191486,19 @@ var resolveProcessCredentials = async (profileName, profiles, logger3) => {
|
|
|
191105
191486
|
}
|
|
191106
191487
|
return getValidatedProcessCredentials(profileName, data2, profiles);
|
|
191107
191488
|
} catch (error) {
|
|
191108
|
-
throw new CredentialsProviderError(error.message, { logger: logger3 });
|
|
191489
|
+
throw new import_property_provider25.CredentialsProviderError(error.message, { logger: logger3 });
|
|
191109
191490
|
}
|
|
191110
191491
|
} else {
|
|
191111
|
-
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger: logger3 });
|
|
191492
|
+
throw new import_property_provider25.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger: logger3 });
|
|
191112
191493
|
}
|
|
191113
191494
|
} else {
|
|
191114
|
-
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
191495
|
+
throw new import_property_provider25.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
191115
191496
|
logger: logger3
|
|
191116
191497
|
});
|
|
191117
191498
|
}
|
|
191118
191499
|
};
|
|
191119
191500
|
var init_resolveProcessCredentials = __esm(() => {
|
|
191120
|
-
|
|
191501
|
+
import_property_provider25 = __toESM(require_dist_cjs16(), 1);
|
|
191121
191502
|
init_getValidatedProcessCredentials();
|
|
191122
191503
|
});
|
|
191123
191504
|
|
|
@@ -191879,7 +192260,7 @@ var require_sts2 = __commonJS((exports, module) => {
|
|
|
191879
192260
|
}
|
|
191880
192261
|
};
|
|
191881
192262
|
var import_core22 = require_dist_cjs20();
|
|
191882
|
-
var
|
|
192263
|
+
var import_protocol_http23 = require_dist_cjs2();
|
|
191883
192264
|
var import_smithy_client32 = require_dist_cjs19();
|
|
191884
192265
|
var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
191885
192266
|
const headers = SHARED_HEADERS;
|
|
@@ -192350,7 +192731,7 @@ var require_sts2 = __commonJS((exports, module) => {
|
|
|
192350
192731
|
if (body !== undefined) {
|
|
192351
192732
|
contents.body = body;
|
|
192352
192733
|
}
|
|
192353
|
-
return new
|
|
192734
|
+
return new import_protocol_http23.HttpRequest(contents);
|
|
192354
192735
|
}, "buildHttpRpcRequest");
|
|
192355
192736
|
var SHARED_HEADERS = {
|
|
192356
192737
|
"content-type": "application/x-www-form-urlencoded"
|
|
@@ -192590,13 +192971,13 @@ var fromWebToken = (init3) => async (awsIdentityProperties) => {
|
|
|
192590
192971
|
|
|
192591
192972
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
192592
192973
|
import { readFileSync as readFileSync2 } from "fs";
|
|
192593
|
-
var import_client10, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init3 = {}) => async () => {
|
|
192974
|
+
var import_client10, import_property_provider26, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init3 = {}) => async () => {
|
|
192594
192975
|
init3.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
192595
192976
|
const webIdentityTokenFile = init3?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
|
192596
192977
|
const roleArn = init3?.roleArn ?? process.env[ENV_ROLE_ARN];
|
|
192597
192978
|
const roleSessionName = init3?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
|
|
192598
192979
|
if (!webIdentityTokenFile || !roleArn) {
|
|
192599
|
-
throw new CredentialsProviderError("Web identity configuration not specified", {
|
|
192980
|
+
throw new import_property_provider26.CredentialsProviderError("Web identity configuration not specified", {
|
|
192600
192981
|
logger: init3.logger
|
|
192601
192982
|
});
|
|
192602
192983
|
}
|
|
@@ -192613,7 +192994,7 @@ var import_client10, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_AR
|
|
|
192613
192994
|
};
|
|
192614
192995
|
var init_fromTokenFile = __esm(() => {
|
|
192615
192996
|
import_client10 = __toESM(require_client4(), 1);
|
|
192616
|
-
|
|
192997
|
+
import_property_provider26 = __toESM(require_dist_cjs16(), 1);
|
|
192617
192998
|
});
|
|
192618
192999
|
|
|
192619
193000
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
|
|
@@ -192640,7 +193021,7 @@ var init_resolveWebIdentityCredentials = __esm(() => {
|
|
|
192640
193021
|
});
|
|
192641
193022
|
|
|
192642
193023
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
192643
|
-
var resolveProfileData = async (profileName, profiles, options2, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
193024
|
+
var import_property_provider27, resolveProfileData = async (profileName, profiles, options2, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
192644
193025
|
const data2 = profiles[profileName];
|
|
192645
193026
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data2)) {
|
|
192646
193027
|
return resolveStaticCredentials(data2, options2);
|
|
@@ -192660,10 +193041,10 @@ var resolveProfileData = async (profileName, profiles, options2, visitedProfiles
|
|
|
192660
193041
|
if (isSsoProfile3(data2)) {
|
|
192661
193042
|
return await resolveSsoCredentials(profileName, data2, options2);
|
|
192662
193043
|
}
|
|
192663
|
-
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options2.logger });
|
|
193044
|
+
throw new import_property_provider27.CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options2.logger });
|
|
192664
193045
|
};
|
|
192665
193046
|
var init_resolveProfileData = __esm(() => {
|
|
192666
|
-
|
|
193047
|
+
import_property_provider27 = __toESM(require_dist_cjs16(), 1);
|
|
192667
193048
|
init_resolveAssumeRoleCredentials();
|
|
192668
193049
|
init_resolveProcessCredentials2();
|
|
192669
193050
|
init_resolveSsoCredentials();
|
|
@@ -192701,7 +193082,7 @@ var init_dist_es51 = __esm(() => {
|
|
|
192701
193082
|
});
|
|
192702
193083
|
|
|
192703
193084
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
192704
|
-
var multipleCredentialSourceWarningEmitted = false, defaultProvider = (init3 = {}) =>
|
|
193085
|
+
var import_property_provider28, multipleCredentialSourceWarningEmitted = false, defaultProvider = (init3 = {}) => import_property_provider28.memoize(import_property_provider28.chain(async () => {
|
|
192705
193086
|
const profile = init3.profile ?? process.env[ENV_PROFILE];
|
|
192706
193087
|
if (profile) {
|
|
192707
193088
|
const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET];
|
|
@@ -192720,7 +193101,7 @@ var multipleCredentialSourceWarningEmitted = false, defaultProvider = (init3 = {
|
|
|
192720
193101
|
multipleCredentialSourceWarningEmitted = true;
|
|
192721
193102
|
}
|
|
192722
193103
|
}
|
|
192723
|
-
throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
|
|
193104
|
+
throw new import_property_provider28.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
|
|
192724
193105
|
logger: init3.logger,
|
|
192725
193106
|
tryNextLink: true
|
|
192726
193107
|
});
|
|
@@ -192731,7 +193112,7 @@ var multipleCredentialSourceWarningEmitted = false, defaultProvider = (init3 = {
|
|
|
192731
193112
|
init3.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
|
|
192732
193113
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init3;
|
|
192733
193114
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
192734
|
-
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init3.logger });
|
|
193115
|
+
throw new import_property_provider28.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init3.logger });
|
|
192735
193116
|
}
|
|
192736
193117
|
const { fromSSO: fromSSO3 } = await Promise.resolve().then(() => (init_dist_es48(), exports_dist_es4));
|
|
192737
193118
|
return fromSSO3(init3)();
|
|
@@ -192751,14 +193132,14 @@ var multipleCredentialSourceWarningEmitted = false, defaultProvider = (init3 = {
|
|
|
192751
193132
|
init3.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
|
|
192752
193133
|
return (await remoteProvider(init3))();
|
|
192753
193134
|
}, async () => {
|
|
192754
|
-
throw new CredentialsProviderError("Could not load credentials from any providers", {
|
|
193135
|
+
throw new import_property_provider28.CredentialsProviderError("Could not load credentials from any providers", {
|
|
192755
193136
|
tryNextLink: false,
|
|
192756
193137
|
logger: init3.logger
|
|
192757
193138
|
});
|
|
192758
193139
|
}), credentialsTreatedAsExpired, credentialsWillNeedRefresh), credentialsWillNeedRefresh = (credentials) => credentials?.expiration !== undefined, credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
192759
193140
|
var init_defaultProvider = __esm(() => {
|
|
192760
193141
|
init_dist_es38();
|
|
192761
|
-
|
|
193142
|
+
import_property_provider28 = __toESM(require_dist_cjs16(), 1);
|
|
192762
193143
|
init_dist_es28();
|
|
192763
193144
|
init_remoteProvider();
|
|
192764
193145
|
});
|
|
@@ -192770,13 +193151,13 @@ var init_dist_es52 = __esm(() => {
|
|
|
192770
193151
|
|
|
192771
193152
|
// ../../../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-es/NodeDisableMultiregionAccessPointConfigOptions.js
|
|
192772
193153
|
var init_NodeDisableMultiregionAccessPointConfigOptions = __esm(() => {
|
|
192773
|
-
|
|
193154
|
+
init_dist_es20();
|
|
192774
193155
|
});
|
|
192775
193156
|
|
|
192776
193157
|
// ../../../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-es/NodeUseArnRegionConfigOptions.js
|
|
192777
193158
|
var NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION", NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region", NODE_USE_ARN_REGION_CONFIG_OPTIONS;
|
|
192778
193159
|
var init_NodeUseArnRegionConfigOptions = __esm(() => {
|
|
192779
|
-
|
|
193160
|
+
init_dist_es20();
|
|
192780
193161
|
NODE_USE_ARN_REGION_CONFIG_OPTIONS = {
|
|
192781
193162
|
environmentVariableSelector: (env7) => booleanSelector(env7, NODE_USE_ARN_REGION_ENV_NAME, SelectorType2.ENV),
|
|
192782
193163
|
configFileSelector: (profile) => booleanSelector(profile, NODE_USE_ARN_REGION_INI_NAME, SelectorType2.CONFIG),
|
|
@@ -192807,7 +193188,7 @@ var init_dist_es53 = __esm(() => {
|
|
|
192807
193188
|
});
|
|
192808
193189
|
|
|
192809
193190
|
// ../../../../node_modules/@smithy/eventstream-codec/dist-es/Int64.js
|
|
192810
|
-
class
|
|
193191
|
+
class Int642 {
|
|
192811
193192
|
constructor(bytes) {
|
|
192812
193193
|
this.bytes = bytes;
|
|
192813
193194
|
if (bytes.byteLength !== 8) {
|
|
@@ -192823,23 +193204,23 @@ class Int64 {
|
|
|
192823
193204
|
bytes[i6] = remaining;
|
|
192824
193205
|
}
|
|
192825
193206
|
if (number < 0) {
|
|
192826
|
-
|
|
193207
|
+
negate2(bytes);
|
|
192827
193208
|
}
|
|
192828
|
-
return new
|
|
193209
|
+
return new Int642(bytes);
|
|
192829
193210
|
}
|
|
192830
193211
|
valueOf() {
|
|
192831
193212
|
const bytes = this.bytes.slice(0);
|
|
192832
193213
|
const negative = bytes[0] & 128;
|
|
192833
193214
|
if (negative) {
|
|
192834
|
-
|
|
193215
|
+
negate2(bytes);
|
|
192835
193216
|
}
|
|
192836
|
-
return parseInt(
|
|
193217
|
+
return parseInt(import_util_hex_encoding6.toHex(bytes), 16) * (negative ? -1 : 1);
|
|
192837
193218
|
}
|
|
192838
193219
|
toString() {
|
|
192839
193220
|
return String(this.valueOf());
|
|
192840
193221
|
}
|
|
192841
193222
|
}
|
|
192842
|
-
function
|
|
193223
|
+
function negate2(bytes) {
|
|
192843
193224
|
for (let i6 = 0;i6 < 8; i6++) {
|
|
192844
193225
|
bytes[i6] ^= 255;
|
|
192845
193226
|
}
|
|
@@ -192849,9 +193230,9 @@ function negate(bytes) {
|
|
|
192849
193230
|
break;
|
|
192850
193231
|
}
|
|
192851
193232
|
}
|
|
192852
|
-
var
|
|
193233
|
+
var import_util_hex_encoding6;
|
|
192853
193234
|
var init_Int64 = __esm(() => {
|
|
192854
|
-
|
|
193235
|
+
import_util_hex_encoding6 = __toESM(require_dist_cjs13(), 1);
|
|
192855
193236
|
});
|
|
192856
193237
|
|
|
192857
193238
|
// ../../../../node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js
|
|
@@ -192913,15 +193294,15 @@ class HeaderMarshaller {
|
|
|
192913
193294
|
case "timestamp":
|
|
192914
193295
|
const tsBytes = new Uint8Array(9);
|
|
192915
193296
|
tsBytes[0] = 8;
|
|
192916
|
-
tsBytes.set(
|
|
193297
|
+
tsBytes.set(Int642.fromNumber(header.value.valueOf()).bytes, 1);
|
|
192917
193298
|
return tsBytes;
|
|
192918
193299
|
case "uuid":
|
|
192919
|
-
if (!
|
|
193300
|
+
if (!UUID_PATTERN2.test(header.value)) {
|
|
192920
193301
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
192921
193302
|
}
|
|
192922
193303
|
const uuidBytes = new Uint8Array(17);
|
|
192923
193304
|
uuidBytes[0] = 9;
|
|
192924
|
-
uuidBytes.set(
|
|
193305
|
+
uuidBytes.set(import_util_hex_encoding7.fromHex(header.value.replace(/\-/g, "")), 1);
|
|
192925
193306
|
return uuidBytes;
|
|
192926
193307
|
}
|
|
192927
193308
|
}
|
|
@@ -192968,7 +193349,7 @@ class HeaderMarshaller {
|
|
|
192968
193349
|
case 5:
|
|
192969
193350
|
out[name] = {
|
|
192970
193351
|
type: LONG_TAG,
|
|
192971
|
-
value: new
|
|
193352
|
+
value: new Int642(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
|
|
192972
193353
|
};
|
|
192973
193354
|
position += 8;
|
|
192974
193355
|
break;
|
|
@@ -192993,7 +193374,7 @@ class HeaderMarshaller {
|
|
|
192993
193374
|
case 8:
|
|
192994
193375
|
out[name] = {
|
|
192995
193376
|
type: TIMESTAMP_TAG,
|
|
192996
|
-
value: new Date(new
|
|
193377
|
+
value: new Date(new Int642(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
|
|
192997
193378
|
};
|
|
192998
193379
|
position += 8;
|
|
192999
193380
|
break;
|
|
@@ -193002,7 +193383,7 @@ class HeaderMarshaller {
|
|
|
193002
193383
|
position += 16;
|
|
193003
193384
|
out[name] = {
|
|
193004
193385
|
type: UUID_TAG,
|
|
193005
|
-
value: `${
|
|
193386
|
+
value: `${import_util_hex_encoding7.toHex(uuidBytes.subarray(0, 4))}-${import_util_hex_encoding7.toHex(uuidBytes.subarray(4, 6))}-${import_util_hex_encoding7.toHex(uuidBytes.subarray(6, 8))}-${import_util_hex_encoding7.toHex(uuidBytes.subarray(8, 10))}-${import_util_hex_encoding7.toHex(uuidBytes.subarray(10))}`
|
|
193006
193387
|
};
|
|
193007
193388
|
break;
|
|
193008
193389
|
default:
|
|
@@ -193012,23 +193393,23 @@ class HeaderMarshaller {
|
|
|
193012
193393
|
return out;
|
|
193013
193394
|
}
|
|
193014
193395
|
}
|
|
193015
|
-
var
|
|
193396
|
+
var import_util_hex_encoding7, HEADER_VALUE_TYPE2, BOOLEAN_TAG = "boolean", BYTE_TAG = "byte", SHORT_TAG = "short", INT_TAG = "integer", LONG_TAG = "long", BINARY_TAG = "binary", STRING_TAG = "string", TIMESTAMP_TAG = "timestamp", UUID_TAG = "uuid", UUID_PATTERN2;
|
|
193016
193397
|
var init_HeaderMarshaller = __esm(() => {
|
|
193017
|
-
|
|
193398
|
+
import_util_hex_encoding7 = __toESM(require_dist_cjs13(), 1);
|
|
193018
193399
|
init_Int64();
|
|
193019
|
-
(function(
|
|
193020
|
-
|
|
193021
|
-
|
|
193022
|
-
|
|
193023
|
-
|
|
193024
|
-
|
|
193025
|
-
|
|
193026
|
-
|
|
193027
|
-
|
|
193028
|
-
|
|
193029
|
-
|
|
193030
|
-
})(
|
|
193031
|
-
|
|
193400
|
+
(function(HEADER_VALUE_TYPE3) {
|
|
193401
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["boolTrue"] = 0] = "boolTrue";
|
|
193402
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["boolFalse"] = 1] = "boolFalse";
|
|
193403
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["byte"] = 2] = "byte";
|
|
193404
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["short"] = 3] = "short";
|
|
193405
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["integer"] = 4] = "integer";
|
|
193406
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["long"] = 5] = "long";
|
|
193407
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["byteArray"] = 6] = "byteArray";
|
|
193408
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["string"] = 7] = "string";
|
|
193409
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["timestamp"] = 8] = "timestamp";
|
|
193410
|
+
HEADER_VALUE_TYPE3[HEADER_VALUE_TYPE3["uuid"] = 9] = "uuid";
|
|
193411
|
+
})(HEADER_VALUE_TYPE2 || (HEADER_VALUE_TYPE2 = {}));
|
|
193412
|
+
UUID_PATTERN2 = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
|
193032
193413
|
});
|
|
193033
193414
|
|
|
193034
193415
|
// ../../../../node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js
|
|
@@ -193568,9 +193949,9 @@ var init_runtimeConfig2 = __esm(() => {
|
|
|
193568
193949
|
init_dist_es52();
|
|
193569
193950
|
init_dist_es53();
|
|
193570
193951
|
init_dist_es13();
|
|
193571
|
-
|
|
193952
|
+
init_dist_es21();
|
|
193572
193953
|
init_dist_es42();
|
|
193573
|
-
|
|
193954
|
+
init_dist_es25();
|
|
193574
193955
|
init_dist_es56();
|
|
193575
193956
|
init_dist_es43();
|
|
193576
193957
|
init_dist_es57();
|
|
@@ -193654,12 +194035,12 @@ var init_S3Client = __esm(() => {
|
|
|
193654
194035
|
init_dist_es14();
|
|
193655
194036
|
init_dist_es15();
|
|
193656
194037
|
init_dist_es16();
|
|
193657
|
-
|
|
193658
|
-
init_dist_es23();
|
|
194038
|
+
init_dist_es21();
|
|
193659
194039
|
init_dist_es24();
|
|
193660
|
-
import_core24 = __toESM(require_dist_cjs15(), 1);
|
|
193661
194040
|
init_dist_es25();
|
|
194041
|
+
import_core24 = __toESM(require_dist_cjs15(), 1);
|
|
193662
194042
|
init_dist_es26();
|
|
194043
|
+
init_dist_es27();
|
|
193663
194044
|
init_dist_es32();
|
|
193664
194045
|
init_dist_es35();
|
|
193665
194046
|
init_dist_es18();
|
|
@@ -193714,7 +194095,7 @@ var init_S3Client = __esm(() => {
|
|
|
193714
194095
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/AbortMultipartUploadCommand.js
|
|
193715
194096
|
var AbortMultipartUploadCommand;
|
|
193716
194097
|
var init_AbortMultipartUploadCommand = __esm(() => {
|
|
193717
|
-
|
|
194098
|
+
init_dist_es21();
|
|
193718
194099
|
init_dist_es32();
|
|
193719
194100
|
init_dist_es31();
|
|
193720
194101
|
init_dist_es18();
|
|
@@ -193802,7 +194183,7 @@ var init_dist_es58 = __esm(() => {
|
|
|
193802
194183
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/CompleteMultipartUploadCommand.js
|
|
193803
194184
|
var CompleteMultipartUploadCommand;
|
|
193804
194185
|
var init_CompleteMultipartUploadCommand = __esm(() => {
|
|
193805
|
-
|
|
194186
|
+
init_dist_es21();
|
|
193806
194187
|
init_dist_es58();
|
|
193807
194188
|
init_dist_es32();
|
|
193808
194189
|
init_dist_es31();
|
|
@@ -193828,7 +194209,7 @@ var init_CompleteMultipartUploadCommand = __esm(() => {
|
|
|
193828
194209
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/CopyObjectCommand.js
|
|
193829
194210
|
var CopyObjectCommand;
|
|
193830
194211
|
var init_CopyObjectCommand = __esm(() => {
|
|
193831
|
-
|
|
194212
|
+
init_dist_es21();
|
|
193832
194213
|
init_dist_es58();
|
|
193833
194214
|
init_dist_es32();
|
|
193834
194215
|
init_dist_es31();
|
|
@@ -193888,7 +194269,7 @@ var init_dist_es59 = __esm(() => {
|
|
|
193888
194269
|
var CreateBucketCommand;
|
|
193889
194270
|
var init_CreateBucketCommand = __esm(() => {
|
|
193890
194271
|
init_dist_es59();
|
|
193891
|
-
|
|
194272
|
+
init_dist_es21();
|
|
193892
194273
|
init_dist_es32();
|
|
193893
194274
|
init_dist_es31();
|
|
193894
194275
|
init_dist_es18();
|
|
@@ -193939,7 +194320,7 @@ var init_CreateBucketMetadataTableConfigurationCommand = __esm(() => {
|
|
|
193939
194320
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateMultipartUploadCommand.js
|
|
193940
194321
|
var CreateMultipartUploadCommand;
|
|
193941
194322
|
var init_CreateMultipartUploadCommand = __esm(() => {
|
|
193942
|
-
|
|
194323
|
+
init_dist_es21();
|
|
193943
194324
|
init_dist_es58();
|
|
193944
194325
|
init_dist_es32();
|
|
193945
194326
|
init_dist_es31();
|
|
@@ -194259,7 +194640,7 @@ var init_DeleteBucketWebsiteCommand = __esm(() => {
|
|
|
194259
194640
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js
|
|
194260
194641
|
var DeleteObjectCommand;
|
|
194261
194642
|
var init_DeleteObjectCommand = __esm(() => {
|
|
194262
|
-
|
|
194643
|
+
init_dist_es21();
|
|
194263
194644
|
init_dist_es32();
|
|
194264
194645
|
init_dist_es31();
|
|
194265
194646
|
init_dist_es18();
|
|
@@ -194283,7 +194664,7 @@ var init_DeleteObjectCommand = __esm(() => {
|
|
|
194283
194664
|
var DeleteObjectsCommand;
|
|
194284
194665
|
var init_DeleteObjectsCommand = __esm(() => {
|
|
194285
194666
|
init_dist_es13();
|
|
194286
|
-
|
|
194667
|
+
init_dist_es21();
|
|
194287
194668
|
init_dist_es32();
|
|
194288
194669
|
init_dist_es31();
|
|
194289
194670
|
init_dist_es18();
|
|
@@ -194309,7 +194690,7 @@ var init_DeleteObjectsCommand = __esm(() => {
|
|
|
194309
194690
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectTaggingCommand.js
|
|
194310
194691
|
var DeleteObjectTaggingCommand;
|
|
194311
194692
|
var init_DeleteObjectTaggingCommand = __esm(() => {
|
|
194312
|
-
|
|
194693
|
+
init_dist_es21();
|
|
194313
194694
|
init_dist_es32();
|
|
194314
194695
|
init_dist_es31();
|
|
194315
194696
|
init_dist_es18();
|
|
@@ -194352,7 +194733,7 @@ var init_DeletePublicAccessBlockCommand = __esm(() => {
|
|
|
194352
194733
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAccelerateConfigurationCommand.js
|
|
194353
194734
|
var GetBucketAccelerateConfigurationCommand;
|
|
194354
194735
|
var init_GetBucketAccelerateConfigurationCommand = __esm(() => {
|
|
194355
|
-
|
|
194736
|
+
init_dist_es21();
|
|
194356
194737
|
init_dist_es32();
|
|
194357
194738
|
init_dist_es31();
|
|
194358
194739
|
init_dist_es18();
|
|
@@ -194375,7 +194756,7 @@ var init_GetBucketAccelerateConfigurationCommand = __esm(() => {
|
|
|
194375
194756
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAclCommand.js
|
|
194376
194757
|
var GetBucketAclCommand;
|
|
194377
194758
|
var init_GetBucketAclCommand = __esm(() => {
|
|
194378
|
-
|
|
194759
|
+
init_dist_es21();
|
|
194379
194760
|
init_dist_es32();
|
|
194380
194761
|
init_dist_es31();
|
|
194381
194762
|
init_dist_es18();
|
|
@@ -194398,7 +194779,7 @@ var init_GetBucketAclCommand = __esm(() => {
|
|
|
194398
194779
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js
|
|
194399
194780
|
var GetBucketAnalyticsConfigurationCommand;
|
|
194400
194781
|
var init_GetBucketAnalyticsConfigurationCommand = __esm(() => {
|
|
194401
|
-
|
|
194782
|
+
init_dist_es21();
|
|
194402
194783
|
init_dist_es32();
|
|
194403
194784
|
init_dist_es31();
|
|
194404
194785
|
init_dist_es18();
|
|
@@ -194421,7 +194802,7 @@ var init_GetBucketAnalyticsConfigurationCommand = __esm(() => {
|
|
|
194421
194802
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketCorsCommand.js
|
|
194422
194803
|
var GetBucketCorsCommand;
|
|
194423
194804
|
var init_GetBucketCorsCommand = __esm(() => {
|
|
194424
|
-
|
|
194805
|
+
init_dist_es21();
|
|
194425
194806
|
init_dist_es32();
|
|
194426
194807
|
init_dist_es31();
|
|
194427
194808
|
init_dist_es18();
|
|
@@ -194444,7 +194825,7 @@ var init_GetBucketCorsCommand = __esm(() => {
|
|
|
194444
194825
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketEncryptionCommand.js
|
|
194445
194826
|
var GetBucketEncryptionCommand;
|
|
194446
194827
|
var init_GetBucketEncryptionCommand = __esm(() => {
|
|
194447
|
-
|
|
194828
|
+
init_dist_es21();
|
|
194448
194829
|
init_dist_es32();
|
|
194449
194830
|
init_dist_es31();
|
|
194450
194831
|
init_dist_es18();
|
|
@@ -194468,7 +194849,7 @@ var init_GetBucketEncryptionCommand = __esm(() => {
|
|
|
194468
194849
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js
|
|
194469
194850
|
var GetBucketIntelligentTieringConfigurationCommand;
|
|
194470
194851
|
var init_GetBucketIntelligentTieringConfigurationCommand = __esm(() => {
|
|
194471
|
-
|
|
194852
|
+
init_dist_es21();
|
|
194472
194853
|
init_dist_es32();
|
|
194473
194854
|
init_dist_es31();
|
|
194474
194855
|
init_dist_es18();
|
|
@@ -194491,7 +194872,7 @@ var init_GetBucketIntelligentTieringConfigurationCommand = __esm(() => {
|
|
|
194491
194872
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketInventoryConfigurationCommand.js
|
|
194492
194873
|
var GetBucketInventoryConfigurationCommand;
|
|
194493
194874
|
var init_GetBucketInventoryConfigurationCommand = __esm(() => {
|
|
194494
|
-
|
|
194875
|
+
init_dist_es21();
|
|
194495
194876
|
init_dist_es32();
|
|
194496
194877
|
init_dist_es31();
|
|
194497
194878
|
init_dist_es18();
|
|
@@ -194515,7 +194896,7 @@ var init_GetBucketInventoryConfigurationCommand = __esm(() => {
|
|
|
194515
194896
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLifecycleConfigurationCommand.js
|
|
194516
194897
|
var GetBucketLifecycleConfigurationCommand;
|
|
194517
194898
|
var init_GetBucketLifecycleConfigurationCommand = __esm(() => {
|
|
194518
|
-
|
|
194899
|
+
init_dist_es21();
|
|
194519
194900
|
init_dist_es32();
|
|
194520
194901
|
init_dist_es31();
|
|
194521
194902
|
init_dist_es18();
|
|
@@ -194538,7 +194919,7 @@ var init_GetBucketLifecycleConfigurationCommand = __esm(() => {
|
|
|
194538
194919
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLocationCommand.js
|
|
194539
194920
|
var GetBucketLocationCommand;
|
|
194540
194921
|
var init_GetBucketLocationCommand = __esm(() => {
|
|
194541
|
-
|
|
194922
|
+
init_dist_es21();
|
|
194542
194923
|
init_dist_es32();
|
|
194543
194924
|
init_dist_es31();
|
|
194544
194925
|
init_dist_es18();
|
|
@@ -194561,7 +194942,7 @@ var init_GetBucketLocationCommand = __esm(() => {
|
|
|
194561
194942
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLoggingCommand.js
|
|
194562
194943
|
var GetBucketLoggingCommand;
|
|
194563
194944
|
var init_GetBucketLoggingCommand = __esm(() => {
|
|
194564
|
-
|
|
194945
|
+
init_dist_es21();
|
|
194565
194946
|
init_dist_es32();
|
|
194566
194947
|
init_dist_es31();
|
|
194567
194948
|
init_dist_es18();
|
|
@@ -194584,7 +194965,7 @@ var init_GetBucketLoggingCommand = __esm(() => {
|
|
|
194584
194965
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetadataTableConfigurationCommand.js
|
|
194585
194966
|
var GetBucketMetadataTableConfigurationCommand;
|
|
194586
194967
|
var init_GetBucketMetadataTableConfigurationCommand = __esm(() => {
|
|
194587
|
-
|
|
194968
|
+
init_dist_es21();
|
|
194588
194969
|
init_dist_es32();
|
|
194589
194970
|
init_dist_es31();
|
|
194590
194971
|
init_dist_es18();
|
|
@@ -194607,7 +194988,7 @@ var init_GetBucketMetadataTableConfigurationCommand = __esm(() => {
|
|
|
194607
194988
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetricsConfigurationCommand.js
|
|
194608
194989
|
var GetBucketMetricsConfigurationCommand;
|
|
194609
194990
|
var init_GetBucketMetricsConfigurationCommand = __esm(() => {
|
|
194610
|
-
|
|
194991
|
+
init_dist_es21();
|
|
194611
194992
|
init_dist_es32();
|
|
194612
194993
|
init_dist_es31();
|
|
194613
194994
|
init_dist_es18();
|
|
@@ -194630,7 +195011,7 @@ var init_GetBucketMetricsConfigurationCommand = __esm(() => {
|
|
|
194630
195011
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketNotificationConfigurationCommand.js
|
|
194631
195012
|
var GetBucketNotificationConfigurationCommand;
|
|
194632
195013
|
var init_GetBucketNotificationConfigurationCommand = __esm(() => {
|
|
194633
|
-
|
|
195014
|
+
init_dist_es21();
|
|
194634
195015
|
init_dist_es32();
|
|
194635
195016
|
init_dist_es31();
|
|
194636
195017
|
init_dist_es18();
|
|
@@ -194653,7 +195034,7 @@ var init_GetBucketNotificationConfigurationCommand = __esm(() => {
|
|
|
194653
195034
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketOwnershipControlsCommand.js
|
|
194654
195035
|
var GetBucketOwnershipControlsCommand;
|
|
194655
195036
|
var init_GetBucketOwnershipControlsCommand = __esm(() => {
|
|
194656
|
-
|
|
195037
|
+
init_dist_es21();
|
|
194657
195038
|
init_dist_es32();
|
|
194658
195039
|
init_dist_es31();
|
|
194659
195040
|
init_dist_es18();
|
|
@@ -194676,7 +195057,7 @@ var init_GetBucketOwnershipControlsCommand = __esm(() => {
|
|
|
194676
195057
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketPolicyCommand.js
|
|
194677
195058
|
var GetBucketPolicyCommand;
|
|
194678
195059
|
var init_GetBucketPolicyCommand = __esm(() => {
|
|
194679
|
-
|
|
195060
|
+
init_dist_es21();
|
|
194680
195061
|
init_dist_es32();
|
|
194681
195062
|
init_dist_es31();
|
|
194682
195063
|
init_dist_es18();
|
|
@@ -194699,7 +195080,7 @@ var init_GetBucketPolicyCommand = __esm(() => {
|
|
|
194699
195080
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketPolicyStatusCommand.js
|
|
194700
195081
|
var GetBucketPolicyStatusCommand;
|
|
194701
195082
|
var init_GetBucketPolicyStatusCommand = __esm(() => {
|
|
194702
|
-
|
|
195083
|
+
init_dist_es21();
|
|
194703
195084
|
init_dist_es32();
|
|
194704
195085
|
init_dist_es31();
|
|
194705
195086
|
init_dist_es18();
|
|
@@ -194722,7 +195103,7 @@ var init_GetBucketPolicyStatusCommand = __esm(() => {
|
|
|
194722
195103
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketReplicationCommand.js
|
|
194723
195104
|
var GetBucketReplicationCommand;
|
|
194724
195105
|
var init_GetBucketReplicationCommand = __esm(() => {
|
|
194725
|
-
|
|
195106
|
+
init_dist_es21();
|
|
194726
195107
|
init_dist_es32();
|
|
194727
195108
|
init_dist_es31();
|
|
194728
195109
|
init_dist_es18();
|
|
@@ -194745,7 +195126,7 @@ var init_GetBucketReplicationCommand = __esm(() => {
|
|
|
194745
195126
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketRequestPaymentCommand.js
|
|
194746
195127
|
var GetBucketRequestPaymentCommand;
|
|
194747
195128
|
var init_GetBucketRequestPaymentCommand = __esm(() => {
|
|
194748
|
-
|
|
195129
|
+
init_dist_es21();
|
|
194749
195130
|
init_dist_es32();
|
|
194750
195131
|
init_dist_es31();
|
|
194751
195132
|
init_dist_es18();
|
|
@@ -194768,7 +195149,7 @@ var init_GetBucketRequestPaymentCommand = __esm(() => {
|
|
|
194768
195149
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketTaggingCommand.js
|
|
194769
195150
|
var GetBucketTaggingCommand;
|
|
194770
195151
|
var init_GetBucketTaggingCommand = __esm(() => {
|
|
194771
|
-
|
|
195152
|
+
init_dist_es21();
|
|
194772
195153
|
init_dist_es32();
|
|
194773
195154
|
init_dist_es31();
|
|
194774
195155
|
init_dist_es18();
|
|
@@ -194791,7 +195172,7 @@ var init_GetBucketTaggingCommand = __esm(() => {
|
|
|
194791
195172
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketVersioningCommand.js
|
|
194792
195173
|
var GetBucketVersioningCommand;
|
|
194793
195174
|
var init_GetBucketVersioningCommand = __esm(() => {
|
|
194794
|
-
|
|
195175
|
+
init_dist_es21();
|
|
194795
195176
|
init_dist_es32();
|
|
194796
195177
|
init_dist_es31();
|
|
194797
195178
|
init_dist_es18();
|
|
@@ -194814,7 +195195,7 @@ var init_GetBucketVersioningCommand = __esm(() => {
|
|
|
194814
195195
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketWebsiteCommand.js
|
|
194815
195196
|
var GetBucketWebsiteCommand;
|
|
194816
195197
|
var init_GetBucketWebsiteCommand = __esm(() => {
|
|
194817
|
-
|
|
195198
|
+
init_dist_es21();
|
|
194818
195199
|
init_dist_es32();
|
|
194819
195200
|
init_dist_es31();
|
|
194820
195201
|
init_dist_es18();
|
|
@@ -194837,7 +195218,7 @@ var init_GetBucketWebsiteCommand = __esm(() => {
|
|
|
194837
195218
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAclCommand.js
|
|
194838
195219
|
var GetObjectAclCommand;
|
|
194839
195220
|
var init_GetObjectAclCommand = __esm(() => {
|
|
194840
|
-
|
|
195221
|
+
init_dist_es21();
|
|
194841
195222
|
init_dist_es32();
|
|
194842
195223
|
init_dist_es31();
|
|
194843
195224
|
init_dist_es18();
|
|
@@ -194860,7 +195241,7 @@ var init_GetObjectAclCommand = __esm(() => {
|
|
|
194860
195241
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAttributesCommand.js
|
|
194861
195242
|
var GetObjectAttributesCommand;
|
|
194862
195243
|
var init_GetObjectAttributesCommand = __esm(() => {
|
|
194863
|
-
|
|
195244
|
+
init_dist_es21();
|
|
194864
195245
|
init_dist_es58();
|
|
194865
195246
|
init_dist_es32();
|
|
194866
195247
|
init_dist_es31();
|
|
@@ -194886,7 +195267,7 @@ var init_GetObjectAttributesCommand = __esm(() => {
|
|
|
194886
195267
|
var GetObjectCommand;
|
|
194887
195268
|
var init_GetObjectCommand = __esm(() => {
|
|
194888
195269
|
init_dist_es13();
|
|
194889
|
-
|
|
195270
|
+
init_dist_es21();
|
|
194890
195271
|
init_dist_es58();
|
|
194891
195272
|
init_dist_es32();
|
|
194892
195273
|
init_dist_es31();
|
|
@@ -194917,7 +195298,7 @@ var init_GetObjectCommand = __esm(() => {
|
|
|
194917
195298
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLegalHoldCommand.js
|
|
194918
195299
|
var GetObjectLegalHoldCommand;
|
|
194919
195300
|
var init_GetObjectLegalHoldCommand = __esm(() => {
|
|
194920
|
-
|
|
195301
|
+
init_dist_es21();
|
|
194921
195302
|
init_dist_es32();
|
|
194922
195303
|
init_dist_es31();
|
|
194923
195304
|
init_dist_es18();
|
|
@@ -194939,7 +195320,7 @@ var init_GetObjectLegalHoldCommand = __esm(() => {
|
|
|
194939
195320
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLockConfigurationCommand.js
|
|
194940
195321
|
var GetObjectLockConfigurationCommand;
|
|
194941
195322
|
var init_GetObjectLockConfigurationCommand = __esm(() => {
|
|
194942
|
-
|
|
195323
|
+
init_dist_es21();
|
|
194943
195324
|
init_dist_es32();
|
|
194944
195325
|
init_dist_es31();
|
|
194945
195326
|
init_dist_es18();
|
|
@@ -194961,7 +195342,7 @@ var init_GetObjectLockConfigurationCommand = __esm(() => {
|
|
|
194961
195342
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectRetentionCommand.js
|
|
194962
195343
|
var GetObjectRetentionCommand;
|
|
194963
195344
|
var init_GetObjectRetentionCommand = __esm(() => {
|
|
194964
|
-
|
|
195345
|
+
init_dist_es21();
|
|
194965
195346
|
init_dist_es32();
|
|
194966
195347
|
init_dist_es31();
|
|
194967
195348
|
init_dist_es18();
|
|
@@ -194983,7 +195364,7 @@ var init_GetObjectRetentionCommand = __esm(() => {
|
|
|
194983
195364
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectTaggingCommand.js
|
|
194984
195365
|
var GetObjectTaggingCommand;
|
|
194985
195366
|
var init_GetObjectTaggingCommand = __esm(() => {
|
|
194986
|
-
|
|
195367
|
+
init_dist_es21();
|
|
194987
195368
|
init_dist_es32();
|
|
194988
195369
|
init_dist_es31();
|
|
194989
195370
|
init_dist_es18();
|
|
@@ -195026,7 +195407,7 @@ var init_GetObjectTorrentCommand = __esm(() => {
|
|
|
195026
195407
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/GetPublicAccessBlockCommand.js
|
|
195027
195408
|
var GetPublicAccessBlockCommand;
|
|
195028
195409
|
var init_GetPublicAccessBlockCommand = __esm(() => {
|
|
195029
|
-
|
|
195410
|
+
init_dist_es21();
|
|
195030
195411
|
init_dist_es32();
|
|
195031
195412
|
init_dist_es31();
|
|
195032
195413
|
init_dist_es18();
|
|
@@ -195049,7 +195430,7 @@ var init_GetPublicAccessBlockCommand = __esm(() => {
|
|
|
195049
195430
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadBucketCommand.js
|
|
195050
195431
|
var HeadBucketCommand;
|
|
195051
195432
|
var init_HeadBucketCommand = __esm(() => {
|
|
195052
|
-
|
|
195433
|
+
init_dist_es21();
|
|
195053
195434
|
init_dist_es32();
|
|
195054
195435
|
init_dist_es31();
|
|
195055
195436
|
init_dist_es18();
|
|
@@ -195071,7 +195452,7 @@ var init_HeadBucketCommand = __esm(() => {
|
|
|
195071
195452
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadObjectCommand.js
|
|
195072
195453
|
var HeadObjectCommand;
|
|
195073
195454
|
var init_HeadObjectCommand = __esm(() => {
|
|
195074
|
-
|
|
195455
|
+
init_dist_es21();
|
|
195075
195456
|
init_dist_es58();
|
|
195076
195457
|
init_dist_es32();
|
|
195077
195458
|
init_dist_es31();
|
|
@@ -195098,7 +195479,7 @@ var init_HeadObjectCommand = __esm(() => {
|
|
|
195098
195479
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js
|
|
195099
195480
|
var ListBucketAnalyticsConfigurationsCommand;
|
|
195100
195481
|
var init_ListBucketAnalyticsConfigurationsCommand = __esm(() => {
|
|
195101
|
-
|
|
195482
|
+
init_dist_es21();
|
|
195102
195483
|
init_dist_es32();
|
|
195103
195484
|
init_dist_es31();
|
|
195104
195485
|
init_dist_es18();
|
|
@@ -195121,7 +195502,7 @@ var init_ListBucketAnalyticsConfigurationsCommand = __esm(() => {
|
|
|
195121
195502
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js
|
|
195122
195503
|
var ListBucketIntelligentTieringConfigurationsCommand;
|
|
195123
195504
|
var init_ListBucketIntelligentTieringConfigurationsCommand = __esm(() => {
|
|
195124
|
-
|
|
195505
|
+
init_dist_es21();
|
|
195125
195506
|
init_dist_es32();
|
|
195126
195507
|
init_dist_es31();
|
|
195127
195508
|
init_dist_es18();
|
|
@@ -195144,7 +195525,7 @@ var init_ListBucketIntelligentTieringConfigurationsCommand = __esm(() => {
|
|
|
195144
195525
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketInventoryConfigurationsCommand.js
|
|
195145
195526
|
var ListBucketInventoryConfigurationsCommand;
|
|
195146
195527
|
var init_ListBucketInventoryConfigurationsCommand = __esm(() => {
|
|
195147
|
-
|
|
195528
|
+
init_dist_es21();
|
|
195148
195529
|
init_dist_es32();
|
|
195149
195530
|
init_dist_es31();
|
|
195150
195531
|
init_dist_es18();
|
|
@@ -195168,7 +195549,7 @@ var init_ListBucketInventoryConfigurationsCommand = __esm(() => {
|
|
|
195168
195549
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js
|
|
195169
195550
|
var ListBucketMetricsConfigurationsCommand;
|
|
195170
195551
|
var init_ListBucketMetricsConfigurationsCommand = __esm(() => {
|
|
195171
|
-
|
|
195552
|
+
init_dist_es21();
|
|
195172
195553
|
init_dist_es32();
|
|
195173
195554
|
init_dist_es31();
|
|
195174
195555
|
init_dist_es18();
|
|
@@ -195190,7 +195571,7 @@ var init_ListBucketMetricsConfigurationsCommand = __esm(() => {
|
|
|
195190
195571
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketsCommand.js
|
|
195191
195572
|
var ListBucketsCommand;
|
|
195192
195573
|
var init_ListBucketsCommand = __esm(() => {
|
|
195193
|
-
|
|
195574
|
+
init_dist_es21();
|
|
195194
195575
|
init_dist_es32();
|
|
195195
195576
|
init_dist_es31();
|
|
195196
195577
|
init_dist_es18();
|
|
@@ -195209,7 +195590,7 @@ var init_ListBucketsCommand = __esm(() => {
|
|
|
195209
195590
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListDirectoryBucketsCommand.js
|
|
195210
195591
|
var ListDirectoryBucketsCommand;
|
|
195211
195592
|
var init_ListDirectoryBucketsCommand = __esm(() => {
|
|
195212
|
-
|
|
195593
|
+
init_dist_es21();
|
|
195213
195594
|
init_dist_es32();
|
|
195214
195595
|
init_dist_es31();
|
|
195215
195596
|
init_dist_es18();
|
|
@@ -195231,7 +195612,7 @@ var init_ListDirectoryBucketsCommand = __esm(() => {
|
|
|
195231
195612
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListMultipartUploadsCommand.js
|
|
195232
195613
|
var ListMultipartUploadsCommand;
|
|
195233
195614
|
var init_ListMultipartUploadsCommand = __esm(() => {
|
|
195234
|
-
|
|
195615
|
+
init_dist_es21();
|
|
195235
195616
|
init_dist_es32();
|
|
195236
195617
|
init_dist_es31();
|
|
195237
195618
|
init_dist_es18();
|
|
@@ -195254,7 +195635,7 @@ var init_ListMultipartUploadsCommand = __esm(() => {
|
|
|
195254
195635
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsCommand.js
|
|
195255
195636
|
var ListObjectsCommand;
|
|
195256
195637
|
var init_ListObjectsCommand = __esm(() => {
|
|
195257
|
-
|
|
195638
|
+
init_dist_es21();
|
|
195258
195639
|
init_dist_es32();
|
|
195259
195640
|
init_dist_es31();
|
|
195260
195641
|
init_dist_es18();
|
|
@@ -195277,7 +195658,7 @@ var init_ListObjectsCommand = __esm(() => {
|
|
|
195277
195658
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsV2Command.js
|
|
195278
195659
|
var ListObjectsV2Command;
|
|
195279
195660
|
var init_ListObjectsV2Command = __esm(() => {
|
|
195280
|
-
|
|
195661
|
+
init_dist_es21();
|
|
195281
195662
|
init_dist_es32();
|
|
195282
195663
|
init_dist_es31();
|
|
195283
195664
|
init_dist_es18();
|
|
@@ -195300,7 +195681,7 @@ var init_ListObjectsV2Command = __esm(() => {
|
|
|
195300
195681
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectVersionsCommand.js
|
|
195301
195682
|
var ListObjectVersionsCommand;
|
|
195302
195683
|
var init_ListObjectVersionsCommand = __esm(() => {
|
|
195303
|
-
|
|
195684
|
+
init_dist_es21();
|
|
195304
195685
|
init_dist_es32();
|
|
195305
195686
|
init_dist_es31();
|
|
195306
195687
|
init_dist_es18();
|
|
@@ -195323,7 +195704,7 @@ var init_ListObjectVersionsCommand = __esm(() => {
|
|
|
195323
195704
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/ListPartsCommand.js
|
|
195324
195705
|
var ListPartsCommand;
|
|
195325
195706
|
var init_ListPartsCommand = __esm(() => {
|
|
195326
|
-
|
|
195707
|
+
init_dist_es21();
|
|
195327
195708
|
init_dist_es58();
|
|
195328
195709
|
init_dist_es32();
|
|
195329
195710
|
init_dist_es31();
|
|
@@ -195519,7 +195900,7 @@ var init_PutBucketInventoryConfigurationCommand = __esm(() => {
|
|
|
195519
195900
|
var PutBucketLifecycleConfigurationCommand;
|
|
195520
195901
|
var init_PutBucketLifecycleConfigurationCommand = __esm(() => {
|
|
195521
195902
|
init_dist_es13();
|
|
195522
|
-
|
|
195903
|
+
init_dist_es21();
|
|
195523
195904
|
init_dist_es32();
|
|
195524
195905
|
init_dist_es31();
|
|
195525
195906
|
init_dist_es18();
|
|
@@ -195796,7 +196177,7 @@ var init_PutBucketWebsiteCommand = __esm(() => {
|
|
|
195796
196177
|
var PutObjectAclCommand;
|
|
195797
196178
|
var init_PutObjectAclCommand = __esm(() => {
|
|
195798
196179
|
init_dist_es13();
|
|
195799
|
-
|
|
196180
|
+
init_dist_es21();
|
|
195800
196181
|
init_dist_es32();
|
|
195801
196182
|
init_dist_es31();
|
|
195802
196183
|
init_dist_es18();
|
|
@@ -195824,7 +196205,7 @@ var init_PutObjectAclCommand = __esm(() => {
|
|
|
195824
196205
|
var PutObjectCommand;
|
|
195825
196206
|
var init_PutObjectCommand = __esm(() => {
|
|
195826
196207
|
init_dist_es13();
|
|
195827
|
-
|
|
196208
|
+
init_dist_es21();
|
|
195828
196209
|
init_dist_es58();
|
|
195829
196210
|
init_dist_es32();
|
|
195830
196211
|
init_dist_es31();
|
|
@@ -195856,7 +196237,7 @@ var init_PutObjectCommand = __esm(() => {
|
|
|
195856
196237
|
var PutObjectLegalHoldCommand;
|
|
195857
196238
|
var init_PutObjectLegalHoldCommand = __esm(() => {
|
|
195858
196239
|
init_dist_es13();
|
|
195859
|
-
|
|
196240
|
+
init_dist_es21();
|
|
195860
196241
|
init_dist_es32();
|
|
195861
196242
|
init_dist_es31();
|
|
195862
196243
|
init_dist_es18();
|
|
@@ -195883,7 +196264,7 @@ var init_PutObjectLegalHoldCommand = __esm(() => {
|
|
|
195883
196264
|
var PutObjectLockConfigurationCommand;
|
|
195884
196265
|
var init_PutObjectLockConfigurationCommand = __esm(() => {
|
|
195885
196266
|
init_dist_es13();
|
|
195886
|
-
|
|
196267
|
+
init_dist_es21();
|
|
195887
196268
|
init_dist_es32();
|
|
195888
196269
|
init_dist_es31();
|
|
195889
196270
|
init_dist_es18();
|
|
@@ -195910,7 +196291,7 @@ var init_PutObjectLockConfigurationCommand = __esm(() => {
|
|
|
195910
196291
|
var PutObjectRetentionCommand;
|
|
195911
196292
|
var init_PutObjectRetentionCommand = __esm(() => {
|
|
195912
196293
|
init_dist_es13();
|
|
195913
|
-
|
|
196294
|
+
init_dist_es21();
|
|
195914
196295
|
init_dist_es32();
|
|
195915
196296
|
init_dist_es31();
|
|
195916
196297
|
init_dist_es18();
|
|
@@ -195937,7 +196318,7 @@ var init_PutObjectRetentionCommand = __esm(() => {
|
|
|
195937
196318
|
var PutObjectTaggingCommand;
|
|
195938
196319
|
var init_PutObjectTaggingCommand = __esm(() => {
|
|
195939
196320
|
init_dist_es13();
|
|
195940
|
-
|
|
196321
|
+
init_dist_es21();
|
|
195941
196322
|
init_dist_es32();
|
|
195942
196323
|
init_dist_es31();
|
|
195943
196324
|
init_dist_es18();
|
|
@@ -195990,7 +196371,7 @@ var init_PutPublicAccessBlockCommand = __esm(() => {
|
|
|
195990
196371
|
var RestoreObjectCommand;
|
|
195991
196372
|
var init_RestoreObjectCommand = __esm(() => {
|
|
195992
196373
|
init_dist_es13();
|
|
195993
|
-
|
|
196374
|
+
init_dist_es21();
|
|
195994
196375
|
init_dist_es32();
|
|
195995
196376
|
init_dist_es31();
|
|
195996
196377
|
init_dist_es18();
|
|
@@ -196017,7 +196398,7 @@ var init_RestoreObjectCommand = __esm(() => {
|
|
|
196017
196398
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/SelectObjectContentCommand.js
|
|
196018
196399
|
var SelectObjectContentCommand;
|
|
196019
196400
|
var init_SelectObjectContentCommand = __esm(() => {
|
|
196020
|
-
|
|
196401
|
+
init_dist_es21();
|
|
196021
196402
|
init_dist_es58();
|
|
196022
196403
|
init_dist_es32();
|
|
196023
196404
|
init_dist_es31();
|
|
@@ -196047,7 +196428,7 @@ var init_SelectObjectContentCommand = __esm(() => {
|
|
|
196047
196428
|
var UploadPartCommand;
|
|
196048
196429
|
var init_UploadPartCommand = __esm(() => {
|
|
196049
196430
|
init_dist_es13();
|
|
196050
|
-
|
|
196431
|
+
init_dist_es21();
|
|
196051
196432
|
init_dist_es58();
|
|
196052
196433
|
init_dist_es32();
|
|
196053
196434
|
init_dist_es31();
|
|
@@ -196077,7 +196458,7 @@ var init_UploadPartCommand = __esm(() => {
|
|
|
196077
196458
|
// ../../../../node_modules/@flystorage/aws-s3/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCopyCommand.js
|
|
196078
196459
|
var UploadPartCopyCommand;
|
|
196079
196460
|
var init_UploadPartCopyCommand = __esm(() => {
|
|
196080
|
-
|
|
196461
|
+
init_dist_es21();
|
|
196081
196462
|
init_dist_es58();
|
|
196082
196463
|
init_dist_es32();
|
|
196083
196464
|
init_dist_es31();
|
|
@@ -196557,7 +196938,7 @@ var init_dist_es61 = __esm(() => {
|
|
|
196557
196938
|
|
|
196558
196939
|
// ../../../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/constants.js
|
|
196559
196940
|
var RequestChecksumCalculation2, DEFAULT_REQUEST_CHECKSUM_CALCULATION2, ResponseChecksumValidation2, DEFAULT_RESPONSE_CHECKSUM_VALIDATION2, ChecksumAlgorithm2, ChecksumLocation2, DEFAULT_CHECKSUM_ALGORITHM2;
|
|
196560
|
-
var
|
|
196941
|
+
var init_constants10 = __esm(() => {
|
|
196561
196942
|
RequestChecksumCalculation2 = {
|
|
196562
196943
|
WHEN_SUPPORTED: "WHEN_SUPPORTED",
|
|
196563
196944
|
WHEN_REQUIRED: "WHEN_REQUIRED"
|
|
@@ -196603,7 +196984,7 @@ var init_stringUnionSelector2 = __esm(() => {
|
|
|
196603
196984
|
// ../../../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.js
|
|
196604
196985
|
var ENV_REQUEST_CHECKSUM_CALCULATION2 = "AWS_REQUEST_CHECKSUM_CALCULATION", CONFIG_REQUEST_CHECKSUM_CALCULATION2 = "request_checksum_calculation", NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS3;
|
|
196605
196986
|
var init_NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS2 = __esm(() => {
|
|
196606
|
-
|
|
196987
|
+
init_constants10();
|
|
196607
196988
|
init_stringUnionSelector2();
|
|
196608
196989
|
NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS3 = {
|
|
196609
196990
|
environmentVariableSelector: (env7) => stringUnionSelector2(env7, ENV_REQUEST_CHECKSUM_CALCULATION2, RequestChecksumCalculation2, SelectorType3.ENV),
|
|
@@ -196615,7 +196996,7 @@ var init_NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS2 = __esm(() => {
|
|
|
196615
196996
|
// ../../../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.js
|
|
196616
196997
|
var ENV_RESPONSE_CHECKSUM_VALIDATION2 = "AWS_RESPONSE_CHECKSUM_VALIDATION", CONFIG_RESPONSE_CHECKSUM_VALIDATION2 = "response_checksum_validation", NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS3;
|
|
196617
196998
|
var init_NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS2 = __esm(() => {
|
|
196618
|
-
|
|
196999
|
+
init_constants10();
|
|
196619
197000
|
init_stringUnionSelector2();
|
|
196620
197001
|
NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS3 = {
|
|
196621
197002
|
environmentVariableSelector: (env7) => stringUnionSelector2(env7, ENV_RESPONSE_CHECKSUM_VALIDATION2, ResponseChecksumValidation2, SelectorType3.ENV),
|
|
@@ -197341,19 +197722,19 @@ var require_dist_cjs44 = __commonJS((exports, module) => {
|
|
|
197341
197722
|
});
|
|
197342
197723
|
module.exports = __toCommonJS2(src_exports);
|
|
197343
197724
|
var import_util_base647 = require_dist_cjs8();
|
|
197344
|
-
var
|
|
197725
|
+
var import_util_utf814 = require_dist_cjs7();
|
|
197345
197726
|
function transformToString2(payload, encoding = "utf-8") {
|
|
197346
197727
|
if (encoding === "base64") {
|
|
197347
197728
|
return (0, import_util_base647.toBase64)(payload);
|
|
197348
197729
|
}
|
|
197349
|
-
return (0,
|
|
197730
|
+
return (0, import_util_utf814.toUtf8)(payload);
|
|
197350
197731
|
}
|
|
197351
197732
|
__name(transformToString2, "transformToString");
|
|
197352
197733
|
function transformFromString2(str2, encoding) {
|
|
197353
197734
|
if (encoding === "base64") {
|
|
197354
197735
|
return Uint8ArrayBlobAdapter3.mutate((0, import_util_base647.fromBase64)(str2));
|
|
197355
197736
|
}
|
|
197356
|
-
return Uint8ArrayBlobAdapter3.mutate((0,
|
|
197737
|
+
return Uint8ArrayBlobAdapter3.mutate((0, import_util_utf814.fromUtf8)(str2));
|
|
197357
197738
|
}
|
|
197358
197739
|
__name(transformFromString2, "transformFromString");
|
|
197359
197740
|
var Uint8ArrayBlobAdapter3 = class _Uint8ArrayBlobAdapter extends Uint8Array {
|
|
@@ -197430,7 +197811,7 @@ var require_protocols3 = __commonJS((exports, module) => {
|
|
|
197430
197811
|
return "%" + c5.charCodeAt(0).toString(16).toUpperCase();
|
|
197431
197812
|
});
|
|
197432
197813
|
}
|
|
197433
|
-
var
|
|
197814
|
+
var import_protocol_http25 = require_dist_cjs2();
|
|
197434
197815
|
var resolvedPath3 = (resolvedPath22, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
197435
197816
|
if (input != null && input[memberName] !== undefined) {
|
|
197436
197817
|
const labelValue = labelValueProvider();
|
|
@@ -197464,7 +197845,7 @@ var require_protocols3 = __commonJS((exports, module) => {
|
|
|
197464
197845
|
for (const resolvePath of this.resolvePathStack) {
|
|
197465
197846
|
resolvePath(this.path);
|
|
197466
197847
|
}
|
|
197467
|
-
return new
|
|
197848
|
+
return new import_protocol_http25.HttpRequest({
|
|
197468
197849
|
protocol,
|
|
197469
197850
|
hostname: this.hostname || hostname,
|
|
197470
197851
|
port,
|
|
@@ -197558,7 +197939,7 @@ var require_dist_cjs45 = __commonJS((exports, module) => {
|
|
|
197558
197939
|
module.exports = __toCommonJS2(src_exports);
|
|
197559
197940
|
var import_types29 = require_dist_cjs();
|
|
197560
197941
|
var getSmithyContext3 = /* @__PURE__ */ __name((context) => context[import_types29.SMITHY_CONTEXT_KEY] || (context[import_types29.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
|
|
197561
|
-
var
|
|
197942
|
+
var import_util_middleware11 = require_dist_cjs3();
|
|
197562
197943
|
function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
197563
197944
|
const map3 = /* @__PURE__ */ new Map;
|
|
197564
197945
|
for (const scheme of httpAuthSchemes) {
|
|
@@ -197570,7 +197951,7 @@ var require_dist_cjs45 = __commonJS((exports, module) => {
|
|
|
197570
197951
|
var httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config7, mwOptions) => (next, context) => async (args) => {
|
|
197571
197952
|
const options2 = config7.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config7, context, args.input));
|
|
197572
197953
|
const authSchemes = convertHttpAuthSchemesToMap(config7.httpAuthSchemes);
|
|
197573
|
-
const smithyContext = (0,
|
|
197954
|
+
const smithyContext = (0, import_util_middleware11.getSmithyContext)(context);
|
|
197574
197955
|
const failureReasons = [];
|
|
197575
197956
|
for (const option of options2) {
|
|
197576
197957
|
const scheme = authSchemes.get(option.schemeId);
|
|
@@ -197638,16 +198019,16 @@ var require_dist_cjs45 = __commonJS((exports, module) => {
|
|
|
197638
198019
|
}), httpAuthSchemeMiddlewareOptions);
|
|
197639
198020
|
}
|
|
197640
198021
|
}), "getHttpAuthSchemePlugin");
|
|
197641
|
-
var
|
|
198022
|
+
var import_protocol_http25 = require_dist_cjs2();
|
|
197642
198023
|
var defaultErrorHandler2 = /* @__PURE__ */ __name((signingProperties) => (error) => {
|
|
197643
198024
|
throw error;
|
|
197644
198025
|
}, "defaultErrorHandler");
|
|
197645
198026
|
var defaultSuccessHandler2 = /* @__PURE__ */ __name((httpResponse2, signingProperties) => {}, "defaultSuccessHandler");
|
|
197646
198027
|
var httpSigningMiddleware = /* @__PURE__ */ __name((config7) => (next, context) => async (args) => {
|
|
197647
|
-
if (!
|
|
198028
|
+
if (!import_protocol_http25.HttpRequest.isInstance(args.request)) {
|
|
197648
198029
|
return next(args);
|
|
197649
198030
|
}
|
|
197650
|
-
const smithyContext = (0,
|
|
198031
|
+
const smithyContext = (0, import_util_middleware11.getSmithyContext)(context);
|
|
197651
198032
|
const scheme = smithyContext.selectedHttpAuthScheme;
|
|
197652
198033
|
if (!scheme) {
|
|
197653
198034
|
throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
|
|
@@ -197770,7 +198151,7 @@ var require_dist_cjs45 = __commonJS((exports, module) => {
|
|
|
197770
198151
|
if (!identity2.apiKey) {
|
|
197771
198152
|
throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");
|
|
197772
198153
|
}
|
|
197773
|
-
const clonedRequest =
|
|
198154
|
+
const clonedRequest = import_protocol_http25.HttpRequest.clone(httpRequest3);
|
|
197774
198155
|
if (signingProperties.in === import_types29.HttpApiKeyAuthLocation.QUERY) {
|
|
197775
198156
|
clonedRequest.query[signingProperties.name] = identity2.apiKey;
|
|
197776
198157
|
} else if (signingProperties.in === import_types29.HttpApiKeyAuthLocation.HEADER) {
|
|
@@ -197786,7 +198167,7 @@ var require_dist_cjs45 = __commonJS((exports, module) => {
|
|
|
197786
198167
|
__name(this, "HttpBearerAuthSigner");
|
|
197787
198168
|
}
|
|
197788
198169
|
async sign(httpRequest3, identity2, signingProperties) {
|
|
197789
|
-
const clonedRequest =
|
|
198170
|
+
const clonedRequest = import_protocol_http25.HttpRequest.clone(httpRequest3);
|
|
197790
198171
|
if (!identity2.token) {
|
|
197791
198172
|
throw new Error("request could not be signed with `token` since the `token` is not defined");
|
|
197792
198173
|
}
|
|
@@ -197888,9 +198269,9 @@ var require_httpAuthSchemes2 = __commonJS((exports, module) => {
|
|
|
197888
198269
|
validateSigningProperties: () => validateSigningProperties
|
|
197889
198270
|
});
|
|
197890
198271
|
module.exports = __toCommonJS2(httpAuthSchemes_exports);
|
|
197891
|
-
var
|
|
197892
|
-
var
|
|
197893
|
-
var getDateHeader = /* @__PURE__ */ __name((response4) =>
|
|
198272
|
+
var import_protocol_http25 = require_dist_cjs2();
|
|
198273
|
+
var import_protocol_http26 = require_dist_cjs2();
|
|
198274
|
+
var getDateHeader = /* @__PURE__ */ __name((response4) => import_protocol_http26.HttpResponse.isInstance(response4) ? response4.headers?.date ?? response4.headers?.Date : undefined, "getDateHeader");
|
|
197894
198275
|
var getSkewCorrectedDate = /* @__PURE__ */ __name((systemClockOffset) => new Date(Date.now() + systemClockOffset), "getSkewCorrectedDate");
|
|
197895
198276
|
var isClockSkewed = /* @__PURE__ */ __name((clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000, "isClockSkewed");
|
|
197896
198277
|
var getUpdatedSystemClockOffset = /* @__PURE__ */ __name((clockTime, currentSystemClockOffset) => {
|
|
@@ -197928,7 +198309,7 @@ var require_httpAuthSchemes2 = __commonJS((exports, module) => {
|
|
|
197928
198309
|
__name(this, "AwsSdkSigV4Signer");
|
|
197929
198310
|
}
|
|
197930
198311
|
async sign(httpRequest3, identity2, signingProperties) {
|
|
197931
|
-
if (!
|
|
198312
|
+
if (!import_protocol_http25.HttpRequest.isInstance(httpRequest3)) {
|
|
197932
198313
|
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
197933
198314
|
}
|
|
197934
198315
|
const validatedProps = await validateSigningProperties(signingProperties);
|
|
@@ -199407,7 +199788,7 @@ var require_dist_cjs47 = __commonJS((exports) => {
|
|
|
199407
199788
|
// ../../../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/types.js
|
|
199408
199789
|
var CLIENT_SUPPORTED_ALGORITHMS2, PRIORITY_ORDER_ALGORITHMS2;
|
|
199409
199790
|
var init_types14 = __esm(() => {
|
|
199410
|
-
|
|
199791
|
+
init_constants10();
|
|
199411
199792
|
CLIENT_SUPPORTED_ALGORITHMS2 = [
|
|
199412
199793
|
ChecksumAlgorithm2.CRC32,
|
|
199413
199794
|
ChecksumAlgorithm2.CRC32C,
|
|
@@ -199439,18 +199820,18 @@ var getChecksumAlgorithmForRequest2 = (input, { requestChecksumRequired, request
|
|
|
199439
199820
|
return checksumAlgorithm;
|
|
199440
199821
|
};
|
|
199441
199822
|
var init_getChecksumAlgorithmForRequest2 = __esm(() => {
|
|
199442
|
-
|
|
199823
|
+
init_constants10();
|
|
199443
199824
|
init_types14();
|
|
199444
199825
|
});
|
|
199445
199826
|
|
|
199446
199827
|
// ../../../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/getChecksumLocationName.js
|
|
199447
199828
|
var getChecksumLocationName2 = (algorithm) => algorithm === ChecksumAlgorithm2.MD5 ? "content-md5" : `x-amz-checksum-${algorithm.toLowerCase()}`;
|
|
199448
199829
|
var init_getChecksumLocationName2 = __esm(() => {
|
|
199449
|
-
|
|
199830
|
+
init_constants10();
|
|
199450
199831
|
});
|
|
199451
199832
|
|
|
199452
199833
|
// ../../../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/hasHeader.js
|
|
199453
|
-
var
|
|
199834
|
+
var hasHeader3 = (header, headers) => {
|
|
199454
199835
|
const soughtHeader = header.toLowerCase();
|
|
199455
199836
|
for (const headerName of Object.keys(headers)) {
|
|
199456
199837
|
if (soughtHeader === headerName.toLowerCase()) {
|
|
@@ -199527,7 +199908,7 @@ var selectChecksumAlgorithmFunction2 = (checksumAlgorithm, config7) => {
|
|
|
199527
199908
|
};
|
|
199528
199909
|
var init_selectChecksumAlgorithmFunction2 = __esm(() => {
|
|
199529
199910
|
init_module2();
|
|
199530
|
-
|
|
199911
|
+
init_constants10();
|
|
199531
199912
|
init_crc64_nvme_crt_container2();
|
|
199532
199913
|
init_getCrc32ChecksumAlgorithmFunction2();
|
|
199533
199914
|
});
|
|
@@ -199610,7 +199991,7 @@ var import_core29, import_util_stream5, flexibleChecksumsMiddlewareOptions2, fle
|
|
|
199610
199991
|
"x-amz-trailer": checksumLocationName
|
|
199611
199992
|
};
|
|
199612
199993
|
delete updatedHeaders["content-length"];
|
|
199613
|
-
} else if (!
|
|
199994
|
+
} else if (!hasHeader3(checksumLocationName, headers)) {
|
|
199614
199995
|
const rawChecksum = await stringHasher2(checksumAlgorithmFn, requestBody);
|
|
199615
199996
|
updatedHeaders = {
|
|
199616
199997
|
...headers,
|
|
@@ -199632,7 +200013,7 @@ var init_flexibleChecksumsMiddleware2 = __esm(() => {
|
|
|
199632
200013
|
import_core29 = __toESM(require_dist_cjs47(), 1);
|
|
199633
200014
|
init_dist_es();
|
|
199634
200015
|
import_util_stream5 = __toESM(require_dist_cjs44(), 1);
|
|
199635
|
-
|
|
200016
|
+
init_constants10();
|
|
199636
200017
|
init_getChecksumAlgorithmForRequest2();
|
|
199637
200018
|
init_getChecksumLocationName2();
|
|
199638
200019
|
init_isStreaming2();
|
|
@@ -199677,7 +200058,7 @@ var import_core30, flexibleChecksumsInputMiddlewareOptions2, flexibleChecksumsIn
|
|
|
199677
200058
|
};
|
|
199678
200059
|
var init_flexibleChecksumsInputMiddleware2 = __esm(() => {
|
|
199679
200060
|
import_core30 = __toESM(require_dist_cjs47(), 1);
|
|
199680
|
-
|
|
200061
|
+
init_constants10();
|
|
199681
200062
|
flexibleChecksumsInputMiddlewareOptions2 = {
|
|
199682
200063
|
name: "flexibleChecksumsInputMiddleware",
|
|
199683
200064
|
toMiddleware: "serializerMiddleware",
|
|
@@ -199762,7 +200143,7 @@ var import_util_stream6, validateChecksumFromResponse2 = async (response4, { con
|
|
|
199762
200143
|
};
|
|
199763
200144
|
var init_validateChecksumFromResponse2 = __esm(() => {
|
|
199764
200145
|
import_util_stream6 = __toESM(require_dist_cjs44(), 1);
|
|
199765
|
-
|
|
200146
|
+
init_constants10();
|
|
199766
200147
|
init_getChecksum2();
|
|
199767
200148
|
init_getChecksumAlgorithmListForResponse2();
|
|
199768
200149
|
init_getChecksumLocationName2();
|
|
@@ -199834,14 +200215,14 @@ var resolveFlexibleChecksumsConfig3 = (input) => ({
|
|
|
199834
200215
|
});
|
|
199835
200216
|
var init_resolveFlexibleChecksumsConfig2 = __esm(() => {
|
|
199836
200217
|
init_dist_es12();
|
|
199837
|
-
|
|
200218
|
+
init_constants10();
|
|
199838
200219
|
});
|
|
199839
200220
|
|
|
199840
200221
|
// ../../../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/index.js
|
|
199841
200222
|
var init_dist_es62 = __esm(() => {
|
|
199842
200223
|
init_NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS2();
|
|
199843
200224
|
init_NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS2();
|
|
199844
|
-
|
|
200225
|
+
init_constants10();
|
|
199845
200226
|
init_crc64_nvme_crt_container2();
|
|
199846
200227
|
init_flexibleChecksumsMiddleware2();
|
|
199847
200228
|
init_getFlexibleChecksumsPlugin2();
|
|
@@ -200955,8 +201336,8 @@ var init_S3ExpressIdentityProviderImpl2 = () => {};
|
|
|
200955
201336
|
|
|
200956
201337
|
// ../../../../node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js
|
|
200957
201338
|
var S3_EXPRESS_BUCKET_TYPE2 = "Directory", S3_EXPRESS_BACKEND2 = "S3Express", S3_EXPRESS_AUTH_SCHEME2 = "sigv4-s3express", SESSION_TOKEN_QUERY_PARAM2 = "X-Amz-S3session-Token", SESSION_TOKEN_HEADER2, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME2 = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH", NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME2 = "s3_disable_express_session_auth", NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS2;
|
|
200958
|
-
var
|
|
200959
|
-
|
|
201339
|
+
var init_constants11 = __esm(() => {
|
|
201340
|
+
init_dist_es20();
|
|
200960
201341
|
SESSION_TOKEN_HEADER2 = SESSION_TOKEN_QUERY_PARAM2.toLowerCase();
|
|
200961
201342
|
NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS2 = {
|
|
200962
201343
|
environmentVariableSelector: (env7) => booleanSelector(env7, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME2, SelectorType2.ENV),
|
|
@@ -200986,11 +201367,11 @@ function setSingleOverride2(privateAccess, credentialsWithoutSessionToken) {
|
|
|
200986
201367
|
};
|
|
200987
201368
|
privateAccess.credentialProvider = overrideCredentialsProviderOnce;
|
|
200988
201369
|
}
|
|
200989
|
-
var
|
|
201370
|
+
var SignatureV4S3Express2;
|
|
200990
201371
|
var init_SignatureV4S3Express2 = __esm(() => {
|
|
200991
|
-
|
|
200992
|
-
|
|
200993
|
-
SignatureV4S3Express2 = class SignatureV4S3Express2 extends
|
|
201372
|
+
init_dist_es19();
|
|
201373
|
+
init_constants11();
|
|
201374
|
+
SignatureV4S3Express2 = class SignatureV4S3Express2 extends SignatureV4 {
|
|
200994
201375
|
async signWithCredentials(requestToSign, credentials, options2) {
|
|
200995
201376
|
const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken2(credentials);
|
|
200996
201377
|
requestToSign.headers[SESSION_TOKEN_HEADER2] = credentials.sessionToken;
|
|
@@ -201045,7 +201426,7 @@ var import_core31, s3ExpressMiddleware2 = (options2) => {
|
|
|
201045
201426
|
var init_s3ExpressMiddleware2 = __esm(() => {
|
|
201046
201427
|
import_core31 = __toESM(require_dist_cjs47(), 1);
|
|
201047
201428
|
init_dist_es();
|
|
201048
|
-
|
|
201429
|
+
init_constants11();
|
|
201049
201430
|
s3ExpressMiddlewareOptions2 = {
|
|
201050
201431
|
name: "s3ExpressMiddleware",
|
|
201051
201432
|
step: "build",
|
|
@@ -201104,7 +201485,7 @@ var init_s3ExpressHttpSigningMiddleware2 = __esm(() => {
|
|
|
201104
201485
|
var init_s3_express2 = __esm(() => {
|
|
201105
201486
|
init_S3ExpressIdentityProviderImpl2();
|
|
201106
201487
|
init_SignatureV4S3Express2();
|
|
201107
|
-
|
|
201488
|
+
init_constants11();
|
|
201108
201489
|
init_s3ExpressMiddleware2();
|
|
201109
201490
|
init_s3ExpressHttpSigningMiddleware2();
|
|
201110
201491
|
});
|
|
@@ -201306,7 +201687,7 @@ var init_configurations3 = __esm(() => {
|
|
|
201306
201687
|
|
|
201307
201688
|
// ../../../../node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js
|
|
201308
201689
|
var init_isIpAddress3 = __esm(() => {
|
|
201309
|
-
|
|
201690
|
+
init_dist_es22();
|
|
201310
201691
|
});
|
|
201311
201692
|
|
|
201312
201693
|
// ../../../../node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
|
|
@@ -201334,7 +201715,7 @@ var isVirtualHostableS3Bucket2 = (value, allowSubDomains = false) => {
|
|
|
201334
201715
|
return true;
|
|
201335
201716
|
};
|
|
201336
201717
|
var init_isVirtualHostableS3Bucket2 = __esm(() => {
|
|
201337
|
-
|
|
201718
|
+
init_dist_es22();
|
|
201338
201719
|
init_isIpAddress3();
|
|
201339
201720
|
});
|
|
201340
201721
|
|
|
@@ -201638,7 +202019,7 @@ var init_partition2 = __esm(() => {
|
|
|
201638
202019
|
// ../../../../node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
|
|
201639
202020
|
var awsEndpointFunctions2;
|
|
201640
202021
|
var init_aws2 = __esm(() => {
|
|
201641
|
-
|
|
202022
|
+
init_dist_es22();
|
|
201642
202023
|
init_isVirtualHostableS3Bucket2();
|
|
201643
202024
|
init_partition2();
|
|
201644
202025
|
awsEndpointFunctions2 = {
|
|
@@ -201651,12 +202032,12 @@ var init_aws2 = __esm(() => {
|
|
|
201651
202032
|
|
|
201652
202033
|
// ../../../../node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js
|
|
201653
202034
|
var init_resolveEndpoint3 = __esm(() => {
|
|
201654
|
-
|
|
202035
|
+
init_dist_es22();
|
|
201655
202036
|
});
|
|
201656
202037
|
|
|
201657
202038
|
// ../../../../node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js
|
|
201658
202039
|
var init_EndpointError3 = __esm(() => {
|
|
201659
|
-
|
|
202040
|
+
init_dist_es22();
|
|
201660
202041
|
});
|
|
201661
202042
|
|
|
201662
202043
|
// ../../../../node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js
|
|
@@ -201747,7 +202128,7 @@ var init_check_features2 = __esm(() => {
|
|
|
201747
202128
|
|
|
201748
202129
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
|
|
201749
202130
|
var USER_AGENT2 = "user-agent", X_AMZ_USER_AGENT2 = "x-amz-user-agent", SPACE2 = " ", UA_NAME_SEPARATOR2 = "/", UA_NAME_ESCAPE_REGEX2, UA_VALUE_ESCAPE_REGEX2, UA_ESCAPE_CHAR2 = "-";
|
|
201750
|
-
var
|
|
202131
|
+
var init_constants12 = __esm(() => {
|
|
201751
202132
|
UA_NAME_ESCAPE_REGEX2 = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
|
|
201752
202133
|
UA_VALUE_ESCAPE_REGEX2 = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;
|
|
201753
202134
|
});
|
|
@@ -201834,7 +202215,7 @@ var init_user_agent_middleware2 = __esm(() => {
|
|
|
201834
202215
|
init_dist_es65();
|
|
201835
202216
|
init_dist_es();
|
|
201836
202217
|
init_check_features2();
|
|
201837
|
-
|
|
202218
|
+
init_constants12();
|
|
201838
202219
|
getUserAgentMiddlewareOptions2 = {
|
|
201839
202220
|
name: "getUserAgentMiddleware",
|
|
201840
202221
|
step: "build",
|
|
@@ -202583,7 +202964,7 @@ var cache5, defaultEndpointResolver3 = (endpointParams, context = {}) => {
|
|
|
202583
202964
|
};
|
|
202584
202965
|
var init_endpointResolver3 = __esm(() => {
|
|
202585
202966
|
init_dist_es65();
|
|
202586
|
-
|
|
202967
|
+
init_dist_es22();
|
|
202587
202968
|
init_ruleset3();
|
|
202588
202969
|
cache5 = new EndpointCache({
|
|
202589
202970
|
size: 50,
|
|
@@ -209635,7 +210016,7 @@ var init_package5 = __esm(() => {
|
|
|
209635
210016
|
});
|
|
209636
210017
|
|
|
209637
210018
|
// ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
209638
|
-
var import_client12, ENV_KEY2 = "AWS_ACCESS_KEY_ID", ENV_SECRET2 = "AWS_SECRET_ACCESS_KEY", ENV_SESSION2 = "AWS_SESSION_TOKEN", ENV_EXPIRATION2 = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE2 = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID2 = "AWS_ACCOUNT_ID", fromEnv4 = (init3) => async () => {
|
|
210019
|
+
var import_client12, import_property_provider29, ENV_KEY2 = "AWS_ACCESS_KEY_ID", ENV_SECRET2 = "AWS_SECRET_ACCESS_KEY", ENV_SESSION2 = "AWS_SESSION_TOKEN", ENV_EXPIRATION2 = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE2 = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID2 = "AWS_ACCOUNT_ID", fromEnv4 = (init3) => async () => {
|
|
209639
210020
|
init3?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
209640
210021
|
const accessKeyId = process.env[ENV_KEY2];
|
|
209641
210022
|
const secretAccessKey = process.env[ENV_SECRET2];
|
|
@@ -209655,11 +210036,11 @@ var import_client12, ENV_KEY2 = "AWS_ACCESS_KEY_ID", ENV_SECRET2 = "AWS_SECRET_A
|
|
|
209655
210036
|
import_client12.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
209656
210037
|
return credentials;
|
|
209657
210038
|
}
|
|
209658
|
-
throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init3?.logger });
|
|
210039
|
+
throw new import_property_provider29.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init3?.logger });
|
|
209659
210040
|
};
|
|
209660
210041
|
var init_fromEnv3 = __esm(() => {
|
|
209661
210042
|
import_client12 = __toESM(require_client5(), 1);
|
|
209662
|
-
|
|
210043
|
+
import_property_provider29 = __toESM(require_dist_cjs16(), 1);
|
|
209663
210044
|
});
|
|
209664
210045
|
|
|
209665
210046
|
// ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
@@ -209678,7 +210059,7 @@ var init_dist_es70 = __esm(() => {
|
|
|
209678
210059
|
});
|
|
209679
210060
|
|
|
209680
210061
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
209681
|
-
var ECS_CONTAINER_HOST2 = "169.254.170.2", EKS_CONTAINER_HOST_IPv42 = "169.254.170.23", EKS_CONTAINER_HOST_IPv62 = "[fd00:ec2::23]", checkUrl2 = (url, logger4) => {
|
|
210062
|
+
var import_property_provider30, ECS_CONTAINER_HOST2 = "169.254.170.2", EKS_CONTAINER_HOST_IPv42 = "169.254.170.23", EKS_CONTAINER_HOST_IPv62 = "[fd00:ec2::23]", checkUrl2 = (url, logger4) => {
|
|
209682
210063
|
if (url.protocol === "https:") {
|
|
209683
210064
|
return;
|
|
209684
210065
|
}
|
|
@@ -209702,13 +210083,13 @@ var ECS_CONTAINER_HOST2 = "169.254.170.2", EKS_CONTAINER_HOST_IPv42 = "169.254.1
|
|
|
209702
210083
|
return;
|
|
209703
210084
|
}
|
|
209704
210085
|
}
|
|
209705
|
-
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
210086
|
+
throw new import_property_provider30.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
209706
210087
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
209707
210088
|
- ECS container host 169.254.170.2
|
|
209708
210089
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger: logger4 });
|
|
209709
210090
|
};
|
|
209710
210091
|
var init_checkUrl2 = __esm(() => {
|
|
209711
|
-
|
|
210092
|
+
import_property_provider30 = __toESM(require_dist_cjs16(), 1);
|
|
209712
210093
|
});
|
|
209713
210094
|
|
|
209714
210095
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
@@ -209731,7 +210112,7 @@ async function getCredentials2(response4, logger4) {
|
|
|
209731
210112
|
if (response4.statusCode === 200) {
|
|
209732
210113
|
const parsed = JSON.parse(str2);
|
|
209733
210114
|
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
|
|
209734
|
-
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger: logger4 });
|
|
210115
|
+
throw new import_property_provider31.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger: logger4 });
|
|
209735
210116
|
}
|
|
209736
210117
|
return {
|
|
209737
210118
|
accessKeyId: parsed.AccessKeyId,
|
|
@@ -209745,16 +210126,16 @@ async function getCredentials2(response4, logger4) {
|
|
|
209745
210126
|
try {
|
|
209746
210127
|
parsedBody = JSON.parse(str2);
|
|
209747
210128
|
} catch (e5) {}
|
|
209748
|
-
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger4 }), {
|
|
210129
|
+
throw Object.assign(new import_property_provider31.CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger4 }), {
|
|
209749
210130
|
Code: parsedBody.Code,
|
|
209750
210131
|
Message: parsedBody.Message
|
|
209751
210132
|
});
|
|
209752
210133
|
}
|
|
209753
|
-
throw new CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger4 });
|
|
210134
|
+
throw new import_property_provider31.CredentialsProviderError(`Server responded with status: ${response4.statusCode}`, { logger: logger4 });
|
|
209754
210135
|
}
|
|
209755
|
-
var import_util_stream8;
|
|
210136
|
+
var import_property_provider31, import_util_stream8;
|
|
209756
210137
|
var init_requestHelpers2 = __esm(() => {
|
|
209757
|
-
|
|
210138
|
+
import_property_provider31 = __toESM(require_dist_cjs16(), 1);
|
|
209758
210139
|
init_dist_es();
|
|
209759
210140
|
init_dist_es63();
|
|
209760
210141
|
import_util_stream8 = __toESM(require_dist_cjs44(), 1);
|
|
@@ -209776,7 +210157,7 @@ var retryWrapper2 = (toRetry, maxRetries, delayMs) => {
|
|
|
209776
210157
|
|
|
209777
210158
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
209778
210159
|
import fs5 from "fs/promises";
|
|
209779
|
-
var import_client13, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI2 = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST2 = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI2 = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE2 = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN2 = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp2 = (options2 = {}) => {
|
|
210160
|
+
var import_client13, import_property_provider32, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI2 = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST2 = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI2 = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE2 = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN2 = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp2 = (options2 = {}) => {
|
|
209780
210161
|
options2.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
209781
210162
|
let host;
|
|
209782
210163
|
const relative3 = options2.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI2];
|
|
@@ -209797,7 +210178,7 @@ var import_client13, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI2 = "AWS_CONTAINER_CR
|
|
|
209797
210178
|
} else if (relative3) {
|
|
209798
210179
|
host = `${DEFAULT_LINK_LOCAL_HOST2}${relative3}`;
|
|
209799
210180
|
} else {
|
|
209800
|
-
throw new CredentialsProviderError(`No HTTP credential provider host provided.
|
|
210181
|
+
throw new import_property_provider32.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
209801
210182
|
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options2.logger });
|
|
209802
210183
|
}
|
|
209803
210184
|
const url = new URL(host);
|
|
@@ -209817,14 +210198,14 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
209817
210198
|
const result2 = await requestHandler.handle(request5);
|
|
209818
210199
|
return getCredentials2(result2.response).then((creds) => import_client13.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
209819
210200
|
} catch (e5) {
|
|
209820
|
-
throw new CredentialsProviderError(String(e5), { logger: options2.logger });
|
|
210201
|
+
throw new import_property_provider32.CredentialsProviderError(String(e5), { logger: options2.logger });
|
|
209821
210202
|
}
|
|
209822
210203
|
}, options2.maxRetries ?? 3, options2.timeout ?? 1000);
|
|
209823
210204
|
};
|
|
209824
210205
|
var init_fromHttp2 = __esm(() => {
|
|
209825
210206
|
import_client13 = __toESM(require_client5(), 1);
|
|
209826
210207
|
init_dist_es10();
|
|
209827
|
-
|
|
210208
|
+
import_property_provider32 = __toESM(require_dist_cjs16(), 1);
|
|
209828
210209
|
init_checkUrl2();
|
|
209829
210210
|
init_requestHelpers2();
|
|
209830
210211
|
});
|
|
@@ -209839,23 +210220,23 @@ var init_dist_es71 = __esm(() => {
|
|
|
209839
210220
|
});
|
|
209840
210221
|
|
|
209841
210222
|
// ../../../../node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
209842
|
-
var ENV_IMDS_DISABLED3 = "AWS_EC2_METADATA_DISABLED", remoteProvider2 = async (init3) => {
|
|
210223
|
+
var import_property_provider33, ENV_IMDS_DISABLED3 = "AWS_EC2_METADATA_DISABLED", remoteProvider2 = async (init3) => {
|
|
209843
210224
|
const { ENV_CMDS_FULL_URI: ENV_CMDS_FULL_URI2, ENV_CMDS_RELATIVE_URI: ENV_CMDS_RELATIVE_URI2, fromContainerMetadata: fromContainerMetadata3, fromInstanceMetadata: fromInstanceMetadata3 } = await Promise.resolve().then(() => (init_dist_es39(), exports_dist_es2));
|
|
209844
210225
|
if (process.env[ENV_CMDS_RELATIVE_URI2] || process.env[ENV_CMDS_FULL_URI2]) {
|
|
209845
210226
|
init3.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
209846
210227
|
const { fromHttp: fromHttp3 } = await Promise.resolve().then(() => (init_dist_es71(), exports_dist_es9));
|
|
209847
|
-
return chain(fromHttp3(init3), fromContainerMetadata3(init3));
|
|
210228
|
+
return import_property_provider33.chain(fromHttp3(init3), fromContainerMetadata3(init3));
|
|
209848
210229
|
}
|
|
209849
210230
|
if (process.env[ENV_IMDS_DISABLED3] && process.env[ENV_IMDS_DISABLED3] !== "false") {
|
|
209850
210231
|
return async () => {
|
|
209851
|
-
throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init3.logger });
|
|
210232
|
+
throw new import_property_provider33.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init3.logger });
|
|
209852
210233
|
};
|
|
209853
210234
|
}
|
|
209854
210235
|
init3.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
|
|
209855
210236
|
return fromInstanceMetadata3(init3);
|
|
209856
210237
|
};
|
|
209857
210238
|
var init_remoteProvider2 = __esm(() => {
|
|
209858
|
-
|
|
210239
|
+
import_property_provider33 = __toESM(require_dist_cjs16(), 1);
|
|
209859
210240
|
});
|
|
209860
210241
|
|
|
209861
210242
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
@@ -209863,7 +210244,7 @@ var isSsoProfile4 = (arg) => arg && (typeof arg.sso_start_url === "string" || ty
|
|
|
209863
210244
|
|
|
209864
210245
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
209865
210246
|
var EXPIRE_WINDOW_MS2, REFRESH_MESSAGE2 = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
209866
|
-
var
|
|
210247
|
+
var init_constants13 = __esm(() => {
|
|
209867
210248
|
EXPIRE_WINDOW_MS2 = 5 * 60 * 1000;
|
|
209868
210249
|
});
|
|
209869
210250
|
|
|
@@ -210306,7 +210687,7 @@ var require_dist_cjs49 = __commonJS((exports, module) => {
|
|
|
210306
210687
|
}
|
|
210307
210688
|
__name(resolveUserAgentConfig3, "resolveUserAgentConfig");
|
|
210308
210689
|
var import_util_endpoints19 = require_dist_cjs48();
|
|
210309
|
-
var
|
|
210690
|
+
var import_protocol_http38 = require_dist_cjs2();
|
|
210310
210691
|
var import_core210 = require_dist_cjs47();
|
|
210311
210692
|
var ACCOUNT_ID_ENDPOINT_REGEX3 = /\d{12}\.ddb/;
|
|
210312
210693
|
async function checkFeatures3(context, config7, args) {
|
|
@@ -210382,7 +210763,7 @@ var require_dist_cjs49 = __commonJS((exports, module) => {
|
|
|
210382
210763
|
__name(encodeFeatures3, "encodeFeatures");
|
|
210383
210764
|
var userAgentMiddleware3 = /* @__PURE__ */ __name((options2) => (next, context) => async (args) => {
|
|
210384
210765
|
const { request: request5 } = args;
|
|
210385
|
-
if (!
|
|
210766
|
+
if (!import_protocol_http38.HttpRequest.isInstance(request5)) {
|
|
210386
210767
|
return next(args);
|
|
210387
210768
|
}
|
|
210388
210769
|
const { headers } = request5;
|
|
@@ -210659,7 +211040,7 @@ var require_dist_cjs50 = __commonJS((exports, module) => {
|
|
|
210659
211040
|
return endpointParams;
|
|
210660
211041
|
}, "resolveParams");
|
|
210661
211042
|
var import_core39 = require_dist_cjs45();
|
|
210662
|
-
var
|
|
211043
|
+
var import_util_middleware17 = require_dist_cjs3();
|
|
210663
211044
|
var endpointMiddleware5 = /* @__PURE__ */ __name(({
|
|
210664
211045
|
config: config7,
|
|
210665
211046
|
instructions
|
|
@@ -210679,7 +211060,7 @@ var require_dist_cjs50 = __commonJS((exports, module) => {
|
|
|
210679
211060
|
if (authScheme) {
|
|
210680
211061
|
context["signing_region"] = authScheme.signingRegion;
|
|
210681
211062
|
context["signing_service"] = authScheme.signingName;
|
|
210682
|
-
const smithyContext = (0,
|
|
211063
|
+
const smithyContext = (0, import_util_middleware17.getSmithyContext)(context);
|
|
210683
211064
|
const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
|
|
210684
211065
|
if (httpAuthOption) {
|
|
210685
211066
|
httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
|
|
@@ -210717,15 +211098,15 @@ var require_dist_cjs50 = __commonJS((exports, module) => {
|
|
|
210717
211098
|
var resolveEndpointConfig5 = /* @__PURE__ */ __name((input) => {
|
|
210718
211099
|
const tls = input.tls ?? true;
|
|
210719
211100
|
const { endpoint } = input;
|
|
210720
|
-
const customEndpointProvider = endpoint != null ? async () => toEndpointV15(await (0,
|
|
211101
|
+
const customEndpointProvider = endpoint != null ? async () => toEndpointV15(await (0, import_util_middleware17.normalizeProvider)(endpoint)()) : undefined;
|
|
210721
211102
|
const isCustomEndpoint = !!endpoint;
|
|
210722
211103
|
const resolvedConfig = {
|
|
210723
211104
|
...input,
|
|
210724
211105
|
endpoint: customEndpointProvider,
|
|
210725
211106
|
tls,
|
|
210726
211107
|
isCustomEndpoint,
|
|
210727
|
-
useDualstackEndpoint: (0,
|
|
210728
|
-
useFipsEndpoint: (0,
|
|
211108
|
+
useDualstackEndpoint: (0, import_util_middleware17.normalizeProvider)(input.useDualstackEndpoint ?? false),
|
|
211109
|
+
useFipsEndpoint: (0, import_util_middleware17.normalizeProvider)(input.useFipsEndpoint ?? false)
|
|
210729
211110
|
};
|
|
210730
211111
|
let configuredEndpointPromise = undefined;
|
|
210731
211112
|
resolvedConfig.serviceConfiguredEndpoint = async () => {
|
|
@@ -210789,7 +211170,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
210789
211170
|
retryMiddlewareOptions: () => retryMiddlewareOptions3
|
|
210790
211171
|
});
|
|
210791
211172
|
module.exports = __toCommonJS2(src_exports);
|
|
210792
|
-
var
|
|
211173
|
+
var import_protocol_http38 = require_dist_cjs2();
|
|
210793
211174
|
var import_uuid3 = require_dist4();
|
|
210794
211175
|
var import_util_retry17 = require_dist_cjs36();
|
|
210795
211176
|
var getDefaultRetryQuota3 = /* @__PURE__ */ __name((initialRetryTokens, options2) => {
|
|
@@ -210864,12 +211245,12 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
210864
211245
|
let totalDelay = 0;
|
|
210865
211246
|
const maxAttempts = await this.getMaxAttempts();
|
|
210866
211247
|
const { request: request5 } = args;
|
|
210867
|
-
if (
|
|
211248
|
+
if (import_protocol_http38.HttpRequest.isInstance(request5)) {
|
|
210868
211249
|
request5.headers[import_util_retry17.INVOCATION_ID_HEADER] = (0, import_uuid3.v4)();
|
|
210869
211250
|
}
|
|
210870
211251
|
while (true) {
|
|
210871
211252
|
try {
|
|
210872
|
-
if (
|
|
211253
|
+
if (import_protocol_http38.HttpRequest.isInstance(request5)) {
|
|
210873
211254
|
request5.headers[import_util_retry17.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
|
210874
211255
|
}
|
|
210875
211256
|
if (options2?.beforeRequest) {
|
|
@@ -210906,7 +211287,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
210906
211287
|
}
|
|
210907
211288
|
};
|
|
210908
211289
|
var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response4) => {
|
|
210909
|
-
if (!
|
|
211290
|
+
if (!import_protocol_http38.HttpResponse.isInstance(response4))
|
|
210910
211291
|
return;
|
|
210911
211292
|
const retryAfterHeaderName = Object.keys(response4.headers).find((key2) => key2.toLowerCase() === "retry-after");
|
|
210912
211293
|
if (!retryAfterHeaderName)
|
|
@@ -210939,7 +211320,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
210939
211320
|
});
|
|
210940
211321
|
}
|
|
210941
211322
|
};
|
|
210942
|
-
var
|
|
211323
|
+
var import_util_middleware17 = require_dist_cjs3();
|
|
210943
211324
|
var ENV_MAX_ATTEMPTS3 = "AWS_MAX_ATTEMPTS";
|
|
210944
211325
|
var CONFIG_MAX_ATTEMPTS3 = "max_attempts";
|
|
210945
211326
|
var NODE_MAX_ATTEMPT_CONFIG_OPTIONS3 = {
|
|
@@ -210967,7 +211348,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
210967
211348
|
};
|
|
210968
211349
|
var resolveRetryConfig3 = /* @__PURE__ */ __name((input) => {
|
|
210969
211350
|
const { retryStrategy } = input;
|
|
210970
|
-
const maxAttempts = (0,
|
|
211351
|
+
const maxAttempts = (0, import_util_middleware17.normalizeProvider)(input.maxAttempts ?? import_util_retry17.DEFAULT_MAX_ATTEMPTS);
|
|
210971
211352
|
return {
|
|
210972
211353
|
...input,
|
|
210973
211354
|
maxAttempts,
|
|
@@ -210975,7 +211356,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
210975
211356
|
if (retryStrategy) {
|
|
210976
211357
|
return retryStrategy;
|
|
210977
211358
|
}
|
|
210978
|
-
const retryMode = await (0,
|
|
211359
|
+
const retryMode = await (0, import_util_middleware17.normalizeProvider)(input.retryMode)();
|
|
210979
211360
|
if (retryMode === import_util_retry17.RETRY_MODES.ADAPTIVE) {
|
|
210980
211361
|
return new import_util_retry17.AdaptiveRetryStrategy(maxAttempts);
|
|
210981
211362
|
}
|
|
@@ -210992,7 +211373,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
210992
211373
|
};
|
|
210993
211374
|
var omitRetryHeadersMiddleware3 = /* @__PURE__ */ __name(() => (next) => async (args) => {
|
|
210994
211375
|
const { request: request5 } = args;
|
|
210995
|
-
if (
|
|
211376
|
+
if (import_protocol_http38.HttpRequest.isInstance(request5)) {
|
|
210996
211377
|
delete request5.headers[import_util_retry17.INVOCATION_ID_HEADER];
|
|
210997
211378
|
delete request5.headers[import_util_retry17.REQUEST_HEADER];
|
|
210998
211379
|
}
|
|
@@ -211022,7 +211403,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
211022
211403
|
let attempts = 0;
|
|
211023
211404
|
let totalRetryDelay = 0;
|
|
211024
211405
|
const { request: request5 } = args;
|
|
211025
|
-
const isRequest =
|
|
211406
|
+
const isRequest = import_protocol_http38.HttpRequest.isInstance(request5);
|
|
211026
211407
|
if (isRequest) {
|
|
211027
211408
|
request5.headers[import_util_retry17.INVOCATION_ID_HEADER] = (0, import_uuid3.v4)();
|
|
211028
211409
|
}
|
|
@@ -211100,7 +211481,7 @@ var require_dist_cjs51 = __commonJS((exports, module) => {
|
|
|
211100
211481
|
}
|
|
211101
211482
|
}), "getRetryPlugin");
|
|
211102
211483
|
var getRetryAfterHint3 = /* @__PURE__ */ __name((response4) => {
|
|
211103
|
-
if (!
|
|
211484
|
+
if (!import_protocol_http38.HttpResponse.isInstance(response4))
|
|
211104
211485
|
return;
|
|
211105
211486
|
const retryAfterHeaderName = Object.keys(response4.headers).find((key2) => key2.toLowerCase() === "retry-after");
|
|
211106
211487
|
if (!retryAfterHeaderName)
|
|
@@ -211681,7 +212062,7 @@ var require_sso_oidc2 = __commonJS((exports, module) => {
|
|
|
211681
212062
|
};
|
|
211682
212063
|
var import_runtimeConfig5 = require_runtimeConfig4();
|
|
211683
212064
|
var import_region_config_resolver3 = require_dist_cjs43();
|
|
211684
|
-
var
|
|
212065
|
+
var import_protocol_http38 = require_dist_cjs2();
|
|
211685
212066
|
var import_smithy_client135 = require_dist_cjs46();
|
|
211686
212067
|
var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
211687
212068
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
@@ -211725,7 +212106,7 @@ var require_sso_oidc2 = __commonJS((exports, module) => {
|
|
|
211725
212106
|
const extensionConfiguration = {
|
|
211726
212107
|
...asPartial3((0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
211727
212108
|
...asPartial3((0, import_smithy_client135.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
211728
|
-
...asPartial3((0,
|
|
212109
|
+
...asPartial3((0, import_protocol_http38.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
211729
212110
|
...asPartial3(getHttpAuthExtensionConfiguration3(runtimeConfig))
|
|
211730
212111
|
};
|
|
211731
212112
|
extensions5.forEach((extension) => extension.configure(extensionConfiguration));
|
|
@@ -211733,7 +212114,7 @@ var require_sso_oidc2 = __commonJS((exports, module) => {
|
|
|
211733
212114
|
...runtimeConfig,
|
|
211734
212115
|
...(0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
211735
212116
|
...(0, import_smithy_client135.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
211736
|
-
...(0,
|
|
212117
|
+
...(0, import_protocol_http38.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
211737
212118
|
...resolveHttpAuthRuntimeConfig3(extensionConfiguration)
|
|
211738
212119
|
};
|
|
211739
212120
|
}, "resolveRuntimeExtensions");
|
|
@@ -212305,25 +212686,25 @@ var getNewSsoOidcToken2 = async (ssoToken, ssoRegion, init3 = {}) => {
|
|
|
212305
212686
|
var init_getNewSsoOidcToken2 = () => {};
|
|
212306
212687
|
|
|
212307
212688
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
212308
|
-
var validateTokenExpiry2 = (token) => {
|
|
212689
|
+
var import_property_provider34, validateTokenExpiry2 = (token) => {
|
|
212309
212690
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
212310
|
-
throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE2}`, false);
|
|
212691
|
+
throw new import_property_provider34.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE2}`, false);
|
|
212311
212692
|
}
|
|
212312
212693
|
};
|
|
212313
212694
|
var init_validateTokenExpiry2 = __esm(() => {
|
|
212314
|
-
|
|
212315
|
-
|
|
212695
|
+
import_property_provider34 = __toESM(require_dist_cjs16(), 1);
|
|
212696
|
+
init_constants13();
|
|
212316
212697
|
});
|
|
212317
212698
|
|
|
212318
212699
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
212319
|
-
var validateTokenKey2 = (key2, value, forRefresh = false) => {
|
|
212700
|
+
var import_property_provider35, validateTokenKey2 = (key2, value, forRefresh = false) => {
|
|
212320
212701
|
if (typeof value === "undefined") {
|
|
212321
|
-
throw new TokenProviderError(`Value not present for '${key2}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE2}`, false);
|
|
212702
|
+
throw new import_property_provider35.TokenProviderError(`Value not present for '${key2}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE2}`, false);
|
|
212322
212703
|
}
|
|
212323
212704
|
};
|
|
212324
212705
|
var init_validateTokenKey2 = __esm(() => {
|
|
212325
|
-
|
|
212326
|
-
|
|
212706
|
+
import_property_provider35 = __toESM(require_dist_cjs16(), 1);
|
|
212707
|
+
init_constants13();
|
|
212327
212708
|
});
|
|
212328
212709
|
|
|
212329
212710
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
@@ -212339,7 +212720,7 @@ var init_writeSSOTokenToFile2 = __esm(() => {
|
|
|
212339
212720
|
});
|
|
212340
212721
|
|
|
212341
212722
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
212342
|
-
var lastRefreshAttemptTime2, fromSso3 = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
212723
|
+
var import_property_provider36, lastRefreshAttemptTime2, fromSso3 = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
212343
212724
|
const init3 = {
|
|
212344
212725
|
..._init,
|
|
212345
212726
|
parentClientConfig: {
|
|
@@ -212354,19 +212735,19 @@ var lastRefreshAttemptTime2, fromSso3 = (_init = {}) => async ({ callerClientCon
|
|
|
212354
212735
|
});
|
|
212355
212736
|
const profile = profiles[profileName];
|
|
212356
212737
|
if (!profile) {
|
|
212357
|
-
throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
212738
|
+
throw new import_property_provider36.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
212358
212739
|
} else if (!profile["sso_session"]) {
|
|
212359
|
-
throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
212740
|
+
throw new import_property_provider36.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
212360
212741
|
}
|
|
212361
212742
|
const ssoSessionName = profile["sso_session"];
|
|
212362
212743
|
const ssoSessions = await loadSsoSessionData(init3);
|
|
212363
212744
|
const ssoSession = ssoSessions[ssoSessionName];
|
|
212364
212745
|
if (!ssoSession) {
|
|
212365
|
-
throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
212746
|
+
throw new import_property_provider36.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
212366
212747
|
}
|
|
212367
212748
|
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
|
|
212368
212749
|
if (!ssoSession[ssoSessionRequiredKey]) {
|
|
212369
|
-
throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
212750
|
+
throw new import_property_provider36.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
212370
212751
|
}
|
|
212371
212752
|
}
|
|
212372
212753
|
const ssoStartUrl = ssoSession["sso_start_url"];
|
|
@@ -212375,7 +212756,7 @@ var lastRefreshAttemptTime2, fromSso3 = (_init = {}) => async ({ callerClientCon
|
|
|
212375
212756
|
try {
|
|
212376
212757
|
ssoToken = await getSSOTokenFromFile2(ssoSessionName);
|
|
212377
212758
|
} catch (e5) {
|
|
212378
|
-
throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE2}`, false);
|
|
212759
|
+
throw new import_property_provider36.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE2}`, false);
|
|
212379
212760
|
}
|
|
212380
212761
|
validateTokenKey2("accessToken", ssoToken.accessToken);
|
|
212381
212762
|
validateTokenKey2("expiresAt", ssoToken.expiresAt);
|
|
@@ -212415,9 +212796,9 @@ var lastRefreshAttemptTime2, fromSso3 = (_init = {}) => async ({ callerClientCon
|
|
|
212415
212796
|
}
|
|
212416
212797
|
};
|
|
212417
212798
|
var init_fromSso2 = __esm(() => {
|
|
212418
|
-
|
|
212799
|
+
import_property_provider36 = __toESM(require_dist_cjs16(), 1);
|
|
212419
212800
|
init_dist_es28();
|
|
212420
|
-
|
|
212801
|
+
init_constants13();
|
|
212421
212802
|
init_getNewSsoOidcToken2();
|
|
212422
212803
|
init_validateTokenExpiry2();
|
|
212423
212804
|
init_validateTokenKey2();
|
|
@@ -212426,13 +212807,15 @@ var init_fromSso2 = __esm(() => {
|
|
|
212426
212807
|
});
|
|
212427
212808
|
|
|
212428
212809
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js
|
|
212810
|
+
var import_property_provider37;
|
|
212429
212811
|
var init_fromStatic3 = __esm(() => {
|
|
212430
|
-
|
|
212812
|
+
import_property_provider37 = __toESM(require_dist_cjs16(), 1);
|
|
212431
212813
|
});
|
|
212432
212814
|
|
|
212433
212815
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js
|
|
212816
|
+
var import_property_provider38;
|
|
212434
212817
|
var init_nodeProvider2 = __esm(() => {
|
|
212435
|
-
|
|
212818
|
+
import_property_provider38 = __toESM(require_dist_cjs16(), 1);
|
|
212436
212819
|
});
|
|
212437
212820
|
|
|
212438
212821
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/index.js
|
|
@@ -212722,7 +213105,7 @@ var cache6, defaultEndpointResolver4 = (endpointParams, context = {}) => {
|
|
|
212722
213105
|
};
|
|
212723
213106
|
var init_endpointResolver4 = __esm(() => {
|
|
212724
213107
|
init_dist_es65();
|
|
212725
|
-
|
|
213108
|
+
init_dist_es22();
|
|
212726
213109
|
init_ruleset4();
|
|
212727
213110
|
cache6 = new EndpointCache({
|
|
212728
213111
|
size: 50,
|
|
@@ -212773,7 +213156,7 @@ var init_runtimeConfig_shared3 = __esm(() => {
|
|
|
212773
213156
|
|
|
212774
213157
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
|
|
212775
213158
|
var AWS_EXECUTION_ENV2 = "AWS_EXECUTION_ENV", AWS_REGION_ENV2 = "AWS_REGION", AWS_DEFAULT_REGION_ENV2 = "AWS_DEFAULT_REGION", ENV_IMDS_DISABLED4 = "AWS_EC2_METADATA_DISABLED", DEFAULTS_MODE_OPTIONS2, IMDS_REGION_PATH2 = "/latest/meta-data/placement/region";
|
|
212776
|
-
var
|
|
213159
|
+
var init_constants14 = __esm(() => {
|
|
212777
213160
|
DEFAULTS_MODE_OPTIONS2 = ["in-region", "cross-region", "mobile", "standard", "legacy"];
|
|
212778
213161
|
});
|
|
212779
213162
|
|
|
@@ -212792,7 +213175,7 @@ var init_defaultsModeConfig2 = __esm(() => {
|
|
|
212792
213175
|
});
|
|
212793
213176
|
|
|
212794
213177
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
212795
|
-
var resolveDefaultsModeConfig3 = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS2) } = {}) =>
|
|
213178
|
+
var import_property_provider39, resolveDefaultsModeConfig3 = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS2) } = {}) => import_property_provider39.memoize(async () => {
|
|
212796
213179
|
const mode2 = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
212797
213180
|
switch (mode2?.toLowerCase()) {
|
|
212798
213181
|
case "auto":
|
|
@@ -212835,10 +213218,10 @@ var resolveDefaultsModeConfig3 = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIO
|
|
|
212835
213218
|
}
|
|
212836
213219
|
};
|
|
212837
213220
|
var init_resolveDefaultsModeConfig2 = __esm(() => {
|
|
212838
|
-
|
|
213221
|
+
init_dist_es25();
|
|
212839
213222
|
init_dist_es29();
|
|
212840
|
-
|
|
212841
|
-
|
|
213223
|
+
import_property_provider39 = __toESM(require_dist_cjs16(), 1);
|
|
213224
|
+
init_constants14();
|
|
212842
213225
|
init_defaultsModeConfig2();
|
|
212843
213226
|
});
|
|
212844
213227
|
|
|
@@ -212880,7 +213263,7 @@ var init_runtimeConfig3 = __esm(() => {
|
|
|
212880
213263
|
init_package6();
|
|
212881
213264
|
import_core42 = __toESM(require_dist_cjs47(), 1);
|
|
212882
213265
|
init_dist_es73();
|
|
212883
|
-
|
|
213266
|
+
init_dist_es25();
|
|
212884
213267
|
init_dist_es43();
|
|
212885
213268
|
init_dist_es68();
|
|
212886
213269
|
init_dist_es29();
|
|
@@ -212961,9 +213344,9 @@ var init_SSOClient2 = __esm(() => {
|
|
|
212961
213344
|
init_dist_es15();
|
|
212962
213345
|
init_dist_es16();
|
|
212963
213346
|
init_dist_es66();
|
|
212964
|
-
|
|
213347
|
+
init_dist_es25();
|
|
212965
213348
|
import_core43 = __toESM(require_dist_cjs45(), 1);
|
|
212966
|
-
|
|
213349
|
+
init_dist_es27();
|
|
212967
213350
|
init_dist_es67();
|
|
212968
213351
|
init_dist_es68();
|
|
212969
213352
|
init_dist_es63();
|
|
@@ -213434,7 +213817,7 @@ var init_loadSso2 = __esm(() => {
|
|
|
213434
213817
|
});
|
|
213435
213818
|
|
|
213436
213819
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
213437
|
-
var import_client14, SHOULD_FAIL_CREDENTIAL_CHAIN2 = false, resolveSSOCredentials2 = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger: logger4 }) => {
|
|
213820
|
+
var import_client14, import_property_provider40, SHOULD_FAIL_CREDENTIAL_CHAIN2 = false, resolveSSOCredentials2 = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger: logger4 }) => {
|
|
213438
213821
|
let token;
|
|
213439
213822
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
213440
213823
|
if (ssoSession) {
|
|
@@ -213445,7 +213828,7 @@ var import_client14, SHOULD_FAIL_CREDENTIAL_CHAIN2 = false, resolveSSOCredential
|
|
|
213445
213828
|
expiresAt: new Date(_token.expiration).toISOString()
|
|
213446
213829
|
};
|
|
213447
213830
|
} catch (e6) {
|
|
213448
|
-
throw new CredentialsProviderError(e6.message, {
|
|
213831
|
+
throw new import_property_provider40.CredentialsProviderError(e6.message, {
|
|
213449
213832
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN2,
|
|
213450
213833
|
logger: logger4
|
|
213451
213834
|
});
|
|
@@ -213454,14 +213837,14 @@ var import_client14, SHOULD_FAIL_CREDENTIAL_CHAIN2 = false, resolveSSOCredential
|
|
|
213454
213837
|
try {
|
|
213455
213838
|
token = await getSSOTokenFromFile2(ssoStartUrl);
|
|
213456
213839
|
} catch (e6) {
|
|
213457
|
-
throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
213840
|
+
throw new import_property_provider40.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
213458
213841
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN2,
|
|
213459
213842
|
logger: logger4
|
|
213460
213843
|
});
|
|
213461
213844
|
}
|
|
213462
213845
|
}
|
|
213463
213846
|
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
|
213464
|
-
throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
213847
|
+
throw new import_property_provider40.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
213465
213848
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN2,
|
|
213466
213849
|
logger: logger4
|
|
213467
213850
|
});
|
|
@@ -213480,14 +213863,14 @@ var import_client14, SHOULD_FAIL_CREDENTIAL_CHAIN2 = false, resolveSSOCredential
|
|
|
213480
213863
|
accessToken
|
|
213481
213864
|
}));
|
|
213482
213865
|
} catch (e6) {
|
|
213483
|
-
throw new CredentialsProviderError(e6, {
|
|
213866
|
+
throw new import_property_provider40.CredentialsProviderError(e6, {
|
|
213484
213867
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN2,
|
|
213485
213868
|
logger: logger4
|
|
213486
213869
|
});
|
|
213487
213870
|
}
|
|
213488
213871
|
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
|
|
213489
213872
|
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
|
213490
|
-
throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
213873
|
+
throw new import_property_provider40.CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
213491
213874
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN2,
|
|
213492
213875
|
logger: logger4
|
|
213493
213876
|
});
|
|
@@ -213510,25 +213893,25 @@ var import_client14, SHOULD_FAIL_CREDENTIAL_CHAIN2 = false, resolveSSOCredential
|
|
|
213510
213893
|
var init_resolveSSOCredentials2 = __esm(() => {
|
|
213511
213894
|
import_client14 = __toESM(require_client5(), 1);
|
|
213512
213895
|
init_dist_es72();
|
|
213513
|
-
|
|
213896
|
+
import_property_provider40 = __toESM(require_dist_cjs16(), 1);
|
|
213514
213897
|
init_dist_es28();
|
|
213515
213898
|
});
|
|
213516
213899
|
|
|
213517
213900
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
213518
|
-
var validateSsoProfile3 = (profile, logger4) => {
|
|
213901
|
+
var import_property_provider41, validateSsoProfile3 = (profile, logger4) => {
|
|
213519
213902
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
213520
213903
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
213521
|
-
throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
213904
|
+
throw new import_property_provider41.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
213522
213905
|
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger: logger4 });
|
|
213523
213906
|
}
|
|
213524
213907
|
return profile;
|
|
213525
213908
|
};
|
|
213526
213909
|
var init_validateSsoProfile2 = __esm(() => {
|
|
213527
|
-
|
|
213910
|
+
import_property_provider41 = __toESM(require_dist_cjs16(), 1);
|
|
213528
213911
|
});
|
|
213529
213912
|
|
|
213530
213913
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
213531
|
-
var fromSSO3 = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
213914
|
+
var import_property_provider42, fromSSO3 = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
213532
213915
|
init3.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
213533
213916
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init3;
|
|
213534
213917
|
const { ssoClient } = init3;
|
|
@@ -213539,10 +213922,10 @@ var fromSSO3 = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
213539
213922
|
const profiles = await parseKnownFiles(init3);
|
|
213540
213923
|
const profile = profiles[profileName];
|
|
213541
213924
|
if (!profile) {
|
|
213542
|
-
throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init3.logger });
|
|
213925
|
+
throw new import_property_provider42.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init3.logger });
|
|
213543
213926
|
}
|
|
213544
213927
|
if (!isSsoProfile4(profile)) {
|
|
213545
|
-
throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
213928
|
+
throw new import_property_provider42.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
213546
213929
|
logger: init3.logger
|
|
213547
213930
|
});
|
|
213548
213931
|
}
|
|
@@ -213551,13 +213934,13 @@ var fromSSO3 = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
213551
213934
|
const session = ssoSessions[profile.sso_session];
|
|
213552
213935
|
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
|
213553
213936
|
if (ssoRegion && ssoRegion !== session.sso_region) {
|
|
213554
|
-
throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
213937
|
+
throw new import_property_provider42.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
213555
213938
|
tryNextLink: false,
|
|
213556
213939
|
logger: init3.logger
|
|
213557
213940
|
});
|
|
213558
213941
|
}
|
|
213559
213942
|
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
|
213560
|
-
throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
213943
|
+
throw new import_property_provider42.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
213561
213944
|
tryNextLink: false,
|
|
213562
213945
|
logger: init3.logger
|
|
213563
213946
|
});
|
|
@@ -213578,7 +213961,7 @@ var fromSSO3 = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
213578
213961
|
profile: profileName
|
|
213579
213962
|
});
|
|
213580
213963
|
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
213581
|
-
throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init3.logger });
|
|
213964
|
+
throw new import_property_provider42.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init3.logger });
|
|
213582
213965
|
} else {
|
|
213583
213966
|
return resolveSSOCredentials2({
|
|
213584
213967
|
ssoStartUrl,
|
|
@@ -213594,7 +213977,7 @@ var fromSSO3 = (init3 = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
213594
213977
|
}
|
|
213595
213978
|
};
|
|
213596
213979
|
var init_fromSSO2 = __esm(() => {
|
|
213597
|
-
|
|
213980
|
+
import_property_provider42 = __toESM(require_dist_cjs16(), 1);
|
|
213598
213981
|
init_dist_es28();
|
|
213599
213982
|
init_resolveSSOCredentials2();
|
|
213600
213983
|
init_validateSsoProfile2();
|
|
@@ -213617,13 +214000,13 @@ var init_dist_es76 = __esm(() => {
|
|
|
213617
214000
|
});
|
|
213618
214001
|
|
|
213619
214002
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
213620
|
-
var import_client15, resolveCredentialSource2 = (credentialSource, profileName, logger4) => {
|
|
214003
|
+
var import_client15, import_property_provider43, resolveCredentialSource2 = (credentialSource, profileName, logger4) => {
|
|
213621
214004
|
const sourceProvidersMap = {
|
|
213622
214005
|
EcsContainer: async (options2) => {
|
|
213623
214006
|
const { fromHttp: fromHttp3 } = await Promise.resolve().then(() => (init_dist_es71(), exports_dist_es9));
|
|
213624
214007
|
const { fromContainerMetadata: fromContainerMetadata3 } = await Promise.resolve().then(() => (init_dist_es39(), exports_dist_es2));
|
|
213625
214008
|
logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
213626
|
-
return async () => chain(fromHttp3(options2 ?? {}), fromContainerMetadata3(options2))().then(setNamedProvider2);
|
|
214009
|
+
return async () => import_property_provider43.chain(fromHttp3(options2 ?? {}), fromContainerMetadata3(options2))().then(setNamedProvider2);
|
|
213627
214010
|
},
|
|
213628
214011
|
Ec2InstanceMetadata: async (options2) => {
|
|
213629
214012
|
logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
@@ -213639,12 +214022,12 @@ var import_client15, resolveCredentialSource2 = (credentialSource, profileName,
|
|
|
213639
214022
|
if (credentialSource in sourceProvidersMap) {
|
|
213640
214023
|
return sourceProvidersMap[credentialSource];
|
|
213641
214024
|
} else {
|
|
213642
|
-
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger: logger4 });
|
|
214025
|
+
throw new import_property_provider43.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger: logger4 });
|
|
213643
214026
|
}
|
|
213644
214027
|
}, setNamedProvider2 = (creds) => import_client15.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
213645
214028
|
var init_resolveCredentialSource2 = __esm(() => {
|
|
213646
214029
|
import_client15 = __toESM(require_client5(), 1);
|
|
213647
|
-
|
|
214030
|
+
import_property_provider43 = __toESM(require_dist_cjs16(), 1);
|
|
213648
214031
|
});
|
|
213649
214032
|
|
|
213650
214033
|
// ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
|
|
@@ -214219,7 +214602,7 @@ var require_sts3 = __commonJS((exports, module) => {
|
|
|
214219
214602
|
}
|
|
214220
214603
|
};
|
|
214221
214604
|
var import_core48 = require_dist_cjs47();
|
|
214222
|
-
var
|
|
214605
|
+
var import_protocol_http39 = require_dist_cjs2();
|
|
214223
214606
|
var import_smithy_client310 = require_dist_cjs46();
|
|
214224
214607
|
var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
214225
214608
|
const headers = SHARED_HEADERS;
|
|
@@ -214690,7 +215073,7 @@ var require_sts3 = __commonJS((exports, module) => {
|
|
|
214690
215073
|
if (body !== undefined) {
|
|
214691
215074
|
contents.body = body;
|
|
214692
215075
|
}
|
|
214693
|
-
return new
|
|
215076
|
+
return new import_protocol_http39.HttpRequest(contents);
|
|
214694
215077
|
}, "buildHttpRpcRequest");
|
|
214695
215078
|
var SHARED_HEADERS = {
|
|
214696
215079
|
"content-type": "application/x-www-form-urlencoded"
|
|
@@ -214902,7 +215285,7 @@ var require_sts3 = __commonJS((exports, module) => {
|
|
|
214902
215285
|
});
|
|
214903
215286
|
|
|
214904
215287
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
214905
|
-
var import_client16, isAssumeRoleProfile2 = (arg, { profile = "default", logger: logger4 } = {}) => {
|
|
215288
|
+
var import_client16, import_property_provider44, isAssumeRoleProfile2 = (arg, { profile = "default", logger: logger4 } = {}) => {
|
|
214906
215289
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile2(arg, { profile, logger: logger4 }) || isCredentialSourceProfile2(arg, { profile, logger: logger4 }));
|
|
214907
215290
|
}, isAssumeRoleWithSourceProfile2 = (arg, { profile, logger: logger4 }) => {
|
|
214908
215291
|
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
@@ -214932,7 +215315,7 @@ var import_client16, isAssumeRoleProfile2 = (arg, { profile = "default", logger:
|
|
|
214932
215315
|
}, options2.clientPlugins);
|
|
214933
215316
|
}
|
|
214934
215317
|
if (source_profile && source_profile in visitedProfiles) {
|
|
214935
|
-
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options2)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options2.logger });
|
|
215318
|
+
throw new import_property_provider44.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options2)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options2.logger });
|
|
214936
215319
|
}
|
|
214937
215320
|
options2.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
214938
215321
|
const sourceCredsProvider = source_profile ? resolveProfileData2(source_profile, profiles, options2, {
|
|
@@ -214951,7 +215334,7 @@ var import_client16, isAssumeRoleProfile2 = (arg, { profile = "default", logger:
|
|
|
214951
215334
|
const { mfa_serial } = profileData;
|
|
214952
215335
|
if (mfa_serial) {
|
|
214953
215336
|
if (!options2.mfaCodeProvider) {
|
|
214954
|
-
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options2.logger, tryNextLink: false });
|
|
215337
|
+
throw new import_property_provider44.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options2.logger, tryNextLink: false });
|
|
214955
215338
|
}
|
|
214956
215339
|
params2.SerialNumber = mfa_serial;
|
|
214957
215340
|
params2.TokenCode = await options2.mfaCodeProvider(mfa_serial);
|
|
@@ -214964,7 +215347,7 @@ var import_client16, isAssumeRoleProfile2 = (arg, { profile = "default", logger:
|
|
|
214964
215347
|
};
|
|
214965
215348
|
var init_resolveAssumeRoleCredentials2 = __esm(() => {
|
|
214966
215349
|
import_client16 = __toESM(require_client5(), 1);
|
|
214967
|
-
|
|
215350
|
+
import_property_provider44 = __toESM(require_dist_cjs16(), 1);
|
|
214968
215351
|
init_dist_es28();
|
|
214969
215352
|
init_resolveCredentialSource2();
|
|
214970
215353
|
init_resolveProfileData2();
|
|
@@ -215007,7 +215390,7 @@ var init_getValidatedProcessCredentials2 = __esm(() => {
|
|
|
215007
215390
|
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
215008
215391
|
import { exec as exec4 } from "child_process";
|
|
215009
215392
|
import { promisify as promisify3 } from "util";
|
|
215010
|
-
var resolveProcessCredentials3 = async (profileName, profiles, logger4) => {
|
|
215393
|
+
var import_property_provider45, resolveProcessCredentials3 = async (profileName, profiles, logger4) => {
|
|
215011
215394
|
const profile = profiles[profileName];
|
|
215012
215395
|
if (profiles[profileName]) {
|
|
215013
215396
|
const credentialProcess = profile["credential_process"];
|
|
@@ -215023,19 +215406,19 @@ var resolveProcessCredentials3 = async (profileName, profiles, logger4) => {
|
|
|
215023
215406
|
}
|
|
215024
215407
|
return getValidatedProcessCredentials2(profileName, data2, profiles);
|
|
215025
215408
|
} catch (error) {
|
|
215026
|
-
throw new CredentialsProviderError(error.message, { logger: logger4 });
|
|
215409
|
+
throw new import_property_provider45.CredentialsProviderError(error.message, { logger: logger4 });
|
|
215027
215410
|
}
|
|
215028
215411
|
} else {
|
|
215029
|
-
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger: logger4 });
|
|
215412
|
+
throw new import_property_provider45.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger: logger4 });
|
|
215030
215413
|
}
|
|
215031
215414
|
} else {
|
|
215032
|
-
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
215415
|
+
throw new import_property_provider45.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
215033
215416
|
logger: logger4
|
|
215034
215417
|
});
|
|
215035
215418
|
}
|
|
215036
215419
|
};
|
|
215037
215420
|
var init_resolveProcessCredentials3 = __esm(() => {
|
|
215038
|
-
|
|
215421
|
+
import_property_provider45 = __toESM(require_dist_cjs16(), 1);
|
|
215039
215422
|
init_getValidatedProcessCredentials2();
|
|
215040
215423
|
});
|
|
215041
215424
|
|
|
@@ -215135,13 +215518,13 @@ var fromWebToken3 = (init3) => async (awsIdentityProperties) => {
|
|
|
215135
215518
|
|
|
215136
215519
|
// ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
215137
215520
|
import { readFileSync as readFileSync3 } from "fs";
|
|
215138
|
-
var import_client21, ENV_TOKEN_FILE2 = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN2 = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME2 = "AWS_ROLE_SESSION_NAME", fromTokenFile3 = (init3 = {}) => async () => {
|
|
215521
|
+
var import_client21, import_property_provider46, ENV_TOKEN_FILE2 = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN2 = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME2 = "AWS_ROLE_SESSION_NAME", fromTokenFile3 = (init3 = {}) => async () => {
|
|
215139
215522
|
init3.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
215140
215523
|
const webIdentityTokenFile = init3?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE2];
|
|
215141
215524
|
const roleArn = init3?.roleArn ?? process.env[ENV_ROLE_ARN2];
|
|
215142
215525
|
const roleSessionName = init3?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME2];
|
|
215143
215526
|
if (!webIdentityTokenFile || !roleArn) {
|
|
215144
|
-
throw new CredentialsProviderError("Web identity configuration not specified", {
|
|
215527
|
+
throw new import_property_provider46.CredentialsProviderError("Web identity configuration not specified", {
|
|
215145
215528
|
logger: init3.logger
|
|
215146
215529
|
});
|
|
215147
215530
|
}
|
|
@@ -215158,7 +215541,7 @@ var import_client21, ENV_TOKEN_FILE2 = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_A
|
|
|
215158
215541
|
};
|
|
215159
215542
|
var init_fromTokenFile2 = __esm(() => {
|
|
215160
215543
|
import_client21 = __toESM(require_client5(), 1);
|
|
215161
|
-
|
|
215544
|
+
import_property_provider46 = __toESM(require_dist_cjs16(), 1);
|
|
215162
215545
|
});
|
|
215163
215546
|
|
|
215164
215547
|
// ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
|
|
@@ -215185,7 +215568,7 @@ var init_resolveWebIdentityCredentials2 = __esm(() => {
|
|
|
215185
215568
|
});
|
|
215186
215569
|
|
|
215187
215570
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
215188
|
-
var resolveProfileData2 = async (profileName, profiles, options2, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
215571
|
+
var import_property_provider47, resolveProfileData2 = async (profileName, profiles, options2, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
215189
215572
|
const data2 = profiles[profileName];
|
|
215190
215573
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile2(data2)) {
|
|
215191
215574
|
return resolveStaticCredentials2(data2, options2);
|
|
@@ -215205,10 +215588,10 @@ var resolveProfileData2 = async (profileName, profiles, options2, visitedProfile
|
|
|
215205
215588
|
if (isSsoProfile6(data2)) {
|
|
215206
215589
|
return await resolveSsoCredentials2(profileName, data2, options2);
|
|
215207
215590
|
}
|
|
215208
|
-
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options2.logger });
|
|
215591
|
+
throw new import_property_provider47.CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options2.logger });
|
|
215209
215592
|
};
|
|
215210
215593
|
var init_resolveProfileData2 = __esm(() => {
|
|
215211
|
-
|
|
215594
|
+
import_property_provider47 = __toESM(require_dist_cjs16(), 1);
|
|
215212
215595
|
init_resolveAssumeRoleCredentials2();
|
|
215213
215596
|
init_resolveProcessCredentials4();
|
|
215214
215597
|
init_resolveSsoCredentials2();
|
|
@@ -215246,7 +215629,7 @@ var init_dist_es79 = __esm(() => {
|
|
|
215246
215629
|
});
|
|
215247
215630
|
|
|
215248
215631
|
// ../../../../node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
215249
|
-
var multipleCredentialSourceWarningEmitted2 = false, defaultProvider3 = (init3 = {}) =>
|
|
215632
|
+
var import_property_provider48, multipleCredentialSourceWarningEmitted2 = false, defaultProvider3 = (init3 = {}) => import_property_provider48.memoize(import_property_provider48.chain(async () => {
|
|
215250
215633
|
const profile = init3.profile ?? process.env[ENV_PROFILE];
|
|
215251
215634
|
if (profile) {
|
|
215252
215635
|
const envStaticCredentialsAreSet = process.env[ENV_KEY2] && process.env[ENV_SECRET2];
|
|
@@ -215265,7 +215648,7 @@ var multipleCredentialSourceWarningEmitted2 = false, defaultProvider3 = (init3 =
|
|
|
215265
215648
|
multipleCredentialSourceWarningEmitted2 = true;
|
|
215266
215649
|
}
|
|
215267
215650
|
}
|
|
215268
|
-
throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
|
|
215651
|
+
throw new import_property_provider48.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
|
|
215269
215652
|
logger: init3.logger,
|
|
215270
215653
|
tryNextLink: true
|
|
215271
215654
|
});
|
|
@@ -215276,7 +215659,7 @@ var multipleCredentialSourceWarningEmitted2 = false, defaultProvider3 = (init3 =
|
|
|
215276
215659
|
init3.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
|
|
215277
215660
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init3;
|
|
215278
215661
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
215279
|
-
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init3.logger });
|
|
215662
|
+
throw new import_property_provider48.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init3.logger });
|
|
215280
215663
|
}
|
|
215281
215664
|
const { fromSSO: fromSSO5 } = await Promise.resolve().then(() => (init_dist_es76(), exports_dist_es10));
|
|
215282
215665
|
return fromSSO5(init3)();
|
|
@@ -215296,14 +215679,14 @@ var multipleCredentialSourceWarningEmitted2 = false, defaultProvider3 = (init3 =
|
|
|
215296
215679
|
init3.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
|
|
215297
215680
|
return (await remoteProvider2(init3))();
|
|
215298
215681
|
}, async () => {
|
|
215299
|
-
throw new CredentialsProviderError("Could not load credentials from any providers", {
|
|
215682
|
+
throw new import_property_provider48.CredentialsProviderError("Could not load credentials from any providers", {
|
|
215300
215683
|
tryNextLink: false,
|
|
215301
215684
|
logger: init3.logger
|
|
215302
215685
|
});
|
|
215303
215686
|
}), credentialsTreatedAsExpired2, credentialsWillNeedRefresh2), credentialsWillNeedRefresh2 = (credentials) => credentials?.expiration !== undefined, credentialsTreatedAsExpired2 = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
215304
215687
|
var init_defaultProvider2 = __esm(() => {
|
|
215305
215688
|
init_dist_es70();
|
|
215306
|
-
|
|
215689
|
+
import_property_provider48 = __toESM(require_dist_cjs16(), 1);
|
|
215307
215690
|
init_dist_es28();
|
|
215308
215691
|
init_remoteProvider2();
|
|
215309
215692
|
});
|
|
@@ -215406,7 +215789,7 @@ var init_runtimeConfig4 = __esm(() => {
|
|
|
215406
215789
|
init_dist_es62();
|
|
215407
215790
|
init_dist_es64();
|
|
215408
215791
|
init_dist_es73();
|
|
215409
|
-
|
|
215792
|
+
init_dist_es25();
|
|
215410
215793
|
init_dist_es56();
|
|
215411
215794
|
init_dist_es43();
|
|
215412
215795
|
init_dist_es57();
|
|
@@ -215492,10 +215875,10 @@ var init_S3Client2 = __esm(() => {
|
|
|
215492
215875
|
init_dist_es16();
|
|
215493
215876
|
init_dist_es64();
|
|
215494
215877
|
init_dist_es66();
|
|
215495
|
-
init_dist_es24();
|
|
215496
|
-
import_core50 = __toESM(require_dist_cjs45(), 1);
|
|
215497
215878
|
init_dist_es25();
|
|
215879
|
+
import_core50 = __toESM(require_dist_cjs45(), 1);
|
|
215498
215880
|
init_dist_es26();
|
|
215881
|
+
init_dist_es27();
|
|
215499
215882
|
init_dist_es67();
|
|
215500
215883
|
init_dist_es68();
|
|
215501
215884
|
init_dist_es63();
|
|
@@ -218806,7 +219189,7 @@ var init_dist_es84 = __esm(() => {
|
|
|
218806
219189
|
});
|
|
218807
219190
|
|
|
218808
219191
|
// ../../../../node_modules/@aws-sdk/s3-request-presigner/dist-es/constants.js
|
|
218809
|
-
var
|
|
219192
|
+
var UNSIGNED_PAYLOAD2 = "UNSIGNED-PAYLOAD", SHA256_HEADER2 = "X-Amz-Content-Sha256";
|
|
218810
219193
|
|
|
218811
219194
|
// ../../../../node_modules/@aws-sdk/s3-request-presigner/dist-es/presigner.js
|
|
218812
219195
|
class S3RequestPresigner {
|
|
@@ -218853,7 +219236,7 @@ class S3RequestPresigner {
|
|
|
218853
219236
|
unhoistableHeaders.add(header);
|
|
218854
219237
|
}
|
|
218855
219238
|
});
|
|
218856
|
-
requestToSign.headers[
|
|
219239
|
+
requestToSign.headers[SHA256_HEADER2] = UNSIGNED_PAYLOAD2;
|
|
218857
219240
|
const currentHostHeader = requestToSign.headers.host;
|
|
218858
219241
|
const port = requestToSign.port;
|
|
218859
219242
|
const expectedHostHeader = `${requestToSign.hostname}${requestToSign.port != null ? ":" + port : ""}`;
|