replicas-cli 0.2.122 → 0.2.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-NH63C5BC.mjs → chunk-4KZFIKR3.mjs} +1077 -1230
  2. package/dist/{chunk-HDHAEUVR.mjs → chunk-6E4PAXC5.mjs} +1 -1
  3. package/dist/{chunk-OMR2FLSI.mjs → chunk-AEKGTTWT.mjs} +2 -2
  4. package/dist/{chunk-R7VCWGZ2.mjs → chunk-CEE3Y7RM.mjs} +1 -1
  5. package/dist/{chunk-H7SOGPWV.mjs → chunk-H57WOA7R.mjs} +309 -22
  6. package/dist/{chunk-43COQWMG.mjs → chunk-HMKFI7SL.mjs} +19 -19
  7. package/dist/{chunk-G3M3ZN6T.mjs → chunk-K7B6G3FP.mjs} +6 -6
  8. package/dist/{chunk-EHHAQWN3.mjs → chunk-KHHYAMUK.mjs} +12 -12
  9. package/dist/{chunk-BY7XUH2G.mjs → chunk-R2544D2G.mjs} +162 -157
  10. package/dist/{chunk-ENRF2K6M.mjs → chunk-W27BU2E4.mjs} +72 -355
  11. package/dist/{chunk-PNVVO6MW.mjs → chunk-YZ62XZX5.mjs} +2 -2
  12. package/dist/{dist-es-XKOZULQT.mjs → dist-es-76ZS5ZGX.mjs} +19 -19
  13. package/dist/{dist-es-HC7MGS4M.mjs → dist-es-DRC4RUDF.mjs} +18 -18
  14. package/dist/{dist-es-VFOQQKFA.mjs → dist-es-FTV27CJE.mjs} +3 -3
  15. package/dist/{dist-es-WSBAYZQI.mjs → dist-es-MVWFIO2N.mjs} +7 -7
  16. package/dist/{dist-es-DZIRR447.mjs → dist-es-PGBT2GSM.mjs} +27 -27
  17. package/dist/{dist-es-URIWYPPF.mjs → dist-es-TKQAVPOM.mjs} +12 -14
  18. package/dist/{dist-es-I6P57CZS.mjs → dist-es-X7XEFTLU.mjs} +7 -7
  19. package/dist/index.mjs +3 -3
  20. package/dist/{interactive-OHZFZVXH.mjs → interactive-7BC3ZOP6.mjs} +1 -1
  21. package/dist/{loadSso-WA3733QO.mjs → loadSso-PADWQIUG.mjs} +109 -148
  22. package/dist/{signin-QNS25VI4.mjs → signin-4DZRTUJH.mjs} +123 -177
  23. package/dist/{sso-oidc-KJ5X6WUQ.mjs → sso-oidc-VICR4TNH.mjs} +111 -150
  24. package/dist/{sts-7OF5CJSW.mjs → sts-WJPOT3CH.mjs} +2853 -660
  25. package/package.json +1 -1
  26. package/dist/chunk-GXZPN42X.mjs +0 -178
  27. package/dist/event-streams-T3U3ZQLC.mjs +0 -247
