@etainabl/nodejs-sdk 1.3.164 → 1.3.166

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 (78) hide show
  1. package/dist/esm/chunk-5UJEKK4C.js +22 -0
  2. package/dist/esm/chunk-5UJEKK4C.js.map +1 -0
  3. package/dist/esm/chunk-72KZNKH6.js +180 -0
  4. package/dist/esm/chunk-72KZNKH6.js.map +1 -0
  5. package/dist/esm/{chunk-V42NON4H.js → chunk-7QBJXGSP.js} +23 -1
  6. package/dist/esm/chunk-7QBJXGSP.js.map +1 -0
  7. package/dist/esm/{chunk-GEJJRBZZ.js → chunk-AQUTK7AW.js} +15 -5
  8. package/dist/esm/chunk-AQUTK7AW.js.map +1 -0
  9. package/dist/esm/{chunk-JFJBZL6W.js → chunk-EVJULQPT.js} +1458 -230
  10. package/dist/esm/chunk-EVJULQPT.js.map +1 -0
  11. package/dist/esm/chunk-GA2PLVMV.js +29 -0
  12. package/dist/esm/chunk-GA2PLVMV.js.map +1 -0
  13. package/dist/esm/{chunk-ITNQSW66.js → chunk-IMDTX6W5.js} +57 -7
  14. package/dist/esm/chunk-IMDTX6W5.js.map +1 -0
  15. package/dist/esm/chunk-JI6PVVK3.js +739 -0
  16. package/dist/esm/chunk-JI6PVVK3.js.map +1 -0
  17. package/dist/esm/chunk-KH6HADHN.js +31 -0
  18. package/dist/esm/chunk-KH6HADHN.js.map +1 -0
  19. package/dist/esm/{chunk-64PZMULY.js → chunk-LARQKHST.js} +2 -2
  20. package/dist/esm/chunk-PZ5AY32C.js +10 -0
  21. package/dist/esm/chunk-R2ZTENKB.js +37 -0
  22. package/dist/esm/chunk-R2ZTENKB.js.map +1 -0
  23. package/dist/esm/chunk-RREOR7G6.js +9 -0
  24. package/dist/esm/chunk-RREOR7G6.js.map +1 -0
  25. package/dist/esm/chunk-STDLTQUB.js +180 -0
  26. package/dist/esm/chunk-STDLTQUB.js.map +1 -0
  27. package/dist/esm/chunk-STQV3LF2.js +29 -0
  28. package/dist/esm/chunk-STQV3LF2.js.map +1 -0
  29. package/dist/esm/chunk-WRTOEGQL.js +255 -0
  30. package/dist/esm/chunk-WRTOEGQL.js.map +1 -0
  31. package/dist/esm/{chunk-HAEAETXR.js → chunk-ZW5YT27C.js} +55 -96
  32. package/dist/esm/chunk-ZW5YT27C.js.map +1 -0
  33. package/dist/esm/{dist-es-W6M73SKO.js → dist-es-32LEW3C7.js} +6 -5
  34. package/dist/esm/{dist-es-W6M73SKO.js.map → dist-es-32LEW3C7.js.map} +1 -1
  35. package/dist/esm/{dist-es-SHHKSG6R.js → dist-es-GCETMDH7.js} +4 -3
  36. package/dist/esm/dist-es-GCETMDH7.js.map +1 -0
  37. package/dist/esm/{dist-es-UQHTRG6U.js → dist-es-MHO4ZWXK.js} +7 -5
  38. package/dist/esm/{dist-es-UQHTRG6U.js.map → dist-es-MHO4ZWXK.js.map} +1 -1
  39. package/dist/esm/{dist-es-IIKV4LDE.js → dist-es-MRJ45ZBG.js} +19 -15
  40. package/dist/esm/{dist-es-IIKV4LDE.js.map → dist-es-MRJ45ZBG.js.map} +1 -1
  41. package/dist/esm/{dist-es-CQVI4NNF.js → dist-es-NBFOPILZ.js} +53 -14
  42. package/dist/esm/dist-es-NBFOPILZ.js.map +1 -0
  43. package/dist/esm/{dist-es-AV5FKRC6.js → dist-es-YDCANF64.js} +12 -7
  44. package/dist/esm/{dist-es-AV5FKRC6.js.map → dist-es-YDCANF64.js.map} +1 -1
  45. package/dist/esm/{dist-es-HQRLUYWI.js → dist-es-YPLWYQ2P.js} +4 -3
  46. package/dist/esm/{dist-es-HQRLUYWI.js.map → dist-es-YPLWYQ2P.js.map} +1 -1
  47. package/dist/esm/event-streams-C2D437DF.js +198 -0
  48. package/dist/esm/event-streams-C2D437DF.js.map +1 -0
  49. package/dist/esm/index.js +8421 -7505
  50. package/dist/esm/index.js.map +1 -1
  51. package/dist/esm/{loadSso-2Q7LGXOS.js → loadSso-QXCYUPG5.js} +54 -48
  52. package/dist/esm/loadSso-QXCYUPG5.js.map +1 -0
  53. package/dist/esm/{sso-oidc-7RZV73L6.js → sso-oidc-EU7F5QE4.js} +38 -34
  54. package/dist/esm/{sso-oidc-7RZV73L6.js.map → sso-oidc-EU7F5QE4.js.map} +1 -1
  55. package/dist/esm/{sts-IERANB7E.js → sts-7N2XX5PT.js} +34 -28
  56. package/dist/esm/{sts-IERANB7E.js.map → sts-7N2XX5PT.js.map} +1 -1
  57. package/dist/index.d.cts +411 -11
  58. package/dist/index.d.ts +411 -11
  59. package/dist/index.js +20412 -19412
  60. package/dist/index.js.map +1 -1
  61. package/package.json +7 -2
  62. package/dist/esm/chunk-3YGWW265.js +0 -64
  63. package/dist/esm/chunk-3YGWW265.js.map +0 -1
  64. package/dist/esm/chunk-5VQORBLK.js +0 -136
  65. package/dist/esm/chunk-5VQORBLK.js.map +0 -1
  66. package/dist/esm/chunk-6ZE6VFBF.js +0 -2420
  67. package/dist/esm/chunk-6ZE6VFBF.js.map +0 -1
  68. package/dist/esm/chunk-GEJJRBZZ.js.map +0 -1
  69. package/dist/esm/chunk-HAEAETXR.js.map +0 -1
  70. package/dist/esm/chunk-ITNQSW66.js.map +0 -1
  71. package/dist/esm/chunk-JFJBZL6W.js.map +0 -1
  72. package/dist/esm/chunk-JVMEEBKP.js +0 -127
  73. package/dist/esm/chunk-JVMEEBKP.js.map +0 -1
  74. package/dist/esm/chunk-V42NON4H.js.map +0 -1
  75. package/dist/esm/dist-es-CQVI4NNF.js.map +0 -1
  76. package/dist/esm/loadSso-2Q7LGXOS.js.map +0 -1
  77. /package/dist/esm/{chunk-64PZMULY.js.map → chunk-LARQKHST.js.map} +0 -0
  78. /package/dist/esm/{dist-es-SHHKSG6R.js.map → chunk-PZ5AY32C.js.map} +0 -0
@@ -1,36 +1,391 @@
1
+ import {
2
+ SCHEMA
3
+ } from "./chunk-5UJEKK4C.js";
1
4
  import {
2
5
  loadConfig,
6
+ memoize,
3
7
  parseUrl
4
- } from "./chunk-ITNQSW66.js";
8
+ } from "./chunk-IMDTX6W5.js";
5
9
  import {
6
10
  HttpRequest,
7
11
  HttpResponse,
8
- NoOpLogger,
9
- collectBody,
10
12
  escapeUri,
11
- fromArrayBuffer,
13
+ fromBase64,
12
14
  fromHex,
15
+ toBase64,
16
+ toHex,
17
+ toUtf8
18
+ } from "./chunk-JI6PVVK3.js";
19
+ import {
20
+ fromArrayBuffer,
13
21
  fromString,
14
22
  fromUtf8,
15
- isArrayBuffer,
16
- toHex,
17
- toUint8Array,
18
- v4_default
19
- } from "./chunk-6ZE6VFBF.js";
23
+ isArrayBuffer
24
+ } from "./chunk-KH6HADHN.js";
20
25
  import {
21
26
  CONFIG_PREFIX_SEPARATOR
22
- } from "./chunk-HAEAETXR.js";
27
+ } from "./chunk-ZW5YT27C.js";
23
28
  import {
24
29
  setCredentialFeature
25
30
  } from "./chunk-UZGMBQZB.js";
