@semiont/graph 0.5.21 → 0.5.23

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 (51) hide show
  1. package/dist/{chunk-J2GNAAZA.js → chunk-7WLIHNPO.js} +19 -750
  2. package/dist/chunk-7WLIHNPO.js.map +1 -0
  3. package/dist/{chunk-WUOPYF3V.js → chunk-7X77XSVD.js} +7 -7
  4. package/dist/{chunk-WUOPYF3V.js.map → chunk-7X77XSVD.js.map} +1 -1
  5. package/dist/{chunk-L7UMT7TC.js → chunk-AJ4W3DS7.js} +5 -3
  6. package/dist/{chunk-L7UMT7TC.js.map → chunk-AJ4W3DS7.js.map} +1 -1
  7. package/dist/{chunk-JJUYBZ5C.js → chunk-FR442V6O.js} +3 -3
  8. package/dist/{chunk-UN64BKHA.js → chunk-GPJBZ6EG.js} +746 -3
  9. package/dist/chunk-GPJBZ6EG.js.map +1 -0
  10. package/dist/{chunk-IZRDH6ZA.js → chunk-NO67W7EF.js} +222 -55
  11. package/dist/chunk-NO67W7EF.js.map +1 -0
  12. package/dist/{chunk-WIM7YLFQ.js → chunk-RRZDPP7Z.js} +2 -2
  13. package/dist/{chunk-QVMXXFG5.js → chunk-ZPTG6NGD.js} +11 -11
  14. package/dist/chunk-ZPTG6NGD.js.map +1 -0
  15. package/dist/{dist-es-JMQZFACH.js → dist-es-5CNHCO76.js} +7 -7
  16. package/dist/{dist-es-EFSR5RHO.js → dist-es-63RSTSM2.js} +13 -13
  17. package/dist/{dist-es-TFVAFKJ5.js → dist-es-BTCEI257.js} +4 -4
  18. package/dist/{dist-es-RUJYXWW7.js → dist-es-C3XGVVKR.js} +7 -6
  19. package/dist/{dist-es-RUJYXWW7.js.map → dist-es-C3XGVVKR.js.map} +1 -1
  20. package/dist/{dist-es-47I7P7S4.js → dist-es-OHWBFB6Z.js} +7 -7
  21. package/dist/{dist-es-GCAGX4FB.js → dist-es-QDQUKRHU.js} +5 -4
  22. package/dist/{dist-es-GCAGX4FB.js.map → dist-es-QDQUKRHU.js.map} +1 -1
  23. package/dist/{dist-es-7RLYMBW4.js → dist-es-R36PCSLH.js} +5 -5
  24. package/dist/{dist-es-YSRYRFUR.js → dist-es-TBYZWFUA.js} +26 -26
  25. package/dist/{dist-es-YSRYRFUR.js.map → dist-es-TBYZWFUA.js.map} +1 -1
  26. package/dist/{dist-es-6D223V5J.js → dist-es-ZOQMUI6H.js} +5 -5
  27. package/dist/{event-streams-M4VNXF4E.js → event-streams-2HBIXE6X.js} +33 -14
  28. package/dist/event-streams-2HBIXE6X.js.map +1 -0
  29. package/dist/index.js +1 -1
  30. package/dist/{loadSso-UZJSAOIR.js → loadSso-OMYS2YH5.js} +13 -13
  31. package/dist/{signin-LCNGXJL6.js → signin-OZ4KQMKS.js} +13 -13
  32. package/dist/{sso-oidc-JCP5LKPR.js → sso-oidc-K2XXESPI.js} +13 -13
  33. package/dist/{sts-EM5BP3PD.js → sts-4YKAIUZO.js} +13 -13
  34. package/package.json +5 -5
  35. package/dist/chunk-IZRDH6ZA.js.map +0 -1
  36. package/dist/chunk-J2GNAAZA.js.map +0 -1
  37. package/dist/chunk-QVMXXFG5.js.map +0 -1
  38. package/dist/chunk-UN64BKHA.js.map +0 -1
  39. package/dist/event-streams-M4VNXF4E.js.map +0 -1
  40. /package/dist/{chunk-JJUYBZ5C.js.map → chunk-FR442V6O.js.map} +0 -0
  41. /package/dist/{chunk-WIM7YLFQ.js.map → chunk-RRZDPP7Z.js.map} +0 -0
  42. /package/dist/{dist-es-JMQZFACH.js.map → dist-es-5CNHCO76.js.map} +0 -0
  43. /package/dist/{dist-es-EFSR5RHO.js.map → dist-es-63RSTSM2.js.map} +0 -0
  44. /package/dist/{dist-es-TFVAFKJ5.js.map → dist-es-BTCEI257.js.map} +0 -0
  45. /package/dist/{dist-es-47I7P7S4.js.map → dist-es-OHWBFB6Z.js.map} +0 -0
  46. /package/dist/{dist-es-7RLYMBW4.js.map → dist-es-R36PCSLH.js.map} +0 -0
  47. /package/dist/{dist-es-6D223V5J.js.map → dist-es-ZOQMUI6H.js.map} +0 -0
  48. /package/dist/{loadSso-UZJSAOIR.js.map → loadSso-OMYS2YH5.js.map} +0 -0
  49. /package/dist/{signin-LCNGXJL6.js.map → signin-OZ4KQMKS.js.map} +0 -0
  50. /package/dist/{sso-oidc-JCP5LKPR.js.map → sso-oidc-K2XXESPI.js.map} +0 -0
  51. /package/dist/{sts-EM5BP3PD.js.map → sts-4YKAIUZO.js.map} +0 -0
