@junando/core 0.10.1 → 0.11.1

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 (44) hide show
  1. package/dist/index.d.ts +829 -577
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +1877 -9909
  4. package/dist/index.js.map +1 -0
  5. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  6. package/dist/shared/metrics/index.d.ts +29 -0
  7. package/dist/shared/metrics/index.d.ts.map +1 -0
  8. package/dist/shared/metrics/index.js +131 -0
  9. package/dist/shared/metrics/index.js.map +1 -0
  10. package/package.json +12 -11
  11. package/dist/chunk-3OJNTHWB.js +0 -225
  12. package/dist/chunk-5LNMHOUT.js +0 -229
  13. package/dist/chunk-72FU6SG6.js +0 -236
  14. package/dist/chunk-7SYJ764U.js +0 -579
  15. package/dist/chunk-AZU6S4RC.js +0 -11
  16. package/dist/chunk-BGPI5BQ5.js +0 -27
  17. package/dist/chunk-DKQSWD3S.js +0 -46
  18. package/dist/chunk-H4ND7Z4R.js +0 -504
  19. package/dist/chunk-HVICRLMN.js +0 -742
  20. package/dist/chunk-ID7PWYSN.js +0 -12
  21. package/dist/chunk-KU245W3C.js +0 -16
  22. package/dist/chunk-L67CO4EG.js +0 -1038
  23. package/dist/chunk-MLKGABMK.js +0 -9
  24. package/dist/chunk-MQ4JUE6V.js +0 -447
  25. package/dist/chunk-N5AJP37P.js +0 -385
  26. package/dist/chunk-SIDCDO4Q.js +0 -1315
  27. package/dist/chunk-TDZF3WAT.js +0 -3824
  28. package/dist/chunk-VMBT3R2K.js +0 -0
  29. package/dist/chunk-WWHXKECU.js +0 -100
  30. package/dist/chunk-ZKH7AMP3.js +0 -42
  31. package/dist/chunk-ZOU3QHNL.js +0 -28
  32. package/dist/dist-es-CBFEDVZZ.js +0 -493
  33. package/dist/dist-es-ROXOWRKX.js +0 -22
  34. package/dist/dist-es-S3QCFNII.js +0 -327
  35. package/dist/dist-es-SQCUDQ4Y.js +0 -90
  36. package/dist/dist-es-UWOSB3KA.js +0 -72
  37. package/dist/dist-es-VXERFT35.js +0 -172
  38. package/dist/dist-es-Y44CAW7E.js +0 -385
  39. package/dist/event-streams-2IMLK3TK.js +0 -252
  40. package/dist/event-streams-NLZW3NHF.js +0 -1376
  41. package/dist/loadSso-T6VCDGCZ.js +0 -558
  42. package/dist/signin-BC6ZNJCV.js +0 -653
  43. package/dist/sso-oidc-PTS5E3NX.js +0 -793
  44. package/dist/sts-JSJ57UXB.js +0 -6108
