@etainabl/nodejs-sdk 1.3.114 → 1.3.115

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 (52) hide show
  1. package/dist/esm/{chunk-OWL7NKW5.js → chunk-64PZMULY.js} +2 -2
  2. package/dist/esm/{chunk-XXAWQ5GA.js → chunk-DDCT4ZYV.js} +102 -150
  3. package/dist/esm/chunk-DDCT4ZYV.js.map +1 -0
  4. package/dist/esm/chunk-EAEPE6LV.js +1414 -0
  5. package/dist/esm/chunk-EAEPE6LV.js.map +1 -0
  6. package/dist/esm/{chunk-UFTVLHTW.js → chunk-ITNQSW66.js} +46 -46
  7. package/dist/esm/chunk-ITNQSW66.js.map +1 -0
  8. package/dist/esm/{chunk-R63LRFTI.js → chunk-JVMEEBKP.js} +1 -27
  9. package/dist/esm/{chunk-R63LRFTI.js.map → chunk-JVMEEBKP.js.map} +1 -1
  10. package/dist/esm/chunk-UQAJZJ7E.js +11 -0
  11. package/dist/esm/chunk-UQAJZJ7E.js.map +1 -0
  12. package/dist/esm/{chunk-E6O4HVLA.js → chunk-V42NON4H.js} +33 -33
  13. package/dist/esm/chunk-V42NON4H.js.map +1 -0
  14. package/dist/esm/{chunk-CIKXN3GS.js → chunk-VSMDPKQT.js} +2 -2
  15. package/dist/esm/{chunk-BIVFO5LG.js → chunk-XSPB2DRU.js} +51 -158
  16. package/dist/esm/chunk-XSPB2DRU.js.map +1 -0
  17. package/dist/esm/chunk-YUPOEH3S.js +76 -0
  18. package/dist/esm/chunk-YUPOEH3S.js.map +1 -0
  19. package/dist/esm/{dist-es-FD7XXZCE.js → dist-es-43LBWNIP.js} +5 -5
  20. package/dist/esm/{dist-es-RHLCSE2G.js → dist-es-4PZVI2OP.js} +10 -10
  21. package/dist/esm/{dist-es-XEM2CDDP.js → dist-es-LEN5TBON.js} +3 -3
  22. package/dist/esm/{dist-es-QPNGCVTW.js → dist-es-MTQJIBCO.js} +3 -3
  23. package/dist/esm/{dist-es-4ZHJVMJ4.js → dist-es-SHHKSG6R.js} +3 -3
  24. package/dist/esm/{dist-es-X5IH3XCT.js → dist-es-UQHTRG6U.js} +2 -2
  25. package/dist/esm/{dist-es-MXGFLXV2.js → dist-es-W6M73SKO.js} +3 -3
  26. package/dist/esm/index.js +67 -65
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/{loadSso-3QBKTJF3.js → loadSso-TNKRSJIY.js} +46 -42
  29. package/dist/esm/loadSso-TNKRSJIY.js.map +1 -0
  30. package/dist/esm/{sso-oidc-GZ3LZ3MF.js → sso-oidc-LXV5UW7C.js} +15 -11
  31. package/dist/esm/{sso-oidc-GZ3LZ3MF.js.map → sso-oidc-LXV5UW7C.js.map} +1 -1
  32. package/dist/esm/{sts-CIQKG7FB.js → sts-7CU5WIQI.js} +12 -10
  33. package/dist/esm/{sts-CIQKG7FB.js.map → sts-7CU5WIQI.js.map} +1 -1
  34. package/dist/index.js +1427 -1876
  35. package/dist/index.js.map +1 -1
  36. package/package.json +3 -3
  37. package/dist/esm/chunk-BIVFO5LG.js.map +0 -1
  38. package/dist/esm/chunk-E6O4HVLA.js.map +0 -1
  39. package/dist/esm/chunk-ITSE4X2J.js +0 -1733
  40. package/dist/esm/chunk-ITSE4X2J.js.map +0 -1
  41. package/dist/esm/chunk-UFTVLHTW.js.map +0 -1
  42. package/dist/esm/chunk-XXAWQ5GA.js.map +0 -1
  43. package/dist/esm/loadSso-3QBKTJF3.js.map +0 -1
  44. /package/dist/esm/{chunk-OWL7NKW5.js.map → chunk-64PZMULY.js.map} +0 -0
  45. /package/dist/esm/{chunk-CIKXN3GS.js.map → chunk-VSMDPKQT.js.map} +0 -0
  46. /package/dist/esm/{dist-es-FD7XXZCE.js.map → dist-es-43LBWNIP.js.map} +0 -0
  47. /package/dist/esm/{dist-es-RHLCSE2G.js.map → dist-es-4PZVI2OP.js.map} +0 -0
  48. /package/dist/esm/{dist-es-XEM2CDDP.js.map → dist-es-LEN5TBON.js.map} +0 -0
  49. /package/dist/esm/{dist-es-QPNGCVTW.js.map → dist-es-MTQJIBCO.js.map} +0 -0
  50. /package/dist/esm/{dist-es-4ZHJVMJ4.js.map → dist-es-SHHKSG6R.js.map} +0 -0
  51. /package/dist/esm/{dist-es-X5IH3XCT.js.map → dist-es-UQHTRG6U.js.map} +0 -0
  52. /package/dist/esm/{dist-es-MXGFLXV2.js.map → dist-es-W6M73SKO.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-UZGMBQZB.js";
4
4
  import {
5
5
  CredentialsProviderError
6
- } from "./chunk-R63LRFTI.js";
6
+ } from "./chunk-JVMEEBKP.js";
7
7
 
