replicas-engine 0.1.144 → 0.1.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/{chunk-XCFRYWEV.js → chunk-2Y7PD56W.js} +12 -12
- package/dist/src/{chunk-JFXVYYQY.js → chunk-5VUQ55WW.js} +19 -19
- package/dist/src/{chunk-NPXMDMPW.js → chunk-AAVVX4U5.js} +6 -6
- package/dist/src/{chunk-J3WZZOOL.js → chunk-BUG7ZAQW.js} +72 -355
- package/dist/src/{chunk-TY2FR253.js → chunk-SGITM26Q.js} +309 -22
- package/dist/src/{chunk-YDW6RZI2.js → chunk-ST5JVROM.js} +2 -2
- package/dist/src/{chunk-WCAERHFE.js → chunk-SWX24AGM.js} +1 -1
- package/dist/src/{chunk-7RS3TOFT.js → chunk-TU2SAX7Z.js} +1072 -1228
- package/dist/src/{chunk-MCYTXPBZ.js → chunk-WPAL27HA.js} +2 -2
- package/dist/src/{chunk-N2BGF5AZ.js → chunk-ZNARSMJG.js} +1 -1
- package/dist/src/{dist-es-UV765YRF.js → dist-es-BUG4C6LP.js} +18 -18
- package/dist/src/{dist-es-3LYC7DO3.js → dist-es-F6RG3S4O.js} +12 -14
- package/dist/src/{dist-es-KHBICPEM.js → dist-es-GGHPJZ3K.js} +19 -19
- package/dist/src/{dist-es-7DTYZ3KD.js → dist-es-GZBSW2H3.js} +27 -27
- package/dist/src/{dist-es-YWO2URNL.js → dist-es-JIV2SPEM.js} +7 -7
- package/dist/src/{dist-es-BNJQGHZR.js → dist-es-Q3YZVSCP.js} +7 -7
- package/dist/src/{dist-es-EVINFDC2.js → dist-es-YKS4LXBO.js} +3 -3
- package/dist/src/index.js +480 -510
- package/dist/src/{loadSso-ZRFAKENS.js → loadSso-3WFGTQV7.js} +109 -148
- package/dist/src/{signin-PNR24U2H.js → signin-RSKKVVIS.js} +123 -177
- package/dist/src/{sso-oidc-O55BGCVQ.js → sso-oidc-LBVW2ORP.js} +111 -150
- package/dist/src/{sts-MRC7OH6Z.js → sts-DKGAU6YE.js} +2911 -718
- package/package.json +1 -1
- package/dist/src/chunk-5V5ZNFZK.js +0 -178
- package/dist/src/event-streams-IFAW3KBX.js +0 -244
|
@@ -15,288 +15,27 @@ import {
|
|
|
15
15
|
splitHeader,
|
|
16
16
|
translateTraits,
|
|
17
17
|
v4
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TU2SAX7Z.js";
|
|
19
19
|
import {
|
|
20
20
|
sdkStreamMixin
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AAVVX4U5.js";
|
|
22
22
|
import {
|
|
23
|
+
dateToUtcString,
|
|
23
24
|
fromBase64,
|
|
25
|
+
parseEpochTimestamp,
|
|
26
|
+
parseRfc3339DateTimeWithOffset,
|
|
27
|
+
parseRfc7231DateTime,
|
|
24
28
|
toBase64
|
|
25
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SGITM26Q.js";
|
|
26
30
|
import {
|
|
27
31
|
HttpRequest
|
|
28
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SWX24AGM.js";
|
|
29
33
|
import {
|
|
30
34
|
fromUtf8,
|
|
31
35
|
toUtf8
|
|
32
36
|
} from "./chunk-ERL3EC7G.js";
|
|
33
37
|
|
|
34
|
-
// ../node_modules/.bun/@smithy+core@3.23.
|
|
35
|
-
var expectNumber = (value) => {
|
|
36
|
-
if (value === null || value === void 0) {
|
|
37
|
-
return void 0;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === "string") {
|
|
40
|
-
const parsed = parseFloat(value);
|
|
41
|
-
if (!Number.isNaN(parsed)) {
|
|
42
|
-
if (String(parsed) !== String(value)) {
|
|
43
|
-
logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`));
|
|
44
|
-
}
|
|
45
|
-
return parsed;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (typeof value === "number") {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
throw new TypeError(`Expected number, got ${typeof value}: ${value}`);
|
|
52
|
-
};
|
|
53
|
-
var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));
|
|
54
|
-
var expectFloat32 = (value) => {
|
|
55
|
-
const expected = expectNumber(value);
|
|
56
|
-
if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {
|
|
57
|
-
if (Math.abs(expected) > MAX_FLOAT) {
|
|
58
|
-
throw new TypeError(`Expected 32-bit float, got ${value}`);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return expected;
|
|
62
|
-
};
|
|
63
|
-
var expectLong = (value) => {
|
|
64
|
-
if (value === null || value === void 0) {
|
|
65
|
-
return void 0;
|
|
66
|
-
}
|
|
67
|
-
if (Number.isInteger(value) && !Number.isNaN(value)) {
|
|
68
|
-
return value;
|
|
69
|
-
}
|
|
70
|
-
throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);
|
|
71
|
-
};
|
|
72
|
-
var expectShort = (value) => expectSizedInt(value, 16);
|
|
73
|
-
var expectByte = (value) => expectSizedInt(value, 8);
|
|
74
|
-
var expectSizedInt = (value, size) => {
|
|
75
|
-
const expected = expectLong(value);
|
|
76
|
-
if (expected !== void 0 && castInt(expected, size) !== expected) {
|
|
77
|
-
throw new TypeError(`Expected ${size}-bit integer, got ${value}`);
|
|
78
|
-
}
|
|
79
|
-
return expected;
|
|
80
|
-
};
|
|
81
|
-
var castInt = (value, size) => {
|
|
82
|
-
switch (size) {
|
|
83
|
-
case 32:
|
|
84
|
-
return Int32Array.of(value)[0];
|
|
85
|
-
case 16:
|
|
86
|
-
return Int16Array.of(value)[0];
|
|
87
|
-
case 8:
|
|
88
|
-
return Int8Array.of(value)[0];
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
var strictParseDouble = (value) => {
|
|
92
|
-
if (typeof value == "string") {
|
|
93
|
-
return expectNumber(parseNumber(value));
|
|
94
|
-
}
|
|
95
|
-
return expectNumber(value);
|
|
96
|
-
};
|
|
97
|
-
var strictParseFloat32 = (value) => {
|
|
98
|
-
if (typeof value == "string") {
|
|
99
|
-
return expectFloat32(parseNumber(value));
|
|
100
|
-
}
|
|
101
|
-
return expectFloat32(value);
|
|
102
|
-
};
|
|
103
|
-
var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;
|
|
104
|
-
var parseNumber = (value) => {
|
|
105
|
-
const matches = value.match(NUMBER_REGEX);
|
|
106
|
-
if (matches === null || matches[0].length !== value.length) {
|
|
107
|
-
throw new TypeError(`Expected real number, got implicit NaN`);
|
|
108
|
-
}
|
|
109
|
-
return parseFloat(value);
|
|
110
|
-
};
|
|
111
|
-
var strictParseShort = (value) => {
|
|
112
|
-
if (typeof value === "string") {
|
|
113
|
-
return expectShort(parseNumber(value));
|
|
114
|
-
}
|
|
115
|
-
return expectShort(value);
|
|
116
|
-
};
|
|
117
|
-
var strictParseByte = (value) => {
|
|
118
|
-
if (typeof value === "string") {
|
|
119
|
-
return expectByte(parseNumber(value));
|
|
120
|
-
}
|
|
121
|
-
return expectByte(value);
|
|
122
|
-
};
|
|
123
|
-
var stackTraceWarning = (message) => {
|
|
124
|
-
return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n");
|
|
125
|
-
};
|
|
126
|
-
var logger = {
|
|
127
|
-
warn: console.warn
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js
|
|
131
|
-
var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
132
|
-
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
133
|
-
function dateToUtcString(date) {
|
|
134
|
-
const year = date.getUTCFullYear();
|
|
135
|
-
const month = date.getUTCMonth();
|
|
136
|
-
const dayOfWeek = date.getUTCDay();
|
|
137
|
-
const dayOfMonthInt = date.getUTCDate();
|
|
138
|
-
const hoursInt = date.getUTCHours();
|
|
139
|
-
const minutesInt = date.getUTCMinutes();
|
|
140
|
-
const secondsInt = date.getUTCSeconds();
|
|
141
|
-
const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
|
|
142
|
-
const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
|
|
143
|
-
const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
|
|
144
|
-
const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
|
|
145
|
-
return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
|
|
146
|
-
}
|
|
147
|
-
var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
|
|
148
|
-
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])$/);
|
|
149
|
-
var parseRfc3339DateTimeWithOffset = (value) => {
|
|
150
|
-
if (value === null || value === void 0) {
|
|
151
|
-
return void 0;
|
|
152
|
-
}
|
|
153
|
-
if (typeof value !== "string") {
|
|
154
|
-
throw new TypeError("RFC-3339 date-times must be expressed as strings");
|
|
155
|
-
}
|
|
156
|
-
const match = RFC3339_WITH_OFFSET.exec(value);
|
|
157
|
-
if (!match) {
|
|
158
|
-
throw new TypeError("Invalid RFC-3339 date-time value");
|
|
159
|
-
}
|
|
160
|
-
const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match;
|
|
161
|
-
const year = strictParseShort(stripLeadingZeroes(yearStr));
|
|
162
|
-
const month = parseDateValue(monthStr, "month", 1, 12);
|
|
163
|
-
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
164
|
-
const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
165
|
-
if (offsetStr.toUpperCase() != "Z") {
|
|
166
|
-
date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));
|
|
167
|
-
}
|
|
168
|
-
return date;
|
|
169
|
-
};
|
|
170
|
-
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$/);
|
|
171
|
-
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$/);
|
|
172
|
-
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})$/);
|
|
173
|
-
var parseRfc7231DateTime = (value) => {
|
|
174
|
-
if (value === null || value === void 0) {
|
|
175
|
-
return void 0;
|
|
176
|
-
}
|
|
177
|
-
if (typeof value !== "string") {
|
|
178
|
-
throw new TypeError("RFC-7231 date-times must be expressed as strings");
|
|
179
|
-
}
|
|
180
|
-
let match = IMF_FIXDATE.exec(value);
|
|
181
|
-
if (match) {
|
|
182
|
-
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
183
|
-
return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
|
|
184
|
-
}
|
|
185
|
-
match = RFC_850_DATE.exec(value);
|
|
186
|
-
if (match) {
|
|
187
|
-
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
188
|
-
return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
|
|
189
|
-
hours,
|
|
190
|
-
minutes,
|
|
191
|
-
seconds,
|
|
192
|
-
fractionalMilliseconds
|
|
193
|
-
}));
|
|
194
|
-
}
|
|
195
|
-
match = ASC_TIME.exec(value);
|
|
196
|
-
if (match) {
|
|
197
|
-
const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;
|
|
198
|
-
return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
|
|
199
|
-
}
|
|
200
|
-
throw new TypeError("Invalid RFC-7231 date-time value");
|
|
201
|
-
};
|
|
202
|
-
var parseEpochTimestamp = (value) => {
|
|
203
|
-
if (value === null || value === void 0) {
|
|
204
|
-
return void 0;
|
|
205
|
-
}
|
|
206
|
-
let valueAsDouble;
|
|
207
|
-
if (typeof value === "number") {
|
|
208
|
-
valueAsDouble = value;
|
|
209
|
-
} else if (typeof value === "string") {
|
|
210
|
-
valueAsDouble = strictParseDouble(value);
|
|
211
|
-
} else if (typeof value === "object" && value.tag === 1) {
|
|
212
|
-
valueAsDouble = value.value;
|
|
213
|
-
} else {
|
|
214
|
-
throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
|
|
215
|
-
}
|
|
216
|
-
if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) {
|
|
217
|
-
throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");
|
|
218
|
-
}
|
|
219
|
-
return new Date(Math.round(valueAsDouble * 1e3));
|
|
220
|
-
};
|
|
221
|
-
var buildDate = (year, month, day, time) => {
|
|
222
|
-
const adjustedMonth = month - 1;
|
|
223
|
-
validateDayOfMonth(year, adjustedMonth, day);
|
|
224
|
-
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)));
|
|
225
|
-
};
|
|
226
|
-
var parseTwoDigitYear = (value) => {
|
|
227
|
-
const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
|
|
228
|
-
const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));
|
|
229
|
-
if (valueInThisCentury < thisYear) {
|
|
230
|
-
return valueInThisCentury + 100;
|
|
231
|
-
}
|
|
232
|
-
return valueInThisCentury;
|
|
233
|
-
};
|
|
234
|
-
var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
|
|
235
|
-
var adjustRfc850Year = (input) => {
|
|
236
|
-
if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
|
|
237
|
-
return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds()));
|
|
238
|
-
}
|
|
239
|
-
return input;
|
|
240
|
-
};
|
|
241
|
-
var parseMonthByShortName = (value) => {
|
|
242
|
-
const monthIdx = MONTHS.indexOf(value);
|
|
243
|
-
if (monthIdx < 0) {
|
|
244
|
-
throw new TypeError(`Invalid month: ${value}`);
|
|
245
|
-
}
|
|
246
|
-
return monthIdx + 1;
|
|
247
|
-
};
|
|
248
|
-
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
249
|
-
var validateDayOfMonth = (year, month, day) => {
|
|
250
|
-
let maxDays = DAYS_IN_MONTH[month];
|
|
251
|
-
if (month === 1 && isLeapYear(year)) {
|
|
252
|
-
maxDays = 29;
|
|
253
|
-
}
|
|
254
|
-
if (day > maxDays) {
|
|
255
|
-
throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
var isLeapYear = (year) => {
|
|
259
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
260
|
-
};
|
|
261
|
-
var parseDateValue = (value, type, lower, upper) => {
|
|
262
|
-
const dateVal = strictParseByte(stripLeadingZeroes(value));
|
|
263
|
-
if (dateVal < lower || dateVal > upper) {
|
|
264
|
-
throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);
|
|
265
|
-
}
|
|
266
|
-
return dateVal;
|
|
267
|
-
};
|
|
268
|
-
var parseMilliseconds = (value) => {
|
|
269
|
-
if (value === null || value === void 0) {
|
|
270
|
-
return 0;
|
|
271
|
-
}
|
|
272
|
-
return strictParseFloat32("0." + value) * 1e3;
|
|
273
|
-
};
|
|
274
|
-
var parseOffsetToMilliseconds = (value) => {
|
|
275
|
-
const directionStr = value[0];
|
|
276
|
-
let direction = 1;
|
|
277
|
-
if (directionStr == "+") {
|
|
278
|
-
direction = 1;
|
|
279
|
-
} else if (directionStr == "-") {
|
|
280
|
-
direction = -1;
|
|
281
|
-
} else {
|
|
282
|
-
throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`);
|
|
283
|
-
}
|
|
284
|
-
const hour = Number(value.substring(1, 3));
|
|
285
|
-
const minute = Number(value.substring(4, 6));
|
|
286
|
-
return direction * (hour * 60 + minute) * 60 * 1e3;
|
|
287
|
-
};
|
|
288
|
-
var stripLeadingZeroes = (value) => {
|
|
289
|
-
let idx = 0;
|
|
290
|
-
while (idx < value.length - 1 && value.charAt(idx) === "0") {
|
|
291
|
-
idx++;
|
|
292
|
-
}
|
|
293
|
-
if (idx === 0) {
|
|
294
|
-
return value;
|
|
295
|
-
}
|
|
296
|
-
return value.slice(idx);
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
// ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js
|
|
38
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js
|
|
300
39
|
function quoteHeader(part) {
|
|
301
40
|
if (part.includes(",") || part.includes('"')) {
|
|
302
41
|
part = `"${part.replace(/"/g, '\\"')}"`;
|
|
@@ -304,7 +43,7 @@ function quoteHeader(part) {
|
|
|
304
43
|
return part;
|
|
305
44
|
}
|
|
306
45
|
|
|
307
|
-
// ../node_modules/.bun/@smithy+core@3.23.
|
|
46
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/split-every.js
|
|
308
47
|
function splitEvery(value, delimiter, numDelimiters) {
|
|
309
48
|
if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {
|
|
310
49
|
throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery.");
|
|
@@ -332,7 +71,7 @@ function splitEvery(value, delimiter, numDelimiters) {
|
|
|
332
71
|
return compoundSegments;
|
|
333
72
|
}
|
|
334
73
|
|
|
335
|
-
// ../node_modules/.bun/@smithy+core@3.23.
|
|
74
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
|
|
336
75
|
var HttpBindingProtocol = class extends HttpProtocol {
|
|
337
76
|
async serializeRequest(operationSchema, _input, context) {
|
|
338
77
|
const input = _input && typeof _input === "object" ? _input : {};
|
|
@@ -368,7 +107,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
368
107
|
request.path += path;
|
|
369
108
|
}
|
|
370
109
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
371
|
-
|
|
110
|
+
for (const [key, value] of traitSearchParams) {
|
|
111
|
+
query[key] = value;
|
|
112
|
+
}
|
|
372
113
|
}
|
|
373
114
|
}
|
|
374
115
|
for (const [memberName, memberNs] of ns.structIterator()) {
|
|
@@ -412,7 +153,8 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
412
153
|
serializer.write(memberNs, inputMemberValue);
|
|
413
154
|
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
414
155
|
} else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
415
|
-
for (const
|
|
156
|
+
for (const key in inputMemberValue) {
|
|
157
|
+
const val = inputMemberValue[key];
|
|
416
158
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
417
159
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
418
160
|
headers[amalgam.toLowerCase()] = serializer.flush();
|
|
@@ -454,8 +196,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
454
196
|
const serializer = this.serializer;
|
|
455
197
|
const traits = ns.getMergedTraits();
|
|
456
198
|
if (traits.httpQueryParams) {
|
|
457
|
-
for (const
|
|
199
|
+
for (const key in data) {
|
|
458
200
|
if (!(key in query)) {
|
|
201
|
+
const val = data[key];
|
|
459
202
|
const valueSchema = ns.getValueSchema();
|
|
460
203
|
Object.assign(valueSchema.getMergedTraits(), {
|
|
461
204
|
...traits,
|
|
@@ -573,8 +316,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
573
316
|
}
|
|
574
317
|
} else if (memberTraits.httpPrefixHeaders !== void 0) {
|
|
575
318
|
dataObject[memberName] = {};
|
|
576
|
-
for (const
|
|
319
|
+
for (const header in response.headers) {
|
|
577
320
|
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
321
|
+
const value = response.headers[header];
|
|
578
322
|
const valueSchema = memberSchema.getValueSchema();
|
|
579
323
|
valueSchema.getMergedTraits().httpHeader = header;
|
|
580
324
|
dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value);
|
|
@@ -591,7 +335,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
591
335
|
}
|
|
592
336
|
};
|
|
593
337
|
|
|
594
|
-
// ../node_modules/.bun/@smithy+core@3.23.
|
|
338
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
|
|
595
339
|
var HttpInterceptingShapeDeserializer = class extends SerdeContext {
|
|
596
340
|
codecDeserializer;
|
|
597
341
|
stringDeserializer;
|
|
@@ -630,7 +374,7 @@ var HttpInterceptingShapeDeserializer = class extends SerdeContext {
|
|
|
630
374
|
}
|
|
631
375
|
};
|
|
632
376
|
|
|
633
|
-
// ../node_modules/.bun/@smithy+core@3.23.
|
|
377
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
|
|
634
378
|
var ToStringShapeSerializer = class extends SerdeContext {
|
|
635
379
|
settings;
|
|
636
380
|
stringBuffer = "";
|
|
@@ -717,7 +461,7 @@ var ToStringShapeSerializer = class extends SerdeContext {
|
|
|
717
461
|
}
|
|
718
462
|
};
|
|
719
463
|
|
|
720
|
-
// ../node_modules/.bun/@smithy+core@3.23.
|
|
464
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
|
|
721
465
|
var HttpInterceptingShapeSerializer = class {
|
|
722
466
|
codecSerializer;
|
|
723
467
|
stringSerializer;
|
|
@@ -750,42 +494,7 @@ var HttpInterceptingShapeSerializer = class {
|
|
|
750
494
|
}
|
|
751
495
|
};
|
|
752
496
|
|
|
753
|
-
// ../node_modules/.bun/@
|
|
754
|
-
var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
|
|
755
|
-
static fromString(source, encoding = "utf-8") {
|
|
756
|
-
if (typeof source === "string") {
|
|
757
|
-
if (encoding === "base64") {
|
|
758
|
-
return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
|
|
759
|
-
}
|
|
760
|
-
return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
|
|
761
|
-
}
|
|
762
|
-
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
763
|
-
}
|
|
764
|
-
static mutate(source) {
|
|
765
|
-
Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
|
|
766
|
-
return source;
|
|
767
|
-
}
|
|
768
|
-
transformToString(encoding = "utf-8") {
|
|
769
|
-
if (encoding === "base64") {
|
|
770
|
-
return toBase64(this);
|
|
771
|
-
}
|
|
772
|
-
return toUtf8(this);
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
|
|
777
|
-
var collectBody2 = async (streamBody = new Uint8Array(), context) => {
|
|
778
|
-
if (streamBody instanceof Uint8Array) {
|
|
779
|
-
return Uint8ArrayBlobAdapter.mutate(streamBody);
|
|
780
|
-
}
|
|
781
|
-
if (!streamBody) {
|
|
782
|
-
return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
|
|
783
|
-
}
|
|
784
|
-
const fromContext = context.streamCollector(streamBody);
|
|
785
|
-
return Uint8ArrayBlobAdapter.mutate(await fromContext);
|
|
786
|
-
};
|
|
787
|
-
|
|
788
|
-
// ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
|
|
497
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
|
|
789
498
|
function jsonReviver(key, value, context) {
|
|
790
499
|
if (context?.source) {
|
|
791
500
|
const numericString = context.source;
|
|
@@ -803,10 +512,10 @@ function jsonReviver(key, value, context) {
|
|
|
803
512
|
return value;
|
|
804
513
|
}
|
|
805
514
|
|
|
806
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
807
|
-
var collectBodyString = (streamBody, context) =>
|
|
515
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
|
|
516
|
+
var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
|
|
808
517
|
|
|
809
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
518
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
|
|
810
519
|
var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
811
520
|
if (encoded.length) {
|
|
812
521
|
try {
|
|
@@ -822,24 +531,24 @@ var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, conte
|
|
|
822
531
|
}
|
|
823
532
|
return {};
|
|
824
533
|
});
|
|
534
|
+
var findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
535
|
+
var sanitizeErrorCode = (rawValue) => {
|
|
536
|
+
let cleanValue = rawValue;
|
|
537
|
+
if (typeof cleanValue === "number") {
|
|
538
|
+
cleanValue = cleanValue.toString();
|
|
539
|
+
}
|
|
540
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
541
|
+
cleanValue = cleanValue.split(",")[0];
|
|
542
|
+
}
|
|
543
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
544
|
+
cleanValue = cleanValue.split(":")[0];
|
|
545
|
+
}
|
|
546
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
547
|
+
cleanValue = cleanValue.split("#")[1];
|
|
548
|
+
}
|
|
549
|
+
return cleanValue;
|
|
550
|
+
};
|
|
825
551
|
var loadRestJsonErrorCode = (output, data) => {
|
|
826
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
827
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
828
|
-
let cleanValue = rawValue;
|
|
829
|
-
if (typeof cleanValue === "number") {
|
|
830
|
-
cleanValue = cleanValue.toString();
|
|
831
|
-
}
|
|
832
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
833
|
-
cleanValue = cleanValue.split(",")[0];
|
|
834
|
-
}
|
|
835
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
836
|
-
cleanValue = cleanValue.split(":")[0];
|
|
837
|
-
}
|
|
838
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
839
|
-
cleanValue = cleanValue.split("#")[1];
|
|
840
|
-
}
|
|
841
|
-
return cleanValue;
|
|
842
|
-
};
|
|
843
552
|
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
844
553
|
if (headerKey !== void 0) {
|
|
845
554
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
@@ -855,7 +564,7 @@ var loadRestJsonErrorCode = (output, data) => {
|
|
|
855
564
|
}
|
|
856
565
|
};
|
|
857
566
|
|
|
858
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
567
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
|
|
859
568
|
var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
860
569
|
settings;
|
|
861
570
|
constructor(settings) {
|
|
@@ -901,7 +610,8 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
901
610
|
if (union) {
|
|
902
611
|
unionSerde.writeUnknown();
|
|
903
612
|
} else if (typeof record.__type === "string") {
|
|
904
|
-
for (const
|
|
613
|
+
for (const k in record) {
|
|
614
|
+
const v = record[k];
|
|
905
615
|
const t = jsonName ? nameMap[k] ?? k : k;
|
|
906
616
|
if (!(t in out)) {
|
|
907
617
|
out[t] = v;
|
|
@@ -921,8 +631,8 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
921
631
|
if (ns.isMapSchema()) {
|
|
922
632
|
const mapMember = ns.getValueSchema();
|
|
923
633
|
const out = {};
|
|
924
|
-
for (const
|
|
925
|
-
out[_k] = this._read(mapMember,
|
|
634
|
+
for (const _k in value) {
|
|
635
|
+
out[_k] = this._read(mapMember, value[_k]);
|
|
926
636
|
}
|
|
927
637
|
return out;
|
|
928
638
|
}
|
|
@@ -979,7 +689,8 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
979
689
|
if (ns.isDocumentSchema()) {
|
|
980
690
|
if (isObject) {
|
|
981
691
|
const out = Array.isArray(value) ? [] : {};
|
|
982
|
-
for (const
|
|
692
|
+
for (const k in value) {
|
|
693
|
+
const v = value[k];
|
|
983
694
|
if (v instanceof NumericValue) {
|
|
984
695
|
out[k] = v;
|
|
985
696
|
} else {
|
|
@@ -995,7 +706,7 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
995
706
|
}
|
|
996
707
|
};
|
|
997
708
|
|
|
998
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
709
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js
|
|
999
710
|
var NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
|
|
1000
711
|
var JsonReplacer = class {
|
|
1001
712
|
values = /* @__PURE__ */ new Map();
|
|
@@ -1042,7 +753,7 @@ var JsonReplacer = class {
|
|
|
1042
753
|
}
|
|
1043
754
|
};
|
|
1044
755
|
|
|
1045
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
756
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js
|
|
1046
757
|
var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
1047
758
|
settings;
|
|
1048
759
|
buffer;
|
|
@@ -1056,12 +767,6 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
1056
767
|
this.rootSchema = NormalizedSchema.of(schema);
|
|
1057
768
|
this.buffer = this._write(this.rootSchema, value);
|
|
1058
769
|
}
|
|
1059
|
-
writeDiscriminatedDocument(schema, value) {
|
|
1060
|
-
this.write(schema, value);
|
|
1061
|
-
if (typeof this.buffer === "object") {
|
|
1062
|
-
this.buffer.__type = NormalizedSchema.of(schema).getName(true);
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
770
|
flush() {
|
|
1066
771
|
const { rootSchema, useReplacer } = this;
|
|
1067
772
|
this.rootSchema = void 0;
|
|
@@ -1075,6 +780,12 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
1075
780
|
}
|
|
1076
781
|
return this.buffer;
|
|
1077
782
|
}
|
|
783
|
+
writeDiscriminatedDocument(schema, value) {
|
|
784
|
+
this.write(schema, value);
|
|
785
|
+
if (typeof this.buffer === "object") {
|
|
786
|
+
this.buffer.__type = NormalizedSchema.of(schema).getName(true);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
1078
789
|
_write(schema, value, container) {
|
|
1079
790
|
const isObject = value !== null && typeof value === "object";
|
|
1080
791
|
const ns = NormalizedSchema.of(schema);
|
|
@@ -1087,6 +798,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
1087
798
|
if (jsonName) {
|
|
1088
799
|
nameMap = {};
|
|
1089
800
|
}
|
|
801
|
+
let outCount = 0;
|
|
1090
802
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
1091
803
|
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
1092
804
|
if (serializableValue !== void 0) {
|
|
@@ -1096,16 +808,18 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
1096
808
|
nameMap[memberName] = targetKey;
|
|
1097
809
|
}
|
|
1098
810
|
out[targetKey] = serializableValue;
|
|
811
|
+
outCount++;
|
|
1099
812
|
}
|
|
1100
813
|
}
|
|
1101
|
-
if (ns.isUnionSchema() &&
|
|
814
|
+
if (ns.isUnionSchema() && outCount === 0) {
|
|
1102
815
|
const { $unknown } = record;
|
|
1103
816
|
if (Array.isArray($unknown)) {
|
|
1104
817
|
const [k, v] = $unknown;
|
|
1105
818
|
out[k] = this._write(15, v);
|
|
1106
819
|
}
|
|
1107
820
|
} else if (typeof record.__type === "string") {
|
|
1108
|
-
for (const
|
|
821
|
+
for (const k in record) {
|
|
822
|
+
const v = record[k];
|
|
1109
823
|
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
1110
824
|
if (!(targetKey in out)) {
|
|
1111
825
|
out[targetKey] = this._write(15, v);
|
|
@@ -1129,7 +843,8 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
1129
843
|
const mapMember = ns.getValueSchema();
|
|
1130
844
|
const out = {};
|
|
1131
845
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
1132
|
-
for (const
|
|
846
|
+
for (const _k in value) {
|
|
847
|
+
const _v = value[_k];
|
|
1133
848
|
if (sparse || _v != null) {
|
|
1134
849
|
out[_k] = this._write(mapMember, _v);
|
|
1135
850
|
}
|
|
@@ -1194,7 +909,8 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
1194
909
|
if (ns.isDocumentSchema()) {
|
|
1195
910
|
if (isObject) {
|
|
1196
911
|
const out = Array.isArray(value) ? [] : {};
|
|
1197
|
-
for (const
|
|
912
|
+
for (const k in value) {
|
|
913
|
+
const v = value[k];
|
|
1198
914
|
if (v instanceof NumericValue) {
|
|
1199
915
|
this.useReplacer = true;
|
|
1200
916
|
out[k] = v;
|
|
@@ -1211,7 +927,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
1211
927
|
}
|
|
1212
928
|
};
|
|
1213
929
|
|
|
1214
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
930
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js
|
|
1215
931
|
var JsonCodec = class extends SerdeContextConfig {
|
|
1216
932
|
settings;
|
|
1217
933
|
constructor(settings) {
|
|
@@ -1230,7 +946,7 @@ var JsonCodec = class extends SerdeContextConfig {
|
|
|
1230
946
|
}
|
|
1231
947
|
};
|
|
1232
948
|
|
|
1233
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
949
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js
|
|
1234
950
|
var AwsRestJsonProtocol = class extends HttpBindingProtocol {
|
|
1235
951
|
serializer;
|
|
1236
952
|
deserializer;
|
|
@@ -1297,9 +1013,10 @@ var AwsRestJsonProtocol = class extends HttpBindingProtocol {
|
|
|
1297
1013
|
const exception = new ErrorCtor(message);
|
|
1298
1014
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
1299
1015
|
const output = {};
|
|
1016
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
1300
1017
|
for (const [name, member] of ns.structIterator()) {
|
|
1301
1018
|
const target = member.getMergedTraits().jsonName ?? name;
|
|
1302
|
-
output[name] =
|
|
1019
|
+
output[name] = errorDeserializer.readObject(member, dataObject[target]);
|
|
1303
1020
|
}
|
|
1304
1021
|
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
1305
1022
|
$fault: ns.getMergedTraits().error,
|