replicas-cli 0.2.122 → 0.2.123

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.
Files changed (27) hide show
  1. package/dist/{chunk-NH63C5BC.mjs → chunk-4KZFIKR3.mjs} +1077 -1230
  2. package/dist/{chunk-HDHAEUVR.mjs → chunk-6E4PAXC5.mjs} +1 -1
  3. package/dist/{chunk-OMR2FLSI.mjs → chunk-AEKGTTWT.mjs} +2 -2
  4. package/dist/{chunk-R7VCWGZ2.mjs → chunk-CEE3Y7RM.mjs} +1 -1
  5. package/dist/{chunk-BY7XUH2G.mjs → chunk-F3ZHQCAZ.mjs} +162 -157
  6. package/dist/{chunk-H7SOGPWV.mjs → chunk-H57WOA7R.mjs} +309 -22
  7. package/dist/{chunk-43COQWMG.mjs → chunk-HMKFI7SL.mjs} +19 -19
  8. package/dist/{chunk-G3M3ZN6T.mjs → chunk-K7B6G3FP.mjs} +6 -6
  9. package/dist/{chunk-EHHAQWN3.mjs → chunk-KHHYAMUK.mjs} +12 -12
  10. package/dist/{chunk-ENRF2K6M.mjs → chunk-W27BU2E4.mjs} +72 -355
  11. package/dist/{chunk-PNVVO6MW.mjs → chunk-YZ62XZX5.mjs} +2 -2
  12. package/dist/{dist-es-XKOZULQT.mjs → dist-es-76ZS5ZGX.mjs} +19 -19
  13. package/dist/{dist-es-HC7MGS4M.mjs → dist-es-DRC4RUDF.mjs} +18 -18
  14. package/dist/{dist-es-VFOQQKFA.mjs → dist-es-FTV27CJE.mjs} +3 -3
  15. package/dist/{dist-es-WSBAYZQI.mjs → dist-es-MVWFIO2N.mjs} +7 -7
  16. package/dist/{dist-es-DZIRR447.mjs → dist-es-PGBT2GSM.mjs} +27 -27
  17. package/dist/{dist-es-URIWYPPF.mjs → dist-es-TKQAVPOM.mjs} +12 -14
  18. package/dist/{dist-es-I6P57CZS.mjs → dist-es-X7XEFTLU.mjs} +7 -7
  19. package/dist/index.mjs +3 -3
  20. package/dist/{interactive-OHZFZVXH.mjs → interactive-TRUNJWJL.mjs} +1 -1
  21. package/dist/{loadSso-WA3733QO.mjs → loadSso-PADWQIUG.mjs} +109 -148
  22. package/dist/{signin-QNS25VI4.mjs → signin-4DZRTUJH.mjs} +123 -177
  23. package/dist/{sso-oidc-KJ5X6WUQ.mjs → sso-oidc-VICR4TNH.mjs} +111 -150
  24. package/dist/{sts-7OF5CJSW.mjs → sts-WJPOT3CH.mjs} +2853 -660
  25. package/package.json +1 -1
  26. package/dist/chunk-GXZPN42X.mjs +0 -178
  27. package/dist/event-streams-T3U3ZQLC.mjs +0 -247
@@ -3,21 +3,19 @@ import {
3
3
  loadConfig,
4
4
  memoize,
5
5
  parseUrl
6
- } from "./chunk-EHHAQWN3.mjs";
7
- import {
8
- CONFIG_PREFIX_SEPARATOR
9
- } from "./chunk-43COQWMG.mjs";
6
+ } from "./chunk-KHHYAMUK.mjs";
10
7
  import {
11
8
  HttpResponse,
12
9
  escapeUri,
13
10
  fromBase64,
14
11
  fromHex,
12
+ parseRfc7231DateTime,
15
13
  toBase64,
16
14
  toHex
17
- } from "./chunk-H7SOGPWV.mjs";
15
+ } from "./chunk-H57WOA7R.mjs";
18
16
  import {
19
17
  HttpRequest
20
- } from "./chunk-HDHAEUVR.mjs";
18
+ } from "./chunk-6E4PAXC5.mjs";
21
19
  import {
22
20
  fromArrayBuffer,
23
21
  fromString,
@@ -25,9 +23,15 @@ import {
25
23
  isArrayBuffer,
26
24
  toUtf8
27
25
  } from "./chunk-S6VA5TIO.mjs";
26
+ import {
27
+ CONFIG_PREFIX_SEPARATOR
28
+ } from "./chunk-HMKFI7SL.mjs";
28
29
  import {
29
30
  setCredentialFeature
30
- } from "./chunk-R7VCWGZ2.mjs";
31
+ } from "./chunk-CEE3Y7RM.mjs";
32
+ import {
33
+ ProviderError
34
+ } from "./chunk-AEKGTTWT.mjs";
31
35
  import {
32
36
  __publicField
33
37
  } from "./chunk-FFDYI4OH.mjs";
@@ -373,6 +377,166 @@ var deref = (schemaRef) => {
373
377
  return schemaRef;
374
378
  };
375
379
 
380
+ // ../node_modules/.bun/@smithy+protocol-http@5.3.14/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
381
+ var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
382
+ return {
383
+ setHttpHandler(handler) {
384
+ runtimeConfig.httpHandler = handler;
385
+ },
386
+ httpHandler() {
387
+ return runtimeConfig.httpHandler;
388
+ },
389
+ updateHttpClientConfig(key, value) {
390
+ runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
391
+ },
392
+ httpHandlerConfigs() {
393
+ return runtimeConfig.httpHandler.httpHandlerConfigs();
394
+ }
395
+ };
396
+ };
397
+ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
398
+ return {
399
+ httpHandler: httpHandlerExtensionConfiguration.httpHandler()
400
+ };
401
+ };
402
+
403
+ // ../node_modules/.bun/@smithy+util-middleware@4.2.14/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
404
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
405
+
406
+ // ../node_modules/.bun/@smithy+util-middleware@4.2.14/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
407
+ var normalizeProvider = (input) => {
408
+ if (typeof input === "function")
409
+ return input;
410
+ const promisified = Promise.resolve(input);
411
+ return () => promisified;
412
+ };
413
+
414
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
415
+ var operation = (namespace, name, traits, input, output) => ({
416
+ name,
417
+ namespace,
418
+ traits,
419
+ input,
420
+ output
421
+ });
422
+
423
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
424
+ var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
425
+ const { response } = await next(args);
426
+ const { operationSchema } = getSmithyContext(context);
427
+ const [, ns, n, t, i, o] = operationSchema ?? [];
428
+ try {
429
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
430
+ ...config,
431
+ ...context
432
+ }, response);
433
+ return {
434
+ response,
435
+ output: parsed
436
+ };
437
+ } catch (error) {
438
+ Object.defineProperty(error, "$response", {
439
+ value: response,
440
+ enumerable: false,
441
+ writable: false,
442
+ configurable: false
443
+ });
444
+ if (!("$metadata" in error)) {
445
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
446
+ try {
447
+ error.message += "\n " + hint;
448
+ } catch (e) {
449
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
450
+ console.warn(hint);
451
+ } else {
452
+ context.logger?.warn?.(hint);
453
+ }
454
+ }
455
+ if (typeof error.$responseBodyText !== "undefined") {
456
+ if (error.$response) {
457
+ error.$response.body = error.$responseBodyText;
458
+ }
459
+ }
460
+ try {
461
+ if (HttpResponse.isInstance(response)) {
462
+ const { headers = {} } = response;
463
+ const headerEntries = Object.entries(headers);
464
+ error.$metadata = {
465
+ httpStatusCode: response.statusCode,
466
+ requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
467
+ extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
468
+ cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
469
+ };
470
+ }
471
+ } catch (e) {
472
+ }
473
+ }
474
+ throw error;
475
+ }
476
+ };
477
+ var findHeader = (pattern, headers) => {
478
+ return (headers.find(([k]) => {
479
+ return k.match(pattern);
480
+ }) || [void 0, void 0])[1];
481
+ };
482
+
483
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js
484
+ var toEndpointV1 = (endpoint) => {
485
+ if (typeof endpoint === "object") {
486
+ if ("url" in endpoint) {
487
+ const v1Endpoint = parseUrl(endpoint.url);
488
+ if (endpoint.headers) {
489
+ v1Endpoint.headers = {};
490
+ for (const name in endpoint.headers) {
491
+ v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
492
+ }
493
+ }
494
+ return v1Endpoint;
495
+ }
496
+ return endpoint;
497
+ }
498
+ return parseUrl(endpoint);
499
+ };
500
+
501
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
502
+ var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
503
+ const { operationSchema } = getSmithyContext(context);
504
+ const [, ns, n, t, i, o] = operationSchema ?? [];
505
+ const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
506
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
507
+ ...config,
508
+ ...context,
509
+ endpoint
510
+ });
511
+ return next({
512
+ ...args,
513
+ request
514
+ });
515
+ };
516
+
517
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
518
+ var deserializerMiddlewareOption = {
519
+ name: "deserializerMiddleware",
520
+ step: "deserialize",
521
+ tags: ["DESERIALIZER"],
522
+ override: true
523
+ };
524
+ var serializerMiddlewareOption = {
525
+ name: "serializerMiddleware",
526
+ step: "serialize",
527
+ tags: ["SERIALIZER"],
528
+ override: true
529
+ };
530
+ function getSchemaSerdePlugin(config) {
531
+ return {
532
+ applyToStack: (commandStack) => {
533
+ commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
534
+ commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
535
+ config.protocol.setSerdeContext(config);
536
+ }
537
+ };
538
+ }
539
+
376
540
  // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
377
541
  var traitsCache = [];
378
542
  function translateTraits(indicator) {
@@ -684,6 +848,98 @@ function member(memberSchema, memberName) {
684
848
  var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
685
849
  var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
686
850
 
851
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
852
+ var _TypeRegistry = class _TypeRegistry {
853
+ constructor(namespace, schemas = /* @__PURE__ */ new Map(), exceptions = /* @__PURE__ */ new Map()) {
854
+ __publicField(this, "namespace");
855
+ __publicField(this, "schemas");
856
+ __publicField(this, "exceptions");
857
+ this.namespace = namespace;
858
+ this.schemas = schemas;
859
+ this.exceptions = exceptions;
860
+ }
861
+ static for(namespace) {
862
+ if (!_TypeRegistry.registries.has(namespace)) {
863
+ _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
864
+ }
865
+ return _TypeRegistry.registries.get(namespace);
866
+ }
867
+ copyFrom(other) {
868
+ const { schemas, exceptions } = this;
869
+ for (const [k, v] of other.schemas) {
870
+ if (!schemas.has(k)) {
871
+ schemas.set(k, v);
872
+ }
873
+ }
874
+ for (const [k, v] of other.exceptions) {
875
+ if (!exceptions.has(k)) {
876
+ exceptions.set(k, v);
877
+ }
878
+ }
879
+ }
880
+ register(shapeId, schema) {
881
+ const qualifiedName = this.normalizeShapeId(shapeId);
882
+ for (const r of [this, _TypeRegistry.for(qualifiedName.split("#")[0])]) {
883
+ r.schemas.set(qualifiedName, schema);
884
+ }
885
+ }
886
+ getSchema(shapeId) {
887
+ const id = this.normalizeShapeId(shapeId);
888
+ if (!this.schemas.has(id)) {
889
+ throw new Error(`@smithy/core/schema - schema not found for ${id}`);
890
+ }
891
+ return this.schemas.get(id);
892
+ }
893
+ registerError(es, ctor) {
894
+ const $error = es;
895
+ const ns = $error[1];
896
+ for (const r of [this, _TypeRegistry.for(ns)]) {
897
+ r.schemas.set(ns + "#" + $error[2], $error);
898
+ r.exceptions.set($error, ctor);
899
+ }
900
+ }
901
+ getErrorCtor(es) {
902
+ const $error = es;
903
+ if (this.exceptions.has($error)) {
904
+ return this.exceptions.get($error);
905
+ }
906
+ const registry = _TypeRegistry.for($error[1]);
907
+ return registry.exceptions.get($error);
908
+ }
909
+ getBaseException() {
910
+ for (const exceptionKey of this.exceptions.keys()) {
911
+ if (Array.isArray(exceptionKey)) {
912
+ const [, ns, name] = exceptionKey;
913
+ const id = ns + "#" + name;
914
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
915
+ return exceptionKey;
916
+ }
917
+ }
918
+ }
919
+ return void 0;
920
+ }
921
+ find(predicate) {
922
+ for (const schema of this.schemas.values()) {
923
+ if (predicate(schema)) {
924
+ return schema;
925
+ }
926
+ }
927
+ return void 0;
928
+ }
929
+ clear() {
930
+ this.schemas.clear();
931
+ this.exceptions.clear();
932
+ }
933
+ normalizeShapeId(shapeId) {
934
+ if (shapeId.includes("#")) {
935
+ return shapeId;
936
+ }
937
+ return this.namespace + "#" + shapeId;
938
+ }
939
+ };
940
+ __publicField(_TypeRegistry, "registries", /* @__PURE__ */ new Map());
941
+ var TypeRegistry = _TypeRegistry;
942
+
687
943
  // ../node_modules/.bun/@smithy+smithy-client@4.12.13/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
688
944
  var SENSITIVE_STRING = "***SensitiveInformation***";
689
945
  function schemaLogFilter(schema, data) {
@@ -707,9 +963,9 @@ function schemaLogFilter(schema, data) {
707
963
  } else if (ns.isStructSchema() && typeof data === "object") {
708
964
  const object = data;
709
965
  const newObject = {};
710
- for (const [member3, memberNs] of ns.structIterator()) {
711
- if (object[member3] != null) {
712
- newObject[member3] = schemaLogFilter(memberNs, object[member3]);
966
+ for (const [member2, memberNs] of ns.structIterator()) {
967
+ if (object[member2] != null) {
968
+ newObject[member2] = schemaLogFilter(memberNs, object[member2]);
713
969
  }
714
970
  }
715
971
  return newObject;
@@ -852,30 +1108,7 @@ var ClassBuilder = class {
852
1108
  }
853
1109
  };
854
1110
 
855
- // ../node_modules/.bun/@smithy+protocol-http@5.3.12/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
856
- var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
857
- return {
858
- setHttpHandler(handler) {
859
- runtimeConfig.httpHandler = handler;
860
- },
861
- httpHandler() {
862
- return runtimeConfig.httpHandler;
863
- },
864
- updateHttpClientConfig(key, value) {
865
- runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
866
- },
867
- httpHandlerConfigs() {
868
- return runtimeConfig.httpHandler.httpHandlerConfigs();
869
- }
870
- };
871
- };
872
- var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
873
- return {
874
- httpHandler: httpHandlerExtensionConfiguration.httpHandler()
875
- };
876
- };
877
-
878
- // ../node_modules/.bun/@aws-sdk+middleware-host-header@3.972.8/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
1111
+ // ../node_modules/.bun/@aws-sdk+middleware-host-header@3.972.10/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
879
1112
  function resolveHostHeaderConfig(input) {
880
1113
  return input;
881
1114
  }
@@ -908,7 +1141,7 @@ var getHostHeaderPlugin = (options) => ({
908
1141
  }
909
1142
  });
910
1143
 
911
- // ../node_modules/.bun/@aws-sdk+middleware-logger@3.972.8/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
1144
+ // ../node_modules/.bun/@aws-sdk+middleware-logger@3.972.10/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
912
1145
  var loggerMiddleware = () => (next, context) => async (args) => {
913
1146
  try {
914
1147
  const response = await next(args);
@@ -951,7 +1184,7 @@ var getLoggerPlugin = (options) => ({
951
1184
  }
952
1185
  });
953
1186
 
954
- // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.9/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js
1187
+ // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.11/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js
955
1188
  var recursionDetectionMiddlewareOptions = {
956
1189
  step: "build",
957
1190
  tags: ["RECURSION_DETECTION"],
@@ -1077,7 +1310,7 @@ var InvokeStore;
1077
1310
  } : void 0;
1078
1311
  })(InvokeStore || (InvokeStore = {}));
1079
1312
 
1080
- // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.9/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js
1313
+ // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.11/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js
1081
1314
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
1082
1315
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
1083
1316
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
@@ -1105,7 +1338,7 @@ var recursionDetectionMiddleware = () => (next) => async (args) => {
1105
1338
  });
1106
1339
  };
1107
1340
 