26
31
  import {
27
- EndpointURLScheme,
28
- SMITHY_CONTEXT_KEY
29
- } from "./chunk-3YGWW265.js";
30
- import {
31
- ProviderError,
32
- memoize
33
- } from "./chunk-JVMEEBKP.js";
32
+ ProviderError
33
+ } from "./chunk-R2ZTENKB.js";
34
+
35
+ // node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js
36
+ var getAllAliases = (name, aliases) => {
37
+ const _aliases = [];
38
+ if (name) {
39
+ _aliases.push(name);
40
+ }
41
+ if (aliases) {
42
+ for (const alias of aliases) {
43
+ _aliases.push(alias);
44
+ }
45
+ }
46
+ return _aliases;
47
+ };
48
+ var getMiddlewareNameWithAliases = (name, aliases) => {
49
+ return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
50
+ };
51
+ var constructStack = () => {
52
+ let absoluteEntries = [];
53
+ let relativeEntries = [];
54
+ let identifyOnResolve = false;
55
+ const entriesNameSet = /* @__PURE__ */ new Set();
56
+ const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
57
+ const removeByName = (toRemove) => {
58
+ let isRemoved = false;
59
+ const filterCb = (entry) => {
60
+ const aliases = getAllAliases(entry.name, entry.aliases);
61
+ if (aliases.includes(toRemove)) {
62
+ isRemoved = true;
63
+ for (const alias of aliases) {
64
+ entriesNameSet.delete(alias);
65
+ }
66
+ return false;
67
+ }
68
+ return true;
69
+ };
70
+ absoluteEntries = absoluteEntries.filter(filterCb);
71
+ relativeEntries = relativeEntries.filter(filterCb);
72
+ return isRemoved;
73
+ };
74
+ const removeByReference = (toRemove) => {
75
+ let isRemoved = false;
76
+ const filterCb = (entry) => {
77
+ if (entry.middleware === toRemove) {
78
+ isRemoved = true;
79
+ for (const alias of getAllAliases(entry.name, entry.aliases)) {
80
+ entriesNameSet.delete(alias);
81
+ }
82
+ return false;
83
+ }
84
+ return true;
85
+ };
86
+ absoluteEntries = absoluteEntries.filter(filterCb);
87
+ relativeEntries = relativeEntries.filter(filterCb);
88
+ return isRemoved;
89
+ };
90
+ const cloneTo = (toStack) => {
91
+ absoluteEntries.forEach((entry) => {
92
+ toStack.add(entry.middleware, { ...entry });
93
+ });
94
+ relativeEntries.forEach((entry) => {
95
+ toStack.addRelativeTo(entry.middleware, { ...entry });
96
+ });
97
+ toStack.identifyOnResolve?.(stack.identifyOnResolve());
98
+ return toStack;
99
+ };
100
+ const expandRelativeMiddlewareList = (from) => {
101
+ const expandedMiddlewareList = [];
102
+ from.before.forEach((entry) => {
103
+ if (entry.before.length === 0 && entry.after.length === 0) {
104
+ expandedMiddlewareList.push(entry);
105
+ } else {
106
+ expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
107
+ }
108
+ });
109
+ expandedMiddlewareList.push(from);
110
+ from.after.reverse().forEach((entry) => {
111
+ if (entry.before.length === 0 && entry.after.length === 0) {
112
+ expandedMiddlewareList.push(entry);
113
+ } else {
114
+ expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
115
+ }
116
+ });
117
+ return expandedMiddlewareList;
118
+ };
119
+ const getMiddlewareList = (debug = false) => {
120
+ const normalizedAbsoluteEntries = [];
121
+ const normalizedRelativeEntries = [];
122
+ const normalizedEntriesNameMap = {};
123
+ absoluteEntries.forEach((entry) => {
124
+ const normalizedEntry = {
125
+ ...entry,
126
+ before: [],
127
+ after: []
128
+ };
129
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
130
+ normalizedEntriesNameMap[alias] = normalizedEntry;
131
+ }
132
+ normalizedAbsoluteEntries.push(normalizedEntry);
133
+ });
134
+ relativeEntries.forEach((entry) => {
135
+ const normalizedEntry = {
136
+ ...entry,
137
+ before: [],
138
+ after: []
139
+ };
140
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
141
+ normalizedEntriesNameMap[alias] = normalizedEntry;
142
+ }
143
+ normalizedRelativeEntries.push(normalizedEntry);
144
+ });
145
+ normalizedRelativeEntries.forEach((entry) => {
146
+ if (entry.toMiddleware) {
147
+ const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
148
+ if (toMiddleware === void 0) {
149
+ if (debug) {
150
+ return;
151
+ }
152
+ throw new Error(`${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`);
153
+ }
154
+ if (entry.relation === "after") {
155
+ toMiddleware.after.push(entry);
156
+ }
157
+ if (entry.relation === "before") {
158
+ toMiddleware.before.push(entry);
159
+ }
160
+ }
161
+ });
162
+ const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expandedMiddlewareList) => {
163
+ wholeList.push(...expandedMiddlewareList);
164
+ return wholeList;
165
+ }, []);
166
+ return mainChain;
167
+ };
168
+ const stack = {
169
+ add: (middleware, options = {}) => {
170
+ const { name, override, aliases: _aliases } = options;
171
+ const entry = {
172
+ step: "initialize",
173
+ priority: "normal",
174
+ middleware,
175
+ ...options
176
+ };
177
+ const aliases = getAllAliases(name, _aliases);
178
+ if (aliases.length > 0) {
179
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
180
+ if (!override)
181
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
182
+ for (const alias of aliases) {
183
+ const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
184
+ if (toOverrideIndex === -1) {
185
+ continue;
186
+ }
187
+ const toOverride = absoluteEntries[toOverrideIndex];
188
+ if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
189
+ throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ${entry.priority} priority in ${entry.step} step.`);
190
+ }
191
+ absoluteEntries.splice(toOverrideIndex, 1);
192
+ }
193
+ }
194
+ for (const alias of aliases) {
195
+ entriesNameSet.add(alias);
196
+ }
197
+ }
198
+ absoluteEntries.push(entry);
199
+ },
200
+ addRelativeTo: (middleware, options) => {
201
+ const { name, override, aliases: _aliases } = options;
202
+ const entry = {
203
+ middleware,
204
+ ...options
205
+ };
206
+ const aliases = getAllAliases(name, _aliases);
207
+ if (aliases.length > 0) {
208
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
209
+ if (!override)
210
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
211
+ for (const alias of aliases) {
212
+ const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
213
+ if (toOverrideIndex === -1) {
214
+ continue;
215
+ }
216
+ const toOverride = relativeEntries[toOverrideIndex];
217
+ if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
218
+ throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} "${entry.toMiddleware}" middleware.`);
219
+ }
220
+ relativeEntries.splice(toOverrideIndex, 1);
221
+ }
222
+ }
223
+ for (const alias of aliases) {
224
+ entriesNameSet.add(alias);
225
+ }
226
+ }
227
+ relativeEntries.push(entry);
228
+ },
229
+ clone: () => cloneTo(constructStack()),
230
+ use: (plugin) => {
231
+ plugin.applyToStack(stack);
232
+ },
233
+ remove: (toRemove) => {
234
+ if (typeof toRemove === "string")
235
+ return removeByName(toRemove);
236
+ else
237
+ return removeByReference(toRemove);
238
+ },
239
+ removeByTag: (toRemove) => {
240
+ let isRemoved = false;
241
+ const filterCb = (entry) => {
242
+ const { tags, name, aliases: _aliases } = entry;
243
+ if (tags && tags.includes(toRemove)) {
244
+ const aliases = getAllAliases(name, _aliases);
245
+ for (const alias of aliases) {
246
+ entriesNameSet.delete(alias);
247
+ }
248
+ isRemoved = true;
249
+ return false;
250
+ }
251
+ return true;
252
+ };
253
+ absoluteEntries = absoluteEntries.filter(filterCb);
254
+ relativeEntries = relativeEntries.filter(filterCb);
255
+ return isRemoved;
256
+ },
257
+ concat: (from) => {
258
+ const cloned = cloneTo(constructStack());
259
+ cloned.use(from);
260
+ cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false));
261
+ return cloned;
262
+ },
263
+ applyToStack: cloneTo,
264
+ identify: () => {
265
+ return getMiddlewareList(true).map((mw) => {
266
+ const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
267
+ return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
268
+ });
269
+ },
270
+ identifyOnResolve(toggle) {
271
+ if (typeof toggle === "boolean")
272
+ identifyOnResolve = toggle;
273
+ return identifyOnResolve;
274
+ },
275
+ resolve: (handler, context) => {
276
+ for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
277
+ handler = middleware(handler, context);
278
+ }
279
+ if (identifyOnResolve) {
280
+ console.log(stack.identify());
281
+ }
282
+ return handler;
283
+ }
284
+ };
285
+ return stack;
286
+ };
287
+ var stepWeights = {
288
+ initialize: 5,
289
+ serialize: 4,
290
+ build: 3,
291
+ finalizeRequest: 2,
292
+ deserialize: 1
293
+ };
294
+ var priorityWeights = {
295
+ high: 3,
296
+ normal: 2,
297
+ low: 1
298
+ };
299
+
300
+ // node_modules/@smithy/smithy-client/dist-es/client.js
301
+ var Client = class {
302
+ constructor(config) {
303
+ this.config = config;
304
+ this.middlewareStack = constructStack();
305
+ }
306
+ send(command, optionsOrCb, cb) {
307
+ const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
308
+ const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
309
+ const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
310
+ let handler;
311
+ if (useHandlerCache) {
312
+ if (!this.handlers) {
313
+ this.handlers = /* @__PURE__ */ new WeakMap();
314
+ }
315
+ const handlers = this.handlers;
316
+ if (handlers.has(command.constructor)) {
317
+ handler = handlers.get(command.constructor);
318
+ } else {
319
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
320
+ handlers.set(command.constructor, handler);
321
+ }
322
+ } else {
323
+ delete this.handlers;
324
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
325
+ }
326
+ if (callback) {
327
+ handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => {
328
+ });
329
+ } else {
330
+ return handler(command).then((result) => result.output);
331
+ }
332
+ }
333
+ destroy() {
334
+ this.config?.requestHandler?.destroy?.();
335
+ delete this.handlers;
336
+ }
337
+ };
338
+
339
+ // node_modules/@smithy/types/dist-es/endpoint.js
340
+ var EndpointURLScheme;
341
+ (function(EndpointURLScheme2) {
342
+ EndpointURLScheme2["HTTP"] = "http";
343
+ EndpointURLScheme2["HTTPS"] = "https";
344
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
345
+
346
+ // node_modules/@smithy/types/dist-es/extensions/checksum.js
347
+ var AlgorithmId;
348
+ (function(AlgorithmId2) {
349
+ AlgorithmId2["MD5"] = "md5";
350
+ AlgorithmId2["CRC32"] = "crc32";
351
+ AlgorithmId2["CRC32C"] = "crc32c";
352
+ AlgorithmId2["SHA1"] = "sha1";
353
+ AlgorithmId2["SHA256"] = "sha256";
354
+ })(AlgorithmId || (AlgorithmId = {}));
355
+
356
+ // node_modules/@smithy/types/dist-es/middleware.js
357
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
358
+
359
+ // node_modules/@smithy/core/dist-es/submodules/schema/deref.js
360
+ var deref = (schemaRef) => {
361
+ if (typeof schemaRef === "function") {
362
+ return schemaRef();
363
+ }
364
+ return schemaRef;
365
+ };
366
+
367
+ // node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
368
+ var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
369
+ return {
370
+ setHttpHandler(handler) {
371
+ runtimeConfig.httpHandler = handler;
372
+ },
373
+ httpHandler() {
374
+ return runtimeConfig.httpHandler;
375
+ },
376
+ updateHttpClientConfig(key, value) {
377
+ runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
378
+ },
379
+ httpHandlerConfigs() {
380
+ return runtimeConfig.httpHandler.httpHandlerConfigs();
381
+ }
382
+ };
383
+ };
384
+ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
385
+ return {
386
+ httpHandler: httpHandlerExtensionConfiguration.httpHandler()
387
+ };
388
+ };
34
389
 
