@probelabs/probe 0.6.0-rc136 → 0.6.0-rc138

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.
@@ -613,36 +613,9 @@ var require_dist_cjs2 = __commonJS({
613
613
 
614
614
  // node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js
615
615
  var require_dist_cjs3 = __commonJS({
616
- "node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2, module2) {
616
+ "node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2) {
617
617
  "use strict";
618
- var __defProp2 = Object.defineProperty;
619
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
620
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
621
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
622
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
623
- var __export2 = (target, all) => {
624
- for (var name14 in all)
625
- __defProp2(target, name14, { get: all[name14], enumerable: true });
626
- };
627
- var __copyProps2 = (to, from, except, desc) => {
628
- if (from && typeof from === "object" || typeof from === "function") {
629
- for (let key of __getOwnPropNames2(from))
630
- if (!__hasOwnProp2.call(to, key) && key !== except)
631
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
632
- }
633
- return to;
634
- };
635
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
636
- var index_exports = {};
637
- __export2(index_exports, {
638
- eventStreamHandlingMiddleware: () => eventStreamHandlingMiddleware,
639
- eventStreamHandlingMiddlewareOptions: () => eventStreamHandlingMiddlewareOptions,
640
- eventStreamHeaderMiddleware: () => eventStreamHeaderMiddleware,
641
- eventStreamHeaderMiddlewareOptions: () => eventStreamHeaderMiddlewareOptions,
642
- getEventStreamPlugin: () => getEventStreamPlugin,
643
- resolveEventStreamConfig: () => resolveEventStreamConfig
644
- });
645
- module2.exports = __toCommonJS2(index_exports);
618
+ var protocolHttp = require_dist_cjs2();
646
619
  function resolveEventStreamConfig(input) {
647
620
  const eventSigner = input.signer;
648
621
  const messageSigner = input.signer;
@@ -655,13 +628,12 @@ var require_dist_cjs3 = __commonJS({
655
628
  eventStreamPayloadHandler
656
629
  });
657
630
  }
658
- __name(resolveEventStreamConfig, "resolveEventStreamConfig");
659
- var import_protocol_http15 = require_dist_cjs2();
660
- var eventStreamHandlingMiddleware = /* @__PURE__ */ __name((options) => (next, context3) => async (args) => {
631
+ var eventStreamHandlingMiddleware = (options) => (next, context3) => async (args) => {
661
632
  const { request } = args;
662
- if (!import_protocol_http15.HttpRequest.isInstance(request)) return next(args);
633
+ if (!protocolHttp.HttpRequest.isInstance(request))
634
+ return next(args);
663
635
  return options.eventStreamPayloadHandler.handle(next, args, context3);
664
- }, "eventStreamHandlingMiddleware");
636
+ };
665
637
  var eventStreamHandlingMiddlewareOptions = {
666
638
  tags: ["EVENT_STREAM", "SIGNATURE", "HANDLE"],
667
639
  name: "eventStreamHandlingMiddleware",
@@ -669,9 +641,10 @@ var require_dist_cjs3 = __commonJS({
669
641
  toMiddleware: "awsAuthMiddleware",
670
642
  override: true
671
643
  };
672
- var eventStreamHeaderMiddleware = /* @__PURE__ */ __name((next) => async (args) => {
644
+ var eventStreamHeaderMiddleware = (next) => async (args) => {
673
645
  const { request } = args;
674
- if (!import_protocol_http15.HttpRequest.isInstance(request)) return next(args);
646
+ if (!protocolHttp.HttpRequest.isInstance(request))
647
+ return next(args);
675
648
  request.headers = {
676
649
  ...request.headers,
677
650
  "content-type": "application/vnd.amazon.eventstream",
@@ -681,59 +654,39 @@ var require_dist_cjs3 = __commonJS({
681
654
  ...args,
682
655
  request
683
656
  });
684
- }, "eventStreamHeaderMiddleware");
657
+ };
685
658
  var eventStreamHeaderMiddlewareOptions = {
686
659
  step: "build",
687
660
  tags: ["EVENT_STREAM", "HEADER", "CONTENT_TYPE", "CONTENT_SHA256"],
688
661
  name: "eventStreamHeaderMiddleware",
689
662
  override: true
690
663
  };
691
- var getEventStreamPlugin = /* @__PURE__ */ __name((options) => ({
692
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
664
+ var getEventStreamPlugin = (options) => ({
665
+ applyToStack: (clientStack) => {
693
666
  clientStack.addRelativeTo(eventStreamHandlingMiddleware(options), eventStreamHandlingMiddlewareOptions);
694
667
  clientStack.add(eventStreamHeaderMiddleware, eventStreamHeaderMiddlewareOptions);
695
- }, "applyToStack")
696
- }), "getEventStreamPlugin");
668
+ }
669
+ });
670
+ exports2.eventStreamHandlingMiddleware = eventStreamHandlingMiddleware;
671
+ exports2.eventStreamHandlingMiddlewareOptions = eventStreamHandlingMiddlewareOptions;
672
+ exports2.eventStreamHeaderMiddleware = eventStreamHeaderMiddleware;
673
+ exports2.eventStreamHeaderMiddlewareOptions = eventStreamHeaderMiddlewareOptions;
674
+ exports2.getEventStreamPlugin = getEventStreamPlugin;
675
+ exports2.resolveEventStreamConfig = resolveEventStreamConfig;
697
676
  }
698
677
  });
699
678
 
700
679
  // node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
701
680
  var require_dist_cjs4 = __commonJS({
702
- "node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2, module2) {
681
+ "node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2) {
703
682
  "use strict";
704
- var __defProp2 = Object.defineProperty;
705
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
706
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
707
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
708
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
709
- var __export2 = (target, all) => {
710
- for (var name14 in all)
711
- __defProp2(target, name14, { get: all[name14], enumerable: true });
712
- };
713
- var __copyProps2 = (to, from, except, desc) => {
714
- if (from && typeof from === "object" || typeof from === "function") {
715
- for (let key of __getOwnPropNames2(from))
716
- if (!__hasOwnProp2.call(to, key) && key !== except)
717
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
718
- }
719
- return to;
720
- };
721
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
722
- var index_exports = {};
723
- __export2(index_exports, {
724
- getHostHeaderPlugin: () => getHostHeaderPlugin3,
725
- hostHeaderMiddleware: () => hostHeaderMiddleware,
726
- hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions,
727
- resolveHostHeaderConfig: () => resolveHostHeaderConfig3
728
- });
729
- module2.exports = __toCommonJS2(index_exports);
730
- var import_protocol_http15 = require_dist_cjs2();
683
+ var protocolHttp = require_dist_cjs2();
731
684
  function resolveHostHeaderConfig3(input) {
732
685
  return input;
733
686
  }
734
- __name(resolveHostHeaderConfig3, "resolveHostHeaderConfig");
735
- var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
736
- if (!import_protocol_http15.HttpRequest.isInstance(args.request)) return next(args);
687
+ var hostHeaderMiddleware = (options) => (next) => async (args) => {
688
+ if (!protocolHttp.HttpRequest.isInstance(args.request))
689
+ return next(args);
737
690
  const { request } = args;
738
691
  const { handlerProtocol = "" } = options.requestHandler.metadata || {};
739
692
  if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
@@ -741,11 +694,12 @@ var require_dist_cjs4 = __commonJS({
741
694
  request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
742
695
  } else if (!request.headers["host"]) {
743
696
  let host = request.hostname;
744
- if (request.port != null) host += `:${request.port}`;
697
+ if (request.port != null)
698
+ host += `:${request.port}`;
745
699
  request.headers["host"] = host;
746
700
  }
747
701
  return next(args);
748
- }, "hostHeaderMiddleware");
702
+ };
749
703
  var hostHeaderMiddlewareOptions = {
750
704
  name: "hostHeaderMiddleware",
751
705
  step: "build",
@@ -753,44 +707,23 @@ var require_dist_cjs4 = __commonJS({
753
707
  tags: ["HOST"],
754
708
  override: true
755
709
  };
756
- var getHostHeaderPlugin3 = /* @__PURE__ */ __name((options) => ({
757
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
710
+ var getHostHeaderPlugin3 = (options) => ({
711
+ applyToStack: (clientStack) => {
758
712
  clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
759
- }, "applyToStack")
760
- }), "getHostHeaderPlugin");
713
+ }
714
+ });
715
+ exports2.getHostHeaderPlugin = getHostHeaderPlugin3;
716
+ exports2.hostHeaderMiddleware = hostHeaderMiddleware;
717
+ exports2.hostHeaderMiddlewareOptions = hostHeaderMiddlewareOptions;
718
+ exports2.resolveHostHeaderConfig = resolveHostHeaderConfig3;
761
719
  }
762
720
  });
763
721
 
764
722
  // node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
765
723
  var require_dist_cjs5 = __commonJS({
766
- "node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2, module2) {
724
+ "node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2) {
767
725
  "use strict";
768
- var __defProp2 = Object.defineProperty;
769
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
770
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
771
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
772
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
773
- var __export2 = (target, all) => {
774
- for (var name14 in all)
775
- __defProp2(target, name14, { get: all[name14], enumerable: true });
776
- };
777
- var __copyProps2 = (to, from, except, desc) => {
778
- if (from && typeof from === "object" || typeof from === "function") {
779
- for (let key of __getOwnPropNames2(from))
780
- if (!__hasOwnProp2.call(to, key) && key !== except)
781
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
782
- }
783
- return to;
784
- };
785
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
786
- var index_exports = {};
787
- __export2(index_exports, {
788
- getLoggerPlugin: () => getLoggerPlugin3,
789
- loggerMiddleware: () => loggerMiddleware,
790
- loggerMiddlewareOptions: () => loggerMiddlewareOptions
791
- });
792
- module2.exports = __toCommonJS2(index_exports);
793
- var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context3) => async (args) => {
726
+ var loggerMiddleware = () => (next, context3) => async (args) => {
794
727
  try {
795
728
  const response = await next(args);
796
729
  const { clientName, commandName, logger: logger2, dynamoDbDocumentClientOptions = {} } = context3;
@@ -819,18 +752,21 @@ var require_dist_cjs5 = __commonJS({
819
752
  });
820
753
  throw error2;
821
754
  }
822
- }, "loggerMiddleware");
755
+ };
823
756
  var loggerMiddlewareOptions = {
824
757
  name: "loggerMiddleware",
825
758
  tags: ["LOGGER"],
826
759
  step: "initialize",
827
760
  override: true
828
761
  };
