@semiont/graph 0.5.11 → 0.5.12

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 (55) hide show
  1. package/dist/{chunk-SQRFW5JO.js → chunk-2FZWFAHI.js} +2 -2
  2. package/dist/{chunk-PFPGJZE5.js → chunk-7W3WYDYY.js} +781 -655
  3. package/dist/chunk-7W3WYDYY.js.map +1 -0
  4. package/dist/{chunk-QGGTFZBT.js → chunk-ANBNC7ET.js} +9 -9
  5. package/dist/chunk-ANBNC7ET.js.map +1 -0
  6. package/dist/{chunk-MPEJCIW2.js → chunk-FUH65BXZ.js} +3 -3
  7. package/dist/{chunk-2WJWKJQU.js → chunk-SIIGOCAF.js} +61 -167
  8. package/dist/chunk-SIIGOCAF.js.map +1 -0
  9. package/dist/chunk-TTCF2MVW.js +2238 -0
  10. package/dist/chunk-TTCF2MVW.js.map +1 -0
  11. package/dist/dist-es-2TLZH4GR.js +286 -0
  12. package/dist/dist-es-2TLZH4GR.js.map +1 -0
  13. package/dist/{dist-es-L3LHQ2H4.js → dist-es-3LHYAN2Z.js} +3 -3
  14. package/dist/{dist-es-CKTPSCQB.js → dist-es-ERGUA43M.js} +119 -258
  15. package/dist/dist-es-ERGUA43M.js.map +1 -0
  16. package/dist/{dist-es-TZGZRHJL.js → dist-es-FF2QSTPC.js} +19 -13
  17. package/dist/dist-es-FF2QSTPC.js.map +1 -0
  18. package/dist/{dist-es-RQSF5AZ5.js → dist-es-FYIEMWHW.js} +4 -4
  19. package/dist/{dist-es-UUBLUHQK.js → dist-es-QUWKNR3E.js} +2 -2
  20. package/dist/{dist-es-SHXLUESU.js → dist-es-VWWFUSHN.js} +6 -6
  21. package/dist/dist-es-WPIJNMD4.js +220 -0
  22. package/dist/dist-es-WPIJNMD4.js.map +1 -0
  23. package/dist/{dist-es-G4L6NCN5.js → dist-es-YDMYLFPU.js} +4 -4
  24. package/dist/index.js +45 -19
  25. package/dist/index.js.map +1 -1
  26. package/dist/{loadSso-RFRDEFSI.js → loadSso-XDB76252.js} +8 -10
  27. package/dist/{loadSso-RFRDEFSI.js.map → loadSso-XDB76252.js.map} +1 -1
  28. package/dist/{signin-U5IGPIWD.js → signin-AHFRIARE.js} +8 -10
  29. package/dist/{signin-U5IGPIWD.js.map → signin-AHFRIARE.js.map} +1 -1
  30. package/dist/{sso-oidc-GGDHF3M3.js → sso-oidc-3B3W33KS.js} +8 -10
  31. package/dist/{sso-oidc-GGDHF3M3.js.map → sso-oidc-3B3W33KS.js.map} +1 -1
  32. package/dist/{sts-3TIKUUIA.js → sts-OXRUFMHG.js} +10 -16
  33. package/dist/sts-OXRUFMHG.js.map +1 -0
  34. package/package.json +6 -6
  35. package/dist/chunk-2WJWKJQU.js.map +0 -1
  36. package/dist/chunk-5PYYJZCY.js +0 -576
  37. package/dist/chunk-5PYYJZCY.js.map +0 -1
  38. package/dist/chunk-6C6SP2SJ.js +0 -1113
  39. package/dist/chunk-6C6SP2SJ.js.map +0 -1
  40. package/dist/chunk-BRCSBLGI.js +0 -694
  41. package/dist/chunk-BRCSBLGI.js.map +0 -1
  42. package/dist/chunk-PFPGJZE5.js.map +0 -1
  43. package/dist/chunk-QGGTFZBT.js.map +0 -1
  44. package/dist/dist-es-5CZKMZ7F.js +0 -492
  45. package/dist/dist-es-5CZKMZ7F.js.map +0 -1
  46. package/dist/dist-es-CKTPSCQB.js.map +0 -1
  47. package/dist/dist-es-TZGZRHJL.js.map +0 -1
  48. package/dist/sts-3TIKUUIA.js.map +0 -1
  49. /package/dist/{chunk-SQRFW5JO.js.map → chunk-2FZWFAHI.js.map} +0 -0
  50. /package/dist/{chunk-MPEJCIW2.js.map → chunk-FUH65BXZ.js.map} +0 -0
  51. /package/dist/{dist-es-L3LHQ2H4.js.map → dist-es-3LHYAN2Z.js.map} +0 -0
  52. /package/dist/{dist-es-RQSF5AZ5.js.map → dist-es-FYIEMWHW.js.map} +0 -0
  53. /package/dist/{dist-es-UUBLUHQK.js.map → dist-es-QUWKNR3E.js.map} +0 -0
  54. /package/dist/{dist-es-SHXLUESU.js.map → dist-es-VWWFUSHN.js.map} +0 -0
  55. /package/dist/{dist-es-G4L6NCN5.js.map → dist-es-YDMYLFPU.js.map} +0 -0
@@ -17,9 +17,26 @@ import {
17
17
  toUtf8
18
18
  } from "./chunk-FG7DZRU2.js";
19
19
 
20
+ // ../../node_modules/@smithy/types/dist-es/extensions/checksum.js
21
+ var AlgorithmId;
22
+ (function(AlgorithmId2) {
23
+ AlgorithmId2["MD5"] = "md5";
24
+ AlgorithmId2["CRC32"] = "crc32";
25
+ AlgorithmId2["CRC32C"] = "crc32c";
26
+ AlgorithmId2["SHA1"] = "sha1";
27
+ AlgorithmId2["SHA256"] = "sha256";
28
+ })(AlgorithmId || (AlgorithmId = {}));
29
+
20
30
  // ../../node_modules/@smithy/types/dist-es/middleware.js
21
31
  var SMITHY_CONTEXT_KEY = "__smithy_context";
22
32
 