8
8
  // node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
9
9
  var ENV_KEY = "AWS_ACCESS_KEY_ID";
@@ -44,4 +44,4 @@ export {
44
44
  ENV_ACCOUNT_ID,
45
45
  fromEnv
46
46
  };
47
- //# sourceMappingURL=chunk-OWL7NKW5.js.map
47
+ //# sourceMappingURL=chunk-64PZMULY.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadConfig,
3
3
  parseUrl
4
- } from "./chunk-UFTVLHTW.js";
4
+ } from "./chunk-ITNQSW66.js";
5
5
  import {
6
6
  HttpRequest,
7
7
  HttpResponse,
@@ -12,12 +12,11 @@ import {
12
12
  fromHex,
13
13
  fromString,
14
14
  fromUtf8,
15
- getSmithyContext,
16
15
  isArrayBuffer,
17
- normalizeProvider,
18
16
  toHex,
19
- toUint8Array
20
- } from "./chunk-BIVFO5LG.js";
17
+ toUint8Array,
18
+ v4_default
19
+ } from "./chunk-XSPB2DRU.js";
21
20
  import {
22
21
  CONFIG_PREFIX_SEPARATOR
23
22
  } from "./chunk-HAEAETXR.js";
@@ -25,12 +24,24 @@ import {
25
24
  setCredentialFeature
26
25
  } from "./chunk-UZGMBQZB.js";
27
26
  import {
28
- EndpointURLScheme
27
+ EndpointURLScheme,
28
+ SMITHY_CONTEXT_KEY
29
29
  } from "./chunk-3YGWW265.js";
30
30
  import {
31
31
  ProviderError,
32
32
  memoize
33
- } from "./chunk-R63LRFTI.js";
33
+ } from "./chunk-JVMEEBKP.js";
34
+
35
+ // node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
36
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
37
+
38
+ // node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
39
+ var normalizeProvider = (input) => {
40
+ if (typeof input === "function")
41
+ return input;
42
+ const promisified = Promise.resolve(input);
43
+ return () => promisified;
44
+ };
34
45
 
35
46
  // node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
36
47
  var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
@@ -257,97 +268,6 @@ var DefaultIdentityProviderConfig = class {
257
268
  }
258
269
  };
259
270
 
260
- // node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js
261
- var httpAuthSchemeMiddlewareOptions = {
262
- step: "serialize",
263
- tags: ["HTTP_AUTH_SCHEME"],
264
- name: "httpAuthSchemeMiddleware",
265
- override: true,
266
- relation: "before",
267
- toMiddleware: serializerMiddlewareOption.name
268
- };
269
-
270
- // node_modules/@smithy/core/dist-es/normalizeProvider.js
271
- var normalizeProvider2 = (input) => {
272
- if (typeof input === "function")
273
- return input;
274
- const promisified = Promise.resolve(input);
275
- return () => promisified;
276
- };
277
-
278
- // node_modules/@smithy/core/dist-es/setFeature.js
279
- function setFeature(context, feature, value) {
280
- if (!context.__smithy_context) {
281
- context.__smithy_context = {
282
- features: {}
283
- };
284
- } else if (!context.__smithy_context.features) {
285
- context.__smithy_context.features = {};
286
- }
287
- context.__smithy_context.features[feature] = value;
288
- }
289
-
290
- // node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
291
- var NoAuthSigner = class {
292
- async sign(httpRequest, identity, signingProperties) {
293
- return httpRequest;
294
- }
295
- };
296
-
297
- // node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
298
- var createIsIdentityExpiredFunction = (expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
299
- var EXPIRATION_MS = 3e5;
300
- var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
301
- var doesIdentityRequireRefresh = (identity) => identity.expiration !== void 0;
302
- var memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
303
- if (provider === void 0) {
304
- return void 0;
305
- }
306
- const normalizedProvider = typeof provider !== "function" ? async () => Promise.resolve(provider) : provider;
307
- let resolved;
308
- let pending;
309
- let hasResult;
310
- let isConstant = false;
311
- const coalesceProvider = async (options) => {
312
- if (!pending) {
313
- pending = normalizedProvider(options);
314
- }
315
- try {
316
- resolved = await pending;
317
- hasResult = true;
318
- isConstant = false;
319
- } finally {
320
- pending = void 0;
321
- }
322
- return resolved;
323
- };
324
- if (isExpired === void 0) {
325
- return async (options) => {
326
- if (!hasResult || options?.forceRefresh) {
327
- resolved = await coalesceProvider(options);
328
- }
329
- return resolved;
330
- };
331
- }
332
- return async (options) => {
333
- if (!hasResult || options?.forceRefresh) {
334
- resolved = await coalesceProvider(options);
335
- }
336
- if (isConstant) {
337
- return resolved;
338
- }
339
- if (!requiresRefresh(resolved)) {
340
- isConstant = true;
341
- return resolved;
342
- }
343
- if (isExpired(resolved)) {
344
- await coalesceProvider(options);
345
- return resolved;
346
- }
347
- return resolved;
348
- };
349
- };
350
-
351
271
  // node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