@@ -1,1038 +0,0 @@
1
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js
2
- var getAllAliases = (name, aliases) => {
3
- const _aliases = [];
4
- if (name) {
5
- _aliases.push(name);
6
- }
7
- if (aliases) {
8
- for (const alias of aliases) {
9
- _aliases.push(alias);
10
- }
11
- }
12
- return _aliases;
13
- };
14
- var getMiddlewareNameWithAliases = (name, aliases) => {
15
- return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
16
- };
17
- var constructStack = () => {
18
- let absoluteEntries = [];
19
- let relativeEntries = [];
20
- let identifyOnResolve = false;
21
- const entriesNameSet = /* @__PURE__ */ new Set();
22
- const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
23
- const removeByName = (toRemove) => {
24
- let isRemoved = false;
25
- const filterCb = (entry) => {
26
- const aliases = getAllAliases(entry.name, entry.aliases);
27
- if (aliases.includes(toRemove)) {
28
- isRemoved = true;
29
- for (const alias of aliases) {
30
- entriesNameSet.delete(alias);
31
- }
32
- return false;
33
- }
34
- return true;
35
- };
36
- absoluteEntries = absoluteEntries.filter(filterCb);
37
- relativeEntries = relativeEntries.filter(filterCb);
38
- return isRemoved;
39
- };
40
- const removeByReference = (toRemove) => {
41
- let isRemoved = false;
42
- const filterCb = (entry) => {
43
- if (entry.middleware === toRemove) {
44
- isRemoved = true;
45
- for (const alias of getAllAliases(entry.name, entry.aliases)) {
46
- entriesNameSet.delete(alias);
47
- }
48
- return false;
49
- }
50
- return true;
51
- };
52
- absoluteEntries = absoluteEntries.filter(filterCb);
53
- relativeEntries = relativeEntries.filter(filterCb);
54
- return isRemoved;
55
- };
56
- const cloneTo = (toStack) => {
57
- absoluteEntries.forEach((entry) => {
58
- toStack.add(entry.middleware, { ...entry });
59
- });
60
- relativeEntries.forEach((entry) => {
61
- toStack.addRelativeTo(entry.middleware, { ...entry });
62
- });
63
- toStack.identifyOnResolve?.(stack.identifyOnResolve());
64
- return toStack;
65
- };
66
- const expandRelativeMiddlewareList = (from) => {
67
- const expandedMiddlewareList = [];
68
- from.before.forEach((entry) => {
69
- if (entry.before.length === 0 && entry.after.length === 0) {
70
- expandedMiddlewareList.push(entry);
71
- } else {
72
- expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
73
- }
74
- });
75
- expandedMiddlewareList.push(from);
76
- from.after.reverse().forEach((entry) => {
77
- if (entry.before.length === 0 && entry.after.length === 0) {
78
- expandedMiddlewareList.push(entry);
79
- } else {
80
- expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
81
- }
82
- });
83
- return expandedMiddlewareList;
84
- };
85
- const getMiddlewareList = (debug = false) => {
86
- const normalizedAbsoluteEntries = [];
87
- const normalizedRelativeEntries = [];
88
- const normalizedEntriesNameMap = {};
89
- absoluteEntries.forEach((entry) => {
90
- const normalizedEntry = {
91
- ...entry,
92
- before: [],
93
- after: []
94
- };
95
- for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
96
- normalizedEntriesNameMap[alias] = normalizedEntry;
97
- }
98
- normalizedAbsoluteEntries.push(normalizedEntry);
99
- });
100
- relativeEntries.forEach((entry) => {
101
- const normalizedEntry = {
102
- ...entry,
103
- before: [],
104
- after: []
105
- };
106
- for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
107
- normalizedEntriesNameMap[alias] = normalizedEntry;
108
- }
109
- normalizedRelativeEntries.push(normalizedEntry);
110
- });
111
- normalizedRelativeEntries.forEach((entry) => {
112
- if (entry.toMiddleware) {
113
- const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
114
- if (toMiddleware === void 0) {
115
- if (debug) {
116
- return;
117
- }
118
- throw new Error(`${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`);
119
- }
120
- if (entry.relation === "after") {
121
- toMiddleware.after.push(entry);
122
- }
123
- if (entry.relation === "before") {
124
- toMiddleware.before.push(entry);
125
- }
126
- }
127
- });
128
- const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expandedMiddlewareList) => {
129
- wholeList.push(...expandedMiddlewareList);
130
- return wholeList;
131
- }, []);
132
- return mainChain;
133
- };
134
- const stack = {
135
- add: (middleware, options = {}) => {
136
- const { name, override, aliases: _aliases } = options;
137
- const entry = {
138
- step: "initialize",
139
- priority: "normal",
140
- middleware,
141
- ...options
142
- };
143
- const aliases = getAllAliases(name, _aliases);
144
- if (aliases.length > 0) {
145
- if (aliases.some((alias) => entriesNameSet.has(alias))) {
146
- if (!override)
147
- throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
148
- for (const alias of aliases) {
149
- const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
150
- if (toOverrideIndex === -1) {
151
- continue;
152
- }
153
- const toOverride = absoluteEntries[toOverrideIndex];
154
- if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
155
- 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.`);
156
- }
157
- absoluteEntries.splice(toOverrideIndex, 1);
158
- }
159
- }
160
- for (const alias of aliases) {
161
- entriesNameSet.add(alias);
162
- }
163
- }
164
- absoluteEntries.push(entry);
165
- },
166
- addRelativeTo: (middleware, options) => {
167
- const { name, override, aliases: _aliases } = options;
168
- const entry = {
169
- middleware,
170
- ...options
171
- };
172
- const aliases = getAllAliases(name, _aliases);
173
- if (aliases.length > 0) {
174
- if (aliases.some((alias) => entriesNameSet.has(alias))) {
175
- if (!override)
176
- throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
177
- for (const alias of aliases) {
178
- const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
179
- if (toOverrideIndex === -1) {
180
- continue;
181
- }
182
- const toOverride = relativeEntries[toOverrideIndex];
183
- if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
184
- 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.`);
185
- }
186
- relativeEntries.splice(toOverrideIndex, 1);
187
- }
188
- }
189
- for (const alias of aliases) {
190
- entriesNameSet.add(alias);
191
- }
192
- }
193
- relativeEntries.push(entry);
194
- },
195
- clone: () => cloneTo(constructStack()),
196
- use: (plugin) => {
197
- plugin.applyToStack(stack);
198
- },
199
- remove: (toRemove) => {
200
- if (typeof toRemove === "string")
201
- return removeByName(toRemove);
202
- else
203
- return removeByReference(toRemove);
204
- },
205
- removeByTag: (toRemove) => {
206
- let isRemoved = false;
207
- const filterCb = (entry) => {
208
- const { tags, name, aliases: _aliases } = entry;
209
- if (tags && tags.includes(toRemove)) {
210
- const aliases = getAllAliases(name, _aliases);
211
- for (const alias of aliases) {
212
- entriesNameSet.delete(alias);
213
- }
214
- isRemoved = true;
215
- return false;
216
- }
217
- return true;
218
- };
219
- absoluteEntries = absoluteEntries.filter(filterCb);
220
- relativeEntries = relativeEntries.filter(filterCb);
221
- return isRemoved;
222
- },
223
- concat: (from) => {
224
- const cloned = cloneTo(constructStack());
225
- cloned.use(from);
226
- cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false));
227
- return cloned;
228
- },
229
- applyToStack: cloneTo,
230
- identify: () => {
231
- return getMiddlewareList(true).map((mw) => {
232
- const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
233
- return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
234
- });
235
- },
236
- identifyOnResolve(toggle) {
237
- if (typeof toggle === "boolean")
238
- identifyOnResolve = toggle;
239
- return identifyOnResolve;
240
- },
241
- resolve: (handler, context) => {
242
- for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
243
- handler = middleware(handler, context);
244
- }
245
- if (identifyOnResolve) {
246
- console.log(stack.identify());
247
- }
248
- return handler;
249
- }
250
- };
251
- return stack;
252
- };
253
- var stepWeights = {
254
- initialize: 5,
255
- serialize: 4,
256
- build: 3,
257
- finalizeRequest: 2,
258
- deserialize: 1
259
- };
260
- var priorityWeights = {
261
- high: 3,
262
- normal: 2,
263
- low: 1
264
- };
265
-
266
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client.js
267
- var Client = class {
268
- config;
269
- middlewareStack = constructStack();
270
- initConfig;
271
- handlers;
272
- constructor(config) {
273
- this.config = config;
274
- const { protocol, protocolSettings } = config;
275
- if (protocolSettings) {
276
- if (typeof protocol === "function") {
277
- config.protocol = new protocol(protocolSettings);
278
- }
279
- }
280
- }
281
- send(command, optionsOrCb, cb) {
282
- const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
283
- const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
284
- const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
285
- let handler;
286
- if (useHandlerCache) {
287
- if (!this.handlers) {
288
- this.handlers = /* @__PURE__ */ new WeakMap();
289
- }
290
- const handlers = this.handlers;
291
- if (handlers.has(command.constructor)) {
292
- handler = handlers.get(command.constructor);
293
- } else {
294
- handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
295
- handlers.set(command.constructor, handler);
296
- }
297
- } else {
298
- delete this.handlers;
299
- handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
300
- }
301
- if (callback) {
302
- handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => {
303
- });
304
- } else {
305
- return handler(command).then((result) => result.output);
306
- }
307
- }
308
- destroy() {
309
- this.config?.requestHandler?.destroy?.();
310
- delete this.handlers;
311
- }
312
- };
313
-
314
- // ../../node_modules/.pnpm/@smithy+types@4.14.1/node_modules/@smithy/types/dist-es/extensions/checksum.js
315
- var AlgorithmId;
316
- (function(AlgorithmId2) {
317
- AlgorithmId2["MD5"] = "md5";
318
- AlgorithmId2["CRC32"] = "crc32";
319
- AlgorithmId2["CRC32C"] = "crc32c";
320
- AlgorithmId2["SHA1"] = "sha1";
321
- AlgorithmId2["SHA256"] = "sha256";
322
- })(AlgorithmId || (AlgorithmId = {}));
323
-
324
- // ../../node_modules/.pnpm/@smithy+types@4.14.1/node_modules/@smithy/types/dist-es/middleware.js
325
- var SMITHY_CONTEXT_KEY = "__smithy_context";
326
-
327
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/schema/deref.js
328
- var deref = (schemaRef) => {
329
- if (typeof schemaRef === "function") {
330
- return schemaRef();
331
- }
332
- return schemaRef;
333
- };
334
-
335
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js
336
- var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
337
-
338
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/normalizeProvider.js
339
- var normalizeProvider = (input) => {
340
- if (typeof input === "function")
341
- return input;
342
- const promisified = Promise.resolve(input);
343
- return () => promisified;
344
- };
345
-
346
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js
347
- var createAggregatedClient = (commands, Client2, options) => {
348
- for (const [command, CommandCtor] of Object.entries(commands)) {
349
- const methodImpl = async function(args, optionsOrCb, cb) {
350
- const command2 = new CommandCtor(args);
351
- if (typeof optionsOrCb === "function") {
352
- this.send(command2, optionsOrCb);
353
- } else if (typeof cb === "function") {
354
- if (typeof optionsOrCb !== "object")
355
- throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
356
- this.send(command2, optionsOrCb || {}, cb);
357
- } else {
358
- return this.send(command2, optionsOrCb);
359
- }
360
- };
361
- const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
362
- Client2.prototype[methodName] = methodImpl;
363
- }
364
- const { paginators = {}, waiters = {} } = options ?? {};
365
- for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
366
- if (Client2.prototype[paginatorName] === void 0) {
367
- Client2.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
368
- return paginatorFn({
369
- ...paginationConfiguration,
370
- client: this
371
- }, commandInput, ...rest);
372
- };
373
- }
374
- }
375
- for (const [waiterName, waiterFn] of Object.entries(waiters)) {
376
- if (Client2.prototype[waiterName] === void 0) {
377
- Client2.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
378
- let config = waiterConfiguration;
379
- if (typeof waiterConfiguration === "number") {
380
- config = {
381
- maxWaitTime: waiterConfiguration
382
- };
383
- }
384
- return waiterFn({
385
- ...config,
386
- client: this
387
- }, commandInput, ...rest);
388
- };
389
- }
390
- }
391
- };
392
-
393
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js
394
- var ServiceException = class _ServiceException extends Error {
395
- $fault;
396
- $response;
397
- $retryable;
398
- $metadata;
399
- constructor(options) {
400
- super(options.message);
401
- Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
402
- this.name = options.name;
403
- this.$fault = options.$fault;
404
- this.$metadata = options.$metadata;
405
- }
406
- static isInstance(value) {
407
- if (!value)
408
- return false;
409
- const candidate = value;
410
- return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
411
- }
412
- static [Symbol.hasInstance](instance) {
413
- if (!instance)
414
- return false;
415
- const candidate = instance;
416
- if (this === _ServiceException) {
417
- return _ServiceException.isInstance(instance);
418
- }
419
- if (_ServiceException.isInstance(instance)) {
420
- if (candidate.name && this.name) {
421
- return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
422
- }
423
- return this.prototype.isPrototypeOf(instance);
424
- }
425
- return false;
426
- }
427
- };
428
-
429
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/defaults-mode.js
430
- var loadConfigsForDefaultMode = (mode) => {
431
- switch (mode) {
432
- case "standard":
433
- return {
434
- retryMode: "standard",
435
- connectionTimeout: 3100
436
- };
437
- case "in-region":
438
- return {
439
- retryMode: "standard",
440
- connectionTimeout: 1100
441
- };
442
- case "cross-region":
443
- return {
444
- retryMode: "standard",
445
- connectionTimeout: 3100
446
- };
447
- case "mobile":
448
- return {
449
- retryMode: "standard",
450
- connectionTimeout: 3e4
451
- };
452
- default:
453
- return {};
454
- }
455
- };
456
-
457
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/emitWarningIfUnsupportedVersion.js
458
- var warningEmitted = false;
459
- var emitWarningIfUnsupportedVersion = (version) => {
460
- if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
461
- warningEmitted = true;
462
- }
463
- };
464
-
465
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js
466
- var knownAlgorithms = Object.values(AlgorithmId);
467
- var getChecksumConfiguration = (runtimeConfig) => {
468
- const checksumAlgorithms = [];
469
- for (const id in AlgorithmId) {
470
- const algorithmId = AlgorithmId[id];
471
- if (runtimeConfig[algorithmId] === void 0) {
472
- continue;
473
- }
474
- checksumAlgorithms.push({
475
- algorithmId: () => algorithmId,
476
- checksumConstructor: () => runtimeConfig[algorithmId]
477
- });
478
- }
479
- for (const [id, ChecksumCtor] of Object.entries(runtimeConfig.checksumAlgorithms ?? {})) {
480
- checksumAlgorithms.push({
481
- algorithmId: () => id,
482
- checksumConstructor: () => ChecksumCtor
483
- });
484
- }
485
- return {
486
- addChecksumAlgorithm(algo) {
487
- runtimeConfig.checksumAlgorithms = runtimeConfig.checksumAlgorithms ?? {};
488
- const id = algo.algorithmId();
489
- const ctor = algo.checksumConstructor();
490
- if (knownAlgorithms.includes(id)) {
491
- runtimeConfig.checksumAlgorithms[id.toUpperCase()] = ctor;
492
- } else {
493
- runtimeConfig.checksumAlgorithms[id] = ctor;
494
- }
495
- checksumAlgorithms.push(algo);
496
- },
497
- checksumAlgorithms() {
498
- return checksumAlgorithms;
499
- }
500
- };
501
- };
502
- var resolveChecksumRuntimeConfig = (clientConfig) => {
503
- const runtimeConfig = {};
504
- clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
505
- const id = checksumAlgorithm.algorithmId();
506
- if (knownAlgorithms.includes(id)) {
507
- runtimeConfig[id] = checksumAlgorithm.checksumConstructor();
508
- }
509
- });
510
- return runtimeConfig;
511
- };
512
-
513
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/retry.js
514
- var getRetryConfiguration = (runtimeConfig) => {
515
- return {
516
- setRetryStrategy(retryStrategy) {
517
- runtimeConfig.retryStrategy = retryStrategy;
518
- },
519
- retryStrategy() {
520
- return runtimeConfig.retryStrategy;
521
- }
522
- };
523
- };
524
- var resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
525
- const runtimeConfig = {};
526
- runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
527
- return runtimeConfig;
528
- };
529
-
530
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.js
531
- var getDefaultExtensionConfiguration = (runtimeConfig) => {
532
- return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
533
- };
534
- var resolveDefaultRuntimeConfig = (config) => {
535
- return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
536
- };
537
-
538
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/NoOpLogger.js
539
- var NoOpLogger = class {
540
- trace() {
541
- }
542
- debug() {
543
- }
544
- info() {
545
- }
546
- warn() {
547
- }
548
- error() {
549
- }
550
- };
551
-
552
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
553
- var traitsCache = [];
554
- function translateTraits(indicator) {
555
- if (typeof indicator === "object") {
556
- return indicator;
557
- }
558
- indicator = indicator | 0;
559
- if (traitsCache[indicator]) {
560
- return traitsCache[indicator];
561
- }
562
- const traits = {};
563
- let i = 0;
564
- for (const trait of [
565
- "httpLabel",
566
- "idempotent",
567
- "idempotencyToken",
568
- "sensitive",
569
- "httpPayload",
570
- "httpResponseCode",
571
- "httpQueryParams"
572
- ]) {
573
- if ((indicator >> i++ & 1) === 1) {
574
- traits[trait] = 1;
575
- }
576
- }
577
- return traitsCache[indicator] = traits;
578
- }
579
-
580
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
581
- var anno = {
582
- it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it"),
583
- ns: /* @__PURE__ */ Symbol.for("@smithy/ns")
584
- };
585
- var simpleSchemaCacheN = [];
586
- var simpleSchemaCacheS = {};
587
- var NormalizedSchema = class _NormalizedSchema {
588
- ref;
589
- memberName;
590
- static symbol = /* @__PURE__ */ Symbol.for("@smithy/nor");
591
- symbol = _NormalizedSchema.symbol;
592
- name;
593
- schema;
594
- _isMemberSchema;
595
- traits;
596
- memberTraits;
597
- normalizedTraits;
598
- constructor(ref, memberName) {
599
- this.ref = ref;
600
- this.memberName = memberName;
601
- const traitStack = [];
602
- let _ref = ref;
603
- let schema = ref;
604
- this._isMemberSchema = false;
605
- while (isMemberSchema(_ref)) {
606
- traitStack.push(_ref[1]);
607
- _ref = _ref[0];
608
- schema = deref(_ref);
609
- this._isMemberSchema = true;
610
- }
611
- if (traitStack.length > 0) {
612
- this.memberTraits = {};
613
- for (let i = traitStack.length - 1; i >= 0; --i) {
614
- const traitSet = traitStack[i];
615
- Object.assign(this.memberTraits, translateTraits(traitSet));
616
- }
617
- } else {
618
- this.memberTraits = 0;
619
- }
620
- if (schema instanceof _NormalizedSchema) {
621
- const computedMemberTraits = this.memberTraits;
622
- Object.assign(this, schema);
623
- this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
624
- this.normalizedTraits = void 0;
625
- this.memberName = memberName ?? schema.memberName;
626
- return;
627
- }
628
- this.schema = deref(schema);
629
- if (isStaticSchema(this.schema)) {
630
- this.name = `${this.schema[1]}#${this.schema[2]}`;
631
- this.traits = this.schema[3];
632
- } else {
633
- this.name = this.memberName ?? String(schema);
634
- this.traits = 0;
635
- }
636
- if (this._isMemberSchema && !memberName) {
637
- throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
638
- }
639
- }
640
- static [Symbol.hasInstance](lhs) {
641
- const isPrototype = this.prototype.isPrototypeOf(lhs);
642
- if (!isPrototype && typeof lhs === "object" && lhs !== null) {
643
- const ns = lhs;
644
- return ns.symbol === this.symbol;
645
- }
646
- return isPrototype;
647
- }
648
- static of(ref) {
649
- const keyAble = typeof ref === "function" || typeof ref === "object" && ref !== null;
650
- if (typeof ref === "number") {
651
- if (simpleSchemaCacheN[ref]) {
652
- return simpleSchemaCacheN[ref];
653
- }
654
- } else if (typeof ref === "string") {
655
- if (simpleSchemaCacheS[ref]) {
656
- return simpleSchemaCacheS[ref];
657
- }
658
- } else if (keyAble) {
659
- if (ref[anno.ns]) {
660
- return ref[anno.ns];
661
- }
662
- }
663
- const sc = deref(ref);
664
- if (sc instanceof _NormalizedSchema) {
665
- return sc;
666
- }
667
- if (isMemberSchema(sc)) {
668
- const [ns2, traits] = sc;
669
- if (ns2 instanceof _NormalizedSchema) {
670
- Object.assign(ns2.getMergedTraits(), translateTraits(traits));
671
- return ns2;
672
- }
673
- throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
674
- }
675
- const ns = new _NormalizedSchema(sc);
676
- if (keyAble) {
677
- return ref[anno.ns] = ns;
678
- }
679
- if (typeof sc === "string") {
680
- return simpleSchemaCacheS[sc] = ns;
681
- }
682
- if (typeof sc === "number") {
683
- return simpleSchemaCacheN[sc] = ns;
684
- }
685
- return ns;
686
- }
687
- getSchema() {
688
- const sc = this.schema;
689
- if (Array.isArray(sc) && sc[0] === 0) {
690
- return sc[4];
691
- }
692
- return sc;
693
- }
694
- getName(withNamespace = false) {
695
- const { name } = this;
696
- const short = !withNamespace && name && name.includes("#");
697
- return short ? name.split("#")[1] : name || void 0;
698
- }
699
- getMemberName() {
700
- return this.memberName;
701
- }
702
- isMemberSchema() {
703
- return this._isMemberSchema;
704
- }
705
- isListSchema() {
706
- const sc = this.getSchema();
707
- return typeof sc === "number" ? sc >= 64 && sc < 128 : sc[0] === 1;
708
- }
709
- isMapSchema() {
710
- const sc = this.getSchema();
711
- return typeof sc === "number" ? sc >= 128 && sc <= 255 : sc[0] === 2;
712
- }
713
- isStructSchema() {
714
- const sc = this.getSchema();
715
- if (typeof sc !== "object") {
716
- return false;
717
- }
718
- const id = sc[0];
719
- return id === 3 || id === -3 || id === 4;
720
- }
721
- isUnionSchema() {
722
- const sc = this.getSchema();
723
- if (typeof sc !== "object") {
724
- return false;
725
- }
726
- return sc[0] === 4;
727
- }
728
- isBlobSchema() {
729
- const sc = this.getSchema();
730
- return sc === 21 || sc === 42;
731
- }
732
- isTimestampSchema() {
733
- const sc = this.getSchema();
734
- return typeof sc === "number" && sc >= 4 && sc <= 7;
735
- }
736
- isUnitSchema() {
737
- return this.getSchema() === "unit";
738
- }
739
- isDocumentSchema() {
740
- return this.getSchema() === 15;
741
- }
742
- isStringSchema() {
743
- return this.getSchema() === 0;
744
- }
745
- isBooleanSchema() {
746
- return this.getSchema() === 2;
747
- }
748
- isNumericSchema() {
749
- return this.getSchema() === 1;
750
- }
751
- isBigIntegerSchema() {
752
- return this.getSchema() === 17;
753
- }
754
- isBigDecimalSchema() {
755
- return this.getSchema() === 19;
756
- }
757
- isStreaming() {
758
- const { streaming } = this.getMergedTraits();
759
- return !!streaming || this.getSchema() === 42;
760
- }
761
- isIdempotencyToken() {
762
- return !!this.getMergedTraits().idempotencyToken;
763
- }
764
- getMergedTraits() {
765
- return this.normalizedTraits ?? (this.normalizedTraits = {
766
- ...this.getOwnTraits(),
767
- ...this.getMemberTraits()
768
- });
769
- }
770
- getMemberTraits() {
771
- return translateTraits(this.memberTraits);
772
- }
773
- getOwnTraits() {
774
- return translateTraits(this.traits);
775
- }
776
- getKeySchema() {
777
- const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
778
- if (!isDoc && !isMap) {
779
- throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
780
- }
781
- const schema = this.getSchema();
782
- const memberSchema = isDoc ? 15 : schema[4] ?? 0;
783
- return member([memberSchema, 0], "key");
784
- }
785
- getValueSchema() {
786
- const sc = this.getSchema();
787
- const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
788
- const memberSchema = typeof sc === "number" ? 63 & sc : sc && typeof sc === "object" && (isMap || isList) ? sc[3 + sc[0]] : isDoc ? 15 : void 0;
789
- if (memberSchema != null) {
790
- return member([memberSchema, 0], isMap ? "value" : "member");
791
- }
792
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
793
- }
794
- getMemberSchema(memberName) {
795
- const struct = this.getSchema();
796
- if (this.isStructSchema() && struct[4].includes(memberName)) {
797
- const i = struct[4].indexOf(memberName);
798
- const memberSchema = struct[5][i];
799
- return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
800
- }
801
- if (this.isDocumentSchema()) {
802
- return member([15, 0], memberName);
803
- }
804
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
805
- }
806
- getMemberSchemas() {
807
- const buffer = {};
808
- try {
809
- for (const [k, v] of this.structIterator()) {
810
- buffer[k] = v;
811
- }
812
- } catch (ignored) {
813
- }
814
- return buffer;
815
- }
816
- getEventStreamMember() {
817
- if (this.isStructSchema()) {
818
- for (const [memberName, memberSchema] of this.structIterator()) {
819
- if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
820
- return memberName;
821
- }
822
- }
823
- }
824
- return "";
825
- }
826
- *structIterator() {
827
- if (this.isUnitSchema()) {
828
- return;
829
- }
830
- if (!this.isStructSchema()) {
831
- throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
832
- }
833
- const struct = this.getSchema();
834
- const z = struct[4].length;
835
- let it = struct[anno.it];
836
- if (it && z === it.length) {
837
- yield* it;
838
- return;
839
- }
840
- it = Array(z);
841
- for (let i = 0; i < z; ++i) {
842
- const k = struct[4][i];
843
- const v = member([struct[5][i], 0], k);
844
- yield it[i] = [k, v];
845
- }
846
- struct[anno.it] = it;
847
- }
848
- };
849
- function member(memberSchema, memberName) {
850
- if (memberSchema instanceof NormalizedSchema) {
851
- return Object.assign(memberSchema, {
852
- memberName,
853
- _isMemberSchema: true
854
- });
855
- }
856
- const internalCtorAccess = NormalizedSchema;
857
- return new internalCtorAccess(memberSchema, memberName);
858
- }
859
- var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
860
- var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
861
-
862
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js
863
- var SENSITIVE_STRING = "***SensitiveInformation***";
864
- function schemaLogFilter(schema, data) {
865
- if (data == null) {
866
- return data;
867
- }
868
- const ns = NormalizedSchema.of(schema);
869
- if (ns.getMergedTraits().sensitive) {
870
- return SENSITIVE_STRING;
871
- }
872
- if (ns.isListSchema()) {
873
- const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
874
- if (isSensitive) {
875
- return SENSITIVE_STRING;
876
- }
877
- } else if (ns.isMapSchema()) {
878
- const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
879
- if (isSensitive) {
880
- return SENSITIVE_STRING;
881
- }
882
- } else if (ns.isStructSchema() && typeof data === "object") {
883
- const object = data;
884
- const newObject = {};
885
- for (const [member2, memberNs] of ns.structIterator()) {
886
- if (object[member2] != null) {
887
- newObject[member2] = schemaLogFilter(memberNs, object[member2]);
888
- }
889
- }
890
- return newObject;
891
- }
892
- return data;
893
- }
894
-
895
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js
896
- var Command = class {
897
- middlewareStack = constructStack();
898
- schema;
899
- static classBuilder() {
900
- return new ClassBuilder();
901
- }
902
- resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) {
903
- for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
904
- this.middlewareStack.use(mw);
905
- }
906
- const stack = clientStack.concat(this.middlewareStack);
907
- const { logger } = configuration;
908
- const handlerExecutionContext = {
909
- logger,
910
- clientName,
911
- commandName,
912
- inputFilterSensitiveLog,
913
- outputFilterSensitiveLog,
914
- [SMITHY_CONTEXT_KEY]: {
915
- commandInstance: this,
916
- ...smithyContext
917
- },
918
- ...additionalContext
919
- };
920
- const { requestHandler } = configuration;
921
- let requestOptions = options ?? {};
922
- if (smithyContext.eventStream) {
923
- requestOptions = {
924
- isEventStream: true,
925
- ...requestOptions
926
- };
927
- }
928
- return stack.resolve((request) => requestHandler.handle(request.request, requestOptions), handlerExecutionContext);
929
- }
930
- };
931
- var ClassBuilder = class {
932
- _init = () => {
933
- };
934
- _ep = {};
935
- _middlewareFn = () => [];
936
- _commandName = "";
937
- _clientName = "";
938
- _additionalContext = {};
939
- _smithyContext = {};
940
- _inputFilterSensitiveLog = void 0;
941
- _outputFilterSensitiveLog = void 0;
942
- _serializer = null;
943
- _deserializer = null;
944
- _operationSchema;
945
- init(cb) {
946
- this._init = cb;
947
- }
948
- ep(endpointParameterInstructions) {
949
- this._ep = endpointParameterInstructions;
950
- return this;
951
- }
952
- m(middlewareSupplier) {
953
- this._middlewareFn = middlewareSupplier;
954
- return this;
955
- }
956
- s(service, operation, smithyContext = {}) {
957
- this._smithyContext = {
958
- service,
959
- operation,
960
- ...smithyContext
961
- };
962
- return this;
963
- }
964
- c(additionalContext = {}) {
965
- this._additionalContext = additionalContext;
966
- return this;
967
- }
968
- n(clientName, commandName) {
969
- this._clientName = clientName;
970
- this._commandName = commandName;
971
- return this;
972
- }
973
- f(inputFilter = (_) => _, outputFilter = (_) => _) {
974
- this._inputFilterSensitiveLog = inputFilter;
975
- this._outputFilterSensitiveLog = outputFilter;
976
- return this;
977
- }
978
- ser(serializer) {
979
- this._serializer = serializer;
980
- return this;
981
- }
982
- de(deserializer) {
983
- this._deserializer = deserializer;
984
- return this;
985
- }
986
- sc(operation) {
987
- this._operationSchema = operation;
988
- this._smithyContext.operationSchema = operation;
989
- return this;
990
- }
991
- build() {
992
- const closure = this;
993
- let CommandRef;
994
- return CommandRef = class extends Command {
995
- input;
996
- static getEndpointParameterInstructions() {
997
- return closure._ep;
998
- }
999
- constructor(...[input]) {
1000
- super();
1001
- this.input = input ?? {};
1002
- closure._init(this);
1003
- this.schema = closure._operationSchema;
1004
- }
1005
- resolveMiddleware(stack, configuration, options) {
1006
- const op = closure._operationSchema;
1007
- const input = op?.[4] ?? op?.input;
1008
- const output = op?.[5] ?? op?.output;
1009
- return this.resolveMiddlewareWithContext(stack, configuration, options, {
1010
- CommandCtor: CommandRef,
1011
- middlewareFn: closure._middlewareFn,
1012
- clientName: closure._clientName,
1013
- commandName: closure._commandName,
1014
- inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
1015
- outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
1016
- smithyContext: closure._smithyContext,
1017
- additionalContext: closure._additionalContext
1018
- });
1019
- }
1020
- serialize = closure._serializer;
1021
- deserialize = closure._deserializer;
1022
- };
1023
- }
1024
- };
1025
-
1026
- export {
1027
- getSmithyContext,
1028
- normalizeProvider,
1029
- Client,
1030
- Command,
1031
- createAggregatedClient,
1032
- ServiceException,
1033
- loadConfigsForDefaultMode,
1034
- emitWarningIfUnsupportedVersion,
1035
- getDefaultExtensionConfiguration,
1036
- resolveDefaultRuntimeConfig,
1037
- NoOpLogger
1038
- };