@alienplatform/sdk 1.11.2 → 1.13.0
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/.turbo/turbo-build.log +18 -44
- package/dist/bearerTokenAuthenticationPolicy.js +40 -40
- package/dist/{serde.js → checksum.js} +1103 -469
- package/dist/dist-cjs.js +15256 -1
- package/dist/dist.js +37 -23
- package/dist/es5.js +107 -11
- package/dist/esm.js +4803 -4946
- package/dist/esm2.js +298 -236
- package/dist/event-streams.js +571 -4
- package/dist/generated/artifact_registry.d.ts +14 -14
- package/dist/generated/artifact_registry.d.ts.map +1 -1
- package/dist/generated/build.d.ts +6 -6
- package/dist/generated/build.d.ts.map +1 -1
- package/dist/generated/container.d.ts +6 -6
- package/dist/generated/container.d.ts.map +1 -1
- package/dist/generated/control.d.ts +8 -8
- package/dist/generated/control.d.ts.map +1 -1
- package/dist/generated/kv.d.ts +10 -10
- package/dist/generated/kv.d.ts.map +1 -1
- package/dist/generated/queue.d.ts +6 -6
- package/dist/generated/queue.d.ts.map +1 -1
- package/dist/generated/service_account.d.ts +4 -4
- package/dist/generated/service_account.d.ts.map +1 -1
- package/dist/generated/storage.d.ts +28 -28
- package/dist/generated/storage.d.ts.map +1 -1
- package/dist/generated/vault.d.ts +6 -6
- package/dist/generated/vault.d.ts.map +1 -1
- package/dist/generated/wait_until.d.ts +8 -8
- package/dist/generated/wait_until.d.ts.map +1 -1
- package/dist/generated/worker.d.ts +4 -4
- package/dist/generated/worker.d.ts.map +1 -1
- package/dist/index.js +311 -278
- package/dist/open.js +2 -1
- package/dist/rolldown-runtime.js +9 -2
- package/dist/src.js +10240 -10043
- package/dist/src2.js +15 -13
- package/package.json +4 -4
- package/src/generated/artifact_registry.ts +125 -35
- package/src/generated/build.ts +67 -19
- package/src/generated/container.ts +28 -10
- package/src/generated/control.ts +130 -34
- package/src/generated/google/protobuf/duration.ts +1 -1
- package/src/generated/google/protobuf/timestamp.ts +1 -1
- package/src/generated/kv.ts +53 -21
- package/src/generated/queue.ts +37 -13
- package/src/generated/service_account.ts +64 -16
- package/src/generated/storage.ts +189 -61
- package/src/generated/vault.ts +37 -13
- package/src/generated/wait_until.ts +68 -20
- package/src/generated/worker.ts +29 -11
- package/dist/client.js +0 -2376
- package/dist/dist-cjs2.js +0 -718
- package/dist/dist-cjs3.js +0 -2486
- package/dist/dist-cjs4.js +0 -171
- package/dist/dist-cjs5.js +0 -429
- package/dist/dist-cjs6.js +0 -60
- package/dist/dist-cjs7.js +0 -978
- package/dist/dist-cjs8.js +0 -86
- package/dist/dist-cjs9.js +0 -319
- package/dist/package.js +0 -4
- package/dist/protocols.js +0 -954
- package/dist/protocols2.js +0 -5565
- package/dist/signin.js +0 -723
- package/dist/sso-oidc.js +0 -940
- package/dist/sts.js +0 -1329
- package/dist/tslib.es6.js +0 -543
package/dist/client.js
DELETED
|
@@ -1,2376 +0,0 @@
|
|
|
1
|
-
import { n as __esmMin, o as __toESM, r as __exportAll } from "./rolldown-runtime.js";
|
|
2
|
-
import { En as getSmithyContext, F as resolveRegionConfig, I as NODE_REGION_CONFIG_FILE_OPTIONS, K as loadConfig, L as NODE_REGION_CONFIG_OPTIONS, Mt as init_client$1, Nt as NoOpLogger, On as require_dist_cjs, R as REGION_ENV_NAME, S as EndpointError, Sn as HttpResponse, Y as booleanSelector, _n as normalizeProvider$1, a as v4, b as customEndpointFunctions, bt as parseRfc7231DateTime, dn as init_transport, f as init_endpoints, h as resolveEndpoint, j as init_config$1, pn as parseUrl, q as SelectorType, r as init_serde, wn as HttpRequest, xn as isValidHostLabel, y as isIpAddress, z as REGION_INI_NAME } from "./serde.js";
|
|
3
|
-
import { _ as requestBuilder, t as init_protocols } from "./protocols.js";
|
|
4
|
-
import { Readable } from "node:stream";
|
|
5
|
-
import { platform, release } from "node:os";
|
|
6
|
-
import { join, normalize, sep } from "node:path";
|
|
7
|
-
import { readFile } from "node:fs/promises";
|
|
8
|
-
import { env, versions } from "node:process";
|
|
9
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
|
|
10
|
-
var state, emitWarningIfUnsupportedVersion;
|
|
11
|
-
var init_emitWarningIfUnsupportedVersion = __esmMin((() => {
|
|
12
|
-
state = { warningEmitted: false };
|
|
13
|
-
emitWarningIfUnsupportedVersion = (version) => {
|
|
14
|
-
if (version && !state.warningEmitted) {
|
|
15
|
-
if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
|
|
16
|
-
state.warningEmitted = true;
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
|
|
20
|
-
const vv = 22;
|
|
21
|
-
if (userMajorVersion < vv) {
|
|
22
|
-
state.warningEmitted = true;
|
|
23
|
-
process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
24
|
-
versions published after the first week of January 2027
|
|
25
|
-
will require node >=${vv}. You are running node ${version}.
|
|
26
|
-
|
|
27
|
-
To continue receiving updates to AWS services, bug fixes,
|
|
28
|
-
and security updates please upgrade to node >=${vv}.
|
|
29
|
-
|
|
30
|
-
More information can be found at: https://a.co/c895JFp`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}));
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js
|
|
37
|
-
var longPollMiddleware, longPollMiddlewareOptions, getLongPollPlugin;
|
|
38
|
-
var init_longPollMiddleware = __esmMin((() => {
|
|
39
|
-
longPollMiddleware = () => (next, context) => async (args) => {
|
|
40
|
-
context.__retryLongPoll = true;
|
|
41
|
-
return next(args);
|
|
42
|
-
};
|
|
43
|
-
longPollMiddlewareOptions = {
|
|
44
|
-
name: "longPollMiddleware",
|
|
45
|
-
tags: ["RETRY"],
|
|
46
|
-
step: "initialize",
|
|
47
|
-
override: true
|
|
48
|
-
};
|
|
49
|
-
getLongPollPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
50
|
-
clientStack.add(longPollMiddleware(), longPollMiddlewareOptions);
|
|
51
|
-
} });
|
|
52
|
-
}));
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
|
|
55
|
-
function setCredentialFeature(credentials, feature, value) {
|
|
56
|
-
if (!credentials.$source) credentials.$source = {};
|
|
57
|
-
credentials.$source[feature] = value;
|
|
58
|
-
return credentials;
|
|
59
|
-
}
|
|
60
|
-
var init_setCredentialFeature = __esmMin((() => {}));
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/isStreamingPayload/isStreamingPayload.js
|
|
63
|
-
var isStreamingPayload;
|
|
64
|
-
var init_isStreamingPayload = __esmMin((() => {
|
|
65
|
-
isStreamingPayload = (request) => request?.body instanceof Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream;
|
|
66
|
-
}));
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js
|
|
69
|
-
var CLOCK_SKEW_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, NODEJS_TIMEOUT_ERROR_CODES, NODEJS_NETWORK_ERROR_CODES;
|
|
70
|
-
var init_constants$2 = __esmMin((() => {
|
|
71
|
-
CLOCK_SKEW_ERROR_CODES = [
|
|
72
|
-
"AuthFailure",
|
|
73
|
-
"InvalidSignatureException",
|
|
74
|
-
"RequestExpired",
|
|
75
|
-
"RequestInTheFuture",
|
|
76
|
-
"RequestTimeTooSkewed",
|
|
77
|
-
"SignatureDoesNotMatch"
|
|
78
|
-
];
|
|
79
|
-
THROTTLING_ERROR_CODES = [
|
|
80
|
-
"BandwidthLimitExceeded",
|
|
81
|
-
"EC2ThrottledException",
|
|
82
|
-
"LimitExceededException",
|
|
83
|
-
"PriorRequestNotComplete",
|
|
84
|
-
"ProvisionedThroughputExceededException",
|
|
85
|
-
"RequestLimitExceeded",
|
|
86
|
-
"RequestThrottled",
|
|
87
|
-
"RequestThrottledException",
|
|
88
|
-
"SlowDown",
|
|
89
|
-
"ThrottledException",
|
|
90
|
-
"Throttling",
|
|
91
|
-
"ThrottlingException",
|
|
92
|
-
"TooManyRequestsException",
|
|
93
|
-
"TransactionInProgressException"
|
|
94
|
-
];
|
|
95
|
-
TRANSIENT_ERROR_CODES = [
|
|
96
|
-
"TimeoutError",
|
|
97
|
-
"RequestTimeout",
|
|
98
|
-
"RequestTimeoutException"
|
|
99
|
-
];
|
|
100
|
-
TRANSIENT_ERROR_STATUS_CODES = [
|
|
101
|
-
500,
|
|
102
|
-
502,
|
|
103
|
-
503,
|
|
104
|
-
504
|
|
105
|
-
];
|
|
106
|
-
NODEJS_TIMEOUT_ERROR_CODES = [
|
|
107
|
-
"ECONNRESET",
|
|
108
|
-
"ECONNREFUSED",
|
|
109
|
-
"EPIPE",
|
|
110
|
-
"ETIMEDOUT"
|
|
111
|
-
];
|
|
112
|
-
NODEJS_NETWORK_ERROR_CODES = [
|
|
113
|
-
"EHOSTUNREACH",
|
|
114
|
-
"ENETUNREACH",
|
|
115
|
-
"ENOTFOUND",
|
|
116
|
-
"EAI_AGAIN"
|
|
117
|
-
];
|
|
118
|
-
}));
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js
|
|
121
|
-
function isNodeJsHttp2TransientError(error) {
|
|
122
|
-
return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
|
|
123
|
-
}
|
|
124
|
-
var isRetryableByTrait, isClockSkewError, isClockSkewCorrectedError, isBrowserNetworkError, isThrottlingError, isTransientError, isServerError;
|
|
125
|
-
var init_service_error_classification = __esmMin((() => {
|
|
126
|
-
init_constants$2();
|
|
127
|
-
isRetryableByTrait = (error) => error?.$retryable !== void 0;
|
|
128
|
-
isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name);
|
|
129
|
-
isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
|
|
130
|
-
isBrowserNetworkError = (error) => {
|
|
131
|
-
const errorMessages = new Set([
|
|
132
|
-
"Failed to fetch",
|
|
133
|
-
"NetworkError when attempting to fetch resource",
|
|
134
|
-
"The Internet connection appears to be offline",
|
|
135
|
-
"Load failed",
|
|
136
|
-
"Network request failed"
|
|
137
|
-
]);
|
|
138
|
-
if (!(error && error instanceof TypeError)) return false;
|
|
139
|
-
return errorMessages.has(error.message);
|
|
140
|
-
};
|
|
141
|
-
isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true;
|
|
142
|
-
isTransientError = (error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || error.name === "InvalidSignatureException" && error.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || isNodeJsHttp2TransientError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
|
|
143
|
-
isServerError = (error) => {
|
|
144
|
-
if (error.$metadata?.httpStatusCode !== void 0) {
|
|
145
|
-
const statusCode = error.$metadata.httpStatusCode;
|
|
146
|
-
if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) return true;
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
return false;
|
|
150
|
-
};
|
|
151
|
-
}));
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/constants.js
|
|
154
|
-
var MAXIMUM_RETRY_DELAY, INVOCATION_ID_HEADER, REQUEST_HEADER;
|
|
155
|
-
var init_constants$1 = __esmMin((() => {
|
|
156
|
-
MAXIMUM_RETRY_DELAY = 20 * 1e3;
|
|
157
|
-
INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
|
|
158
|
-
REQUEST_HEADER = "amz-sdk-request";
|
|
159
|
-
}));
|
|
160
|
-
//#endregion
|
|
161
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js
|
|
162
|
-
function parseRetryAfterHeader(response, logger) {
|
|
163
|
-
if (!HttpResponse.isInstance(response)) return;
|
|
164
|
-
for (const header of Object.keys(response.headers)) {
|
|
165
|
-
const h = header.toLowerCase();
|
|
166
|
-
if (h === "retry-after") {
|
|
167
|
-
const retryAfter = response.headers[header];
|
|
168
|
-
let retryAfterSeconds = NaN;
|
|
169
|
-
if (retryAfter.endsWith("GMT")) try {
|
|
170
|
-
retryAfterSeconds = (parseRfc7231DateTime(retryAfter).getTime() - Date.now()) / 1e3;
|
|
171
|
-
} catch (e) {
|
|
172
|
-
logger?.trace?.("Failed to parse retry-after header");
|
|
173
|
-
logger?.trace?.(e);
|
|
174
|
-
}
|
|
175
|
-
else if (retryAfter.match(/ GMT, ((\d+)|(\d+\.\d+))$/)) retryAfterSeconds = Number(retryAfter.match(/ GMT, ([\d.]+)$/)?.[1]);
|
|
176
|
-
else if (retryAfter.match(/^((\d+)|(\d+\.\d+))$/)) retryAfterSeconds = Number(retryAfter);
|
|
177
|
-
else if (Date.parse(retryAfter) >= Date.now()) retryAfterSeconds = (Date.parse(retryAfter) - Date.now()) / 1e3;
|
|
178
|
-
if (isNaN(retryAfterSeconds)) return;
|
|
179
|
-
return new Date(Date.now() + retryAfterSeconds * 1e3);
|
|
180
|
-
} else if (h === "x-amz-retry-after") {
|
|
181
|
-
const v = response.headers[header];
|
|
182
|
-
const backoffMilliseconds = Number(v);
|
|
183
|
-
if (isNaN(backoffMilliseconds)) {
|
|
184
|
-
logger?.trace?.(`Failed to parse x-amz-retry-after=${v}`);
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
return new Date(Date.now() + backoffMilliseconds);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
function getRetryAfterHint(response, logger) {
|
|
192
|
-
return parseRetryAfterHeader(response, logger);
|
|
193
|
-
}
|
|
194
|
-
var init_parseRetryAfterHeader = __esmMin((() => {
|
|
195
|
-
init_protocols();
|
|
196
|
-
init_serde();
|
|
197
|
-
}));
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js
|
|
200
|
-
var asSdkError;
|
|
201
|
-
var init_util = __esmMin((() => {
|
|
202
|
-
asSdkError = (error) => {
|
|
203
|
-
if (error instanceof Error) return error;
|
|
204
|
-
if (error instanceof Object) return Object.assign(/* @__PURE__ */ new Error(), error);
|
|
205
|
-
if (typeof error === "string") return new Error(error);
|
|
206
|
-
return /* @__PURE__ */ new Error(`AWS SDK error wrapper for ${error}`);
|
|
207
|
-
};
|
|
208
|
-
}));
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js
|
|
211
|
-
function bindRetryMiddleware(isStreamingPayload) {
|
|
212
|
-
return (options) => (next, context) => async (args) => {
|
|
213
|
-
let retryStrategy = await options.retryStrategy();
|
|
214
|
-
const maxAttempts = await options.maxAttempts();
|
|
215
|
-
if (isRetryStrategyV2(retryStrategy)) {
|
|
216
|
-
retryStrategy = retryStrategy;
|
|
217
|
-
let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : ""));
|
|
218
|
-
let lastError = /* @__PURE__ */ new Error();
|
|
219
|
-
let attempts = 0;
|
|
220
|
-
let totalRetryDelay = 0;
|
|
221
|
-
const { request } = args;
|
|
222
|
-
const isRequest = HttpRequest.isInstance(request);
|
|
223
|
-
if (isRequest) request.headers[INVOCATION_ID_HEADER] = v4();
|
|
224
|
-
while (true) try {
|
|
225
|
-
if (isRequest) request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
|
226
|
-
const { response, output } = await next(args);
|
|
227
|
-
retryStrategy.recordSuccess(retryToken);
|
|
228
|
-
output.$metadata.attempts = attempts + 1;
|
|
229
|
-
output.$metadata.totalRetryDelay = totalRetryDelay;
|
|
230
|
-
return {
|
|
231
|
-
response,
|
|
232
|
-
output
|
|
233
|
-
};
|
|
234
|
-
} catch (e) {
|
|
235
|
-
const retryErrorInfo = getRetryErrorInfo(e, options.logger);
|
|
236
|
-
lastError = asSdkError(e);
|
|
237
|
-
if (isRequest && isStreamingPayload(request)) {
|
|
238
|
-
(context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request.");
|
|
239
|
-
throw lastError;
|
|
240
|
-
}
|
|
241
|
-
try {
|
|
242
|
-
retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
|
|
243
|
-
} catch (refreshError) {
|
|
244
|
-
if (!lastError.$metadata) lastError.$metadata = {};
|
|
245
|
-
lastError.$metadata.attempts = attempts + 1;
|
|
246
|
-
lastError.$metadata.totalRetryDelay = totalRetryDelay;
|
|
247
|
-
throw lastError;
|
|
248
|
-
}
|
|
249
|
-
attempts = retryToken.getRetryCount();
|
|
250
|
-
const delay = retryToken.getRetryDelay();
|
|
251
|
-
totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
|
|
252
|
-
if (delay > 0) await cooldown(delay);
|
|
253
|
-
}
|
|
254
|
-
} else {
|
|
255
|
-
retryStrategy = retryStrategy;
|
|
256
|
-
if (retryStrategy?.mode) context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
|
|
257
|
-
return retryStrategy.retry(next, args);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
function bindGetRetryPlugin(isStreamingPayload) {
|
|
262
|
-
const retryMiddleware = bindRetryMiddleware(isStreamingPayload);
|
|
263
|
-
return (options) => ({ applyToStack: (clientStack) => {
|
|
264
|
-
clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
|
|
265
|
-
} });
|
|
266
|
-
}
|
|
267
|
-
var cooldown, isRetryStrategyV2, getRetryErrorInfo, getRetryErrorType, retryMiddlewareOptions;
|
|
268
|
-
var init_retryMiddleware = __esmMin((() => {
|
|
269
|
-
init_client$1();
|
|
270
|
-
init_protocols();
|
|
271
|
-
init_serde();
|
|
272
|
-
init_service_error_classification();
|
|
273
|
-
init_constants$1();
|
|
274
|
-
init_parseRetryAfterHeader();
|
|
275
|
-
init_util();
|
|
276
|
-
cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
277
|
-
isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
|
|
278
|
-
getRetryErrorInfo = (error, logger) => {
|
|
279
|
-
const errorInfo = {
|
|
280
|
-
error,
|
|
281
|
-
errorType: getRetryErrorType(error)
|
|
282
|
-
};
|
|
283
|
-
const retryAfterHint = parseRetryAfterHeader(error.$response, logger);
|
|
284
|
-
if (retryAfterHint) errorInfo.retryAfterHint = retryAfterHint;
|
|
285
|
-
return errorInfo;
|
|
286
|
-
};
|
|
287
|
-
getRetryErrorType = (error) => {
|
|
288
|
-
if (isThrottlingError(error)) return "THROTTLING";
|
|
289
|
-
if (isTransientError(error)) return "TRANSIENT";
|
|
290
|
-
if (isServerError(error)) return "SERVER_ERROR";
|
|
291
|
-
return "CLIENT_ERROR";
|
|
292
|
-
};
|
|
293
|
-
retryMiddlewareOptions = {
|
|
294
|
-
name: "retryMiddleware",
|
|
295
|
-
tags: ["RETRY"],
|
|
296
|
-
step: "finalizeRequest",
|
|
297
|
-
priority: "high",
|
|
298
|
-
override: true
|
|
299
|
-
};
|
|
300
|
-
}));
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js
|
|
303
|
-
var DefaultRateLimiter;
|
|
304
|
-
var init_DefaultRateLimiter = __esmMin((() => {
|
|
305
|
-
init_service_error_classification();
|
|
306
|
-
DefaultRateLimiter = class DefaultRateLimiter {
|
|
307
|
-
static setTimeoutFn = (fn, delay) => setTimeout(fn, delay);
|
|
308
|
-
beta;
|
|
309
|
-
minCapacity;
|
|
310
|
-
minFillRate;
|
|
311
|
-
scaleConstant;
|
|
312
|
-
smooth;
|
|
313
|
-
enabled = false;
|
|
314
|
-
availableTokens = 0;
|
|
315
|
-
lastMaxRate = 0;
|
|
316
|
-
measuredTxRate = 0;
|
|
317
|
-
requestCount = 0;
|
|
318
|
-
fillRate;
|
|
319
|
-
lastThrottleTime;
|
|
320
|
-
lastTimestamp = 0;
|
|
321
|
-
lastTxRateBucket;
|
|
322
|
-
maxCapacity;
|
|
323
|
-
timeWindow = 0;
|
|
324
|
-
constructor(options) {
|
|
325
|
-
this.beta = options?.beta ?? .7;
|
|
326
|
-
this.minCapacity = options?.minCapacity ?? 1;
|
|
327
|
-
this.minFillRate = options?.minFillRate ?? .5;
|
|
328
|
-
this.scaleConstant = options?.scaleConstant ?? .4;
|
|
329
|
-
this.smooth = options?.smooth ?? .8;
|
|
330
|
-
this.lastThrottleTime = this.getCurrentTimeInSeconds();
|
|
331
|
-
this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
|
|
332
|
-
this.fillRate = this.minFillRate;
|
|
333
|
-
this.maxCapacity = this.minCapacity;
|
|
334
|
-
}
|
|
335
|
-
async getSendToken() {
|
|
336
|
-
return this.acquireTokenBucket(1);
|
|
337
|
-
}
|
|
338
|
-
updateClientSendingRate(response) {
|
|
339
|
-
let calculatedRate;
|
|
340
|
-
this.updateMeasuredRate();
|
|
341
|
-
const retryErrorInfo = response;
|
|
342
|
-
if (retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response)) {
|
|
343
|
-
const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
|
|
344
|
-
this.lastMaxRate = rateToUse;
|
|
345
|
-
this.calculateTimeWindow();
|
|
346
|
-
this.lastThrottleTime = this.getCurrentTimeInSeconds();
|
|
347
|
-
calculatedRate = this.cubicThrottle(rateToUse);
|
|
348
|
-
this.enableTokenBucket();
|
|
349
|
-
} else {
|
|
350
|
-
this.calculateTimeWindow();
|
|
351
|
-
calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
|
|
352
|
-
}
|
|
353
|
-
const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
|
|
354
|
-
this.updateTokenBucketRate(newRate);
|
|
355
|
-
}
|
|
356
|
-
getCurrentTimeInSeconds() {
|
|
357
|
-
return Date.now() / 1e3;
|
|
358
|
-
}
|
|
359
|
-
async acquireTokenBucket(amount) {
|
|
360
|
-
if (!this.enabled) return;
|
|
361
|
-
this.refillTokenBucket();
|
|
362
|
-
while (amount > this.availableTokens) {
|
|
363
|
-
const delay = (amount - this.availableTokens) / this.fillRate * 1e3;
|
|
364
|
-
await new Promise((resolve) => DefaultRateLimiter.setTimeoutFn(resolve, delay));
|
|
365
|
-
this.refillTokenBucket();
|
|
366
|
-
}
|
|
367
|
-
this.availableTokens = this.availableTokens - amount;
|
|
368
|
-
}
|
|
369
|
-
refillTokenBucket() {
|
|
370
|
-
const timestamp = this.getCurrentTimeInSeconds();
|
|
371
|
-
if (!this.lastTimestamp) {
|
|
372
|
-
this.lastTimestamp = timestamp;
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;
|
|
376
|
-
this.availableTokens = Math.min(this.maxCapacity, this.availableTokens + fillAmount);
|
|
377
|
-
this.lastTimestamp = timestamp;
|
|
378
|
-
}
|
|
379
|
-
calculateTimeWindow() {
|
|
380
|
-
this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));
|
|
381
|
-
}
|
|
382
|
-
cubicThrottle(rateToUse) {
|
|
383
|
-
return this.getPrecise(rateToUse * this.beta);
|
|
384
|
-
}
|
|
385
|
-
cubicSuccess(timestamp) {
|
|
386
|
-
return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate);
|
|
387
|
-
}
|
|
388
|
-
enableTokenBucket() {
|
|
389
|
-
this.enabled = true;
|
|
390
|
-
}
|
|
391
|
-
updateTokenBucketRate(newRate) {
|
|
392
|
-
this.refillTokenBucket();
|
|
393
|
-
this.fillRate = Math.max(newRate, this.minFillRate);
|
|
394
|
-
this.maxCapacity = Math.max(newRate, this.minCapacity);
|
|
395
|
-
this.availableTokens = Math.min(this.availableTokens, this.maxCapacity);
|
|
396
|
-
}
|
|
397
|
-
updateMeasuredRate() {
|
|
398
|
-
const t = this.getCurrentTimeInSeconds();
|
|
399
|
-
const timeBucket = Math.floor(t * 2) / 2;
|
|
400
|
-
this.requestCount++;
|
|
401
|
-
if (timeBucket > this.lastTxRateBucket) {
|
|
402
|
-
const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket);
|
|
403
|
-
this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth));
|
|
404
|
-
this.requestCount = 0;
|
|
405
|
-
this.lastTxRateBucket = timeBucket;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
getPrecise(num) {
|
|
409
|
-
return parseFloat(num.toFixed(8));
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
}));
|
|
413
|
-
//#endregion
|
|
414
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/retries-2026-config.js
|
|
415
|
-
var Retry;
|
|
416
|
-
var init_retries_2026_config = __esmMin((() => {
|
|
417
|
-
Retry = class Retry {
|
|
418
|
-
static v2026 = typeof process !== "undefined" && process.env?.SMITHY_NEW_RETRIES_2026 === "true";
|
|
419
|
-
static delay() {
|
|
420
|
-
return Retry.v2026 ? 50 : 100;
|
|
421
|
-
}
|
|
422
|
-
static throttlingDelay() {
|
|
423
|
-
return Retry.v2026 ? 1e3 : 500;
|
|
424
|
-
}
|
|
425
|
-
static cost() {
|
|
426
|
-
return Retry.v2026 ? 14 : 5;
|
|
427
|
-
}
|
|
428
|
-
static throttlingCost() {
|
|
429
|
-
return Retry.v2026 ? 5 : 10;
|
|
430
|
-
}
|
|
431
|
-
static modifiedCostType() {
|
|
432
|
-
return Retry.v2026 ? "THROTTLING" : "TRANSIENT";
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
}));
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryBackoffStrategy.js
|
|
438
|
-
var DefaultRetryBackoffStrategy;
|
|
439
|
-
var init_DefaultRetryBackoffStrategy = __esmMin((() => {
|
|
440
|
-
init_constants$1();
|
|
441
|
-
init_retries_2026_config();
|
|
442
|
-
DefaultRetryBackoffStrategy = class {
|
|
443
|
-
x = Retry.delay();
|
|
444
|
-
computeNextBackoffDelay(i) {
|
|
445
|
-
const t_i = Math.random() * Math.min(this.x * 2 ** i, MAXIMUM_RETRY_DELAY);
|
|
446
|
-
return Math.floor(t_i);
|
|
447
|
-
}
|
|
448
|
-
setDelayBase(delay) {
|
|
449
|
-
this.x = delay;
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
}));
|
|
453
|
-
//#endregion
|
|
454
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js
|
|
455
|
-
var DefaultRetryToken;
|
|
456
|
-
var init_DefaultRetryToken = __esmMin((() => {
|
|
457
|
-
init_constants$1();
|
|
458
|
-
DefaultRetryToken = class {
|
|
459
|
-
delay;
|
|
460
|
-
count;
|
|
461
|
-
cost;
|
|
462
|
-
longPoll;
|
|
463
|
-
$retryLog = { acquisitionDelay: 0 };
|
|
464
|
-
constructor(delay, count, cost, longPoll) {
|
|
465
|
-
this.delay = delay;
|
|
466
|
-
this.count = count;
|
|
467
|
-
this.cost = cost;
|
|
468
|
-
this.longPoll = longPoll;
|
|
469
|
-
}
|
|
470
|
-
getRetryCount() {
|
|
471
|
-
return this.count;
|
|
472
|
-
}
|
|
473
|
-
getRetryDelay() {
|
|
474
|
-
return Math.min(MAXIMUM_RETRY_DELAY, this.delay);
|
|
475
|
-
}
|
|
476
|
-
getRetryCost() {
|
|
477
|
-
return this.cost;
|
|
478
|
-
}
|
|
479
|
-
isLongPoll() {
|
|
480
|
-
return this.longPoll;
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
}));
|
|
484
|
-
//#endregion
|
|
485
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/config.js
|
|
486
|
-
var RETRY_MODES, DEFAULT_RETRY_MODE;
|
|
487
|
-
var init_config = __esmMin((() => {
|
|
488
|
-
(function(RETRY_MODES) {
|
|
489
|
-
RETRY_MODES["STANDARD"] = "standard";
|
|
490
|
-
RETRY_MODES["ADAPTIVE"] = "adaptive";
|
|
491
|
-
})(RETRY_MODES || (RETRY_MODES = {}));
|
|
492
|
-
DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
|
|
493
|
-
}));
|
|
494
|
-
//#endregion
|
|
495
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js
|
|
496
|
-
var refusal, StandardRetryStrategy$1;
|
|
497
|
-
var init_StandardRetryStrategy$1 = __esmMin((() => {
|
|
498
|
-
init_DefaultRetryBackoffStrategy();
|
|
499
|
-
init_DefaultRetryToken();
|
|
500
|
-
init_config();
|
|
501
|
-
init_constants$1();
|
|
502
|
-
init_retries_2026_config();
|
|
503
|
-
refusal = {
|
|
504
|
-
incompatible: 1,
|
|
505
|
-
attempts: 2,
|
|
506
|
-
capacity: 3
|
|
507
|
-
};
|
|
508
|
-
StandardRetryStrategy$1 = class {
|
|
509
|
-
mode = RETRY_MODES.STANDARD;
|
|
510
|
-
retryBackoffStrategy;
|
|
511
|
-
capacity = 500;
|
|
512
|
-
maxAttemptsProvider;
|
|
513
|
-
baseDelay;
|
|
514
|
-
constructor(arg1) {
|
|
515
|
-
if (typeof arg1 === "number") this.maxAttemptsProvider = async () => arg1;
|
|
516
|
-
else if (typeof arg1 === "function") this.maxAttemptsProvider = arg1;
|
|
517
|
-
else if (arg1 && typeof arg1 === "object") {
|
|
518
|
-
this.maxAttemptsProvider = async () => arg1.maxAttempts;
|
|
519
|
-
this.baseDelay = arg1.baseDelay;
|
|
520
|
-
this.retryBackoffStrategy = arg1.backoff;
|
|
521
|
-
}
|
|
522
|
-
this.maxAttemptsProvider ??= async () => 3;
|
|
523
|
-
this.baseDelay ??= Retry.delay();
|
|
524
|
-
this.retryBackoffStrategy ??= new DefaultRetryBackoffStrategy();
|
|
525
|
-
}
|
|
526
|
-
async acquireInitialRetryToken(retryTokenScope) {
|
|
527
|
-
return new DefaultRetryToken(Retry.delay(), 0, void 0, Retry.v2026 && retryTokenScope.includes(":longpoll"));
|
|
528
|
-
}
|
|
529
|
-
async refreshRetryTokenForRetry(token, errorInfo) {
|
|
530
|
-
const maxAttempts = await this.getMaxAttempts();
|
|
531
|
-
const retryCode = this.retryCode(token, errorInfo, maxAttempts);
|
|
532
|
-
const shouldRetry = retryCode === 0;
|
|
533
|
-
const isLongPoll = token.isLongPoll?.();
|
|
534
|
-
if (shouldRetry || isLongPoll) {
|
|
535
|
-
const errorType = errorInfo.errorType;
|
|
536
|
-
this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? Retry.throttlingDelay() : this.baseDelay);
|
|
537
|
-
const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
|
|
538
|
-
let retryDelay = delayFromErrorType;
|
|
539
|
-
if (errorInfo.retryAfterHint instanceof Date) retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5e3));
|
|
540
|
-
if (!shouldRetry) {
|
|
541
|
-
const longPollBackoff = Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0;
|
|
542
|
-
if (longPollBackoff > 0) await new Promise((r) => setTimeout(r, longPollBackoff));
|
|
543
|
-
} else {
|
|
544
|
-
const capacityCost = this.getCapacityCost(errorType);
|
|
545
|
-
this.capacity -= capacityCost;
|
|
546
|
-
const nextToken = new DefaultRetryToken(0, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
|
|
547
|
-
await new Promise((r) => setTimeout(r, retryDelay));
|
|
548
|
-
nextToken.$retryLog.acquisitionDelay = retryDelay;
|
|
549
|
-
return nextToken;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
throw new Error("No retry token available");
|
|
553
|
-
}
|
|
554
|
-
recordSuccess(token) {
|
|
555
|
-
this.capacity = Math.min(500, this.capacity + (token.getRetryCost() ?? 1));
|
|
556
|
-
}
|
|
557
|
-
getCapacity() {
|
|
558
|
-
return this.capacity;
|
|
559
|
-
}
|
|
560
|
-
async maxAttempts() {
|
|
561
|
-
return this.maxAttemptsProvider();
|
|
562
|
-
}
|
|
563
|
-
async getMaxAttempts() {
|
|
564
|
-
try {
|
|
565
|
-
return await this.maxAttemptsProvider();
|
|
566
|
-
} catch (error) {
|
|
567
|
-
console.warn(`Max attempts provider could not resolve. Using default of 3`);
|
|
568
|
-
return 3;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
retryCode(tokenToRenew, errorInfo, maxAttempts) {
|
|
572
|
-
const attempts = tokenToRenew.getRetryCount() + 1;
|
|
573
|
-
const retryableStatus = this.isRetryableError(errorInfo.errorType) ? 0 : refusal.incompatible;
|
|
574
|
-
const attemptStatus = attempts < maxAttempts ? 0 : refusal.attempts;
|
|
575
|
-
const capacityStatus = this.capacity >= this.getCapacityCost(errorInfo.errorType) ? 0 : refusal.capacity;
|
|
576
|
-
return retryableStatus || attemptStatus || capacityStatus;
|
|
577
|
-
}
|
|
578
|
-
getCapacityCost(errorType) {
|
|
579
|
-
return errorType === Retry.modifiedCostType() ? Retry.throttlingCost() : Retry.cost();
|
|
580
|
-
}
|
|
581
|
-
isRetryableError(errorType) {
|
|
582
|
-
return errorType === "THROTTLING" || errorType === "TRANSIENT";
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
}));
|
|
586
|
-
//#endregion
|
|
587
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/AdaptiveRetryStrategy.js
|
|
588
|
-
var AdaptiveRetryStrategy$1;
|
|
589
|
-
var init_AdaptiveRetryStrategy$1 = __esmMin((() => {
|
|
590
|
-
init_DefaultRateLimiter();
|
|
591
|
-
init_StandardRetryStrategy$1();
|
|
592
|
-
init_config();
|
|
593
|
-
AdaptiveRetryStrategy$1 = class {
|
|
594
|
-
mode = RETRY_MODES.ADAPTIVE;
|
|
595
|
-
rateLimiter;
|
|
596
|
-
standardRetryStrategy;
|
|
597
|
-
constructor(maxAttemptsProvider, options) {
|
|
598
|
-
const { rateLimiter } = options ?? {};
|
|
599
|
-
this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
|
|
600
|
-
this.standardRetryStrategy = options ? new StandardRetryStrategy$1({
|
|
601
|
-
maxAttempts: typeof maxAttemptsProvider === "number" ? maxAttemptsProvider : 3,
|
|
602
|
-
...options
|
|
603
|
-
}) : new StandardRetryStrategy$1(maxAttemptsProvider);
|
|
604
|
-
}
|
|
605
|
-
async acquireInitialRetryToken(retryTokenScope) {
|
|
606
|
-
const token = await this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
|
|
607
|
-
await this.rateLimiter.getSendToken();
|
|
608
|
-
return token;
|
|
609
|
-
}
|
|
610
|
-
async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
|
|
611
|
-
this.rateLimiter.updateClientSendingRate(errorInfo);
|
|
612
|
-
const token = await this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
|
|
613
|
-
await this.rateLimiter.getSendToken();
|
|
614
|
-
return token;
|
|
615
|
-
}
|
|
616
|
-
recordSuccess(token) {
|
|
617
|
-
this.rateLimiter.updateClientSendingRate({});
|
|
618
|
-
this.standardRetryStrategy.recordSuccess(token);
|
|
619
|
-
}
|
|
620
|
-
async maxAttemptsProvider() {
|
|
621
|
-
return this.standardRetryStrategy.maxAttempts();
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
}));
|
|
625
|
-
//#endregion
|
|
626
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js
|
|
627
|
-
var ConfiguredRetryStrategy;
|
|
628
|
-
var init_ConfiguredRetryStrategy = __esmMin((() => {
|
|
629
|
-
init_StandardRetryStrategy$1();
|
|
630
|
-
init_retries_2026_config();
|
|
631
|
-
ConfiguredRetryStrategy = class extends StandardRetryStrategy$1 {
|
|
632
|
-
computeNextBackoffDelay;
|
|
633
|
-
constructor(maxAttempts, computeNextBackoffDelay = Retry.delay()) {
|
|
634
|
-
super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts);
|
|
635
|
-
if (typeof computeNextBackoffDelay === "number") this.computeNextBackoffDelay = () => computeNextBackoffDelay;
|
|
636
|
-
else this.computeNextBackoffDelay = computeNextBackoffDelay;
|
|
637
|
-
this.retryBackoffStrategy.computeNextBackoffDelay = (completedAttempt) => {
|
|
638
|
-
const nextAttempt = completedAttempt + 1;
|
|
639
|
-
return this.computeNextBackoffDelay(nextAttempt);
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
}));
|
|
644
|
-
//#endregion
|
|
645
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/defaultRetryQuota.js
|
|
646
|
-
var getDefaultRetryQuota;
|
|
647
|
-
var init_defaultRetryQuota = __esmMin((() => {
|
|
648
|
-
init_constants$1();
|
|
649
|
-
getDefaultRetryQuota = (initialRetryTokens, options) => {
|
|
650
|
-
const MAX_CAPACITY = initialRetryTokens;
|
|
651
|
-
const noRetryIncrement = options?.noRetryIncrement ?? 1;
|
|
652
|
-
const retryCost = options?.retryCost ?? 5;
|
|
653
|
-
const timeoutRetryCost = options?.timeoutRetryCost ?? 10;
|
|
654
|
-
let availableCapacity = initialRetryTokens;
|
|
655
|
-
const getCapacityAmount = (error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost;
|
|
656
|
-
const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity;
|
|
657
|
-
const retrieveRetryTokens = (error) => {
|
|
658
|
-
if (!hasRetryTokens(error)) throw new Error("No retry token available");
|
|
659
|
-
const capacityAmount = getCapacityAmount(error);
|
|
660
|
-
availableCapacity -= capacityAmount;
|
|
661
|
-
return capacityAmount;
|
|
662
|
-
};
|
|
663
|
-
const releaseRetryTokens = (capacityReleaseAmount) => {
|
|
664
|
-
availableCapacity += capacityReleaseAmount ?? noRetryIncrement;
|
|
665
|
-
availableCapacity = Math.min(availableCapacity, MAX_CAPACITY);
|
|
666
|
-
};
|
|
667
|
-
return Object.freeze({
|
|
668
|
-
hasRetryTokens,
|
|
669
|
-
retrieveRetryTokens,
|
|
670
|
-
releaseRetryTokens
|
|
671
|
-
});
|
|
672
|
-
};
|
|
673
|
-
}));
|
|
674
|
-
//#endregion
|
|
675
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/delayDecider.js
|
|
676
|
-
var defaultDelayDecider;
|
|
677
|
-
var init_delayDecider = __esmMin((() => {
|
|
678
|
-
init_constants$1();
|
|
679
|
-
defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
|
|
680
|
-
}));
|
|
681
|
-
//#endregion
|
|
682
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.js
|
|
683
|
-
var defaultRetryDecider;
|
|
684
|
-
var init_retryDecider = __esmMin((() => {
|
|
685
|
-
init_service_error_classification();
|
|
686
|
-
defaultRetryDecider = (error) => {
|
|
687
|
-
if (!error) return false;
|
|
688
|
-
return isRetryableByTrait(error) || isClockSkewError(error) || isThrottlingError(error) || isTransientError(error);
|
|
689
|
-
};
|
|
690
|
-
}));
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js
|
|
693
|
-
var StandardRetryStrategy, getDelayFromRetryAfterHeader;
|
|
694
|
-
var init_StandardRetryStrategy = __esmMin((() => {
|
|
695
|
-
init_protocols();
|
|
696
|
-
init_serde();
|
|
697
|
-
init_service_error_classification();
|
|
698
|
-
init_config();
|
|
699
|
-
init_constants$1();
|
|
700
|
-
init_util();
|
|
701
|
-
init_defaultRetryQuota();
|
|
702
|
-
init_delayDecider();
|
|
703
|
-
init_retryDecider();
|
|
704
|
-
StandardRetryStrategy = class {
|
|
705
|
-
maxAttemptsProvider;
|
|
706
|
-
retryDecider;
|
|
707
|
-
delayDecider;
|
|
708
|
-
retryQuota;
|
|
709
|
-
mode = RETRY_MODES.STANDARD;
|
|
710
|
-
constructor(maxAttemptsProvider, options) {
|
|
711
|
-
this.maxAttemptsProvider = maxAttemptsProvider;
|
|
712
|
-
this.retryDecider = options?.retryDecider ?? defaultRetryDecider;
|
|
713
|
-
this.delayDecider = options?.delayDecider ?? defaultDelayDecider;
|
|
714
|
-
this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(500);
|
|
715
|
-
}
|
|
716
|
-
shouldRetry(error, attempts, maxAttempts) {
|
|
717
|
-
return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);
|
|
718
|
-
}
|
|
719
|
-
async getMaxAttempts() {
|
|
720
|
-
let maxAttempts;
|
|
721
|
-
try {
|
|
722
|
-
maxAttempts = await this.maxAttemptsProvider();
|
|
723
|
-
} catch (error) {
|
|
724
|
-
maxAttempts = 3;
|
|
725
|
-
}
|
|
726
|
-
return maxAttempts;
|
|
727
|
-
}
|
|
728
|
-
async retry(next, args, options) {
|
|
729
|
-
let retryTokenAmount;
|
|
730
|
-
let attempts = 0;
|
|
731
|
-
let totalDelay = 0;
|
|
732
|
-
const maxAttempts = await this.getMaxAttempts();
|
|
733
|
-
const { request } = args;
|
|
734
|
-
if (HttpRequest.isInstance(request)) request.headers[INVOCATION_ID_HEADER] = v4();
|
|
735
|
-
while (true) try {
|
|
736
|
-
if (HttpRequest.isInstance(request)) request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
|
737
|
-
if (options?.beforeRequest) await options.beforeRequest();
|
|
738
|
-
const { response, output } = await next(args);
|
|
739
|
-
if (options?.afterRequest) options.afterRequest(response);
|
|
740
|
-
this.retryQuota.releaseRetryTokens(retryTokenAmount);
|
|
741
|
-
output.$metadata.attempts = attempts + 1;
|
|
742
|
-
output.$metadata.totalRetryDelay = totalDelay;
|
|
743
|
-
return {
|
|
744
|
-
response,
|
|
745
|
-
output
|
|
746
|
-
};
|
|
747
|
-
} catch (e) {
|
|
748
|
-
const err = asSdkError(e);
|
|
749
|
-
attempts++;
|
|
750
|
-
if (this.shouldRetry(err, attempts, maxAttempts)) {
|
|
751
|
-
retryTokenAmount = this.retryQuota.retrieveRetryTokens(err);
|
|
752
|
-
const delayFromDecider = this.delayDecider(isThrottlingError(err) ? 500 : 100, attempts);
|
|
753
|
-
const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
|
|
754
|
-
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
755
|
-
totalDelay += delay;
|
|
756
|
-
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
757
|
-
continue;
|
|
758
|
-
}
|
|
759
|
-
if (!err.$metadata) err.$metadata = {};
|
|
760
|
-
err.$metadata.attempts = attempts;
|
|
761
|
-
err.$metadata.totalRetryDelay = totalDelay;
|
|
762
|
-
throw err;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
getDelayFromRetryAfterHeader = (response) => {
|
|
767
|
-
if (!HttpResponse.isInstance(response)) return;
|
|
768
|
-
const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
|
|
769
|
-
if (!retryAfterHeaderName) return;
|
|
770
|
-
const retryAfter = response.headers[retryAfterHeaderName];
|
|
771
|
-
const retryAfterSeconds = Number(retryAfter);
|
|
772
|
-
if (!Number.isNaN(retryAfterSeconds)) return Math.min(retryAfterSeconds * 1e3, 2e4);
|
|
773
|
-
const retryAfterDate = new Date(retryAfter);
|
|
774
|
-
return Math.min(retryAfterDate.getTime() - Date.now(), 2e4);
|
|
775
|
-
};
|
|
776
|
-
}));
|
|
777
|
-
//#endregion
|
|
778
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/AdaptiveRetryStrategy.js
|
|
779
|
-
var AdaptiveRetryStrategy;
|
|
780
|
-
var init_AdaptiveRetryStrategy = __esmMin((() => {
|
|
781
|
-
init_DefaultRateLimiter();
|
|
782
|
-
init_config();
|
|
783
|
-
init_StandardRetryStrategy();
|
|
784
|
-
AdaptiveRetryStrategy = class extends StandardRetryStrategy {
|
|
785
|
-
rateLimiter;
|
|
786
|
-
constructor(maxAttemptsProvider, options) {
|
|
787
|
-
const { rateLimiter, ...superOptions } = options ?? {};
|
|
788
|
-
super(maxAttemptsProvider, superOptions);
|
|
789
|
-
this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
|
|
790
|
-
this.mode = RETRY_MODES.ADAPTIVE;
|
|
791
|
-
}
|
|
792
|
-
async retry(next, args) {
|
|
793
|
-
return super.retry(next, args, {
|
|
794
|
-
beforeRequest: async () => {
|
|
795
|
-
return this.rateLimiter.getSendToken();
|
|
796
|
-
},
|
|
797
|
-
afterRequest: (response) => {
|
|
798
|
-
this.rateLimiter.updateClientSendingRate(response);
|
|
799
|
-
}
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
};
|
|
803
|
-
}));
|
|
804
|
-
//#endregion
|
|
805
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js
|
|
806
|
-
var ENV_MAX_ATTEMPTS, CONFIG_MAX_ATTEMPTS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, ENV_RETRY_MODE, CONFIG_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS;
|
|
807
|
-
var init_configurations$1 = __esmMin((() => {
|
|
808
|
-
init_client$1();
|
|
809
|
-
init_AdaptiveRetryStrategy$1();
|
|
810
|
-
init_StandardRetryStrategy$1();
|
|
811
|
-
init_config();
|
|
812
|
-
init_retries_2026_config();
|
|
813
|
-
ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
|
|
814
|
-
CONFIG_MAX_ATTEMPTS = "max_attempts";
|
|
815
|
-
NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
816
|
-
environmentVariableSelector: (env) => {
|
|
817
|
-
const value = env[ENV_MAX_ATTEMPTS];
|
|
818
|
-
if (!value) return void 0;
|
|
819
|
-
const maxAttempt = parseInt(value);
|
|
820
|
-
if (Number.isNaN(maxAttempt)) throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`);
|
|
821
|
-
return maxAttempt;
|
|
822
|
-
},
|
|
823
|
-
configFileSelector: (profile) => {
|
|
824
|
-
const value = profile[CONFIG_MAX_ATTEMPTS];
|
|
825
|
-
if (!value) return void 0;
|
|
826
|
-
const maxAttempt = parseInt(value);
|
|
827
|
-
if (Number.isNaN(maxAttempt)) throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`);
|
|
828
|
-
return maxAttempt;
|
|
829
|
-
},
|
|
830
|
-
default: 3
|
|
831
|
-
};
|
|
832
|
-
resolveRetryConfig = (input, defaults) => {
|
|
833
|
-
const { retryStrategy, retryMode } = input;
|
|
834
|
-
const { defaultMaxAttempts = 3, defaultBaseDelay = Retry.delay() } = defaults ?? {};
|
|
835
|
-
const maxAttemptsProvider = normalizeProvider$1(input.maxAttempts ?? defaultMaxAttempts);
|
|
836
|
-
let controller = retryStrategy ? Promise.resolve(retryStrategy) : void 0;
|
|
837
|
-
const getDefault = async () => {
|
|
838
|
-
const maxAttempts = await maxAttemptsProvider();
|
|
839
|
-
if (await normalizeProvider$1(retryMode)() === RETRY_MODES.ADAPTIVE) return new AdaptiveRetryStrategy$1(maxAttemptsProvider, {
|
|
840
|
-
maxAttempts,
|
|
841
|
-
baseDelay: defaultBaseDelay
|
|
842
|
-
});
|
|
843
|
-
return new StandardRetryStrategy$1({
|
|
844
|
-
maxAttempts,
|
|
845
|
-
baseDelay: defaultBaseDelay
|
|
846
|
-
});
|
|
847
|
-
};
|
|
848
|
-
return Object.assign(input, {
|
|
849
|
-
maxAttempts: maxAttemptsProvider,
|
|
850
|
-
retryStrategy: () => controller ??= getDefault()
|
|
851
|
-
});
|
|
852
|
-
};
|
|
853
|
-
ENV_RETRY_MODE = "AWS_RETRY_MODE";
|
|
854
|
-
CONFIG_RETRY_MODE = "retry_mode";
|
|
855
|
-
NODE_RETRY_MODE_CONFIG_OPTIONS = {
|
|
856
|
-
environmentVariableSelector: (env) => env[ENV_RETRY_MODE],
|
|
857
|
-
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],
|
|
858
|
-
default: DEFAULT_RETRY_MODE
|
|
859
|
-
};
|
|
860
|
-
}));
|
|
861
|
-
//#endregion
|
|
862
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/omitRetryHeadersMiddleware.js
|
|
863
|
-
var omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions, getOmitRetryHeadersPlugin;
|
|
864
|
-
var init_omitRetryHeadersMiddleware = __esmMin((() => {
|
|
865
|
-
init_protocols();
|
|
866
|
-
init_constants$1();
|
|
867
|
-
omitRetryHeadersMiddleware = () => (next) => async (args) => {
|
|
868
|
-
const { request } = args;
|
|
869
|
-
if (HttpRequest.isInstance(request)) {
|
|
870
|
-
delete request.headers[INVOCATION_ID_HEADER];
|
|
871
|
-
delete request.headers[REQUEST_HEADER];
|
|
872
|
-
}
|
|
873
|
-
return next(args);
|
|
874
|
-
};
|
|
875
|
-
omitRetryHeadersMiddlewareOptions = {
|
|
876
|
-
name: "omitRetryHeadersMiddleware",
|
|
877
|
-
tags: [
|
|
878
|
-
"RETRY",
|
|
879
|
-
"HEADERS",
|
|
880
|
-
"OMIT_RETRY_HEADERS"
|
|
881
|
-
],
|
|
882
|
-
relation: "before",
|
|
883
|
-
toMiddleware: "awsAuthMiddleware",
|
|
884
|
-
override: true
|
|
885
|
-
};
|
|
886
|
-
getOmitRetryHeadersPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
887
|
-
clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);
|
|
888
|
-
} });
|
|
889
|
-
}));
|
|
890
|
-
//#endregion
|
|
891
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/submodules/retry/index.js
|
|
892
|
-
var retry_exports = /* @__PURE__ */ __exportAll({
|
|
893
|
-
AdaptiveRetryStrategy: () => AdaptiveRetryStrategy$1,
|
|
894
|
-
CONFIG_MAX_ATTEMPTS: () => CONFIG_MAX_ATTEMPTS,
|
|
895
|
-
CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE,
|
|
896
|
-
ConfiguredRetryStrategy: () => ConfiguredRetryStrategy,
|
|
897
|
-
DEFAULT_MAX_ATTEMPTS: () => 3,
|
|
898
|
-
DEFAULT_RETRY_DELAY_BASE: () => 100,
|
|
899
|
-
DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE,
|
|
900
|
-
DefaultRateLimiter: () => DefaultRateLimiter,
|
|
901
|
-
DeprecatedAdaptiveRetryStrategy: () => AdaptiveRetryStrategy,
|
|
902
|
-
DeprecatedStandardRetryStrategy: () => StandardRetryStrategy,
|
|
903
|
-
ENV_MAX_ATTEMPTS: () => ENV_MAX_ATTEMPTS,
|
|
904
|
-
ENV_RETRY_MODE: () => ENV_RETRY_MODE,
|
|
905
|
-
INITIAL_RETRY_TOKENS: () => 500,
|
|
906
|
-
INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER,
|
|
907
|
-
MAXIMUM_RETRY_DELAY: () => MAXIMUM_RETRY_DELAY,
|
|
908
|
-
NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
909
|
-
NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
910
|
-
NO_RETRY_INCREMENT: () => 1,
|
|
911
|
-
REQUEST_HEADER: () => REQUEST_HEADER,
|
|
912
|
-
RETRY_COST: () => 5,
|
|
913
|
-
RETRY_MODES: () => RETRY_MODES,
|
|
914
|
-
Retry: () => Retry,
|
|
915
|
-
StandardRetryStrategy: () => StandardRetryStrategy$1,
|
|
916
|
-
THROTTLING_RETRY_DELAY_BASE: () => 500,
|
|
917
|
-
TIMEOUT_RETRY_COST: () => 10,
|
|
918
|
-
defaultDelayDecider: () => defaultDelayDecider,
|
|
919
|
-
defaultRetryDecider: () => defaultRetryDecider,
|
|
920
|
-
getOmitRetryHeadersPlugin: () => getOmitRetryHeadersPlugin,
|
|
921
|
-
getRetryAfterHint: () => getRetryAfterHint,
|
|
922
|
-
getRetryPlugin: () => getRetryPlugin,
|
|
923
|
-
isBrowserNetworkError: () => isBrowserNetworkError,
|
|
924
|
-
isClockSkewCorrectedError: () => isClockSkewCorrectedError,
|
|
925
|
-
isClockSkewError: () => isClockSkewError,
|
|
926
|
-
isNodeJsHttp2TransientError: () => isNodeJsHttp2TransientError,
|
|
927
|
-
isRetryableByTrait: () => isRetryableByTrait,
|
|
928
|
-
isServerError: () => isServerError,
|
|
929
|
-
isThrottlingError: () => isThrottlingError,
|
|
930
|
-
isTransientError: () => isTransientError,
|
|
931
|
-
omitRetryHeadersMiddleware: () => omitRetryHeadersMiddleware,
|
|
932
|
-
omitRetryHeadersMiddlewareOptions: () => omitRetryHeadersMiddlewareOptions,
|
|
933
|
-
resolveRetryConfig: () => resolveRetryConfig,
|
|
934
|
-
retryMiddleware: () => retryMiddleware,
|
|
935
|
-
retryMiddlewareOptions: () => retryMiddlewareOptions
|
|
936
|
-
});
|
|
937
|
-
var retryMiddleware, getRetryPlugin;
|
|
938
|
-
var init_retry = __esmMin((() => {
|
|
939
|
-
init_isStreamingPayload();
|
|
940
|
-
init_retryMiddleware();
|
|
941
|
-
init_service_error_classification();
|
|
942
|
-
init_AdaptiveRetryStrategy$1();
|
|
943
|
-
init_ConfiguredRetryStrategy();
|
|
944
|
-
init_DefaultRateLimiter();
|
|
945
|
-
init_StandardRetryStrategy$1();
|
|
946
|
-
init_config();
|
|
947
|
-
init_constants$1();
|
|
948
|
-
init_retries_2026_config();
|
|
949
|
-
init_AdaptiveRetryStrategy();
|
|
950
|
-
init_StandardRetryStrategy();
|
|
951
|
-
init_delayDecider();
|
|
952
|
-
init_retryDecider();
|
|
953
|
-
init_configurations$1();
|
|
954
|
-
init_omitRetryHeadersMiddleware();
|
|
955
|
-
init_parseRetryAfterHeader();
|
|
956
|
-
retryMiddleware = bindRetryMiddleware(isStreamingPayload);
|
|
957
|
-
getRetryPlugin = bindGetRetryPlugin(isStreamingPayload);
|
|
958
|
-
}));
|
|
959
|
-
//#endregion
|
|
960
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
|
|
961
|
-
function setFeature$1(context, feature, value) {
|
|
962
|
-
if (!context.__aws_sdk_context) context.__aws_sdk_context = { features: {} };
|
|
963
|
-
else if (!context.__aws_sdk_context.features) context.__aws_sdk_context.features = {};
|
|
964
|
-
context.__aws_sdk_context.features[feature] = value;
|
|
965
|
-
}
|
|
966
|
-
var init_setFeature$1 = __esmMin((() => {
|
|
967
|
-
init_retry();
|
|
968
|
-
Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
|
|
969
|
-
}));
|
|
970
|
-
//#endregion
|
|
971
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js
|
|
972
|
-
function setTokenFeature(token, feature, value) {
|
|
973
|
-
if (!token.$source) token.$source = {};
|
|
974
|
-
token.$source[feature] = value;
|
|
975
|
-
return token;
|
|
976
|
-
}
|
|
977
|
-
var init_setTokenFeature = __esmMin((() => {}));
|
|
978
|
-
//#endregion
|
|
979
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js
|
|
980
|
-
function resolveHostHeaderConfig(input) {
|
|
981
|
-
return input;
|
|
982
|
-
}
|
|
983
|
-
var hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin;
|
|
984
|
-
var init_hostHeaderMiddleware = __esmMin((() => {
|
|
985
|
-
init_protocols();
|
|
986
|
-
hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
987
|
-
if (!HttpRequest.isInstance(args.request)) return next(args);
|
|
988
|
-
const { request } = args;
|
|
989
|
-
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
990
|
-
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
991
|
-
delete request.headers["host"];
|
|
992
|
-
request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
|
|
993
|
-
} else if (!request.headers["host"]) {
|
|
994
|
-
let host = request.hostname;
|
|
995
|
-
if (request.port != null) host += `:${request.port}`;
|
|
996
|
-
request.headers["host"] = host;
|
|
997
|
-
}
|
|
998
|
-
return next(args);
|
|
999
|
-
};
|
|
1000
|
-
hostHeaderMiddlewareOptions = {
|
|
1001
|
-
name: "hostHeaderMiddleware",
|
|
1002
|
-
step: "build",
|
|
1003
|
-
priority: "low",
|
|
1004
|
-
tags: ["HOST"],
|
|
1005
|
-
override: true
|
|
1006
|
-
};
|
|
1007
|
-
getHostHeaderPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
1008
|
-
clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
|
|
1009
|
-
} });
|
|
1010
|
-
}));
|
|
1011
|
-
//#endregion
|
|
1012
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js
|
|
1013
|
-
var loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin;
|
|
1014
|
-
var init_loggerMiddleware = __esmMin((() => {
|
|
1015
|
-
loggerMiddleware = () => (next, context) => async (args) => {
|
|
1016
|
-
try {
|
|
1017
|
-
const response = await next(args);
|
|
1018
|
-
const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
|
|
1019
|
-
const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
|
|
1020
|
-
const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
|
|
1021
|
-
const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog;
|
|
1022
|
-
const { $metadata, ...outputWithoutMetadata } = response.output;
|
|
1023
|
-
logger?.info?.({
|
|
1024
|
-
clientName,
|
|
1025
|
-
commandName,
|
|
1026
|
-
input: inputFilterSensitiveLog(args.input),
|
|
1027
|
-
output: outputFilterSensitiveLog(outputWithoutMetadata),
|
|
1028
|
-
metadata: $metadata
|
|
1029
|
-
});
|
|
1030
|
-
return response;
|
|
1031
|
-
} catch (error) {
|
|
1032
|
-
const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
|
|
1033
|
-
const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
|
|
1034
|
-
const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
|
|
1035
|
-
logger?.error?.({
|
|
1036
|
-
clientName,
|
|
1037
|
-
commandName,
|
|
1038
|
-
input: inputFilterSensitiveLog(args.input),
|
|
1039
|
-
error,
|
|
1040
|
-
metadata: error.$metadata
|
|
1041
|
-
});
|
|
1042
|
-
throw error;
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
|
-
loggerMiddlewareOptions = {
|
|
1046
|
-
name: "loggerMiddleware",
|
|
1047
|
-
tags: ["LOGGER"],
|
|
1048
|
-
step: "initialize",
|
|
1049
|
-
override: true
|
|
1050
|
-
};
|
|
1051
|
-
getLoggerPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
1052
|
-
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
1053
|
-
} });
|
|
1054
|
-
}));
|
|
1055
|
-
//#endregion
|
|
1056
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/configuration.js
|
|
1057
|
-
var recursionDetectionMiddlewareOptions;
|
|
1058
|
-
var init_configuration = __esmMin((() => {
|
|
1059
|
-
recursionDetectionMiddlewareOptions = {
|
|
1060
|
-
step: "build",
|
|
1061
|
-
tags: ["RECURSION_DETECTION"],
|
|
1062
|
-
name: "recursionDetectionMiddleware",
|
|
1063
|
-
override: true,
|
|
1064
|
-
priority: "low"
|
|
1065
|
-
};
|
|
1066
|
-
}));
|
|
1067
|
-
//#endregion
|
|
1068
|
-
//#region ../../node_modules/.pnpm/@aws+lambda-invoke-store@0.2.2/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js
|
|
1069
|
-
var PROTECTED_KEYS, NO_GLOBAL_AWS_LAMBDA, InvokeStoreBase, InvokeStoreSingle, InvokeStoreMulti, InvokeStore;
|
|
1070
|
-
var init_invoke_store = __esmMin((() => {
|
|
1071
|
-
PROTECTED_KEYS = {
|
|
1072
|
-
REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
|
|
1073
|
-
X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
|
|
1074
|
-
TENANT_ID: Symbol.for("_AWS_LAMBDA_TENANT_ID")
|
|
1075
|
-
};
|
|
1076
|
-
NO_GLOBAL_AWS_LAMBDA = ["true", "1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? "");
|
|
1077
|
-
if (!NO_GLOBAL_AWS_LAMBDA) globalThis.awslambda = globalThis.awslambda || {};
|
|
1078
|
-
InvokeStoreBase = class {
|
|
1079
|
-
static PROTECTED_KEYS = PROTECTED_KEYS;
|
|
1080
|
-
isProtectedKey(key) {
|
|
1081
|
-
return Object.values(PROTECTED_KEYS).includes(key);
|
|
1082
|
-
}
|
|
1083
|
-
getRequestId() {
|
|
1084
|
-
return this.get(PROTECTED_KEYS.REQUEST_ID) ?? "-";
|
|
1085
|
-
}
|
|
1086
|
-
getXRayTraceId() {
|
|
1087
|
-
return this.get(PROTECTED_KEYS.X_RAY_TRACE_ID);
|
|
1088
|
-
}
|
|
1089
|
-
getTenantId() {
|
|
1090
|
-
return this.get(PROTECTED_KEYS.TENANT_ID);
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
InvokeStoreSingle = class extends InvokeStoreBase {
|
|
1094
|
-
currentContext;
|
|
1095
|
-
getContext() {
|
|
1096
|
-
return this.currentContext;
|
|
1097
|
-
}
|
|
1098
|
-
hasContext() {
|
|
1099
|
-
return this.currentContext !== void 0;
|
|
1100
|
-
}
|
|
1101
|
-
get(key) {
|
|
1102
|
-
return this.currentContext?.[key];
|
|
1103
|
-
}
|
|
1104
|
-
set(key, value) {
|
|
1105
|
-
if (this.isProtectedKey(key)) throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
|
|
1106
|
-
this.currentContext = this.currentContext || {};
|
|
1107
|
-
this.currentContext[key] = value;
|
|
1108
|
-
}
|
|
1109
|
-
run(context, fn) {
|
|
1110
|
-
this.currentContext = context;
|
|
1111
|
-
return fn();
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
InvokeStoreMulti = class InvokeStoreMulti extends InvokeStoreBase {
|
|
1115
|
-
als;
|
|
1116
|
-
static async create() {
|
|
1117
|
-
const instance = new InvokeStoreMulti();
|
|
1118
|
-
instance.als = new (await (import("node:async_hooks"))).AsyncLocalStorage();
|
|
1119
|
-
return instance;
|
|
1120
|
-
}
|
|
1121
|
-
getContext() {
|
|
1122
|
-
return this.als.getStore();
|
|
1123
|
-
}
|
|
1124
|
-
hasContext() {
|
|
1125
|
-
return this.als.getStore() !== void 0;
|
|
1126
|
-
}
|
|
1127
|
-
get(key) {
|
|
1128
|
-
return this.als.getStore()?.[key];
|
|
1129
|
-
}
|
|
1130
|
-
set(key, value) {
|
|
1131
|
-
if (this.isProtectedKey(key)) throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
|
|
1132
|
-
const store = this.als.getStore();
|
|
1133
|
-
if (!store) throw new Error("No context available");
|
|
1134
|
-
store[key] = value;
|
|
1135
|
-
}
|
|
1136
|
-
run(context, fn) {
|
|
1137
|
-
return this.als.run(context, fn);
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
(function(InvokeStore) {
|
|
1141
|
-
let instance = null;
|
|
1142
|
-
async function getInstanceAsync() {
|
|
1143
|
-
if (!instance) instance = (async () => {
|
|
1144
|
-
const newInstance = "AWS_LAMBDA_MAX_CONCURRENCY" in process.env ? await InvokeStoreMulti.create() : new InvokeStoreSingle();
|
|
1145
|
-
if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda?.InvokeStore) return globalThis.awslambda.InvokeStore;
|
|
1146
|
-
else if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda) {
|
|
1147
|
-
globalThis.awslambda.InvokeStore = newInstance;
|
|
1148
|
-
return newInstance;
|
|
1149
|
-
} else return newInstance;
|
|
1150
|
-
})();
|
|
1151
|
-
return instance;
|
|
1152
|
-
}
|
|
1153
|
-
InvokeStore.getInstanceAsync = getInstanceAsync;
|
|
1154
|
-
InvokeStore._testing = process.env.AWS_LAMBDA_BENCHMARK_MODE === "1" ? { reset: () => {
|
|
1155
|
-
instance = null;
|
|
1156
|
-
if (globalThis.awslambda?.InvokeStore) delete globalThis.awslambda.InvokeStore;
|
|
1157
|
-
globalThis.awslambda = {};
|
|
1158
|
-
} } : void 0;
|
|
1159
|
-
})(InvokeStore || (InvokeStore = {}));
|
|
1160
|
-
}));
|
|
1161
|
-
//#endregion
|
|
1162
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js
|
|
1163
|
-
var TRACE_ID_HEADER_NAME, ENV_LAMBDA_FUNCTION_NAME, ENV_TRACE_ID, recursionDetectionMiddleware;
|
|
1164
|
-
var init_recursionDetectionMiddleware = __esmMin((() => {
|
|
1165
|
-
init_invoke_store();
|
|
1166
|
-
init_protocols();
|
|
1167
|
-
TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
1168
|
-
ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
1169
|
-
ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
1170
|
-
recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
1171
|
-
const { request } = args;
|
|
1172
|
-
if (!HttpRequest.isInstance(request)) return next(args);
|
|
1173
|
-
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
|
|
1174
|
-
if (request.headers.hasOwnProperty(traceIdHeader)) return next(args);
|
|
1175
|
-
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
1176
|
-
const traceIdFromEnv = process.env[ENV_TRACE_ID];
|
|
1177
|
-
const traceId = (await InvokeStore.getInstanceAsync())?.getXRayTraceId() ?? traceIdFromEnv;
|
|
1178
|
-
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
1179
|
-
if (nonEmptyString(functionName) && nonEmptyString(traceId)) request.headers[TRACE_ID_HEADER_NAME] = traceId;
|
|
1180
|
-
return next({
|
|
1181
|
-
...args,
|
|
1182
|
-
request
|
|
1183
|
-
});
|
|
1184
|
-
};
|
|
1185
|
-
}));
|
|
1186
|
-
//#endregion
|
|
1187
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.js
|
|
1188
|
-
var getRecursionDetectionPlugin;
|
|
1189
|
-
var init_getRecursionDetectionPlugin = __esmMin((() => {
|
|
1190
|
-
init_configuration();
|
|
1191
|
-
init_recursionDetectionMiddleware();
|
|
1192
|
-
getRecursionDetectionPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
1193
|
-
clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
|
|
1194
|
-
} });
|
|
1195
|
-
}));
|
|
1196
|
-
//#endregion
|
|
1197
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/resolveAuthOptions.js
|
|
1198
|
-
var resolveAuthOptions;
|
|
1199
|
-
var init_resolveAuthOptions = __esmMin((() => {
|
|
1200
|
-
resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
|
|
1201
|
-
if (!authSchemePreference || authSchemePreference.length === 0) return candidateAuthOptions;
|
|
1202
|
-
const preferredAuthOptions = [];
|
|
1203
|
-
for (const preferredSchemeName of authSchemePreference) for (const candidateAuthOption of candidateAuthOptions) if (candidateAuthOption.schemeId.split("#")[1] === preferredSchemeName) preferredAuthOptions.push(candidateAuthOption);
|
|
1204
|
-
for (const candidateAuthOption of candidateAuthOptions) if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) preferredAuthOptions.push(candidateAuthOption);
|
|
1205
|
-
return preferredAuthOptions;
|
|
1206
|
-
};
|
|
1207
|
-
}));
|
|
1208
|
-
//#endregion
|
|
1209
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
|
|
1210
|
-
function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
1211
|
-
const map = /* @__PURE__ */ new Map();
|
|
1212
|
-
for (const scheme of httpAuthSchemes) map.set(scheme.schemeId, scheme);
|
|
1213
|
-
return map;
|
|
1214
|
-
}
|
|
1215
|
-
var httpAuthSchemeMiddleware;
|
|
1216
|
-
var init_httpAuthSchemeMiddleware = __esmMin((() => {
|
|
1217
|
-
init_client$1();
|
|
1218
|
-
init_resolveAuthOptions();
|
|
1219
|
-
httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => {
|
|
1220
|
-
const resolvedOptions = resolveAuthOptions(config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)), config.authSchemePreference ? await config.authSchemePreference() : []);
|
|
1221
|
-
const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
|
|
1222
|
-
const smithyContext = getSmithyContext(context);
|
|
1223
|
-
const failureReasons = [];
|
|
1224
|
-
for (const option of resolvedOptions) {
|
|
1225
|
-
const scheme = authSchemes.get(option.schemeId);
|
|
1226
|
-
if (!scheme) {
|
|
1227
|
-
failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
|
|
1228
|
-
continue;
|
|
1229
|
-
}
|
|
1230
|
-
const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
|
|
1231
|
-
if (!identityProvider) {
|
|
1232
|
-
failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
|
|
1233
|
-
continue;
|
|
1234
|
-
}
|
|
1235
|
-
const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
|
|
1236
|
-
option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
|
|
1237
|
-
option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
|
|
1238
|
-
smithyContext.selectedHttpAuthScheme = {
|
|
1239
|
-
httpAuthOption: option,
|
|
1240
|
-
identity: await identityProvider(option.identityProperties),
|
|
1241
|
-
signer: scheme.signer
|
|
1242
|
-
};
|
|
1243
|
-
break;
|
|
1244
|
-
}
|
|
1245
|
-
if (!smithyContext.selectedHttpAuthScheme) throw new Error(failureReasons.join("\n"));
|
|
1246
|
-
return next(args);
|
|
1247
|
-
};
|
|
1248
|
-
}));
|
|
1249
|
-
//#endregion
|
|
1250
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
|
|
1251
|
-
var httpAuthSchemeEndpointRuleSetMiddlewareOptions, getHttpAuthSchemeEndpointRuleSetPlugin;
|
|
1252
|
-
var init_getHttpAuthSchemeEndpointRuleSetPlugin = __esmMin((() => {
|
|
1253
|
-
init_httpAuthSchemeMiddleware();
|
|
1254
|
-
httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
|
|
1255
|
-
step: "serialize",
|
|
1256
|
-
tags: ["HTTP_AUTH_SCHEME"],
|
|
1257
|
-
name: "httpAuthSchemeMiddleware",
|
|
1258
|
-
override: true,
|
|
1259
|
-
relation: "before",
|
|
1260
|
-
toMiddleware: "endpointV2Middleware"
|
|
1261
|
-
};
|
|
1262
|
-
getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({ applyToStack: (clientStack) => {
|
|
1263
|
-
clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
|
|
1264
|
-
httpAuthSchemeParametersProvider,
|
|
1265
|
-
identityProviderConfigProvider
|
|
1266
|
-
}), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
|
|
1267
|
-
} });
|
|
1268
|
-
}));
|
|
1269
|
-
//#endregion
|
|
1270
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js
|
|
1271
|
-
var httpAuthSchemeMiddlewareOptions, getHttpAuthSchemePlugin;
|
|
1272
|
-
var init_getHttpAuthSchemePlugin = __esmMin((() => {
|
|
1273
|
-
init_httpAuthSchemeMiddleware();
|
|
1274
|
-
httpAuthSchemeMiddlewareOptions = {
|
|
1275
|
-
step: "serialize",
|
|
1276
|
-
tags: ["HTTP_AUTH_SCHEME"],
|
|
1277
|
-
name: "httpAuthSchemeMiddleware",
|
|
1278
|
-
override: true,
|
|
1279
|
-
relation: "before",
|
|
1280
|
-
toMiddleware: "serializerMiddleware"
|
|
1281
|
-
};
|
|
1282
|
-
getHttpAuthSchemePlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({ applyToStack: (clientStack) => {
|
|
1283
|
-
clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
|
|
1284
|
-
httpAuthSchemeParametersProvider,
|
|
1285
|
-
identityProviderConfigProvider
|
|
1286
|
-
}), httpAuthSchemeMiddlewareOptions);
|
|
1287
|
-
} });
|
|
1288
|
-
}));
|
|
1289
|
-
//#endregion
|
|
1290
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/index.js
|
|
1291
|
-
var init_middleware_http_auth_scheme = __esmMin((() => {
|
|
1292
|
-
init_httpAuthSchemeMiddleware();
|
|
1293
|
-
init_getHttpAuthSchemeEndpointRuleSetPlugin();
|
|
1294
|
-
init_getHttpAuthSchemePlugin();
|
|
1295
|
-
}));
|
|
1296
|
-
//#endregion
|
|
1297
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js
|
|
1298
|
-
var defaultErrorHandler, defaultSuccessHandler, httpSigningMiddleware;
|
|
1299
|
-
var init_httpSigningMiddleware = __esmMin((() => {
|
|
1300
|
-
init_client$1();
|
|
1301
|
-
init_protocols();
|
|
1302
|
-
defaultErrorHandler = (signingProperties) => (error) => {
|
|
1303
|
-
throw error;
|
|
1304
|
-
};
|
|
1305
|
-
defaultSuccessHandler = (httpResponse, signingProperties) => {};
|
|
1306
|
-
httpSigningMiddleware = (config) => (next, context) => async (args) => {
|
|
1307
|
-
if (!HttpRequest.isInstance(args.request)) return next(args);
|
|
1308
|
-
const scheme = getSmithyContext(context).selectedHttpAuthScheme;
|
|
1309
|
-
if (!scheme) throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
|
|
1310
|
-
const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
|
|
1311
|
-
const output = await next({
|
|
1312
|
-
...args,
|
|
1313
|
-
request: await signer.sign(args.request, identity, signingProperties)
|
|
1314
|
-
}).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
|
|
1315
|
-
(signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
|
|
1316
|
-
return output;
|
|
1317
|
-
};
|
|
1318
|
-
}));
|
|
1319
|
-
//#endregion
|
|
1320
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/getHttpSigningMiddleware.js
|
|
1321
|
-
var httpSigningMiddlewareOptions, getHttpSigningPlugin;
|
|
1322
|
-
var init_getHttpSigningMiddleware = __esmMin((() => {
|
|
1323
|
-
init_httpSigningMiddleware();
|
|
1324
|
-
httpSigningMiddlewareOptions = {
|
|
1325
|
-
step: "finalizeRequest",
|
|
1326
|
-
tags: ["HTTP_SIGNING"],
|
|
1327
|
-
name: "httpSigningMiddleware",
|
|
1328
|
-
aliases: [
|
|
1329
|
-
"apiKeyMiddleware",
|
|
1330
|
-
"tokenMiddleware",
|
|
1331
|
-
"awsAuthMiddleware"
|
|
1332
|
-
],
|
|
1333
|
-
override: true,
|
|
1334
|
-
relation: "after",
|
|
1335
|
-
toMiddleware: "retryMiddleware"
|
|
1336
|
-
};
|
|
1337
|
-
getHttpSigningPlugin = (config) => ({ applyToStack: (clientStack) => {
|
|
1338
|
-
clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
|
|
1339
|
-
} });
|
|
1340
|
-
}));
|
|
1341
|
-
//#endregion
|
|
1342
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/index.js
|
|
1343
|
-
var init_middleware_http_signing = __esmMin((() => {
|
|
1344
|
-
init_httpSigningMiddleware();
|
|
1345
|
-
init_getHttpSigningMiddleware();
|
|
1346
|
-
}));
|
|
1347
|
-
//#endregion
|
|
1348
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/normalizeProvider.js
|
|
1349
|
-
var normalizeProvider;
|
|
1350
|
-
var init_normalizeProvider = __esmMin((() => {
|
|
1351
|
-
normalizeProvider = (input) => {
|
|
1352
|
-
if (typeof input === "function") return input;
|
|
1353
|
-
const promisified = Promise.resolve(input);
|
|
1354
|
-
return () => promisified;
|
|
1355
|
-
};
|
|
1356
|
-
}));
|
|
1357
|
-
//#endregion
|
|
1358
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/pagination/createPaginator.js
|
|
1359
|
-
function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) {
|
|
1360
|
-
return async function* paginateOperation(config, input, ...additionalArguments) {
|
|
1361
|
-
const _input = input;
|
|
1362
|
-
let token = config.startingToken ?? _input[inputTokenName];
|
|
1363
|
-
let hasNext = true;
|
|
1364
|
-
let page;
|
|
1365
|
-
while (hasNext) {
|
|
1366
|
-
_input[inputTokenName] = token;
|
|
1367
|
-
if (pageSizeTokenName) _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config.pageSize;
|
|
1368
|
-
if (config.client instanceof ClientCtor) page = await makePagedClientRequest(CommandCtor, config.client, input, config.withCommand, ...additionalArguments);
|
|
1369
|
-
else throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`);
|
|
1370
|
-
yield page;
|
|
1371
|
-
const prevToken = token;
|
|
1372
|
-
token = get(page, outputTokenName);
|
|
1373
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
1374
|
-
}
|
|
1375
|
-
return void 0;
|
|
1376
|
-
};
|
|
1377
|
-
}
|
|
1378
|
-
var makePagedClientRequest, get;
|
|
1379
|
-
var init_createPaginator = __esmMin((() => {
|
|
1380
|
-
makePagedClientRequest = async (CommandCtor, client, input, withCommand = (_) => _, ...args) => {
|
|
1381
|
-
let command = new CommandCtor(input);
|
|
1382
|
-
command = withCommand(command) ?? command;
|
|
1383
|
-
return await client.send(command, ...args);
|
|
1384
|
-
};
|
|
1385
|
-
get = (fromObject, path) => {
|
|
1386
|
-
let cursor = fromObject;
|
|
1387
|
-
const pathComponents = path.split(".");
|
|
1388
|
-
for (const step of pathComponents) {
|
|
1389
|
-
if (!cursor || typeof cursor !== "object") return;
|
|
1390
|
-
cursor = cursor[step];
|
|
1391
|
-
}
|
|
1392
|
-
return cursor;
|
|
1393
|
-
};
|
|
1394
|
-
}));
|
|
1395
|
-
//#endregion
|
|
1396
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/setFeature.js
|
|
1397
|
-
function setFeature(context, feature, value) {
|
|
1398
|
-
if (!context.__smithy_context) context.__smithy_context = { features: {} };
|
|
1399
|
-
else if (!context.__smithy_context.features) context.__smithy_context.features = {};
|
|
1400
|
-
context.__smithy_context.features[feature] = value;
|
|
1401
|
-
}
|
|
1402
|
-
var init_setFeature = __esmMin((() => {}));
|
|
1403
|
-
//#endregion
|
|
1404
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js
|
|
1405
|
-
var DefaultIdentityProviderConfig;
|
|
1406
|
-
var init_DefaultIdentityProviderConfig = __esmMin((() => {
|
|
1407
|
-
DefaultIdentityProviderConfig = class {
|
|
1408
|
-
authSchemes = /* @__PURE__ */ new Map();
|
|
1409
|
-
constructor(config) {
|
|
1410
|
-
for (const key in config) {
|
|
1411
|
-
const value = config[key];
|
|
1412
|
-
if (value !== void 0) this.authSchemes.set(key, value);
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
getIdentityProvider(schemeId) {
|
|
1416
|
-
return this.authSchemes.get(schemeId);
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
}));
|
|
1420
|
-
//#endregion
|
|
1421
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js
|
|
1422
|
-
var import_dist_cjs, HttpApiKeyAuthSigner;
|
|
1423
|
-
var init_httpApiKeyAuth = __esmMin((() => {
|
|
1424
|
-
init_protocols();
|
|
1425
|
-
import_dist_cjs = require_dist_cjs();
|
|
1426
|
-
HttpApiKeyAuthSigner = class {
|
|
1427
|
-
async sign(httpRequest, identity, signingProperties) {
|
|
1428
|
-
if (!signingProperties) throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");
|
|
1429
|
-
if (!signingProperties.name) throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");
|
|
1430
|
-
if (!signingProperties.in) throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");
|
|
1431
|
-
if (!identity.apiKey) throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");
|
|
1432
|
-
const clonedRequest = HttpRequest.clone(httpRequest);
|
|
1433
|
-
if (signingProperties.in === import_dist_cjs.HttpApiKeyAuthLocation.QUERY) clonedRequest.query[signingProperties.name] = identity.apiKey;
|
|
1434
|
-
else if (signingProperties.in === import_dist_cjs.HttpApiKeyAuthLocation.HEADER) clonedRequest.headers[signingProperties.name] = signingProperties.scheme ? `${signingProperties.scheme} ${identity.apiKey}` : identity.apiKey;
|
|
1435
|
-
else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `" + signingProperties.in + "`");
|
|
1436
|
-
return clonedRequest;
|
|
1437
|
-
}
|
|
1438
|
-
};
|
|
1439
|
-
}));
|
|
1440
|
-
//#endregion
|
|
1441
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js
|
|
1442
|
-
var HttpBearerAuthSigner;
|
|
1443
|
-
var init_httpBearerAuth = __esmMin((() => {
|
|
1444
|
-
init_protocols();
|
|
1445
|
-
HttpBearerAuthSigner = class {
|
|
1446
|
-
async sign(httpRequest, identity, signingProperties) {
|
|
1447
|
-
const clonedRequest = HttpRequest.clone(httpRequest);
|
|
1448
|
-
if (!identity.token) throw new Error("request could not be signed with `token` since the `token` is not defined");
|
|
1449
|
-
clonedRequest.headers["Authorization"] = `Bearer ${identity.token}`;
|
|
1450
|
-
return clonedRequest;
|
|
1451
|
-
}
|
|
1452
|
-
};
|
|
1453
|
-
}));
|
|
1454
|
-
//#endregion
|
|
1455
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/noAuth.js
|
|
1456
|
-
var NoAuthSigner;
|
|
1457
|
-
var init_noAuth = __esmMin((() => {
|
|
1458
|
-
NoAuthSigner = class {
|
|
1459
|
-
async sign(httpRequest, identity, signingProperties) {
|
|
1460
|
-
return httpRequest;
|
|
1461
|
-
}
|
|
1462
|
-
};
|
|
1463
|
-
}));
|
|
1464
|
-
//#endregion
|
|
1465
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/index.js
|
|
1466
|
-
var init_httpAuthSchemes = __esmMin((() => {
|
|
1467
|
-
init_httpApiKeyAuth();
|
|
1468
|
-
init_httpBearerAuth();
|
|
1469
|
-
init_noAuth();
|
|
1470
|
-
}));
|
|
1471
|
-
//#endregion
|
|
1472
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/memoizeIdentityProvider.js
|
|
1473
|
-
var createIsIdentityExpiredFunction, EXPIRATION_MS, isIdentityExpired, doesIdentityRequireRefresh, memoizeIdentityProvider;
|
|
1474
|
-
var init_memoizeIdentityProvider = __esmMin((() => {
|
|
1475
|
-
createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired(identity) {
|
|
1476
|
-
return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
|
|
1477
|
-
};
|
|
1478
|
-
EXPIRATION_MS = 3e5;
|
|
1479
|
-
isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
|
|
1480
|
-
doesIdentityRequireRefresh = (identity) => identity.expiration !== void 0;
|
|
1481
|
-
memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
|
|
1482
|
-
if (provider === void 0) return;
|
|
1483
|
-
const normalizedProvider = typeof provider !== "function" ? async () => Promise.resolve(provider) : provider;
|
|
1484
|
-
let resolved;
|
|
1485
|
-
let pending;
|
|
1486
|
-
let hasResult;
|
|
1487
|
-
let isConstant = false;
|
|
1488
|
-
const coalesceProvider = async (options) => {
|
|
1489
|
-
if (!pending) pending = normalizedProvider(options);
|
|
1490
|
-
try {
|
|
1491
|
-
resolved = await pending;
|
|
1492
|
-
hasResult = true;
|
|
1493
|
-
isConstant = false;
|
|
1494
|
-
} finally {
|
|
1495
|
-
pending = void 0;
|
|
1496
|
-
}
|
|
1497
|
-
return resolved;
|
|
1498
|
-
};
|
|
1499
|
-
if (isExpired === void 0) return async (options) => {
|
|
1500
|
-
if (!hasResult || options?.forceRefresh) resolved = await coalesceProvider(options);
|
|
1501
|
-
return resolved;
|
|
1502
|
-
};
|
|
1503
|
-
return async (options) => {
|
|
1504
|
-
if (!hasResult || options?.forceRefresh) resolved = await coalesceProvider(options);
|
|
1505
|
-
if (isConstant) return resolved;
|
|
1506
|
-
if (!requiresRefresh(resolved)) {
|
|
1507
|
-
isConstant = true;
|
|
1508
|
-
return resolved;
|
|
1509
|
-
}
|
|
1510
|
-
if (isExpired(resolved)) {
|
|
1511
|
-
await coalesceProvider(options);
|
|
1512
|
-
return resolved;
|
|
1513
|
-
}
|
|
1514
|
-
return resolved;
|
|
1515
|
-
};
|
|
1516
|
-
};
|
|
1517
|
-
}));
|
|
1518
|
-
//#endregion
|
|
1519
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/index.js
|
|
1520
|
-
var init_util_identity_and_auth = __esmMin((() => {
|
|
1521
|
-
init_DefaultIdentityProviderConfig();
|
|
1522
|
-
init_httpAuthSchemes();
|
|
1523
|
-
init_memoizeIdentityProvider();
|
|
1524
|
-
}));
|
|
1525
|
-
//#endregion
|
|
1526
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.7/node_modules/@smithy/core/dist-es/index.js
|
|
1527
|
-
var dist_es_exports = /* @__PURE__ */ __exportAll({
|
|
1528
|
-
DefaultIdentityProviderConfig: () => DefaultIdentityProviderConfig,
|
|
1529
|
-
EXPIRATION_MS: () => EXPIRATION_MS,
|
|
1530
|
-
HttpApiKeyAuthSigner: () => HttpApiKeyAuthSigner,
|
|
1531
|
-
HttpBearerAuthSigner: () => HttpBearerAuthSigner,
|
|
1532
|
-
NoAuthSigner: () => NoAuthSigner,
|
|
1533
|
-
createIsIdentityExpiredFunction: () => createIsIdentityExpiredFunction,
|
|
1534
|
-
createPaginator: () => createPaginator,
|
|
1535
|
-
doesIdentityRequireRefresh: () => doesIdentityRequireRefresh,
|
|
1536
|
-
getHttpAuthSchemeEndpointRuleSetPlugin: () => getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
1537
|
-
getHttpAuthSchemePlugin: () => getHttpAuthSchemePlugin,
|
|
1538
|
-
getHttpSigningPlugin: () => getHttpSigningPlugin,
|
|
1539
|
-
getSmithyContext: () => getSmithyContext,
|
|
1540
|
-
httpAuthSchemeEndpointRuleSetMiddlewareOptions: () => httpAuthSchemeEndpointRuleSetMiddlewareOptions,
|
|
1541
|
-
httpAuthSchemeMiddleware: () => httpAuthSchemeMiddleware,
|
|
1542
|
-
httpAuthSchemeMiddlewareOptions: () => httpAuthSchemeMiddlewareOptions,
|
|
1543
|
-
httpSigningMiddleware: () => httpSigningMiddleware,
|
|
1544
|
-
httpSigningMiddlewareOptions: () => httpSigningMiddlewareOptions,
|
|
1545
|
-
isIdentityExpired: () => isIdentityExpired,
|
|
1546
|
-
memoizeIdentityProvider: () => memoizeIdentityProvider,
|
|
1547
|
-
normalizeProvider: () => normalizeProvider,
|
|
1548
|
-
requestBuilder: () => requestBuilder,
|
|
1549
|
-
setFeature: () => setFeature
|
|
1550
|
-
});
|
|
1551
|
-
var init_dist_es = __esmMin((() => {
|
|
1552
|
-
init_transport();
|
|
1553
|
-
init_middleware_http_auth_scheme();
|
|
1554
|
-
init_middleware_http_signing();
|
|
1555
|
-
init_normalizeProvider();
|
|
1556
|
-
init_createPaginator();
|
|
1557
|
-
init_protocols();
|
|
1558
|
-
init_setFeature();
|
|
1559
|
-
init_util_identity_and_auth();
|
|
1560
|
-
}));
|
|
1561
|
-
//#endregion
|
|
1562
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/configurations.js
|
|
1563
|
-
function isValidUserAgentAppId(appId) {
|
|
1564
|
-
if (appId === void 0) return true;
|
|
1565
|
-
return typeof appId === "string" && appId.length <= 50;
|
|
1566
|
-
}
|
|
1567
|
-
function resolveUserAgentConfig(input) {
|
|
1568
|
-
const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? void 0);
|
|
1569
|
-
const { customUserAgent } = input;
|
|
1570
|
-
return Object.assign(input, {
|
|
1571
|
-
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
|
1572
|
-
userAgentAppId: async () => {
|
|
1573
|
-
const appId = await normalizedAppIdProvider();
|
|
1574
|
-
if (!isValidUserAgentAppId(appId)) {
|
|
1575
|
-
const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
|
|
1576
|
-
if (typeof appId !== "string") logger?.warn("userAgentAppId must be a string or undefined.");
|
|
1577
|
-
else if (appId.length > 50) logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
|
|
1578
|
-
}
|
|
1579
|
-
return appId;
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
var init_configurations = __esmMin((() => {
|
|
1584
|
-
init_dist_es();
|
|
1585
|
-
}));
|
|
1586
|
-
//#endregion
|
|
1587
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js
|
|
1588
|
-
var partitionsInfo;
|
|
1589
|
-
var init_partitions = __esmMin((() => {
|
|
1590
|
-
partitionsInfo = {
|
|
1591
|
-
"partitions": [
|
|
1592
|
-
{
|
|
1593
|
-
"id": "aws",
|
|
1594
|
-
"outputs": {
|
|
1595
|
-
"dnsSuffix": "amazonaws.com",
|
|
1596
|
-
"dualStackDnsSuffix": "api.aws",
|
|
1597
|
-
"implicitGlobalRegion": "us-east-1",
|
|
1598
|
-
"name": "aws",
|
|
1599
|
-
"supportsDualStack": true,
|
|
1600
|
-
"supportsFIPS": true
|
|
1601
|
-
},
|
|
1602
|
-
"regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
|
1603
|
-
"regions": {
|
|
1604
|
-
"af-south-1": { "description": "Africa (Cape Town)" },
|
|
1605
|
-
"ap-east-1": { "description": "Asia Pacific (Hong Kong)" },
|
|
1606
|
-
"ap-east-2": { "description": "Asia Pacific (Taipei)" },
|
|
1607
|
-
"ap-northeast-1": { "description": "Asia Pacific (Tokyo)" },
|
|
1608
|
-
"ap-northeast-2": { "description": "Asia Pacific (Seoul)" },
|
|
1609
|
-
"ap-northeast-3": { "description": "Asia Pacific (Osaka)" },
|
|
1610
|
-
"ap-south-1": { "description": "Asia Pacific (Mumbai)" },
|
|
1611
|
-
"ap-south-2": { "description": "Asia Pacific (Hyderabad)" },
|
|
1612
|
-
"ap-southeast-1": { "description": "Asia Pacific (Singapore)" },
|
|
1613
|
-
"ap-southeast-2": { "description": "Asia Pacific (Sydney)" },
|
|
1614
|
-
"ap-southeast-3": { "description": "Asia Pacific (Jakarta)" },
|
|
1615
|
-
"ap-southeast-4": { "description": "Asia Pacific (Melbourne)" },
|
|
1616
|
-
"ap-southeast-5": { "description": "Asia Pacific (Malaysia)" },
|
|
1617
|
-
"ap-southeast-6": { "description": "Asia Pacific (New Zealand)" },
|
|
1618
|
-
"ap-southeast-7": { "description": "Asia Pacific (Thailand)" },
|
|
1619
|
-
"aws-global": { "description": "aws global region" },
|
|
1620
|
-
"ca-central-1": { "description": "Canada (Central)" },
|
|
1621
|
-
"ca-west-1": { "description": "Canada West (Calgary)" },
|
|
1622
|
-
"eu-central-1": { "description": "Europe (Frankfurt)" },
|
|
1623
|
-
"eu-central-2": { "description": "Europe (Zurich)" },
|
|
1624
|
-
"eu-north-1": { "description": "Europe (Stockholm)" },
|
|
1625
|
-
"eu-south-1": { "description": "Europe (Milan)" },
|
|
1626
|
-
"eu-south-2": { "description": "Europe (Spain)" },
|
|
1627
|
-
"eu-west-1": { "description": "Europe (Ireland)" },
|
|
1628
|
-
"eu-west-2": { "description": "Europe (London)" },
|
|
1629
|
-
"eu-west-3": { "description": "Europe (Paris)" },
|
|
1630
|
-
"il-central-1": { "description": "Israel (Tel Aviv)" },
|
|
1631
|
-
"me-central-1": { "description": "Middle East (UAE)" },
|
|
1632
|
-
"me-south-1": { "description": "Middle East (Bahrain)" },
|
|
1633
|
-
"mx-central-1": { "description": "Mexico (Central)" },
|
|
1634
|
-
"sa-east-1": { "description": "South America (Sao Paulo)" },
|
|
1635
|
-
"us-east-1": { "description": "US East (N. Virginia)" },
|
|
1636
|
-
"us-east-2": { "description": "US East (Ohio)" },
|
|
1637
|
-
"us-west-1": { "description": "US West (N. California)" },
|
|
1638
|
-
"us-west-2": { "description": "US West (Oregon)" }
|
|
1639
|
-
}
|
|
1640
|
-
},
|
|
1641
|
-
{
|
|
1642
|
-
"id": "aws-cn",
|
|
1643
|
-
"outputs": {
|
|
1644
|
-
"dnsSuffix": "amazonaws.com.cn",
|
|
1645
|
-
"dualStackDnsSuffix": "api.amazonwebservices.com.cn",
|
|
1646
|
-
"implicitGlobalRegion": "cn-northwest-1",
|
|
1647
|
-
"name": "aws-cn",
|
|
1648
|
-
"supportsDualStack": true,
|
|
1649
|
-
"supportsFIPS": true
|
|
1650
|
-
},
|
|
1651
|
-
"regionRegex": "^cn\\-\\w+\\-\\d+$",
|
|
1652
|
-
"regions": {
|
|
1653
|
-
"aws-cn-global": { "description": "aws-cn global region" },
|
|
1654
|
-
"cn-north-1": { "description": "China (Beijing)" },
|
|
1655
|
-
"cn-northwest-1": { "description": "China (Ningxia)" }
|
|
1656
|
-
}
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
"id": "aws-eusc",
|
|
1660
|
-
"outputs": {
|
|
1661
|
-
"dnsSuffix": "amazonaws.eu",
|
|
1662
|
-
"dualStackDnsSuffix": "api.amazonwebservices.eu",
|
|
1663
|
-
"implicitGlobalRegion": "eusc-de-east-1",
|
|
1664
|
-
"name": "aws-eusc",
|
|
1665
|
-
"supportsDualStack": true,
|
|
1666
|
-
"supportsFIPS": true
|
|
1667
|
-
},
|
|
1668
|
-
"regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
|
1669
|
-
"regions": { "eusc-de-east-1": { "description": "AWS European Sovereign Cloud (Germany)" } }
|
|
1670
|
-
},
|
|
1671
|
-
{
|
|
1672
|
-
"id": "aws-iso",
|
|
1673
|
-
"outputs": {
|
|
1674
|
-
"dnsSuffix": "c2s.ic.gov",
|
|
1675
|
-
"dualStackDnsSuffix": "api.aws.ic.gov",
|
|
1676
|
-
"implicitGlobalRegion": "us-iso-east-1",
|
|
1677
|
-
"name": "aws-iso",
|
|
1678
|
-
"supportsDualStack": true,
|
|
1679
|
-
"supportsFIPS": true
|
|
1680
|
-
},
|
|
1681
|
-
"regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
|
|
1682
|
-
"regions": {
|
|
1683
|
-
"aws-iso-global": { "description": "aws-iso global region" },
|
|
1684
|
-
"us-iso-east-1": { "description": "US ISO East" },
|
|
1685
|
-
"us-iso-west-1": { "description": "US ISO WEST" }
|
|
1686
|
-
}
|
|
1687
|
-
},
|
|
1688
|
-
{
|
|
1689
|
-
"id": "aws-iso-b",
|
|
1690
|
-
"outputs": {
|
|
1691
|
-
"dnsSuffix": "sc2s.sgov.gov",
|
|
1692
|
-
"dualStackDnsSuffix": "api.aws.scloud",
|
|
1693
|
-
"implicitGlobalRegion": "us-isob-east-1",
|
|
1694
|
-
"name": "aws-iso-b",
|
|
1695
|
-
"supportsDualStack": true,
|
|
1696
|
-
"supportsFIPS": true
|
|
1697
|
-
},
|
|
1698
|
-
"regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
|
|
1699
|
-
"regions": {
|
|
1700
|
-
"aws-iso-b-global": { "description": "aws-iso-b global region" },
|
|
1701
|
-
"us-isob-east-1": { "description": "US ISOB East (Ohio)" },
|
|
1702
|
-
"us-isob-west-1": { "description": "US ISOB West" }
|
|
1703
|
-
}
|
|
1704
|
-
},
|
|
1705
|
-
{
|
|
1706
|
-
"id": "aws-iso-e",
|
|
1707
|
-
"outputs": {
|
|
1708
|
-
"dnsSuffix": "cloud.adc-e.uk",
|
|
1709
|
-
"dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
|
|
1710
|
-
"implicitGlobalRegion": "eu-isoe-west-1",
|
|
1711
|
-
"name": "aws-iso-e",
|
|
1712
|
-
"supportsDualStack": true,
|
|
1713
|
-
"supportsFIPS": true
|
|
1714
|
-
},
|
|
1715
|
-
"regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
|
|
1716
|
-
"regions": {
|
|
1717
|
-
"aws-iso-e-global": { "description": "aws-iso-e global region" },
|
|
1718
|
-
"eu-isoe-west-1": { "description": "EU ISOE West" }
|
|
1719
|
-
}
|
|
1720
|
-
},
|
|
1721
|
-
{
|
|
1722
|
-
"id": "aws-iso-f",
|
|
1723
|
-
"outputs": {
|
|
1724
|
-
"dnsSuffix": "csp.hci.ic.gov",
|
|
1725
|
-
"dualStackDnsSuffix": "api.aws.hci.ic.gov",
|
|
1726
|
-
"implicitGlobalRegion": "us-isof-south-1",
|
|
1727
|
-
"name": "aws-iso-f",
|
|
1728
|
-
"supportsDualStack": true,
|
|
1729
|
-
"supportsFIPS": true
|
|
1730
|
-
},
|
|
1731
|
-
"regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
|
|
1732
|
-
"regions": {
|
|
1733
|
-
"aws-iso-f-global": { "description": "aws-iso-f global region" },
|
|
1734
|
-
"us-isof-east-1": { "description": "US ISOF EAST" },
|
|
1735
|
-
"us-isof-south-1": { "description": "US ISOF SOUTH" }
|
|
1736
|
-
}
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
"id": "aws-us-gov",
|
|
1740
|
-
"outputs": {
|
|
1741
|
-
"dnsSuffix": "amazonaws.com",
|
|
1742
|
-
"dualStackDnsSuffix": "api.aws",
|
|
1743
|
-
"implicitGlobalRegion": "us-gov-west-1",
|
|
1744
|
-
"name": "aws-us-gov",
|
|
1745
|
-
"supportsDualStack": true,
|
|
1746
|
-
"supportsFIPS": true
|
|
1747
|
-
},
|
|
1748
|
-
"regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
|
|
1749
|
-
"regions": {
|
|
1750
|
-
"aws-us-gov-global": { "description": "aws-us-gov global region" },
|
|
1751
|
-
"us-gov-east-1": { "description": "AWS GovCloud (US-East)" },
|
|
1752
|
-
"us-gov-west-1": { "description": "AWS GovCloud (US-West)" }
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
],
|
|
1756
|
-
"version": "1.1"
|
|
1757
|
-
};
|
|
1758
|
-
}));
|
|
1759
|
-
//#endregion
|
|
1760
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js
|
|
1761
|
-
var selectedPartitionsInfo, selectedUserAgentPrefix, partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix;
|
|
1762
|
-
var init_partition = __esmMin((() => {
|
|
1763
|
-
init_partitions();
|
|
1764
|
-
selectedPartitionsInfo = partitionsInfo;
|
|
1765
|
-
selectedUserAgentPrefix = "";
|
|
1766
|
-
partition = (value) => {
|
|
1767
|
-
const { partitions } = selectedPartitionsInfo;
|
|
1768
|
-
for (const partition of partitions) {
|
|
1769
|
-
const { regions, outputs } = partition;
|
|
1770
|
-
for (const [region, regionData] of Object.entries(regions)) if (region === value) return {
|
|
1771
|
-
...outputs,
|
|
1772
|
-
...regionData
|
|
1773
|
-
};
|
|
1774
|
-
}
|
|
1775
|
-
for (const partition of partitions) {
|
|
1776
|
-
const { regionRegex, outputs } = partition;
|
|
1777
|
-
if (new RegExp(regionRegex).test(value)) return { ...outputs };
|
|
1778
|
-
}
|
|
1779
|
-
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
|
1780
|
-
if (!DEFAULT_PARTITION) throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
|
|
1781
|
-
return { ...DEFAULT_PARTITION.outputs };
|
|
1782
|
-
};
|
|
1783
|
-
setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
|
1784
|
-
selectedPartitionsInfo = partitionsInfo;
|
|
1785
|
-
selectedUserAgentPrefix = userAgentPrefix;
|
|
1786
|
-
};
|
|
1787
|
-
useDefaultPartitionInfo = () => {
|
|
1788
|
-
setPartitionInfo(partitionsInfo, "");
|
|
1789
|
-
};
|
|
1790
|
-
getUserAgentPrefix = () => selectedUserAgentPrefix;
|
|
1791
|
-
}));
|
|
1792
|
-
//#endregion
|
|
1793
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/check-features.js
|
|
1794
|
-
async function checkFeatures(context, config, args) {
|
|
1795
|
-
if (args.request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") setFeature$1(context, "PROTOCOL_RPC_V2_CBOR", "M");
|
|
1796
|
-
if (typeof config.retryStrategy === "function") {
|
|
1797
|
-
const retryStrategy = await config.retryStrategy();
|
|
1798
|
-
if (typeof retryStrategy.mode === "string") switch (retryStrategy.mode) {
|
|
1799
|
-
case RETRY_MODES.ADAPTIVE:
|
|
1800
|
-
setFeature$1(context, "RETRY_MODE_ADAPTIVE", "F");
|
|
1801
|
-
break;
|
|
1802
|
-
case RETRY_MODES.STANDARD:
|
|
1803
|
-
setFeature$1(context, "RETRY_MODE_STANDARD", "E");
|
|
1804
|
-
break;
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
if (typeof config.accountIdEndpointMode === "function") {
|
|
1808
|
-
const endpointV2 = context.endpointV2;
|
|
1809
|
-
if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) setFeature$1(context, "ACCOUNT_ID_ENDPOINT", "O");
|
|
1810
|
-
switch (await config.accountIdEndpointMode?.()) {
|
|
1811
|
-
case "disabled":
|
|
1812
|
-
setFeature$1(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
|
|
1813
|
-
break;
|
|
1814
|
-
case "preferred":
|
|
1815
|
-
setFeature$1(context, "ACCOUNT_ID_MODE_PREFERRED", "P");
|
|
1816
|
-
break;
|
|
1817
|
-
case "required":
|
|
1818
|
-
setFeature$1(context, "ACCOUNT_ID_MODE_REQUIRED", "R");
|
|
1819
|
-
break;
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
|
|
1823
|
-
if (identity?.$source) {
|
|
1824
|
-
const credentials = identity;
|
|
1825
|
-
if (credentials.accountId) setFeature$1(context, "RESOLVED_ACCOUNT_ID", "T");
|
|
1826
|
-
for (const [key, value] of Object.entries(credentials.$source ?? {})) setFeature$1(context, key, value);
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
var ACCOUNT_ID_ENDPOINT_REGEX;
|
|
1830
|
-
var init_check_features = __esmMin((() => {
|
|
1831
|
-
init_retry();
|
|
1832
|
-
init_setFeature$1();
|
|
1833
|
-
ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
1834
|
-
}));
|
|
1835
|
-
//#endregion
|
|
1836
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/constants.js
|
|
1837
|
-
var USER_AGENT, X_AMZ_USER_AGENT, UA_NAME_ESCAPE_REGEX, UA_VALUE_ESCAPE_REGEX;
|
|
1838
|
-
var init_constants = __esmMin((() => {
|
|
1839
|
-
USER_AGENT = "user-agent";
|
|
1840
|
-
X_AMZ_USER_AGENT = "x-amz-user-agent";
|
|
1841
|
-
UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g;
|
|
1842
|
-
UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g;
|
|
1843
|
-
}));
|
|
1844
|
-
//#endregion
|
|
1845
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/encode-features.js
|
|
1846
|
-
function encodeFeatures(features) {
|
|
1847
|
-
let buffer = "";
|
|
1848
|
-
for (const key in features) {
|
|
1849
|
-
const val = features[key];
|
|
1850
|
-
if (buffer.length + val.length + 1 <= BYTE_LIMIT) {
|
|
1851
|
-
if (buffer.length) buffer += "," + val;
|
|
1852
|
-
else buffer += val;
|
|
1853
|
-
continue;
|
|
1854
|
-
}
|
|
1855
|
-
break;
|
|
1856
|
-
}
|
|
1857
|
-
return buffer;
|
|
1858
|
-
}
|
|
1859
|
-
var BYTE_LIMIT;
|
|
1860
|
-
var init_encode_features = __esmMin((() => {
|
|
1861
|
-
BYTE_LIMIT = 1024;
|
|
1862
|
-
}));
|
|
1863
|
-
//#endregion
|
|
1864
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/user-agent-middleware.js
|
|
1865
|
-
var userAgentMiddleware, escapeUserAgent, getUserAgentMiddlewareOptions, getUserAgentPlugin;
|
|
1866
|
-
var init_user_agent_middleware = __esmMin((() => {
|
|
1867
|
-
init_protocols();
|
|
1868
|
-
init_partition();
|
|
1869
|
-
init_check_features();
|
|
1870
|
-
init_constants();
|
|
1871
|
-
init_encode_features();
|
|
1872
|
-
userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
1873
|
-
const { request } = args;
|
|
1874
|
-
if (!HttpRequest.isInstance(request)) return next(args);
|
|
1875
|
-
const { headers } = request;
|
|
1876
|
-
const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
|
|
1877
|
-
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
|
1878
|
-
await checkFeatures(context, options, args);
|
|
1879
|
-
const awsContext = context;
|
|
1880
|
-
defaultUserAgent.push(`m/${encodeFeatures(Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features))}`);
|
|
1881
|
-
const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
|
|
1882
|
-
const appId = await options.userAgentAppId();
|
|
1883
|
-
if (appId) defaultUserAgent.push(escapeUserAgent([`app`, `${appId}`]));
|
|
1884
|
-
const prefix = getUserAgentPrefix();
|
|
1885
|
-
const sdkUserAgentValue = (prefix ? [prefix] : []).concat([
|
|
1886
|
-
...defaultUserAgent,
|
|
1887
|
-
...userAgent,
|
|
1888
|
-
...customUserAgent
|
|
1889
|
-
]).join(" ");
|
|
1890
|
-
const normalUAValue = [...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), ...customUserAgent].join(" ");
|
|
1891
|
-
if (options.runtime !== "browser") {
|
|
1892
|
-
if (normalUAValue) headers[X_AMZ_USER_AGENT] = headers["x-amz-user-agent"] ? `${headers[USER_AGENT]} ${normalUAValue}` : normalUAValue;
|
|
1893
|
-
headers[USER_AGENT] = sdkUserAgentValue;
|
|
1894
|
-
} else headers[X_AMZ_USER_AGENT] = sdkUserAgentValue;
|
|
1895
|
-
return next({
|
|
1896
|
-
...args,
|
|
1897
|
-
request
|
|
1898
|
-
});
|
|
1899
|
-
};
|
|
1900
|
-
escapeUserAgent = (userAgentPair) => {
|
|
1901
|
-
const name = userAgentPair[0].split("/").map((part) => part.replace(UA_NAME_ESCAPE_REGEX, "-")).join("/");
|
|
1902
|
-
const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, "-");
|
|
1903
|
-
const prefixSeparatorIndex = name.indexOf("/");
|
|
1904
|
-
const prefix = name.substring(0, prefixSeparatorIndex);
|
|
1905
|
-
let uaName = name.substring(prefixSeparatorIndex + 1);
|
|
1906
|
-
if (prefix === "api") uaName = uaName.toLowerCase();
|
|
1907
|
-
return [
|
|
1908
|
-
prefix,
|
|
1909
|
-
uaName,
|
|
1910
|
-
version
|
|
1911
|
-
].filter((item) => item && item.length > 0).reduce((acc, item, index) => {
|
|
1912
|
-
switch (index) {
|
|
1913
|
-
case 0: return item;
|
|
1914
|
-
case 1: return `${acc}/${item}`;
|
|
1915
|
-
default: return `${acc}#${item}`;
|
|
1916
|
-
}
|
|
1917
|
-
}, "");
|
|
1918
|
-
};
|
|
1919
|
-
getUserAgentMiddlewareOptions = {
|
|
1920
|
-
name: "getUserAgentMiddleware",
|
|
1921
|
-
step: "build",
|
|
1922
|
-
priority: "low",
|
|
1923
|
-
tags: ["SET_USER_AGENT", "USER_AGENT"],
|
|
1924
|
-
override: true
|
|
1925
|
-
};
|
|
1926
|
-
getUserAgentPlugin = (config) => ({ applyToStack: (clientStack) => {
|
|
1927
|
-
clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
|
|
1928
|
-
} });
|
|
1929
|
-
}));
|
|
1930
|
-
//#endregion
|
|
1931
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.js
|
|
1932
|
-
var getRuntimeUserAgentPair;
|
|
1933
|
-
var init_getRuntimeUserAgentPair = __esmMin((() => {
|
|
1934
|
-
getRuntimeUserAgentPair = () => {
|
|
1935
|
-
for (const runtime of [
|
|
1936
|
-
"deno",
|
|
1937
|
-
"bun",
|
|
1938
|
-
"llrt"
|
|
1939
|
-
]) if (versions[runtime]) return [`md/${runtime}`, versions[runtime]];
|
|
1940
|
-
return ["md/nodejs", versions.node];
|
|
1941
|
-
};
|
|
1942
|
-
}));
|
|
1943
|
-
//#endregion
|
|
1944
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getNodeModulesParentDirs.js
|
|
1945
|
-
var getNodeModulesParentDirs;
|
|
1946
|
-
var init_getNodeModulesParentDirs = __esmMin((() => {
|
|
1947
|
-
getNodeModulesParentDirs = (dirname) => {
|
|
1948
|
-
const cwd = process.cwd();
|
|
1949
|
-
if (!dirname) return [cwd];
|
|
1950
|
-
const normalizedPath = normalize(dirname);
|
|
1951
|
-
const parts = normalizedPath.split(sep);
|
|
1952
|
-
const nodeModulesIndex = parts.indexOf("node_modules");
|
|
1953
|
-
const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(sep) : normalizedPath;
|
|
1954
|
-
if (cwd === parentDir) return [cwd];
|
|
1955
|
-
return [parentDir, cwd];
|
|
1956
|
-
};
|
|
1957
|
-
}));
|
|
1958
|
-
//#endregion
|
|
1959
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedTypeScriptVersion.js
|
|
1960
|
-
var SEMVER_REGEX, getSanitizedTypeScriptVersion;
|
|
1961
|
-
var init_getSanitizedTypeScriptVersion = __esmMin((() => {
|
|
1962
|
-
SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
|
|
1963
|
-
getSanitizedTypeScriptVersion = (version = "") => {
|
|
1964
|
-
const match = version.match(SEMVER_REGEX);
|
|
1965
|
-
if (!match) return;
|
|
1966
|
-
const [major, minor, patch, prerelease] = [
|
|
1967
|
-
match[1],
|
|
1968
|
-
match[2],
|
|
1969
|
-
match[3],
|
|
1970
|
-
match[4]
|
|
1971
|
-
];
|
|
1972
|
-
return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
|
|
1973
|
-
};
|
|
1974
|
-
}));
|
|
1975
|
-
//#endregion
|
|
1976
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedDevTypeScriptVersion.js
|
|
1977
|
-
var ALLOWED_PREFIXES, ALLOWED_DIST_TAGS, getSanitizedDevTypeScriptVersion;
|
|
1978
|
-
var init_getSanitizedDevTypeScriptVersion = __esmMin((() => {
|
|
1979
|
-
init_getSanitizedTypeScriptVersion();
|
|
1980
|
-
ALLOWED_PREFIXES = [
|
|
1981
|
-
"^",
|
|
1982
|
-
"~",
|
|
1983
|
-
">=",
|
|
1984
|
-
"<=",
|
|
1985
|
-
">",
|
|
1986
|
-
"<"
|
|
1987
|
-
];
|
|
1988
|
-
ALLOWED_DIST_TAGS = [
|
|
1989
|
-
"latest",
|
|
1990
|
-
"beta",
|
|
1991
|
-
"dev",
|
|
1992
|
-
"rc",
|
|
1993
|
-
"insiders",
|
|
1994
|
-
"next"
|
|
1995
|
-
];
|
|
1996
|
-
getSanitizedDevTypeScriptVersion = (version = "") => {
|
|
1997
|
-
if (ALLOWED_DIST_TAGS.includes(version)) return version;
|
|
1998
|
-
const prefix = ALLOWED_PREFIXES.find((p) => version.startsWith(p)) ?? "";
|
|
1999
|
-
const sanitizedTypeScriptVersion = getSanitizedTypeScriptVersion(version.slice(prefix.length));
|
|
2000
|
-
if (!sanitizedTypeScriptVersion) return;
|
|
2001
|
-
return `${prefix}${sanitizedTypeScriptVersion}`;
|
|
2002
|
-
};
|
|
2003
|
-
}));
|
|
2004
|
-
//#endregion
|
|
2005
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getTypeScriptUserAgentPair.js
|
|
2006
|
-
var tscVersion, TS_PACKAGE_JSON, getTypeScriptUserAgentPair;
|
|
2007
|
-
var init_getTypeScriptUserAgentPair = __esmMin((() => {
|
|
2008
|
-
init_config$1();
|
|
2009
|
-
init_getNodeModulesParentDirs();
|
|
2010
|
-
init_getSanitizedDevTypeScriptVersion();
|
|
2011
|
-
init_getSanitizedTypeScriptVersion();
|
|
2012
|
-
TS_PACKAGE_JSON = join("node_modules", "typescript", "package.json");
|
|
2013
|
-
getTypeScriptUserAgentPair = async () => {
|
|
2014
|
-
if (tscVersion === null) return;
|
|
2015
|
-
else if (typeof tscVersion === "string") return ["md/tsc", tscVersion];
|
|
2016
|
-
let isTypeScriptDetectionDisabled = false;
|
|
2017
|
-
try {
|
|
2018
|
-
isTypeScriptDetectionDisabled = booleanSelector(process.env, "AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED", SelectorType.ENV) || false;
|
|
2019
|
-
} catch {}
|
|
2020
|
-
if (isTypeScriptDetectionDisabled) {
|
|
2021
|
-
tscVersion = null;
|
|
2022
|
-
return;
|
|
2023
|
-
}
|
|
2024
|
-
const nodeModulesParentDirs = getNodeModulesParentDirs(typeof __dirname !== "undefined" ? __dirname : void 0);
|
|
2025
|
-
let versionFromApp;
|
|
2026
|
-
for (const nodeModulesParentDir of nodeModulesParentDirs) try {
|
|
2027
|
-
const packageJson = await readFile(join(nodeModulesParentDir, "package.json"), "utf-8");
|
|
2028
|
-
const { dependencies, devDependencies } = JSON.parse(packageJson);
|
|
2029
|
-
const version = devDependencies?.typescript ?? dependencies?.typescript;
|
|
2030
|
-
if (typeof version !== "string") continue;
|
|
2031
|
-
versionFromApp = version;
|
|
2032
|
-
break;
|
|
2033
|
-
} catch {}
|
|
2034
|
-
if (!versionFromApp) {
|
|
2035
|
-
tscVersion = null;
|
|
2036
|
-
return;
|
|
2037
|
-
}
|
|
2038
|
-
let versionFromNodeModules;
|
|
2039
|
-
for (const nodeModulesParentDir of nodeModulesParentDirs) try {
|
|
2040
|
-
const packageJson = await readFile(join(nodeModulesParentDir, TS_PACKAGE_JSON), "utf-8");
|
|
2041
|
-
const { version } = JSON.parse(packageJson);
|
|
2042
|
-
const sanitizedVersion = getSanitizedTypeScriptVersion(version);
|
|
2043
|
-
if (typeof sanitizedVersion !== "string") continue;
|
|
2044
|
-
versionFromNodeModules = sanitizedVersion;
|
|
2045
|
-
break;
|
|
2046
|
-
} catch {}
|
|
2047
|
-
if (versionFromNodeModules) {
|
|
2048
|
-
tscVersion = versionFromNodeModules;
|
|
2049
|
-
return ["md/tsc", tscVersion];
|
|
2050
|
-
}
|
|
2051
|
-
const sanitizedVersion = getSanitizedDevTypeScriptVersion(versionFromApp);
|
|
2052
|
-
if (typeof sanitizedVersion !== "string") {
|
|
2053
|
-
tscVersion = null;
|
|
2054
|
-
return;
|
|
2055
|
-
}
|
|
2056
|
-
tscVersion = `dev_${sanitizedVersion}`;
|
|
2057
|
-
return ["md/tsc", tscVersion];
|
|
2058
|
-
};
|
|
2059
|
-
}));
|
|
2060
|
-
//#endregion
|
|
2061
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/crt-availability.js
|
|
2062
|
-
var crtAvailability;
|
|
2063
|
-
var init_crt_availability = __esmMin((() => {
|
|
2064
|
-
crtAvailability = { isCrtAvailable: false };
|
|
2065
|
-
}));
|
|
2066
|
-
//#endregion
|
|
2067
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/is-crt-available.js
|
|
2068
|
-
var isCrtAvailable;
|
|
2069
|
-
var init_is_crt_available = __esmMin((() => {
|
|
2070
|
-
init_crt_availability();
|
|
2071
|
-
isCrtAvailable = () => {
|
|
2072
|
-
if (crtAvailability.isCrtAvailable) return ["md/crt-avail"];
|
|
2073
|
-
return null;
|
|
2074
|
-
};
|
|
2075
|
-
}));
|
|
2076
|
-
//#endregion
|
|
2077
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/defaultUserAgent.js
|
|
2078
|
-
var createDefaultUserAgentProvider, defaultUserAgent;
|
|
2079
|
-
var init_defaultUserAgent$1 = __esmMin((() => {
|
|
2080
|
-
init_getRuntimeUserAgentPair();
|
|
2081
|
-
init_getTypeScriptUserAgentPair();
|
|
2082
|
-
init_is_crt_available();
|
|
2083
|
-
init_crt_availability();
|
|
2084
|
-
createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
|
|
2085
|
-
const runtimeUserAgentPair = getRuntimeUserAgentPair();
|
|
2086
|
-
return async (config) => {
|
|
2087
|
-
const sections = [
|
|
2088
|
-
["aws-sdk-js", clientVersion],
|
|
2089
|
-
["ua", "2.1"],
|
|
2090
|
-
[`os/${platform()}`, release()],
|
|
2091
|
-
["lang/js"],
|
|
2092
|
-
runtimeUserAgentPair
|
|
2093
|
-
];
|
|
2094
|
-
const typescriptUserAgentPair = await getTypeScriptUserAgentPair();
|
|
2095
|
-
if (typescriptUserAgentPair) sections.push(typescriptUserAgentPair);
|
|
2096
|
-
const crtAvailable = isCrtAvailable();
|
|
2097
|
-
if (crtAvailable) sections.push(crtAvailable);
|
|
2098
|
-
if (serviceId) sections.push([`api/${serviceId}`, clientVersion]);
|
|
2099
|
-
if (env.AWS_EXECUTION_ENV) sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]);
|
|
2100
|
-
const appId = await config?.userAgentAppId?.();
|
|
2101
|
-
return appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
2102
|
-
};
|
|
2103
|
-
};
|
|
2104
|
-
defaultUserAgent = createDefaultUserAgentProvider;
|
|
2105
|
-
}));
|
|
2106
|
-
//#endregion
|
|
2107
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.js
|
|
2108
|
-
var UA_APP_ID_ENV_NAME, UA_APP_ID_INI_NAME, UA_APP_ID_INI_NAME_DEPRECATED, NODE_APP_ID_CONFIG_OPTIONS;
|
|
2109
|
-
var init_nodeAppIdConfigOptions = __esmMin((() => {
|
|
2110
|
-
init_configurations();
|
|
2111
|
-
UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
2112
|
-
UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
2113
|
-
UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
|
|
2114
|
-
NODE_APP_ID_CONFIG_OPTIONS = {
|
|
2115
|
-
environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME],
|
|
2116
|
-
configFileSelector: (profile) => profile["sdk_ua_app_id"] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
2117
|
-
default: void 0
|
|
2118
|
-
};
|
|
2119
|
-
}));
|
|
2120
|
-
//#endregion
|
|
2121
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.js
|
|
2122
|
-
var createUserAgentStringParsingProvider;
|
|
2123
|
-
var init_createUserAgentStringParsingProvider = __esmMin((() => {
|
|
2124
|
-
createUserAgentStringParsingProvider = ({ serviceId, clientVersion }) => async (config) => {
|
|
2125
|
-
const module = await import("./es5.js").then((m) => /* @__PURE__ */ __toESM(m.default));
|
|
2126
|
-
const parse = module.parse ?? module.default.parse ?? (() => "");
|
|
2127
|
-
const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent ? parse(window.navigator.userAgent) : void 0;
|
|
2128
|
-
const sections = [
|
|
2129
|
-
["aws-sdk-js", clientVersion],
|
|
2130
|
-
["ua", "2.1"],
|
|
2131
|
-
[`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version],
|
|
2132
|
-
["lang/js"],
|
|
2133
|
-
["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`]
|
|
2134
|
-
];
|
|
2135
|
-
if (serviceId) sections.push([`api/${serviceId}`, clientVersion]);
|
|
2136
|
-
const appId = await config?.userAgentAppId?.();
|
|
2137
|
-
if (appId) sections.push([`app/${appId}`]);
|
|
2138
|
-
return sections;
|
|
2139
|
-
};
|
|
2140
|
-
}));
|
|
2141
|
-
//#endregion
|
|
2142
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js
|
|
2143
|
-
var fallback;
|
|
2144
|
-
var init_defaultUserAgent = __esmMin((() => {
|
|
2145
|
-
init_createUserAgentStringParsingProvider();
|
|
2146
|
-
fallback = {
|
|
2147
|
-
os(ua) {
|
|
2148
|
-
if (/iPhone|iPad|iPod/.test(ua)) return "iOS";
|
|
2149
|
-
if (/Macintosh|Mac OS X/.test(ua)) return "macOS";
|
|
2150
|
-
if (/Windows NT/.test(ua)) return "Windows";
|
|
2151
|
-
if (/Android/.test(ua)) return "Android";
|
|
2152
|
-
if (/Linux/.test(ua)) return "Linux";
|
|
2153
|
-
},
|
|
2154
|
-
browser(ua) {
|
|
2155
|
-
if (/EdgiOS|EdgA|Edg\//.test(ua)) return "Microsoft Edge";
|
|
2156
|
-
if (/Firefox\//.test(ua)) return "Firefox";
|
|
2157
|
-
if (/Chrome\//.test(ua)) return "Chrome";
|
|
2158
|
-
if (/Safari\//.test(ua)) return "Safari";
|
|
2159
|
-
}
|
|
2160
|
-
};
|
|
2161
|
-
}));
|
|
2162
|
-
//#endregion
|
|
2163
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/isIpAddress.js
|
|
2164
|
-
var init_isIpAddress = __esmMin((() => {
|
|
2165
|
-
init_endpoints();
|
|
2166
|
-
}));
|
|
2167
|
-
//#endregion
|
|
2168
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js
|
|
2169
|
-
var isVirtualHostableS3Bucket;
|
|
2170
|
-
var init_isVirtualHostableS3Bucket = __esmMin((() => {
|
|
2171
|
-
init_endpoints();
|
|
2172
|
-
init_isIpAddress();
|
|
2173
|
-
isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
2174
|
-
if (allowSubDomains) {
|
|
2175
|
-
for (const label of value.split(".")) if (!isVirtualHostableS3Bucket(label)) return false;
|
|
2176
|
-
return true;
|
|
2177
|
-
}
|
|
2178
|
-
if (!isValidHostLabel(value)) return false;
|
|
2179
|
-
if (value.length < 3 || value.length > 63) return false;
|
|
2180
|
-
if (value !== value.toLowerCase()) return false;
|
|
2181
|
-
if (isIpAddress(value)) return false;
|
|
2182
|
-
return true;
|
|
2183
|
-
};
|
|
2184
|
-
}));
|
|
2185
|
-
//#endregion
|
|
2186
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js
|
|
2187
|
-
var ARN_DELIMITER, RESOURCE_DELIMITER, parseArn;
|
|
2188
|
-
var init_parseArn = __esmMin((() => {
|
|
2189
|
-
ARN_DELIMITER = ":";
|
|
2190
|
-
RESOURCE_DELIMITER = "/";
|
|
2191
|
-
parseArn = (value) => {
|
|
2192
|
-
const segments = value.split(ARN_DELIMITER);
|
|
2193
|
-
if (segments.length < 6) return null;
|
|
2194
|
-
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
2195
|
-
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
|
|
2196
|
-
return {
|
|
2197
|
-
partition,
|
|
2198
|
-
service,
|
|
2199
|
-
region,
|
|
2200
|
-
accountId,
|
|
2201
|
-
resourceId: resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat()
|
|
2202
|
-
};
|
|
2203
|
-
};
|
|
2204
|
-
}));
|
|
2205
|
-
//#endregion
|
|
2206
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js
|
|
2207
|
-
var awsEndpointFunctions;
|
|
2208
|
-
var init_aws = __esmMin((() => {
|
|
2209
|
-
init_endpoints();
|
|
2210
|
-
init_isVirtualHostableS3Bucket();
|
|
2211
|
-
init_parseArn();
|
|
2212
|
-
init_partition();
|
|
2213
|
-
awsEndpointFunctions = {
|
|
2214
|
-
isVirtualHostableS3Bucket,
|
|
2215
|
-
parseArn,
|
|
2216
|
-
partition
|
|
2217
|
-
};
|
|
2218
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
2219
|
-
}));
|
|
2220
|
-
//#endregion
|
|
2221
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveEndpoint.js
|
|
2222
|
-
var init_resolveEndpoint = __esmMin((() => {
|
|
2223
|
-
init_endpoints();
|
|
2224
|
-
}));
|
|
2225
|
-
//#endregion
|
|
2226
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.js
|
|
2227
|
-
var resolveDefaultAwsRegionalEndpointsConfig, toEndpointV1;
|
|
2228
|
-
var init_resolveDefaultAwsRegionalEndpointsConfig = __esmMin((() => {
|
|
2229
|
-
init_protocols();
|
|
2230
|
-
resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
2231
|
-
if (typeof input.endpointProvider !== "function") throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
|
2232
|
-
const { endpoint } = input;
|
|
2233
|
-
if (endpoint === void 0) input.endpoint = async () => {
|
|
2234
|
-
return toEndpointV1(input.endpointProvider({
|
|
2235
|
-
Region: typeof input.region === "function" ? await input.region() : input.region,
|
|
2236
|
-
UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
|
|
2237
|
-
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
|
2238
|
-
Endpoint: void 0
|
|
2239
|
-
}, { logger: input.logger }));
|
|
2240
|
-
};
|
|
2241
|
-
return input;
|
|
2242
|
-
};
|
|
2243
|
-
toEndpointV1 = (endpoint) => parseUrl(endpoint.url);
|
|
2244
|
-
}));
|
|
2245
|
-
//#endregion
|
|
2246
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/types/EndpointError.js
|
|
2247
|
-
var init_EndpointError = __esmMin((() => {
|
|
2248
|
-
init_endpoints();
|
|
2249
|
-
}));
|
|
2250
|
-
//#endregion
|
|
2251
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/awsRegionConfig.js
|
|
2252
|
-
var init_awsRegionConfig = __esmMin((() => {
|
|
2253
|
-
init_config$1();
|
|
2254
|
-
}));
|
|
2255
|
-
//#endregion
|
|
2256
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/stsRegionDefaultResolver.js
|
|
2257
|
-
function stsRegionDefaultResolver(loaderConfig = {}) {
|
|
2258
|
-
return loadConfig({
|
|
2259
|
-
...NODE_REGION_CONFIG_OPTIONS,
|
|
2260
|
-
async default() {
|
|
2261
|
-
if (!warning.silence) console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");
|
|
2262
|
-
return "us-east-1";
|
|
2263
|
-
}
|
|
2264
|
-
}, {
|
|
2265
|
-
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
2266
|
-
...loaderConfig
|
|
2267
|
-
});
|
|
2268
|
-
}
|
|
2269
|
-
var warning;
|
|
2270
|
-
var init_stsRegionDefaultResolver = __esmMin((() => {
|
|
2271
|
-
init_config$1();
|
|
2272
|
-
warning = { silence: false };
|
|
2273
|
-
}));
|
|
2274
|
-
//#endregion
|
|
2275
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/extensions.js
|
|
2276
|
-
var getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration;
|
|
2277
|
-
var init_extensions = __esmMin((() => {
|
|
2278
|
-
getAwsRegionExtensionConfiguration = (runtimeConfig) => {
|
|
2279
|
-
return {
|
|
2280
|
-
setRegion(region) {
|
|
2281
|
-
runtimeConfig.region = region;
|
|
2282
|
-
},
|
|
2283
|
-
region() {
|
|
2284
|
-
return runtimeConfig.region;
|
|
2285
|
-
}
|
|
2286
|
-
};
|
|
2287
|
-
};
|
|
2288
|
-
resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => {
|
|
2289
|
-
return { region: awsRegionExtensionConfiguration.region() };
|
|
2290
|
-
};
|
|
2291
|
-
}));
|
|
2292
|
-
//#endregion
|
|
2293
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.20/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js
|
|
2294
|
-
var client_exports = /* @__PURE__ */ __exportAll({
|
|
2295
|
-
DEFAULT_UA_APP_ID: () => void 0,
|
|
2296
|
-
EndpointError: () => EndpointError,
|
|
2297
|
-
NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS,
|
|
2298
|
-
NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
2299
|
-
NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS,
|
|
2300
|
-
REGION_ENV_NAME: () => REGION_ENV_NAME,
|
|
2301
|
-
REGION_INI_NAME: () => REGION_INI_NAME,
|
|
2302
|
-
UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME,
|
|
2303
|
-
UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME,
|
|
2304
|
-
awsEndpointFunctions: () => awsEndpointFunctions,
|
|
2305
|
-
createDefaultUserAgentProvider: () => createDefaultUserAgentProvider,
|
|
2306
|
-
createUserAgentStringParsingProvider: () => createUserAgentStringParsingProvider,
|
|
2307
|
-
crtAvailability: () => crtAvailability,
|
|
2308
|
-
defaultUserAgent: () => defaultUserAgent,
|
|
2309
|
-
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
|
|
2310
|
-
fallback: () => fallback,
|
|
2311
|
-
getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration,
|
|
2312
|
-
getHostHeaderPlugin: () => getHostHeaderPlugin,
|
|
2313
|
-
getLoggerPlugin: () => getLoggerPlugin,
|
|
2314
|
-
getLongPollPlugin: () => getLongPollPlugin,
|
|
2315
|
-
getRecursionDetectionPlugin: () => getRecursionDetectionPlugin,
|
|
2316
|
-
getUserAgentMiddlewareOptions: () => getUserAgentMiddlewareOptions,
|
|
2317
|
-
getUserAgentPlugin: () => getUserAgentPlugin,
|
|
2318
|
-
getUserAgentPrefix: () => getUserAgentPrefix,
|
|
2319
|
-
hostHeaderMiddleware: () => hostHeaderMiddleware,
|
|
2320
|
-
hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions,
|
|
2321
|
-
isIpAddress: () => isIpAddress,
|
|
2322
|
-
isVirtualHostableS3Bucket: () => isVirtualHostableS3Bucket,
|
|
2323
|
-
loggerMiddleware: () => loggerMiddleware,
|
|
2324
|
-
loggerMiddlewareOptions: () => loggerMiddlewareOptions,
|
|
2325
|
-
parseArn: () => parseArn,
|
|
2326
|
-
partition: () => partition,
|
|
2327
|
-
recursionDetectionMiddleware: () => recursionDetectionMiddleware,
|
|
2328
|
-
recursionDetectionMiddlewareOptions: () => recursionDetectionMiddlewareOptions,
|
|
2329
|
-
resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration,
|
|
2330
|
-
resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
|
|
2331
|
-
resolveEndpoint: () => resolveEndpoint,
|
|
2332
|
-
resolveHostHeaderConfig: () => resolveHostHeaderConfig,
|
|
2333
|
-
resolveRegionConfig: () => resolveRegionConfig,
|
|
2334
|
-
resolveUserAgentConfig: () => resolveUserAgentConfig,
|
|
2335
|
-
setCredentialFeature: () => setCredentialFeature,
|
|
2336
|
-
setFeature: () => setFeature$1,
|
|
2337
|
-
setPartitionInfo: () => setPartitionInfo,
|
|
2338
|
-
setTokenFeature: () => setTokenFeature,
|
|
2339
|
-
state: () => state,
|
|
2340
|
-
stsRegionDefaultResolver: () => stsRegionDefaultResolver,
|
|
2341
|
-
stsRegionWarning: () => warning,
|
|
2342
|
-
toEndpointV1: () => toEndpointV1,
|
|
2343
|
-
useDefaultPartitionInfo: () => useDefaultPartitionInfo,
|
|
2344
|
-
userAgentMiddleware: () => userAgentMiddleware
|
|
2345
|
-
});
|
|
2346
|
-
var init_client = __esmMin((() => {
|
|
2347
|
-
init_emitWarningIfUnsupportedVersion();
|
|
2348
|
-
init_longPollMiddleware();
|
|
2349
|
-
init_setCredentialFeature();
|
|
2350
|
-
init_setFeature$1();
|
|
2351
|
-
init_setTokenFeature();
|
|
2352
|
-
init_hostHeaderMiddleware();
|
|
2353
|
-
init_loggerMiddleware();
|
|
2354
|
-
init_configuration();
|
|
2355
|
-
init_getRecursionDetectionPlugin();
|
|
2356
|
-
init_recursionDetectionMiddleware();
|
|
2357
|
-
init_configurations();
|
|
2358
|
-
init_user_agent_middleware();
|
|
2359
|
-
init_defaultUserAgent$1();
|
|
2360
|
-
init_nodeAppIdConfigOptions();
|
|
2361
|
-
init_defaultUserAgent();
|
|
2362
|
-
init_createUserAgentStringParsingProvider();
|
|
2363
|
-
init_aws();
|
|
2364
|
-
init_resolveEndpoint();
|
|
2365
|
-
init_resolveDefaultAwsRegionalEndpointsConfig();
|
|
2366
|
-
init_isIpAddress();
|
|
2367
|
-
init_isVirtualHostableS3Bucket();
|
|
2368
|
-
init_parseArn();
|
|
2369
|
-
init_partition();
|
|
2370
|
-
init_EndpointError();
|
|
2371
|
-
init_awsRegionConfig();
|
|
2372
|
-
init_stsRegionDefaultResolver();
|
|
2373
|
-
init_extensions();
|
|
2374
|
-
}));
|
|
2375
|
-
//#endregion
|
|
2376
|
-
export { init_emitWarningIfUnsupportedVersion as $, getHttpSigningPlugin as A, resolveHostHeaderConfig as B, memoizeIdentityProvider as C, init_DefaultIdentityProviderConfig as D, DefaultIdentityProviderConfig as E, init_getRecursionDetectionPlugin as F, NODE_RETRY_MODE_CONFIG_OPTIONS as G, init_retry as H, getLoggerPlugin as I, DEFAULT_RETRY_MODE as J, init_configurations$1 as K, init_loggerMiddleware as L, getHttpAuthSchemeEndpointRuleSetPlugin as M, init_getHttpAuthSchemeEndpointRuleSetPlugin as N, init_normalizeProvider as O, getRecursionDetectionPlugin as P, emitWarningIfUnsupportedVersion as Q, getHostHeaderPlugin as R, isIdentityExpired as S, init_noAuth as T, retry_exports as U, getRetryPlugin as V, NODE_MAX_ATTEMPT_CONFIG_OPTIONS as W, init_setCredentialFeature as X, init_config as Y, setCredentialFeature as Z, resolveUserAgentConfig as _, resolveAwsRegionExtensionConfiguration as a, doesIdentityRequireRefresh as b, awsEndpointFunctions as c, init_nodeAppIdConfigOptions as d, createDefaultUserAgentProvider as f, init_configurations as g, init_user_agent_middleware as h, init_extensions as i, init_getHttpSigningMiddleware as j, normalizeProvider as k, init_aws as l, getUserAgentPlugin as m, init_client as n, init_stsRegionDefaultResolver as o, init_defaultUserAgent$1 as p, resolveRetryConfig as q, getAwsRegionExtensionConfiguration as r, stsRegionDefaultResolver as s, client_exports as t, NODE_APP_ID_CONFIG_OPTIONS as u, dist_es_exports as v, NoAuthSigner as w, init_memoizeIdentityProvider as x, init_dist_es as y, init_hostHeaderMiddleware as z };
|