1108
- // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.9/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js
1341
+ // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.11/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js
1109
1342
  var getRecursionDetectionPlugin = (options) => ({
1110
1343
  applyToStack: (clientStack) => {
1111
1344
  clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
@@ -1159,18 +1392,7 @@ var decorateServiceException = (exception, additions = {}) => {
1159
1392
  return exception;
1160
1393
  };
1161
1394
 
1162
- // ../node_modules/.bun/@smithy+util-middleware@4.2.12/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
1163
- var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
1164
-
1165
- // ../node_modules/.bun/@smithy+util-middleware@4.2.12/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
1166
- var normalizeProvider = (input) => {
1167
- if (typeof input === "function")
1168
- return input;
1169
- const promisified = Promise.resolve(input);
1170
- return () => promisified;
1171
- };
1172
-
1173
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
1395
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
1174
1396
  var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
1175
1397
  if (!authSchemePreference || authSchemePreference.length === 0) {
1176
1398
  return candidateAuthOptions;
@@ -1178,727 +1400,196 @@ var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
1178
1400
  const preferredAuthOptions = [];
1179
1401
  for (const preferredSchemeName of authSchemePreference) {
1180
1402
  for (const candidateAuthOption of candidateAuthOptions) {
1181
- const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1];
1182
- if (candidateAuthSchemeName === preferredSchemeName) {
1183
- preferredAuthOptions.push(candidateAuthOption);
1184
- }
1185
- }
1186
- }
1187
- for (const candidateAuthOption of candidateAuthOptions) {
1188
- if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) {
1189
- preferredAuthOptions.push(candidateAuthOption);
1190
- }
1191
- }
1192
- return preferredAuthOptions;
1193
- };
1194
-
1195
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
1196
- function convertHttpAuthSchemesToMap(httpAuthSchemes) {
1197
- const map = /* @__PURE__ */ new Map();
1198
- for (const scheme of httpAuthSchemes) {
1199
- map.set(scheme.schemeId, scheme);
1200
- }
1201
- return map;
1202
- }
1203
- var httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => {
1204
- const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input));
1205
- const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
1206
- const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
1207
- const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
1208
- const smithyContext = getSmithyContext(context);
1209
- const failureReasons = [];
1210
- for (const option of resolvedOptions) {
1211
- const scheme = authSchemes.get(option.schemeId);
1212
- if (!scheme) {
1213
- failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
1214
- continue;
1215
- }
1216
- const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
1217
- if (!identityProvider) {
1218
- failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
1219
- continue;
1220
- }
1221
- const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
1222
- option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
1223
- option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
1224
- smithyContext.selectedHttpAuthScheme = {
1225
- httpAuthOption: option,
1226
- identity: await identityProvider(option.identityProperties),
1227
- signer: scheme.signer
1228
- };
1229
- break;
1230
- }
1231
- if (!smithyContext.selectedHttpAuthScheme) {
1232
- throw new Error(failureReasons.join("\n"));
1233
- }
1234
- return next(args);
1235
- };
1236
-
1237
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
1238
- var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
1239
- step: "serialize",
1240
- tags: ["HTTP_AUTH_SCHEME"],
1241
- name: "httpAuthSchemeMiddleware",
1242
- override: true,
1243
- relation: "before",
1244
- toMiddleware: "endpointV2Middleware"
1245
- };
1246
- var getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({
1247
- applyToStack: (clientStack) => {
1248
- clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
1249
- httpAuthSchemeParametersProvider,
1250
- identityProviderConfigProvider
1251
- }), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
1252
- }
1253
- });
1254
-
1255
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
1256
- var defaultErrorHandler = (signingProperties) => (error) => {
1257
- throw error;
1258
- };
1259
- var defaultSuccessHandler = (httpResponse, signingProperties) => {
1260
- };
1261
- var httpSigningMiddleware = (config) => (next, context) => async (args) => {
1262
- if (!HttpRequest.isInstance(args.request)) {
1263
- return next(args);
1264
- }
1265
- const smithyContext = getSmithyContext(context);
1266
- const scheme = smithyContext.selectedHttpAuthScheme;
1267
- if (!scheme) {
1268
- throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
1269
- }
1270
- const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
1271
- const output = await next({
1272
- ...args,
1273
- request: await signer.sign(args.request, identity, signingProperties)
1274
- }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
1275
- (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
1276
- return output;
1277
- };
1278
-
1279
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
1280
- var httpSigningMiddlewareOptions = {
1281
- step: "finalizeRequest",
1282
- tags: ["HTTP_SIGNING"],
1283
- name: "httpSigningMiddleware",
1284
- aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"],
1285
- override: true,
1286
- relation: "after",
1287
- toMiddleware: "retryMiddleware"
1288
- };
1289
- var getHttpSigningPlugin = (config) => ({
1290
- applyToStack: (clientStack) => {
1291
- clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
1292
- }
1293
- });
1294
-
1295
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
1296
- var operation = (namespace, name, traits, input, output) => ({
1297
- name,
1298
- namespace,
1299
- traits,
1300
- input,
1301
- output
1302
- });
1303
-
1304
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
1305
- var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
1306
- const { response } = await next(args);
1307
- const { operationSchema } = getSmithyContext(context);
1308
- const [, ns, n, t, i, o] = operationSchema ?? [];
1309
- try {
1310
- const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
1311
- ...config,
1312
- ...context
1313
- }, response);
1314
- return {
1315
- response,
1316
- output: parsed
1317
- };
1318
- } catch (error) {
1319
- Object.defineProperty(error, "$response", {
1320
- value: response,
1321
- enumerable: false,
1322
- writable: false,
1323
- configurable: false
1324
- });
1325
- if (!("$metadata" in error)) {
1326
- const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
1327
- try {
1328
- error.message += "\n " + hint;
1329
- } catch (e) {
1330
- if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
1331
- console.warn(hint);
1332
- } else {
1333
- context.logger?.warn?.(hint);
1334
- }
1335
- }
1336
- if (typeof error.$responseBodyText !== "undefined") {
1337
- if (error.$response) {
1338
- error.$response.body = error.$responseBodyText;
1339
- }
1340
- }
1341
- try {
1342
- if (HttpResponse.isInstance(response)) {
1343
- const { headers = {} } = response;
1344
- const headerEntries = Object.entries(headers);
1345
- error.$metadata = {
1346
- httpStatusCode: response.statusCode,
1347
- requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
1348
- extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
1349
- cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
1350
- };
1351
- }
1352
- } catch (e) {
1353
- }
1354
- }
1355
- throw error;
1356
- }
1357
- };
1358
- var findHeader = (pattern, headers) => {
1359
- return (headers.find(([k]) => {
1360
- return k.match(pattern);
1361
- }) || [void 0, void 0])[1];
1362
- };
1363
-
1364
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js
1365
- var toEndpointV1 = (endpoint) => {
1366
- if (typeof endpoint === "object") {
1367
- if ("url" in endpoint) {
1368
- const v1Endpoint = parseUrl(endpoint.url);
1369
- if (endpoint.headers) {
1370
- v1Endpoint.headers = {};
1371
- for (const [name, values] of Object.entries(endpoint.headers)) {
1372
- v1Endpoint.headers[name.toLowerCase()] = values.join(", ");
1373
- }
1374
- }
1375
- return v1Endpoint;
1376
- }
1377
- return endpoint;
1378
- }
1379
- return parseUrl(endpoint);
1380
- };
1381
-
1382
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
1383
- var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
1384
- const { operationSchema } = getSmithyContext(context);
1385
- const [, ns, n, t, i, o] = operationSchema ?? [];
1386
- const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
1387
- const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
1388
- ...config,
1389
- ...context,
1390
- endpoint
1391
- });
1392
- return next({
1393
- ...args,
1394
- request
1395
- });
1396
- };
1397
-
1398
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
1399
- var deserializerMiddlewareOption = {
1400
- name: "deserializerMiddleware",
1401
- step: "deserialize",
1402
- tags: ["DESERIALIZER"],
1403
- override: true
1404
- };
1405
- var serializerMiddlewareOption = {
1406
- name: "serializerMiddleware",
1407
- step: "serialize",
1408
- tags: ["SERIALIZER"],
1409
- override: true
1410
- };
1411
- function getSchemaSerdePlugin(config) {
1412
- return {
1413
- applyToStack: (commandStack) => {
1414
- commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
1415
- commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
1416
- config.protocol.setSerdeContext(config);
1417
- }
1418
- };
1419
- }
1420
-
1421
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
1422
- var _TypeRegistry = class _TypeRegistry {
1423
- constructor(namespace, schemas = /* @__PURE__ */ new Map(), exceptions = /* @__PURE__ */ new Map()) {
1424
- __publicField(this, "namespace");
1425
- __publicField(this, "schemas");
1426
- __publicField(this, "exceptions");
1427
- this.namespace = namespace;
1428
- this.schemas = schemas;
1429
- this.exceptions = exceptions;
1430
- }
1431
- static for(namespace) {
1432
- if (!_TypeRegistry.registries.has(namespace)) {
1433
- _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
1434
- }
1435
- return _TypeRegistry.registries.get(namespace);
1436
- }
1437
- copyFrom(other) {
1438
- const { schemas, exceptions } = this;
1439
- for (const [k, v] of other.schemas) {
1440
- if (!schemas.has(k)) {
1441
- schemas.set(k, v);
1442
- }
1443
- }
1444
- for (const [k, v] of other.exceptions) {
1445
- if (!exceptions.has(k)) {
1446
- exceptions.set(k, v);
1447
- }
1448
- }
1449
- }
1450
- register(shapeId, schema) {
1451
- const qualifiedName = this.normalizeShapeId(shapeId);
1452
- for (const r of [this, _TypeRegistry.for(qualifiedName.split("#")[0])]) {
1453
- r.schemas.set(qualifiedName, schema);
1454
- }
1455
- }
1456
- getSchema(shapeId) {
1457
- const id = this.normalizeShapeId(shapeId);
1458
- if (!this.schemas.has(id)) {
1459
- throw new Error(`@smithy/core/schema - schema not found for ${id}`);
1460
- }
1461
- return this.schemas.get(id);
1462
- }
1463
- registerError(es, ctor) {
1464
- const $error = es;
1465
- const ns = $error[1];
1466
- for (const r of [this, _TypeRegistry.for(ns)]) {
1467
- r.schemas.set(ns + "#" + $error[2], $error);
1468
- r.exceptions.set($error, ctor);
1469
- }
1470
- }
1471
- getErrorCtor(es) {
1472
- const $error = es;
1473
- if (this.exceptions.has($error)) {
1474
- return this.exceptions.get($error);
1475
- }
1476
- const registry = _TypeRegistry.for($error[1]);
1477
- return registry.exceptions.get($error);
1478
- }
1479
- getBaseException() {
1480
- for (const exceptionKey of this.exceptions.keys()) {
1481
- if (Array.isArray(exceptionKey)) {
1482
- const [, ns, name] = exceptionKey;
1483
- const id = ns + "#" + name;
1484
- if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
1485
- return exceptionKey;
1486
- }
1487
- }
1488
- }
1489
- return void 0;
1490
- }
1491
- find(predicate) {
1492
- return [...this.schemas.values()].find(predicate);
1493
- }
1494
- clear() {
1495
- this.schemas.clear();
1496
- this.exceptions.clear();
1497
- }
1498
- normalizeShapeId(shapeId) {
1499
- if (shapeId.includes("#")) {
1500
- return shapeId;
1501
- }
1502
- return this.namespace + "#" + shapeId;
1503
- }
1504
- };
1505
- __publicField(_TypeRegistry, "registries", /* @__PURE__ */ new Map());
1506
- var TypeRegistry = _TypeRegistry;
1507
-
1508
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
1509
- var DefaultIdentityProviderConfig = class {
1510
- constructor(config) {
1511
- __publicField(this, "authSchemes", /* @__PURE__ */ new Map());
1512
- for (const [key, value] of Object.entries(config)) {
1513
- if (value !== void 0) {
1514
- this.authSchemes.set(key, value);
1515
- }
1516
- }
1517
- }
1518
- getIdentityProvider(schemeId) {
1519
- return this.authSchemes.get(schemeId);
1520
- }
1521
- };
1522
-
1523
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/normalizeProvider.js
1524
- var normalizeProvider2 = (input) => {
1525
- if (typeof input === "function")
1526
- return input;
1527
- const promisified = Promise.resolve(input);
1528
- return () => promisified;
1529
- };
1530
-
1531
- // ../node_modules/.bun/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
1532
- var toUint8Array = (data) => {
1533
- if (typeof data === "string") {
1534
- return fromUtf8(data);
1535
- }
1536
- if (ArrayBuffer.isView(data)) {
1537
- return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1538
- }
1539
- return new Uint8Array(data);
1540
- };
1541
-
1542
- // ../node_modules/.bun/@smithy+util-stream@4.5.21/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
1543
- var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
1544
- static fromString(source, encoding = "utf-8") {
1545
- if (typeof source === "string") {
1546
- if (encoding === "base64") {
1547
- return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
1548
- }
1549
- return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
1550
- }
1551
- throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
1552
- }
1553
- static mutate(source) {
1554
- Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
1555
- return source;
1556
- }
1557
- transformToString(encoding = "utf-8") {
1558
- if (encoding === "base64") {
1559
- return toBase64(this);
1560
- }
1561
- return toUtf8(this);
1562
- }
1563
- };
1564
-
1565
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
1566
- var collectBody = async (streamBody = new Uint8Array(), context) => {
1567
- if (streamBody instanceof Uint8Array) {
1568
- return Uint8ArrayBlobAdapter.mutate(streamBody);
1569
- }
1570
- if (!streamBody) {
1571
- return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
1572
- }
1573
- const fromContext = context.streamCollector(streamBody);
1574
- return Uint8ArrayBlobAdapter.mutate(await fromContext);
1575
- };
1576
-
1577
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
1578
- function extendedEncodeURIComponent(str) {
1579
- return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
1580
- return "%" + c.charCodeAt(0).toString(16).toUpperCase();
1581
- });
1582
- }
1583
-
1584
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/deref.js
1585
- var deref2 = (schemaRef) => {
1586
- if (typeof schemaRef === "function") {
1587
- return schemaRef();
1588
- }
1589
- return schemaRef;
1590
- };
1591
-
1592
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
1593
- var traitsCache2 = [];
1594
- function translateTraits2(indicator) {
1595
- if (typeof indicator === "object") {
1596
- return indicator;
1597
- }
1598
- indicator = indicator | 0;
1599
- if (traitsCache2[indicator]) {
1600
- return traitsCache2[indicator];
1601
- }
1602
- const traits = {};
1603
- let i = 0;
1604
- for (const trait of [
1605
- "httpLabel",
1606
- "idempotent",
1607
- "idempotencyToken",
1608
- "sensitive",
1609
- "httpPayload",
1610
- "httpResponseCode",
1611
- "httpQueryParams"
1612
- ]) {
1613
- if ((indicator >> i++ & 1) === 1) {
1614
- traits[trait] = 1;
1615
- }
1616
- }
1617
- return traitsCache2[indicator] = traits;
1618
- }
1619
-
1620
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
1621
- var anno2 = {
1622
- it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it"),
1623
- ns: /* @__PURE__ */ Symbol.for("@smithy/ns")
1624
- };
1625
- var simpleSchemaCacheN2 = [];
1626
- var simpleSchemaCacheS2 = {};
1627
- var _NormalizedSchema2 = class _NormalizedSchema2 {
1628
- constructor(ref, memberName) {
1629
- __publicField(this, "ref");
1630
- __publicField(this, "memberName");
1631
- __publicField(this, "symbol", _NormalizedSchema2.symbol);
1632
- __publicField(this, "name");
1633
- __publicField(this, "schema");
1634
- __publicField(this, "_isMemberSchema");
1635
- __publicField(this, "traits");
1636
- __publicField(this, "memberTraits");
1637
- __publicField(this, "normalizedTraits");
1638
- this.ref = ref;
1639
- this.memberName = memberName;
1640
- const traitStack = [];
1641
- let _ref = ref;
1642
- let schema = ref;
1643
- this._isMemberSchema = false;
1644
- while (isMemberSchema2(_ref)) {
1645
- traitStack.push(_ref[1]);
1646
- _ref = _ref[0];
1647
- schema = deref2(_ref);
1648
- this._isMemberSchema = true;
1649
- }
1650
- if (traitStack.length > 0) {
1651
- this.memberTraits = {};
1652
- for (let i = traitStack.length - 1; i >= 0; --i) {
1653
- const traitSet = traitStack[i];
1654
- Object.assign(this.memberTraits, translateTraits2(traitSet));
1655
- }
1656
- } else {
1657
- this.memberTraits = 0;
1658
- }
1659
- if (schema instanceof _NormalizedSchema2) {
1660
- const computedMemberTraits = this.memberTraits;
1661
- Object.assign(this, schema);
1662
- this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
1663
- this.normalizedTraits = void 0;
1664
- this.memberName = memberName ?? schema.memberName;
1665
- return;
1666
- }
1667
- this.schema = deref2(schema);
1668
- if (isStaticSchema2(this.schema)) {
1669
- this.name = `${this.schema[1]}#${this.schema[2]}`;
1670
- this.traits = this.schema[3];
1671
- } else {
1672
- this.name = this.memberName ?? String(schema);
1673
- this.traits = 0;
1674
- }
1675
- if (this._isMemberSchema && !memberName) {
1676
- throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
1677
- }
1678
- }
1679
- static [Symbol.hasInstance](lhs) {
1680
- const isPrototype = this.prototype.isPrototypeOf(lhs);
1681
- if (!isPrototype && typeof lhs === "object" && lhs !== null) {
1682
- const ns = lhs;
1683
- return ns.symbol === this.symbol;
1684
- }
1685
- return isPrototype;
1686
- }
1687
- static of(ref) {
1688
- const keyAble = typeof ref === "function" || typeof ref === "object" && ref !== null;
1689
- if (typeof ref === "number") {
1690
- if (simpleSchemaCacheN2[ref]) {
1691
- return simpleSchemaCacheN2[ref];
1692
- }
1693
- } else if (typeof ref === "string") {
1694
- if (simpleSchemaCacheS2[ref]) {
1695
- return simpleSchemaCacheS2[ref];
1696
- }
1697
- } else if (keyAble) {
1698
- if (ref[anno2.ns]) {
1699
- return ref[anno2.ns];
1700
- }
1701
- }
1702
- const sc = deref2(ref);
1703
- if (sc instanceof _NormalizedSchema2) {
1704
- return sc;
1705
- }
1706
- if (isMemberSchema2(sc)) {
1707
- const [ns2, traits] = sc;
1708
- if (ns2 instanceof _NormalizedSchema2) {
1709
- Object.assign(ns2.getMergedTraits(), translateTraits2(traits));
1710
- return ns2;
1711
- }
1712
- throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
1713
- }
1714
- const ns = new _NormalizedSchema2(sc);
1715
- if (keyAble) {
1716
- return ref[anno2.ns] = ns;
1717
- }
1718
- if (typeof sc === "string") {
1719
- return simpleSchemaCacheS2[sc] = ns;
1720
- }
1721
- if (typeof sc === "number") {
1722
- return simpleSchemaCacheN2[sc] = ns;
1723
- }
1724
- return ns;
1725
- }
1726
- getSchema() {
1727
- const sc = this.schema;
1728
- if (Array.isArray(sc) && sc[0] === 0) {
1729
- return sc[4];
1730
- }
1731
- return sc;
1732
- }
1733
- getName(withNamespace = false) {
1734
- const { name } = this;
1735
- const short = !withNamespace && name && name.includes("#");
1736
- return short ? name.split("#")[1] : name || void 0;
1737
- }
1738
- getMemberName() {
1739
- return this.memberName;
1740
- }
1741
- isMemberSchema() {
1742
- return this._isMemberSchema;
1743
- }
1744
- isListSchema() {
1745
- const sc = this.getSchema();
1746
- return typeof sc === "number" ? sc >= 64 && sc < 128 : sc[0] === 1;
1747
- }
1748
- isMapSchema() {
1749
- const sc = this.getSchema();
1750
- return typeof sc === "number" ? sc >= 128 && sc <= 255 : sc[0] === 2;
1751
- }
1752
- isStructSchema() {
1753
- const sc = this.getSchema();
1754
- if (typeof sc !== "object") {
1755
- return false;
1756
- }
1757
- const id = sc[0];
1758
- return id === 3 || id === -3 || id === 4;
1759
- }
1760
- isUnionSchema() {
1761
- const sc = this.getSchema();
1762
- if (typeof sc !== "object") {
1763
- return false;
1764
- }
1765
- return sc[0] === 4;
1766
- }
1767
- isBlobSchema() {
1768
- const sc = this.getSchema();
1769
- return sc === 21 || sc === 42;
1770
- }
1771
- isTimestampSchema() {
1772
- const sc = this.getSchema();
1773
- return typeof sc === "number" && sc >= 4 && sc <= 7;
1774
- }
1775
- isUnitSchema() {
1776
- return this.getSchema() === "unit";
1777
- }
1778
- isDocumentSchema() {
1779
- return this.getSchema() === 15;
1780
- }
1781
- isStringSchema() {
1782
- return this.getSchema() === 0;
1783
- }
1784
- isBooleanSchema() {
1785
- return this.getSchema() === 2;
1403
+ const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1];
1404
+ if (candidateAuthSchemeName === preferredSchemeName) {
1405
+ preferredAuthOptions.push(candidateAuthOption);
1406
+ }
1407
+ }
1786
1408
  }