35
390
  // node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
36
391
  var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
@@ -43,6 +398,688 @@ var normalizeProvider = (input) => {
43
398
  return () => promisified;
44
399
  };
45
400
 
401
+ // node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js
402
+ var Schema = class {
403
+ constructor(name, traits) {
404
+ this.name = name;
405
+ this.traits = traits;
406
+ }
407
+ };
408
+
409
+ // node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js
410
+ var ListSchema = class _ListSchema extends Schema {
411
+ constructor(name, traits, valueSchema) {
412
+ super(name, traits);
413
+ this.name = name;
414
+ this.traits = traits;
415
+ this.valueSchema = valueSchema;
416
+ this.symbol = _ListSchema.symbol;
417
+ }
418
+ static [Symbol.hasInstance](lhs) {
419
+ const isPrototype = _ListSchema.prototype.isPrototypeOf(lhs);
420
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
421
+ const list = lhs;
422
+ return list.symbol === _ListSchema.symbol;
423
+ }
424
+ return isPrototype;
425
+ }
426
+ };
427
+ ListSchema.symbol = Symbol.for("@smithy/core/schema::ListSchema");
428
+
429
+ // node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js
430
+ var MapSchema = class _MapSchema extends Schema {
431
+ constructor(name, traits, keySchema, valueSchema) {
432
+ super(name, traits);
433
+ this.name = name;
434
+ this.traits = traits;
435
+ this.keySchema = keySchema;
436
+ this.valueSchema = valueSchema;
437
+ this.symbol = _MapSchema.symbol;
438
+ }
439
+ static [Symbol.hasInstance](lhs) {
440
+ const isPrototype = _MapSchema.prototype.isPrototypeOf(lhs);
441
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
442
+ const map = lhs;
443
+ return map.symbol === _MapSchema.symbol;
444
+ }
445
+ return isPrototype;
446
+ }
447
+ };
448
+ MapSchema.symbol = Symbol.for("@smithy/core/schema::MapSchema");
449
+
450
+ // node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js
451
+ var StructureSchema = class _StructureSchema extends Schema {
452
+ constructor(name, traits, memberNames, memberList) {
453
+ super(name, traits);
454
+ this.name = name;
455
+ this.traits = traits;
456
+ this.memberNames = memberNames;
457
+ this.memberList = memberList;
458
+ this.symbol = _StructureSchema.symbol;
459
+ this.members = {};
460
+ for (let i = 0; i < memberNames.length; ++i) {
461
+ this.members[memberNames[i]] = Array.isArray(memberList[i]) ? memberList[i] : [memberList[i], 0];
462
+ }
463
+ }
464
+ static [Symbol.hasInstance](lhs) {
465
+ const isPrototype = _StructureSchema.prototype.isPrototypeOf(lhs);
466
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
467
+ const struct = lhs;
468
+ return struct.symbol === _StructureSchema.symbol;
469
+ }
470
+ return isPrototype;
471
+ }
472
+ };
473
+ StructureSchema.symbol = Symbol.for("@smithy/core/schema::StructureSchema");
474
+
475
+ // node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js
476
+ var SimpleSchema = class _SimpleSchema extends Schema {
477
+ constructor(name, schemaRef, traits) {
478
+ super(name, traits);
479
+ this.name = name;
480
+ this.schemaRef = schemaRef;
481
+ this.traits = traits;
482
+ this.symbol = _SimpleSchema.symbol;
483
+ }
484
+ static [Symbol.hasInstance](lhs) {
485
+ const isPrototype = _SimpleSchema.prototype.isPrototypeOf(lhs);
486
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
487
+ const sim = lhs;
488
+ return sim.symbol === _SimpleSchema.symbol;
489
+ }
490
+ return isPrototype;
491
+ }
492
+ };
493
+ SimpleSchema.symbol = Symbol.for("@smithy/core/schema::SimpleSchema");
494
+
495
+ // node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
496
+ var NormalizedSchema = class _NormalizedSchema {
497
+ constructor(ref, memberName) {
498
+ this.ref = ref;
499
+ this.memberName = memberName;
500
+ this.symbol = _NormalizedSchema.symbol;
501
+ const traitStack = [];
502
+ let _ref = ref;
503
+ let schema = ref;
504
+ this._isMemberSchema = false;
505
+ while (Array.isArray(_ref)) {
506
+ traitStack.push(_ref[1]);
507
+ _ref = _ref[0];
508
+ schema = deref(_ref);
509
+ this._isMemberSchema = true;
510
+ }
511
+ if (traitStack.length > 0) {
512
+ this.memberTraits = {};
513
+ for (let i = traitStack.length - 1; i >= 0; --i) {
514
+ const traitSet = traitStack[i];
515
+ Object.assign(this.memberTraits, _NormalizedSchema.translateTraits(traitSet));
516
+ }
517
+ } else {
518
+ this.memberTraits = 0;
519
+ }
520
+ if (schema instanceof _NormalizedSchema) {
521
+ this.name = schema.name;
522
+ this.traits = schema.traits;
523
+ this._isMemberSchema = schema._isMemberSchema;
524
+ this.schema = schema.schema;
525
+ this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
526
+ this.normalizedTraits = void 0;
527
+ this.ref = schema.ref;
528
+ this.memberName = memberName ?? schema.memberName;
529
+ return;
530
+ }
531
+ this.schema = deref(schema);
532
+ if (this.schema && typeof this.schema === "object") {
533
+ this.traits = this.schema?.traits ?? {};
534
+ } else {
535
+ this.traits = 0;
536
+ }
537
+ this.name = (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName();
538
+ if (this._isMemberSchema && !memberName) {
539
+ throw new Error(`@smithy/core/schema - NormalizedSchema member schema ${this.getName(true)} must initialize with memberName argument.`);
540
+ }
541
+ }
542
+ static [Symbol.hasInstance](lhs) {
543
+ const isPrototype = _NormalizedSchema.prototype.isPrototypeOf(lhs);
544
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
545
+ const ns = lhs;
546
+ return ns.symbol === _NormalizedSchema.symbol;
547
+ }
548
+ return isPrototype;
549
+ }
550
+ static of(ref, memberName) {
551
+ if (ref instanceof _NormalizedSchema) {
552
+ return ref;
553
+ }
554
+ return new _NormalizedSchema(ref, memberName);
555
+ }
556
+ static translateTraits(indicator) {
557
+ if (typeof indicator === "object") {
558
+ return indicator;
559
+ }
560
+ indicator = indicator | 0;
561
+ const traits = {};
562
+ if ((indicator & 1) === 1) {
563
+ traits.httpLabel = 1;
564
+ }
565
+ if ((indicator >> 1 & 1) === 1) {
566
+ traits.idempotent = 1;
567
+ }
568
+ if ((indicator >> 2 & 1) === 1) {
569
+ traits.idempotencyToken = 1;
570
+ }
571
+ if ((indicator >> 3 & 1) === 1) {
572
+ traits.sensitive = 1;
573
+ }
574
+ if ((indicator >> 4 & 1) === 1) {
575
+ traits.httpPayload = 1;
576
+ }
577
+ if ((indicator >> 5 & 1) === 1) {
578
+ traits.httpResponseCode = 1;
579
+ }
580
+ if ((indicator >> 6 & 1) === 1) {
581
+ traits.httpQueryParams = 1;
582
+ }
583
+ return traits;
584
+ }
585
+ static memberFrom(memberSchema, memberName) {
586
+ if (memberSchema instanceof _NormalizedSchema) {
587
+ memberSchema.memberName = memberName;
588
+ memberSchema._isMemberSchema = true;
589
+ return memberSchema;
590
+ }
591
+ return new _NormalizedSchema(memberSchema, memberName);
592
+ }
593
+ getSchema() {
594
+ if (this.schema instanceof _NormalizedSchema) {
595
+ return this.schema = this.schema.getSchema();
596
+ }
597
+ if (this.schema instanceof SimpleSchema) {
598
+ return deref(this.schema.schemaRef);
599
+ }
600
+ return deref(this.schema);
601
+ }
602
+ getName(withNamespace = false) {
603
+ if (!withNamespace) {
604
+ if (this.name && this.name.includes("#")) {
605
+ return this.name.split("#")[1];
606
+ }
607
+ }
608
+ return this.name || void 0;
609
+ }
610
+ getMemberName() {
611
+ if (!this.isMemberSchema()) {
612
+ throw new Error(`@smithy/core/schema - cannot get member name on non-member schema: ${this.getName(true)}`);
613
+ }
614
+ return this.memberName;
615
+ }
616
+ isMemberSchema() {
617
+ return this._isMemberSchema;
618
+ }
619
+ isUnitSchema() {
620
+ return this.getSchema() === "unit";
621
+ }
622
+ isListSchema() {
623
+ const inner = this.getSchema();
624
+ if (typeof inner === "number") {
625
+ return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER;
626
+ }
627
+ return inner instanceof ListSchema;
628
+ }
629
+ isMapSchema() {
630
+ const inner = this.getSchema();
631
+ if (typeof inner === "number") {
632
+ return inner >= SCHEMA.MAP_MODIFIER && inner <= 255;
633
+ }
634
+ return inner instanceof MapSchema;
635
+ }
636
+ isDocumentSchema() {
637
+ return this.getSchema() === SCHEMA.DOCUMENT;
638
+ }
639
+ isStructSchema() {
640
+ const inner = this.getSchema();
641
+ return inner !== null && typeof inner === "object" && "members" in inner || inner instanceof StructureSchema;
642
+ }
643
+ isBlobSchema() {
644
+ return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB;
645
+ }
646
+ isTimestampSchema() {
647
+ const schema = this.getSchema();
648
+ return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS;
649
+ }
650
+ isStringSchema() {
651
+ return this.getSchema() === SCHEMA.STRING;
652
+ }
653
+ isBooleanSchema() {
654
+ return this.getSchema() === SCHEMA.BOOLEAN;
655
+ }
656
+ isNumericSchema() {
657
+ return this.getSchema() === SCHEMA.NUMERIC;
658
+ }
659
+ isBigIntegerSchema() {
660
+ return this.getSchema() === SCHEMA.BIG_INTEGER;
661
+ }
662
+ isBigDecimalSchema() {
663
+ return this.getSchema() === SCHEMA.BIG_DECIMAL;
664
+ }
665
+ isStreaming() {
666
+ const streaming = !!this.getMergedTraits().streaming;
667
+ if (streaming) {
668
+ return true;
669
+ }
670
+ return this.getSchema() === SCHEMA.STREAMING_BLOB;
671
+ }
672
+ isIdempotencyToken() {
673
+ if (typeof this.traits === "number") {
674
+ return (this.traits & 4) === 4;
675
+ } else if (typeof this.traits === "object") {
676
+ return !!this.traits.idempotencyToken;
677
+ }
678
+ return false;
679
+ }
680
+ getMergedTraits() {
681
+ if (this.normalizedTraits) {
682
+ return this.normalizedTraits;
683
+ }
684
+ this.normalizedTraits = {
685
+ ...this.getOwnTraits(),
686
+ ...this.getMemberTraits()
687
+ };
688
+ return this.normalizedTraits;
689
+ }
690
+ getMemberTraits() {
691
+ return _NormalizedSchema.translateTraits(this.memberTraits);
692
+ }
693
+ getOwnTraits() {
694
+ return _NormalizedSchema.translateTraits(this.traits);
695
+ }
696
+ getKeySchema() {
697
+ if (this.isDocumentSchema()) {
698
+ return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "key");
699
+ }
700
+ if (!this.isMapSchema()) {
701
+ throw new Error(`@smithy/core/schema - cannot get key schema for non-map schema: ${this.getName(true)}`);
702
+ }
703
+ const schema = this.getSchema();
704
+ if (typeof schema === "number") {
705
+ return _NormalizedSchema.memberFrom([63 & schema, 0], "key");
706
+ }
707
+ return _NormalizedSchema.memberFrom([schema.keySchema, 0], "key");
708
+ }
709
+ getValueSchema() {
710
+ const schema = this.getSchema();
711
+ if (typeof schema === "number") {
712
+ if (this.isMapSchema()) {
713
+ return _NormalizedSchema.memberFrom([63 & schema, 0], "value");
714
+ } else if (this.isListSchema()) {
715
+ return _NormalizedSchema.memberFrom([63 & schema, 0], "member");
716
+ }
717
+ }
718
+ if (schema && typeof schema === "object") {
719
+ if (this.isStructSchema()) {
720
+ throw new Error(`cannot call getValueSchema() with StructureSchema ${this.getName(true)}`);
721
+ }
722
+ const collection = schema;
723
+ if ("valueSchema" in collection) {
724
+ if (this.isMapSchema()) {
725
+ return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "value");
726
+ } else if (this.isListSchema()) {
727
+ return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "member");
728
+ }
729
+ }
730
+ }
731
+ if (this.isDocumentSchema()) {
732
+ return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "value");
733
+ }
734
+ throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a value member.`);
735
+ }
736
+ hasMemberSchema(member) {
737
+ if (this.isStructSchema()) {
738
+ const struct = this.getSchema();
739
+ return member in struct.members;
740
+ }
741
+ return false;
742
+ }
743
+ getMemberSchema(member) {
744
+ if (this.isStructSchema()) {
745
+ const struct = this.getSchema();
746
+ if (!(member in struct.members)) {
747
+ throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a member with name=${member}.`);
748
+ }
749
+ return _NormalizedSchema.memberFrom(struct.members[member], member);
750
+ }
751
+ if (this.isDocumentSchema()) {
752
+ return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], member);
753
+ }
754
+ throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have members.`);
755
+ }
756
+ getMemberSchemas() {
757
+ const { schema } = this;
758
+ const struct = schema;
759
+ if (!struct || typeof struct !== "object") {
760
+ return {};
761
+ }
762
+ if ("members" in struct) {
763
+ const buffer = {};
764
+ for (const member of struct.memberNames) {
765
+ buffer[member] = this.getMemberSchema(member);
766
+ }
767
+ return buffer;
768
+ }
769
+ return {};
770
+ }
771
+ getEventStreamMember() {
772
+ if (this.isStructSchema()) {
773
+ for (const [memberName, memberSchema] of this.structIterator()) {
774
+ if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
775
+ return memberName;
776
+ }
777
+ }
778
+ }
779
+ return "";
780
+ }
781
+ *structIterator() {
782
+ if (this.isUnitSchema()) {
783
+ return;
784
+ }
785
+ if (!this.isStructSchema()) {
786
+ throw new Error("@smithy/core/schema - cannot acquire structIterator on non-struct schema.");
787
+ }
788
+ const struct = this.getSchema();
789
+ for (let i = 0; i < struct.memberNames.length; ++i) {
790
+ yield [struct.memberNames[i], _NormalizedSchema.memberFrom([struct.memberList[i], 0], struct.memberNames[i])];
791
+ }
792
+ }
793
+ getSchemaName() {
794
+ const schema = this.getSchema();
795
+ if (typeof schema === "number") {
796
+ const _schema = 63 & schema;
797
+ const container = 192 & schema;
798
+ const type = Object.entries(SCHEMA).find(([, value]) => {
799
+ return value === _schema;
800
+ })?.[0] ?? "Unknown";
801
+ switch (container) {
802
+ case SCHEMA.MAP_MODIFIER:
803
+ return `${type}Map`;
804
+ case SCHEMA.LIST_MODIFIER:
805
+ return `${type}List`;
806
+ case 0:
807
+ return type;
808
+ }
809
+ }
810
+ return "Unknown";
811
+ }
812
+ };
813
+ NormalizedSchema.symbol = Symbol.for("@smithy/core/schema::NormalizedSchema");
814
+
815
+ // node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
816
+ var SENSITIVE_STRING = "***SensitiveInformation***";
817
+ function schemaLogFilter(schema, data) {
818
+ if (data == null) {
819
+ return data;
820
+ }
821
+ const ns = NormalizedSchema.of(schema);
822
+ if (ns.getMergedTraits().sensitive) {
823
+ return SENSITIVE_STRING;
824
+ }
825
+ if (ns.isListSchema()) {
826
+ const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
827
+ if (isSensitive) {
828
+ return SENSITIVE_STRING;
829
+ }
830
+ } else if (ns.isMapSchema()) {
831
+ const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
832
+ if (isSensitive) {
833
+ return SENSITIVE_STRING;
834
+ }
835
+ } else if (ns.isStructSchema() && typeof data === "object") {
836
+ const object = data;
837
+ const newObject = {};
838
+ for (const [member, memberNs] of ns.structIterator()) {
839
+ if (object[member] != null) {
840
+ newObject[member] = schemaLogFilter(memberNs, object[member]);
841
+ }
842
+ }
843
+ return newObject;
844
+ }
845
+ return data;
846
+ }
847
+
848
+ // node_modules/@smithy/smithy-client/dist-es/command.js
849
+ var Command = class {
850
+ constructor() {
851
+ this.middlewareStack = constructStack();
852
+ }
853
+ static classBuilder() {
854
+ return new ClassBuilder();
855
+ }
856
+ resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) {
857
+ for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
858
+ this.middlewareStack.use(mw);
859
+ }
860
+ const stack = clientStack.concat(this.middlewareStack);
861
+ const { logger } = configuration;
862
+ const handlerExecutionContext = {
863
+ logger,
864
+ clientName,
865
+ commandName,
866
+ inputFilterSensitiveLog,
867
+ outputFilterSensitiveLog,
868
+ [SMITHY_CONTEXT_KEY]: {
869
+ commandInstance: this,
870
+ ...smithyContext
871
+ },
872
+ ...additionalContext
873
+ };
874
+ const { requestHandler } = configuration;
875
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
876
+ }
877
+ };
878
+ var ClassBuilder = class {
879
+ constructor() {
880
+ this._init = () => {
881
+ };
882
+ this._ep = {};
883
+ this._middlewareFn = () => [];
884
+ this._commandName = "";
885
+ this._clientName = "";
886
+ this._additionalContext = {};
887
+ this._smithyContext = {};
888
+ this._inputFilterSensitiveLog = void 0;
889
+ this._outputFilterSensitiveLog = void 0;
890
+ this._serializer = null;
891
+ this._deserializer = null;
892
+ }
893
+ init(cb) {
894
+ this._init = cb;
895
+ }
896
+ ep(endpointParameterInstructions) {
897
+ this._ep = endpointParameterInstructions;
898
+ return this;
899
+ }
900
+ m(middlewareSupplier) {
901
+ this._middlewareFn = middlewareSupplier;
902
+ return this;
903
+ }
904
+ s(service, operation, smithyContext = {}) {
905
+ this._smithyContext = {
906
+ service,
907
+ operation,
908
+ ...smithyContext
909
+ };
910
+ return this;
911
+ }
912
+ c(additionalContext = {}) {
913
+ this._additionalContext = additionalContext;
914
+ return this;
915
+ }
916
+ n(clientName, commandName) {
917
+ this._clientName = clientName;
918
+ this._commandName = commandName;
919
+ return this;
920
+ }
921
+ f(inputFilter = (_) => _, outputFilter = (_) => _) {
922
+ this._inputFilterSensitiveLog = inputFilter;
923
+ this._outputFilterSensitiveLog = outputFilter;
924
+ return this;
925
+ }
926
+ ser(serializer) {
927
+ this._serializer = serializer;
928
+ return this;
929
+ }
930
+ de(deserializer) {
931
+ this._deserializer = deserializer;
932
+ return this;
933
+ }
934
+ sc(operation) {
935
+ this._operationSchema = operation;
936
+ this._smithyContext.operationSchema = operation;
937
+ return this;
938
+ }
939
+ build() {
940
+ const closure = this;
941
+ let CommandRef;
942
+ return CommandRef = class extends Command {
943
+ static getEndpointParameterInstructions() {
944
+ return closure._ep;
945
+ }
946
+ constructor(...[input]) {
947
+ super();
948
+ this.serialize = closure._serializer;
949
+ this.deserialize = closure._deserializer;
950
+ this.input = input ?? {};
951
+ closure._init(this);
952
+ this.schema = closure._operationSchema;
953
+ }
954
+ resolveMiddleware(stack, configuration, options) {
955
+ return this.resolveMiddlewareWithContext(stack, configuration, options, {
956
+ CommandCtor: CommandRef,
957
+ middlewareFn: closure._middlewareFn,
958
+ clientName: closure._clientName,
959
+ commandName: closure._commandName,
960
+ inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.input) : (_) => _),
961
+ outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_) => _),
962
+ smithyContext: closure._smithyContext,
963
+ additionalContext: closure._additionalContext
964
+ });
965
+ }
966
+ };
967
+ }
968
+ };
969
+
970
+ // node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
971
+ function resolveHostHeaderConfig(input) {
972
+ return input;
973
+ }
974
+ var hostHeaderMiddleware = (options) => (next) => async (args) => {
975
+ if (!HttpRequest.isInstance(args.request))
976
+ return next(args);
977
+ const { request } = args;
978
+ const { handlerProtocol = "" } = options.requestHandler.metadata || {};
979
+ if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
980
+ delete request.headers["host"];
981
+ request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
982
+ } else if (!request.headers["host"]) {
983
+ let host = request.hostname;
984
+ if (request.port != null)
985
+ host += `:${request.port}`;
986
+ request.headers["host"] = host;
987
+ }
988
+ return next(args);
989
+ };
990
+ var hostHeaderMiddlewareOptions = {
991
+ name: "hostHeaderMiddleware",
992
+ step: "build",
993
+ priority: "low",
994
+ tags: ["HOST"],
995
+ override: true
996
+ };
997
+ var getHostHeaderPlugin = (options) => ({
998
+ applyToStack: (clientStack) => {
999
+ clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
1000
+ }
1001
+ });
1002
+
1003
+ // node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
1004
+ var loggerMiddleware = () => (next, context) => async (args) => {
1005
+ try {
1006
+ const response = await next(args);
1007
+ const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
1008
+ const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
1009
+ const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
1010
+ const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog;
1011
+ const { $metadata, ...outputWithoutMetadata } = response.output;
1012
+ logger?.info?.({
1013
+ clientName,
1014
+ commandName,
1015
+ input: inputFilterSensitiveLog(args.input),
1016
+ output: outputFilterSensitiveLog(outputWithoutMetadata),
1017
+ metadata: $metadata
1018
+ });
1019
+ return response;
1020
+ } catch (error) {
1021
+ const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
1022
+ const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
1023
+ const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
1024
+ logger?.error?.({
1025
+ clientName,
1026
+ commandName,
1027
+ input: inputFilterSensitiveLog(args.input),
1028
+ error,
1029
+ metadata: error.$metadata
1030
+ });
1031
+ throw error;
1032
+ }
1033
+ };
1034
+ var loggerMiddlewareOptions = {
1035
+ name: "loggerMiddleware",
1036
+ tags: ["LOGGER"],
1037
+ step: "initialize",
1038
+ override: true
1039
+ };
1040
+ var getLoggerPlugin = (options) => ({
1041
+ applyToStack: (clientStack) => {
1042
+ clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
1043
+ }
1044
+ });
1045
+
1046
+ // node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js
1047
+ var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
1048
+ var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
1049
+ var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
1050
+ var recursionDetectionMiddleware = (options) => (next) => async (args) => {
1051
+ const { request } = args;
1052
+ if (!HttpRequest.isInstance(request) || options.runtime !== "node") {
1053
+ return next(args);
1054
+ }
1055
+ const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
1056
+ if (request.headers.hasOwnProperty(traceIdHeader)) {
1057
+ return next(args);
1058
+ }
1059
+ const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
1060
+ const traceId = process.env[ENV_TRACE_ID];
1061
+ const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
1062
+ if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
1063
+ request.headers[TRACE_ID_HEADER_NAME] = traceId;
1064
+ }
1065
+ return next({
1066
+ ...args,
1067
+ request
1068
+ });
1069
+ };
1070
+ var addRecursionDetectionMiddlewareOptions = {
1071
+ step: "build",
1072
+ tags: ["RECURSION_DETECTION"],
1073
+ name: "recursionDetectionMiddleware",
1074
+ override: true,
1075
+ priority: "low"
1076
+ };
1077
+ var getRecursionDetectionPlugin = (options) => ({
1078
+ applyToStack: (clientStack) => {
1079
+ clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
1080
+ }
1081
+ });
1082
+
46
1083
  // node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
47
1084
  var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
48
1085
  if (!authSchemePreference || authSchemePreference.length === 0) {
@@ -268,127 +1305,124 @@ var DefaultIdentityProviderConfig = class {
268
1305
  }
269
1306
  };
270
1307
 
271
- // node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
272
- function resolveHostHeaderConfig(input) {
273
- return input;
274
- }
275
- var hostHeaderMiddleware = (options) => (next) => async (args) => {
276
- if (!HttpRequest.isInstance(args.request))
277
- return next(args);
278
- const { request } = args;
279
- const { handlerProtocol = "" } = options.requestHandler.metadata || {};
280
- if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
281
- delete request.headers["host"];
282
- request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
283
- } else if (!request.headers["host"]) {
284
- let host = request.hostname;
285
- if (request.port != null)
286
- host += `:${request.port}`;
287
- request.headers["host"] = host;
288
- }
289
- return next(args);
290
- };
291
- var hostHeaderMiddlewareOptions = {
292
- name: "hostHeaderMiddleware",
293
- step: "build",
294
- priority: "low",
295
- tags: ["HOST"],
296
- override: true
1308
+ // node_modules/@smithy/core/dist-es/normalizeProvider.js
1309
+ var normalizeProvider2 = (input) => {
1310
+ if (typeof input === "function")
1311
+ return input;
1312
+ const promisified = Promise.resolve(input);
1313
+ return () => promisified;
297
1314
  };
298
- var getHostHeaderPlugin = (options) => ({
299
- applyToStack: (clientStack) => {
300
- clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
301
- }
302
- });
303
1315
 
304
- // node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
305
- var loggerMiddleware = () => (next, context) => async (args) => {
306
- try {
307
- const response = await next(args);
308
- const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
309
- const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
310
- const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
311
- const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog;
312
- const { $metadata, ...outputWithoutMetadata } = response.output;
313
- logger?.info?.({
314
- clientName,
315
- commandName,
316
- input: inputFilterSensitiveLog(args.input),
317
- output: outputFilterSensitiveLog(outputWithoutMetadata),
318
- metadata: $metadata
319
- });
320
- return response;
321
- } catch (error) {
322
- const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
323
- const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
324
- const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
325
- logger?.error?.({
326
- clientName,
327
- commandName,
328
- input: inputFilterSensitiveLog(args.input),
329
- error,
330
- metadata: error.$metadata
331
- });
332
- throw error;
1316
+ // node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
1317
+ var toUint8Array = (data) => {
1318
+ if (typeof data === "string") {
1319
+ return fromUtf8(data);
333
1320
  }
1321
+ if (ArrayBuffer.isView(data)) {
1322
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1323
+ }
1324
+ return new Uint8Array(data);
334
1325
  };
335
- var loggerMiddlewareOptions = {
336
- name: "loggerMiddleware",
337
- tags: ["LOGGER"],
338
- step: "initialize",
339
- override: true
340
- };
341
- var getLoggerPlugin = (options) => ({
342
- applyToStack: (clientStack) => {
343
- clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
1326
+
1327
+ // node_modules/@smithy/util-stream/dist-es/blob/transforms.js
1328
+ function transformToString(payload, encoding = "utf-8") {
1329
+ if (encoding === "base64") {
1330
+ return toBase64(payload);
344
1331
  }
345
- });
1332
+ return toUtf8(payload);
1333
+ }
1334
+ function transformFromString(str, encoding) {
1335
+ if (encoding === "base64") {
1336
+ return Uint8ArrayBlobAdapter.mutate(fromBase64(str));
1337
+ }
1338
+ return Uint8ArrayBlobAdapter.mutate(fromUtf8(str));
1339
+ }
346
1340
 
347
- // node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js
348
- var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
349
- var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
350
- var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
351
- var recursionDetectionMiddleware = (options) => (next) => async (args) => {
352
- const { request } = args;
353
- if (!HttpRequest.isInstance(request) || options.runtime !== "node") {
354
- return next(args);
1341
+ // node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
1342
+ var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
1343
+ static fromString(source, encoding = "utf-8") {
1344
+ switch (typeof source) {
1345
+ case "string":
1346
+ return transformFromString(source, encoding);
1347
+ default:
1348
+ throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
1349
+ }
355
1350
  }
356
- const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
357
- if (request.headers.hasOwnProperty(traceIdHeader)) {
358
- return next(args);
1351
+ static mutate(source) {
1352
+ Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
1353
+ return source;
359
1354
  }
360
- const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
361
- const traceId = process.env[ENV_TRACE_ID];
362
- const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
363
- if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
364
- request.headers[TRACE_ID_HEADER_NAME] = traceId;
1355
+ transformToString(encoding = "utf-8") {
1356
+ return transformToString(this, encoding);
365
1357
  }
366
- return next({
367
- ...args,
368
- request
369
- });
370
1358
  };
371
- var addRecursionDetectionMiddlewareOptions = {
372
- step: "build",
373
- tags: ["RECURSION_DETECTION"],
374
- name: "recursionDetectionMiddleware",
375
- override: true,
376
- priority: "low"
1359
+
1360
+ // node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
1361
+ var collectBody = async (streamBody = new Uint8Array(), context) => {
1362
+ if (streamBody instanceof Uint8Array) {
1363
+ return Uint8ArrayBlobAdapter.mutate(streamBody);
1364
+ }
1365
+ if (!streamBody) {
1366
+ return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
1367
+ }
1368
+ const fromContext = context.streamCollector(streamBody);
1369
+ return Uint8ArrayBlobAdapter.mutate(await fromContext);
377
1370
  };
378
- var getRecursionDetectionPlugin = (options) => ({
379
- applyToStack: (clientStack) => {
380
- clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
1371
+
1372
+ // node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
1373
+ function extendedEncodeURIComponent(str) {
1374
+ return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
1375
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
1376
+ });
1377
+ }
1378
+
1379
+ // node_modules/uuid/dist/esm-node/rng.js
1380
+ import crypto from "crypto";
1381
+ var rnds8Pool = new Uint8Array(256);
1382
+ var poolPtr = rnds8Pool.length;
1383
+ function rng() {
1384
+ if (poolPtr > rnds8Pool.length - 16) {
1385
+ crypto.randomFillSync(rnds8Pool);
1386
+ poolPtr = 0;
381
1387
  }
382
- });
1388
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
1389
+ }
383
1390
 
384
- // node_modules/@smithy/core/dist-es/normalizeProvider.js
385
- var normalizeProvider2 = (input) => {
386
- if (typeof input === "function")
387
- return input;
388
- const promisified = Promise.resolve(input);
389
- return () => promisified;
1391
+ // node_modules/uuid/dist/esm-node/stringify.js
1392
+ var byteToHex = [];
1393
+ for (let i = 0; i < 256; ++i) {
1394
+ byteToHex.push((i + 256).toString(16).slice(1));
1395
+ }
1396
+ function unsafeStringify(arr, offset = 0) {
1397
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
1398
+ }
1399
+
1400
+ // node_modules/uuid/dist/esm-node/native.js
1401
+ import crypto2 from "crypto";
1402
+ var native_default = {
1403
+ randomUUID: crypto2.randomUUID
390
1404
  };
391
1405
 
1406
+ // node_modules/uuid/dist/esm-node/v4.js
1407
+ function v4(options, buf, offset) {
1408
+ if (native_default.randomUUID && !buf && !options) {
1409
+ return native_default.randomUUID();
1410
+ }
1411
+ options = options || {};
1412
+ const rnds = options.random || (options.rng || rng)();
1413
+ rnds[6] = rnds[6] & 15 | 64;
1414
+ rnds[8] = rnds[8] & 63 | 128;
1415
+ if (buf) {
1416
+ offset = offset || 0;
1417
+ for (let i = 0; i < 16; ++i) {
1418
+ buf[offset + i] = rnds[i];
1419
+ }
1420
+ return buf;
1421
+ }
1422
+ return unsafeStringify(rnds);
1423
+ }
1424
+ var v4_default = v4;
1425
+
392
1426
  // node_modules/@smithy/core/dist-es/setFeature.js
393
1427
  function setFeature(context, feature, value) {
394
1428
  if (!context.__smithy_context) {
@@ -483,6 +1517,52 @@ function resolveUserAgentConfig(input) {
483
1517
  });
484
1518
  }
485
1519
 
1520
+ // node_modules/@smithy/smithy-client/dist-es/constants.js
1521
+ var SENSITIVE_STRING2 = "***SensitiveInformation***";
1522
+
1523
+ // node_modules/@smithy/smithy-client/dist-es/exceptions.js
1524
+ var ServiceException = class _ServiceException extends Error {
1525
+ constructor(options) {
1526
+ super(options.message);
1527
+ Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
1528
+ this.name = options.name;
1529
+ this.$fault = options.$fault;
1530
+ this.$metadata = options.$metadata;
1531
+ }
1532
+ static isInstance(value) {
1533
+ if (!value)
1534
+ return false;
1535
+ const candidate = value;
1536
+ return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
1537
+ }
1538
+ static [Symbol.hasInstance](instance) {
1539
+ if (!instance)
1540
+ return false;
1541
+ const candidate = instance;
1542
+ if (this === _ServiceException) {
1543
+ return _ServiceException.isInstance(instance);
1544
+ }
1545
+ if (_ServiceException.isInstance(instance)) {
1546
+ if (candidate.name && this.name) {
1547
+ return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
1548
+ }
1549
+ return this.prototype.isPrototypeOf(instance);
1550
+ }
1551
+ return false;
1552
+ }
1553
+ };
1554
+ var decorateServiceException = (exception, additions = {}) => {
1555
+ Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
1556
+ if (exception[k] == void 0 || exception[k] === "") {
1557
+ exception[k] = v;
1558
+ }
1559
+ });
1560
+ const message = exception.message || exception.Message || "UnknownError";
1561
+ exception.message = message;
1562
+ delete exception.Message;
1563
+ return exception;
1564
+ };
1565
+
486
1566
  // node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
487
1567
  var EndpointCache = class {
488
1568
  constructor({ size, params }) {
@@ -1048,11 +2128,14 @@ var partitions_default = {
1048
2128
  "ap-southeast-5": {
1049
2129
  description: "Asia Pacific (Malaysia)"
1050
2130
  },
2131
+ "ap-southeast-6": {
2132
+ description: "Asia Pacific (New Zealand)"
2133
+ },
1051
2134
  "ap-southeast-7": {
1052
2135
  description: "Asia Pacific (Thailand)"
1053
2136
  },
1054
2137
  "aws-global": {
1055
- description: "AWS Standard global region"
2138
+ description: "aws global region"
1056
2139
  },
1057
2140
  "ca-central-1": {
1058
2141
  description: "Canada (Central)"
@@ -1125,7 +2208,7 @@ var partitions_default = {
1125
2208
  regionRegex: "^cn\\-\\w+\\-\\d+$",
1126
2209
  regions: {
1127
2210
  "aws-cn-global": {
1128
- description: "AWS China global region"
2211
+ description: "aws-cn global region"
1129
2212
  },
1130
2213
  "cn-north-1": {
1131
2214
  description: "China (Beijing)"
@@ -1135,32 +2218,26 @@ var partitions_default = {
1135
2218
  }
1136
2219
  }
1137
2220
  }, {
1138
- id: "aws-us-gov",
2221
+ id: "aws-eusc",
1139
2222
  outputs: {
1140
- dnsSuffix: "amazonaws.com",
1141
- dualStackDnsSuffix: "api.aws",
1142
- implicitGlobalRegion: "us-gov-west-1",
1143
- name: "aws-us-gov",
2223
+ dnsSuffix: "amazonaws.eu",
2224
+ dualStackDnsSuffix: "api.amazonwebservices.eu",
2225
+ implicitGlobalRegion: "eusc-de-east-1",
2226
+ name: "aws-eusc",
1144
2227
  supportsDualStack: true,
1145
2228
  supportsFIPS: true
1146
2229
  },
1147
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
2230
+ regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
1148
2231
  regions: {
1149
- "aws-us-gov-global": {
1150
- description: "AWS GovCloud (US) global region"
1151
- },
1152
- "us-gov-east-1": {
1153
- description: "AWS GovCloud (US-East)"
1154
- },
1155
- "us-gov-west-1": {
1156
- description: "AWS GovCloud (US-West)"
2232
+ "eusc-de-east-1": {
2233
+ description: "EU (Germany)"
1157
2234
  }
1158
2235
  }
1159
2236
  }, {
1160
2237
  id: "aws-iso",
1161
2238
  outputs: {
1162
2239
  dnsSuffix: "c2s.ic.gov",
1163
- dualStackDnsSuffix: "c2s.ic.gov",
2240
+ dualStackDnsSuffix: "api.aws.ic.gov",
1164
2241
  implicitGlobalRegion: "us-iso-east-1",
1165
2242
  name: "aws-iso",
1166
2243
  supportsDualStack: false,
@@ -1169,7 +2246,7 @@ var partitions_default = {
1169
2246
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
1170
2247
  regions: {
1171
2248
  "aws-iso-global": {
1172
- description: "AWS ISO (US) global region"
2249
+ description: "aws-iso global region"
1173
2250
  },
1174
2251
  "us-iso-east-1": {
1175
2252
  description: "US ISO East"
@@ -1182,7 +2259,7 @@ var partitions_default = {
1182
2259
  id: "aws-iso-b",
1183
2260
  outputs: {
1184
2261
  dnsSuffix: "sc2s.sgov.gov",
1185
- dualStackDnsSuffix: "sc2s.sgov.gov",
2262
+ dualStackDnsSuffix: "api.aws.scloud",
1186
2263
  implicitGlobalRegion: "us-isob-east-1",
1187
2264
  name: "aws-iso-b",
1188
2265
  supportsDualStack: false,
@@ -1191,7 +2268,7 @@ var partitions_default = {
1191
2268
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
1192
2269
  regions: {
1193
2270
  "aws-iso-b-global": {
1194
- description: "AWS ISOB (US) global region"
2271
+ description: "aws-iso-b global region"
1195
2272
  },
1196
2273
  "us-isob-east-1": {
1197
2274
  description: "US ISOB East (Ohio)"
@@ -1201,7 +2278,7 @@ var partitions_default = {
1201
2278
  id: "aws-iso-e",
1202
2279
  outputs: {
1203
2280
  dnsSuffix: "cloud.adc-e.uk",
1204
- dualStackDnsSuffix: "cloud.adc-e.uk",
2281
+ dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
1205
2282
  implicitGlobalRegion: "eu-isoe-west-1",
1206
2283
  name: "aws-iso-e",
1207
2284
  supportsDualStack: false,
@@ -1210,7 +2287,7 @@ var partitions_default = {
1210
2287
  regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
1211
2288
  regions: {
1212
2289
  "aws-iso-e-global": {
1213
- description: "AWS ISOE (Europe) global region"
2290
+ description: "aws-iso-e global region"
1214
2291
  },
1215
2292
  "eu-isoe-west-1": {
1216
2293
  description: "EU ISOE West"
@@ -1220,7 +2297,7 @@ var partitions_default = {
1220
2297
  id: "aws-iso-f",
1221
2298
  outputs: {
1222
2299
  dnsSuffix: "csp.hci.ic.gov",
1223
- dualStackDnsSuffix: "csp.hci.ic.gov",
2300
+ dualStackDnsSuffix: "api.aws.hci.ic.gov",
1224
2301
  implicitGlobalRegion: "us-isof-south-1",
1225
2302
  name: "aws-iso-f",
1226
2303
  supportsDualStack: false,
@@ -1229,7 +2306,7 @@ var partitions_default = {
1229
2306
  regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
1230
2307
  regions: {
1231
2308
  "aws-iso-f-global": {
1232
- description: "AWS ISOF global region"
2309
+ description: "aws-iso-f global region"
1233
2310
  },
1234
2311
  "us-isof-east-1": {
1235
2312
  description: "US ISOF EAST"
@@ -1239,19 +2316,25 @@ var partitions_default = {
1239
2316
  }
1240
2317
  }
1241
2318
  }, {
1242
- id: "aws-eusc",
2319
+ id: "aws-us-gov",
1243
2320
  outputs: {
1244
- dnsSuffix: "amazonaws.eu",
1245
- dualStackDnsSuffix: "amazonaws.eu",
1246
- implicitGlobalRegion: "eusc-de-east-1",
1247
- name: "aws-eusc",
1248
- supportsDualStack: false,
2321
+ dnsSuffix: "amazonaws.com",
2322
+ dualStackDnsSuffix: "api.aws",
2323
+ implicitGlobalRegion: "us-gov-west-1",
2324
+ name: "aws-us-gov",
2325
+ supportsDualStack: true,
1249
2326
  supportsFIPS: true
1250
2327
  },
1251
- regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
2328
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
1252
2329
  regions: {
1253
- "eusc-de-east-1": {
1254
- description: "EU (Germany)"
2330
+ "aws-us-gov-global": {
2331
+ description: "aws-us-gov global region"
2332
+ },
2333
+ "us-gov-east-1": {
2334
+ description: "AWS GovCloud (US-East)"
2335
+ },
2336
+ "us-gov-west-1": {
2337
+ description: "AWS GovCloud (US-West)"
1255
2338
  }
1256
2339
  }
1257
2340
  }],
@@ -1674,6 +2757,7 @@ var HEADER_VALUE_TYPE;
1674
2757
  })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
1675
2758
  var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
1676
2759
  var Int64 = class _Int64 {
2760
+ bytes;
1677
2761
  constructor(bytes) {
1678
2762
  this.bytes = bytes;
1679
2763
  if (bytes.byteLength !== 8) {
@@ -1792,6 +2876,12 @@ var toDate = (time) => {
1792
2876
 
1793
2877
  // node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
1794
2878
  var SignatureV4Base = class {
2879
+ service;
2880
+ regionProvider;
2881
+ credentialProvider;
2882
+ sha256;
2883
+ uriEscapePath;
2884
+ applyChecksum;
1795
2885
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
1796
2886
  this.service = service;
1797
2887
  this.sha256 = sha256;
@@ -1858,6 +2948,7 @@ ${toHex(hashedRequest)}`;
1858
2948
 