@@ -6,34 +6,37 @@ import {
6
6
  memoizeIdentityProvider,
7
7
  normalizeProvider as normalizeProvider2,
8
8
  setCredentialFeature
9
- } from "./chunk-QVMXXFG5.js";
9
+ } from "./chunk-ZPTG6NGD.js";
10
10
  import {
11
11
  FromStringShapeDeserializer,
12
12
  HttpBindingProtocol,
13
13
  HttpInterceptingShapeDeserializer,
14
14
  HttpInterceptingShapeSerializer,
15
- HttpRequest,
16
- HttpResponse,
17
- NormalizedSchema,
18
15
  ProviderError,
19
16
  RpcProtocol,
20
- TypeRegistry,
17
+ SelectorType,
18
+ booleanSelector,
21
19
  collectBody,
22
- deref,
23
20
  determineTimestampFormat,
24
21
  escapeUri,
25
22
  extendedEncodeURIComponent,
26
- normalizeProvider
27
- } from "./chunk-J2GNAAZA.js";
23
+ loadConfig
24
+ } from "./chunk-7WLIHNPO.js";
28
25
  import {
26
+ HttpRequest,
27
+ HttpResponse,
29
28
  LazyJsonString,
29
+ NormalizedSchema,
30
30
  NumericValue,
31
+ TypeRegistry,
31
32
  dateToUtcString,
33
+ deref,
32
34
  fromBase64,
33
35
  fromHex,
34
36
  fromUtf8,
35
37
  generateIdempotencyToken,
36
38
  isArrayBuffer,
39
+ normalizeProvider,
37
40
  parseEpochTimestamp,
38
41
  parseRfc3339DateTimeWithOffset,
39
42
  parseRfc7231DateTime,
@@ -41,24 +44,27 @@ import {
41
44
  toHex,
42
45
  toUint8Array,
43
46
  toUtf8
44
- } from "./chunk-UN64BKHA.js";
47
+ } from "./chunk-GPJBZ6EG.js";
45
48
 
46
49
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
47
50
  var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
51
+ var getAgeHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.age ?? response.headers?.Age : void 0;
48
52
 
49
53
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
50
54
  var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
51
55
 
52
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
53
- var isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5;
54
-
55
56
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
56
- var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
57
- const clockTimeInMs = Date.parse(clockTime);
58
- if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
59
- return clockTimeInMs - Date.now();
57
+ var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset, timeRequestSent, ageHeader) => {
58
+ if (ageHeader !== void 0) {
59
+ return currentSystemClockOffset;
60
+ }
61
+ const serverTime = Date.parse(clockTime);
62
+ const timeResponseReceived = Date.now();
63
+ if (timeRequestSent !== void 0 && timeResponseReceived - timeRequestSent > 9e5) {
64
+ return currentSystemClockOffset;
60
65
  }
61
- return currentSystemClockOffset;
66
+ const candidateSkew = timeRequestSent !== void 0 ? serverTime - (timeRequestSent + timeResponseReceived) / 2 : serverTime - timeResponseReceived;
67
+ return candidateSkew;
62
68
  };
63
69
 
64
70
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
@@ -101,9 +107,14 @@ var AwsSdkSigV4Signer = class {
101
107
  signingName = second?.signingName ?? signingName;
102
108
  }