33
+ // ../../node_modules/@smithy/types/dist-es/endpoint.js
34
+ var EndpointURLScheme;
35
+ (function(EndpointURLScheme2) {
36
+ EndpointURLScheme2["HTTP"] = "http";
37
+ EndpointURLScheme2["HTTPS"] = "https";
38
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
39
+
23
40
  // ../../node_modules/@smithy/types/dist-es/profile.js
24
41
  var IniSectionType;
25
42
  (function(IniSectionType2) {
@@ -197,6 +214,114 @@ var toEndpointV1 = (endpoint) => {
197
214
  return parseUrl(endpoint);
198
215
  };
199
216
 
217
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
218
+ var operation = (namespace, name, traits, input, output) => ({
219
+ name,
220
+ namespace,
221
+ traits,
222
+ input,
223
+ output
224
+ });
225
+
226
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
227
+ var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
228
+ const { response } = await next(args);
229
+ const { operationSchema } = getSmithyContext(context);
230
+ const [, ns, n, t, i, o] = operationSchema ?? [];
231
+ try {
232
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
233
+ ...config,
234
+ ...context
235
+ }, response);
236
+ return {
237
+ response,
238
+ output: parsed
239
+ };
240
+ } catch (error) {
241
+ Object.defineProperty(error, "$response", {
242
+ value: response,
243
+ enumerable: false,
244
+ writable: false,
245
+ configurable: false
246
+ });
247
+ if (!("$metadata" in error)) {
248
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
249
+ try {
250
+ error.message += "\n " + hint;
251
+ } catch (e) {
252
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
253
+ console.warn(hint);
254
+ } else {
255
+ context.logger?.warn?.(hint);
256
+ }
257
+ }
258
+ if (typeof error.$responseBodyText !== "undefined") {
259
+ if (error.$response) {
260
+ error.$response.body = error.$responseBodyText;
261
+ }
262
+ }
263
+ try {
264
+ if (HttpResponse.isInstance(response)) {
265
+ const { headers = {}, statusCode } = response;
266
+ const headerEntries = Object.entries(headers);
267
+ error.$metadata = {
268
+ httpStatusCode: statusCode,
269
+ requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
270
+ extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
271
+ cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
272
+ };
273
+ }
274
+ } catch (e) {
275
+ }
276
+ }
277
+ throw error;
278
+ }
279
+ };
280
+ var findHeader = (pattern, headers) => {
281
+ return (headers.find(([k]) => {
282
+ return k.match(pattern);
283
+ }) || [void 0, void 0])[1];
284
+ };
285
+
286
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
287
+ var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
288
+ const { operationSchema } = getSmithyContext(context);
289
+ const [, ns, n, t, i, o] = operationSchema ?? [];
290
+ const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
291
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
292
+ ...config,
293
+ ...context,
294
+ endpoint
295
+ });
296
+ return next({
297
+ ...args,
298
+ request
299
+ });
300
+ };
301
+
302
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
303
+ var deserializerMiddlewareOption = {
304
+ name: "deserializerMiddleware",
305
+ step: "deserialize",
306
+ tags: ["DESERIALIZER"],
307
+ override: true
308
+ };
309
+ var serializerMiddlewareOption = {
310
+ name: "serializerMiddleware",
311
+ step: "serialize",
312
+ tags: ["SERIALIZER"],
313
+ override: true
314
+ };
315
+ function getSchemaSerdePlugin(config) {
316
+ return {
317
+ applyToStack: (commandStack) => {
318
+ commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
319
+ commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
320
+ config.protocol.setSerdeContext(config);
321
+ }
322
+ };
323
+ }
324
+
200
325
  // ../../node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
201
326
  var TypeRegistry = class _TypeRegistry {
202
327
  namespace;
@@ -300,628 +425,160 @@ var TypeRegistry = class _TypeRegistry {
300
425
  }
301
426
  };
302
427
 
