replicas-engine 0.1.144 → 0.1.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/src/{chunk-XCFRYWEV.js → chunk-2Y7PD56W.js} +12 -12
  2. package/dist/src/{chunk-JFXVYYQY.js → chunk-5VUQ55WW.js} +19 -19
  3. package/dist/src/{chunk-NPXMDMPW.js → chunk-AAVVX4U5.js} +6 -6
  4. package/dist/src/{chunk-J3WZZOOL.js → chunk-BUG7ZAQW.js} +72 -355
  5. package/dist/src/{chunk-TY2FR253.js → chunk-SGITM26Q.js} +309 -22
  6. package/dist/src/{chunk-YDW6RZI2.js → chunk-ST5JVROM.js} +2 -2
  7. package/dist/src/{chunk-WCAERHFE.js → chunk-SWX24AGM.js} +1 -1
  8. package/dist/src/{chunk-7RS3TOFT.js → chunk-TU2SAX7Z.js} +1072 -1228
  9. package/dist/src/{chunk-MCYTXPBZ.js → chunk-WPAL27HA.js} +2 -2
  10. package/dist/src/{chunk-N2BGF5AZ.js → chunk-ZNARSMJG.js} +1 -1
  11. package/dist/src/{dist-es-UV765YRF.js → dist-es-BUG4C6LP.js} +18 -18
  12. package/dist/src/{dist-es-3LYC7DO3.js → dist-es-F6RG3S4O.js} +12 -14
  13. package/dist/src/{dist-es-KHBICPEM.js → dist-es-GGHPJZ3K.js} +19 -19
  14. package/dist/src/{dist-es-7DTYZ3KD.js → dist-es-GZBSW2H3.js} +27 -27
  15. package/dist/src/{dist-es-YWO2URNL.js → dist-es-JIV2SPEM.js} +7 -7
  16. package/dist/src/{dist-es-BNJQGHZR.js → dist-es-Q3YZVSCP.js} +7 -7
  17. package/dist/src/{dist-es-EVINFDC2.js → dist-es-YKS4LXBO.js} +3 -3
  18. package/dist/src/index.js +480 -510
  19. package/dist/src/{loadSso-ZRFAKENS.js → loadSso-3WFGTQV7.js} +109 -148
  20. package/dist/src/{signin-PNR24U2H.js → signin-RSKKVVIS.js} +123 -177
  21. package/dist/src/{sso-oidc-O55BGCVQ.js → sso-oidc-LBVW2ORP.js} +111 -150
  22. package/dist/src/{sts-MRC7OH6Z.js → sts-DKGAU6YE.js} +2911 -718
  23. package/package.json +1 -1
  24. package/dist/src/chunk-5V5ZNFZK.js +0 -178
  25. package/dist/src/event-streams-IFAW3KBX.js +0 -244
@@ -4,9 +4,10 @@ import {
4
4
  } from "./chunk-ZDZBYCXV.js";
5
5
  import {
6
6
  AwsRestJsonProtocol
7
- } from "./chunk-J3WZZOOL.js";
7
+ } from "./chunk-BUG7ZAQW.js";
8
8
  import {
9
9
  AwsSdkSigV4Signer,
10
+ BinaryDecisionDiagram,
10
11
  Client,
11
12
  Command,
12
13
  DEFAULT_RETRY_MODE,
@@ -29,6 +30,7 @@ import {
29
30
  calculateBodyLength,
30
31
  createDefaultUserAgentProvider,
31
32
  customEndpointFunctions,
33
+ decideEndpoint,
32
34
  emitWarningIfUnsupportedVersion,
33
35
  emitWarningIfUnsupportedVersion2,
34
36
  getAwsRegionExtensionConfiguration,
@@ -52,36 +54,35 @@ import {
52
54
  resolveAwsSdkSigV4Config,
53
55
  resolveDefaultRuntimeConfig,
54
56
  resolveDefaultsModeConfig,
55
- resolveEndpoint,
56
57
  resolveEndpointConfig,
57
58
  resolveHostHeaderConfig,
58
59
  resolveHttpHandlerRuntimeConfig,
59
60
  resolveRegionConfig,
60
61
  resolveRetryConfig,
61
62
  resolveUserAgentConfig
62
- } from "./chunk-7RS3TOFT.js";
63
+ } from "./chunk-TU2SAX7Z.js";
63
64
  import {
64
65
  loadConfig,
65
66
  parseUrl
66
- } from "./chunk-XCFRYWEV.js";
67
- import "./chunk-MCYTXPBZ.js";
68
- import "./chunk-JFXVYYQY.js";
69
- import "./chunk-NPXMDMPW.js";
67
+ } from "./chunk-2Y7PD56W.js";
68
+ import "./chunk-WPAL27HA.js";
69
+ import "./chunk-AAVVX4U5.js";
70
70
  import {
71
71
  NodeHttpHandler,
72
72
  fromBase64,
73
73
  streamCollector,
74
74
  toBase64
75
- } from "./chunk-TY2FR253.js";
76
- import "./chunk-WCAERHFE.js";
75
+ } from "./chunk-SGITM26Q.js";
76
+ import "./chunk-SWX24AGM.js";
77
77
  import {
78
78
  fromUtf8,
79
79
  toUtf8
80
80
  } from "./chunk-ERL3EC7G.js";