103
109
  }
104
- signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
110
+ const noSkewCorrection = await config.disableClockSkewCorrection?.() === true;
111
+ signingProperties._disableClockSkewCorrection = noSkewCorrection;
112
+ if (!noSkewCorrection) {
113
+ signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
114
+ signingProperties._requestSentAt = Date.now();
115
+ }
105
116
  const signedRequest = await signer.sign(httpRequest, {
106
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
117
+ signingDate: noSkewCorrection ? /* @__PURE__ */ new Date() : getSkewCorrectedDate(config.systemClockOffset),
107
118
  signingRegion,
108
119
  signingService: signingName
109
120
  });
@@ -112,27 +123,36 @@ var AwsSdkSigV4Signer = class {
112
123
  errorHandler(signingProperties) {
113
124
  return (error) => {
114
125
  const errorException = error;
115
- const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
116
- if (serverTime) {
117
- const config = throwSigningPropertyError("config", signingProperties.config);
118
- const preRequestOffset = signingProperties._preRequestSystemClockOffset;
119
- const newOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
120
- const isLocalCorrection = newOffset !== config.systemClockOffset;
121
- const isConcurrentCorrection = preRequestOffset !== void 0 && preRequestOffset !== newOffset;
122
- const clockSkewCorrected = isLocalCorrection || isConcurrentCorrection;
123
- if (clockSkewCorrected && errorException.$metadata) {
126
+ if (!signingProperties._disableClockSkewCorrection) {
127
+ const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
128
+ if (serverTime) {
129
+ const config = throwSigningPropertyError("config", signingProperties.config);
130
+ const preRequestOffset = signingProperties._preRequestSystemClockOffset;
131
+ const timeRequestSent = signingProperties._requestSentAt;
132
+ const ageHeader = getAgeHeader(errorException.$response);
133
+ const newOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset, timeRequestSent, ageHeader);
124
134
  config.systemClockOffset = newOffset;
125
- errorException.$metadata.clockSkewCorrected = true;
135
+ const skewExceedsThreshold = Math.abs(newOffset) >= 24e4;
136
+ const isLocalCorrection = newOffset !== preRequestOffset;
137
+ const isConcurrentCorrection = preRequestOffset !== void 0 && preRequestOffset !== newOffset;
138
+ if (skewExceedsThreshold && (isLocalCorrection || isConcurrentCorrection) && errorException.$metadata) {
139
+ errorException.$metadata.clockSkewCorrected = true;
140
+ }
126
141
  }
127
142
  }
128
143
  throw error;
129
144
  };
130
145
  }
131
146
  successHandler(httpResponse, signingProperties) {
147
+ if (signingProperties._disableClockSkewCorrection) {
148
+ return;
149
+ }
132
150
  const dateHeader = getDateHeader(httpResponse);
133
151
  if (dateHeader) {
134
152
  const config = throwSigningPropertyError("config", signingProperties.config);
135
- config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
153
+ const timeRequestSent = signingProperties._requestSentAt;
154
+ const ageHeader = getAgeHeader(httpResponse);
155
+ config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset, timeRequestSent, ageHeader);
136
156
  }
137
157
  }
138
158
  };
@@ -146,9 +166,14 @@ var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
146
166
  const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
147
167
  const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
148
168
  const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(",");
149
- signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
169
+ const noSkewCorrection = await config.disableClockSkewCorrection?.() === true;
170
+ signingProperties._disableClockSkewCorrection = noSkewCorrection;
171
+ if (!noSkewCorrection) {
172
+ signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
173
+ signingProperties._requestSentAt = Date.now();
174
+ }
150
175
  const signedRequest = await signer.sign(httpRequest, {
151
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
176
+ signingDate: noSkewCorrection ? /* @__PURE__ */ new Date() : getSkewCorrectedDate(config.systemClockOffset),
152
177
  signingRegion: multiRegionOverride,
153
178
  signingService: signingName
154
179
  });
@@ -714,7 +739,7 @@ var signatureV4aContainer = {
714
739
  };
715
740
 