1787
- isNumericSchema() {
1788
- return this.getSchema() === 1;
1409
+ for (const candidateAuthOption of candidateAuthOptions) {
1410
+ if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) {
1411
+ preferredAuthOptions.push(candidateAuthOption);
1412
+ }
1789
1413
  }
1790
- isBigIntegerSchema() {
1791
- return this.getSchema() === 17;
1414
+ return preferredAuthOptions;
1415
+ };
1416
+
1417
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
1418
+ function convertHttpAuthSchemesToMap(httpAuthSchemes) {
1419
+ const map = /* @__PURE__ */ new Map();
1420
+ for (const scheme of httpAuthSchemes) {
1421
+ map.set(scheme.schemeId, scheme);
1792
1422
  }
1793
- isBigDecimalSchema() {
1794
- return this.getSchema() === 19;
1423
+ return map;
1424
+ }
1425
+ var httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => {
1426
+ const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input));
1427
+ const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
1428
+ const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
1429
+ const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
1430
+ const smithyContext = getSmithyContext(context);
1431
+ const failureReasons = [];
1432
+ for (const option of resolvedOptions) {
1433
+ const scheme = authSchemes.get(option.schemeId);
1434
+ if (!scheme) {
1435
+ failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
1436
+ continue;
1437
+ }
1438
+ const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
1439
+ if (!identityProvider) {
1440
+ failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
1441
+ continue;
1442
+ }
1443
+ const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
1444
+ option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
1445
+ option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
1446
+ smithyContext.selectedHttpAuthScheme = {
1447
+ httpAuthOption: option,
1448
+ identity: await identityProvider(option.identityProperties),
1449
+ signer: scheme.signer
1450
+ };
1451
+ break;
1795
1452
  }
1796
- isStreaming() {
1797
- const { streaming } = this.getMergedTraits();
1798
- return !!streaming || this.getSchema() === 42;
1453
+ if (!smithyContext.selectedHttpAuthScheme) {
1454
+ throw new Error(failureReasons.join("\n"));
1799
1455
  }
1800
- isIdempotencyToken() {
1801
- return !!this.getMergedTraits().idempotencyToken;
1456
+ return next(args);
1457
+ };
1458
+
1459
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
1460
+ var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
1461
+ step: "serialize",
1462
+ tags: ["HTTP_AUTH_SCHEME"],
1463
+ name: "httpAuthSchemeMiddleware",
1464
+ override: true,
1465
+ relation: "before",
1466
+ toMiddleware: "endpointV2Middleware"
1467
+ };
1468
+ var getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({
1469
+ applyToStack: (clientStack) => {
1470
+ clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
1471
+ httpAuthSchemeParametersProvider,
1472
+ identityProviderConfigProvider
1473
+ }), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
1802
1474
  }
