replicas-engine 0.1.280 → 0.1.282

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 (34) hide show
  1. package/dist/src/bowser-UXBOYYAJ.js +2821 -0
  2. package/dist/src/chunk-3YYBZ6D5.js +576 -0
  3. package/dist/src/chunk-ATF5CAZW.js +2094 -0
  4. package/dist/src/chunk-B5KEKENG.js +436 -0
  5. package/dist/src/chunk-C6IOMGXW.js +1052 -0
  6. package/dist/src/chunk-MHJJJ2VP.js +2865 -0
  7. package/dist/src/chunk-YY2DS5UJ.js +1490 -0
  8. package/dist/src/{dist-es-GGHPJZ3K.js → dist-es-37YNNMWK.js} +47 -51
  9. package/dist/src/{dist-es-F6RG3S4O.js → dist-es-7IBRAXHQ.js} +25 -23
  10. package/dist/src/{dist-es-JIV2SPEM.js → dist-es-AYVDCHRQ.js} +9 -10
  11. package/dist/src/{dist-es-BUG4C6LP.js → dist-es-JSZE2H6Y.js} +21 -31
  12. package/dist/src/{dist-es-Q3YZVSCP.js → dist-es-M4ZCYBRD.js} +10 -11
  13. package/dist/src/{dist-es-YKS4LXBO.js → dist-es-MNGVDEEO.js} +4 -3
  14. package/dist/src/{dist-es-GZBSW2H3.js → dist-es-YA3RZ3J2.js} +27 -32
  15. package/dist/src/event-streams-7ZLUNSFX.js +1376 -0
  16. package/dist/src/index.js +53 -2
  17. package/dist/src/{loadSso-3WFGTQV7.js → loadSso-2A75N7C3.js} +84 -61
  18. package/dist/src/{signin-RSKKVVIS.js → signin-FXO7O6JB.js} +94 -82
  19. package/dist/src/{sso-oidc-LBVW2ORP.js → sso-oidc-4IFMUO6A.js} +102 -63
  20. package/dist/src/{sts-DKGAU6YE.js → sts-IAUEUXEW.js} +4964 -5055
  21. package/package.json +2 -2
  22. package/dist/src/chunk-2Y7PD56W.js +0 -164
  23. package/dist/src/chunk-5VUQ55WW.js +0 -242
  24. package/dist/src/chunk-AAVVX4U5.js +0 -175
  25. package/dist/src/chunk-BUG7ZAQW.js +0 -1033
  26. package/dist/src/chunk-ERL3EC7G.js +0 -44
  27. package/dist/src/chunk-SGITM26Q.js +0 -877
  28. package/dist/src/chunk-ST5JVROM.js +0 -39
  29. package/dist/src/chunk-SWX24AGM.js +0 -62
  30. package/dist/src/chunk-TU2SAX7Z.js +0 -5706
  31. package/dist/src/chunk-WPAL27HA.js +0 -29
  32. package/dist/src/chunk-ZDZBYCXV.js +0 -52
  33. package/dist/src/chunk-ZNARSMJG.js +0 -14
  34. package/dist/src/event-streams-XS4D2DFO.js +0 -252
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- ProviderError
4
- } from "./chunk-ST5JVROM.js";
5
-
6
- // ../node_modules/.bun/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/chain.js
7
- var chain = (...providers) => async () => {
8
- if (providers.length === 0) {
9
- throw new ProviderError("No providers in chain");
10
- }
11
- let lastProviderError;
12
- for (const provider of providers) {
13
- try {
14
- const credentials = await provider();
15
- return credentials;
16
- } catch (err) {
17
- lastProviderError = err;
18
- if (err?.tryNextLink) {
19
- continue;
20
- }
21
- throw err;
22
- }
23
- }
24
- throw lastProviderError;
25
- };
26
-
27
- export {
28
- chain
29
- };
@@ -1,52 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../node_modules/.bun/@smithy+smithy-client@4.12.13/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js
4
- var createAggregatedClient = (commands, Client, options) => {
5
- for (const [command, CommandCtor] of Object.entries(commands)) {
6
- const methodImpl = async function(args, optionsOrCb, cb) {
7
- const command2 = new CommandCtor(args);
8
- if (typeof optionsOrCb === "function") {
9
- this.send(command2, optionsOrCb);
10
- } else if (typeof cb === "function") {
11
- if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
13
- this.send(command2, optionsOrCb || {}, cb);
14
- } else {
15
- return this.send(command2, optionsOrCb);
16
- }
17
- };
18
- const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
19
- Client.prototype[methodName] = methodImpl;
20
- }
21
- const { paginators = {}, waiters = {} } = options ?? {};
22
- for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
23
- if (Client.prototype[paginatorName] === void 0) {
24
- Client.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
25
- return paginatorFn({
26
- ...paginationConfiguration,
27
- client: this
28
- }, commandInput, ...rest);
29
- };
30
- }
31
- }
32
- for (const [waiterName, waiterFn] of Object.entries(waiters)) {
33
- if (Client.prototype[waiterName] === void 0) {
34
- Client.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
35
- let config = waiterConfiguration;
36
- if (typeof waiterConfiguration === "number") {
37
- config = {
38
- maxWaitTime: waiterConfiguration
39
- };
40
- }
41
- return waiterFn({
42
- ...config,
43
- client: this
44
- }, commandInput, ...rest);
45
- };
46
- }
47
- }
48
- };
49
-
50
- export {
51
- createAggregatedClient
52
- };
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
4
- function setCredentialFeature(credentials, feature, value) {
5
- if (!credentials.$source) {
6
- credentials.$source = {};
7
- }
8
- credentials.$source[feature] = value;
9
- return credentials;
10
- }
11
-
12
- export {
13
- setCredentialFeature
14
- };
@@ -1,252 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- fromUtf8,
4
- toUtf8
5
- } from "./chunk-ERL3EC7G.js";
6
-
7
- // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js
8
- var EventStreamSerde = class {
9
- marshaller;
10
- serializer;
11
- deserializer;
12
- serdeContext;
13
- defaultContentType;
14
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType }) {
15
- this.marshaller = marshaller;
16
- this.serializer = serializer;
17
- this.deserializer = deserializer;
18
- this.serdeContext = serdeContext;
19
- this.defaultContentType = defaultContentType;
20
- }
21
- async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
22
- const marshaller = this.marshaller;
23
- const eventStreamMember = requestSchema.getEventStreamMember();
24
- const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
25
- const serializer = this.serializer;
26
- const defaultContentType = this.defaultContentType;
27
- const initialRequestMarker = /* @__PURE__ */ Symbol("initialRequestMarker");
28
- const eventStreamIterable = {
29
- async *[Symbol.asyncIterator]() {
30
- if (initialRequest) {
31
- const headers = {
32
- ":event-type": { type: "string", value: "initial-request" },
33
- ":message-type": { type: "string", value: "event" },
34
- ":content-type": { type: "string", value: defaultContentType }
35
- };
36
- serializer.write(requestSchema, initialRequest);
37
- const body = serializer.flush();
38
- yield {
39
- [initialRequestMarker]: true,
40
- headers,
41
- body
42
- };
43
- }
44
- for await (const page of eventStream) {
45
- yield page;
46
- }
47
- }
48
- };
49
- return marshaller.serialize(eventStreamIterable, (event) => {
50
- if (event[initialRequestMarker]) {
51
- return {
52
- headers: event.headers,
53
- body: event.body
54
- };
55
- }
56
- let unionMember = "";
57
- for (const key in event) {
58
- if (key !== "__type") {
59
- unionMember = key;
60
- break;
61
- }
62
- }
63
- const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);
64
- const headers = {
65
- ":event-type": { type: "string", value: eventType },
66
- ":message-type": { type: "string", value: "event" },
67
- ":content-type": { type: "string", value: explicitPayloadContentType ?? defaultContentType },
68
- ...additionalHeaders
69
- };
70
- return {
71
- headers,
72
- body
73
- };
74
- });
75
- }
76
- async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
77
- const marshaller = this.marshaller;
78
- const eventStreamMember = responseSchema.getEventStreamMember();
79
- const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
80
- const memberSchemas = unionSchema.getMemberSchemas();
81
- const initialResponseMarker = /* @__PURE__ */ Symbol("initialResponseMarker");
82
- const asyncIterable = marshaller.deserialize(response.body, async (event) => {
83
- let unionMember = "";
84
- for (const key in event) {
85
- if (key !== "__type") {
86
- unionMember = key;
87
- break;
88
- }
89
- }
90
- const body = event[unionMember].body;
91
- if (unionMember === "initial-response") {
92
- const dataObject = await this.deserializer.read(responseSchema, body);
93
- delete dataObject[eventStreamMember];
94
- return {
95
- [initialResponseMarker]: true,
96
- ...dataObject
97
- };
98
- } else if (unionMember in memberSchemas) {
99
- const eventStreamSchema = memberSchemas[unionMember];
100
- if (eventStreamSchema.isStructSchema()) {
101
- const out = {};
102
- let hasBindings = false;
103
- for (const [name, member] of eventStreamSchema.structIterator()) {
104
- const { eventHeader, eventPayload } = member.getMergedTraits();
105
- hasBindings = hasBindings || Boolean(eventHeader || eventPayload);
106
- if (eventPayload) {
107
- if (member.isBlobSchema()) {
108
- out[name] = body;
109
- } else if (member.isStringSchema()) {
110
- out[name] = (this.serdeContext?.utf8Encoder ?? toUtf8)(body);
111
- } else if (member.isStructSchema()) {
112
- out[name] = await this.deserializer.read(member, body);
113
- }
114
- } else if (eventHeader) {
115
- const value = event[unionMember].headers[name]?.value;
116
- if (value != null) {
117
- if (member.isNumericSchema()) {
118
- if (value && typeof value === "object" && "bytes" in value) {
119
- out[name] = BigInt(value.toString());
120
- } else {
121
- out[name] = Number(value);
122
- }
123
- } else {
124
- out[name] = value;
125
- }
126
- }
127
- }
128
- }
129
- if (hasBindings) {
130
- return {
131
- [unionMember]: out
132
- };
133
- }
134
- if (body.byteLength === 0) {
135
- return {
136
- [unionMember]: {}
137
- };
138
- }
139
- }
140
- return {
141
- [unionMember]: await this.deserializer.read(eventStreamSchema, body)
142
- };
143
- } else {
144
- return {
145
- $unknown: event
146
- };
147
- }
148
- });
149
- const asyncIterator = asyncIterable[Symbol.asyncIterator]();
150
- const firstEvent = await asyncIterator.next();
151
- if (firstEvent.done) {
152
- return asyncIterable;
153
- }
154
- if (firstEvent.value?.[initialResponseMarker]) {
155
- if (!responseSchema) {
156
- throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
157
- }
158
- for (const key in firstEvent.value) {
159
- initialResponseContainer[key] = firstEvent.value[key];
160
- }
161
- }
162
- return {
163
- async *[Symbol.asyncIterator]() {
164
- if (!firstEvent?.value?.[initialResponseMarker]) {
165
- yield firstEvent.value;
166
- }
167
- while (true) {
168
- const { done, value } = await asyncIterator.next();
169
- if (done) {
170
- break;
171
- }
172
- yield value;
173
- }
174
- }
175
- };
176
- }
177
- writeEventBody(unionMember, unionSchema, event) {
178
- const serializer = this.serializer;
179
- let eventType = unionMember;
180
- let explicitPayloadMember = null;
181
- let explicitPayloadContentType;
182
- const isKnownSchema = (() => {
183
- const struct = unionSchema.getSchema();
184
- return struct[4].includes(unionMember);
185
- })();
186
- const additionalHeaders = {};
187
- if (!isKnownSchema) {
188
- const [type, value] = event[unionMember];
189
- eventType = type;
190
- serializer.write(15, value);
191
- } else {
192
- const eventSchema = unionSchema.getMemberSchema(unionMember);
193
- if (eventSchema.isStructSchema()) {
194
- for (const [memberName, memberSchema] of eventSchema.structIterator()) {
195
- const { eventHeader, eventPayload } = memberSchema.getMergedTraits();
196
- if (eventPayload) {
197
- explicitPayloadMember = memberName;
198
- } else if (eventHeader) {
199
- const value = event[unionMember][memberName];
200
- let type = "binary";
201
- if (memberSchema.isNumericSchema()) {
202
- if ((-2) ** 31 <= value && value <= 2 ** 31 - 1) {
203
- type = "integer";
204
- } else {
205
- type = "long";
206
- }
207
- } else if (memberSchema.isTimestampSchema()) {
208
- type = "timestamp";
209
- } else if (memberSchema.isStringSchema()) {
210
- type = "string";
211
- } else if (memberSchema.isBooleanSchema()) {
212
- type = "boolean";
213
- }
214
- if (value != null) {
215
- additionalHeaders[memberName] = {
216
- type,
217
- value
218
- };
219
- delete event[unionMember][memberName];
220
- }
221
- }
222
- }
223
- if (explicitPayloadMember !== null) {
224
- const payloadSchema = eventSchema.getMemberSchema(explicitPayloadMember);
225
- if (payloadSchema.isBlobSchema()) {
226
- explicitPayloadContentType = "application/octet-stream";
227
- } else if (payloadSchema.isStringSchema()) {
228
- explicitPayloadContentType = "text/plain";
229
- }
230
- serializer.write(payloadSchema, event[unionMember][explicitPayloadMember]);
231
- } else {
232
- serializer.write(eventSchema, event[unionMember]);
233
- }
234
- } else if (eventSchema.isUnitSchema()) {
235
- serializer.write(eventSchema, {});
236
- } else {
237
- throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
238
- }
239
- }
240
- const messageSerialization = serializer.flush() ?? new Uint8Array();
241
- const body = typeof messageSerialization === "string" ? (this.serdeContext?.utf8Decoder ?? fromUtf8)(messageSerialization) : messageSerialization;
242
- return {
243
- body,
244
- eventType,
245
- explicitPayloadContentType,
246
- additionalHeaders
247
- };
248
- }
249
- };
250
- export {
251
- EventStreamSerde
252
- };