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
@@ -1,9 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  AwsRestJsonProtocol
4
- } from "./chunk-J3WZZOOL.js";
4
+ } from "./chunk-BUG7ZAQW.js";
5
5
  import {
6
6
  AwsSdkSigV4Signer,
7
+ BinaryDecisionDiagram,
7
8
  Client,
8
9
  Command,
9
10
  DEFAULT_RETRY_MODE,
@@ -26,6 +27,7 @@ import {
26
27
  calculateBodyLength,
27
28
  createDefaultUserAgentProvider,
28
29
  customEndpointFunctions,
30
+ decideEndpoint,
29
31
  emitWarningIfUnsupportedVersion,
30
32
  emitWarningIfUnsupportedVersion2,
31
33
  getAwsRegionExtensionConfiguration,
@@ -49,36 +51,35 @@ import {
49
51
  resolveAwsSdkSigV4Config,
50
52
  resolveDefaultRuntimeConfig,
51
53
  resolveDefaultsModeConfig,
52
- resolveEndpoint,
53
54
  resolveEndpointConfig,
54
55
  resolveHostHeaderConfig,
55
56
  resolveHttpHandlerRuntimeConfig,
56
57
  resolveRegionConfig,
57
58
  resolveRetryConfig,
58
59
  resolveUserAgentConfig
59
- } from "./chunk-7RS3TOFT.js";
60
+ } from "./chunk-TU2SAX7Z.js";
60
61
  import {
61
62
  loadConfig,
62
63
  parseUrl
63
- } from "./chunk-XCFRYWEV.js";
64
- import "./chunk-MCYTXPBZ.js";
65
- import "./chunk-JFXVYYQY.js";
66
- import "./chunk-NPXMDMPW.js";
64
+ } from "./chunk-2Y7PD56W.js";
65
+ import "./chunk-WPAL27HA.js";
66
+ import "./chunk-AAVVX4U5.js";
67
67
  import {
68
68
  NodeHttpHandler,
69
69
  fromBase64,
70
70
  streamCollector,
71
71
  toBase64
72
- } from "./chunk-TY2FR253.js";
73
- import "./chunk-WCAERHFE.js";
72
+ } from "./chunk-SGITM26Q.js";
73
+ import "./chunk-SWX24AGM.js";
74
74
  import {
75
75
  fromUtf8,
76
76
  toUtf8
77
77
  } from "./chunk-ERL3EC7G.js";
78
- import "./chunk-N2BGF5AZ.js";
79
- import "./chunk-YDW6RZI2.js";
78
+ import "./chunk-5VUQ55WW.js";
79
+ import "./chunk-ZNARSMJG.js";
80
+ import "./chunk-ST5JVROM.js";
80
81
 
81
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
82
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
82
83
  var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
83
84
  return {
84
85
  operation: getSmithyContext(context).operation,
@@ -127,7 +128,7 @@ var resolveHttpAuthSchemeConfig = (config) => {
127
128
  });
128
129
  };
129
130
 