716
741
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
717
- var resolveAwsSdkSigV4Config = (config) => {
742
+ var bindResolveAwsSdkSigV4Config = (defaultDisableClockSkewCorrection) => (config) => {
718
743
  let inputCredentials = config.credentials;
719
744
  let isUserSupplied = !!config.credentials;
720
745
  let resolvedCredentials = void 0;
@@ -806,7 +831,8 @@ var resolveAwsSdkSigV4Config = (config) => {
806
831
  const resolvedConfig = Object.assign(config, {
807
832
  systemClockOffset,
808
833
  signingEscapePath,
809
- signer
834
+ signer,
835
+ disableClockSkewCorrection: normalizeProvider2(config.disableClockSkewCorrection ?? defaultDisableClockSkewCorrection)
810
836
  });
811
837
  return resolvedConfig;
812
838
  };
@@ -842,6 +868,21 @@ function bindCallerConfig(config, credentialsProvider) {
842
868
  return fn;
843
869
  }
844
870
 
871
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js
872
+ var ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
873
+ var CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
874
+ var NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS = {
875
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.ENV),
876
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.CONFIG),
877
+ default: false
878
+ };
879
+
880
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js
881
+ var DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = loadConfig(NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS);
882
+
883
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js
884
+ var resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
885
+
845
886
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
846
887
  var ProtocolLib = class {
847
888
  queryCompat;
@@ -1017,11 +1058,17 @@ function jsonReviver(key, value, context) {
1017
1058
  if (context?.source) {
1018
1059
  const numericString = context.source;
1019
1060
  if (typeof value === "number") {
1020
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
1021
- const isFractional = numericString.includes(".");
1022
- if (isFractional) {
1061
+ const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
1062
+ if (!inSafeRange || numericString !== String(value)) {
1063
+ if (inSafeRange && /[eE]/.test(numericString) && String(Number(numericString)) === String(value)) {
1064
+ return value;
1065
+ }
1066
+ if (isFractionalNumeric(numericString)) {
1023
1067
  return new NumericValue(numericString, "bigDecimal");
1024
1068
  } else {
1069
+ if (/[eE]/.test(numericString)) {
1070
+ return BigInt(Number(numericString));
1071
+ }
1025
1072
  return BigInt(numericString);
1026
1073
  }
1027
1074
  }
@@ -1029,26 +1076,112 @@ function jsonReviver(key, value, context) {
1029
1076
  }
1030
1077
  return value;
1031
1078
  }
1079
+ function isFractionalNumeric(s) {
1080
+ const dotIndex = s.indexOf(".");
1081
+ if (dotIndex === -1) {
1082
+ return false;
1083
+ }
1084
+ const eIndex = s.search(/[eE]/);
1085
+ if (eIndex === -1) {
1086
+ return true;
1087
+ }
1088
+ const fracDigits = eIndex - dotIndex - 1;
1089
+ const exp = parseInt(s.slice(eIndex + 1), 10);
1090
+ return exp < fracDigits;
1091
+ }
1092
+
1093
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js
1094
+ var REVIVER_SYMBOL = /* @__PURE__ */ Symbol.for("@aws-sdk/reviver");
1095
+ function needsReviver(schema) {
1096
+ const ns = NormalizedSchema.of(schema);
1097
+ const raw = ns.getSchema();
1098
+ if (Array.isArray(raw) && ns.isStructSchema()) {
1099
+ if (REVIVER_SYMBOL in raw) {
1100
+ return raw[REVIVER_SYMBOL];
1101
+ }
1102
+ const result = _check(ns, /* @__PURE__ */ new Set());
1103
+ raw[REVIVER_SYMBOL] = result;
1104
+ return result;
1105
+ }
1106
+ return _check(ns, /* @__PURE__ */ new Set());
1107
+ }
1108
+ function _check(ns, seen) {
1109
+ const raw = ns.getSchema();
1110
+ if (seen.has(raw)) {
1111
+ return false;
1112
+ }
1113
+ seen.add(raw);
1114
+ if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
1115
+ return true;
1116
+ }
1117
+ if (ns.isStructSchema()) {
1118
+ for (const [, memberSchema] of ns.structIterator()) {
1119
+ if (_check(memberSchema, seen)) {
1120
+ return true;
1121
+ }
1122
+ }
1123
+ } else if (ns.isListSchema() || ns.isMapSchema()) {
1124
+ if (_check(ns.getValueSchema(), seen)) {
1125
+ return true;
1126
+ }
1127
+ } else if (ns.isDocumentSchema()) {
1128
+ return true;
1129
+ }
1130
+ return false;
1131
+ }
1032
1132
 
1033
1133
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
1034
1134
  var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
1035
1135
 
1036
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
1037
- var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1038
- if (encoded.length) {
1136
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js
1137
+ var canParseBuffer;
1138
+ function detectBufferParsing() {
1139
+ if (canParseBuffer === void 0) {
1039
1140
  try {
1040
- return JSON.parse(encoded);
1041
- } catch (e) {
1042
- if (e?.name === "SyntaxError") {
1043
- Object.defineProperty(e, "$responseBodyText", {
1044
- value: encoded
1045
- });
1141
+ if (typeof Buffer !== "function") {
1142
+ canParseBuffer = false;
1143
+ } else {
1144
+ const result = JSON.parse(Buffer.from([123, 125]));
1145
+ canParseBuffer = result !== null && typeof result === "object";
1046
1146
  }
1047
- throw e;
1147
+ } catch {
1148
+ canParseBuffer = false;
1149
+ }
1150
+ }
1151
+ return canParseBuffer;
1152
+ }
1153
+
1154
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
1155
+ async function parseJsonBody(streamBody, context, schema) {
1156
+ let parsingInput;
1157
+ if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
1158
+ const buffer = await collectBody(streamBody, context);
1159
+ if (typeof Buffer === "function") {
1160
+ if (Buffer.isBuffer(buffer)) {
1161
+ parsingInput = buffer;
1162
+ } else {
1163
+ parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
1164
+ }
1165
+ }
1166
+ }
1167
+ if (!parsingInput) {
1168
+ parsingInput = await collectBodyString(streamBody, context);
1169
+ }
1170
+ if (parsingInput.length === 0) {
1171
+ return {};
1172
+ }
1173
+ const reviver = schema && needsReviver(schema) ? jsonReviver : void 0;
1174
+ try {
1175
+ return JSON.parse(parsingInput, reviver);
1176
+ } catch (e) {
1177
+ if (e?.name === "SyntaxError") {
1178
+ Object.defineProperty(e, "$responseBodyText", {
1179
+ value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8")
1180
+ });
1048
1181
  }
1182
+ throw e;
1049
1183
  }
1050
- return {};
1051
- });
1184
+ }
1052
1185
  var findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1053
1186
  var sanitizeErrorCode = (rawValue) => {
1054
1187
  let cleanValue = rawValue;
@@ -1094,6 +1227,11 @@ var loadErrorCode = ({ headers }, data, order) => {
1094
1227
  }
1095
1228
  };
1096
1229
 
1230
+ // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js
1231
+ function writeKey(obj) {
1232
+ Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true });
1233
+ }
1234
+
1097
1235
  // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