81
- import "./chunk-N2BGF5AZ.js";
82
- import "./chunk-YDW6RZI2.js";
81
+ import "./chunk-5VUQ55WW.js";
82
+ import "./chunk-ZNARSMJG.js";
83
+ import "./chunk-ST5JVROM.js";
83
84
 
84
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
85
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
85
86
  var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
86
87
  return {
87
88
  operation: getSmithyContext(context).operation,
@@ -130,7 +131,7 @@ var resolveHttpAuthSchemeConfig = (config) => {
130
131
  });
131
132
  };
132
133
 
133
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
134
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
134
135
  var resolveClientEndpointParameters = (options) => {
135
136
  return Object.assign(options, {
136
137
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -145,147 +146,107 @@ var commonParams = {
145
146
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
146
147
  };
147
148
 
148
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js
149
- var u = "required";
150
- var v = "fn";
151
- var w = "argv";
152
- var x = "ref";
153
- var a = true;
154
- var b = "isSet";
155
- var c = "booleanEquals";
156
- var d = "error";
157
- var e = "endpoint";
158
- var f = "tree";
159
- var g = "PartitionResult";
160
- var h = "getAttr";
161
- var i = { [u]: false, type: "string" };
162
- var j = { [u]: true, default: false, type: "boolean" };
163
- var k = { [x]: "Endpoint" };
164
- var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
165
- var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
166
- var n = {};
167
- var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
168
- var p = { [x]: g };
169
- var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
170
- var r = [l];
171
- var s = [m];
172
- var t = [{ [x]: "Region" }];
149
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js
150
+ var k = "ref";
151
+ var a = -1;
152
+ var b = true;
153
+ var c = "isSet";
154
+ var d = "PartitionResult";
155
+ var e = "booleanEquals";
156
+ var f = "getAttr";
157
+ var g = { [k]: "Endpoint" };
158
+ var h = { [k]: d };
159
+ var i = {};
160
+ var j = [{ [k]: "Region" }];
173
161
  var _data = {
174
- version: "1.0",
175
- parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
176
- rules: [
177
- {
178
- conditions: [{ [v]: b, [w]: [k] }],
179
- rules: [
180
- { conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
181
- { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
182
- { endpoint: { url: k, properties: n, headers: n }, type: e }
183
- ],
184
- type: f
185
- },
186
- {
187
- conditions: [{ [v]: b, [w]: t }],
188
- rules: [
189
- {
190
- conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
191
- rules: [
192
- {
193
- conditions: [l, m],
194
- rules: [
195
- {
196
- conditions: [{ [v]: c, [w]: [a, o] }, q],
197
- rules: [
198
- {
199
- endpoint: {
200
- url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
201
- properties: n,
202
- headers: n
203
- },
204
- type: e
205
- }
206
- ],
207
- type: f
208
- },
209
- { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }
210
- ],
211
- type: f
212
- },
213
- {
214
- conditions: r,
215
- rules: [
216
- {
217
- conditions: [{ [v]: c, [w]: [o, a] }],
218
- rules: [
219
- {
220
- conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
221
- endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n },
222
- type: e
223
- },
224
- {
225
- endpoint: {
226
- url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
227
- properties: n,
228
- headers: n
229
- },
230
- type: e
231
- }
232
- ],
233
- type: f
234
- },
235
- { error: "FIPS is enabled but this partition does not support FIPS", type: d }
236
- ],
237
- type: f
238
- },
239
- {
240
- conditions: s,
241
- rules: [
242
- {
243
- conditions: [q],
244
- rules: [
245
- {
246
- endpoint: {
247
- url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
248
- properties: n,
249
- headers: n
250
- },
251
- type: e
252
- }
253
- ],
254
- type: f
255
- },
256
- { error: "DualStack is enabled but this partition does not support DualStack", type: d }
257
- ],
258
- type: f
259
- },
260
- {
261
- endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
262
- type: e
263
- }
264
- ],
265
- type: f
266
- }
267
- ],
268
- type: f
269
- },
270
- { error: "Invalid Configuration: Missing Region", type: d }
162
+ conditions: [
163
+ [c, [g]],
164
+ [c, j],
165
+ ["aws.partition", j, d],
166
+ [e, [{ [k]: "UseFIPS" }, b]],
167
+ [e, [{ [k]: "UseDualStack" }, b]],
168
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
169
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
170
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
171
+ ],
172
+ results: [
173
+ [a],
174
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
175
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
176
+ [g, i],
177
+ ["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
178
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
179
+ ["https://oidc.{Region}.amazonaws.com", i],
180
+ ["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
181
+ [a, "FIPS is enabled but this partition does not support FIPS"],
182
+ ["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
183
+ [a, "DualStack is enabled but this partition does not support DualStack"],
184
+ ["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
185
+ [a, "Invalid Configuration: Missing Region"]
271
186
  ]
272
187
  };
273
- var ruleSet = _data;
188
+ var root = 2;
189
+ var r = 1e8;
190
+ var nodes = new Int32Array([
191
+ -1,
192
+ 1,
193
+ -1,
194
+ 0,
195
+ 13,
196
+ 3,
197
+ 1,
198
+ 4,
199
+ r + 12,
200
+ 2,
201
+ 5,
202
+ r + 12,
203
+ 3,
204
+ 8,
205
+ 6,
206
+ 4,
207
+ 7,
208
+ r + 11,
209
+ 5,
210
+ r + 9,
211
+ r + 10,
212
+ 4,
213
+ 11,
214
+ 9,
215
+ 6,
216
+ 10,
217
+ r + 8,
218
+ 7,
219
+ r + 6,
220
+ r + 7,
221
+ 5,
222
+ 12,
223
+ r + 5,
224
+ 6,
225
+ r + 4,
226
+ r + 5,
227
+ 3,
228
+ r + 1,
229
+ 14,
230
+ 4,
231
+ r + 2,
232
+ r + 3
233
+ ]);
234
+ var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
274
235
 
275
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
236
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
276
237
  var cache = new EndpointCache({
277
238
  size: 50,
278
239
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
279
240
  });
280
241
  var defaultEndpointResolver = (endpointParams, context = {}) => {
281
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
242
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
282
243
  endpointParams,
283
244
  logger: context.logger
284
245
  }));
285
246
  };
286
247
  customEndpointFunctions.aws = awsEndpointFunctions;
287
248
 
288
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
249
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
289
250
  var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
290
251
  constructor(options) {
291
252
  super(options);
@@ -293,7 +254,7 @@ var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceExce
293
254
  }
294
255
  };
295
256
 
296
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js
257
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js
297
258
  var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
298
259
  name = "AccessDeniedException";
299
260
  $fault = "client";
@@ -475,7 +436,7 @@ var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends
475
436
  }
476
437
  };
477
438
 
478
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
439
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
479
440
  var _ADE = "AccessDeniedException";
480
441
  var _APE = "AuthorizationPendingException";
481
442
  var _AT = "AccessToken";
@@ -611,7 +572,7 @@ var CreateToken$ = [
611
572
  () => CreateTokenResponse$
612
573
  ];
613
574
 
614
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
575
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
615
576
  var getRuntimeConfig = (config) => {
616
577
  return {
617
578
  apiVersion: "2019-06-10",
@@ -648,7 +609,7 @@ var getRuntimeConfig = (config) => {
648
609
  };
649
610
  };
650
611
 
651
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
612
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
652
613
  var getRuntimeConfig2 = (config) => {
653
614
  emitWarningIfUnsupportedVersion2(process.version);
654
615
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -682,7 +643,7 @@ var getRuntimeConfig2 = (config) => {
682
643
  };
683
644
  };
684
645
 
685
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
646
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
686
647
  var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
687
648
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
688
649
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -721,14 +682,14 @@ var resolveHttpAuthRuntimeConfig = (config) => {
721
682
  };
722
683
  };
723
684
 
724
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
685
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
725
686
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
726
687
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
727
688
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
728
689
  return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
729
690
  };
730
691
 
731
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
692
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
732
693
  var SSOOIDCClient = class extends Client {
733
694
  config;
734
695
  constructor(...[configuration]) {
@@ -764,13 +725,13 @@ var SSOOIDCClient = class extends Client {
764
725
  }
765
726
  };
766
727
 
767
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
768
- var CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
728
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
729
+ var CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o) {
769
730
  return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
770
731
  }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {
771
732
  };
772
733
 
773
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
734
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
774
735
  var commands = {
775
736
  CreateTokenCommand
776
737
  };
@@ -778,7 +739,7 @@ var SSOOIDC = class extends SSOOIDCClient {
778
739
  };
779
740
  createAggregatedClient(commands, SSOOIDC);
780
741
 
781
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js
742
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js
782
743
  var AccessDeniedExceptionReason = {
783
744
  KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
784
745
  };