352
272
  function resolveHostHeaderConfig(input) {
353
273
  return input;
@@ -461,6 +381,80 @@ var getRecursionDetectionPlugin = (options) => ({
461
381
  }
462
382
  });
463
383
 
384
+ // node_modules/@smithy/core/dist-es/normalizeProvider.js
385
+ var normalizeProvider2 = (input) => {
386
+ if (typeof input === "function")
387
+ return input;
388
+ const promisified = Promise.resolve(input);
389
+ return () => promisified;
390
+ };
391
+
392
+ // node_modules/@smithy/core/dist-es/setFeature.js
393
+ function setFeature(context, feature, value) {
394
+ if (!context.__smithy_context) {
395
+ context.__smithy_context = {
396
+ features: {}
397
+ };
398
+ } else if (!context.__smithy_context.features) {
399
+ context.__smithy_context.features = {};
400
+ }
401
+ context.__smithy_context.features[feature] = value;
402
+ }
403
+
404
+ // node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
405
+ var createIsIdentityExpiredFunction = (expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
406
+ var EXPIRATION_MS = 3e5;
407
+ var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
408
+ var doesIdentityRequireRefresh = (identity) => identity.expiration !== void 0;
409
+ var memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
410
+ if (provider === void 0) {
411
+ return void 0;
412
+ }
413
+ const normalizedProvider = typeof provider !== "function" ? async () => Promise.resolve(provider) : provider;
414
+ let resolved;
415
+ let pending;
416
+ let hasResult;
417
+ let isConstant = false;
418
+ const coalesceProvider = async (options) => {
419
+ if (!pending) {
420
+ pending = normalizedProvider(options);
421
+ }
422
+ try {
423
+ resolved = await pending;
424
+ hasResult = true;
425
+ isConstant = false;
426
+ } finally {
427
+ pending = void 0;
428
+ }
429
+ return resolved;
430
+ };
431
+ if (isExpired === void 0) {
432
+ return async (options) => {
433
+ if (!hasResult || options?.forceRefresh) {
434
+ resolved = await coalesceProvider(options);
435
+ }
436
+ return resolved;
437
+ };
438
+ }
439
+ return async (options) => {
440
+ if (!hasResult || options?.forceRefresh) {
441
+ resolved = await coalesceProvider(options);
442
+ }
443
+ if (isConstant) {
444
+ return resolved;
445
+ }
446
+ if (!requiresRefresh(resolved)) {
447
+ isConstant = true;
448
+ return resolved;
449
+ }
450
+ if (isExpired(resolved)) {
451
+ await coalesceProvider(options);
452
+ return resolved;
453
+ }
454
+ return resolved;
455
+ };
456
+ };
457
+
464
458
  // node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
465
459
  var DEFAULT_UA_APP_ID = void 0;
466
460
  function isValidUserAgentAppId(appId) {
@@ -2429,6 +2423,9 @@ var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) =
2429
2423
  }