@@ -15,17 +15,21 @@ import {
15
15
  splitHeader,
16
16
  translateTraits,
17
17
  v4
18
- } from "./chunk-NH63C5BC.mjs";
18
+ } from "./chunk-4KZFIKR3.mjs";
19
19
  import {
20
20
  sdkStreamMixin
21
- } from "./chunk-G3M3ZN6T.mjs";
21
+ } from "./chunk-K7B6G3FP.mjs";
22
22
  import {
23
+ dateToUtcString,
23
24
  fromBase64,
25
+ parseEpochTimestamp,
26
+ parseRfc3339DateTimeWithOffset,
27
+ parseRfc7231DateTime,
24
28
  toBase64
25
- } from "./chunk-H7SOGPWV.mjs";
29
+ } from "./chunk-H57WOA7R.mjs";
26
30
  import {
27
31
  HttpRequest
28
- } from "./chunk-HDHAEUVR.mjs";
32
+ } from "./chunk-6E4PAXC5.mjs";
29
33
  import {
30
34
  fromUtf8,
31
35
  toUtf8
@@ -34,272 +38,7 @@ import {
34
38
  __publicField
35
39
  } from "./chunk-FFDYI4OH.mjs";
36
40
 
37
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js
38
- var expectNumber = (value) => {
39
- if (value === null || value === void 0) {
40
- return void 0;
41
- }
42
- if (typeof value === "string") {
43
- const parsed = parseFloat(value);
44
- if (!Number.isNaN(parsed)) {
45
- if (String(parsed) !== String(value)) {
46
- logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`));
47
- }
48
- return parsed;
49
- }
50
- }
51
- if (typeof value === "number") {
52
- return value;
53
- }
54
- throw new TypeError(`Expected number, got ${typeof value}: ${value}`);
55
- };
56
- var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));
57
- var expectFloat32 = (value) => {
58
- const expected = expectNumber(value);
59
- if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {
60
- if (Math.abs(expected) > MAX_FLOAT) {
61
- throw new TypeError(`Expected 32-bit float, got ${value}`);
62
- }
63
- }
64
- return expected;
65
- };
66
- var expectLong = (value) => {
67
- if (value === null || value === void 0) {
68
- return void 0;
69
- }
70
- if (Number.isInteger(value) && !Number.isNaN(value)) {
71
- return value;
72
- }
73
- throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);
74
- };
75
- var expectShort = (value) => expectSizedInt(value, 16);
76
- var expectByte = (value) => expectSizedInt(value, 8);
77
- var expectSizedInt = (value, size) => {
78
- const expected = expectLong(value);
79
- if (expected !== void 0 && castInt(expected, size) !== expected) {
80
- throw new TypeError(`Expected ${size}-bit integer, got ${value}`);
81
- }
82
- return expected;
83
- };
84
- var castInt = (value, size) => {
85
- switch (size) {
86
- case 32:
87
- return Int32Array.of(value)[0];
88
- case 16:
89
- return Int16Array.of(value)[0];
90
- case 8:
91
- return Int8Array.of(value)[0];
92
- }
93
- };
94
- var strictParseDouble = (value) => {
95
- if (typeof value == "string") {
96
- return expectNumber(parseNumber(value));
97
- }
98
- return expectNumber(value);
99
- };
100
- var strictParseFloat32 = (value) => {
101
- if (typeof value == "string") {
102
- return expectFloat32(parseNumber(value));
103
- }
104
- return expectFloat32(value);
105
- };
106
- var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;
107
- var parseNumber = (value) => {
108
- const matches = value.match(NUMBER_REGEX);
109
- if (matches === null || matches[0].length !== value.length) {
110
- throw new TypeError(`Expected real number, got implicit NaN`);
111
- }
112
- return parseFloat(value);
113
- };
114
- var strictParseShort = (value) => {
115
- if (typeof value === "string") {
116
- return expectShort(parseNumber(value));
117
- }
118
- return expectShort(value);
119
- };
120
- var strictParseByte = (value) => {
121
- if (typeof value === "string") {
122
- return expectByte(parseNumber(value));
123
- }
124
- return expectByte(value);
125
- };
126
- var stackTraceWarning = (message) => {
127
- return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n");
128
- };
129
- var logger = {
130
- warn: console.warn
131
- };
132
-
133
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js
134
- var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
135
- var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
136
- function dateToUtcString(date) {
137
- const year = date.getUTCFullYear();
138
- const month = date.getUTCMonth();
139
- const dayOfWeek = date.getUTCDay();
140
- const dayOfMonthInt = date.getUTCDate();
141
- const hoursInt = date.getUTCHours();
142
- const minutesInt = date.getUTCMinutes();
143
- const secondsInt = date.getUTCSeconds();
144
- const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
145
- const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
146
- const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
147
- const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
148
- return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
149
- }
150
- var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
151
- var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);
152
- var parseRfc3339DateTimeWithOffset = (value) => {
153
- if (value === null || value === void 0) {
154
- return void 0;
155
- }
156
- if (typeof value !== "string") {
157
- throw new TypeError("RFC-3339 date-times must be expressed as strings");
158
- }
159
- const match = RFC3339_WITH_OFFSET.exec(value);
160
- if (!match) {
161
- throw new TypeError("Invalid RFC-3339 date-time value");
162
- }
163
- const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match;
164
- const year = strictParseShort(stripLeadingZeroes(yearStr));
165
- const month = parseDateValue(monthStr, "month", 1, 12);
166
- const day = parseDateValue(dayStr, "day", 1, 31);
167
- const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
168
- if (offsetStr.toUpperCase() != "Z") {
169
- date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));
170
- }
171
- return date;
172
- };
173
- var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
174
- var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
175
- var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);
176
- var parseRfc7231DateTime = (value) => {
177
- if (value === null || value === void 0) {
178
- return void 0;
179
- }
180
- if (typeof value !== "string") {
181
- throw new TypeError("RFC-7231 date-times must be expressed as strings");
182
- }
183
- let match = IMF_FIXDATE.exec(value);
184
- if (match) {
185
- const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
186
- return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
187
- }
188
- match = RFC_850_DATE.exec(value);
189
- if (match) {
190
- const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
191
- return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
192
- hours,
193
- minutes,
194
- seconds,
195
- fractionalMilliseconds
196
- }));
197
- }
198
- match = ASC_TIME.exec(value);
199
- if (match) {
200
- const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;
201
- return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
202
- }
203
- throw new TypeError("Invalid RFC-7231 date-time value");
204
- };
205
- var parseEpochTimestamp = (value) => {
206
- if (value === null || value === void 0) {
207
- return void 0;
208
- }
209
- let valueAsDouble;
210
- if (typeof value === "number") {
211
- valueAsDouble = value;
212
- } else if (typeof value === "string") {
213
- valueAsDouble = strictParseDouble(value);
214
- } else if (typeof value === "object" && value.tag === 1) {
215
- valueAsDouble = value.value;
216
- } else {
217
- throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
218
- }
219
- if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) {
220
- throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");
221
- }
222
- return new Date(Math.round(valueAsDouble * 1e3));
223
- };
224
- var buildDate = (year, month, day, time) => {
225
- const adjustedMonth = month - 1;
226
- validateDayOfMonth(year, adjustedMonth, day);
227
- return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds)));
228
- };
229
- var parseTwoDigitYear = (value) => {
230
- const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
231
- const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));
232
- if (valueInThisCentury < thisYear) {
233
- return valueInThisCentury + 100;
234
- }
235
- return valueInThisCentury;
236
- };
237
- var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
238
- var adjustRfc850Year = (input) => {
239
- if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
240
- return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds()));
241
- }
242
- return input;
243
- };
244
- var parseMonthByShortName = (value) => {
245
- const monthIdx = MONTHS.indexOf(value);
246
- if (monthIdx < 0) {
247
- throw new TypeError(`Invalid month: ${value}`);
248
- }
249
- return monthIdx + 1;
250
- };
251
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
252
- var validateDayOfMonth = (year, month, day) => {
253
- let maxDays = DAYS_IN_MONTH[month];
254
- if (month === 1 && isLeapYear(year)) {
255
- maxDays = 29;
256
- }
257
- if (day > maxDays) {
258
- throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
259
- }
260
- };
261
- var isLeapYear = (year) => {
262
- return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
263
- };
264
- var parseDateValue = (value, type, lower, upper) => {
265
- const dateVal = strictParseByte(stripLeadingZeroes(value));
266
- if (dateVal < lower || dateVal > upper) {
267
- throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);
268
- }
269
- return dateVal;
270
- };
271
- var parseMilliseconds = (value) => {
272
- if (value === null || value === void 0) {
273
- return 0;
274
- }
275
- return strictParseFloat32("0." + value) * 1e3;
276
- };
277
- var parseOffsetToMilliseconds = (value) => {
278
- const directionStr = value[0];
279
- let direction = 1;
280
- if (directionStr == "+") {
281
- direction = 1;
282
- } else if (directionStr == "-") {
283
- direction = -1;
284
- } else {
285
- throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`);
286
- }
287
- const hour = Number(value.substring(1, 3));
288
- const minute = Number(value.substring(4, 6));
289
- return direction * (hour * 60 + minute) * 60 * 1e3;
290
- };
291
- var stripLeadingZeroes = (value) => {
292
- let idx = 0;
293
- while (idx < value.length - 1 && value.charAt(idx) === "0") {
294
- idx++;
295
- }
296
- if (idx === 0) {
297
- return value;
298
- }
299
- return value.slice(idx);
300
- };
301
-
302
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js
41
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js
303
42
  function quoteHeader(part) {
304
43
  if (part.includes(",") || part.includes('"')) {
305
44
  part = `"${part.replace(/"/g, '\\"')}"`;
@@ -307,7 +46,7 @@ function quoteHeader(part) {
307
46
  return part;
308
47
  }
309
48
 
310
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/split-every.js
49
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/split-every.js
311
50
  function splitEvery(value, delimiter, numDelimiters) {
312
51
  if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {
313
52
  throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery.");
@@ -335,7 +74,7 @@ function splitEvery(value, delimiter, numDelimiters) {
335
74
  return compoundSegments;
336
75
  }
337
76
 
338
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
77
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
339
78
  var HttpBindingProtocol = class extends HttpProtocol {
340
79
  async serializeRequest(operationSchema, _input, context) {
341
80
  const input = _input && typeof _input === "object" ? _input : {};
@@ -371,7 +110,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
371
110
  request.path += path;
372
111
  }
373
112
  const traitSearchParams = new URLSearchParams(search ?? "");
374
- Object.assign(query, Object.fromEntries(traitSearchParams));
113
+ for (const [key, value] of traitSearchParams) {
114
+ query[key] = value;
115
+ }
375
116
  }
376
117
  }
377
118
  for (const [memberName, memberNs] of ns.structIterator()) {
@@ -415,7 +156,8 @@ var HttpBindingProtocol = class extends HttpProtocol {
415
156
  serializer.write(memberNs, inputMemberValue);
416
157
  headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
417
158
  } else if (typeof memberTraits.httpPrefixHeaders === "string") {
418
- for (const [key, val] of Object.entries(inputMemberValue)) {
159
+ for (const key in inputMemberValue) {
160
+ const val = inputMemberValue[key];
419
161
  const amalgam = memberTraits.httpPrefixHeaders + key;
420
162
  serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
421
163
  headers[amalgam.toLowerCase()] = serializer.flush();
@@ -457,8 +199,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
457
199
  const serializer = this.serializer;
458
200
  const traits = ns.getMergedTraits();
459
201
  if (traits.httpQueryParams) {
460
- for (const [key, val] of Object.entries(data)) {
202
+ for (const key in data) {
461
203
  if (!(key in query)) {
204
+ const val = data[key];
462
205
  const valueSchema = ns.getValueSchema();
463
206
  Object.assign(valueSchema.getMergedTraits(), {
464
207
  ...traits,
@@ -576,8 +319,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
576
319
  }
577
320
  } else if (memberTraits.httpPrefixHeaders !== void 0) {
578
321
  dataObject[memberName] = {};
579
- for (const [header, value] of Object.entries(response.headers)) {
322
+ for (const header in response.headers) {
580
323
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
324
+ const value = response.headers[header];
581
325
  const valueSchema = memberSchema.getValueSchema();
582
326
  valueSchema.getMergedTraits().httpHeader = header;
583
327
  dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value);
@@ -594,7 +338,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
594
338
  }
595
339
  };
596
340
 
597
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
341
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
598
342
  var HttpInterceptingShapeDeserializer = class extends SerdeContext {
599
343
  constructor(codecDeserializer, codecSettings) {
600
344
  super();
@@ -633,7 +377,7 @@ var HttpInterceptingShapeDeserializer = class extends SerdeContext {
633
377
  }
634
378
  };
635
379
 
636
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
380
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
637
381
  var ToStringShapeSerializer = class extends SerdeContext {
638
382
  constructor(settings) {
639
383
  super();
@@ -720,7 +464,7 @@ var ToStringShapeSerializer = class extends SerdeContext {
720
464
  }
721
465
  };
722
466
 
723
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
467
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
724
468
  var HttpInterceptingShapeSerializer = class {
725
469
  constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) {
726
470
  __publicField(this, "codecSerializer");
@@ -753,42 +497,7 @@ var HttpInterceptingShapeSerializer = class {
753
497
  }
754
498
  };
755
499
 
756
- // ../node_modules/.bun/@smithy+util-stream@4.5.25/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
757
- var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
758
- static fromString(source, encoding = "utf-8") {
759
- if (typeof source === "string") {
760
- if (encoding === "base64") {
761
- return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
762
- }
763
- return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
764
- }
765
- throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
766
- }
767
- static mutate(source) {
768
- Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
769
- return source;
770
- }
771
- transformToString(encoding = "utf-8") {
772
- if (encoding === "base64") {
773
- return toBase64(this);
774
- }
775
- return toUtf8(this);
776
- }
777
- };
778
-
779
- // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
780
- var collectBody2 = async (streamBody = new Uint8Array(), context) => {
781
- if (streamBody instanceof Uint8Array) {
782
- return Uint8ArrayBlobAdapter.mutate(streamBody);
783
- }
784
- if (!streamBody) {
785
- return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
786
- }
787
- const fromContext = context.streamCollector(streamBody);
788
- return Uint8ArrayBlobAdapter.mutate(await fromContext);
789
- };
790
-
791
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
500
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
792
501
  function jsonReviver(key, value, context) {
793
502
  if (context?.source) {
794
503
  const numericString = context.source;
@@ -806,10 +515,10 @@ function jsonReviver(key, value, context) {
806
515
  return value;
807
516
  }
808
517
 
809
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
810
- var collectBodyString = (streamBody, context) => collectBody2(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
518
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
519
+ var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
811
520
 
812
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
521
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
813
522
  var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
814
523
  if (encoded.length) {
815
524
  try {
@@ -825,24 +534,24 @@ var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, conte
825
534
  }
826
535
  return {};
827
536
  });
537
+ var findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
538
+ var sanitizeErrorCode = (rawValue) => {
539
+ let cleanValue = rawValue;
540
+ if (typeof cleanValue === "number") {
541
+ cleanValue = cleanValue.toString();
542
+ }
543
+ if (cleanValue.indexOf(",") >= 0) {
544
+ cleanValue = cleanValue.split(",")[0];
545
+ }
546
+ if (cleanValue.indexOf(":") >= 0) {
547
+ cleanValue = cleanValue.split(":")[0];
548
+ }
549
+ if (cleanValue.indexOf("#") >= 0) {
550
+ cleanValue = cleanValue.split("#")[1];
551
+ }
552
+ return cleanValue;
553
+ };
828
554
  var loadRestJsonErrorCode = (output, data) => {
829
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
830
- const sanitizeErrorCode = (rawValue) => {
831
- let cleanValue = rawValue;
832
- if (typeof cleanValue === "number") {
833
- cleanValue = cleanValue.toString();
834
- }
835
- if (cleanValue.indexOf(",") >= 0) {
836
- cleanValue = cleanValue.split(",")[0];
837
- }
838
- if (cleanValue.indexOf(":") >= 0) {
839
- cleanValue = cleanValue.split(":")[0];
840
- }
841
- if (cleanValue.indexOf("#") >= 0) {
842
- cleanValue = cleanValue.split("#")[1];
843
- }
844
- return cleanValue;
845
- };
846
555
  const headerKey = findKey(output.headers, "x-amzn-errortype");
847
556
  if (headerKey !== void 0) {
848
557
  return sanitizeErrorCode(output.headers[headerKey]);
@@ -858,7 +567,7 @@ var loadRestJsonErrorCode = (output, data) => {
858
567
  }
859
568
  };
860
569
 
861
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
570
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
862
571
  var JsonShapeDeserializer = class extends SerdeContextConfig {
863
572
  constructor(settings) {
864
573
  super();
@@ -904,7 +613,8 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
904
613
  if (union) {
905
614
  unionSerde.writeUnknown();
906
615
  } else if (typeof record.__type === "string") {
907
- for (const [k, v] of Object.entries(record)) {
616
+ for (const k in record) {
617
+ const v = record[k];
908
618
  const t = jsonName ? nameMap[k] ?? k : k;
909
619
  if (!(t in out)) {
910
620
  out[t] = v;
@@ -924,8 +634,8 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
924
634
  if (ns.isMapSchema()) {
925
635
  const mapMember = ns.getValueSchema();
926
636
  const out = {};
927
- for (const [_k, _v] of Object.entries(value)) {
928
- out[_k] = this._read(mapMember, _v);
637
+ for (const _k in value) {
638
+ out[_k] = this._read(mapMember, value[_k]);
929
639
  }
930
640
  return out;
931
641
  }
@@ -982,7 +692,8 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
982
692
  if (ns.isDocumentSchema()) {
983
693
  if (isObject) {
984
694
  const out = Array.isArray(value) ? [] : {};
985
- for (const [k, v] of Object.entries(value)) {
695
+ for (const k in value) {
696
+ const v = value[k];
986
697
  if (v instanceof NumericValue) {
987
698
  out[k] = v;
988
699
  } else {
@@ -998,7 +709,7 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
998
709
  }
999
710
  };
1000
711
 
1001
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js
712
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js
1002
713
  var NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
1003
714
  var JsonReplacer = class {
1004
715
  constructor() {
@@ -1047,7 +758,7 @@ var JsonReplacer = class {
1047
758
  }
1048
759
  };
1049
760
 
1050
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js
761
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js
1051
762
  var JsonShapeSerializer = class extends SerdeContextConfig {
1052
763
  constructor(settings) {
1053
764
  super();
@@ -1061,12 +772,6 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1061
772
  this.rootSchema = NormalizedSchema.of(schema);
1062
773
  this.buffer = this._write(this.rootSchema, value);
1063
774
  }
1064
- writeDiscriminatedDocument(schema, value) {
1065
- this.write(schema, value);
1066
- if (typeof this.buffer === "object") {
1067
- this.buffer.__type = NormalizedSchema.of(schema).getName(true);
1068
- }
1069
- }
1070
775
  flush() {
1071
776
  const { rootSchema, useReplacer } = this;
1072
777
  this.rootSchema = void 0;
@@ -1080,6 +785,12 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1080
785
  }
1081
786
  return this.buffer;
1082
787
  }
788
+ writeDiscriminatedDocument(schema, value) {
789
+ this.write(schema, value);
790
+ if (typeof this.buffer === "object") {
791
+ this.buffer.__type = NormalizedSchema.of(schema).getName(true);
792
+ }
793
+ }
1083
794
  _write(schema, value, container) {
1084
795
  const isObject = value !== null && typeof value === "object";
1085
796
  const ns = NormalizedSchema.of(schema);
@@ -1092,6 +803,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1092
803
  if (jsonName) {
1093
804
  nameMap = {};
1094
805
  }
806
+ let outCount = 0;
1095
807
  for (const [memberName, memberSchema] of ns.structIterator()) {
1096
808
  const serializableValue = this._write(memberSchema, record[memberName], ns);
1097
809
  if (serializableValue !== void 0) {
@@ -1101,16 +813,18 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1101
813
  nameMap[memberName] = targetKey;
1102
814
  }
1103
815
  out[targetKey] = serializableValue;
816
+ outCount++;
1104
817
  }
1105
818
  }
1106
- if (ns.isUnionSchema() && Object.keys(out).length === 0) {
819
+ if (ns.isUnionSchema() && outCount === 0) {
1107
820
  const { $unknown } = record;
1108
821
  if (Array.isArray($unknown)) {
1109
822
  const [k, v] = $unknown;
1110
823
  out[k] = this._write(15, v);
1111
824
  }
1112
825
  } else if (typeof record.__type === "string") {
1113
- for (const [k, v] of Object.entries(record)) {
826
+ for (const k in record) {
827
+ const v = record[k];
1114
828
  const targetKey = jsonName ? nameMap[k] ?? k : k;
1115
829
  if (!(targetKey in out)) {
1116
830
  out[targetKey] = this._write(15, v);
@@ -1134,7 +848,8 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1134
848
  const mapMember = ns.getValueSchema();
1135
849
  const out = {};
1136
850
  const sparse = !!ns.getMergedTraits().sparse;
1137
- for (const [_k, _v] of Object.entries(value)) {
851
+ for (const _k in value) {
852
+ const _v = value[_k];
1138
853
  if (sparse || _v != null) {
1139
854
  out[_k] = this._write(mapMember, _v);
1140
855
  }
@@ -1199,7 +914,8 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1199
914
  if (ns.isDocumentSchema()) {
1200
915
  if (isObject) {
1201
916
  const out = Array.isArray(value) ? [] : {};
1202
- for (const [k, v] of Object.entries(value)) {
917
+ for (const k in value) {
918
+ const v = value[k];
1203
919
  if (v instanceof NumericValue) {
1204
920
  this.useReplacer = true;
1205
921
  out[k] = v;
@@ -1216,7 +932,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
1216
932
  }
1217
933
  };
1218
934
 
1219
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js
935
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js
1220
936
  var JsonCodec = class extends SerdeContextConfig {
1221
937
  constructor(settings) {
1222
938
  super();
@@ -1235,7 +951,7 @@ var JsonCodec = class extends SerdeContextConfig {
1235
951
  }
1236
952
  };
1237
953
 
1238
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js
954
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js
1239
955
  var AwsRestJsonProtocol = class extends HttpBindingProtocol {
1240
956
  constructor({ defaultNamespace, errorTypeRegistries }) {
1241
957
  super({
@@ -1302,9 +1018,10 @@ var AwsRestJsonProtocol = class extends HttpBindingProtocol {
1302
1018
  const exception = new ErrorCtor(message);
1303
1019
  await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1304
1020
  const output = {};
1021
+ const errorDeserializer = this.codec.createDeserializer();
1305
1022
  for (const [name, member] of ns.structIterator()) {
1306
1023
  const target = member.getMergedTraits().jsonName ?? name;
1307
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
1024
+ output[name] = errorDeserializer.readObject(member, dataObject[target]);
1308
1025
  }
1309
1026
  throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1310
1027
  $fault: ns.getMergedTraits().error,
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  ProviderError
4
- } from "./chunk-OMR2FLSI.mjs";
4
+ } from "./chunk-AEKGTTWT.mjs";
5
5
 
6
- // ../node_modules/.bun/@smithy+property-provider@4.2.12/node_modules/@smithy/property-provider/dist-es/chain.js
6
+ // ../node_modules/.bun/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/chain.js
7
7
  var chain = (...providers) => async () => {
8
8
  if (providers.length === 0) {
9
9
  throw new ProviderError("No providers in chain");