829
- var getLoggerPlugin3 = /* @__PURE__ */ __name((options) => ({
830
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
762
+ var getLoggerPlugin3 = (options) => ({
763
+ applyToStack: (clientStack) => {
831
764
  clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
832
- }, "applyToStack")
833
- }), "getLoggerPlugin");
765
+ }
766
+ });
767
+ exports2.getLoggerPlugin = getLoggerPlugin3;
768
+ exports2.loggerMiddleware = loggerMiddleware;
769
+ exports2.loggerMiddlewareOptions = loggerMiddlewareOptions;
834
770
  }
835
771
  });
836
772
 
@@ -934,7 +870,7 @@ var require_recursionDetectionMiddleware = __commonJS({
934
870
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
935
871
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
936
872
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
937
- var recursionDetectionMiddleware2 = () => (next) => async (args) => {
873
+ var recursionDetectionMiddleware = () => (next) => async (args) => {
938
874
  const { request } = args;
939
875
  if (!protocol_http_1.HttpRequest.isInstance(request)) {
940
876
  return next(args);
@@ -956,38 +892,15 @@ var require_recursionDetectionMiddleware = __commonJS({
956
892
  request
957
893
  });
958
894
  };
959
- exports2.recursionDetectionMiddleware = recursionDetectionMiddleware2;
895
+ exports2.recursionDetectionMiddleware = recursionDetectionMiddleware;
960
896
  }
961
897
  });
962
898
 
963
899
  // node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
964
900
  var require_dist_cjs6 = __commonJS({
965
- "node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2, module2) {
901
+ "node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2) {
966
902
  "use strict";
967
- var __defProp2 = Object.defineProperty;
968
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
969
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
970
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
971
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
972
- var __export2 = (target, all) => {
973
- for (var name14 in all)
974
- __defProp2(target, name14, { get: all[name14], enumerable: true });
975
- };
976
- var __copyProps2 = (to, from, except, desc) => {
977
- if (from && typeof from === "object" || typeof from === "function") {
978
- for (let key of __getOwnPropNames2(from))
979
- if (!__hasOwnProp2.call(to, key) && key !== except)
980
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
981
- }
982
- return to;
983
- };
984
- var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
985
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
986
- var index_exports = {};
987
- __export2(index_exports, {
988
- getRecursionDetectionPlugin: () => getRecursionDetectionPlugin3
989
- });
990
- module2.exports = __toCommonJS2(index_exports);
903
+ var recursionDetectionMiddleware = require_recursionDetectionMiddleware();
991
904
  var recursionDetectionMiddlewareOptions = {
992
905
  step: "build",
993
906
  tags: ["RECURSION_DETECTION"],
@@ -995,13 +908,20 @@ var require_dist_cjs6 = __commonJS({
995
908
  override: true,
996
909
  priority: "low"
997
910
  };
998
- var import_recursionDetectionMiddleware = require_recursionDetectionMiddleware();
999
- var getRecursionDetectionPlugin3 = /* @__PURE__ */ __name((options) => ({
1000
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
1001
- clientStack.add((0, import_recursionDetectionMiddleware.recursionDetectionMiddleware)(), recursionDetectionMiddlewareOptions);
1002
- }, "applyToStack")
1003
- }), "getRecursionDetectionPlugin");
1004
- __reExport(index_exports, require_recursionDetectionMiddleware(), module2.exports);
911
+ var getRecursionDetectionPlugin3 = (options) => ({
912
+ applyToStack: (clientStack) => {
913
+ clientStack.add(recursionDetectionMiddleware.recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
914
+ }
915
+ });
916
+ exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin3;
917
+ Object.keys(recursionDetectionMiddleware).forEach(function(k3) {
918
+ if (k3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k3)) Object.defineProperty(exports2, k3, {
919
+ enumerable: true,
920
+ get: function() {
921
+ return recursionDetectionMiddleware[k3];
922
+ }
923
+ });
924
+ });
1005
925
  }
1006
926
  });
1007
927
 
@@ -6714,7 +6634,7 @@ var require_dist_cjs20 = __commonJS({
6714
6634
  }
6715
6635
  };
6716
6636
  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}$`);
6717
- var isIpAddress2 = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
6637
+ var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
6718
6638
  var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
6719
6639
  var isValidHostLabel = (value, allowSubDomains = false) => {
6720
6640
  if (!allowSubDomains) {
@@ -6742,7 +6662,7 @@ var require_dist_cjs20 = __commonJS({
6742
6662
  }
6743
6663
  return JSON.stringify(input, null, 2);
6744
6664
  }
6745
- var EndpointError2 = class extends Error {
6665
+ var EndpointError = class extends Error {
6746
6666
  constructor(message) {
6747
6667
  super(message);
6748
6668
  this.name = "EndpointError";
@@ -6756,11 +6676,11 @@ var require_dist_cjs20 = __commonJS({
6756
6676
  const squareBracketIndex = part.indexOf("[");
6757
6677
  if (squareBracketIndex !== -1) {
6758
6678
  if (part.indexOf("]") !== part.length - 1) {
6759
- throw new EndpointError2(`Path: '${path7}' does not end with ']'`);
6679
+ throw new EndpointError(`Path: '${path7}' does not end with ']'`);
6760
6680
  }
6761
6681
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
6762
6682
  if (Number.isNaN(parseInt(arrayIndex))) {
6763
- throw new EndpointError2(`Invalid array index: '${arrayIndex}' in path: '${path7}'`);
6683
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path7}'`);
6764
6684
  }