1098
1236
  var JsonShapeDeserializer = class extends SerdeContextConfig {
1099
1237
  settings;
@@ -1102,7 +1240,8 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
1102
1240
  this.settings = settings;
1103
1241
  }
1104
1242
  async read(schema, data) {
1105
- return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
1243
+ const reviver = needsReviver(schema) ? jsonReviver : void 0;
1244
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
1106
1245
  }
1107
1246
  readObject(schema, data) {
1108
1247
  return this._read(schema, data);
@@ -1162,6 +1301,9 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
1162
1301
  const mapMember = ns.getValueSchema();
1163
1302
  const out = {};
1164
1303
  for (const _k in value) {
1304
+ if (_k === "__proto__") {
1305
+ writeKey(out);
1306
+ }
1165
1307
  out[_k] = this._read(mapMember, value[_k]);
1166
1308
  }
1167
1309
  return out;
@@ -1220,6 +1362,9 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
1220
1362
  if (isObject) {
1221
1363
  const out = Array.isArray(value) ? [] : {};
1222
1364
  for (const k in value) {
1365
+ if (k === "__proto__") {
1366
+ writeKey(out);
1367
+ }
1223
1368
  const v = value[k];
1224
1369
  if (v instanceof NumericValue) {
1225
1370
  out[k] = v;
@@ -1345,6 +1490,9 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1345
1490
  const { $unknown } = record;
1346
1491
  if (Array.isArray($unknown)) {
1347
1492
  const [k, v] = $unknown;
1493
+ if (k === "__proto__") {
1494
+ writeKey(out);
1495
+ }
1348
1496
  out[k] = this._write(15, v);
1349
1497
  }
1350
1498
  } else if (typeof record.__type === "string") {
@@ -1376,6 +1524,9 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1376
1524
  for (const _k in value) {
1377
1525
  const _v = value[_k];
1378
1526
  if (sparse || _v != null) {
1527
+ if (_k === "__proto__") {
1528
+ writeKey(out);
1529
+ }
1379
1530
  out[_k] = this._write(mapMember, _v);
1380
1531
  }
1381
1532
  }
@@ -1441,6 +1592,9 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1441
1592
  const out = Array.isArray(value) ? [] : {};
1442
1593
  for (const k in value) {
1443
1594
  const v = value[k];
1595
+ if (k === "__proto__") {
1596
+ writeKey(out);
1597
+ }
1444
1598
  if (v instanceof NumericValue) {
1445
1599
  this.useReplacer = true;
1446
1600
  out[k] = v;
@@ -1559,6 +1713,9 @@ var AwsRestJsonProtocol = class extends HttpBindingProtocol {
1559
1713
  };
1560
1714
 
1561
1715
  // ../../node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js
1716
+ function writeKey2(obj) {
1717
+ Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true });
1718
+ }
1562
1719
  function parseXML(xml) {
1563
1720
  const state = new AwsXmlParser(xml);
1564
1721
  return state.parse();
@@ -1640,7 +1797,7 @@ var AwsXmlParser = class _AwsXmlParser {
1640
1797
  tag += p.x[p.i++];
1641
1798
  }
1642
1799
  let hasAttrs = false;
1643
- const attrs = /* @__PURE__ */ Object.create(null);
1800
+ const attrs = {};
1644
1801
  while (p.i < p.z) {
1645
1802
  p.trim();
1646
1803
  if (">/".includes(p.x[p.i])) {
@@ -1656,6 +1813,9 @@ var AwsXmlParser = class _AwsXmlParser {
1656
1813
  }
1657
1814
  ++p.i;
1658
1815
  p.trim();
1816
+ if (name === "__proto__") {
1817
+ writeKey2(attrs);
1818
+ }
1659
1819
  attrs[name] = p.readAttrValue();
1660
1820
  hasAttrs = true;
1661
1821
  }
@@ -1668,7 +1828,6 @@ var AwsXmlParser = class _AwsXmlParser {
1668
1828
  throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");
1669
1829
  }
1670
1830
  ++p.i;
1671
- Object.setPrototypeOf(attrs, Object.prototype);
1672
1831
  return { tag, value: hasAttrs ? attrs : "" };
1673
1832
  }
1674
1833
  if (p.x[p.i] !== ">") {
@@ -1720,7 +1879,7 @@ var AwsXmlParser = class _AwsXmlParser {
1720
1879
  }
1721
1880
  return { tag, value: text };
1722
1881
  }
1723
- const obj = /* @__PURE__ */ Object.create(null);
1882
+ const obj = {};
1724
1883
  for (const text of textParts) {
1725
1884
  if (text.trim() === "" && text.includes("\n")) {
1726
1885
  continue;
@@ -1728,6 +1887,9 @@ var AwsXmlParser = class _AwsXmlParser {
1728
1887
  obj["#text"] = "#text" in obj ? obj["#text"] + text : text;
1729
1888
  }
1730
1889
  for (const child of childTags) {
1890
+ if (child.tag === "__proto__") {
1891
+ writeKey2(obj);
1892
+ }
1731
1893
  if (child.tag in obj) {
1732
1894
  if (Array.isArray(obj[child.tag])) {
1733
1895
  obj[child.tag].push(child.value);
@@ -1739,9 +1901,11 @@ var AwsXmlParser = class _AwsXmlParser {
1739
1901
  }
1740
1902
  }
1741
1903
  for (const [k, v] of Object.entries(attrs)) {
1904
+ if (k === "__proto__") {
1905
+ writeKey2(obj);
1906
+ }
1742
1907
  obj[k] = v;
1743
1908
  }
1744
- Object.setPrototypeOf(obj, Object.prototype);
1745
1909
  return { tag, value: obj };
1746
1910
  }
1747
1911
  static ENTITIES = {
@@ -1859,6 +2023,9 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
1859
2023
  for (const entry of entries) {
1860
2024
  const key = entry[keyProperty];
1861
2025
  const value2 = entry[valueProperty];
2026
+ if (key === "__proto__") {
2027
+ writeKey(buffer);
2028
+ }
1862
2029
  buffer[key] = this.readSchema(memberNs, value2);
1863
2030
  }
1864
2031
  return buffer;
@@ -2235,4 +2402,4 @@ export {
2235
2402
  AwsRestJsonProtocol,
2236
2403
  AwsQueryProtocol
2237
2404
  };
2238
- //# sourceMappingURL=chunk-IZRDH6ZA.js.map
2405
+ //# sourceMappingURL=chunk-NO67W7EF.js.map