1859
2949
  // node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
1860
2950
  var SignatureV4 = class extends SignatureV4Base {
2951
+ headerFormatter = new HeaderFormatter();
1861
2952
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
1862
2953
  super({
1863
2954
  applyChecksum,
@@ -1867,7 +2958,6 @@ var SignatureV4 = class extends SignatureV4Base {
1867
2958
  sha256,
1868
2959
  uriEscapePath
1869
2960
  });
1870
- this.headerFormatter = new HeaderFormatter();
1871
2961
  }
1872
2962
  async presign(originalRequest, options = {}) {
1873
2963
  const { signingDate = /* @__PURE__ */ new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, hoistableHeaders, signingRegion, signingService } = options;
@@ -1975,11 +3065,6 @@ var SignatureV4 = class extends SignatureV4Base {
1975
3065
  }
1976
3066
  };
1977
3067
 
1978
- // node_modules/@smithy/signature-v4/dist-es/signature-v4a-container.js
1979
- var signatureV4aContainer = {
1980
- SignatureV4a: null
1981
- };
1982
-
1983
3068
  // node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
1984
3069
  var resolveAwsSdkSigV4Config = (config) => {
1985
3070
  let inputCredentials = config.credentials;
@@ -2101,6 +3186,134 @@ function bindCallerConfig(config, credentialsProvider) {
2101
3186
  return fn;
2102
3187
  }
2103
3188
 
3189
+ // node_modules/@smithy/smithy-client/dist-es/default-error-handler.js
3190
+ var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => {
3191
+ const $metadata = deserializeMetadata(output);
3192
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0;
3193
+ const response = new exceptionCtor({
3194
+ name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
3195
+ $fault: "client",
3196
+ $metadata
3197
+ });
3198
+ throw decorateServiceException(response, parsedBody);
3199
+ };
3200
+ var withBaseException = (ExceptionCtor) => {
3201
+ return ({ output, parsedBody, errorCode }) => {
3202
+ throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
3203
+ };
3204
+ };
3205
+ var deserializeMetadata = (output) => ({
3206
+ httpStatusCode: output.statusCode,
3207
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3208
+ extendedRequestId: output.headers["x-amz-id-2"],
3209
+ cfId: output.headers["x-amz-cf-id"]
3210
+ });
3211
+
3212
+ // node_modules/@smithy/smithy-client/dist-es/defaults-mode.js
3213
+ var loadConfigsForDefaultMode = (mode) => {
3214
+ switch (mode) {
3215
+ case "standard":
3216
+ return {
3217
+ retryMode: "standard",
3218
+ connectionTimeout: 3100
3219
+ };
3220
+ case "in-region":
3221
+ return {
3222
+ retryMode: "standard",
3223
+ connectionTimeout: 1100
3224
+ };
3225
+ case "cross-region":
3226
+ return {
3227
+ retryMode: "standard",
3228
+ connectionTimeout: 3100
3229
+ };
3230
+ case "mobile":
3231
+ return {
3232
+ retryMode: "standard",
3233
+ connectionTimeout: 3e4
3234
+ };
3235
+ default:
3236
+ return {};
3237
+ }
3238
+ };
3239
+
3240
+ // node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js
3241
+ var warningEmitted = false;
3242
+ var emitWarningIfUnsupportedVersion2 = (version) => {
3243
+ if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
3244
+ warningEmitted = true;
3245
+ }
3246
+ };
3247
+
3248
+ // node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js
3249
+ var getChecksumConfiguration = (runtimeConfig) => {
3250
+ const checksumAlgorithms = [];
3251
+ for (const id in AlgorithmId) {
3252
+ const algorithmId = AlgorithmId[id];
3253
+ if (runtimeConfig[algorithmId] === void 0) {
3254
+ continue;
3255
+ }
3256
+ checksumAlgorithms.push({
3257
+ algorithmId: () => algorithmId,
3258
+ checksumConstructor: () => runtimeConfig[algorithmId]
3259
+ });
3260
+ }
3261
+ return {
3262
+ addChecksumAlgorithm(algo) {
3263
+ checksumAlgorithms.push(algo);
3264
+ },
3265
+ checksumAlgorithms() {
3266
+ return checksumAlgorithms;
3267
+ }
3268
+ };
3269
+ };
3270
+ var resolveChecksumRuntimeConfig = (clientConfig) => {
3271
+ const runtimeConfig = {};
3272
+ clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
3273
+ runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
3274
+ });
3275
+ return runtimeConfig;
3276
+ };
3277
+
3278
+ // node_modules/@smithy/smithy-client/dist-es/extensions/retry.js
3279
+ var getRetryConfiguration = (runtimeConfig) => {
3280
+ return {
3281
+ setRetryStrategy(retryStrategy) {
3282
+ runtimeConfig.retryStrategy = retryStrategy;
3283
+ },
3284
+ retryStrategy() {
3285
+ return runtimeConfig.retryStrategy;
3286
+ }
3287
+ };
3288
+ };
3289
+ var resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
3290
+ const runtimeConfig = {};
3291
+ runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
3292
+ return runtimeConfig;
3293
+ };
3294
+
3295
+ // node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js
3296
+ var getDefaultExtensionConfiguration = (runtimeConfig) => {
3297
+ return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
3298
+ };
3299
+ var resolveDefaultRuntimeConfig = (config) => {
3300
+ return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
3301
+ };
3302
+
3303
+ // node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js
3304
+ var NoOpLogger = class {
3305
+ trace() {
3306
+ }
3307
+ debug() {
3308
+ }
3309
+ info() {
3310
+ }
3311
+ warn() {
3312
+ }
3313
+ error() {
3314
+ }
3315
+ };
3316
+
2104
3317
  // node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