130
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
131
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
131
132
  var resolveClientEndpointParameters = (options) => {
132
133
  return Object.assign(options, {
133
134
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -142,147 +143,107 @@ var commonParams = {
142
143
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
143
144
  };
144
145
 
145
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js
146
- var u = "required";
147
- var v = "fn";
148
- var w = "argv";
149
- var x = "ref";
150
- var a = true;
151
- var b = "isSet";
152
- var c = "booleanEquals";
153
- var d = "error";
154
- var e = "endpoint";
155
- var f = "tree";
156
- var g = "PartitionResult";
157
- var h = "getAttr";
158
- var i = { [u]: false, type: "string" };
159
- var j = { [u]: true, default: false, type: "boolean" };
160
- var k = { [x]: "Endpoint" };
161
- var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
162
- var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
163
- var n = {};
164
- var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
165
- var p = { [x]: g };
166
- var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
167
- var r = [l];
168
- var s = [m];
169
- var t = [{ [x]: "Region" }];
146
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js
147
+ var k = "ref";
148
+ var a = -1;
149
+ var b = true;
150
+ var c = "isSet";
151
+ var d = "PartitionResult";
152
+ var e = "booleanEquals";
153
+ var f = "getAttr";
154
+ var g = { [k]: "Endpoint" };
155
+ var h = { [k]: d };
156
+ var i = {};
157
+ var j = [{ [k]: "Region" }];
170
158
  var _data = {
171
- version: "1.0",
172
- parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
173
- rules: [
174
- {
175
- conditions: [{ [v]: b, [w]: [k] }],
176
- rules: [
177
- { conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
178
- { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
179
- { endpoint: { url: k, properties: n, headers: n }, type: e }
180
- ],
181
- type: f
182
- },
183
- {
184
- conditions: [{ [v]: b, [w]: t }],
185
- rules: [
186
- {
187
- conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
188
- rules: [
189
- {
190
- conditions: [l, m],
191
- rules: [
192
- {
193
- conditions: [{ [v]: c, [w]: [a, o] }, q],
194
- rules: [
195
- {
196
- endpoint: {
197
- url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
198
- properties: n,
199
- headers: n
200
- },
201
- type: e
202
- }
203
- ],
204
- type: f
205
- },
206
- { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }
207
- ],
208
- type: f
209
- },
210
- {
211
- conditions: r,
212
- rules: [
213
- {
214
- conditions: [{ [v]: c, [w]: [o, a] }],
215
- rules: [
216
- {
217
- conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
218
- endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n },
219
- type: e
220
- },
221
- {
222
- endpoint: {
223
- url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",
224
- properties: n,
225
- headers: n
226
- },
227
- type: e
228
- }
229
- ],
230
- type: f
231
- },
232
- { error: "FIPS is enabled but this partition does not support FIPS", type: d }
233
- ],
234
- type: f
235
- },
236
- {
237
- conditions: s,
238
- rules: [
239
- {
240
- conditions: [q],
241
- rules: [
242
- {
243
- endpoint: {
244
- url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",
245
- properties: n,
246
- headers: n
247
- },
248
- type: e
249
- }
250
- ],
251
- type: f
252
- },
253
- { error: "DualStack is enabled but this partition does not support DualStack", type: d }
254
- ],
255
- type: f
256
- },
257
- {
258
- endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
259
- type: e
260
- }
261
- ],
262
- type: f
263
- }
264
- ],
265
- type: f
266
- },
267
- { error: "Invalid Configuration: Missing Region", type: d }
159
+ conditions: [
160
+ [c, [g]],
161
+ [c, j],
162
+ ["aws.partition", j, d],
163
+ [e, [{ [k]: "UseFIPS" }, b]],
164
+ [e, [{ [k]: "UseDualStack" }, b]],
165
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
166
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
167
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
168
+ ],
169
+ results: [
170
+ [a],
171
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
172
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
173
+ [g, i],
174
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
175
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
176
+ ["https://portal.sso.{Region}.amazonaws.com", i],
177
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
178
+ [a, "FIPS is enabled but this partition does not support FIPS"],
179
+ ["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
180
+ [a, "DualStack is enabled but this partition does not support DualStack"],
181
+ ["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
182
+ [a, "Invalid Configuration: Missing Region"]
268
183
  ]
269
184
  };
270
- var ruleSet = _data;
185
+ var root = 2;
186
+ var r = 1e8;
187
+ var nodes = new Int32Array([
188
+ -1,
189
+ 1,
190
+ -1,
191
+ 0,
192
+ 13,
193
+ 3,
194
+ 1,
195
+ 4,
196
+ r + 12,
197
+ 2,
198
+ 5,
199
+ r + 12,
200
+ 3,
201
+ 8,
202
+ 6,
203
+ 4,
204
+ 7,
205
+ r + 11,
206
+ 5,
207
+ r + 9,
208
+ r + 10,
209
+ 4,
210
+ 11,
211
+ 9,
212
+ 6,
213
+ 10,
214
+ r + 8,
215
+ 7,
216
+ r + 6,
217
+ r + 7,
218
+ 5,
219
+ 12,
220
+ r + 5,
221
+ 6,
222
+ r + 4,
223
+ r + 5,
224
+ 3,
225
+ r + 1,
226
+ 14,
227
+ 4,
228
+ r + 2,
229
+ r + 3
230
+ ]);
231
+ var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
271
232
 
272
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
233
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
273
234
  var cache = new EndpointCache({
274
235
  size: 50,
275
236
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
276
237
  });
277
238
  var defaultEndpointResolver = (endpointParams, context = {}) => {
278
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
239
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
279
240
  endpointParams,
280
241
  logger: context.logger
281
242
  }));
282
243
  };
283
244
  customEndpointFunctions.aws = awsEndpointFunctions;
284
245
 
285
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
246
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
286
247
  var SSOServiceException = class _SSOServiceException extends ServiceException {
287
248
  constructor(options) {
288
249
  super(options);
@@ -290,7 +251,7 @@ var SSOServiceException = class _SSOServiceException extends ServiceException {
290
251
  }
291
252
  };
292
253
 
293
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
254
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
294
255
  var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
295
256
  name = "InvalidRequestException";
296
257
  $fault = "client";
@@ -340,7 +301,7 @@ var UnauthorizedException = class _UnauthorizedException extends SSOServiceExcep
340
301
  }
341
302
  };
342
303
 
343
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
304
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
344
305
  var _ATT = "AccessTokenType";
345
306
  var _GRC = "GetRoleCredentials";
346
307
  var _GRCR = "GetRoleCredentialsRequest";
@@ -426,7 +387,7 @@ var GetRoleCredentials$ = [
426
387
  () => GetRoleCredentialsResponse$
427
388
  ];
428
389
 
429
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
390
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
430
391
  var getRuntimeConfig = (config) => {
431
392
  return {
432
393
  apiVersion: "2019-06-10",
@@ -463,7 +424,7 @@ var getRuntimeConfig = (config) => {
463
424
  };
464
425
  };
465
426
 
466
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
427
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
467
428
  var getRuntimeConfig2 = (config) => {
468
429
  emitWarningIfUnsupportedVersion2(process.version);
469
430
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -497,7 +458,7 @@ var getRuntimeConfig2 = (config) => {
497
458
  };
498
459
  };
499
460
 
500
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
461
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
501
462
  var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
502
463
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
503
464
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -536,14 +497,14 @@ var resolveHttpAuthRuntimeConfig = (config) => {
536
497
  };
537
498
  };
538
499
 
539
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
500
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
540
501
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
541
502
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
542
503
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
543
504
  return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
544
505
  };
545
506
 
546
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
507
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
547
508
  var SSOClient = class extends Client {
548
509
  config;
549
510
  constructor(...[configuration]) {
@@ -579,8 +540,8 @@ var SSOClient = class extends Client {
579
540
  }
580
541
  };
581
542
 
582
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
583
- var GetRoleCredentialsCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
543
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
544
+ var GetRoleCredentialsCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o) {
584
545
  return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
585
546
  }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").sc(GetRoleCredentials$).build() {
586
547
  };