1803
- getMergedTraits() {
1804
- return this.normalizedTraits ?? (this.normalizedTraits = {
1805
- ...this.getOwnTraits(),
1806
- ...this.getMemberTraits()
1807
- });
1475
+ });
1476
+
1477
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
1478
+ var defaultErrorHandler = (signingProperties) => (error) => {
1479
+ throw error;
1480
+ };
1481
+ var defaultSuccessHandler = (httpResponse, signingProperties) => {
1482
+ };
1483
+ var httpSigningMiddleware = (config) => (next, context) => async (args) => {
1484
+ if (!HttpRequest.isInstance(args.request)) {
1485
+ return next(args);
1808
1486
  }
1809
- getMemberTraits() {
1810
- return translateTraits2(this.memberTraits);
1487
+ const smithyContext = getSmithyContext(context);
1488
+ const scheme = smithyContext.selectedHttpAuthScheme;
1489
+ if (!scheme) {
1490
+ throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
1811
1491
  }
1812
- getOwnTraits() {
1813
- return translateTraits2(this.traits);
1492
+ const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
1493
+ const output = await next({
1494
+ ...args,
1495
+ request: await signer.sign(args.request, identity, signingProperties)
1496
+ }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
1497
+ (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
1498
+ return output;
1499
+ };
1500
+
1501
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
1502
+ var httpSigningMiddlewareOptions = {
1503
+ step: "finalizeRequest",
1504
+ tags: ["HTTP_SIGNING"],
1505
+ name: "httpSigningMiddleware",
1506
+ aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"],
1507
+ override: true,
1508
+ relation: "after",
1509
+ toMiddleware: "retryMiddleware"
1510
+ };
1511
+ var getHttpSigningPlugin = (config) => ({
1512
+ applyToStack: (clientStack) => {
1513
+ clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
1814
1514
  }
1815
- getKeySchema() {
1816
- const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
1817
- if (!isDoc && !isMap) {
1818
- throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
1515
+ });
1516
+
1517
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
1518
+ var DefaultIdentityProviderConfig = class {
1519
+ constructor(config) {
1520
+ __publicField(this, "authSchemes", /* @__PURE__ */ new Map());
1521
+ for (const key in config) {
1522
+ const value = config[key];
1523
+ if (value !== void 0) {
1524
+ this.authSchemes.set(key, value);
1525
+ }
1819
1526
  }
1820
- const schema = this.getSchema();
1821
- const memberSchema = isDoc ? 15 : schema[4] ?? 0;
1822
- return member2([memberSchema, 0], "key");
1823
1527
  }
1824
- getValueSchema() {
1825
- const sc = this.getSchema();
1826
- const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
1827
- const memberSchema = typeof sc === "number" ? 63 & sc : sc && typeof sc === "object" && (isMap || isList) ? sc[3 + sc[0]] : isDoc ? 15 : void 0;
1828
- if (memberSchema != null) {
1829
- return member2([memberSchema, 0], isMap ? "value" : "member");
1830
- }
1831
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
1528
+ getIdentityProvider(schemeId) {
1529
+ return this.authSchemes.get(schemeId);
1832
1530
  }
1833
- getMemberSchema(memberName) {
1834
- const struct = this.getSchema();
1835
- if (this.isStructSchema() && struct[4].includes(memberName)) {
1836
- const i = struct[4].indexOf(memberName);
1837
- const memberSchema = struct[5][i];
1838
- return member2(isMemberSchema2(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
1839
- }
1840
- if (this.isDocumentSchema()) {
1841
- return member2([15, 0], memberName);
1842
- }
1843
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
1531
+ };
1532
+
1533
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/normalizeProvider.js
1534
+ var normalizeProvider2 = (input) => {
1535
+ if (typeof input === "function")
1536
+ return input;
1537
+ const promisified = Promise.resolve(input);
1538
+ return () => promisified;
1539
+ };
1540
+
1541
+ // ../node_modules/.bun/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
1542
+ var toUint8Array = (data) => {
1543
+ if (typeof data === "string") {
1544
+ return fromUtf8(data);
1844
1545
  }
1845
- getMemberSchemas() {
1846
- const buffer = {};
1847
- try {
1848
- for (const [k, v] of this.structIterator()) {
1849
- buffer[k] = v;
1850
- }
1851
- } catch (ignored) {
1852
- }
1853
- return buffer;
1546
+ if (ArrayBuffer.isView(data)) {
1547
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1854
1548
  }
1855
- getEventStreamMember() {
1856
- if (this.isStructSchema()) {
1857
- for (const [memberName, memberSchema] of this.structIterator()) {
1858
- if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
1859
- return memberName;
1860
- }
1549
+ return new Uint8Array(data);
1550
+ };
1551
+
1552
+ // ../node_modules/.bun/@smithy+util-stream@4.5.25/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
1553
+ var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
1554
+ static fromString(source, encoding = "utf-8") {
1555
+ if (typeof source === "string") {
1556
+ if (encoding === "base64") {
1557
+ return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
1861
1558
  }
1559
+ return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
1862
1560
  }
1863
- return "";
1561
+ throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
1864
1562
  }
1865
- *structIterator() {
1866
- if (this.isUnitSchema()) {
1867
- return;
1868
- }
1869
- if (!this.isStructSchema()) {
1870
- throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
1871
- }
1872
- const struct = this.getSchema();
1873
- const z = struct[4].length;
1874
- let it = struct[anno2.it];
1875
- if (it && z === it.length) {
1876
- yield* it;
1877
- return;
1878
- }
1879
- it = Array(z);
1880
- for (let i = 0; i < z; ++i) {
1881
- const k = struct[4][i];
1882
- const v = member2([struct[5][i], 0], k);
1883
- yield it[i] = [k, v];
1563
+ static mutate(source) {
1564
+ Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
1565
+ return source;
1566
+ }
1567
+ transformToString(encoding = "utf-8") {
1568
+ if (encoding === "base64") {
1569
+ return toBase64(this);
1884
1570
  }
1885
- struct[anno2.it] = it;
1571
+ return toUtf8(this);
1886
1572
  }
1887
1573
  };
1888
- __publicField(_NormalizedSchema2, "symbol", /* @__PURE__ */ Symbol.for("@smithy/nor"));
1889
- var NormalizedSchema2 = _NormalizedSchema2;
1890
- function member2(memberSchema, memberName) {
1891
- if (memberSchema instanceof NormalizedSchema2) {
1892
- return Object.assign(memberSchema, {
1893
- memberName,
1894
- _isMemberSchema: true
1895
- });
1574
+
1575
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
1576
+ var collectBody = async (streamBody = new Uint8Array(), context) => {
1577
+ if (streamBody instanceof Uint8Array) {
1578
+ return Uint8ArrayBlobAdapter.mutate(streamBody);
1896
1579
  }
1897
- const internalCtorAccess = NormalizedSchema2;
1898
- return new internalCtorAccess(memberSchema, memberName);
1580
+ if (!streamBody) {
1581
+ return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
1582
+ }
1583
+ const fromContext = context.streamCollector(streamBody);
1584
+ return Uint8ArrayBlobAdapter.mutate(await fromContext);
1585
+ };
1586
+
1587
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
1588
+ function extendedEncodeURIComponent(str) {
1589
+ return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
1590
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
1591
+ });
1899
1592
  }
1900
- var isMemberSchema2 = (sc) => Array.isArray(sc) && sc.length === 2;
1901
- var isStaticSchema2 = (sc) => Array.isArray(sc) && sc.length >= 5;
1902
1593
 
1903
1594
  // ../node_modules/.bun/@smithy+uuid@1.1.2/node_modules/@smithy/uuid/dist-es/randomUUID.js
1904
1595
  import crypto2 from "crypto";
@@ -1917,7 +1608,7 @@ var v4 = () => {
1917
1608
  return decimalToHex[rnds[0]] + decimalToHex[rnds[1]] + decimalToHex[rnds[2]] + decimalToHex[rnds[3]] + "-" + decimalToHex[rnds[4]] + decimalToHex[rnds[5]] + "-" + decimalToHex[rnds[6]] + decimalToHex[rnds[7]] + "-" + decimalToHex[rnds[8]] + decimalToHex[rnds[9]] + "-" + decimalToHex[rnds[10]] + decimalToHex[rnds[11]] + decimalToHex[rnds[12]] + decimalToHex[rnds[13]] + decimalToHex[rnds[14]] + decimalToHex[rnds[15]];
1918
1609
  };
1919
1610
 
1920
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js
1611
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js
1921
1612
  var LazyJsonString = function LazyJsonString2(val) {
1922
1613
  const str = Object.assign(new String(val), {
1923
1614
  deserializeJSON() {
@@ -1942,7 +1633,7 @@ LazyJsonString.from = (object) => {
1942
1633
  };
1943
1634
  LazyJsonString.fromObject = LazyJsonString.from;
1944
1635
 
1945
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js
1636
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js
1946
1637
  var ddd = `(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;
1947
1638
  var mmm = `(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;
1948
1639
  var time = `(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;
@@ -2041,7 +1732,7 @@ function range(v, min, max) {
2041
1732
  }
2042
1733
  }
2043
1734
 
2044
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js
1735
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js
2045
1736
  var splitHeader = (value) => {
2046
1737
  const z = value.length;
2047
1738
  const values = [];
@@ -2080,7 +1771,7 @@ var splitHeader = (value) => {
2080
1771
  });
2081
1772
  };
2082
1773
 
2083
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js
1774
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js
2084
1775
  var format = /^-?\d*(\.\d+)?$/;
2085
1776
  var NumericValue = class _NumericValue {
2086
1777
  constructor(string, type) {
@@ -2104,7 +1795,7 @@ var NumericValue = class _NumericValue {
2104
1795
  }
2105
1796
  };
2106
1797
 
2107
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
1798
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
2108
1799
  var SerdeContext = class {
2109
1800
  constructor() {
2110
1801
  __publicField(this, "serdeContext");
@@ -2114,7 +1805,7 @@ var SerdeContext = class {
2114
1805
  }
2115
1806
  };
2116
1807
 
2117
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
1808
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
2118
1809
  var HttpProtocol = class extends SerdeContext {
2119
1810
  constructor(options) {
2120
1811
  super();
@@ -2156,8 +1847,8 @@ var HttpProtocol = class extends SerdeContext {
2156
1847
  request.query[k] = v;
2157
1848
  }
2158
1849
  if (endpoint.headers) {
2159
- for (const [name, values] of Object.entries(endpoint.headers)) {
2160
- request.headers[name] = values.join(", ");
1850
+ for (const name in endpoint.headers) {
1851
+ request.headers[name] = endpoint.headers[name].join(", ");
2161
1852
  }
2162
1853
  }
2163
1854
  return request;
@@ -2170,8 +1861,8 @@ var HttpProtocol = class extends SerdeContext {
2170
1861
  ...endpoint.query
2171
1862
  };
2172
1863
  if (endpoint.headers) {
2173
- for (const [name, value] of Object.entries(endpoint.headers)) {
2174
- request.headers[name] = value;
1864
+ for (const name in endpoint.headers) {
1865
+ request.headers[name] = endpoint.headers[name];
2175
1866
  }
2176
1867
  }
2177
1868
  return request;
@@ -2181,13 +1872,15 @@ var HttpProtocol = class extends SerdeContext {
2181
1872
  if (this.serdeContext?.disableHostPrefix) {
2182
1873
  return;
2183
1874
  }
2184
- const inputNs = NormalizedSchema2.of(operationSchema.input);
2185
- const opTraits = translateTraits2(operationSchema.traits ?? {});
1875
+ const inputNs = NormalizedSchema.of(operationSchema.input);
1876
+ const opTraits = translateTraits(operationSchema.traits ?? {});
2186
1877
  if (opTraits.endpoint) {
2187
1878
  let hostPrefix = opTraits.endpoint?.[0];
2188
1879
  if (typeof hostPrefix === "string") {
2189
- const hostLabelInputs = [...inputNs.structIterator()].filter(([, member3]) => member3.getMergedTraits().hostLabel);
2190
- for (const [name] of hostLabelInputs) {
1880
+ for (const [name, member2] of inputNs.structIterator()) {
1881
+ if (!member2.getMergedTraits().hostLabel) {
1882
+ continue;
1883
+ }
2191
1884
  const replacement = input[name];
2192
1885
  if (typeof replacement !== "string") {
2193
1886
  throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
@@ -2223,7 +1916,7 @@ var HttpProtocol = class extends SerdeContext {
2223
1916
  });
2224
1917
  }
2225
1918
  async loadEventStreamCapability() {
2226
- const { EventStreamSerde } = await import("./event-streams-T3U3ZQLC.mjs");
1919
+ const { EventStreamSerde } = await import("./event-streams-S7HDVT33.mjs");
2227
1920
  return new EventStreamSerde({
2228
1921
  marshaller: this.getEventStreamMarshaller(),
2229
1922
  serializer: this.serializer,
@@ -2252,7 +1945,7 @@ var HttpProtocol = class extends SerdeContext {
2252
1945
  }
2253
1946
  };
2254
1947
 
2255
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
1948
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
2256
1949
  function determineTimestampFormat(ns, settings) {
2257
1950
  if (settings.timestampFormat.useTrait) {
2258
1951
  if (ns.isTimestampSchema() && (ns.getSchema() === 5 || ns.getSchema() === 6 || ns.getSchema() === 7)) {
@@ -2264,7 +1957,7 @@ function determineTimestampFormat(ns, settings) {
2264
1957
  return bindingFormat ?? settings.timestampFormat.default;
2265
1958
  }
2266
1959
 
2267
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
1960
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
2268
1961
  var FromStringShapeDeserializer = class extends SerdeContext {
2269
1962
  constructor(settings) {
2270
1963
  super();
@@ -2272,7 +1965,7 @@ var FromStringShapeDeserializer = class extends SerdeContext {
2272
1965
  this.settings = settings;
2273
1966
  }
2274
1967
  read(_schema, data) {
2275
- const ns = NormalizedSchema2.of(_schema);
1968
+ const ns = NormalizedSchema.of(_schema);
2276
1969
  if (ns.isListSchema()) {
2277
1970
  return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item));
2278
1971
  }
@@ -2326,7 +2019,7 @@ var FromStringShapeDeserializer = class extends SerdeContext {
2326
2019
  }
2327
2020
  };
2328
2021
 
2329
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/setFeature.js
2022
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/setFeature.js
2330
2023
  function setFeature(context, feature, value) {
2331
2024
  if (!context.__smithy_context) {
2332
2025
  context.__smithy_context = {
@@ -2338,14 +2031,14 @@ function setFeature(context, feature, value) {
2338
2031
  context.__smithy_context.features[feature] = value;
2339
2032
  }
2340
2033
 
2341
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
2034
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
2342
2035
  var NoAuthSigner = class {
2343
2036
  async sign(httpRequest, identity, signingProperties) {
2344
2037
  return httpRequest;
2345
2038
  }
2346
2039
  };
2347
2040
 
2348
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
2041
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
2349
2042
  var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity) {
2350
2043
  return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
2351
2044
  };
@@ -2401,7 +2094,7 @@ var memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
2401
2094
  };
2402
2095
  };
2403
2096
 
2404
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
2097
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
2405
2098
  var DEFAULT_UA_APP_ID = void 0;
2406
2099
  function isValidUserAgentAppId(appId) {
2407
2100
  if (appId === void 0) {
@@ -2429,7 +2122,24 @@ function resolveUserAgentConfig(input) {
2429
2122
  });
2430
2123
  }
2431
2124
 
2432
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
2125
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js
2126
+ var BinaryDecisionDiagram = class _BinaryDecisionDiagram {
2127
+ constructor(bdd, root, conditions, results) {
2128
+ __publicField(this, "nodes");
2129
+ __publicField(this, "root");
2130
+ __publicField(this, "conditions");
2131
+ __publicField(this, "results");
2132
+ this.nodes = bdd;
2133
+ this.root = root;
2134
+ this.conditions = conditions;
2135
+ this.results = results;
2136
+ }
2137
+ static from(bdd, root, conditions, results) {
2138
+ return new _BinaryDecisionDiagram(bdd, root, conditions, results);
2139
+ }
2140
+ };
2141
+
2142
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
2433
2143
  var EndpointCache = class {
2434
2144
  constructor({ size, params }) {
2435
2145
  __publicField(this, "capacity");
@@ -2481,32 +2191,18 @@ var EndpointCache = class {
2481
2191
  }
2482
2192
  };
2483
2193
 
2484
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
2485
- var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
2486
- var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
2487
-
2488
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
2489
- var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
2490
- var isValidHostLabel = (value, allowSubDomains = false) => {
2491
- if (!allowSubDomains) {
2492
- return VALID_HOST_LABEL_REGEX.test(value);
2493
- }
2494
- const labels = value.split(".");
2495
- for (const label of labels) {
2496
- if (!isValidHostLabel(label)) {
2497
- return false;
2498
- }
2194
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
2195
+ var EndpointError = class extends Error {
2196
+ constructor(message) {
2197
+ super(message);
2198
+ this.name = "EndpointError";
2499
2199
  }
2500
- return true;
2501
2200
  };
2502
2201
 
2503
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
2504
- var customEndpointFunctions = {};
2505
-
2506
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
2202
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
2507
2203
  var debugId = "endpoints";
2508
2204
 
2509
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
2205
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
2510
2206
  function toDebugString(input) {
2511
2207
  if (typeof input !== "object" || input == null) {
2512
2208
  return input;
@@ -2520,18 +2216,23 @@ function toDebugString(input) {
2520
2216
  return JSON.stringify(input, null, 2);
2521
2217
  }
2522
2218
 
2523
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
2524
- var EndpointError = class extends Error {
2525
- constructor(message) {
2526
- super(message);
2527
- this.name = "EndpointError";
2528
- }
2529
- };
2219
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
2220
+ var customEndpointFunctions = {};
2530
2221
 
2531
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
2222
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
2532
2223
  var booleanEquals = (value1, value2) => value1 === value2;
2533
2224
 
2534
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
2225
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js
2226
+ function coalesce(...args) {
2227
+ for (const arg of args) {
2228
+ if (arg != null) {
2229
+ return arg;
2230
+ }
2231
+ }
2232
+ return void 0;
2233
+ }
2234
+
2235
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
2535
2236
  var getAttrPathList = (path) => {
2536
2237
  const parts = path.split(".");
2537
2238
  const pathList = [];
@@ -2556,23 +2257,48 @@ var getAttrPathList = (path) => {
2556
2257
  return pathList;
2557
2258
  };
2558
2259
 
2559
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
2260
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
2560
2261
  var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
2561
2262
  if (typeof acc !== "object") {
2562
2263
  throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
2563
2264
  } else if (Array.isArray(acc)) {
2564
- return acc[parseInt(index)];
2265
+ const i = parseInt(index);
2266
+ return acc[i < 0 ? acc.length + i : i];
2565
2267
  }
2566
2268
  return acc[index];
2567
2269
  }, value);
2568
2270
 
2569
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
2271
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
2570
2272
  var isSet = (value) => value != null;
2571
2273
 
2572
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/not.js
2274
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
2275
+ var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
2276
+ var isValidHostLabel = (value, allowSubDomains = false) => {
2277
+ if (!allowSubDomains) {
2278
+ return VALID_HOST_LABEL_REGEX.test(value);
2279
+ }
2280
+ const labels = value.split(".");
2281
+ for (const label of labels) {
2282
+ if (!isValidHostLabel(label)) {
2283
+ return false;
2284
+ }
2285
+ }
2286
+ return true;
2287
+ };
2288
+
2289
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js
2290
+ function ite(condition, trueValue, falseValue) {
2291
+ return condition ? trueValue : falseValue;
2292
+ }
2293
+
2294
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/not.js
2573
2295
  var not = (value) => !value;
2574
2296
 
2575
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
2297
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
2298
+ var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
2299
+ var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
2300
+
2301
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
2576
2302
  var DEFAULT_PORTS = {
2577
2303
  [EndpointURLScheme.HTTP]: 80,
2578
2304
  [EndpointURLScheme.HTTPS]: 443
@@ -2619,12 +2345,27 @@ var parseURL = (value) => {
2619
2345
  };
2620
2346
  };
2621
2347
 
2622
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
2348
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/split.js
2349
+ function split(value, delimiter, limit) {
2350
+ if (limit === 1) {
2351
+ return [value];
2352
+ }
2353
+ if (value === "") {
2354
+ return [""];
2355
+ }
2356
+ const parts = value.split(delimiter);
2357
+ if (limit === 0) {
2358
+ return parts;
2359
+ }
2360
+ return parts.slice(0, limit - 1).concat(parts.slice(1).join(delimiter));
2361
+ }
2362
+
2363
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
2623
2364
  var stringEquals = (value1, value2) => value1 === value2;
2624
2365
 
2625
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
2366
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
2626
2367
  var substring = (input, start, stop, reverse) => {
2627
- if (start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) {
2368
+ if (input == null || start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) {
2628
2369
  return null;
2629
2370
  }
2630
2371
  if (!reverse) {
@@ -2633,29 +2374,29 @@ var substring = (input, start, stop, reverse) => {
2633
2374
  return input.substring(input.length - stop, input.length - start);
2634
2375
  };
2635
2376
 
2636
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
2377
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
2637
2378
  var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
2638
2379
 
2639
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
2380
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
2640
2381
  var endpointFunctions = {
2641
2382
  booleanEquals,
2383
+ coalesce,
2642
2384
  getAttr,
2643
2385
  isSet,
2644
2386
  isValidHostLabel,
2387
+ ite,
2645
2388
  not,
2646
2389
  parseURL,
2390
+ split,
2647
2391
  stringEquals,
2648
2392
  substring,
2649
2393
  uriEncode
2650
2394
  };
2651
2395
 
2652
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
2396
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
2653
2397
  var evaluateTemplate = (template, options) => {
2654
2398
  const evaluatedTemplateArr = [];
2655
- const templateContext = {
2656
- ...options.endpointParams,
2657
- ...options.referenceRecord
2658
- };
2399
+ const { referenceRecord, endpointParams } = options;
2659
2400
  let currentIndex = 0;
2660
2401
  while (currentIndex < template.length) {
2661
2402
  const openingBraceIndex = template.indexOf("{", currentIndex);
@@ -2676,25 +2417,21 @@ var evaluateTemplate = (template, options) => {
2676
2417
  const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
2677
2418
  if (parameterName.includes("#")) {
2678
2419
  const [refName, attrName] = parameterName.split("#");
2679
- evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));
2420
+ evaluatedTemplateArr.push(getAttr(referenceRecord[refName] ?? endpointParams[refName], attrName));
2680
2421
  } else {
2681
- evaluatedTemplateArr.push(templateContext[parameterName]);
2422
+ evaluatedTemplateArr.push(referenceRecord[parameterName] ?? endpointParams[parameterName]);
2682
2423
  }
2683
2424
  currentIndex = closingBraceIndex + 1;
2684
2425
  }
2685
2426
  return evaluatedTemplateArr.join("");
2686
2427
  };
2687
2428
 
2688
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
2429
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
2689
2430
  var getReferenceValue = ({ ref }, options) => {
2690
- const referenceRecord = {
2691
- ...options.endpointParams,
2692
- ...options.referenceRecord
2693
- };
2694
- return referenceRecord[ref];
2431
+ return options.referenceRecord[ref] ?? options.endpointParams[ref];
2695
2432
  };
2696
2433
 
2697
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
2434
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
2698
2435
  var evaluateExpression = (obj, keyName, options) => {
2699
2436
  if (typeof obj === "string") {
2700
2437
  return evaluateTemplate(obj, options);
@@ -2706,70 +2443,66 @@ var evaluateExpression = (obj, keyName, options) => {
2706
2443
  throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
2707
2444
  };
2708
2445
  var callFunction = ({ fn, argv }, options) => {
2709
- const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : group.evaluateExpression(arg, "arg", options));
2710
- const fnSegments = fn.split(".");
2711
- if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
2712
- return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
2446
+ const evaluatedArgs = Array(argv.length);
2447
+ for (let i = 0; i < evaluatedArgs.length; ++i) {
2448
+ const arg = argv[i];
2449
+ if (typeof arg === "boolean" || typeof arg === "number") {
2450
+ evaluatedArgs[i] = arg;
2451
+ } else {
2452
+ evaluatedArgs[i] = group.evaluateExpression(arg, "arg", options);
2453
+ }
2713
2454
  }
2714
- return endpointFunctions[fn](...evaluatedArgs);
2455
+ const namespaceSeparatorIndex = fn.indexOf(".");
2456
+ if (namespaceSeparatorIndex !== -1) {
2457
+ const namespaceFunctions = customEndpointFunctions[fn.slice(0, namespaceSeparatorIndex)];
2458
+ const customFunction = namespaceFunctions?.[fn.slice(namespaceSeparatorIndex + 1)];
2459
+ if (typeof customFunction === "function") {
2460
+ return customFunction(...evaluatedArgs);
2461
+ }
2462
+ }
2463
+ const callable = endpointFunctions[fn];
2464
+ if (typeof callable === "function") {
2465
+ return callable(...evaluatedArgs);
2466
+ }
2467
+ throw new Error(`function ${fn} not loaded in endpointFunctions.`);
2715
2468
  };
2716
2469
  var group = {
2717
2470
  evaluateExpression,
2718
2471
  callFunction
2719
2472
  };
2720
2473
 
2721
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
2722
- var evaluateCondition = ({ assign, ...fnArgs }, options) => {
2474
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
2475
+ var evaluateCondition = (condition, options) => {
2476
+ const { assign } = condition;
2723
2477
  if (assign && assign in options.referenceRecord) {
2724
2478
  throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
2725
2479
  }
2726
- const value = callFunction(fnArgs, options);
2727
- options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
2728
- return {
2729
- result: value === "" ? true : !!value,
2730
- ...assign != null && { toAssign: { name: assign, value } }
2731
- };
2732
- };
2733
-
2734
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js
2735
- var evaluateConditions = (conditions = [], options) => {
2736
- const conditionsReferenceRecord = {};
2737
- for (const condition of conditions) {
2738
- const { result, toAssign } = evaluateCondition(condition, {
2739
- ...options,
2740
- referenceRecord: {
2741
- ...options.referenceRecord,
2742
- ...conditionsReferenceRecord
2743
- }
2744
- });
2745
- if (!result) {
2746
- return { result };
2747
- }
2748
- if (toAssign) {
2749
- conditionsReferenceRecord[toAssign.name] = toAssign.value;
2750
- options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
2751
- }
2480
+ const value = callFunction(condition, options);
2481
+ options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(condition)} = ${toDebugString(value)}`);
2482
+ const result = value === "" ? true : !!value;
2483
+ if (assign != null) {
2484
+ return { result, toAssign: { name: assign, value } };
2752
2485
  }
2753
- return { result: true, referenceRecord: conditionsReferenceRecord };
2486
+ return { result };
2754
2487
  };
2755
2488
 
2756
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
2757
- var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
2758
- ...acc,
2759
- [headerKey]: headerVal.map((headerValEntry) => {
2489
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
2490
+ var getEndpointHeaders = (headers, options) => Object.entries(headers ?? {}).reduce((acc, [headerKey, headerVal]) => {
2491
+ acc[headerKey] = headerVal.map((headerValEntry) => {
2760
2492
  const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
2761
2493
  if (typeof processedExpr !== "string") {
2762
2494
  throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
2763
2495
  }
2764
2496
  return processedExpr;
2765
- })
2766
- }), {});
2767
-
2768
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
2769
- var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
2770
- ...acc,
2771
- [propertyKey]: group2.getEndpointProperty(propertyVal, options)
2772
- }), {});
2497
+ });
2498
+ return acc;
2499
+ }, {});
2500
+
2501
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
2502
+ var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => {
2503
+ acc[propertyKey] = group2.getEndpointProperty(propertyVal, options);
2504
+ return acc;
2505
+ }, {});
2773
2506
  var getEndpointProperty = (property, options) => {
2774
2507
  if (Array.isArray(property)) {
2775
2508
  return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
@@ -2793,7 +2526,7 @@ var group2 = {
2793
2526
  getEndpointProperties
2794
2527
  };
2795
2528
 
2796
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
2529
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
2797
2530
  var getEndpointUrl = (endpointUrl, options) => {
2798
2531
  const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
2799
2532
  if (typeof expression === "string") {
@@ -2807,103 +2540,45 @@ var getEndpointUrl = (endpointUrl, options) => {
2807
2540
  throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
2808
2541
  };
2809
2542
 
2810
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js
2811
- var evaluateEndpointRule = (endpointRule, options) => {
2812
- const { conditions, endpoint } = endpointRule;
2813
- const { result, referenceRecord } = evaluateConditions(conditions, options);
2814
- if (!result) {
2815
- return;
2816
- }
2817
- const endpointRuleOptions = {
2818
- ...options,
2819
- referenceRecord: { ...options.referenceRecord, ...referenceRecord }
2820
- };
2821
- const { url, properties, headers } = endpoint;
2822
- options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
2823
- return {
2824
- ...headers != void 0 && {
2825
- headers: getEndpointHeaders(headers, endpointRuleOptions)
2826
- },
2827
- ...properties != void 0 && {
2828
- properties: getEndpointProperties(properties, endpointRuleOptions)
2829
- },
2830
- url: getEndpointUrl(url, endpointRuleOptions)
2543
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js
2544
+ var RESULT = 1e8;
2545
+ var decideEndpoint = (bdd, options) => {
2546
+ const { nodes, root, results, conditions } = bdd;
2547
+ let ref = root;
2548
+ const referenceRecord = {};
2549
+ const closure = {
2550
+ referenceRecord,
2551
+ endpointParams: options.endpointParams,
2552
+ logger: options.logger
2831
2553
  };
2832
- };
2833
-
2834
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js
2835
- var evaluateErrorRule = (errorRule, options) => {
2836
- const { conditions, error } = errorRule;
2837
- const { result, referenceRecord } = evaluateConditions(conditions, options);
2838
- if (!result) {
2839
- return;
2840
- }
2841
- throw new EndpointError(evaluateExpression(error, "Error", {
2842
- ...options,
2843
- referenceRecord: { ...options.referenceRecord, ...referenceRecord }
2844
- }));
2845
- };
2846
-
2847
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
2848
- var evaluateRules = (rules, options) => {
2849
- for (const rule of rules) {
2850
- if (rule.type === "endpoint") {
2851
- const endpointOrUndefined = evaluateEndpointRule(rule, options);
2852
- if (endpointOrUndefined) {
2853
- return endpointOrUndefined;
2854
- }
2855
- } else if (rule.type === "error") {
2856
- evaluateErrorRule(rule, options);
2857
- } else if (rule.type === "tree") {
2858
- const endpointOrUndefined = group3.evaluateTreeRule(rule, options);
2859
- if (endpointOrUndefined) {
2860
- return endpointOrUndefined;
2861
- }
2862
- } else {
2863
- throw new EndpointError(`Unknown endpoint rule: ${rule}`);
2864
- }
2865
- }
2866
- throw new EndpointError(`Rules evaluation failed`);
2867
- };
2868
- var evaluateTreeRule = (treeRule, options) => {
2869
- const { conditions, rules } = treeRule;
2870
- const { result, referenceRecord } = evaluateConditions(conditions, options);
2871
- if (!result) {
2872
- return;
2873
- }
2874
- return group3.evaluateRules(rules, {
2875
- ...options,
2876
- referenceRecord: { ...options.referenceRecord, ...referenceRecord }
2877
- });
2878
- };
2879
- var group3 = {
2880
- evaluateRules,
2881
- evaluateTreeRule
2882
- };
2883
-
2884
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
2885
- var resolveEndpoint = (ruleSetObject, options) => {
2886
- const { endpointParams, logger } = options;
2887
- const { parameters, rules } = ruleSetObject;
2888
- options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
2889
- const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]);
2890
- if (paramsWithDefault.length > 0) {
2891
- for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
2892
- endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
2893
- }
2894
- }
2895
- const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k);
2896
- for (const requiredParam of requiredParams) {
2897
- if (endpointParams[requiredParam] == null) {
2898
- throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
2899
- }
2554
+ while (ref !== 1 && ref !== -1 && ref < RESULT) {
2555
+ const node_i = 3 * (Math.abs(ref) - 1);
2556
+ const [condition_i, highRef, lowRef] = [nodes[node_i], nodes[node_i + 1], nodes[node_i + 2]];
2557
+ const [fn, argv, assign] = conditions[condition_i];
2558
+ const evaluation = evaluateCondition({ fn, assign, argv }, closure);
2559
+ if (evaluation.toAssign) {
2560
+ const { name, value } = evaluation.toAssign;
2561
+ referenceRecord[name] = value;
2562
+ }
2563
+ ref = ref >= 0 === evaluation.result ? highRef : lowRef;
2564
+ }
2565
+ if (ref >= RESULT) {
2566
+ const result = results[ref - RESULT];
2567
+ if (result[0] === -1) {
2568
+ const [, errorExpression] = result;
2569
+ throw new EndpointError(evaluateExpression(errorExpression, "Error", closure));
2570
+ }
2571
+ const [url, properties, headers] = result;
2572
+ return {
2573
+ url: getEndpointUrl(url, closure),
2574
+ properties: getEndpointProperties(properties, closure),
2575
+ headers: getEndpointHeaders(headers ?? {}, closure)
2576
+ };
2900
2577
  }
2901
- const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
2902
- options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
2903
- return endpoint;
2578
+ throw new EndpointError(`No matching endpoint.`);
2904
2579
  };
2905
2580
 
2906
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
2581
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
2907
2582
  var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
2908
2583
  if (allowSubDomains) {
2909
2584
  for (const label of value.split(".")) {
@@ -2928,7 +2603,7 @@ var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
2928
2603
  return true;
2929
2604
  };
2930
2605
 
2931
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
2606
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
2932
2607
  var ARN_DELIMITER = ":";
2933
2608
  var RESOURCE_DELIMITER = "/";
2934
2609
  var parseArn = (value) => {
@@ -2948,7 +2623,7 @@ var parseArn = (value) => {
2948
2623
  };
2949
2624
  };
2950
2625
 
2951
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
2626
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
2952
2627
  var partitions_default = {
2953
2628
  partitions: [{
2954
2629
  id: "aws",
@@ -3217,7 +2892,7 @@ var partitions_default = {
3217
2892
  version: "1.1"
3218
2893
  };
3219
2894
 
3220
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
2895
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
3221
2896
  var selectedPartitionsInfo = partitions_default;
3222
2897
  var selectedUserAgentPrefix = "";
3223
2898
  var partition = (value) => {
@@ -3251,7 +2926,7 @@ var partition = (value) => {
3251
2926
  };
3252
2927
  var getUserAgentPrefix = () => selectedUserAgentPrefix;
3253
2928
 
3254
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
2929
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
3255
2930
  var awsEndpointFunctions = {
3256
2931
  isVirtualHostableS3Bucket,
3257
2932
  parseArn,
@@ -3259,36 +2934,33 @@ var awsEndpointFunctions = {
3259
2934
  };
3260
2935
  customEndpointFunctions.aws = awsEndpointFunctions;
3261
2936
 
3262
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
2937
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
3263
2938
  var state = {
3264
2939
  warningEmitted: false
3265
2940
  };
3266
2941
  var emitWarningIfUnsupportedVersion = (version) => {
3267
- if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 20) {
3268
- state.warningEmitted = true;
3269
- process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
3270
- no longer support Node.js ${version} in January 2026.
2942
+ if (version && !state.warningEmitted) {
2943
+ if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
2944
+ state.warningEmitted = true;
2945
+ return;
2946
+ }
2947
+ const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
2948
+ const vv = 22;
2949
+ if (userMajorVersion < vv) {
2950
+ state.warningEmitted = true;
2951
+ process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2952
+ versions published after the first week of January 2027
2953
+ will require node >=${vv}. You are running node ${version}.
3271
2954
 
3272
- To continue receiving updates to AWS services, bug fixes, and security
3273
- updates please upgrade to a supported Node.js LTS version.
2955
+ To continue receiving updates to AWS services, bug fixes,
2956
+ and security updates please upgrade to node >=${vv}.
3274
2957
 
3275
2958
  More information can be found at: https://a.co/c895JFp`);
2959
+ }
3276
2960
  }
3277
2961
  };
3278
2962
 
3279
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
3280
- function setFeature2(context, feature, value) {
3281
- if (!context.__aws_sdk_context) {
3282
- context.__aws_sdk_context = {
3283
- features: {}
3284
- };
3285
- } else if (!context.__aws_sdk_context.features) {
3286
- context.__aws_sdk_context.features = {};
3287
- }
3288
- context.__aws_sdk_context.features[feature] = value;
3289
- }
3290
-
3291
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/config.js
2963
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/config.js
3292
2964
  var RETRY_MODES;
3293
2965
  (function(RETRY_MODES2) {
3294
2966
  RETRY_MODES2["STANDARD"] = "standard";
@@ -3297,7 +2969,7 @@ var RETRY_MODES;
3297
2969
  var DEFAULT_MAX_ATTEMPTS = 3;
3298
2970
  var DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
3299
2971
 
3300
- // ../node_modules/.bun/@smithy+service-error-classification@4.2.12/node_modules/@smithy/service-error-classification/dist-es/constants.js
2972
+ // ../node_modules/.bun/@smithy+service-error-classification@4.3.1/node_modules/@smithy/service-error-classification/dist-es/constants.js
3301
2973
  var THROTTLING_ERROR_CODES = [
3302
2974
  "BandwidthLimitExceeded",
3303
2975
  "EC2ThrottledException",
@@ -3319,7 +2991,7 @@ var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
3319
2991
  var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
3320
2992
  var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
3321
2993
 
3322
- // ../node_modules/.bun/@smithy+service-error-classification@4.2.12/node_modules/@smithy/service-error-classification/dist-es/index.js
2994
+ // ../node_modules/.bun/@smithy+service-error-classification@4.3.1/node_modules/@smithy/service-error-classification/dist-es/index.js
3323
2995
  var isRetryableByTrait = (error) => error?.$retryable !== void 0;
3324
2996
  var isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
3325
2997
  var isBrowserNetworkError = (error) => {
@@ -3337,7 +3009,7 @@ var isBrowserNetworkError = (error) => {
3337
3009
  return errorMessages.has(error.message);
3338
3010
  };
3339
3011
  var isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true;
3340
- var isTransientError = (error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || 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) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
3012
+ var isTransientError = (error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || error.name === "InvalidSignatureException" && error.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || isNodeJsHttp2TransientError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
3341
3013
  var isServerError = (error) => {
3342
3014
  if (error.$metadata?.httpStatusCode !== void 0) {
3343
3015
  const statusCode = error.$metadata.httpStatusCode;
@@ -3348,8 +3020,11 @@ var isServerError = (error) => {
3348
3020
  }
3349
3021
  return false;
3350
3022
  };
3023
+ function isNodeJsHttp2TransientError(error) {
3024
+ return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
3025
+ }
3351
3026
 
3352
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
3027
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
3353
3028
  var _DefaultRateLimiter = class _DefaultRateLimiter {
3354
3029
  constructor(options) {
3355
3030
  __publicField(this, "beta");
@@ -3373,26 +3048,45 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
3373
3048
  this.minFillRate = options?.minFillRate ?? 0.5;
3374
3049
  this.scaleConstant = options?.scaleConstant ?? 0.4;
3375
3050
  this.smooth = options?.smooth ?? 0.8;
3376
- const currentTimeInSeconds = this.getCurrentTimeInSeconds();
3377
- this.lastThrottleTime = currentTimeInSeconds;
3051
+ this.lastThrottleTime = this.getCurrentTimeInSeconds();
3378
3052
  this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
3379
3053
  this.fillRate = this.minFillRate;
3380
3054
  this.maxCapacity = this.minCapacity;
3381
3055
  }
3382
- getCurrentTimeInSeconds() {
3383
- return Date.now() / 1e3;
3384
- }
3385
3056
  async getSendToken() {
3386
3057
  return this.acquireTokenBucket(1);
3387
3058
  }
3059
+ updateClientSendingRate(response) {
3060
+ let calculatedRate;
3061
+ this.updateMeasuredRate();
3062
+ const retryErrorInfo = response;
3063
+ const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response);
3064
+ if (isThrottling) {
3065
+ const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
3066
+ this.lastMaxRate = rateToUse;
3067
+ this.calculateTimeWindow();
3068
+ this.lastThrottleTime = this.getCurrentTimeInSeconds();
3069
+ calculatedRate = this.cubicThrottle(rateToUse);
3070
+ this.enableTokenBucket();
3071
+ } else {
3072
+ this.calculateTimeWindow();
3073
+ calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
3074
+ }
3075
+ const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
3076
+ this.updateTokenBucketRate(newRate);
3077
+ }
3078
+ getCurrentTimeInSeconds() {
3079
+ return Date.now() / 1e3;
3080
+ }
3388
3081
  async acquireTokenBucket(amount) {
3389
3082
  if (!this.enabled) {
3390
3083
  return;
3391
3084
  }
3392
3085
  this.refillTokenBucket();
3393
- if (amount > this.availableTokens) {
3086
+ while (amount > this.availableTokens) {
3394
3087
  const delay = (amount - this.availableTokens) / this.fillRate * 1e3;
3395
3088
  await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay));
3089
+ this.refillTokenBucket();
3396
3090
  }
3397
3091
  this.availableTokens = this.availableTokens - amount;
3398
3092
  }
@@ -3406,25 +3100,6 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
3406
3100
  this.availableTokens = Math.min(this.maxCapacity, this.availableTokens + fillAmount);
3407
3101
  this.lastTimestamp = timestamp;
3408
3102
  }
3409
- updateClientSendingRate(response) {
3410
- let calculatedRate;
3411
- this.updateMeasuredRate();
3412
- const retryErrorInfo = response;
3413
- const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response);
3414
- if (isThrottling) {
3415
- const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
3416
- this.lastMaxRate = rateToUse;
3417
- this.calculateTimeWindow();
3418
- this.lastThrottleTime = this.getCurrentTimeInSeconds();
3419
- calculatedRate = this.cubicThrottle(rateToUse);
3420
- this.enableTokenBucket();
3421
- } else {
3422
- this.calculateTimeWindow();
3423
- calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
3424
- }
3425
- const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
3426
- this.updateTokenBucketRate(newRate);
3427
- }
3428
3103
  calculateTimeWindow() {
3429
3104
  this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));
3430
3105
  }
@@ -3461,84 +3136,139 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
3461
3136
  __publicField(_DefaultRateLimiter, "setTimeoutFn", setTimeout);
3462
3137
  var DefaultRateLimiter = _DefaultRateLimiter;
3463
3138
 
3464
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/constants.js
3465
- var DEFAULT_RETRY_DELAY_BASE = 100;
3139
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/constants.js
3466
3140
  var MAXIMUM_RETRY_DELAY = 20 * 1e3;
3467
- var THROTTLING_RETRY_DELAY_BASE = 500;
3468
3141
  var INITIAL_RETRY_TOKENS = 500;
3469
- var RETRY_COST = 5;
3470
- var TIMEOUT_RETRY_COST = 10;
3471
3142
  var NO_RETRY_INCREMENT = 1;
3472
3143
  var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
3473
3144
  var REQUEST_HEADER = "amz-sdk-request";
3474
3145
 
3475
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js
3476
- var getDefaultRetryBackoffStrategy = () => {
3477
- let delayBase = DEFAULT_RETRY_DELAY_BASE;
3478
- const computeNextBackoffDelay = (attempts) => {
3479
- return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
3480
- };
3481
- const setDelayBase = (delay) => {
3482
- delayBase = delay;
3483
- };
3484
- return {
3485
- computeNextBackoffDelay,
3486
- setDelayBase
3487
- };
3146
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js
3147
+ var _Retry = class _Retry {
3148
+ static delay() {
3149
+ return _Retry.v2026 ? 50 : 100;
3150
+ }
3151
+ static throttlingDelay() {
3152
+ return _Retry.v2026 ? 1e3 : 500;
3153
+ }
3154
+ static cost() {
3155
+ return _Retry.v2026 ? 14 : 5;
3156
+ }
3157
+ static throttlingCost() {
3158
+ return _Retry.v2026 ? 5 : 10;
3159
+ }
3160
+ static modifiedCostType() {
3161
+ return _Retry.v2026 ? "THROTTLING" : "TRANSIENT";
3162
+ }
3488
3163
  };
3164
+ __publicField(_Retry, "v2026", typeof process !== "undefined" && process.env?.SMITHY_NEW_RETRIES_2026 === "true");
3165
+ var Retry = _Retry;
3489
3166
 
3490
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js
3491
- var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => {
3492
- const getRetryCount = () => retryCount;
3493
- const getRetryDelay = () => Math.min(MAXIMUM_RETRY_DELAY, retryDelay);
3494
- const getRetryCost = () => retryCost;
3495
- return {
3496
- getRetryCount,
3497
- getRetryDelay,
3498
- getRetryCost
3499
- };
3167
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js
3168
+ var DefaultRetryBackoffStrategy = class {
3169
+ constructor() {
3170
+ __publicField(this, "x", Retry.delay());
3171
+ }
3172
+ computeNextBackoffDelay(i) {
3173
+ const b = Math.random();
3174
+ const r = 2;
3175
+ const t_i = b * Math.min(this.x * r ** i, MAXIMUM_RETRY_DELAY);
3176
+ return Math.floor(t_i);
3177
+ }
3178
+ setDelayBase(delay) {
3179
+ this.x = delay;
3180
+ }
3500
3181
  };
3501
3182
 
3502
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
3183
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js
3184
+ var DefaultRetryToken = class {
3185
+ constructor(delay, count, cost, longPoll) {
3186
+ __publicField(this, "delay");
3187
+ __publicField(this, "count");
3188
+ __publicField(this, "cost");
3189
+ __publicField(this, "longPoll");
3190
+ this.delay = delay;
3191
+ this.count = count;
3192
+ this.cost = cost;
3193
+ this.longPoll = longPoll;
3194
+ }
3195
+ getRetryCount() {
3196
+ return this.count;
3197
+ }
3198
+ getRetryDelay() {
3199
+ return Math.min(MAXIMUM_RETRY_DELAY, this.delay);
3200
+ }
3201
+ getRetryCost() {
3202
+ return this.cost;
3203
+ }
3204
+ isLongPoll() {
3205
+ return this.longPoll;
3206
+ }
3207
+ };
3208
+
3209
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
3210
+ var refusal = {
3211
+ incompatible: 1,
3212
+ attempts: 2,
3213
+ capacity: 3
3214
+ };
3503
3215
  var StandardRetryStrategy = class {
3504
- constructor(maxAttempts) {
3505
- __publicField(this, "maxAttempts");
3216
+ constructor(arg1) {
3506
3217
  __publicField(this, "mode", RETRY_MODES.STANDARD);
3507
3218
  __publicField(this, "capacity", INITIAL_RETRY_TOKENS);
3508
- __publicField(this, "retryBackoffStrategy", getDefaultRetryBackoffStrategy());
3219
+ __publicField(this, "retryBackoffStrategy");
3509
3220
  __publicField(this, "maxAttemptsProvider");
3510
- this.maxAttempts = maxAttempts;
3511
- this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
3221
+ __publicField(this, "baseDelay");
3222
+ if (typeof arg1 === "number") {
3223
+ this.maxAttemptsProvider = async () => arg1;
3224
+ } else if (typeof arg1 === "function") {
3225
+ this.maxAttemptsProvider = arg1;
3226
+ } else if (arg1 && typeof arg1 === "object") {
3227
+ this.maxAttemptsProvider = async () => arg1.maxAttempts;
3228
+ this.baseDelay = arg1.baseDelay;
3229
+ this.retryBackoffStrategy = arg1.backoff;
3230
+ }
3231
+ this.maxAttemptsProvider ?? (this.maxAttemptsProvider = async () => DEFAULT_MAX_ATTEMPTS);
3232
+ this.baseDelay ?? (this.baseDelay = Retry.delay());
3233
+ this.retryBackoffStrategy ?? (this.retryBackoffStrategy = new DefaultRetryBackoffStrategy());
3512
3234
  }
3513
3235
  async acquireInitialRetryToken(retryTokenScope) {
3514
- return createDefaultRetryToken({
3515
- retryDelay: DEFAULT_RETRY_DELAY_BASE,
3516
- retryCount: 0
3517
- });
3236
+ return new DefaultRetryToken(Retry.delay(), 0, void 0, Retry.v2026 && retryTokenScope.includes(":longpoll"));
3518
3237
  }
3519
3238
  async refreshRetryTokenForRetry(token, errorInfo) {
3520
3239
  const maxAttempts = await this.getMaxAttempts();
3521
- if (this.shouldRetry(token, errorInfo, maxAttempts)) {
3240
+ const retryCode = this.retryCode(token, errorInfo, maxAttempts);
3241
+ const shouldRetry = retryCode === 0;
3242
+ const isLongPoll = token.isLongPoll?.();
3243
+ if (shouldRetry || isLongPoll) {
3522
3244
  const errorType = errorInfo.errorType;
3523
- this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE);
3245
+ this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? Retry.throttlingDelay() : this.baseDelay);
3524
3246
  const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
3525
- const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType;
3526
- const capacityCost = this.getCapacityCost(errorType);
3527
- this.capacity -= capacityCost;
3528
- return createDefaultRetryToken({
3529
- retryDelay,
3530
- retryCount: token.getRetryCount() + 1,
3531
- retryCost: capacityCost
3532
- });
3247
+ let retryDelay = delayFromErrorType;
3248
+ if (errorInfo.retryAfterHint instanceof Date) {
3249
+ retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5e3));
3250
+ }
3251
+ if (!shouldRetry) {
3252
+ throw Object.assign(new Error("No retry token available"), {
3253
+ $backoff: Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0
3254
+ });
3255
+ } else {
3256
+ const capacityCost = this.getCapacityCost(errorType);
3257
+ this.capacity -= capacityCost;
3258
+ return new DefaultRetryToken(retryDelay, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
3259
+ }
3533
3260
  }
3534
3261
  throw new Error("No retry token available");
3535
3262
  }
3536
3263
  recordSuccess(token) {
3537
- this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
3264
+ this.capacity = Math.min(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
3538
3265
  }
3539
3266
  getCapacity() {
3540
3267
  return this.capacity;
3541
3268
  }
3269
+ async maxAttempts() {
3270
+ return this.maxAttemptsProvider();
3271
+ }
3542
3272
  async getMaxAttempts() {
3543
3273
  try {
3544
3274
  return await this.maxAttemptsProvider();
@@ -3547,45 +3277,69 @@ var StandardRetryStrategy = class {
3547
3277
  return DEFAULT_MAX_ATTEMPTS;
3548
3278
  }
3549
3279
  }
3550
- shouldRetry(tokenToRenew, errorInfo, maxAttempts) {
3280
+ retryCode(tokenToRenew, errorInfo, maxAttempts) {
3551
3281
  const attempts = tokenToRenew.getRetryCount() + 1;
3552
- return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType);
3282
+ const retryableStatus = this.isRetryableError(errorInfo.errorType) ? 0 : refusal.incompatible;
3283
+ const attemptStatus = attempts < maxAttempts ? 0 : refusal.attempts;
3284
+ const capacityStatus = this.capacity >= this.getCapacityCost(errorInfo.errorType) ? 0 : refusal.capacity;
3285
+ return retryableStatus || attemptStatus || capacityStatus;
3553
3286
  }
3554
3287
  getCapacityCost(errorType) {
3555
- return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST;
3288
+ return errorType === Retry.modifiedCostType() ? Retry.throttlingCost() : Retry.cost();
3556
3289
  }
3557
3290
  isRetryableError(errorType) {
3558
3291
  return errorType === "THROTTLING" || errorType === "TRANSIENT";
3559
3292
  }
3560
3293
  };
3561
3294
 
3562
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
3295
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
3563
3296
  var AdaptiveRetryStrategy = class {
3564
3297
  constructor(maxAttemptsProvider, options) {
3565
- __publicField(this, "maxAttemptsProvider");
3298
+ __publicField(this, "mode", RETRY_MODES.ADAPTIVE);
3566
3299
  __publicField(this, "rateLimiter");
3567
3300
  __publicField(this, "standardRetryStrategy");
3568
- __publicField(this, "mode", RETRY_MODES.ADAPTIVE);
3569
- this.maxAttemptsProvider = maxAttemptsProvider;
3570
3301
  const { rateLimiter } = options ?? {};
3571
3302
  this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
3572
- this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
3303
+ this.standardRetryStrategy = options ? new StandardRetryStrategy({
3304
+ maxAttempts: typeof maxAttemptsProvider === "number" ? maxAttemptsProvider : 3,
3305
+ ...options
3306
+ }) : new StandardRetryStrategy(maxAttemptsProvider);
3573
3307
  }
3574
3308
  async acquireInitialRetryToken(retryTokenScope) {
3309
+ const token = await this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
3575
3310
  await this.rateLimiter.getSendToken();
3576
- return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
3311
+ return token;
3577
3312
  }
3578
3313
  async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
3579
3314
  this.rateLimiter.updateClientSendingRate(errorInfo);
3580
- return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
3315
+ const token = await this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
3316
+ await this.rateLimiter.getSendToken();
3317
+ return token;
3581
3318
  }
3582
3319
  recordSuccess(token) {
3583
3320
  this.rateLimiter.updateClientSendingRate({});
3584
3321
  this.standardRetryStrategy.recordSuccess(token);
3585
3322
  }
3323
+ async maxAttemptsProvider() {
3324
+ return this.standardRetryStrategy.maxAttempts();
3325
+ }
3586
3326
  };
3587
3327
 
3588
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
3328
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
3329
+ var _a;
3330
+ (_a = Retry).v2026 || (_a.v2026 = typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true");
3331
+ function setFeature2(context, feature, value) {
3332
+ if (!context.__aws_sdk_context) {
3333
+ context.__aws_sdk_context = {
3334
+ features: {}
3335
+ };
3336
+ } else if (!context.__aws_sdk_context.features) {
3337
+ context.__aws_sdk_context.features = {};
3338
+ }
3339
+ context.__aws_sdk_context.features[feature] = value;
3340
+ }
3341
+
3342
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
3589
3343
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
3590
3344
  async function checkFeatures(context, config, args) {
3591
3345
  const request = args.request;
@@ -3634,7 +3388,7 @@ async function checkFeatures(context, config, args) {
3634
3388
  }
3635
3389
  }
3636
3390
 
3637
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
3391
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
3638
3392
  var USER_AGENT = "user-agent";
3639
3393
  var X_AMZ_USER_AGENT = "x-amz-user-agent";
3640
3394
  var SPACE = " ";
@@ -3643,7 +3397,7 @@ var UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g;
3643
3397
  var UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g;
3644
3398
  var UA_ESCAPE_CHAR = "-";
3645
3399
 
3646
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js
3400
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js
3647
3401
  var BYTE_LIMIT = 1024;
3648
3402
  function encodeFeatures(features) {
3649
3403
  let buffer = "";
@@ -3662,7 +3416,7 @@ function encodeFeatures(features) {
3662
3416
  return buffer;
3663
3417
  }
3664
3418
 
3665
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
3419
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
3666
3420
  var userAgentMiddleware = (options) => (next, context) => async (args) => {
3667
3421
  const { request } = args;
3668
3422
  if (!HttpRequest.isInstance(request)) {
@@ -3731,7 +3485,7 @@ var getUserAgentPlugin = (config) => ({
3731
3485
  }
3732
3486
  });
3733
3487
 
3734
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js
3488
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js
3735
3489
  var validRegions = /* @__PURE__ */ new Set();
3736
3490
  var checkRegion = (region, check = isValidHostLabel) => {
3737
3491
  if (!validRegions.has(region) && !check(region)) {
@@ -3745,13 +3499,13 @@ var checkRegion = (region, check = isValidHostLabel) => {
3745
3499
  }
3746
3500
  };
3747
3501
 
3748
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
3502
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
3749
3503
  var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
3750
3504
 
3751
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
3505
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
3752
3506
  var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
3753
3507
 
3754
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
3508
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
3755
3509
  var resolveRegionConfig = (input) => {
3756
3510
  const { region, useFipsEndpoint } = input;
3757
3511
  if (!region) {
@@ -3774,7 +3528,7 @@ var resolveRegionConfig = (input) => {
3774
3528
  });
3775
3529
  };
3776
3530
 
3777
- // ../node_modules/.bun/@smithy+middleware-content-length@4.2.12/node_modules/@smithy/middleware-content-length/dist-es/index.js
3531
+ // ../node_modules/.bun/@smithy+middleware-content-length@4.2.14/node_modules/@smithy/middleware-content-length/dist-es/index.js
3778
3532
  var CONTENT_LENGTH_HEADER = "content-length";
3779
3533
  function contentLengthMiddleware(bodyLengthChecker) {
3780
3534
  return (next) => async (args) => {
@@ -3810,7 +3564,7 @@ var getContentLengthPlugin = (options) => ({
3810
3564
  }
3811
3565
  });
3812
3566
 
3813
- // ../node_modules/.bun/@smithy+middleware-serde@4.2.16/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
3567
+ // ../node_modules/.bun/@smithy+middleware-serde@4.2.20/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
3814
3568
  var serializerMiddlewareOption2 = {
3815
3569
  name: "serializerMiddleware",
3816
3570
  step: "serialize",
@@ -3818,7 +3572,7 @@ var serializerMiddlewareOption2 = {
3818
3572
  override: true
3819
3573
  };
3820
3574
 
3821
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
3575
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
3822
3576
  var resolveParamsForS3 = async (endpointParams) => {
3823
3577
  const bucket = endpointParams?.Bucket || "";
3824
3578
  if (typeof endpointParams.Bucket === "string") {
@@ -3851,7 +3605,7 @@ var isArnBucketName = (bucketName) => {
3851
3605
  return isValidArn;
3852
3606
  };
3853
3607
 
3854
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
3608
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
3855
3609
  var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config, isClientContextParam = false) => {
3856
3610
  const configProvider = async () => {
3857
3611
  let configValue;
@@ -3902,7 +3656,7 @@ var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config, i
3902
3656
  return configProvider;
3903
3657
  };
3904
3658
 
3905
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js
3659
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js
3906
3660
  var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
3907
3661
  var CONFIG_ENDPOINT_URL = "endpoint_url";
3908
3662
  var getEndpointUrlConfig = (serviceId) => ({
@@ -3934,10 +3688,10 @@ var getEndpointUrlConfig = (serviceId) => ({
3934
3688
  default: void 0
3935
3689
  });
3936
3690
 
3937
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
3691
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
3938
3692
  var getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
3939
3693
 
3940
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
3694
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
3941
3695
  var toEndpointV12 = (endpoint) => {
3942
3696
  if (typeof endpoint === "object") {
3943
3697
  if ("url" in endpoint) {
@@ -3955,7 +3709,7 @@ var toEndpointV12 = (endpoint) => {
3955
3709
  return parseUrl(endpoint);
3956
3710
  };
3957
3711
 
3958
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
3712
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
3959
3713
  var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
3960
3714
  if (!clientConfig.isCustomEndpoint) {
3961
3715
  let endpointFromConfig;
@@ -4016,7 +3770,7 @@ var resolveParams = async (commandInput, instructionsSupplier, clientConfig) =>
4016
3770
  return endpointParams;
4017
3771
  };
4018
3772
 
4019
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
3773
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
4020
3774
  var endpointMiddleware = ({ config, instructions }) => {
4021
3775
  return (next, context) => async (args) => {
4022
3776
  if (config.isCustomEndpoint) {
@@ -4051,7 +3805,7 @@ var endpointMiddleware = ({ config, instructions }) => {
4051
3805
  };
4052
3806
  };
4053
3807
 
4054
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
3808
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
4055
3809
  var endpointMiddlewareOptions = {
4056
3810
  step: "serialize",
4057
3811
  tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
@@ -4069,7 +3823,7 @@ var getEndpointPlugin = (config, instructions) => ({
4069
3823
  }
4070
3824
  });
4071
3825
 
4072
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
3826
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
4073
3827
  var resolveEndpointConfig = (input) => {
4074
3828
  const tls = input.tls ?? true;
4075
3829
  const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
@@ -4092,7 +3846,7 @@ var resolveEndpointConfig = (input) => {
4092
3846
  return resolvedConfig;
4093
3847
  };
4094
3848
 
4095
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/configurations.js
3849
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/configurations.js
4096
3850
  var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
4097
3851
  var CONFIG_MAX_ATTEMPTS = "max_attempts";
4098
3852
  var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
@@ -4259,11 +4013,52 @@ var NoOpLogger = class {
4259
4013
  }
4260
4014
  };
4261
4015
 
4262
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
4016
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
4263
4017
  import { Readable } from "stream";
4264
4018
  var isStreamingPayload = (request) => request?.body instanceof Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream;
4265
4019
 
4266
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/util.js
4020
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js
4021
+ function parseRetryAfterHeader(response, logger) {
4022
+ if (!HttpResponse.isInstance(response)) {
4023
+ return;
4024
+ }
4025
+ for (const header of Object.keys(response.headers)) {
4026
+ const h = header.toLowerCase();
4027
+ if (h === "retry-after") {
4028
+ const retryAfter = response.headers[header];
4029
+ let retryAfterSeconds = NaN;
4030
+ if (retryAfter.endsWith("GMT")) {
4031
+ try {
4032
+ const date2 = parseRfc7231DateTime(retryAfter);
4033
+ retryAfterSeconds = (date2.getTime() - Date.now()) / 1e3;
4034
+ } catch (e) {
4035
+ logger?.trace?.("Failed to parse retry-after header");
4036
+ logger?.trace?.(e);
4037
+ }
4038
+ } else if (retryAfter.match(/ GMT, ((\d+)|(\d+\.\d+))$/)) {
4039
+ retryAfterSeconds = Number(retryAfter.match(/ GMT, ([\d.]+)$/)?.[1]);
4040
+ } else if (retryAfter.match(/^((\d+)|(\d+\.\d+))$/)) {
4041
+ retryAfterSeconds = Number(retryAfter);
4042
+ } else if (Date.parse(retryAfter) >= Date.now()) {
4043
+ retryAfterSeconds = (Date.parse(retryAfter) - Date.now()) / 1e3;
4044
+ }
4045
+ if (isNaN(retryAfterSeconds)) {
4046
+ return;
4047
+ }
4048
+ return new Date(Date.now() + retryAfterSeconds * 1e3);
4049
+ } else if (h === "x-amz-retry-after") {
4050
+ const v = response.headers[header];
4051
+ const backoffMilliseconds = Number(v);
4052
+ if (isNaN(backoffMilliseconds)) {
4053
+ logger?.trace?.(`Failed to parse x-amz-retry-after=${v}`);
4054
+ return;
4055
+ }
4056
+ return new Date(Date.now() + backoffMilliseconds);
4057
+ }
4058
+ }
4059
+ }
4060
+
4061
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/util.js
4267
4062
  var asSdkError = (error) => {
4268
4063
  if (error instanceof Error)
4269
4064
  return error;
@@ -4274,13 +4069,13 @@ var asSdkError = (error) => {
4274
4069
  return new Error(`AWS SDK error wrapper for ${error}`);
4275
4070
  };
4276
4071
 
4277
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
4072
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
4278
4073
  var retryMiddleware = (options) => (next, context) => async (args) => {
4279
4074
  let retryStrategy = await options.retryStrategy();
4280
4075
  const maxAttempts = await options.maxAttempts();
4281
4076
  if (isRetryStrategyV2(retryStrategy)) {
4282
4077
  retryStrategy = retryStrategy;
4283
- let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]);
4078
+ let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : ""));
4284
4079
  let lastError = new Error();
4285
4080
  let attempts = 0;
4286
4081
  let totalRetryDelay = 0;
@@ -4300,7 +4095,7 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
4300
4095
  output.$metadata.totalRetryDelay = totalRetryDelay;
4301
4096
  return { response, output };
4302
4097
  } catch (e) {
4303
- const retryErrorInfo = getRetryErrorInfo(e);
4098
+ const retryErrorInfo = getRetryErrorInfo(e, options.logger);
4304
4099
  lastError = asSdkError(e);
4305
4100
  if (isRequest && isStreamingPayload(request)) {
4306
4101
  (context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request.");
@@ -4309,6 +4104,9 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
4309
4104
  try {
4310
4105
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
4311
4106
  } catch (refreshError) {
4107
+ if (typeof refreshError.$backoff === "number") {
4108
+ await cooldown(refreshError.$backoff);
4109
+ }
4312
4110
  if (!lastError.$metadata) {
4313
4111
  lastError.$metadata = {};
4314
4112
  }
@@ -4319,23 +4117,25 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
4319
4117
  attempts = retryToken.getRetryCount();
4320
4118
  const delay = retryToken.getRetryDelay();
4321
4119
  totalRetryDelay += delay;
4322
- await new Promise((resolve) => setTimeout(resolve, delay));
4120
+ await cooldown(delay);
4323
4121
  }
4324
4122
  }
4325
4123
  } else {
4326
4124
  retryStrategy = retryStrategy;
4327
- if (retryStrategy?.mode)
4125
+ if (retryStrategy?.mode) {
4328
4126
  context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
4127
+ }
4329
4128
  return retryStrategy.retry(next, args);
4330
4129
  }
4331
4130
  };
4131
+ var cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
4332
4132
  var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
4333
- var getRetryErrorInfo = (error) => {
4133
+ var getRetryErrorInfo = (error, logger) => {
4334
4134
  const errorInfo = {
4335
4135
  error,
4336
4136
  errorType: getRetryErrorType(error)
4337
4137
  };
4338
- const retryAfterHint = getRetryAfterHint(error.$response);
4138
+ const retryAfterHint = parseRetryAfterHeader(error.$response, logger);
4339
4139
  if (retryAfterHint) {
4340
4140
  errorInfo.retryAfterHint = retryAfterHint;
4341
4141
  }
@@ -4362,19 +4162,6 @@ var getRetryPlugin = (options) => ({
4362
4162
  clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
4363
4163
  }
4364
4164
  });
4365
- var getRetryAfterHint = (response) => {
4366
- if (!HttpResponse.isInstance(response))
4367
- return;
4368
- const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
4369
- if (!retryAfterHeaderName)
4370
- return;
4371
- const retryAfter = response.headers[retryAfterHeaderName];
4372
- const retryAfterSeconds = Number(retryAfter);
4373
- if (!Number.isNaN(retryAfterSeconds))
4374
- return new Date(retryAfterSeconds * 1e3);
4375
- const retryAfterDate = new Date(retryAfter);
4376
- return retryAfterDate;
4377
- };
4378
4165
 
4379
4166
  // ../node_modules/.bun/@smithy+util-config-provider@4.2.2/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
4380
4167
  var booleanSelector = (obj, key, type) => {
@@ -4394,7 +4181,7 @@ var SelectorType;
4394
4181
  SelectorType2["CONFIG"] = "shared config entry";
4395
4182
  })(SelectorType || (SelectorType = {}));
4396
4183
 
4397
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
4184
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
4398
4185
  var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
4399
4186
  var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
4400
4187
  var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
@@ -4403,7 +4190,7 @@ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
4403
4190
  default: false
4404
4191
  };
4405
4192
 
4406
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
4193
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
4407
4194
  var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
4408
4195
  var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
4409
4196
  var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
@@ -4412,7 +4199,7 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
4412
4199
  default: false
4413
4200
  };
4414
4201
 
4415
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
4202
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
4416
4203
  var REGION_ENV_NAME = "AWS_REGION";
4417
4204
  var REGION_INI_NAME = "region";
4418
4205
  var NODE_REGION_CONFIG_OPTIONS = {
@@ -4426,16 +4213,16 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
4426
4213
  preferredFile: "credentials"
4427
4214
  };
4428
4215
 
4429
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
4216
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
4430
4217
  var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
4431
4218
 
4432
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
4219
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
4433
4220
  var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
4434
4221
 
4435
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
4222
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
4436
4223
  var isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5;
4437
4224
 
4438
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
4225
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
4439
4226
  var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
4440
4227
  const clockTimeInMs = Date.parse(clockTime);
4441
4228
  if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
@@ -4444,7 +4231,7 @@ var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
4444
4231
  return currentSystemClockOffset;
4445
4232
  };
4446
4233
 
4447
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
4234
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
4448
4235
  var throwSigningPropertyError = (name, property) => {
4449
4236
  if (!property) {
4450
4237
  throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
@@ -4515,13 +4302,31 @@ var AwsSdkSigV4Signer = class {
4515
4302
  }
4516
4303
  };
4517
4304
 
4518
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
4305
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
4306
+ var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
4307
+ async sign(httpRequest, identity, signingProperties) {
4308
+ if (!HttpRequest.isInstance(httpRequest)) {
4309
+ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
4310
+ }
4311
+ const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
4312
+ const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
4313
+ const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(",");
4314
+ const signedRequest = await signer.sign(httpRequest, {
4315
+ signingDate: getSkewCorrectedDate(config.systemClockOffset),
4316
+ signingRegion: multiRegionOverride,
4317
+ signingService: signingName
4318
+ });
4319
+ return signedRequest;
4320
+ }
4321
+ };
4322
+
4323
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
4519
4324
  var getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
4520
4325
 
4521
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
4326
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
4522
4327
  var getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`;
4523
4328
 
4524
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
4329
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
4525
4330
  var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
4526
4331
  var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
4527
4332
  var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
@@ -4543,7 +4348,32 @@ var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
4543
4348
  default: []
4544
4349
  };
4545
4350
 
4546
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/constants.js
4351
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js
4352
+ var resolveAwsSdkSigV4AConfig = (config) => {
4353
+ config.sigv4aSigningRegionSet = normalizeProvider2(config.sigv4aSigningRegionSet);
4354
+ return config;
4355
+ };
4356
+ var NODE_SIGV4A_CONFIG_OPTIONS = {
4357
+ environmentVariableSelector(env2) {
4358
+ if (env2.AWS_SIGV4A_SIGNING_REGION_SET) {
4359
+ return env2.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
4360
+ }
4361
+ throw new ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
4362
+ tryNextLink: true
4363
+ });
4364
+ },
4365
+ configFileSelector(profile) {
4366
+ if (profile.sigv4a_signing_region_set) {
4367
+ return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
4368
+ }
4369
+ throw new ProviderError("sigv4a_signing_region_set not set in profile.", {
4370
+ tryNextLink: true
4371
+ });
4372
+ },
4373
+ default: void 0
4374
+ };
4375
+
4376
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/constants.js
4547
4377
  var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
4548
4378
  var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
4549
4379
  var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
@@ -4584,7 +4414,7 @@ var MAX_CACHE_SIZE = 50;
4584
4414
  var KEY_TYPE_IDENTIFIER = "aws4_request";
4585
4415
  var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
4586
4416
 
4587
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
4417
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
4588
4418
  var signingKeyCache = {};
4589
4419
  var cacheQueue = [];
4590
4420
  var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`;
@@ -4610,7 +4440,7 @@ var hmac = (ctor, secret, data) => {
4610
4440
  return hash.digest();
4611
4441
  };
4612
4442
 
4613
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
4443
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
4614
4444
  var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
4615
4445
  const canonical = {};
4616
4446
  for (const headerName of Object.keys(headers).sort()) {
@@ -4628,7 +4458,7 @@ var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
4628
4458
  return canonical;
4629
4459
  };
4630
4460
 
4631
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
4461
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
4632
4462
  var getPayloadHash = async ({ headers, body }, hashConstructor) => {
4633
4463
  for (const headerName of Object.keys(headers)) {
4634
4464
  if (headerName.toLowerCase() === SHA256_HEADER) {
@@ -4645,7 +4475,7 @@ var getPayloadHash = async ({ headers, body }, hashConstructor) => {
4645
4475
  return UNSIGNED_PAYLOAD;
4646
4476
  };
4647
4477
 
4648
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
4478
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
4649
4479
  var HeaderFormatter = class {
4650
4480
  format(headers) {
4651
4481
  const chunks = [];
@@ -4771,7 +4601,7 @@ function negate(bytes) {
4771
4601
  }
4772
4602
  }
4773
4603
 
4774
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
4604
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
4775
4605
  var hasHeader = (soughtHeader, headers) => {
4776
4606
  soughtHeader = soughtHeader.toLowerCase();
4777
4607
  for (const headerName of Object.keys(headers)) {
@@ -4782,7 +4612,7 @@ var hasHeader = (soughtHeader, headers) => {
4782
4612
  return false;
4783
4613
  };
4784
4614
 
4785
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
4615
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
4786
4616
  var moveHeadersToQuery = (request, options = {}) => {
4787
4617
  const { headers, query = {} } = HttpRequest.clone(request);
4788
4618
  for (const name of Object.keys(headers)) {
@@ -4799,7 +4629,7 @@ var moveHeadersToQuery = (request, options = {}) => {
4799
4629
  };
4800
4630
  };
4801
4631
 
4802
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
4632
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
4803
4633
  var prepareRequest = (request) => {
4804
4634
  request = HttpRequest.clone(request);
4805
4635
  for (const headerName of Object.keys(request.headers)) {
@@ -4810,7 +4640,7 @@ var prepareRequest = (request) => {
4810
4640
  return request;
4811
4641
  };
4812
4642
 
4813
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
4643
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
4814
4644
  var getCanonicalQuery = ({ query = {} }) => {
4815
4645
  const keys = [];
4816
4646
  const serialized = {};
@@ -4830,7 +4660,7 @@ var getCanonicalQuery = ({ query = {} }) => {
4830
4660
  return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&");
4831
4661
  };
4832
4662
 
4833
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/utilDate.js
4663
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/utilDate.js
4834
4664
  var iso8601 = (time2) => toDate(time2).toISOString().replace(/\.\d{3}Z$/, "Z");
4835
4665
  var toDate = (time2) => {
4836
4666
  if (typeof time2 === "number") {
@@ -4845,7 +4675,7 @@ var toDate = (time2) => {
4845
4675
  return time2;
4846
4676
  };
4847
4677
 
4848
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
4678
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
4849
4679
  var SignatureV4Base = class {
4850
4680
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
4851
4681
  __publicField(this, "service");
@@ -4917,7 +4747,7 @@ ${toHex(hashedRequest)}`;
4917
4747
  }
4918
4748
  };
4919
4749
 
4920
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
4750
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
4921
4751
  var SignatureV4 = class extends SignatureV4Base {
4922
4752
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
4923
4753
  super({
@@ -4964,7 +4794,7 @@ var SignatureV4 = class extends SignatureV4Base {
4964
4794
  return this.signRequest(toSign, options);
4965
4795
  }
4966
4796
  }
4967
- async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) {
4797
+ async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials }) {
4968
4798
  const region = signingRegion ?? await this.regionProvider();
4969
4799
  const { shortDate, longDate } = this.formatDate(signingDate);
4970
4800
  const scope = createScope(shortDate, region, signingService ?? this.service);
@@ -4980,9 +4810,14 @@ var SignatureV4 = class extends SignatureV4Base {
4980
4810
  hashedHeaders,
4981
4811
  hashedPayload
4982
4812
  ].join("\n");
4983
- return this.signString(stringToSign, { signingDate, signingRegion: region, signingService });
4813
+ return this.signString(stringToSign, {
4814
+ signingDate,
4815
+ signingRegion: region,
4816
+ signingService,
4817
+ eventStreamCredentials
4818
+ });
4984
4819
  }
4985
- async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) {
4820
+ async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService, eventStreamCredentials }) {
4986
4821
  const promise = this.signEvent({
4987
4822
  headers: this.headerFormatter.format(signableMessage.message.headers),
4988
4823
  payload: signableMessage.message.body
@@ -4990,14 +4825,15 @@ var SignatureV4 = class extends SignatureV4Base {
4990
4825
  signingDate,
4991
4826
  signingRegion,
4992
4827
  signingService,
4993
- priorSignature: signableMessage.priorSignature
4828
+ priorSignature: signableMessage.priorSignature,
4829
+ eventStreamCredentials
4994
4830
  });
4995
4831
  return promise.then((signature) => {
4996
4832
  return { message: signableMessage.message, signature };
4997
4833
  });
4998
4834
  }
4999
- async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) {
5000
- const credentials = await this.credentialProvider();
4835
+ async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService, eventStreamCredentials } = {}) {
4836
+ const credentials = eventStreamCredentials ?? await this.credentialProvider();
5001
4837
  this.validateResolvedCredentials(credentials);
5002
4838
  const region = signingRegion ?? await this.regionProvider();
5003
4839
  const { shortDate } = this.formatDate(signingDate);
@@ -5036,7 +4872,7 @@ var SignatureV4 = class extends SignatureV4Base {
5036
4872
  }
5037
4873
  };
5038
4874
 
5039
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
4875
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
5040
4876
  var resolveAwsSdkSigV4Config = (config) => {
5041
4877
  let inputCredentials = config.credentials;
5042
4878
  let isUserSupplied = !!config.credentials;
@@ -5165,10 +5001,10 @@ function bindCallerConfig(config, credentialsProvider) {
5165
5001
  return fn;
5166
5002
  }
5167
5003
 
5168
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/package.json
5004
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/package.json
5169
5005
  var package_default = {
5170
5006
  name: "@aws-sdk/nested-clients",
5171
- version: "3.996.18",
5007
+ version: "3.997.6",
5172
5008
  description: "Nested clients for AWS SDK packages.",
5173
5009
  main: "./dist-cjs/index.js",
5174
5010
  module: "./dist-es/index.js",
@@ -5197,40 +5033,41 @@ var package_default = {
5197
5033
  dependencies: {
5198
5034
  "@aws-crypto/sha256-browser": "5.2.0",
5199
5035
  "@aws-crypto/sha256-js": "5.2.0",
5200
- "@aws-sdk/core": "^3.973.26",
5201
- "@aws-sdk/middleware-host-header": "^3.972.8",
5202
- "@aws-sdk/middleware-logger": "^3.972.8",
5203
- "@aws-sdk/middleware-recursion-detection": "^3.972.9",
5204
- "@aws-sdk/middleware-user-agent": "^3.972.28",
5205
- "@aws-sdk/region-config-resolver": "^3.972.10",
5206
- "@aws-sdk/types": "^3.973.6",
5207
- "@aws-sdk/util-endpoints": "^3.996.5",
5208
- "@aws-sdk/util-user-agent-browser": "^3.972.8",
5209
- "@aws-sdk/util-user-agent-node": "^3.973.14",
5210
- "@smithy/config-resolver": "^4.4.13",
5211
- "@smithy/core": "^3.23.13",
5212
- "@smithy/fetch-http-handler": "^5.3.15",
5213
- "@smithy/hash-node": "^4.2.12",
5214
- "@smithy/invalid-dependency": "^4.2.12",
5215
- "@smithy/middleware-content-length": "^4.2.12",
5216
- "@smithy/middleware-endpoint": "^4.4.28",
5217
- "@smithy/middleware-retry": "^4.4.46",
5218
- "@smithy/middleware-serde": "^4.2.16",
5219
- "@smithy/middleware-stack": "^4.2.12",
5220
- "@smithy/node-config-provider": "^4.3.12",
5221
- "@smithy/node-http-handler": "^4.5.1",
5222
- "@smithy/protocol-http": "^5.3.12",
5223
- "@smithy/smithy-client": "^4.12.8",
5224
- "@smithy/types": "^4.13.1",
5225
- "@smithy/url-parser": "^4.2.12",
5036
+ "@aws-sdk/core": "^3.974.8",
5037
+ "@aws-sdk/middleware-host-header": "^3.972.10",
5038
+ "@aws-sdk/middleware-logger": "^3.972.10",
5039
+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",
5040
+ "@aws-sdk/middleware-user-agent": "^3.972.38",
5041
+ "@aws-sdk/region-config-resolver": "^3.972.13",
5042
+ "@aws-sdk/signature-v4-multi-region": "^3.996.25",
5043
+ "@aws-sdk/types": "^3.973.8",
5044
+ "@aws-sdk/util-endpoints": "^3.996.8",
5045
+ "@aws-sdk/util-user-agent-browser": "^3.972.10",
5046
+ "@aws-sdk/util-user-agent-node": "^3.973.24",
5047
+ "@smithy/config-resolver": "^4.4.17",
5048
+ "@smithy/core": "^3.23.17",
5049
+ "@smithy/fetch-http-handler": "^5.3.17",
5050
+ "@smithy/hash-node": "^4.2.14",
5051
+ "@smithy/invalid-dependency": "^4.2.14",
5052
+ "@smithy/middleware-content-length": "^4.2.14",
5053
+ "@smithy/middleware-endpoint": "^4.4.32",
5054
+ "@smithy/middleware-retry": "^4.5.7",
5055
+ "@smithy/middleware-serde": "^4.2.20",
5056
+ "@smithy/middleware-stack": "^4.2.14",
5057
+ "@smithy/node-config-provider": "^4.3.14",
5058
+ "@smithy/node-http-handler": "^4.6.1",
5059
+ "@smithy/protocol-http": "^5.3.14",
5060
+ "@smithy/smithy-client": "^4.12.13",
5061
+ "@smithy/types": "^4.14.1",
5062
+ "@smithy/url-parser": "^4.2.14",
5226
5063
  "@smithy/util-base64": "^4.3.2",
5227
5064
  "@smithy/util-body-length-browser": "^4.2.2",
5228
5065
  "@smithy/util-body-length-node": "^4.2.3",
5229
- "@smithy/util-defaults-mode-browser": "^4.3.44",
5230
- "@smithy/util-defaults-mode-node": "^4.2.48",
5231
- "@smithy/util-endpoints": "^3.3.3",
5232
- "@smithy/util-middleware": "^4.2.12",
5233
- "@smithy/util-retry": "^4.2.13",
5066
+ "@smithy/util-defaults-mode-browser": "^4.3.49",
5067
+ "@smithy/util-defaults-mode-node": "^4.2.54",
5068
+ "@smithy/util-endpoints": "^3.4.2",
5069
+ "@smithy/util-middleware": "^4.2.14",
5070
+ "@smithy/util-retry": "^4.3.6",
5234
5071
  "@smithy/util-utf8": "^4.2.2",
5235
5072
  tslib: "^2.6.2"
5236
5073
  },
@@ -5314,11 +5151,11 @@ var package_default = {
5314
5151
  }
5315
5152
  };
5316
5153
 
5317
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5154
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5318
5155
  import { platform, release } from "os";
5319
5156
  import { env } from "process";
5320
5157
 
5321
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js
5158
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js
5322
5159
  import { versions } from "process";
5323
5160
  var getRuntimeUserAgentPair = () => {
5324
5161
  const runtimesToCheck = ["deno", "bun", "llrt"];
@@ -5330,11 +5167,11 @@ var getRuntimeUserAgentPair = () => {
5330
5167
  return ["md/nodejs", versions.node];
5331
5168
  };
5332
5169
 
5333
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5170
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5334
5171
  import { readFile } from "fs/promises";
5335
5172
  import { join } from "path";
5336
5173
 
5337
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js
5174
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js
5338
5175
  import { normalize, sep } from "path";
5339
5176
  var getNodeModulesParentDirs = (dirname) => {
5340
5177
  const cwd = process.cwd();
@@ -5351,7 +5188,7 @@ var getNodeModulesParentDirs = (dirname) => {
5351
5188
  return [parentDir, cwd];
5352
5189
  };
5353
5190
 
5354
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js
5191
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js
5355
5192
  var 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-]+)*)?$/;
5356
5193
  var getSanitizedTypeScriptVersion = (version = "") => {
5357
5194
  const match = version.match(SEMVER_REGEX);
@@ -5362,7 +5199,7 @@ var getSanitizedTypeScriptVersion = (version = "") => {
5362
5199
  return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
5363
5200
  };
5364
5201
 
5365
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js
5202
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js
5366
5203
  var ALLOWED_PREFIXES = ["^", "~", ">=", "<=", ">", "<"];
5367
5204
  var ALLOWED_DIST_TAGS = ["latest", "beta", "dev", "rc", "insiders", "next"];
5368
5205
  var getSanitizedDevTypeScriptVersion = (version = "") => {
@@ -5377,7 +5214,7 @@ var getSanitizedDevTypeScriptVersion = (version = "") => {
5377
5214
  return `${prefix}${sanitizedTypeScriptVersion}`;
5378
5215
  };
5379
5216
 
5380
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5217
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5381
5218
  var tscVersion;
5382
5219
  var TS_PACKAGE_JSON = join("node_modules", "typescript", "package.json");
5383
5220
  var getTypeScriptUserAgentPair = async () => {
@@ -5444,12 +5281,12 @@ var getTypeScriptUserAgentPair = async () => {
5444
5281
  return ["md/tsc", tscVersion];
5445
5282
  };
5446
5283
 
5447
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js
5284
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js
5448
5285
  var crtAvailability = {
5449
5286
  isCrtAvailable: false
5450
5287
  };
5451
5288
 
5452
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
5289
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
5453
5290
  var isCrtAvailable = () => {
5454
5291
  if (crtAvailability.isCrtAvailable) {
5455
5292
  return ["md/crt-avail"];
@@ -5457,7 +5294,7 @@ var isCrtAvailable = () => {
5457
5294
  return null;
5458
5295
  };
5459
5296
 
5460
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5297
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5461
5298
  var createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
5462
5299
  const runtimeUserAgentPair = getRuntimeUserAgentPair();
5463
5300
  return async (config) => {
@@ -5488,7 +5325,7 @@ var createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
5488
5325
  };
5489
5326
  };
5490
5327
 
5491
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
5328
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
5492
5329
  var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
5493
5330
  var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
5494
5331
  var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
@@ -5498,7 +5335,7 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
5498
5335
  default: DEFAULT_UA_APP_ID
5499
5336
  };
5500
5337
 
5501
- // ../node_modules/.bun/@smithy+hash-node@4.2.12/node_modules/@smithy/hash-node/dist-es/index.js
5338
+ // ../node_modules/.bun/@smithy+hash-node@4.2.14/node_modules/@smithy/hash-node/dist-es/index.js
5502
5339
  import { Buffer as Buffer2 } from "buffer";
5503
5340
  import { createHash, createHmac } from "crypto";
5504
5341
  var Hash = class {
@@ -5557,7 +5394,7 @@ var calculateBodyLength = (body) => {
5557
5394
  throw new Error(`Body Length computation failed for ${body}`);
5558
5395
  };
5559
5396
 
5560
- // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.48/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
5397
+ // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.54/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
5561
5398
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
5562
5399
  var AWS_REGION_ENV = "AWS_REGION";
5563
5400
  var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
@@ -5565,7 +5402,7 @@ var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
5565
5402
  var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
5566
5403
  var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
5567
5404
 
5568
- // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.48/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js
5405
+ // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.54/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js
5569
5406
  var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
5570
5407
  var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
5571
5408
  var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
@@ -5578,7 +5415,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
5578
5415
  default: "legacy"
5579
5416
  };
5580
5417
 
5581
- // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.48/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
5418
+ // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.54/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
5582
5419
  var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
5583
5420
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
5584
5421
  switch (mode?.toLowerCase()) {
@@ -5617,7 +5454,7 @@ var inferPhysicalRegion = async () => {
5617
5454
  }
5618
5455
  if (!process.env[ENV_IMDS_DISABLED]) {
5619
5456
  try {
5620
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-XKOZULQT.mjs");
5457
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-76ZS5ZGX.mjs");
5621
5458
  const endpoint = await getInstanceMetadataEndpoint();
5622
5459
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
5623
5460
  } catch (e) {
@@ -5625,7 +5462,7 @@ var inferPhysicalRegion = async () => {
5625
5462
  }
5626
5463
  };
5627
5464
 
5628
- // ../node_modules/.bun/@aws-sdk+region-config-resolver@3.972.10/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
5465
+ // ../node_modules/.bun/@aws-sdk+region-config-resolver@3.972.13/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
5629
5466
  var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
5630
5467
  return {
5631
5468
  setRegion(region) {
@@ -5642,7 +5479,7 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
5642
5479
  };
5643
5480
  };
5644
5481
 
5645
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
5482
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
5646
5483
  var ProtocolLib = class {
5647
5484
  constructor(queryCompat = false) {
5648
5485
  __publicField(this, "queryCompat");
@@ -5724,12 +5561,11 @@ var ProtocolLib = class {
5724
5561
  if (msg) {
5725
5562
  error.message = msg;
5726
5563
  }
5727
- error.Error = {
5728
- ...error.Error,
5729
- Type: error.Error?.Type,
5730
- Code: error.Error?.Code,
5731
- Message: error.Error?.message ?? error.Error?.Message ?? msg
5732
- };
5564
+ const errorObj = error.Error ?? {};
5565
+ errorObj.Type = error.Error?.Type;
5566
+ errorObj.Code = error.Error?.Code;
5567
+ errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
5568
+ error.Error = errorObj;
5733
5569
  const reqId = error.$metadata.requestId;
5734
5570
  if (reqId) {
5735
5571
  error.RequestId = reqId;
@@ -5742,14 +5578,16 @@ var ProtocolLib = class {
5742
5578
  const queryErrorHeader = response.headers?.["x-amzn-query-error"];
5743
5579
  if (output !== void 0 && queryErrorHeader != null) {
5744
5580
  const [Code, Type] = queryErrorHeader.split(";");
5745
- const entries = Object.entries(output);
5581
+ const keys = Object.keys(output);
5746
5582
  const Error2 = {
5747
5583
  Code,
5748
5584
  Type
5749
5585
  };
5750
- Object.assign(output, Error2);
5751
- for (const [k, v] of entries) {
5752
- Error2[k === "message" ? "Message" : k] = v;
5586
+ output.Code = Code;
5587
+ output.Type = Type;
5588
+ for (let i = 0; i < keys.length; i++) {
5589
+ const k = keys[i];
5590
+ Error2[k === "message" ? "Message" : k] = output[k];
5753
5591
  }
5754
5592
  delete Error2.__type;
5755
5593
  output.Error = Error2;
@@ -5770,12 +5608,12 @@ var ProtocolLib = class {
5770
5608
  try {
5771
5609
  return registry.getSchema(errorName);
5772
5610
  } catch (e) {
5773
- return registry.find((schema) => NormalizedSchema2.of(schema).getMergedTraits().awsQueryError?.[0] === errorName);
5611
+ return registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName);
5774
5612
  }
5775
5613
  }
5776
5614
  };
5777
5615
 
5778
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
5616
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
5779
5617
  var SerdeContextConfig = class {
5780
5618
  constructor() {
5781
5619
  __publicField(this, "serdeContext");
@@ -5785,7 +5623,7 @@ var SerdeContextConfig = class {
5785
5623
  }
5786
5624
  };
5787
5625
 
5788
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
5626
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
5789
5627
  var UnionSerde = class {
5790
5628
  constructor(from, to) {
5791
5629
  __publicField(this, "from");
@@ -5793,7 +5631,10 @@ var UnionSerde = class {
5793
5631
  __publicField(this, "keys");
5794
5632
  this.from = from;
5795
5633
  this.to = to;
5796
- this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type"));
5634
+ const keys = Object.keys(this.from);
5635
+ const set = new Set(keys);
5636
+ set.delete("__type");
5637
+ this.keys = set;
5797
5638
  }
5798
5639
  mark(key) {
5799
5640
  this.keys.delete(key);
@@ -5814,6 +5655,7 @@ export {
5814
5655
  getHttpHandlerExtensionConfiguration,
5815
5656
  resolveHttpHandlerRuntimeConfig,
5816
5657
  emitWarningIfUnsupportedVersion,
5658
+ DEFAULT_RETRY_MODE,
5817
5659
  getSmithyContext,
5818
5660
  normalizeProvider,
5819
5661
  resolveHostHeaderConfig,
@@ -5821,23 +5663,14 @@ export {
5821
5663
  getLoggerPlugin,
5822
5664
  getRecursionDetectionPlugin,
5823
5665
  Client,
5824
- v4,
5825
- Command,
5826
- ServiceException,
5827
- loadConfigsForDefaultMode,
5828
- emitWarningIfUnsupportedVersion2,
5829
- getDefaultExtensionConfiguration,
5830
- resolveDefaultRuntimeConfig,
5831
- NoOpLogger,
5832
- getHttpAuthSchemeEndpointRuleSetPlugin,
5833
- getHttpSigningPlugin,
5834
5666
  collectBody,
5835
5667
  extendedEncodeURIComponent,
5836
- deref2 as deref,
5668
+ deref,
5837
5669
  getSchemaSerdePlugin,
5838
- translateTraits2 as translateTraits,
5839
- NormalizedSchema2 as NormalizedSchema,
5670
+ translateTraits,
5671
+ NormalizedSchema,
5840
5672
  TypeRegistry,
5673
+ v4,
5841
5674
  LazyJsonString,
5842
5675
  splitHeader,
5843
5676
  NumericValue,
@@ -5845,17 +5678,27 @@ export {
5845
5678
  HttpProtocol,
5846
5679
  determineTimestampFormat,
5847
5680
  FromStringShapeDeserializer,
5681
+ Command,
5682
+ ServiceException,
5683
+ loadConfigsForDefaultMode,
5684
+ emitWarningIfUnsupportedVersion2,
5685
+ getDefaultExtensionConfiguration,
5686
+ resolveDefaultRuntimeConfig,
5687
+ NoOpLogger,
5688
+ SignatureV4,
5689
+ getHttpAuthSchemeEndpointRuleSetPlugin,
5690
+ getHttpSigningPlugin,
5848
5691
  DefaultIdentityProviderConfig,
5849
5692
  NoAuthSigner,
5850
5693
  ProtocolLib,
5851
5694
  SerdeContextConfig,
5852
5695
  UnionSerde,
5853
5696
  resolveUserAgentConfig,
5697
+ BinaryDecisionDiagram,
5854
5698
  EndpointCache,
5855
5699
  customEndpointFunctions,
5856
- resolveEndpoint,
5700
+ decideEndpoint,
5857
5701
  awsEndpointFunctions,
5858
- DEFAULT_RETRY_MODE,
5859
5702
  getUserAgentPlugin,
5860
5703
  NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
5861
5704
  NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
@@ -5863,6 +5706,7 @@ export {
5863
5706
  NODE_REGION_CONFIG_FILE_OPTIONS,
5864
5707
  resolveRegionConfig,
5865
5708
  getContentLengthPlugin,
5709
+ resolveParams,
5866
5710
  getEndpointPlugin,
5867
5711
  resolveEndpointConfig,
5868
5712
  NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
@@ -5870,7 +5714,10 @@ export {
5870
5714
  NODE_RETRY_MODE_CONFIG_OPTIONS,
5871
5715
  getRetryPlugin,
5872
5716
  AwsSdkSigV4Signer,
5717
+ AwsSdkSigV4ASigner,
5873
5718
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
5719
+ resolveAwsSdkSigV4AConfig,
5720
+ NODE_SIGV4A_CONFIG_OPTIONS,
5874
5721
  resolveAwsSdkSigV4Config,
5875
5722
  package_default,
5876
5723
  createDefaultUserAgentProvider,