2105
3318
  var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2106
3319
 
@@ -2279,56 +3492,6 @@ var resolveRegionConfig = (input) => {
2279
3492
  });
2280
3493
  };
2281
3494
 
2282
- // node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
2283
- var booleanSelector = (obj, key, type) => {
2284
- if (!(key in obj))
2285
- return void 0;
2286
- if (obj[key] === "true")
2287
- return true;
2288
- if (obj[key] === "false")
2289
- return false;
2290
- throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
2291
- };
2292
-
2293
- // node_modules/@smithy/util-config-provider/dist-es/types.js
2294
- var SelectorType;
2295
- (function(SelectorType2) {
2296
- SelectorType2["ENV"] = "env";
2297
- SelectorType2["CONFIG"] = "shared config entry";
2298
- })(SelectorType || (SelectorType = {}));
2299
-
2300
- // node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
2301
- var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
2302
- var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
2303
- var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
2304
- environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
2305
- configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
2306
- default: false
2307
- };
2308
-
2309
- // node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
2310
- var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
2311
- var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
2312
- var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
2313
- environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
2314
- configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
2315
- default: false
2316
- };
2317
-
2318
- // node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
2319
- var REGION_ENV_NAME = "AWS_REGION";
2320
- var REGION_INI_NAME = "region";
2321
- var NODE_REGION_CONFIG_OPTIONS = {
2322
- environmentVariableSelector: (env2) => env2[REGION_ENV_NAME],
2323
- configFileSelector: (profile) => profile[REGION_INI_NAME],
2324
- default: () => {
2325
- throw new Error("Region is missing");
2326
- }
2327
- };
2328
- var NODE_REGION_CONFIG_FILE_OPTIONS = {
2329
- preferredFile: "credentials"
2330
- };
2331
-
2332
3495
  // node_modules/@smithy/middleware-content-length/dist-es/index.js