303
- // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js
304
- var ProviderError = class _ProviderError extends Error {
305
- name = "ProviderError";
306
- tryNextLink;
307
- constructor(message, options = true) {
308
- let logger;
309
- let tryNextLink = true;
310
- if (typeof options === "boolean") {
311
- logger = void 0;
312
- tryNextLink = options;
313
- } else if (options != null && typeof options === "object") {
314
- logger = options.logger;
315
- tryNextLink = options.tryNextLink ?? true;
316
- }
317
- super(message);
318
- this.tryNextLink = tryNextLink;
319
- Object.setPrototypeOf(this, _ProviderError.prototype);
320
- logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
321
- }
322
- static from(error, options = true) {
323
- return Object.assign(new this(error.message, options), error);
428
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/deref.js
429
+ var deref = (schemaRef) => {
430
+ if (typeof schemaRef === "function") {
431
+ return schemaRef();
324
432
  }
433
+ return schemaRef;
325
434
  };
326
435
 
327
- // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js
328
- var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
329
- name = "CredentialsProviderError";
330
- constructor(message, options = true) {
331
- super(message, options);
332
- Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
436
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
437
+ var traitsCache = [];
438
+ function translateTraits(indicator) {
439
+ if (typeof indicator === "object") {
440
+ return indicator;
333
441
  }
334
- };
335
-
336
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js
337
- var ENV_PROFILE = "AWS_PROFILE";
338
- var DEFAULT_PROFILE = "default";
339
- var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
340
-
341
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
342
- import { join } from "path";
343
-
344
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js
345
- import { homedir } from "os";
346
- import { sep } from "path";
347
- var homeDirCache = {};
348
- var getHomeDirCacheKey = () => {
349
- if (process && process.geteuid) {
350
- return `${process.geteuid()}`;
442
+ indicator = indicator | 0;
443
+ if (traitsCache[indicator]) {
444
+ return traitsCache[indicator];
351
445
  }
352
- return "DEFAULT";
353
- };
354
- var getHomeDir = () => {
355
- const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
356
- if (HOME)
357
- return HOME;
358
- if (USERPROFILE)
359
- return USERPROFILE;
360
- if (HOMEPATH)
361
- return `${HOMEDRIVE}${HOMEPATH}`;
362
- const homeDirCacheKey = getHomeDirCacheKey();
363
- if (!homeDirCache[homeDirCacheKey])
364
- homeDirCache[homeDirCacheKey] = homedir();
365
- return homeDirCache[homeDirCacheKey];
366
- };
367
-
368
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
369
- var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
370
- var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
371
-
372
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
373
- import { join as join3 } from "path";
374
-
375
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js
376
- var CONFIG_PREFIX_SEPARATOR = ".";
377
-
378
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
379
- var getConfigData = (data) => Object.entries(data).filter(([key]) => {
380
- const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
381
- if (indexOfSeparator === -1) {
382
- return false;
446
+ const traits = {};
447
+ let i = 0;
448
+ for (const trait of [
449
+ "httpLabel",
450
+ "idempotent",
451
+ "idempotencyToken",
452
+ "sensitive",
453
+ "httpPayload",
454
+ "httpResponseCode",
455
+ "httpQueryParams"
456
+ ]) {
457
+ if ((indicator >> i++ & 1) === 1) {
458
+ traits[trait] = 1;
459
+ }
383
460
  }
384
- return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
385
- }).reduce((acc, [key, value]) => {
386
- const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
387
- const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
388
- acc[updatedKey] = value;
389
- return acc;
390
- }, {
391
- ...data.default && { default: data.default }
392
- });
393
-
394
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
395
- import { join as join2 } from "path";
396
- var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
397
- var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
461
+ return traitsCache[indicator] = traits;
462
+ }
398
463
 
399
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
400
- var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
401
- var profileNameBlockList = ["__proto__", "profile __proto__"];
402
- var parseIni = (iniData) => {
403
- const map = {};
404
- let currentSection;
405
- let currentSubSection;
406
- for (const iniLine of iniData.split(/\r?\n/)) {
407
- const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
408
- const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
409
- if (isSection) {
410
- currentSection = void 0;
411
- currentSubSection = void 0;
412
- const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
413
- const matches = prefixKeyRegex.exec(sectionName);
414
- if (matches) {
415
- const [, prefix, , name] = matches;
416
- if (Object.values(IniSectionType).includes(prefix)) {
417
- currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
418
- }
419
- } else {
420
- currentSection = sectionName;
421
- }
422
- if (profileNameBlockList.includes(sectionName)) {
423
- throw new Error(`Found invalid profile name "${sectionName}"`);
424
- }
425
- } else if (currentSection) {
426
- const indexOfEqualsSign = trimmedLine.indexOf("=");
427
- if (![0, -1].includes(indexOfEqualsSign)) {
428
- const [name, value] = [
429
- trimmedLine.substring(0, indexOfEqualsSign).trim(),
430
- trimmedLine.substring(indexOfEqualsSign + 1).trim()
431
- ];
432
- if (value === "") {
433
- currentSubSection = name;
434
- } else {
435
- if (currentSubSection && iniLine.trimStart() === iniLine) {
436
- currentSubSection = void 0;
437
- }
438
- map[currentSection] = map[currentSection] || {};
439
- const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
440
- map[currentSection][key] = value;
441
- }
464
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
465
+ var anno = {
466
+ it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it"),
467
+ ns: /* @__PURE__ */ Symbol.for("@smithy/ns")
468
+ };
469
+ var simpleSchemaCacheN = [];
470
+ var simpleSchemaCacheS = {};
471
+ var NormalizedSchema = class _NormalizedSchema {
472
+ ref;
473
+ memberName;
474
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/nor");
475
+ symbol = _NormalizedSchema.symbol;
476
+ name;
477
+ schema;
478
+ _isMemberSchema;
479
+ traits;
480
+ memberTraits;
481
+ normalizedTraits;
482
+ constructor(ref, memberName) {
483
+ this.ref = ref;
484
+ this.memberName = memberName;
485
+ const traitStack = [];
486
+ let _ref = ref;
487
+ let schema = ref;
488
+ this._isMemberSchema = false;
489
+ while (isMemberSchema(_ref)) {
490
+ traitStack.push(_ref[1]);
491
+ _ref = _ref[0];
492
+ schema = deref(_ref);
493
+ this._isMemberSchema = true;
494
+ }
495
+ if (traitStack.length > 0) {
496
+ this.memberTraits = {};
497
+ for (let i = traitStack.length - 1; i >= 0; --i) {
498
+ const traitSet = traitStack[i];
499
+ Object.assign(this.memberTraits, translateTraits(traitSet));
442
500
  }
501
+ } else {
502
+ this.memberTraits = 0;
503
+ }
504
+ if (schema instanceof _NormalizedSchema) {
505
+ const computedMemberTraits = this.memberTraits;
506
+ Object.assign(this, schema);
507
+ this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
508
+ this.normalizedTraits = void 0;
509
+ this.memberName = memberName ?? schema.memberName;
510
+ return;
511
+ }
512
+ this.schema = deref(schema);
513
+ if (isStaticSchema(this.schema)) {
514
+ this.name = `${this.schema[1]}#${this.schema[2]}`;
515
+ this.traits = this.schema[3];
516
+ } else {
517
+ this.name = this.memberName ?? String(schema);
518
+ this.traits = 0;
519
+ }
520
+ if (this._isMemberSchema && !memberName) {
521
+ throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
443
522
  }
444
523
  }
445
- return map;
446
- };
447
-
448
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
449
- import { readFile as fsReadFile } from "fs/promises";
450
- var filePromises = {};
451
- var fileIntercept = {};
452
- var readFile = (path, options) => {
453
- if (fileIntercept[path] !== void 0) {
454
- return fileIntercept[path];
455
- }
456
- if (!filePromises[path] || options?.ignoreCache) {
457
- filePromises[path] = fsReadFile(path, "utf8");
458
- }
459
- return filePromises[path];
460
- };
461
-
462
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
463
- var swallowError = () => ({});
464
- var loadSharedConfigFiles = async (init = {}) => {
465
- const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
466
- const homeDir = getHomeDir();
467
- const relativeHomeDirPrefix = "~/";
468
- let resolvedFilepath = filepath;
469
- if (filepath.startsWith(relativeHomeDirPrefix)) {
470
- resolvedFilepath = join3(homeDir, filepath.slice(2));
471
- }
472
- let resolvedConfigFilepath = configFilepath;
473
- if (configFilepath.startsWith(relativeHomeDirPrefix)) {
474
- resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
475
- }
476
- const parsedFiles = await Promise.all([
477
- readFile(resolvedConfigFilepath, {
478
- ignoreCache: init.ignoreCache
479
- }).then(parseIni).then(getConfigData).catch(swallowError),
480
- readFile(resolvedFilepath, {
481
- ignoreCache: init.ignoreCache
482
- }).then(parseIni).catch(swallowError)
483
- ]);
484
- return {
485
- configFile: parsedFiles[0],
486
- credentialsFile: parsedFiles[1]
487
- };
488
- };
489
-
490
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
491
- var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
492
-
493
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
494
- var swallowError2 = () => ({});
495
- var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
496
-
497
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
498
- var mergeConfigFiles = (...files) => {
499
- const merged = {};
500
- for (const file of files) {
501
- for (const [key, values] of Object.entries(file)) {
502
- if (merged[key] !== void 0) {
503
- Object.assign(merged[key], values);
504
- } else {
505
- merged[key] = values;
506
- }
524
+ static [Symbol.hasInstance](lhs) {
525
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
526
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
527
+ const ns = lhs;
528
+ return ns.symbol === this.symbol;
507
529
  }
530
+ return isPrototype;
508
531
  }
509
- return merged;
510
- };
511
-
512
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
513
- var parseKnownFiles = async (init) => {
514
- const parsedFiles = await loadSharedConfigFiles(init);
515
- return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
516
- };
517
-
518
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
519
- import { readFile as readFile2 } from "fs/promises";
520
-
521
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
522
- import { createHash } from "crypto";
523
- import { join as join4 } from "path";
524
- var getSSOTokenFilepath = (id) => {
525
- const hasher = createHash("sha1");
526
- const cacheName = hasher.update(id).digest("hex");
527
- return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
528
- };
529
-
530
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
531
- var tokenIntercept = {};
532
- var getSSOTokenFromFile = async (id) => {
533
- if (tokenIntercept[id]) {
534
- return tokenIntercept[id];
535
- }
536
- const ssoTokenFilepath = getSSOTokenFilepath(id);
537
- const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
538
- return JSON.parse(ssoTokenText);
539
- };
540
-
541
- // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js
542
- var externalDataInterceptor = {
543
- getFileRecord() {
544
- return fileIntercept;
545
- },
546
- interceptFile(path, contents) {
547
- fileIntercept[path] = Promise.resolve(contents);
548
- },
549
- getTokenRecord() {
550
- return tokenIntercept;
551
- },
552
- interceptToken(id, contents) {
553
- tokenIntercept[id] = contents;
554
- }
555
- };
556
-
557
- // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
558
- var chain = (...providers) => async () => {
559
- if (providers.length === 0) {
560
- throw new ProviderError("No providers in chain");
561
- }
562
- let lastProviderError;
563
- for (const provider of providers) {
564
- try {
565
- const credentials = await provider();
566
- return credentials;
567
- } catch (err) {
568
- lastProviderError = err;
569
- if (err?.tryNextLink) {
570
- continue;
532
+ static of(ref) {
533
+ const keyAble = typeof ref === "function" || typeof ref === "object" && ref !== null;
534
+ if (typeof ref === "number") {
535
+ if (simpleSchemaCacheN[ref]) {
536
+ return simpleSchemaCacheN[ref];
537
+ }
538
+ } else if (typeof ref === "string") {
539
+ if (simpleSchemaCacheS[ref]) {
540
+ return simpleSchemaCacheS[ref];
541
+ }
542
+ } else if (keyAble) {
543
+ if (ref[anno.ns]) {
544
+ return ref[anno.ns];
571
545
  }
572
- throw err;
573
- }
574
- }
575
- throw lastProviderError;
576
- };
577
-
578
- // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
579
- var memoize = (provider, isExpired, requiresRefresh) => {
580
- let resolved;
581
- let pending;
582
- let hasResult;
583
- let isConstant = false;
584
- const coalesceProvider = async () => {
585
- if (!pending) {
586
- pending = provider();
587
546
  }
588
- try {
589
- resolved = await pending;
590
- hasResult = true;
591
- isConstant = false;
592
- } finally {
593
- pending = void 0;
547
+ const sc = deref(ref);
548
+ if (sc instanceof _NormalizedSchema) {
549
+ return sc;
594
550
  }
595
- return resolved;
596
- };
597
- if (isExpired === void 0) {
598
- return async (options) => {
599
- if (!hasResult || options?.forceRefresh) {
600
- resolved = await coalesceProvider();
551
+ if (isMemberSchema(sc)) {
552
+ const [ns2, traits] = sc;
553
+ if (ns2 instanceof _NormalizedSchema) {
554
+ Object.assign(ns2.getMergedTraits(), translateTraits(traits));
555
+ return ns2;
601
556
  }
602
- return resolved;
603
- };
604
- }
605
- return async (options) => {
606
- if (!hasResult || options?.forceRefresh) {
607
- resolved = await coalesceProvider();
557
+ throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
608
558
  }
609
- if (isConstant) {
610
- return resolved;
559
+ const ns = new _NormalizedSchema(sc);
560
+ if (keyAble) {
561
+ return ref[anno.ns] = ns;
611
562
  }
612
- if (requiresRefresh && !requiresRefresh(resolved)) {
613
- isConstant = true;
614
- return resolved;
563
+ if (typeof sc === "string") {
564
+ return simpleSchemaCacheS[sc] = ns;
615
565
  }
616
- if (isExpired(resolved)) {
617
- await coalesceProvider();
618
- return resolved;
566
+ if (typeof sc === "number") {
567
+ return simpleSchemaCacheN[sc] = ns;
619
568
  }
620
- return resolved;
621
- };
622
- };
623
-
624
- // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
625
- function getSelectorName(functionString) {
626
- try {
627
- const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
628
- constants.delete("CONFIG");
629
- constants.delete("CONFIG_PREFIX_SEPARATOR");
630
- constants.delete("ENV");
631
- return [...constants].join(", ");
632
- } catch (e) {
633
- return functionString;
569
+ return ns;
634
570
  }
635
- }
636
-
637
- // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
638
- var fromEnv = (envVarSelector, options) => async () => {
639
- try {
640
- const config = envVarSelector(process.env, options);
641
- if (config === void 0) {
642
- throw new Error();
571
+ getSchema() {
572
+ const sc = this.schema;
573
+ if (Array.isArray(sc) && sc[0] === 0) {
574
+ return sc[4];
643
575
  }
644
- return config;
645
- } catch (e) {
646
- throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
576
+ return sc;
647
577
  }
648
- };
649
-
650
- // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
651
- var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
652
- const profile = getProfileName(init);
653
- const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
654
- const profileFromCredentials = credentialsFile[profile] || {};
655
- const profileFromConfig = configFile[profile] || {};
656
- const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
657
- try {
658
- const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
659
- const configValue = configSelector(mergedProfile, cfgFile);
660
- if (configValue === void 0) {
661
- throw new Error();
662
- }
663
- return configValue;
664
- } catch (e) {
665
- throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
666
- }
667
- };
668
-
669
- // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
670
- var fromValue = (staticValue) => () => Promise.resolve(staticValue);
671
-
672
- // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
673
- var isFunction = (func) => typeof func === "function";
674
- var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue);
675
-
676
- // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
677
- var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
678
- const { signingName, logger } = configuration;
679
- const envOptions = { signingName, logger };
680
- return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
681
- };
682
-
683
- // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
684
- var validRegions = /* @__PURE__ */ new Set();
685
- var checkRegion = (region, check = isValidHostLabel) => {
686
- if (!validRegions.has(region) && !check(region)) {
687
- if (region === "*") {
688
- console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
689
- } else {
690
- throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`);
691
- }
692
- } else {
693
- validRegions.add(region);
694
- }
695
- };
696
-
697
- // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
698
- var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
699
-
700
- // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
701
- var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
702
-
703
- // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
704
- var resolveRegionConfig = (input) => {
705
- const { region, useFipsEndpoint } = input;
706
- if (!region) {
707
- throw new Error("Region is missing");
708
- }
709
- return Object.assign(input, {
710
- region: async () => {
711
- const providedRegion = typeof region === "function" ? await region() : region;
712
- const realRegion = getRealRegion(providedRegion);
713
- checkRegion(realRegion);
714
- return realRegion;
715
- },
716
- useFipsEndpoint: async () => {
717
- const providedRegion = typeof region === "string" ? region : await region();
718
- if (isFipsRegion(providedRegion)) {
719
- return true;
720
- }
721
- return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
722
- }
723
- });
724
- };
725
-
726
- // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js
727
- var TokenProviderError = class _TokenProviderError extends ProviderError {
728
- name = "TokenProviderError";
729
- constructor(message, options = true) {
730
- super(message, options);
731
- Object.setPrototypeOf(this, _TokenProviderError.prototype);
732
- }
733
- };
734
-
735
- // ../../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
736
- var booleanSelector = (obj, key, type) => {
737
- if (!(key in obj))
738
- return void 0;
739
- if (obj[key] === "true")
740
- return true;
741
- if (obj[key] === "false")
742
- return false;
743
- throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
744
- };
745
-
746
- // ../../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
747
- var SelectorType;
748
- (function(SelectorType2) {
749
- SelectorType2["ENV"] = "env";
750
- SelectorType2["CONFIG"] = "shared config entry";
751
- })(SelectorType || (SelectorType = {}));
752
-
753
- // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
754
- var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
755
- var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
756
- var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
757
- environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
758
- configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
759
- default: false
760
- };
761
-
762
- // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
763
- var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
764
- var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
765
- var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
766
- environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
767
- configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
768
- default: false
769
- };
770
-
771
- // ../../node_modules/@smithy/core/dist-es/submodules/schema/deref.js
772
- var deref = (schemaRef) => {
773
- if (typeof schemaRef === "function") {
774
- return schemaRef();
775
- }
776
- return schemaRef;
777
- };
778
-
779
- // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
780
- var traitsCache = [];
781
- function translateTraits(indicator) {
782
- if (typeof indicator === "object") {
783
- return indicator;
784
- }
785
- indicator = indicator | 0;
786
- if (traitsCache[indicator]) {
787
- return traitsCache[indicator];
788
- }
789
- const traits = {};
790
- let i = 0;
791
- for (const trait of [
792
- "httpLabel",
793
- "idempotent",
794
- "idempotencyToken",
795
- "sensitive",
796
- "httpPayload",
797
- "httpResponseCode",
798
- "httpQueryParams"
799
- ]) {
800
- if ((indicator >> i++ & 1) === 1) {
801
- traits[trait] = 1;
802
- }
803
- }
804
- return traitsCache[indicator] = traits;
805
- }
806
-
807
- // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
808
- var anno = {
809
- it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it"),
810
- ns: /* @__PURE__ */ Symbol.for("@smithy/ns")
811
- };
812
- var simpleSchemaCacheN = [];
813
- var simpleSchemaCacheS = {};
814
- var NormalizedSchema = class _NormalizedSchema {
815
- ref;
816
- memberName;
817
- static symbol = /* @__PURE__ */ Symbol.for("@smithy/nor");
818
- symbol = _NormalizedSchema.symbol;
819
- name;
820
- schema;
821
- _isMemberSchema;
822
- traits;
823
- memberTraits;
824
- normalizedTraits;
825
- constructor(ref, memberName) {
826
- this.ref = ref;
827
- this.memberName = memberName;
828
- const traitStack = [];
829
- let _ref = ref;
830
- let schema = ref;
831
- this._isMemberSchema = false;
832
- while (isMemberSchema(_ref)) {
833
- traitStack.push(_ref[1]);
834
- _ref = _ref[0];
835
- schema = deref(_ref);
836
- this._isMemberSchema = true;
837
- }
838
- if (traitStack.length > 0) {
839
- this.memberTraits = {};
840
- for (let i = traitStack.length - 1; i >= 0; --i) {
841
- const traitSet = traitStack[i];
842
- Object.assign(this.memberTraits, translateTraits(traitSet));
843
- }
844
- } else {
845
- this.memberTraits = 0;
846
- }
847
- if (schema instanceof _NormalizedSchema) {
848
- const computedMemberTraits = this.memberTraits;
849
- Object.assign(this, schema);
850
- this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
851
- this.normalizedTraits = void 0;
852
- this.memberName = memberName ?? schema.memberName;
853
- return;
854
- }
855
- this.schema = deref(schema);
856
- if (isStaticSchema(this.schema)) {
857
- this.name = `${this.schema[1]}#${this.schema[2]}`;
858
- this.traits = this.schema[3];
859
- } else {
860
- this.name = this.memberName ?? String(schema);
861
- this.traits = 0;
862
- }
863
- if (this._isMemberSchema && !memberName) {
864
- throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
865
- }
866
- }
867
- static [Symbol.hasInstance](lhs) {
868
- const isPrototype = this.prototype.isPrototypeOf(lhs);
869
- if (!isPrototype && typeof lhs === "object" && lhs !== null) {
870
- const ns = lhs;
871
- return ns.symbol === this.symbol;
872
- }
873
- return isPrototype;
874
- }
875
- static of(ref) {
876
- const keyAble = typeof ref === "function" || typeof ref === "object" && ref !== null;
877
- if (typeof ref === "number") {
878
- if (simpleSchemaCacheN[ref]) {
879
- return simpleSchemaCacheN[ref];
880
- }
881
- } else if (typeof ref === "string") {
882
- if (simpleSchemaCacheS[ref]) {
883
- return simpleSchemaCacheS[ref];
884
- }
885
- } else if (keyAble) {
886
- if (ref[anno.ns]) {
887
- return ref[anno.ns];
888
- }
889
- }
890
- const sc = deref(ref);
891
- if (sc instanceof _NormalizedSchema) {
892
- return sc;
893
- }
894
- if (isMemberSchema(sc)) {
895
- const [ns2, traits] = sc;
896
- if (ns2 instanceof _NormalizedSchema) {
897
- Object.assign(ns2.getMergedTraits(), translateTraits(traits));
898
- return ns2;
899
- }
900
- throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
901
- }
902
- const ns = new _NormalizedSchema(sc);
903
- if (keyAble) {
904
- return ref[anno.ns] = ns;
905
- }
906
- if (typeof sc === "string") {
907
- return simpleSchemaCacheS[sc] = ns;
908
- }
909
- if (typeof sc === "number") {
910
- return simpleSchemaCacheN[sc] = ns;
911
- }
912
- return ns;
913
- }
914
- getSchema() {
915
- const sc = this.schema;
916
- if (Array.isArray(sc) && sc[0] === 0) {
917
- return sc[4];
918
- }
919
- return sc;
920
- }
921
- getName(withNamespace = false) {
922
- const { name } = this;
923
- const short = !withNamespace && name && name.includes("#");
924
- return short ? name.split("#")[1] : name || void 0;
578
+ getName(withNamespace = false) {
579
+ const { name } = this;
580
+ const short = !withNamespace && name && name.includes("#");
581
+ return short ? name.split("#")[1] : name || void 0;
925
582
  }
926
583
  getMemberName() {
927
584
  return this.memberName;
@@ -1018,73 +675,541 @@ var NormalizedSchema = class _NormalizedSchema {
1018
675
  }
1019
676
  throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
1020
677
  }
1021
- getMemberSchema(memberName) {
1022
- const struct = this.getSchema();
1023
- if (this.isStructSchema() && struct[4].includes(memberName)) {
1024
- const i = struct[4].indexOf(memberName);
1025
- const memberSchema = struct[5][i];
1026
- return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
1027
- }
1028
- if (this.isDocumentSchema()) {
1029
- return member([15, 0], memberName);
1030
- }
1031
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
678
+ getMemberSchema(memberName) {
679
+ const struct = this.getSchema();
680
+ if (this.isStructSchema() && struct[4].includes(memberName)) {
681
+ const i = struct[4].indexOf(memberName);
682
+ const memberSchema = struct[5][i];
683
+ return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
684
+ }
685
+ if (this.isDocumentSchema()) {
686
+ return member([15, 0], memberName);
687
+ }
688
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
689
+ }
690
+ getMemberSchemas() {
691
+ const buffer = {};
692
+ try {
693
+ for (const [k, v] of this.structIterator()) {
694
+ buffer[k] = v;
695
+ }
696
+ } catch (ignored) {
697
+ }
698
+ return buffer;
699
+ }
700
+ getEventStreamMember() {
701
+ if (this.isStructSchema()) {
702
+ for (const [memberName, memberSchema] of this.structIterator()) {
703
+ if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
704
+ return memberName;
705
+ }
706
+ }
707
+ }
708
+ return "";
709
+ }
710
+ *structIterator() {
711
+ if (this.isUnitSchema()) {
712
+ return;
713
+ }
714
+ if (!this.isStructSchema()) {
715
+ throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
716
+ }
717
+ const struct = this.getSchema();
718
+ const z = struct[4].length;
719
+ let it = struct[anno.it];
720
+ if (it && z === it.length) {
721
+ yield* it;
722
+ return;
723
+ }
724
+ it = Array(z);
725
+ for (let i = 0; i < z; ++i) {
726
+ const k = struct[4][i];
727
+ const v = member([struct[5][i], 0], k);
728
+ yield it[i] = [k, v];
729
+ }
730
+ struct[anno.it] = it;
731
+ }
732
+ };
733
+ function member(memberSchema, memberName) {
734
+ if (memberSchema instanceof NormalizedSchema) {
735
+ return Object.assign(memberSchema, {
736
+ memberName,
737
+ _isMemberSchema: true
738
+ });
739
+ }
740
+ const internalCtorAccess = NormalizedSchema;
741
+ return new internalCtorAccess(memberSchema, memberName);
742
+ }
743
+ var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
744
+ var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
745
+
746
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js
747
+ var ProviderError = class _ProviderError extends Error {
748
+ name = "ProviderError";
749
+ tryNextLink;
750
+ constructor(message, options = true) {
751
+ let logger;
752
+ let tryNextLink = true;
753
+ if (typeof options === "boolean") {
754
+ logger = void 0;
755
+ tryNextLink = options;
756
+ } else if (options != null && typeof options === "object") {
757
+ logger = options.logger;
758
+ tryNextLink = options.tryNextLink ?? true;
759
+ }
760
+ super(message);
761
+ this.tryNextLink = tryNextLink;
762
+ Object.setPrototypeOf(this, _ProviderError.prototype);
763
+ logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
764
+ }
765
+ static from(error, options = true) {
766
+ return Object.assign(new this(error.message, options), error);
767
+ }
768
+ };
769
+
770
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js
771
+ var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
772
+ name = "CredentialsProviderError";
773
+ constructor(message, options = true) {
774
+ super(message, options);
775
+ Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
776
+ }
777
+ };
778
+
779
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js
780
+ var ENV_PROFILE = "AWS_PROFILE";
781
+ var DEFAULT_PROFILE = "default";
782
+ var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
783
+
784
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
785
+ import { join } from "path";
786
+
787
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js
788
+ import { homedir } from "os";
789
+ import { sep } from "path";
790
+ var homeDirCache = {};
791
+ var getHomeDirCacheKey = () => {
792
+ if (process && process.geteuid) {
793
+ return `${process.geteuid()}`;
794
+ }
795
+ return "DEFAULT";
796
+ };
797
+ var getHomeDir = () => {
798
+ const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
799
+ if (HOME)
800
+ return HOME;
801
+ if (USERPROFILE)
802
+ return USERPROFILE;
803
+ if (HOMEPATH)
804
+ return `${HOMEDRIVE}${HOMEPATH}`;
805
+ const homeDirCacheKey = getHomeDirCacheKey();
806
+ if (!homeDirCache[homeDirCacheKey])
807
+ homeDirCache[homeDirCacheKey] = homedir();
808
+ return homeDirCache[homeDirCacheKey];
809
+ };
810
+
811
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
812
+ var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
813
+ var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
814
+
815
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
816
+ import { join as join3 } from "path";
817
+
818
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js
819
+ var CONFIG_PREFIX_SEPARATOR = ".";
820
+
821
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
822
+ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
823
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
824
+ if (indexOfSeparator === -1) {
825
+ return false;
826
+ }
827
+ return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
828
+ }).reduce((acc, [key, value]) => {
829
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
830
+ const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
831
+ acc[updatedKey] = value;
832
+ return acc;
833
+ }, {
834
+ ...data.default && { default: data.default }
835
+ });
836
+
837
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
838
+ import { join as join2 } from "path";
839
+ var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
840
+ var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
841
+
842
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
843
+ var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
844
+ var profileNameBlockList = ["__proto__", "profile __proto__"];
845
+ var parseIni = (iniData) => {
846
+ const map = {};
847
+ let currentSection;
848
+ let currentSubSection;
849
+ for (const iniLine of iniData.split(/\r?\n/)) {
850
+ const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
851
+ const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
852
+ if (isSection) {
853
+ currentSection = void 0;
854
+ currentSubSection = void 0;
855
+ const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
856
+ const matches = prefixKeyRegex.exec(sectionName);
857
+ if (matches) {
858
+ const [, prefix, , name] = matches;
859
+ if (Object.values(IniSectionType).includes(prefix)) {
860
+ currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
861
+ }
862
+ } else {
863
+ currentSection = sectionName;
864
+ }
865
+ if (profileNameBlockList.includes(sectionName)) {
866
+ throw new Error(`Found invalid profile name "${sectionName}"`);
867
+ }
868
+ } else if (currentSection) {
869
+ const indexOfEqualsSign = trimmedLine.indexOf("=");
870
+ if (![0, -1].includes(indexOfEqualsSign)) {
871
+ const [name, value] = [
872
+ trimmedLine.substring(0, indexOfEqualsSign).trim(),
873
+ trimmedLine.substring(indexOfEqualsSign + 1).trim()
874
+ ];
875
+ if (value === "") {
876
+ currentSubSection = name;
877
+ } else {
878
+ if (currentSubSection && iniLine.trimStart() === iniLine) {
879
+ currentSubSection = void 0;
880
+ }
881
+ map[currentSection] = map[currentSection] || {};
882
+ const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
883
+ map[currentSection][key] = value;
884
+ }
885
+ }
886
+ }
887
+ }
888
+ return map;
889
+ };
890
+
891
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
892
+ import { readFile as fsReadFile } from "fs/promises";
893
+ var filePromises = {};
894
+ var fileIntercept = {};
895
+ var readFile = (path, options) => {
896
+ if (fileIntercept[path] !== void 0) {
897
+ return fileIntercept[path];
898
+ }
899
+ if (!filePromises[path] || options?.ignoreCache) {
900
+ filePromises[path] = fsReadFile(path, "utf8");
901
+ }
902
+ return filePromises[path];
903
+ };
904
+
905
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
906
+ var swallowError = () => ({});
907
+ var loadSharedConfigFiles = async (init = {}) => {
908
+ const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
909
+ const homeDir = getHomeDir();
910
+ const relativeHomeDirPrefix = "~/";
911
+ let resolvedFilepath = filepath;
912
+ if (filepath.startsWith(relativeHomeDirPrefix)) {
913
+ resolvedFilepath = join3(homeDir, filepath.slice(2));
914
+ }
915
+ let resolvedConfigFilepath = configFilepath;
916
+ if (configFilepath.startsWith(relativeHomeDirPrefix)) {
917
+ resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
918
+ }
919
+ const parsedFiles = await Promise.all([
920
+ readFile(resolvedConfigFilepath, {
921
+ ignoreCache: init.ignoreCache
922
+ }).then(parseIni).then(getConfigData).catch(swallowError),
923
+ readFile(resolvedFilepath, {
924
+ ignoreCache: init.ignoreCache
925
+ }).then(parseIni).catch(swallowError)
926
+ ]);
927
+ return {
928
+ configFile: parsedFiles[0],
929
+ credentialsFile: parsedFiles[1]
930
+ };
931
+ };
932
+
933
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
934
+ var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
935
+
936
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
937
+ var swallowError2 = () => ({});
938
+ var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
939
+
940
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
941
+ var mergeConfigFiles = (...files) => {
942
+ const merged = {};
943
+ for (const file of files) {
944
+ for (const [key, values] of Object.entries(file)) {
945
+ if (merged[key] !== void 0) {
946
+ Object.assign(merged[key], values);
947
+ } else {
948
+ merged[key] = values;
949
+ }
950
+ }
951
+ }
952
+ return merged;
953
+ };
954
+
955
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
956
+ var parseKnownFiles = async (init) => {
957
+ const parsedFiles = await loadSharedConfigFiles(init);
958
+ return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
959
+ };
960
+
961
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
962
+ import { readFile as readFile2 } from "fs/promises";
963
+
964
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
965
+ import { createHash } from "crypto";
966
+ import { join as join4 } from "path";
967
+ var getSSOTokenFilepath = (id) => {
968
+ const hasher = createHash("sha1");
969
+ const cacheName = hasher.update(id).digest("hex");
970
+ return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
971
+ };
972
+
973
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
974
+ var tokenIntercept = {};
975
+ var getSSOTokenFromFile = async (id) => {
976
+ if (tokenIntercept[id]) {
977
+ return tokenIntercept[id];
978
+ }
979
+ const ssoTokenFilepath = getSSOTokenFilepath(id);
980
+ const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
981
+ return JSON.parse(ssoTokenText);
982
+ };
983
+
984
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js
985
+ var externalDataInterceptor = {
986
+ getFileRecord() {
987
+ return fileIntercept;
988
+ },
989
+ interceptFile(path, contents) {
990
+ fileIntercept[path] = Promise.resolve(contents);
991
+ },
992
+ getTokenRecord() {
993
+ return tokenIntercept;
994
+ },
995
+ interceptToken(id, contents) {
996
+ tokenIntercept[id] = contents;
997
+ }
998
+ };
999
+
1000
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
1001
+ var chain = (...providers) => async () => {
1002
+ if (providers.length === 0) {
1003
+ throw new ProviderError("No providers in chain");
1032
1004
  }
1033
- getMemberSchemas() {
1034
- const buffer = {};
1005
+ let lastProviderError;
1006
+ for (const provider of providers) {
1035
1007
  try {
1036
- for (const [k, v] of this.structIterator()) {
1037
- buffer[k] = v;
1008
+ const credentials = await provider();
1009
+ return credentials;
1010
+ } catch (err) {
1011
+ lastProviderError = err;
1012
+ if (err?.tryNextLink) {
1013
+ continue;
1038
1014
  }
1039
- } catch (ignored) {
1015
+ throw err;
1040
1016
  }
1041
- return buffer;
1042
1017
  }
1043
- getEventStreamMember() {
1044
- if (this.isStructSchema()) {
1045
- for (const [memberName, memberSchema] of this.structIterator()) {
1046
- if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
1047
- return memberName;
1048
- }
1049
- }
1018
+ throw lastProviderError;
1019
+ };
1020
+
1021
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
1022
+ var memoize = (provider, isExpired, requiresRefresh) => {
1023
+ let resolved;
1024
+ let pending;
1025
+ let hasResult;
1026
+ let isConstant = false;
1027
+ const coalesceProvider = async () => {
1028
+ if (!pending) {
1029
+ pending = provider();
1050
1030
  }
1051
- return "";
1031
+ try {
1032
+ resolved = await pending;
1033
+ hasResult = true;
1034
+ isConstant = false;
1035
+ } finally {
1036
+ pending = void 0;
1037
+ }
1038
+ return resolved;
1039
+ };
1040
+ if (isExpired === void 0) {
1041
+ return async (options) => {
1042
+ if (!hasResult || options?.forceRefresh) {
1043
+ resolved = await coalesceProvider();
1044
+ }
1045
+ return resolved;
1046
+ };
1052
1047
  }
1053
- *structIterator() {
1054
- if (this.isUnitSchema()) {
1055
- return;
1048
+ return async (options) => {
1049
+ if (!hasResult || options?.forceRefresh) {
1050
+ resolved = await coalesceProvider();
1056
1051
  }
1057
- if (!this.isStructSchema()) {
1058
- throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
1052
+ if (isConstant) {
1053
+ return resolved;
1059
1054
  }
1060
- const struct = this.getSchema();
1061
- const z = struct[4].length;
1062
- let it = struct[anno.it];
1063
- if (it && z === it.length) {
1064
- yield* it;
1065
- return;
1055
+ if (requiresRefresh && !requiresRefresh(resolved)) {
1056
+ isConstant = true;
1057
+ return resolved;
1066
1058
  }
1067
- it = Array(z);
1068
- for (let i = 0; i < z; ++i) {
1069
- const k = struct[4][i];
1070
- const v = member([struct[5][i], 0], k);
1071
- yield it[i] = [k, v];
1059
+ if (isExpired(resolved)) {
1060
+ await coalesceProvider();
1061
+ return resolved;
1072
1062
  }
1073
- struct[anno.it] = it;
1074
- }
1063
+ return resolved;
1064
+ };
1075
1065
  };
1076
- function member(memberSchema, memberName) {
1077
- if (memberSchema instanceof NormalizedSchema) {
1078
- return Object.assign(memberSchema, {
1079
- memberName,
1080
- _isMemberSchema: true
1081
- });
1066
+
1067
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
1068
+ function getSelectorName(functionString) {
1069
+ try {
1070
+ const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
1071
+ constants.delete("CONFIG");
1072
+ constants.delete("CONFIG_PREFIX_SEPARATOR");
1073
+ constants.delete("ENV");
1074
+ return [...constants].join(", ");
1075
+ } catch (e) {
1076
+ return functionString;
1082
1077
  }
1083
- const internalCtorAccess = NormalizedSchema;
1084
- return new internalCtorAccess(memberSchema, memberName);
1085
1078
  }
1086
- var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
1087
- var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
1079
+
1080
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
1081
+ var fromEnv = (envVarSelector, options) => async () => {
1082
+ try {
1083
+ const config = envVarSelector(process.env, options);
1084
+ if (config === void 0) {
1085
+ throw new Error();
1086
+ }
1087
+ return config;
1088
+ } catch (e) {
1089
+ throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
1090
+ }
1091
+ };
1092
+
1093
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
1094
+ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
1095
+ const profile = getProfileName(init);
1096
+ const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
1097
+ const profileFromCredentials = credentialsFile[profile] || {};
1098
+ const profileFromConfig = configFile[profile] || {};
1099
+ const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
1100
+ try {
1101
+ const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
1102
+ const configValue = configSelector(mergedProfile, cfgFile);
1103
+ if (configValue === void 0) {
1104
+ throw new Error();
1105
+ }
1106
+ return configValue;
1107
+ } catch (e) {
1108
+ throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
1109
+ }
1110
+ };
1111
+
1112
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
1113
+ var fromValue = (staticValue) => () => Promise.resolve(staticValue);
1114
+
1115
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
1116
+ var isFunction = (func) => typeof func === "function";
1117
+ var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue);
1118
+
1119
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
1120
+ var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
1121
+ const { signingName, logger } = configuration;
1122
+ const envOptions = { signingName, logger };
1123
+ return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
1124
+ };
1125
+
1126
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
1127
+ var validRegions = /* @__PURE__ */ new Set();
1128
+ var checkRegion = (region, check = isValidHostLabel) => {
1129
+ if (!validRegions.has(region) && !check(region)) {
1130
+ if (region === "*") {
1131
+ console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
1132
+ } else {
1133
+ throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`);
1134
+ }
1135
+ } else {
1136
+ validRegions.add(region);
1137
+ }
1138
+ };
1139
+
1140
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
1141
+ var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
1142
+
1143
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
1144
+ var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
1145
+
1146
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
1147
+ var resolveRegionConfig = (input) => {
1148
+ const { region, useFipsEndpoint } = input;
1149
+ if (!region) {
1150
+ throw new Error("Region is missing");
1151
+ }
1152
+ return Object.assign(input, {
1153
+ region: async () => {
1154
+ const providedRegion = typeof region === "function" ? await region() : region;
1155
+ const realRegion = getRealRegion(providedRegion);
1156
+ checkRegion(realRegion);
1157
+ return realRegion;
1158
+ },
1159
+ useFipsEndpoint: async () => {
1160
+ const providedRegion = typeof region === "string" ? region : await region();
1161
+ if (isFipsRegion(providedRegion)) {
1162
+ return true;
1163
+ }
1164
+ return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
1165
+ }
1166
+ });
1167
+ };
1168
+
1169
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js
1170
+ var TokenProviderError = class _TokenProviderError extends ProviderError {
1171
+ name = "TokenProviderError";
1172
+ constructor(message, options = true) {
1173
+ super(message, options);
1174
+ Object.setPrototypeOf(this, _TokenProviderError.prototype);
1175
+ }
1176
+ };
1177
+
1178
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
1179
+ var booleanSelector = (obj, key, type) => {
1180
+ if (!(key in obj))
1181
+ return void 0;
1182
+ if (obj[key] === "true")
1183
+ return true;
1184
+ if (obj[key] === "false")
1185
+ return false;
1186
+ throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
1187
+ };
1188
+
1189
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
1190
+ var SelectorType;
1191
+ (function(SelectorType2) {
1192
+ SelectorType2["ENV"] = "env";
1193
+ SelectorType2["CONFIG"] = "shared config entry";
1194
+ })(SelectorType || (SelectorType = {}));
1195
+
1196
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
1197
+ var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
1198
+ var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
1199
+ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
1200
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
1201
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
1202
+ default: false
1203
+ };
1204
+
1205
+ // ../../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
1206
+ var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
1207
+ var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
1208
+ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
1209
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
1210
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
1211
+ default: false
1212
+ };
1088
1213
 
1089
1214
  // ../../node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js
1090
1215
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
@@ -2106,6 +2231,8 @@ function buildQueryString(query) {
2106
2231
  }
2107
2232
 
2108
2233
  export {
2234
+ EndpointURLScheme,
2235
+ AlgorithmId,
2109
2236
  SMITHY_CONTEXT_KEY,
2110
2237
  getSmithyContext,
2111
2238
  HttpRequest,
@@ -2115,14 +2242,13 @@ export {
2115
2242
  parseUrl,
2116
2243
  toEndpointV1,
2117
2244
  deref,
2245
+ getSchemaSerdePlugin,
2118
2246
  NormalizedSchema,
2119
2247
  TypeRegistry,
2120
2248
  ProviderError,
2121
2249
  CredentialsProviderError,
2122
2250
  TokenProviderError,
2123
2251
  chain,
2124
- booleanSelector,
2125
- SelectorType,
2126
2252
  ENV_PROFILE,
2127
2253
  getProfileName,
2128
2254
  getSSOTokenFilepath,
@@ -2153,4 +2279,4 @@ export {
2153
2279
  escapeUri,
2154
2280
  buildQueryString
2155
2281
  };
2156
- //# sourceMappingURL=chunk-PFPGJZE5.js.map
2282
+ //# sourceMappingURL=chunk-7W3WYDYY.js.map