2430
2424
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
2431
2425
  return async () => {
2426
+ if (config.isCustomEndpoint === false) {
2427
+ return void 0;
2428
+ }
2432
2429
  const endpoint = await configProvider();
2433
2430
  if (endpoint && typeof endpoint === "object") {
2434
2431
  if ("url" in endpoint) {
@@ -2493,7 +2490,7 @@ var toEndpointV1 = (endpoint) => {
2493
2490
 
2494
2491
  // node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
2495
2492
  var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
2496
- if (!clientConfig.endpoint) {
2493
+ if (!clientConfig.isCustomEndpoint) {
2497
2494
  let endpointFromConfig;
2498
2495
  if (clientConfig.serviceConfiguredEndpoint) {
2499
2496
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -2502,6 +2499,7 @@ var getEndpointFromInstructions = async (commandInput, instructionsSupplier, cli
2502
2499
  }
2503
2500
  if (endpointFromConfig) {
2504
2501
  clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
2502
+ clientConfig.isCustomEndpoint = true;
2505
2503
  }
2506
2504
  }
2507
2505
  const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
@@ -2545,7 +2543,7 @@ var resolveParams = async (commandInput, instructionsSupplier, clientConfig) =>
2545
2543
  // node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
2546
2544
  var endpointMiddleware = ({ config, instructions }) => {
2547
2545
  return (next, context) => async (args) => {
2548
- if (config.endpoint) {
2546
+ if (config.isCustomEndpoint) {
2549
2547
  setFeature(context, "ENDPOINT_OVERRIDE", "N");
2550
2548
  }
2551
2549
  const endpoint = await getEndpointFromInstructions(args.input, {
@@ -2948,53 +2946,6 @@ var NODE_RETRY_MODE_CONFIG_OPTIONS = {
2948
2946
  default: DEFAULT_RETRY_MODE
2949
2947
  };
2950
2948
 
2951
- // node_modules/uuid/dist/esm-node/rng.js
2952
- import crypto from "crypto";
2953
- var rnds8Pool = new Uint8Array(256);
2954
- var poolPtr = rnds8Pool.length;
2955
- function rng() {
2956
- if (poolPtr > rnds8Pool.length - 16) {
2957
- crypto.randomFillSync(rnds8Pool);
2958
- poolPtr = 0;
2959
- }
2960
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
2961
- }
2962
-
2963
- // node_modules/uuid/dist/esm-node/stringify.js
2964
- var byteToHex = [];
2965
- for (let i = 0; i < 256; ++i) {
2966
- byteToHex.push((i + 256).toString(16).slice(1));
2967
- }
2968
- function unsafeStringify(arr, offset = 0) {
2969
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
2970
- }
2971
-
2972
- // node_modules/uuid/dist/esm-node/native.js
2973
- import crypto2 from "crypto";
2974
- var native_default = {
2975
- randomUUID: crypto2.randomUUID
2976
- };
2977
-
2978
- // node_modules/uuid/dist/esm-node/v4.js
2979
- function v4(options, buf, offset) {
2980
- if (native_default.randomUUID && !buf && !options) {
2981
- return native_default.randomUUID();
2982
- }
2983
- options = options || {};
2984
- const rnds = options.random || (options.rng || rng)();
2985
- rnds[6] = rnds[6] & 15 | 64;
2986
- rnds[8] = rnds[8] & 63 | 128;
2987
- if (buf) {
2988
- offset = offset || 0;
2989
- for (let i = 0; i < 16; ++i) {
2990
- buf[offset + i] = rnds[i];
2991
- }
2992
- return buf;
2993
- }
2994
- return unsafeStringify(rnds);
2995
- }
2996
- var v4_default = v4;
2997
-
2998
2949
  // node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
2999
2950
  import { Readable } from "stream";
3000
2951
  var isStreamingPayload = (request) => request?.body instanceof Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream;
@@ -3279,7 +3230,7 @@ var inferPhysicalRegion = async () => {
3279
3230
  }
3280
3231
  if (!process.env[ENV_IMDS_DISABLED]) {
3281
3232
  try {
3282
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-MXGFLXV2.js");
3233
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-W6M73SKO.js");
3283
3234
  const endpoint = await getInstanceMetadataEndpoint();
3284
3235
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
3285
3236
  } catch (e) {
@@ -3310,12 +3261,13 @@ export {
3310
3261
  AwsSdkSigV4Signer,
3311
3262
  AwsSdkSigV4ASigner,
3312
3263
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
3264
+ getSmithyContext,
3265
+ normalizeProvider,
3313
3266
  getHttpAuthSchemeEndpointRuleSetPlugin,
3314
3267
  getSerdePlugin,
3315
3268
  httpSigningMiddlewareOptions,
3316
3269
  getHttpSigningPlugin,
3317
3270
  DefaultIdentityProviderConfig,
3318
- NoAuthSigner,
3319
3271
  resolveAwsSdkSigV4AConfig,
3320
3272
  NODE_SIGV4A_CONFIG_OPTIONS,
3321
3273
  SignatureV4,
@@ -3356,4 +3308,4 @@ export {
3356
3308
  getAwsRegionExtensionConfiguration,
3357
3309
  resolveAwsRegionExtensionConfiguration
3358
3310
  };
3359
- //# sourceMappingURL=chunk-XXAWQ5GA.js.map
3311
+ //# sourceMappingURL=chunk-DDCT4ZYV.js.map