2333
3496
  var CONTENT_LENGTH_HEADER = "content-length";
2334
3497
  function contentLengthMiddleware(bodyLengthChecker) {
@@ -3063,6 +4226,56 @@ var getRetryAfterHint = (response) => {
3063
4226
  return retryAfterDate;
3064
4227
  };
3065
4228
 
4229
+ // node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
4230
+ var booleanSelector = (obj, key, type) => {
4231
+ if (!(key in obj))
4232
+ return void 0;
4233
+ if (obj[key] === "true")
4234
+ return true;
4235
+ if (obj[key] === "false")
4236
+ return false;
4237
+ throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
4238
+ };
4239
+
4240
+ // node_modules/@smithy/util-config-provider/dist-es/types.js
4241
+ var SelectorType;
4242
+ (function(SelectorType2) {
4243
+ SelectorType2["ENV"] = "env";
4244
+ SelectorType2["CONFIG"] = "shared config entry";
4245
+ })(SelectorType || (SelectorType = {}));
4246
+
4247
+ // node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
4248
+ var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
4249
+ var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
4250
+ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
4251
+ environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
4252
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
4253
+ default: false
4254
+ };
4255
+
4256
+ // node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
4257
+ var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
4258
+ var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
4259
+ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
4260
+ environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
4261
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
4262
+ default: false
4263
+ };
4264
+
4265
+ // node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
4266
+ var REGION_ENV_NAME = "AWS_REGION";
4267
+ var REGION_INI_NAME = "region";
4268
+ var NODE_REGION_CONFIG_OPTIONS = {
4269
+ environmentVariableSelector: (env2) => env2[REGION_ENV_NAME],
4270
+ configFileSelector: (profile) => profile[REGION_INI_NAME],
4271
+ default: () => {
4272
+ throw new Error("Region is missing");
4273
+ }
4274
+ };
4275
+ var NODE_REGION_CONFIG_FILE_OPTIONS = {
4276
+ preferredFile: "credentials"
4277
+ };
4278
+
3066
4279
  // node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