6765
6685
  if (squareBracketIndex !== 0) {
6766
6686
  pathList.push(part.slice(0, squareBracketIndex));
@@ -6774,7 +6694,7 @@ var require_dist_cjs20 = __commonJS({
6774
6694
  };
6775
6695
  var getAttr = (value, path7) => getAttrPathList(path7).reduce((acc, index) => {
6776
6696
  if (typeof acc !== "object") {
6777
- throw new EndpointError2(`Index '${index}' in '${path7}' not found in '${JSON.stringify(value)}'`);
6697
+ throw new EndpointError(`Index '${index}' in '${path7}' not found in '${JSON.stringify(value)}'`);
6778
6698
  } else if (Array.isArray(acc)) {
6779
6699
  return acc[parseInt(index)];
6780
6700
  }
@@ -6816,7 +6736,7 @@ var require_dist_cjs20 = __commonJS({
6816
6736
  if (!Object.values(types2.EndpointURLScheme).includes(scheme)) {
6817
6737
  return null;
6818
6738
  }
6819
- const isIp = isIpAddress2(hostname);
6739
+ const isIp = isIpAddress(hostname);
6820
6740
  const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
6821
6741
  const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
6822
6742
  return {
@@ -6898,7 +6818,7 @@ var require_dist_cjs20 = __commonJS({
6898
6818
  } else if (obj["ref"]) {
6899
6819
  return getReferenceValue(obj, options);
6900
6820
  }
6901
- throw new EndpointError2(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
6821
+ throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
6902
6822
  };
6903
6823
  var callFunction = ({ fn, argv }, options) => {
6904
6824
  const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
@@ -6910,7 +6830,7 @@ var require_dist_cjs20 = __commonJS({
6910
6830
  };
6911
6831
  var evaluateCondition = ({ assign: assign2, ...fnArgs }, options) => {
6912
6832
  if (assign2 && assign2 in options.referenceRecord) {
6913
- throw new EndpointError2(`'${assign2}' is already defined in Reference Record.`);
6833
+ throw new EndpointError(`'${assign2}' is already defined in Reference Record.`);
6914
6834
  }
6915
6835
  const value = callFunction(fnArgs, options);
6916
6836
  options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
@@ -6944,7 +6864,7 @@ var require_dist_cjs20 = __commonJS({
6944
6864
  [headerKey]: headerVal.map((headerValEntry) => {
6945
6865
  const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
6946
6866
  if (typeof processedExpr !== "string") {
6947
- throw new EndpointError2(`Header '${headerKey}' value '${processedExpr}' is not a string`);
6867
+ throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
6948
6868
  }
6949
6869
  return processedExpr;
6950
6870
  })
@@ -6958,13 +6878,13 @@ var require_dist_cjs20 = __commonJS({
6958
6878
  return evaluateTemplate(property2, options);
6959
6879
  case "object":
6960
6880
  if (property2 === null) {
6961
- throw new EndpointError2(`Unexpected endpoint property: ${property2}`);
6881
+ throw new EndpointError(`Unexpected endpoint property: ${property2}`);
6962
6882
  }
6963
6883
  return getEndpointProperties(property2, options);
6964
6884
  case "boolean":
6965
6885
  return property2;
6966
6886
  default:
6967
- throw new EndpointError2(`Unexpected endpoint property type: ${typeof property2}`);
6887
+ throw new EndpointError(`Unexpected endpoint property type: ${typeof property2}`);
6968
6888
  }
6969
6889
  };
6970
6890
  var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
@@ -6981,7 +6901,7 @@ var require_dist_cjs20 = __commonJS({
6981
6901
  throw error2;
6982
6902
  }
6983
6903
  }
6984
- throw new EndpointError2(`Endpoint URL must be a string, got ${typeof expression}`);
6904
+ throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
6985
6905
  };
6986
6906
  var evaluateEndpointRule = (endpointRule, options) => {
6987
6907
  const { conditions, endpoint } = endpointRule;
@@ -7011,7 +6931,7 @@ var require_dist_cjs20 = __commonJS({
7011
6931
  if (!result) {
7012
6932
  return;
7013
6933
  }
7014
- throw new EndpointError2(evaluateExpression(error2, "Error", {
6934
+ throw new EndpointError(evaluateExpression(error2, "Error", {
7015
6935
  ...options,
7016
6936
  referenceRecord: { ...options.referenceRecord, ...referenceRecord }
7017
6937
  }));
@@ -7042,12 +6962,12 @@ var require_dist_cjs20 = __commonJS({
7042
6962
  return endpointOrUndefined;
7043
6963
  }
7044
6964
  } else {
7045
- throw new EndpointError2(`Unknown endpoint rule: ${rule}`);
6965
+ throw new EndpointError(`Unknown endpoint rule: ${rule}`);
7046
6966
  }
7047
6967
  }
7048
- throw new EndpointError2(`Rules evaluation failed`);
6968
+ throw new EndpointError(`Rules evaluation failed`);
7049
6969
  };
7050
- var resolveEndpoint4 = (ruleSetObject, options) => {
6970
+ var resolveEndpoint3 = (ruleSetObject, options) => {
7051
6971
  const { endpointParams, logger: logger2 } = options;
7052
6972
  const { parameters, rules } = ruleSetObject;
7053
6973
  options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
@@ -7060,7 +6980,7 @@ var require_dist_cjs20 = __commonJS({
7060
6980
  const requiredParams = Object.entries(parameters).filter(([, v3]) => v3.required).map(([k3]) => k3);
7061
6981
  for (const requiredParam of requiredParams) {
7062
6982
  if (endpointParams[requiredParam] == null) {
7063
- throw new EndpointError2(`Missing required parameter: '${requiredParam}'`);
6983
+ throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
7064
6984
  }
7065
6985
  }
7066
6986
  const endpoint = evaluateRules(rules, { endpointParams, logger: logger2, referenceRecord: {} });
@@ -7068,11 +6988,11 @@ var require_dist_cjs20 = __commonJS({
7068
6988
  return endpoint;
7069
6989
  };
7070
6990
  exports2.EndpointCache = EndpointCache3;
7071
- exports2.EndpointError = EndpointError2;
6991
+ exports2.EndpointError = EndpointError;
7072
6992
  exports2.customEndpointFunctions = customEndpointFunctions3;
7073
- exports2.isIpAddress = isIpAddress2;
6993
+ exports2.isIpAddress = isIpAddress;
7074
6994
  exports2.isValidHostLabel = isValidHostLabel;
7075
- exports2.resolveEndpoint = resolveEndpoint4;
6995
+ exports2.resolveEndpoint = resolveEndpoint3;
7076
6996
  }
7077
6997
  });
7078
6998
 
@@ -7133,62 +7053,11 @@ var require_dist_cjs22 = __commonJS({
7133
7053
 
7134
7054
  // node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
7135
7055
  var require_dist_cjs23 = __commonJS({
7136
- "node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2, module2) {
7056
+ "node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2) {
7137
7057
  "use strict";
7138
- var __defProp2 = Object.defineProperty;
7139
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
7140
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
7141
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
7142
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
7143
- var __export2 = (target, all) => {
7144
- for (var name14 in all)
7145
- __defProp2(target, name14, { get: all[name14], enumerable: true });
7146
- };
7147
- var __copyProps2 = (to, from, except, desc) => {
7148
- if (from && typeof from === "object" || typeof from === "function") {
7149
- for (let key of __getOwnPropNames2(from))
7150
- if (!__hasOwnProp2.call(to, key) && key !== except)
7151
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
7152
- }
7153
- return to;
7154
- };
7155
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
7156
- var index_exports = {};
7157
- __export2(index_exports, {
7158
- ConditionObject: () => import_util_endpoints5.ConditionObject,
7159
- DeprecatedObject: () => import_util_endpoints5.DeprecatedObject,
7160
- EndpointError: () => import_util_endpoints5.EndpointError,
7161
- EndpointObject: () => import_util_endpoints5.EndpointObject,
7162
- EndpointObjectHeaders: () => import_util_endpoints5.EndpointObjectHeaders,
7163
- EndpointObjectProperties: () => import_util_endpoints5.EndpointObjectProperties,
7164
- EndpointParams: () => import_util_endpoints5.EndpointParams,
7165
- EndpointResolverOptions: () => import_util_endpoints5.EndpointResolverOptions,
7166
- EndpointRuleObject: () => import_util_endpoints5.EndpointRuleObject,
7167
- ErrorRuleObject: () => import_util_endpoints5.ErrorRuleObject,
7168
- EvaluateOptions: () => import_util_endpoints5.EvaluateOptions,
7169
- Expression: () => import_util_endpoints5.Expression,
7170
- FunctionArgv: () => import_util_endpoints5.FunctionArgv,
7171
- FunctionObject: () => import_util_endpoints5.FunctionObject,
7172
- FunctionReturn: () => import_util_endpoints5.FunctionReturn,
7173
- ParameterObject: () => import_util_endpoints5.ParameterObject,
7174
- ReferenceObject: () => import_util_endpoints5.ReferenceObject,
7175
- ReferenceRecord: () => import_util_endpoints5.ReferenceRecord,
7176
- RuleSetObject: () => import_util_endpoints5.RuleSetObject,
7177
- RuleSetRules: () => import_util_endpoints5.RuleSetRules,
7178
- TreeRuleObject: () => import_util_endpoints5.TreeRuleObject,
7179
- awsEndpointFunctions: () => awsEndpointFunctions3,
7180
- getUserAgentPrefix: () => getUserAgentPrefix,
7181
- isIpAddress: () => import_util_endpoints5.isIpAddress,
7182
- partition: () => partition,
7183
- resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
7184
- resolveEndpoint: () => import_util_endpoints5.resolveEndpoint,
7185
- setPartitionInfo: () => setPartitionInfo,
7186
- toEndpointV1: () => toEndpointV1,
7187
- useDefaultPartitionInfo: () => useDefaultPartitionInfo
7188
- });
7189
- module2.exports = __toCommonJS2(index_exports);
7190
- var import_util_endpoints5 = require_dist_cjs20();
7191
- var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
7058
+ var utilEndpoints = require_dist_cjs20();
7059
+ var urlParser = require_dist_cjs22();
7060
+ var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
7192
7061
  if (allowSubDomains) {
7193
7062
  for (const label of value.split(".")) {
7194
7063
  if (!isVirtualHostableS3Bucket(label)) {
@@ -7197,7 +7066,7 @@ var require_dist_cjs23 = __commonJS({
7197
7066
  }
7198
7067
  return true;
7199
7068
  }
7200
- if (!(0, import_util_endpoints5.isValidHostLabel)(value)) {
7069
+ if (!utilEndpoints.isValidHostLabel(value)) {
7201
7070
  return false;
7202
7071
  }
7203
7072
  if (value.length < 3 || value.length > 63) {
@@ -7206,18 +7075,20 @@ var require_dist_cjs23 = __commonJS({
7206
7075
  if (value !== value.toLowerCase()) {
7207
7076
  return false;
7208
7077
  }
7209
- if ((0, import_util_endpoints5.isIpAddress)(value)) {
7078
+ if (utilEndpoints.isIpAddress(value)) {
7210
7079
  return false;
7211
7080
  }
7212
7081
  return true;
7213
- }, "isVirtualHostableS3Bucket");
7082
+ };
7214
7083
  var ARN_DELIMITER = ":";
7215
7084
  var RESOURCE_DELIMITER = "/";
7216
- var parseArn = /* @__PURE__ */ __name((value) => {
7085
+ var parseArn = (value) => {
7217
7086
  const segments = value.split(ARN_DELIMITER);
7218
- if (segments.length < 6) return null;
7087
+ if (segments.length < 6)
7088
+ return null;
7219
7089
  const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
7220
- if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
7090
+ if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
7091
+ return null;
7221
7092
  const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
7222
7093
  return {
7223
7094
  partition: partition2,
@@ -7226,9 +7097,9 @@ var require_dist_cjs23 = __commonJS({
7226
7097
  accountId,
7227
7098
  resourceId
7228
7099
  };
7229
- }, "parseArn");
7230
- var partitions_default = {
7231
- partitions: [{
7100
+ };
7101
+ var partitions = [
7102
+ {
7232
7103
  id: "aws",
7233
7104
  outputs: {
7234
7105
  dnsSuffix: "amazonaws.com",
@@ -7346,7 +7217,8 @@ var require_dist_cjs23 = __commonJS({
7346
7217
  description: "US West (Oregon)"
7347
7218
  }
7348
7219
  }
7349
- }, {
7220
+ },
7221
+ {
7350
7222
  id: "aws-cn",
7351
7223
  outputs: {
7352
7224
  dnsSuffix: "amazonaws.com.cn",
@@ -7368,7 +7240,8 @@ var require_dist_cjs23 = __commonJS({
7368
7240
  description: "China (Ningxia)"
7369
7241
  }
7370
7242
  }
7371
- }, {
7243
+ },
7244
+ {
7372
7245
  id: "aws-eusc",
7373
7246
  outputs: {
7374
7247
  dnsSuffix: "amazonaws.eu",
@@ -7384,7 +7257,8 @@ var require_dist_cjs23 = __commonJS({
7384
7257
  description: "EU (Germany)"
7385
7258
  }
7386
7259
  }
7387
- }, {
7260
+ },
7261
+ {
7388
7262
  id: "aws-iso",
7389
7263
  outputs: {
7390
7264
  dnsSuffix: "c2s.ic.gov",
@@ -7406,7 +7280,8 @@ var require_dist_cjs23 = __commonJS({
7406
7280
  description: "US ISO WEST"
7407
7281
  }
7408
7282
  }
7409
- }, {
7283
+ },
7284
+ {
7410
7285
  id: "aws-iso-b",
7411
7286
  outputs: {
7412
7287
  dnsSuffix: "sc2s.sgov.gov",
@@ -7425,7 +7300,8 @@ var require_dist_cjs23 = __commonJS({
7425
7300
  description: "US ISOB East (Ohio)"
7426
7301
  }
7427
7302
  }
7428
- }, {
7303
+ },
7304
+ {
7429
7305
  id: "aws-iso-e",
7430
7306
  outputs: {
7431
7307
  dnsSuffix: "cloud.adc-e.uk",
@@ -7444,7 +7320,8 @@ var require_dist_cjs23 = __commonJS({
7444
7320
  description: "EU ISOE West"
7445
7321
  }
7446
7322
  }
7447
- }, {
7323
+ },
7324
+ {
7448
7325
  id: "aws-iso-f",
7449
7326
  outputs: {
7450
7327
  dnsSuffix: "csp.hci.ic.gov",
@@ -7466,7 +7343,8 @@ var require_dist_cjs23 = __commonJS({
7466
7343
  description: "US ISOF SOUTH"
7467
7344
  }
7468
7345
  }
7469
- }, {
7346
+ },
7347
+ {
7470
7348
  id: "aws-us-gov",
7471
7349
  outputs: {
7472
7350
  dnsSuffix: "amazonaws.com",
@@ -7488,14 +7366,18 @@ var require_dist_cjs23 = __commonJS({
7488
7366
  description: "AWS GovCloud (US-West)"
7489
7367
  }
7490
7368
  }
7491
- }],
7492
- version: "1.1"
7369
+ }
7370
+ ];
7371
+ var version = "1.1";
7372
+ var partitionsInfo = {
7373
+ partitions,
7374
+ version
7493
7375
  };
7494
- var selectedPartitionsInfo = partitions_default;
7376
+ var selectedPartitionsInfo = partitionsInfo;
7495
7377
  var selectedUserAgentPrefix = "";
7496
- var partition = /* @__PURE__ */ __name((value) => {
7497
- const { partitions } = selectedPartitionsInfo;
7498
- for (const partition2 of partitions) {
7378
+ var partition = (value) => {
7379
+ const { partitions: partitions2 } = selectedPartitionsInfo;
7380
+ for (const partition2 of partitions2) {
7499
7381
  const { regions, outputs } = partition2;
7500
7382
  for (const [region, regionData] of Object.entries(regions)) {
7501
7383
  if (region === value) {
@@ -7506,7 +7388,7 @@ var require_dist_cjs23 = __commonJS({
7506
7388
  }
7507
7389
  }
7508
7390
  }
7509
- for (const partition2 of partitions) {
7391
+ for (const partition2 of partitions2) {
7510
7392
  const { regionRegex, outputs } = partition2;
7511
7393
  if (new RegExp(regionRegex).test(value)) {
7512
7394
  return {
@@ -7514,54 +7396,71 @@ var require_dist_cjs23 = __commonJS({
7514
7396
  };
7515
7397
  }
7516
7398
  }
7517
- const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws");
7399
+ const DEFAULT_PARTITION = partitions2.find((partition2) => partition2.id === "aws");
7518
7400
  if (!DEFAULT_PARTITION) {
7519
- throw new Error(
7520
- "Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."
7521
- );
7401
+ throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
7522
7402
  }
7523
7403
  return {
7524
7404
  ...DEFAULT_PARTITION.outputs
7525
7405
  };
7526
- }, "partition");
7527
- var setPartitionInfo = /* @__PURE__ */ __name((partitionsInfo, userAgentPrefix = "") => {
7528
- selectedPartitionsInfo = partitionsInfo;
7406
+ };
7407
+ var setPartitionInfo = (partitionsInfo2, userAgentPrefix = "") => {
7408
+ selectedPartitionsInfo = partitionsInfo2;
7529
7409
  selectedUserAgentPrefix = userAgentPrefix;
7530
- }, "setPartitionInfo");
7531
- var useDefaultPartitionInfo = /* @__PURE__ */ __name(() => {
7532
- setPartitionInfo(partitions_default, "");
7533
- }, "useDefaultPartitionInfo");
7534
- var getUserAgentPrefix = /* @__PURE__ */ __name(() => selectedUserAgentPrefix, "getUserAgentPrefix");
7410
+ };
7411
+ var useDefaultPartitionInfo = () => {
7412
+ setPartitionInfo(partitionsInfo, "");
7413
+ };
7414
+ var getUserAgentPrefix = () => selectedUserAgentPrefix;
7535
7415
  var awsEndpointFunctions3 = {
7536
7416
  isVirtualHostableS3Bucket,
7537
7417
  parseArn,
7538
7418
  partition
7539
7419
  };
7540
- import_util_endpoints5.customEndpointFunctions.aws = awsEndpointFunctions3;
7541
- var import_url_parser3 = require_dist_cjs22();
7542
- var resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name((input) => {
7420
+ utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions3;
7421
+ var resolveDefaultAwsRegionalEndpointsConfig = (input) => {
7543
7422
  if (typeof input.endpointProvider !== "function") {
7544
7423
  throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
7545
7424
  }
7546
7425
  const { endpoint } = input;
7547
7426
  if (endpoint === void 0) {
7548
7427
  input.endpoint = async () => {
7549
- return toEndpointV1(
7550
- input.endpointProvider(
7551
- {
7552
- Region: typeof input.region === "function" ? await input.region() : input.region,
7553
- UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
7554
- UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
7555
- Endpoint: void 0
7556
- },
7557
- { logger: input.logger }
7558
- )
7559
- );
7428
+ return toEndpointV1(input.endpointProvider({
7429
+ Region: typeof input.region === "function" ? await input.region() : input.region,
7430
+ UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
7431
+ UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
7432
+ Endpoint: void 0
7433
+ }, { logger: input.logger }));
7560
7434
  };
7561
7435
  }
7562
7436
  return input;
7563
- }, "resolveDefaultAwsRegionalEndpointsConfig");
7564
- var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => (0, import_url_parser3.parseUrl)(endpoint.url), "toEndpointV1");
7437
+ };
7438
+ var toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
7439
+ Object.defineProperty(exports2, "EndpointError", {
7440
+ enumerable: true,
7441
+ get: function() {
7442
+ return utilEndpoints.EndpointError;
7443
+ }
7444
+ });
7445
+ Object.defineProperty(exports2, "isIpAddress", {
7446
+ enumerable: true,
7447
+ get: function() {
7448
+ return utilEndpoints.isIpAddress;
7449
+ }
7450
+ });
7451
+ Object.defineProperty(exports2, "resolveEndpoint", {
7452
+ enumerable: true,
7453
+ get: function() {
7454
+ return utilEndpoints.resolveEndpoint;
7455
+ }
7456
+ });
7457
+ exports2.awsEndpointFunctions = awsEndpointFunctions3;
7458
+ exports2.getUserAgentPrefix = getUserAgentPrefix;
7459
+ exports2.partition = partition;
7460
+ exports2.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
7461
+ exports2.setPartitionInfo = setPartitionInfo;
7462
+ exports2.toEndpointV1 = toEndpointV1;
7463
+ exports2.useDefaultPartitionInfo = useDefaultPartitionInfo;
7565
7464
  }
7566
7465
  });
7567
7466
 
@@ -9778,7 +9677,7 @@ var init_AwsSmithyRpcV2CborProtocol = __esm({
9778
9677
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata);
9779
9678
  const ns = NormalizedSchema.of(errorSchema);
9780
9679
  const message = dataObject.message ?? dataObject.Message ?? "Unknown";
9781
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
9680
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
9782
9681
  const exception = new ErrorCtor(message);
9783
9682
  const output = {};
9784
9683
  for (const [name14, member2] of ns.structIterator()) {
@@ -11201,7 +11100,7 @@ var init_AwsJsonRpcProtocol = __esm({
11201
11100
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
11202
11101
  const ns = NormalizedSchema.of(errorSchema);
11203
11102
  const message = dataObject.message ?? dataObject.Message ?? "Unknown";
11204
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
11103
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
11205
11104
  const exception = new ErrorCtor(message);
11206
11105
  const output = {};
11207
11106
  for (const [name14, member2] of ns.structIterator()) {
@@ -11331,7 +11230,7 @@ var init_AwsRestJsonProtocol = __esm({
11331
11230
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
11332
11231
  const ns = NormalizedSchema.of(errorSchema);
11333
11232
  const message = dataObject.message ?? dataObject.Message ?? "Unknown";
11334
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
11233
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
11335
11234
  const exception = new ErrorCtor(message);
11336
11235
  await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
11337
11236
  const output = {};
@@ -12164,7 +12063,7 @@ var require_xml_parser = __commonJS({
12164
12063
  "node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js"(exports2) {
12165
12064
  "use strict";
12166
12065
  Object.defineProperty(exports2, "__esModule", { value: true });
12167
- exports2.parseXML = parseXML4;
12066
+ exports2.parseXML = parseXML3;
12168
12067
  var fast_xml_parser_1 = require_fxp();
12169
12068
  var parser = new fast_xml_parser_1.XMLParser({
12170
12069
  attributeNamePrefix: "",
@@ -12177,7 +12076,7 @@ var require_xml_parser = __commonJS({
12177
12076
  });
12178
12077
  parser.addEntity("#xD", "\r");
12179
12078
  parser.addEntity("#10", "\n");
12180
- function parseXML4(xmlString) {
12079
+ function parseXML3(xmlString) {
12181
12080
  return parser.parse(xmlString, true);
12182
12081
  }
12183
12082
  }
@@ -12185,60 +12084,27 @@ var require_xml_parser = __commonJS({
12185
12084
 
12186
12085
  // node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
12187
12086
  var require_dist_cjs28 = __commonJS({
12188
- "node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2, module2) {
12087
+ "node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2) {
12189
12088
  "use strict";
12190
- var __defProp2 = Object.defineProperty;
12191
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
12192
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
12193
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
12194
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
12195
- var __export2 = (target, all) => {
12196
- for (var name14 in all)
12197
- __defProp2(target, name14, { get: all[name14], enumerable: true });
12198
- };
12199
- var __copyProps2 = (to, from, except, desc) => {
12200
- if (from && typeof from === "object" || typeof from === "function") {
12201
- for (let key of __getOwnPropNames2(from))
12202
- if (!__hasOwnProp2.call(to, key) && key !== except)
12203
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
12204
- }
12205
- return to;
12206
- };
12207
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
12208
- var index_exports = {};
12209
- __export2(index_exports, {
12210
- XmlNode: () => XmlNode2,
12211
- XmlText: () => XmlText2,
12212
- parseXML: () => import_xml_parser.parseXML
12213
- });
12214
- module2.exports = __toCommonJS2(index_exports);
12089
+ var xmlParser = require_xml_parser();
12215
12090
  function escapeAttribute(value) {
12216
12091
  return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
12217
12092
  }
12218
- __name(escapeAttribute, "escapeAttribute");
12219
12093
  function escapeElement(value) {
12220
12094
  return value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#x0D;").replace(/\n/g, "&#x0A;").replace(/\u0085/g, "&#x85;").replace(/\u2028/, "&#x2028;");
12221
12095
  }
12222
- __name(escapeElement, "escapeElement");
12223
12096
  var XmlText2 = class {
12097
+ value;
12224
12098
  constructor(value) {
12225
12099
  this.value = value;
12226
12100
  }
12227
- static {
12228
- __name(this, "XmlText");
12229
- }
12230
12101
  toString() {
12231
12102
  return escapeElement("" + this.value);
12232
12103
  }
12233
12104
  };
12234
12105
  var XmlNode2 = class _XmlNode {
12235
- constructor(name14, children = []) {
12236
- this.name = name14;
12237
- this.children = children;
12238
- }
12239
- static {
12240
- __name(this, "XmlNode");
12241
- }
12106
+ name;
12107
+ children;
12242
12108
  attributes = {};
12243
12109
  static of(name14, childText, withName) {
12244
12110
  const node = new _XmlNode(name14);
@@ -12250,6 +12116,10 @@ var require_dist_cjs28 = __commonJS({
12250
12116
  }
12251
12117
  return node;
12252
12118
  }
12119
+ constructor(name14, children = []) {
12120
+ this.name = name14;
12121
+ this.children = children;
12122
+ }
12253
12123
  withName(name14) {
12254
12124
  this.name = name14;
12255
12125
  return this;
@@ -12266,47 +12136,26 @@ var require_dist_cjs28 = __commonJS({
12266
12136
  delete this.attributes[name14];
12267
12137
  return this;
12268
12138
  }
12269
- /**
12270
- * @internal
12271
- * Alias of {@link XmlNode#withName(string)} for codegen brevity.
12272
- */
12273
12139
  n(name14) {
12274
12140
  this.name = name14;
12275
12141
  return this;
12276
12142
  }
12277
- /**
12278
- * @internal
12279
- * Alias of {@link XmlNode#addChildNode(string)} for codegen brevity.
12280
- */
12281
12143
  c(child) {
12282
12144
  this.children.push(child);
12283
12145
  return this;
12284
12146
  }
12285
- /**
12286
- * @internal
12287
- * Checked version of {@link XmlNode#addAttribute(string)} for codegen brevity.
12288
- */
12289
12147
  a(name14, value) {
12290
12148
  if (value != null) {
12291
12149
  this.attributes[name14] = value;
12292
12150
  }
12293
12151
  return this;
12294
12152
  }
12295
- /**
12296
- * Create a child node.
12297
- * Used in serialization of string fields.
12298
- * @internal
12299
- */
12300
12153
  cc(input, field, withName = field) {
12301
12154
  if (input[field] != null) {
12302
12155
  const node = _XmlNode.of(field, input[field]).withName(withName);
12303
12156
  this.c(node);
12304
12157
  }
12305
12158
  }
12306
- /**
12307
- * Creates list child nodes.
12308
- * @internal
12309
- */
12310
12159
  l(input, listName, memberName, valueProvider) {
12311
12160
  if (input[listName] != null) {
12312
12161
  const nodes = valueProvider();
@@ -12316,10 +12165,6 @@ var require_dist_cjs28 = __commonJS({
12316
12165
  });
12317
12166
  }
12318
12167
  }
12319
- /**
12320
- * Creates list child nodes with container.
12321
- * @internal
12322
- */
12323
12168
  lc(input, listName, memberName, valueProvider) {
12324
12169
  if (input[listName] != null) {
12325
12170
  const nodes = valueProvider();
@@ -12343,7 +12188,14 @@ var require_dist_cjs28 = __commonJS({
12343
12188
  return xmlText += !hasChildren ? "/>" : `>${this.children.map((c3) => c3.toString()).join("")}</${this.name}>`;
12344
12189
  }
12345
12190
  };
12346
- var import_xml_parser = require_xml_parser();
12191
+ Object.defineProperty(exports2, "parseXML", {
12192
+ enumerable: true,
12193
+ get: function() {
12194
+ return xmlParser.parseXML;
12195
+ }
12196
+ });
12197
+ exports2.XmlNode = XmlNode2;
12198
+ exports2.XmlText = XmlText2;
12347
12199
  }
12348
12200
  });
12349
12201
 
@@ -12744,7 +12596,7 @@ var init_AwsQueryProtocol = __esm({
12744
12596
  };
12745
12597
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
12746
12598
  const ns = NormalizedSchema.of(errorSchema);
12747
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
12599
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
12748
12600
  const exception = new ErrorCtor(message);
12749
12601
  const output = {
12750
12602
  Error: errorData.Error
@@ -13207,7 +13059,7 @@ var init_AwsRestXmlProtocol = __esm({
13207
13059
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
13208
13060
  const ns = NormalizedSchema.of(errorSchema);
13209
13061
  const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
13210
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
13062
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
13211
13063
  const exception = new ErrorCtor(message);
13212
13064
  await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
13213
13065
  const output = {};
@@ -14448,32 +14300,9 @@ var require_dist_cjs33 = __commonJS({
14448
14300
 
14449
14301
  // node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
14450
14302
  var require_dist_cjs34 = __commonJS({
14451
- "node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2, module2) {
14303
+ "node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2) {
14452
14304
  "use strict";
14453
- var __defProp2 = Object.defineProperty;
14454
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
14455
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
14456
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
14457
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
14458
- var __export2 = (target, all) => {
14459
- for (var name14 in all)
14460
- __defProp2(target, name14, { get: all[name14], enumerable: true });
14461
- };
14462
- var __copyProps2 = (to, from, except, desc) => {
14463
- if (from && typeof from === "object" || typeof from === "function") {
14464
- for (let key of __getOwnPropNames2(from))
14465
- if (!__hasOwnProp2.call(to, key) && key !== except)
14466
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
14467
- }
14468
- return to;
14469
- };
14470
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
14471
- var index_exports = {};
14472
- __export2(index_exports, {
14473
- formatUrl: () => formatUrl
14474
- });
14475
- module2.exports = __toCommonJS2(index_exports);
14476
- var import_querystring_builder = require_dist_cjs14();
14305
+ var querystringBuilder = require_dist_cjs14();
14477
14306
  function formatUrl(request) {
14478
14307
  const { port, query: query2 } = request;
14479
14308
  let { protocol, path: path7, hostname } = request;
@@ -14486,7 +14315,7 @@ var require_dist_cjs34 = __commonJS({
14486
14315
  if (path7 && path7.charAt(0) !== "/") {
14487
14316
  path7 = `/${path7}`;
14488
14317
  }
14489
- let queryString = query2 ? (0, import_querystring_builder.buildQueryString)(query2) : "";
14318
+ let queryString = query2 ? querystringBuilder.buildQueryString(query2) : "";
14490
14319
  if (queryString && queryString[0] !== "?") {
14491
14320
  queryString = `?${queryString}`;
14492
14321
  }
@@ -14502,7 +14331,7 @@ var require_dist_cjs34 = __commonJS({
14502
14331
  }
14503
14332
  return `${protocol}//${auth}${hostname}${path7}${queryString}${fragment}`;
14504
14333
  }
14505
- __name(formatUrl, "formatUrl");
14334
+ exports2.formatUrl = formatUrl;
14506
14335
  }
14507
14336
  });
14508
14337
 
@@ -16644,7 +16473,7 @@ var require_package = __commonJS({
16644
16473
  module2.exports = {
16645
16474
  name: "@aws-sdk/client-bedrock-runtime",
16646
16475
  description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
16647
- version: "3.908.0",
16476
+ version: "3.910.0",
16648
16477
  scripts: {
16649
16478
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
16650
16479
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -16663,49 +16492,49 @@ var require_package = __commonJS({
16663
16492
  dependencies: {
16664
16493
  "@aws-crypto/sha256-browser": "5.2.0",
16665
16494
  "@aws-crypto/sha256-js": "5.2.0",
16666
- "@aws-sdk/core": "3.908.0",
16667
- "@aws-sdk/credential-provider-node": "3.908.0",
16668
- "@aws-sdk/eventstream-handler-node": "3.901.0",
16669
- "@aws-sdk/middleware-eventstream": "3.901.0",
16670
- "@aws-sdk/middleware-host-header": "3.901.0",
16671
- "@aws-sdk/middleware-logger": "3.901.0",
16672
- "@aws-sdk/middleware-recursion-detection": "3.901.0",
16673
- "@aws-sdk/middleware-user-agent": "3.908.0",
16674
- "@aws-sdk/middleware-websocket": "3.908.0",
16675
- "@aws-sdk/region-config-resolver": "3.901.0",
16676
- "@aws-sdk/token-providers": "3.908.0",
16677
- "@aws-sdk/types": "3.901.0",
16678
- "@aws-sdk/util-endpoints": "3.901.0",
16679
- "@aws-sdk/util-user-agent-browser": "3.907.0",
16680
- "@aws-sdk/util-user-agent-node": "3.908.0",
16681
- "@smithy/config-resolver": "^4.3.0",
16682
- "@smithy/core": "^3.15.0",
16683
- "@smithy/eventstream-serde-browser": "^4.2.0",
16684
- "@smithy/eventstream-serde-config-resolver": "^4.3.0",
16685
- "@smithy/eventstream-serde-node": "^4.2.0",
16686
- "@smithy/fetch-http-handler": "^5.3.1",
16687
- "@smithy/hash-node": "^4.2.0",
16688
- "@smithy/invalid-dependency": "^4.2.0",
16689
- "@smithy/middleware-content-length": "^4.2.0",
16690
- "@smithy/middleware-endpoint": "^4.3.1",
16691
- "@smithy/middleware-retry": "^4.4.1",
16692
- "@smithy/middleware-serde": "^4.2.0",
16693
- "@smithy/middleware-stack": "^4.2.0",
16694
- "@smithy/node-config-provider": "^4.3.0",
16695
- "@smithy/node-http-handler": "^4.3.0",
16696
- "@smithy/protocol-http": "^5.3.0",
16697
- "@smithy/smithy-client": "^4.7.1",
16698
- "@smithy/types": "^4.6.0",
16699
- "@smithy/url-parser": "^4.2.0",
16495
+ "@aws-sdk/core": "3.910.0",
16496
+ "@aws-sdk/credential-provider-node": "3.910.0",
16497
+ "@aws-sdk/eventstream-handler-node": "3.910.0",
16498
+ "@aws-sdk/middleware-eventstream": "3.910.0",
16499
+ "@aws-sdk/middleware-host-header": "3.910.0",
16500
+ "@aws-sdk/middleware-logger": "3.910.0",
16501
+ "@aws-sdk/middleware-recursion-detection": "3.910.0",
16502
+ "@aws-sdk/middleware-user-agent": "3.910.0",
16503
+ "@aws-sdk/middleware-websocket": "3.910.0",
16504
+ "@aws-sdk/region-config-resolver": "3.910.0",
16505
+ "@aws-sdk/token-providers": "3.910.0",
16506
+ "@aws-sdk/types": "3.910.0",
16507
+ "@aws-sdk/util-endpoints": "3.910.0",
16508
+ "@aws-sdk/util-user-agent-browser": "3.910.0",
16509
+ "@aws-sdk/util-user-agent-node": "3.910.0",
16510
+ "@smithy/config-resolver": "^4.3.2",
16511
+ "@smithy/core": "^3.16.1",
16512
+ "@smithy/eventstream-serde-browser": "^4.2.2",
16513
+ "@smithy/eventstream-serde-config-resolver": "^4.3.2",
16514
+ "@smithy/eventstream-serde-node": "^4.2.2",
16515
+ "@smithy/fetch-http-handler": "^5.3.3",
16516
+ "@smithy/hash-node": "^4.2.2",
16517
+ "@smithy/invalid-dependency": "^4.2.2",
16518
+ "@smithy/middleware-content-length": "^4.2.2",
16519
+ "@smithy/middleware-endpoint": "^4.3.3",
16520
+ "@smithy/middleware-retry": "^4.4.3",
16521
+ "@smithy/middleware-serde": "^4.2.2",
16522
+ "@smithy/middleware-stack": "^4.2.2",
16523
+ "@smithy/node-config-provider": "^4.3.2",
16524
+ "@smithy/node-http-handler": "^4.4.1",
16525
+ "@smithy/protocol-http": "^5.3.2",
16526
+ "@smithy/smithy-client": "^4.8.1",
16527
+ "@smithy/types": "^4.7.1",
16528
+ "@smithy/url-parser": "^4.2.2",
16700
16529
  "@smithy/util-base64": "^4.3.0",
16701
16530
  "@smithy/util-body-length-browser": "^4.2.0",
16702
16531
  "@smithy/util-body-length-node": "^4.2.1",
16703
- "@smithy/util-defaults-mode-browser": "^4.3.0",
16704
- "@smithy/util-defaults-mode-node": "^4.2.1",
16705
- "@smithy/util-endpoints": "^3.2.0",
16706
- "@smithy/util-middleware": "^4.2.0",
16707
- "@smithy/util-retry": "^4.2.0",
16708
- "@smithy/util-stream": "^4.5.0",
16532
+ "@smithy/util-defaults-mode-browser": "^4.3.2",
16533
+ "@smithy/util-defaults-mode-node": "^4.2.3",
16534
+ "@smithy/util-endpoints": "^3.2.2",
16535
+ "@smithy/util-middleware": "^4.2.2",
16536
+ "@smithy/util-retry": "^4.2.2",
16537
+ "@smithy/util-stream": "^4.5.2",
16709
16538
  "@smithy/util-utf8": "^4.2.0",
16710
16539
  "@smithy/uuid": "^1.1.0",
16711
16540
  tslib: "^2.6.2"
@@ -17425,7 +17254,7 @@ var init_package = __esm({
17425
17254
  "node_modules/@aws-sdk/nested-clients/package.json"() {
17426
17255
  package_default = {
17427
17256
  name: "@aws-sdk/nested-clients",
17428
- version: "3.908.0",
17257
+ version: "3.910.0",
17429
17258
  description: "Nested clients for AWS SDK packages.",
17430
17259
  main: "./dist-cjs/index.js",
17431
17260
  module: "./dist-es/index.js",
@@ -17454,40 +17283,40 @@ var init_package = __esm({
17454
17283
  dependencies: {
17455
17284
  "@aws-crypto/sha256-browser": "5.2.0",
17456
17285
  "@aws-crypto/sha256-js": "5.2.0",
17457
- "@aws-sdk/core": "3.908.0",
17458
- "@aws-sdk/middleware-host-header": "3.901.0",
17459
- "@aws-sdk/middleware-logger": "3.901.0",
17460
- "@aws-sdk/middleware-recursion-detection": "3.901.0",
17461
- "@aws-sdk/middleware-user-agent": "3.908.0",
17462
- "@aws-sdk/region-config-resolver": "3.901.0",
17463
- "@aws-sdk/types": "3.901.0",
17464
- "@aws-sdk/util-endpoints": "3.901.0",
17465
- "@aws-sdk/util-user-agent-browser": "3.907.0",
17466
- "@aws-sdk/util-user-agent-node": "3.908.0",
17467
- "@smithy/config-resolver": "^4.3.0",
17468
- "@smithy/core": "^3.15.0",
17469
- "@smithy/fetch-http-handler": "^5.3.1",
17470
- "@smithy/hash-node": "^4.2.0",
17471
- "@smithy/invalid-dependency": "^4.2.0",
17472
- "@smithy/middleware-content-length": "^4.2.0",
17473
- "@smithy/middleware-endpoint": "^4.3.1",
17474
- "@smithy/middleware-retry": "^4.4.1",
17475
- "@smithy/middleware-serde": "^4.2.0",
17476
- "@smithy/middleware-stack": "^4.2.0",
17477
- "@smithy/node-config-provider": "^4.3.0",
17478
- "@smithy/node-http-handler": "^4.3.0",
17479
- "@smithy/protocol-http": "^5.3.0",
17480
- "@smithy/smithy-client": "^4.7.1",
17481
- "@smithy/types": "^4.6.0",
17482
- "@smithy/url-parser": "^4.2.0",
17286
+ "@aws-sdk/core": "3.910.0",
17287
+ "@aws-sdk/middleware-host-header": "3.910.0",
17288
+ "@aws-sdk/middleware-logger": "3.910.0",
17289
+ "@aws-sdk/middleware-recursion-detection": "3.910.0",
17290
+ "@aws-sdk/middleware-user-agent": "3.910.0",
17291
+ "@aws-sdk/region-config-resolver": "3.910.0",
17292
+ "@aws-sdk/types": "3.910.0",
17293
+ "@aws-sdk/util-endpoints": "3.910.0",
17294
+ "@aws-sdk/util-user-agent-browser": "3.910.0",
17295
+ "@aws-sdk/util-user-agent-node": "3.910.0",
17296
+ "@smithy/config-resolver": "^4.3.2",
17297
+ "@smithy/core": "^3.16.1",
17298
+ "@smithy/fetch-http-handler": "^5.3.3",
17299
+ "@smithy/hash-node": "^4.2.2",
17300
+ "@smithy/invalid-dependency": "^4.2.2",
17301
+ "@smithy/middleware-content-length": "^4.2.2",
17302
+ "@smithy/middleware-endpoint": "^4.3.3",
17303
+ "@smithy/middleware-retry": "^4.4.3",
17304
+ "@smithy/middleware-serde": "^4.2.2",
17305
+ "@smithy/middleware-stack": "^4.2.2",
17306
+ "@smithy/node-config-provider": "^4.3.2",
17307
+ "@smithy/node-http-handler": "^4.4.1",
17308
+ "@smithy/protocol-http": "^5.3.2",
17309
+ "@smithy/smithy-client": "^4.8.1",
17310
+ "@smithy/types": "^4.7.1",
17311
+ "@smithy/url-parser": "^4.2.2",
17483
17312
  "@smithy/util-base64": "^4.3.0",
17484
17313
  "@smithy/util-body-length-browser": "^4.2.0",
17485
17314
  "@smithy/util-body-length-node": "^4.2.1",
17486
- "@smithy/util-defaults-mode-browser": "^4.3.0",
17487
- "@smithy/util-defaults-mode-node": "^4.2.1",
17488
- "@smithy/util-endpoints": "^3.2.0",
17489
- "@smithy/util-middleware": "^4.2.0",
17490
- "@smithy/util-retry": "^4.2.0",
17315
+ "@smithy/util-defaults-mode-browser": "^4.3.2",
17316
+ "@smithy/util-defaults-mode-node": "^4.2.3",
17317
+ "@smithy/util-endpoints": "^3.2.2",
17318
+ "@smithy/util-middleware": "^4.2.2",
17319
+ "@smithy/util-retry": "^4.2.2",
17491
17320
  "@smithy/util-utf8": "^4.2.0",
17492
17321
  tslib: "^2.6.2"
17493
17322
  },
@@ -17898,38 +17727,9 @@ var init_runtimeConfig = __esm({
17898
17727
 
17899
17728
  // node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
17900
17729
  var require_dist_cjs55 = __commonJS({
17901
- "node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2, module2) {
17730
+ "node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2) {
17902
17731
  "use strict";
17903
- var __defProp2 = Object.defineProperty;
17904
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
17905
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
17906
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
17907
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
17908
- var __export2 = (target, all) => {
17909
- for (var name14 in all)
17910
- __defProp2(target, name14, { get: all[name14], enumerable: true });
17911
- };
17912
- var __copyProps2 = (to, from, except, desc) => {
17913
- if (from && typeof from === "object" || typeof from === "function") {
17914
- for (let key of __getOwnPropNames2(from))
17915
- if (!__hasOwnProp2.call(to, key) && key !== except)
17916
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
17917
- }
17918
- return to;
17919
- };
17920
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
17921
- var index_exports = {};
17922
- __export2(index_exports, {
17923
- NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3,
17924
- NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3,
17925
- REGION_ENV_NAME: () => REGION_ENV_NAME,
17926
- REGION_INI_NAME: () => REGION_INI_NAME,
17927
- getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration3,
17928
- resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration3,
17929
- resolveRegionConfig: () => resolveRegionConfig3
17930
- });
17931
- module2.exports = __toCommonJS2(index_exports);
17932
- var getAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => {
17732
+ var getAwsRegionExtensionConfiguration3 = (runtimeConfig) => {
17933
17733
  return {
17934
17734
  setRegion(region) {
17935
17735
  runtimeConfig.region = region;
@@ -17938,48 +17738,55 @@ var require_dist_cjs55 = __commonJS({
17938
17738
  return runtimeConfig.region;
17939
17739
  }
17940
17740
  };
17941
- }, "getAwsRegionExtensionConfiguration");
17942
- var resolveAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => {
17741
+ };
17742
+ var resolveAwsRegionExtensionConfiguration3 = (awsRegionExtensionConfiguration) => {
17943
17743
  return {
17944
17744
  region: awsRegionExtensionConfiguration.region()
17945
17745
  };
17946
- }, "resolveAwsRegionExtensionConfiguration");
17746
+ };
17947
17747
  var REGION_ENV_NAME = "AWS_REGION";
17948
17748
  var REGION_INI_NAME = "region";
17949
17749
  var NODE_REGION_CONFIG_OPTIONS3 = {
17950
- environmentVariableSelector: /* @__PURE__ */ __name((env) => env[REGION_ENV_NAME], "environmentVariableSelector"),
17951
- configFileSelector: /* @__PURE__ */ __name((profile) => profile[REGION_INI_NAME], "configFileSelector"),
17952
- default: /* @__PURE__ */ __name(() => {
17750
+ environmentVariableSelector: (env) => env[REGION_ENV_NAME],
17751
+ configFileSelector: (profile) => profile[REGION_INI_NAME],
17752
+ default: () => {
17953
17753
  throw new Error("Region is missing");
17954
- }, "default")
17754
+ }
17955
17755
  };
17956
17756
  var NODE_REGION_CONFIG_FILE_OPTIONS3 = {
17957
17757
  preferredFile: "credentials"
17958
17758
  };
17959
- var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
17960
- var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
17961
- var resolveRegionConfig3 = /* @__PURE__ */ __name((input) => {
17759
+ var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
17760
+ var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
17761
+ var resolveRegionConfig3 = (input) => {
17962
17762
  const { region, useFipsEndpoint } = input;
17963
17763
  if (!region) {
17964
17764
  throw new Error("Region is missing");
17965
17765
  }
17966
17766
  return Object.assign(input, {
17967
- region: /* @__PURE__ */ __name(async () => {
17767
+ region: async () => {
17968
17768
  if (typeof region === "string") {
17969
17769
  return getRealRegion(region);
17970
17770
  }
17971
17771
  const providedRegion = await region();
17972
17772
  return getRealRegion(providedRegion);
17973
- }, "region"),
17974
- useFipsEndpoint: /* @__PURE__ */ __name(async () => {
17773
+ },
17774
+ useFipsEndpoint: async () => {
17975
17775
  const providedRegion = typeof region === "string" ? region : await region();
17976
17776
  if (isFipsRegion(providedRegion)) {
17977
17777
  return true;
17978
17778
  }
17979
17779
  return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
17980
- }, "useFipsEndpoint")
17780
+ }
17981
17781
  });
17982
- }, "resolveRegionConfig");
17782
+ };
17783
+ exports2.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS3;
17784
+ exports2.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS3;
17785
+ exports2.REGION_ENV_NAME = REGION_ENV_NAME;
17786
+ exports2.REGION_INI_NAME = REGION_INI_NAME;
17787
+ exports2.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration3;
17788
+ exports2.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration3;
17789
+ exports2.resolveRegionConfig = resolveRegionConfig3;
17983
17790
  }
17984
17791
  });
17985
17792
 
@@ -18900,7 +18707,7 @@ var require_package2 = __commonJS({
18900
18707
  module2.exports = {
18901
18708
  name: "@aws-sdk/client-sso",
18902
18709
  description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
18903
- version: "3.908.0",
18710
+ version: "3.910.0",
18904
18711
  scripts: {
18905
18712
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
18906
18713
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -18919,40 +18726,40 @@ var require_package2 = __commonJS({
18919
18726
  dependencies: {
18920
18727
  "@aws-crypto/sha256-browser": "5.2.0",
18921
18728
  "@aws-crypto/sha256-js": "5.2.0",
18922
- "@aws-sdk/core": "3.908.0",
18923
- "@aws-sdk/middleware-host-header": "3.901.0",
18924
- "@aws-sdk/middleware-logger": "3.901.0",
18925
- "@aws-sdk/middleware-recursion-detection": "3.901.0",
18926
- "@aws-sdk/middleware-user-agent": "3.908.0",
18927
- "@aws-sdk/region-config-resolver": "3.901.0",
18928
- "@aws-sdk/types": "3.901.0",
18929
- "@aws-sdk/util-endpoints": "3.901.0",
18930
- "@aws-sdk/util-user-agent-browser": "3.907.0",
18931
- "@aws-sdk/util-user-agent-node": "3.908.0",
18932
- "@smithy/config-resolver": "^4.3.0",
18933
- "@smithy/core": "^3.15.0",
18934
- "@smithy/fetch-http-handler": "^5.3.1",
18935
- "@smithy/hash-node": "^4.2.0",
18936
- "@smithy/invalid-dependency": "^4.2.0",
18937
- "@smithy/middleware-content-length": "^4.2.0",
18938
- "@smithy/middleware-endpoint": "^4.3.1",
18939
- "@smithy/middleware-retry": "^4.4.1",
18940
- "@smithy/middleware-serde": "^4.2.0",
18941
- "@smithy/middleware-stack": "^4.2.0",
18942
- "@smithy/node-config-provider": "^4.3.0",
18943
- "@smithy/node-http-handler": "^4.3.0",
18944
- "@smithy/protocol-http": "^5.3.0",
18945
- "@smithy/smithy-client": "^4.7.1",
18946
- "@smithy/types": "^4.6.0",
18947
- "@smithy/url-parser": "^4.2.0",
18729
+ "@aws-sdk/core": "3.910.0",
18730
+ "@aws-sdk/middleware-host-header": "3.910.0",
18731
+ "@aws-sdk/middleware-logger": "3.910.0",
18732
+ "@aws-sdk/middleware-recursion-detection": "3.910.0",
18733
+ "@aws-sdk/middleware-user-agent": "3.910.0",
18734
+ "@aws-sdk/region-config-resolver": "3.910.0",
18735
+ "@aws-sdk/types": "3.910.0",
18736
+ "@aws-sdk/util-endpoints": "3.910.0",
18737
+ "@aws-sdk/util-user-agent-browser": "3.910.0",
18738
+ "@aws-sdk/util-user-agent-node": "3.910.0",
18739
+ "@smithy/config-resolver": "^4.3.2",
18740
+ "@smithy/core": "^3.16.1",
18741
+ "@smithy/fetch-http-handler": "^5.3.3",
18742
+ "@smithy/hash-node": "^4.2.2",
18743
+ "@smithy/invalid-dependency": "^4.2.2",
18744
+ "@smithy/middleware-content-length": "^4.2.2",
18745
+ "@smithy/middleware-endpoint": "^4.3.3",
18746
+ "@smithy/middleware-retry": "^4.4.3",
18747
+ "@smithy/middleware-serde": "^4.2.2",
18748
+ "@smithy/middleware-stack": "^4.2.2",
18749
+ "@smithy/node-config-provider": "^4.3.2",
18750
+ "@smithy/node-http-handler": "^4.4.1",
18751
+ "@smithy/protocol-http": "^5.3.2",
18752
+ "@smithy/smithy-client": "^4.8.1",
18753
+ "@smithy/types": "^4.7.1",
18754
+ "@smithy/url-parser": "^4.2.2",
18948
18755
  "@smithy/util-base64": "^4.3.0",
18949
18756
  "@smithy/util-body-length-browser": "^4.2.0",
18950
18757
  "@smithy/util-body-length-node": "^4.2.1",
18951
- "@smithy/util-defaults-mode-browser": "^4.3.0",
18952
- "@smithy/util-defaults-mode-node": "^4.2.1",
18953
- "@smithy/util-endpoints": "^3.2.0",
18954
- "@smithy/util-middleware": "^4.2.0",
18955
- "@smithy/util-retry": "^4.2.0",
18758
+ "@smithy/util-defaults-mode-browser": "^4.3.2",
18759
+ "@smithy/util-defaults-mode-node": "^4.2.3",
18760
+ "@smithy/util-endpoints": "^3.2.2",
18761
+ "@smithy/util-middleware": "^4.2.2",
18762
+ "@smithy/util-retry": "^4.2.2",
18956
18763
  "@smithy/util-utf8": "^4.2.0",
18957
18764
  tslib: "^2.6.2"
18958
18765
  },
@@ -21562,37 +21369,11 @@ var require_dist_cjs62 = __commonJS({
21562
21369
 
21563
21370
  // node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js
21564
21371
  var require_dist_cjs63 = __commonJS({
21565
- "node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2, module2) {
21372
+ "node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2) {
21566
21373
  "use strict";
21567
- var __defProp2 = Object.defineProperty;
21568
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
21569
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
21570
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
21571
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
21572
- var __export2 = (target, all) => {
21573
- for (var name14 in all)
21574
- __defProp2(target, name14, { get: all[name14], enumerable: true });
21575
- };
21576
- var __copyProps2 = (to, from, except, desc) => {
21577
- if (from && typeof from === "object" || typeof from === "function") {
21578
- for (let key of __getOwnPropNames2(from))
21579
- if (!__hasOwnProp2.call(to, key) && key !== except)
21580
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
21581
- }
21582
- return to;
21583
- };
21584
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
21585
- var index_exports = {};
21586
- __export2(index_exports, {
21587
- eventStreamPayloadHandlerProvider: () => eventStreamPayloadHandlerProvider
21588
- });
21589
- module2.exports = __toCommonJS2(index_exports);
21590
- var import_eventstream_codec = require_dist_cjs33();
21591
- var import_stream = require("stream");
21592
- var EventSigningStream = class extends import_stream.Transform {
21593
- static {
21594
- __name(this, "EventSigningStream");
21595
- }
21374
+ var eventstreamCodec = require_dist_cjs33();
21375
+ var stream2 = require("stream");
21376
+ var EventSigningStream = class extends stream2.Transform {
21596
21377
  priorSignature;
21597
21378
  messageSigner;
21598
21379
  eventStreamCodec;
@@ -21615,18 +21396,15 @@ var require_dist_cjs63 = __commonJS({
21615
21396
  const dateHeader = {
21616
21397
  ":date": { type: "timestamp", value: now }
21617
21398
  };
21618
- const signedMessage = await this.messageSigner.sign(
21619
- {
21620
- message: {
21621
- body: chunk,
21622
- headers: dateHeader
21623
- },
21624
- priorSignature: this.priorSignature
21399
+ const signedMessage = await this.messageSigner.sign({
21400
+ message: {
21401
+ body: chunk,
21402
+ headers: dateHeader
21625
21403
  },
21626
- {
21627
- signingDate: now
21628
- }
21629
- );
21404
+ priorSignature: this.priorSignature
21405
+ }, {
21406
+ signingDate: now
21407
+ });
21630
21408
  this.priorSignature = signedMessage.signature;
21631
21409
  const serializedSigned = this.eventStreamCodec.encode({
21632
21410
  headers: {
@@ -21649,27 +21427,23 @@ var require_dist_cjs63 = __commonJS({
21649
21427
  const buf = Buffer.from(signature, "hex");
21650
21428
  return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
21651
21429
  }
21652
- __name(getSignatureBinary, "getSignatureBinary");
21653
21430
  var EventStreamPayloadHandler = class {
21654
- static {
21655
- __name(this, "EventStreamPayloadHandler");
21656
- }
21657
21431
  messageSigner;
21658
21432
  eventStreamCodec;
21659
21433
  systemClockOffsetProvider;
21660
21434
  constructor(options) {
21661
21435
  this.messageSigner = options.messageSigner;
21662
- this.eventStreamCodec = new import_eventstream_codec.EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
21436
+ this.eventStreamCodec = new eventstreamCodec.EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
21663
21437
  this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
21664
21438
  }
21665
21439
  async handle(next, args, context3 = {}) {
21666
21440
  const request = args.request;
21667
21441
  const { body: payload2, query: query2 } = request;
21668
- if (!(payload2 instanceof import_stream.Readable)) {
21442
+ if (!(payload2 instanceof stream2.Readable)) {
21669
21443
  throw new Error("Eventstream payload must be a Readable stream.");
21670
21444
  }
21671
21445
  const payloadStream = payload2;
21672
- request.body = new import_stream.PassThrough({
21446
+ request.body = new stream2.PassThrough({
21673
21447
  objectMode: true
21674
21448
  });
21675
21449
  const match2 = request.headers?.authorization?.match(/Signature=([\w]+)$/);
@@ -21680,7 +21454,7 @@ var require_dist_cjs63 = __commonJS({
21680
21454
  messageSigner: await this.messageSigner(),
21681
21455
  systemClockOffsetProvider: this.systemClockOffsetProvider
21682
21456
  });
21683
- (0, import_stream.pipeline)(payloadStream, signingStream, request.body, (err) => {
21457
+ stream2.pipeline(payloadStream, signingStream, request.body, (err) => {
21684
21458
  if (err) {
21685
21459
  throw err;
21686
21460
  }
@@ -21695,7 +21469,8 @@ var require_dist_cjs63 = __commonJS({
21695
21469
  return result;
21696
21470
  }
21697
21471
  };
21698
- var eventStreamPayloadHandlerProvider = /* @__PURE__ */ __name((options) => new EventStreamPayloadHandler(options), "eventStreamPayloadHandlerProvider");
21472
+ var eventStreamPayloadHandlerProvider = (options) => new EventStreamPayloadHandler(options);
21473
+ exports2.eventStreamPayloadHandlerProvider = eventStreamPayloadHandlerProvider;
21699
21474
  }
21700
21475
  });
21701
21476
 
@@ -34794,34 +34569,29 @@ var init_simpleTelemetry = __esm({
34794
34569
  });
34795
34570
 
34796
34571
  // src/agent/fileSpanExporter.js
34797
- var import_fs4, import_core17, ExportResultCode;
34572
+ var import_fs4, import_core17;
34798
34573
  var init_fileSpanExporter = __esm({
34799
34574
  "src/agent/fileSpanExporter.js"() {
34800
34575
  "use strict";
34801
34576
  import_fs4 = require("fs");
34802
- import_core17 = __toESM(require("@opentelemetry/core"), 1);
34803
- ({ ExportResultCode } = import_core17.default);
34577
+ import_core17 = require("@opentelemetry/core");
34804
34578
  }
34805
34579
  });
34806
34580
 
34807
34581
  // src/agent/telemetry.js
34808
- var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs5, import_path8, NodeSDK, Resource, OTLPTraceExporter, BatchSpanProcessor, ConsoleSpanExporter;
34582
+ var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs5, import_path8;
34809
34583
  var init_telemetry = __esm({
34810
34584
  "src/agent/telemetry.js"() {
34811
34585
  "use strict";
34812
- import_sdk_node = __toESM(require("@opentelemetry/sdk-node"), 1);
34813
- import_resources = __toESM(require("@opentelemetry/resources"), 1);
34586
+ import_sdk_node = require("@opentelemetry/sdk-node");
34587
+ import_resources = require("@opentelemetry/resources");
34814
34588
  import_semantic_conventions = require("@opentelemetry/semantic-conventions");
34815
34589
  import_api = require("@opentelemetry/api");
34816
- import_exporter_trace_otlp_http = __toESM(require("@opentelemetry/exporter-trace-otlp-http"), 1);
34817
- import_sdk_trace_base = __toESM(require("@opentelemetry/sdk-trace-base"), 1);
34590
+ import_exporter_trace_otlp_http = require("@opentelemetry/exporter-trace-otlp-http");
34591
+ import_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
34818
34592
  import_fs5 = require("fs");
34819
34593
  import_path8 = require("path");
34820
34594
  init_fileSpanExporter();
34821
- ({ NodeSDK } = import_sdk_node.default);
34822
- ({ Resource } = import_resources.default);
34823
- ({ OTLPTraceExporter } = import_exporter_trace_otlp_http.default);
34824
- ({ BatchSpanProcessor, ConsoleSpanExporter } = import_sdk_trace_base.default);
34825
34595
  }
34826
34596
  });
34827
34597
 
@@ -74817,13 +74587,14 @@ You are working with a repository located at: ${searchDirectory}
74817
74587
  maxTokens: maxResponseTokens,
74818
74588
  temperature: 0.3
74819
74589
  });
74590
+ const usagePromise = result.usage;
74820
74591
  for await (const delta of result.textStream) {
74821
74592
  assistantResponseContent += delta;
74822
74593
  if (options.onStream) {
74823
74594
  options.onStream(delta);
74824
74595
  }
74825
74596
  }
74826
- const usage = await result.usage;
74597
+ const usage = await usagePromise;
74827
74598
  if (usage) {
74828
74599
  this.tokenCounter.recordUsage(usage, result.experimental_providerMetadata);
74829
74600
  }