3067
4280
  import { platform, release } from "os";
3068
4281
  import { env, versions } from "process";
@@ -3230,7 +4443,7 @@ var inferPhysicalRegion = async () => {
3230
4443
  }
3231
4444
  if (!process.env[ENV_IMDS_DISABLED]) {
3232
4445
  try {
3233
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-W6M73SKO.js");
4446
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-32LEW3C7.js");
3234
4447
  const endpoint = await getInstanceMetadataEndpoint();
3235
4448
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
3236
4449
  } catch (e) {
@@ -3256,36 +4469,51 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
3256
4469
  };
3257
4470
 
3258
4471
  export {
3259
- emitWarningIfUnsupportedVersion,
3260
- setFeature2 as setFeature,
3261
- AwsSdkSigV4Signer,
3262
- AwsSdkSigV4ASigner,
3263
- NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
4472
+ getHttpHandlerExtensionConfiguration,
4473
+ resolveHttpHandlerRuntimeConfig,
4474
+ resolveHostHeaderConfig,
4475
+ getHostHeaderPlugin,
4476
+ getLoggerPlugin,
4477
+ getRecursionDetectionPlugin,
3264
4478
  getSmithyContext,
3265
4479
  normalizeProvider,
3266
4480
  getHttpAuthSchemeEndpointRuleSetPlugin,
3267
4481
  getSerdePlugin,
3268
4482
  httpSigningMiddlewareOptions,
3269
4483
  getHttpSigningPlugin,
4484
+ toUint8Array,
4485
+ collectBody,
4486
+ extendedEncodeURIComponent,
3270
4487
  DefaultIdentityProviderConfig,
4488
+ resolveUserAgentConfig,
4489
+ EndpointCache,
4490
+ customEndpointFunctions,
4491
+ resolveEndpoint,
4492
+ awsEndpointFunctions,
4493
+ emitWarningIfUnsupportedVersion,
4494
+ setFeature2 as setFeature,
4495
+ AwsSdkSigV4Signer,
4496
+ AwsSdkSigV4ASigner,
4497
+ NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
3271
4498
  resolveAwsSdkSigV4AConfig,
3272
4499
  NODE_SIGV4A_CONFIG_OPTIONS,
3273
4500
  SignatureV4,
3274
- signatureV4aContainer,
3275
4501
  resolveAwsSdkSigV4Config,
4502
+ Client,
4503
+ Command,
4504
+ SENSITIVE_STRING2 as SENSITIVE_STRING,
4505
+ ServiceException,
4506
+ decorateServiceException,
4507
+ withBaseException,
4508
+ loadConfigsForDefaultMode,
4509
+ emitWarningIfUnsupportedVersion2,
4510
+ getDefaultExtensionConfiguration,
4511
+ resolveDefaultRuntimeConfig,
4512
+ NoOpLogger,
3276
4513
  collectBodyString,
3277
- resolveHostHeaderConfig,
3278
- getHostHeaderPlugin,
3279
- getLoggerPlugin,
3280
- getRecursionDetectionPlugin,
4514
+ getUserAgentPlugin,
3281
4515
  booleanSelector,
3282
4516
  SelectorType,
3283
- resolveUserAgentConfig,
3284
- EndpointCache,
3285
- customEndpointFunctions,
3286
- resolveEndpoint,
3287
- awsEndpointFunctions,
3288
- getUserAgentPlugin,
3289
4517
  NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
3290
4518
  NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
3291
4519
  NODE_REGION_CONFIG_OPTIONS,
@@ -3308,4 +4536,4 @@ export {
3308
4536
  getAwsRegionExtensionConfiguration,
3309
4537
  resolveAwsRegionExtensionConfiguration
3310
4538
  };
3311
- //# sourceMappingURL=chunk-JFJBZL6W.js.map
4539
+ //# sourceMappingURL=chunk-EVJULQPT.js.map