dynamic-mui 4.0.1 → 4.0.2
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.
- package/dist/dynamic-mui.cjs.js +1 -1
- package/dist/dynamic-mui.es.js +4 -4
- package/dist/index-BJUf5iG7.js +1 -0
- package/dist/index-CZwPjzNR.js +428 -0
- package/dist/index-DueLYDEh.mjs +165 -0
- package/dist/{index-C6FETa-1.mjs → index-Nx4sGg5x.mjs} +32173 -31554
- package/dist/loadCognitoIdentity-aCnxH9ka.mjs +834 -0
- package/dist/loadCognitoIdentity-nV_2nvxn.js +1 -0
- package/package.json +15 -12
- package/dist/index-BmRDKUhx.js +0 -1
- package/dist/index-D2FS0pfd.js +0 -446
- package/dist/index-sj0peQxt.mjs +0 -153
- package/dist/loadCognitoIdentity-Ci_Avy-k.js +0 -1
- package/dist/loadCognitoIdentity-LoAuduOp.mjs +0 -879
|
@@ -1,879 +0,0 @@
|
|
|
1
|
-
import { H as Re, N as A, a as Ae, c as z, b as P, t as ce, S as F, U as ve, f as de, L as ue, d as pe, p as ke, e as De, g as Te, h as M, i as Oe, v as Ne, P as ze, j as Me, r as Fe, n as le, k as $e, E as je, l as Ue, m as Le, o as He, q as Ge, T as he, s as Je, u as qe, w as Be, A as Ke, x as Ve, y as Qe, z as We, D as Xe, B as Ze, C as Ye, F as et, G as tt, I as st, J as rt, K as nt, M as it, O as ot, Q as at, R as ct, V as dt, W as ut, X as pt, Y as lt, Z as ht, _ as ft, $ as mt, a0 as gt, a1 as yt, a2 as St, a3 as Et, a4 as It, a5 as wt, a6 as xt, a7 as bt, a8 as Ct, a9 as Pt, aa as _t, ab as Rt, ac as fe, ad as me } from "./index-C6FETa-1.mjs";
|
|
2
|
-
class At extends Re {
|
|
3
|
-
async serializeRequest(t, e, i) {
|
|
4
|
-
const n = this.serializer, o = {}, r = {}, c = await i.endpoint(), a = A.of(t?.input), p = a.getSchema();
|
|
5
|
-
let d;
|
|
6
|
-
const l = e && typeof e == "object" ? e : {}, u = new Ae({
|
|
7
|
-
protocol: "",
|
|
8
|
-
hostname: "",
|
|
9
|
-
port: void 0,
|
|
10
|
-
path: "/",
|
|
11
|
-
fragment: void 0,
|
|
12
|
-
query: o,
|
|
13
|
-
headers: r,
|
|
14
|
-
body: void 0
|
|
15
|
-
});
|
|
16
|
-
if (c && (this.updateServiceEndpoint(u, c), this.setHostPrefix(u, t, l)), l) {
|
|
17
|
-
const m = a.getEventStreamMember();
|
|
18
|
-
if (m) {
|
|
19
|
-
if (l[m]) {
|
|
20
|
-
const g = {};
|
|
21
|
-
for (const [v, _e] of a.structIterator())
|
|
22
|
-
v !== m && l[v] && (n.write(_e, l[v]), g[v] = n.flush());
|
|
23
|
-
d = await this.serializeEventStream({
|
|
24
|
-
eventStream: l[m],
|
|
25
|
-
requestSchema: a,
|
|
26
|
-
initialRequest: g
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
} else
|
|
30
|
-
n.write(p, l), d = n.flush();
|
|
31
|
-
}
|
|
32
|
-
return u.headers = Object.assign(u.headers, r), u.query = o, u.body = d, u.method = "POST", u;
|
|
33
|
-
}
|
|
34
|
-
async deserializeResponse(t, e, i) {
|
|
35
|
-
const n = this.deserializer, o = A.of(t.output), r = {};
|
|
36
|
-
if (i.statusCode >= 300) {
|
|
37
|
-
const a = await z(i.body, e);
|
|
38
|
-
throw a.byteLength > 0 && Object.assign(r, await n.read(15, a)), await this.handleError(t, e, i, r, this.deserializeMetadata(i)), new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
|
|
39
|
-
}
|
|
40
|
-
for (const a in i.headers) {
|
|
41
|
-
const p = i.headers[a];
|
|
42
|
-
delete i.headers[a], i.headers[a.toLowerCase()] = p;
|
|
43
|
-
}
|
|
44
|
-
const c = o.getEventStreamMember();
|
|
45
|
-
if (c)
|
|
46
|
-
r[c] = await this.deserializeEventStream({
|
|
47
|
-
response: i,
|
|
48
|
-
responseSchema: o,
|
|
49
|
-
initialResponseContainer: r
|
|
50
|
-
});
|
|
51
|
-
else {
|
|
52
|
-
const a = await z(i.body, e);
|
|
53
|
-
a.byteLength > 0 && Object.assign(r, await n.read(o, a));
|
|
54
|
-
}
|
|
55
|
-
return r.$metadata = this.deserializeMetadata(i), r;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
class vt {
|
|
59
|
-
async sign(t, e, i) {
|
|
60
|
-
return t;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function kt(s, t, e) {
|
|
64
|
-
if (e?.source) {
|
|
65
|
-
const i = e.source;
|
|
66
|
-
if (typeof t == "number" && (t > Number.MAX_SAFE_INTEGER || t < Number.MIN_SAFE_INTEGER || i !== String(t)))
|
|
67
|
-
return i.includes(".") ? new P(i, "bigDecimal") : BigInt(i);
|
|
68
|
-
}
|
|
69
|
-
return t;
|
|
70
|
-
}
|
|
71
|
-
const Dt = (s, t) => z(s, t).then((e) => (t?.utf8Encoder ?? ce)(e)), Tt = (s, t) => Dt(s, t).then((e) => {
|
|
72
|
-
if (e.length)
|
|
73
|
-
try {
|
|
74
|
-
return JSON.parse(e);
|
|
75
|
-
} catch (i) {
|
|
76
|
-
throw i?.name === "SyntaxError" && Object.defineProperty(i, "$responseBodyText", {
|
|
77
|
-
value: e
|
|
78
|
-
}), i;
|
|
79
|
-
}
|
|
80
|
-
return {};
|
|
81
|
-
}), Ot = (s, t) => {
|
|
82
|
-
const e = (o, r) => Object.keys(o).find((c) => c.toLowerCase() === r.toLowerCase()), i = (o) => {
|
|
83
|
-
let r = o;
|
|
84
|
-
return typeof r == "number" && (r = r.toString()), r.indexOf(",") >= 0 && (r = r.split(",")[0]), r.indexOf(":") >= 0 && (r = r.split(":")[0]), r.indexOf("#") >= 0 && (r = r.split("#")[1]), r;
|
|
85
|
-
}, n = e(s.headers, "x-amzn-errortype");
|
|
86
|
-
if (n !== void 0)
|
|
87
|
-
return i(s.headers[n]);
|
|
88
|
-
if (t && typeof t == "object") {
|
|
89
|
-
const o = e(t, "code");
|
|
90
|
-
if (o && t[o] !== void 0)
|
|
91
|
-
return i(t[o]);
|
|
92
|
-
if (t.__type !== void 0)
|
|
93
|
-
return i(t.__type);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
class Nt extends F {
|
|
97
|
-
settings;
|
|
98
|
-
constructor(t) {
|
|
99
|
-
super(), this.settings = t;
|
|
100
|
-
}
|
|
101
|
-
async read(t, e) {
|
|
102
|
-
return this._read(t, typeof e == "string" ? JSON.parse(e, kt) : await Tt(e, this.serdeContext));
|
|
103
|
-
}
|
|
104
|
-
readObject(t, e) {
|
|
105
|
-
return this._read(t, e);
|
|
106
|
-
}
|
|
107
|
-
_read(t, e) {
|
|
108
|
-
const i = e !== null && typeof e == "object", n = A.of(t);
|
|
109
|
-
if (i) {
|
|
110
|
-
if (n.isStructSchema()) {
|
|
111
|
-
const r = e, c = n.isUnionSchema(), a = {};
|
|
112
|
-
let p;
|
|
113
|
-
const { jsonName: d } = this.settings;
|
|
114
|
-
d && (p = {});
|
|
115
|
-
let l;
|
|
116
|
-
c && (l = new ve(r, a));
|
|
117
|
-
for (const [u, m] of n.structIterator()) {
|
|
118
|
-
let g = u;
|
|
119
|
-
d && (g = m.getMergedTraits().jsonName ?? g, p[g] = u), c && l.mark(g), r[g] != null && (a[u] = this._read(m, r[g]));
|
|
120
|
-
}
|
|
121
|
-
if (c)
|
|
122
|
-
l.writeUnknown();
|
|
123
|
-
else if (typeof r.__type == "string")
|
|
124
|
-
for (const [u, m] of Object.entries(r)) {
|
|
125
|
-
const g = d ? p[u] ?? u : u;
|
|
126
|
-
g in a || (a[g] = m);
|
|
127
|
-
}
|
|
128
|
-
return a;
|
|
129
|
-
}
|
|
130
|
-
if (Array.isArray(e) && n.isListSchema()) {
|
|
131
|
-
const r = n.getValueSchema(), c = [];
|
|
132
|
-
for (const a of e)
|
|
133
|
-
c.push(this._read(r, a));
|
|
134
|
-
return c;
|
|
135
|
-
}
|
|
136
|
-
if (n.isMapSchema()) {
|
|
137
|
-
const r = n.getValueSchema(), c = {};
|
|
138
|
-
for (const [a, p] of Object.entries(e))
|
|
139
|
-
c[a] = this._read(r, p);
|
|
140
|
-
return c;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
if (n.isBlobSchema() && typeof e == "string")
|
|
144
|
-
return de(e);
|
|
145
|
-
const o = n.getMergedTraits().mediaType;
|
|
146
|
-
if (n.isStringSchema() && typeof e == "string" && o)
|
|
147
|
-
return o === "application/json" || o.endsWith("+json") ? ue.from(e) : e;
|
|
148
|
-
if (n.isTimestampSchema() && e != null)
|
|
149
|
-
switch (pe(n, this.settings)) {
|
|
150
|
-
case 5:
|
|
151
|
-
return Te(e);
|
|
152
|
-
case 6:
|
|
153
|
-
return De(e);
|
|
154
|
-
case 7:
|
|
155
|
-
return ke(e);
|
|
156
|
-
default:
|
|
157
|
-
return console.warn("Missing timestamp format, parsing value with Date constructor:", e), new Date(e);
|
|
158
|
-
}
|
|
159
|
-
if (n.isBigIntegerSchema() && (typeof e == "number" || typeof e == "string"))
|
|
160
|
-
return BigInt(e);
|
|
161
|
-
if (n.isBigDecimalSchema() && e != null) {
|
|
162
|
-
if (e instanceof P)
|
|
163
|
-
return e;
|
|
164
|
-
const r = e;
|
|
165
|
-
return r.type === "bigDecimal" && "string" in r ? new P(r.string, r.type) : new P(String(e), "bigDecimal");
|
|
166
|
-
}
|
|
167
|
-
if (n.isNumericSchema() && typeof e == "string") {
|
|
168
|
-
switch (e) {
|
|
169
|
-
case "Infinity":
|
|
170
|
-
return 1 / 0;
|
|
171
|
-
case "-Infinity":
|
|
172
|
-
return -1 / 0;
|
|
173
|
-
case "NaN":
|
|
174
|
-
return NaN;
|
|
175
|
-
}
|
|
176
|
-
return e;
|
|
177
|
-
}
|
|
178
|
-
if (n.isDocumentSchema())
|
|
179
|
-
if (i) {
|
|
180
|
-
const r = Array.isArray(e) ? [] : {};
|
|
181
|
-
for (const [c, a] of Object.entries(e))
|
|
182
|
-
a instanceof P ? r[c] = a : r[c] = this._read(n, a);
|
|
183
|
-
return r;
|
|
184
|
-
} else
|
|
185
|
-
return structuredClone(e);
|
|
186
|
-
return e;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
const W = "Ν";
|
|
190
|
-
class zt {
|
|
191
|
-
values = /* @__PURE__ */ new Map();
|
|
192
|
-
counter = 0;
|
|
193
|
-
stage = 0;
|
|
194
|
-
createReplacer() {
|
|
195
|
-
if (this.stage === 1)
|
|
196
|
-
throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
|
|
197
|
-
if (this.stage === 2)
|
|
198
|
-
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
199
|
-
return this.stage = 1, (t, e) => {
|
|
200
|
-
if (e instanceof P) {
|
|
201
|
-
const i = `${W + "nv" + this.counter++}_` + e.string;
|
|
202
|
-
return this.values.set(`"${i}"`, e.string), i;
|
|
203
|
-
}
|
|
204
|
-
if (typeof e == "bigint") {
|
|
205
|
-
const i = e.toString(), n = `${W + "b" + this.counter++}_` + i;
|
|
206
|
-
return this.values.set(`"${n}"`, i), n;
|
|
207
|
-
}
|
|
208
|
-
return e;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
replaceInJson(t) {
|
|
212
|
-
if (this.stage === 0)
|
|
213
|
-
throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
|
|
214
|
-
if (this.stage === 2)
|
|
215
|
-
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
216
|
-
if (this.stage = 2, this.counter === 0)
|
|
217
|
-
return t;
|
|
218
|
-
for (const [e, i] of this.values)
|
|
219
|
-
t = t.replace(e, i);
|
|
220
|
-
return t;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
class Mt extends F {
|
|
224
|
-
settings;
|
|
225
|
-
buffer;
|
|
226
|
-
useReplacer = !1;
|
|
227
|
-
rootSchema;
|
|
228
|
-
constructor(t) {
|
|
229
|
-
super(), this.settings = t;
|
|
230
|
-
}
|
|
231
|
-
write(t, e) {
|
|
232
|
-
this.rootSchema = A.of(t), this.buffer = this._write(this.rootSchema, e);
|
|
233
|
-
}
|
|
234
|
-
writeDiscriminatedDocument(t, e) {
|
|
235
|
-
this.write(t, e), typeof this.buffer == "object" && (this.buffer.__type = A.of(t).getName(!0));
|
|
236
|
-
}
|
|
237
|
-
flush() {
|
|
238
|
-
const { rootSchema: t, useReplacer: e } = this;
|
|
239
|
-
if (this.rootSchema = void 0, this.useReplacer = !1, t?.isStructSchema() || t?.isDocumentSchema()) {
|
|
240
|
-
if (!e)
|
|
241
|
-
return JSON.stringify(this.buffer);
|
|
242
|
-
const i = new zt();
|
|
243
|
-
return i.replaceInJson(JSON.stringify(this.buffer, i.createReplacer(), 0));
|
|
244
|
-
}
|
|
245
|
-
return this.buffer;
|
|
246
|
-
}
|
|
247
|
-
_write(t, e, i) {
|
|
248
|
-
const n = e !== null && typeof e == "object", o = A.of(t);
|
|
249
|
-
if (n) {
|
|
250
|
-
if (o.isStructSchema()) {
|
|
251
|
-
const r = e, c = {}, { jsonName: a } = this.settings;
|
|
252
|
-
let p;
|
|
253
|
-
a && (p = {});
|
|
254
|
-
for (const [d, l] of o.structIterator()) {
|
|
255
|
-
const u = this._write(l, r[d], o);
|
|
256
|
-
if (u !== void 0) {
|
|
257
|
-
let m = d;
|
|
258
|
-
a && (m = l.getMergedTraits().jsonName ?? d, p[d] = m), c[m] = u;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
if (o.isUnionSchema() && Object.keys(c).length === 0) {
|
|
262
|
-
const { $unknown: d } = r;
|
|
263
|
-
if (Array.isArray(d)) {
|
|
264
|
-
const [l, u] = d;
|
|
265
|
-
c[l] = this._write(15, u);
|
|
266
|
-
}
|
|
267
|
-
} else if (typeof r.__type == "string")
|
|
268
|
-
for (const [d, l] of Object.entries(r)) {
|
|
269
|
-
const u = a ? p[d] ?? d : d;
|
|
270
|
-
u in c || (c[u] = this._write(15, l));
|
|
271
|
-
}
|
|
272
|
-
return c;
|
|
273
|
-
}
|
|
274
|
-
if (Array.isArray(e) && o.isListSchema()) {
|
|
275
|
-
const r = o.getValueSchema(), c = [], a = !!o.getMergedTraits().sparse;
|
|
276
|
-
for (const p of e)
|
|
277
|
-
(a || p != null) && c.push(this._write(r, p));
|
|
278
|
-
return c;
|
|
279
|
-
}
|
|
280
|
-
if (o.isMapSchema()) {
|
|
281
|
-
const r = o.getValueSchema(), c = {}, a = !!o.getMergedTraits().sparse;
|
|
282
|
-
for (const [p, d] of Object.entries(e))
|
|
283
|
-
(a || d != null) && (c[p] = this._write(r, d));
|
|
284
|
-
return c;
|
|
285
|
-
}
|
|
286
|
-
if (e instanceof Uint8Array && (o.isBlobSchema() || o.isDocumentSchema()))
|
|
287
|
-
return o === this.rootSchema ? e : (this.serdeContext?.base64Encoder ?? M)(e);
|
|
288
|
-
if (e instanceof Date && (o.isTimestampSchema() || o.isDocumentSchema()))
|
|
289
|
-
switch (pe(o, this.settings)) {
|
|
290
|
-
case 5:
|
|
291
|
-
return e.toISOString().replace(".000Z", "Z");
|
|
292
|
-
case 6:
|
|
293
|
-
return Oe(e);
|
|
294
|
-
case 7:
|
|
295
|
-
return e.getTime() / 1e3;
|
|
296
|
-
default:
|
|
297
|
-
return console.warn("Missing timestamp format, using epoch seconds", e), e.getTime() / 1e3;
|
|
298
|
-
}
|
|
299
|
-
e instanceof P && (this.useReplacer = !0);
|
|
300
|
-
}
|
|
301
|
-
if (!(e === null && i?.isStructSchema())) {
|
|
302
|
-
if (o.isStringSchema()) {
|
|
303
|
-
if (typeof e > "u" && o.isIdempotencyToken())
|
|
304
|
-
return Ne();
|
|
305
|
-
const r = o.getMergedTraits().mediaType;
|
|
306
|
-
return e != null && r && (r === "application/json" || r.endsWith("+json")) ? ue.from(e) : e;
|
|
307
|
-
}
|
|
308
|
-
if (typeof e == "number" && o.isNumericSchema())
|
|
309
|
-
return Math.abs(e) === 1 / 0 || isNaN(e) ? String(e) : e;
|
|
310
|
-
if (typeof e == "string" && o.isBlobSchema())
|
|
311
|
-
return o === this.rootSchema ? e : (this.serdeContext?.base64Encoder ?? M)(e);
|
|
312
|
-
if (typeof e == "bigint" && (this.useReplacer = !0), o.isDocumentSchema())
|
|
313
|
-
if (n) {
|
|
314
|
-
const r = Array.isArray(e) ? [] : {};
|
|
315
|
-
for (const [c, a] of Object.entries(e))
|
|
316
|
-
a instanceof P ? (this.useReplacer = !0, r[c] = a) : r[c] = this._write(o, a);
|
|
317
|
-
return r;
|
|
318
|
-
} else
|
|
319
|
-
return structuredClone(e);
|
|
320
|
-
return e;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
class Ft extends F {
|
|
325
|
-
settings;
|
|
326
|
-
constructor(t) {
|
|
327
|
-
super(), this.settings = t;
|
|
328
|
-
}
|
|
329
|
-
createSerializer() {
|
|
330
|
-
const t = new Mt(this.settings);
|
|
331
|
-
return t.setSerdeContext(this.serdeContext), t;
|
|
332
|
-
}
|
|
333
|
-
createDeserializer() {
|
|
334
|
-
const t = new Nt(this.settings);
|
|
335
|
-
return t.setSerdeContext(this.serdeContext), t;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
class $t extends At {
|
|
339
|
-
serializer;
|
|
340
|
-
deserializer;
|
|
341
|
-
serviceTarget;
|
|
342
|
-
codec;
|
|
343
|
-
mixin;
|
|
344
|
-
awsQueryCompatible;
|
|
345
|
-
constructor({ defaultNamespace: t, errorTypeRegistries: e, serviceTarget: i, awsQueryCompatible: n, jsonCodec: o }) {
|
|
346
|
-
super({
|
|
347
|
-
defaultNamespace: t,
|
|
348
|
-
errorTypeRegistries: e
|
|
349
|
-
}), this.serviceTarget = i, this.codec = o ?? new Ft({
|
|
350
|
-
timestampFormat: {
|
|
351
|
-
useTrait: !0,
|
|
352
|
-
default: 7
|
|
353
|
-
},
|
|
354
|
-
jsonName: !1
|
|
355
|
-
}), this.serializer = this.codec.createSerializer(), this.deserializer = this.codec.createDeserializer(), this.awsQueryCompatible = !!n, this.mixin = new ze(this.awsQueryCompatible);
|
|
356
|
-
}
|
|
357
|
-
async serializeRequest(t, e, i) {
|
|
358
|
-
const n = await super.serializeRequest(t, e, i);
|
|
359
|
-
return n.path.endsWith("/") || (n.path += "/"), Object.assign(n.headers, {
|
|
360
|
-
"content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
|
|
361
|
-
"x-amz-target": `${this.serviceTarget}.${t.name}`
|
|
362
|
-
}), this.awsQueryCompatible && (n.headers["x-amzn-query-mode"] = "true"), (Me(t.input) === "unit" || !n.body) && (n.body = "{}"), n;
|
|
363
|
-
}
|
|
364
|
-
getPayloadCodec() {
|
|
365
|
-
return this.codec;
|
|
366
|
-
}
|
|
367
|
-
async handleError(t, e, i, n, o) {
|
|
368
|
-
this.awsQueryCompatible && this.mixin.setQueryCompatError(n, i);
|
|
369
|
-
const r = Ot(i, n) ?? "Unknown";
|
|
370
|
-
this.mixin.compose(this.compositeErrorRegistry, r, this.options.defaultNamespace);
|
|
371
|
-
const { errorSchema: c, errorMetadata: a } = await this.mixin.getErrorSchemaOrThrowBaseException(r, this.options.defaultNamespace, i, n, o, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : void 0), p = A.of(c), d = n.message ?? n.Message ?? "UnknownError", l = this.compositeErrorRegistry.getErrorCtor(c) ?? Error, u = new l(d), m = {};
|
|
372
|
-
for (const [g, v] of p.structIterator())
|
|
373
|
-
n[g] != null && (m[g] = this.codec.createDeserializer().readObject(v, n[g]));
|
|
374
|
-
throw this.awsQueryCompatible && this.mixin.queryCompatOutput(n, m), this.mixin.decorateServiceException(Object.assign(u, a, {
|
|
375
|
-
$fault: p.getMergedTraits().error,
|
|
376
|
-
message: d
|
|
377
|
-
}, m), n);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
class jt extends $t {
|
|
381
|
-
constructor({ defaultNamespace: t, errorTypeRegistries: e, serviceTarget: i, awsQueryCompatible: n, jsonCodec: o }) {
|
|
382
|
-
super({
|
|
383
|
-
defaultNamespace: t,
|
|
384
|
-
errorTypeRegistries: e,
|
|
385
|
-
serviceTarget: i,
|
|
386
|
-
awsQueryCompatible: n,
|
|
387
|
-
jsonCodec: o
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
getShapeId() {
|
|
391
|
-
return "aws.protocols#awsJson1_1";
|
|
392
|
-
}
|
|
393
|
-
getJsonRpcVersion() {
|
|
394
|
-
return "1.1";
|
|
395
|
-
}
|
|
396
|
-
getDefaultContentType() {
|
|
397
|
-
return "application/x-amz-json-1.1";
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
const Ut = async (s, t, e) => ({
|
|
401
|
-
operation: $e(t).operation,
|
|
402
|
-
region: await le(s.region)() || (() => {
|
|
403
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
404
|
-
})()
|
|
405
|
-
});
|
|
406
|
-
function Lt(s) {
|
|
407
|
-
return {
|
|
408
|
-
schemeId: "aws.auth#sigv4",
|
|
409
|
-
signingProperties: {
|
|
410
|
-
name: "cognito-identity",
|
|
411
|
-
region: s.region
|
|
412
|
-
},
|
|
413
|
-
propertiesExtractor: (t, e) => ({
|
|
414
|
-
signingProperties: {
|
|
415
|
-
config: t,
|
|
416
|
-
context: e
|
|
417
|
-
}
|
|
418
|
-
})
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
function X(s) {
|
|
422
|
-
return {
|
|
423
|
-
schemeId: "smithy.api#noAuth"
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
const Ht = (s) => {
|
|
427
|
-
const t = [];
|
|
428
|
-
switch (s.operation) {
|
|
429
|
-
case "GetCredentialsForIdentity": {
|
|
430
|
-
t.push(X());
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
case "GetId": {
|
|
434
|
-
t.push(X());
|
|
435
|
-
break;
|
|
436
|
-
}
|
|
437
|
-
default:
|
|
438
|
-
t.push(Lt(s));
|
|
439
|
-
}
|
|
440
|
-
return t;
|
|
441
|
-
}, Gt = (s) => {
|
|
442
|
-
const t = Fe(s);
|
|
443
|
-
return Object.assign(t, {
|
|
444
|
-
authSchemePreference: le(s.authSchemePreference ?? [])
|
|
445
|
-
});
|
|
446
|
-
}, Jt = (s) => Object.assign(s, {
|
|
447
|
-
useDualstackEndpoint: s.useDualstackEndpoint ?? !1,
|
|
448
|
-
useFipsEndpoint: s.useFipsEndpoint ?? !1,
|
|
449
|
-
defaultSigningName: "cognito-identity"
|
|
450
|
-
}), ge = {
|
|
451
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
452
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
453
|
-
Region: { type: "builtInParams", name: "region" },
|
|
454
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
455
|
-
}, qt = "3.996.19", Bt = {
|
|
456
|
-
version: qt
|
|
457
|
-
}, ye = "required", y = "fn", S = "argv", D = "ref", Z = !0, Y = "isSet", N = "booleanEquals", k = "error", I = "endpoint", x = "tree", $ = "PartitionResult", j = "getAttr", T = "stringEquals", ee = { [ye]: !1, type: "string" }, te = { [ye]: !0, default: !1, type: "boolean" }, se = { [D]: "Endpoint" }, Se = { [y]: N, [S]: [{ [D]: "UseFIPS" }, !0] }, Ee = { [y]: N, [S]: [{ [D]: "UseDualStack" }, !0] }, h = {}, O = { [D]: "Region" }, re = { [y]: j, [S]: [{ [D]: $ }, "supportsFIPS"] }, Ie = { [D]: $ }, ne = { [y]: N, [S]: [!0, { [y]: j, [S]: [Ie, "supportsDualStack"] }] }, ie = [Se], oe = [Ee], ae = [O], Kt = {
|
|
458
|
-
parameters: { Region: ee, UseDualStack: te, UseFIPS: te, Endpoint: ee },
|
|
459
|
-
rules: [
|
|
460
|
-
{
|
|
461
|
-
conditions: [{ [y]: Y, [S]: [se] }],
|
|
462
|
-
rules: [
|
|
463
|
-
{ conditions: ie, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: k },
|
|
464
|
-
{ conditions: oe, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: k },
|
|
465
|
-
{ endpoint: { url: se, properties: h, headers: h }, type: I }
|
|
466
|
-
],
|
|
467
|
-
type: x
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
conditions: [{ [y]: Y, [S]: ae }],
|
|
471
|
-
rules: [
|
|
472
|
-
{
|
|
473
|
-
conditions: [{ [y]: "aws.partition", [S]: ae, assign: $ }],
|
|
474
|
-
rules: [
|
|
475
|
-
{
|
|
476
|
-
conditions: [Se, Ee],
|
|
477
|
-
rules: [
|
|
478
|
-
{
|
|
479
|
-
conditions: [{ [y]: N, [S]: [Z, re] }, ne],
|
|
480
|
-
rules: [
|
|
481
|
-
{
|
|
482
|
-
conditions: [{ [y]: T, [S]: [O, "us-east-1"] }],
|
|
483
|
-
endpoint: {
|
|
484
|
-
url: "https://cognito-identity-fips.us-east-1.amazonaws.com",
|
|
485
|
-
properties: h,
|
|
486
|
-
headers: h
|
|
487
|
-
},
|
|
488
|
-
type: I
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
conditions: [{ [y]: T, [S]: [O, "us-east-2"] }],
|
|
492
|
-
endpoint: {
|
|
493
|
-
url: "https://cognito-identity-fips.us-east-2.amazonaws.com",
|
|
494
|
-
properties: h,
|
|
495
|
-
headers: h
|
|
496
|
-
},
|
|
497
|
-
type: I
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
conditions: [{ [y]: T, [S]: [O, "us-west-1"] }],
|
|
501
|
-
endpoint: {
|
|
502
|
-
url: "https://cognito-identity-fips.us-west-1.amazonaws.com",
|
|
503
|
-
properties: h,
|
|
504
|
-
headers: h
|
|
505
|
-
},
|
|
506
|
-
type: I
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
conditions: [{ [y]: T, [S]: [O, "us-west-2"] }],
|
|
510
|
-
endpoint: {
|
|
511
|
-
url: "https://cognito-identity-fips.us-west-2.amazonaws.com",
|
|
512
|
-
properties: h,
|
|
513
|
-
headers: h
|
|
514
|
-
},
|
|
515
|
-
type: I
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
endpoint: {
|
|
519
|
-
url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
520
|
-
properties: h,
|
|
521
|
-
headers: h
|
|
522
|
-
},
|
|
523
|
-
type: I
|
|
524
|
-
}
|
|
525
|
-
],
|
|
526
|
-
type: x
|
|
527
|
-
},
|
|
528
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: k }
|
|
529
|
-
],
|
|
530
|
-
type: x
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
conditions: ie,
|
|
534
|
-
rules: [
|
|
535
|
-
{
|
|
536
|
-
conditions: [{ [y]: N, [S]: [re, Z] }],
|
|
537
|
-
rules: [
|
|
538
|
-
{
|
|
539
|
-
endpoint: {
|
|
540
|
-
url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
541
|
-
properties: h,
|
|
542
|
-
headers: h
|
|
543
|
-
},
|
|
544
|
-
type: I
|
|
545
|
-
}
|
|
546
|
-
],
|
|
547
|
-
type: x
|
|
548
|
-
},
|
|
549
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: k }
|
|
550
|
-
],
|
|
551
|
-
type: x
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
conditions: oe,
|
|
555
|
-
rules: [
|
|
556
|
-
{
|
|
557
|
-
conditions: [ne],
|
|
558
|
-
rules: [
|
|
559
|
-
{
|
|
560
|
-
conditions: [{ [y]: T, [S]: ["aws", { [y]: j, [S]: [Ie, "name"] }] }],
|
|
561
|
-
endpoint: { url: "https://cognito-identity.{Region}.amazonaws.com", properties: h, headers: h },
|
|
562
|
-
type: I
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
endpoint: {
|
|
566
|
-
url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
567
|
-
properties: h,
|
|
568
|
-
headers: h
|
|
569
|
-
},
|
|
570
|
-
type: I
|
|
571
|
-
}
|
|
572
|
-
],
|
|
573
|
-
type: x
|
|
574
|
-
},
|
|
575
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: k }
|
|
576
|
-
],
|
|
577
|
-
type: x
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
endpoint: {
|
|
581
|
-
url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",
|
|
582
|
-
properties: h,
|
|
583
|
-
headers: h
|
|
584
|
-
},
|
|
585
|
-
type: I
|
|
586
|
-
}
|
|
587
|
-
],
|
|
588
|
-
type: x
|
|
589
|
-
}
|
|
590
|
-
],
|
|
591
|
-
type: x
|
|
592
|
-
},
|
|
593
|
-
{ error: "Invalid Configuration: Missing Region", type: k }
|
|
594
|
-
]
|
|
595
|
-
}, Vt = Kt, Qt = new je({
|
|
596
|
-
size: 50,
|
|
597
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
598
|
-
}), Wt = (s, t = {}) => Qt.get(s, () => Ue(Vt, {
|
|
599
|
-
endpointParams: s,
|
|
600
|
-
logger: t.logger
|
|
601
|
-
}));
|
|
602
|
-
He.aws = Le;
|
|
603
|
-
class E extends Ge {
|
|
604
|
-
constructor(t) {
|
|
605
|
-
super(t), Object.setPrototypeOf(this, E.prototype);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
class U extends E {
|
|
609
|
-
name = "ExternalServiceException";
|
|
610
|
-
$fault = "client";
|
|
611
|
-
constructor(t) {
|
|
612
|
-
super({
|
|
613
|
-
name: "ExternalServiceException",
|
|
614
|
-
$fault: "client",
|
|
615
|
-
...t
|
|
616
|
-
}), Object.setPrototypeOf(this, U.prototype);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
class L extends E {
|
|
620
|
-
name = "InternalErrorException";
|
|
621
|
-
$fault = "server";
|
|
622
|
-
constructor(t) {
|
|
623
|
-
super({
|
|
624
|
-
name: "InternalErrorException",
|
|
625
|
-
$fault: "server",
|
|
626
|
-
...t
|
|
627
|
-
}), Object.setPrototypeOf(this, L.prototype);
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
class H extends E {
|
|
631
|
-
name = "InvalidIdentityPoolConfigurationException";
|
|
632
|
-
$fault = "client";
|
|
633
|
-
constructor(t) {
|
|
634
|
-
super({
|
|
635
|
-
name: "InvalidIdentityPoolConfigurationException",
|
|
636
|
-
$fault: "client",
|
|
637
|
-
...t
|
|
638
|
-
}), Object.setPrototypeOf(this, H.prototype);
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
class G extends E {
|
|
642
|
-
name = "InvalidParameterException";
|
|
643
|
-
$fault = "client";
|
|
644
|
-
constructor(t) {
|
|
645
|
-
super({
|
|
646
|
-
name: "InvalidParameterException",
|
|
647
|
-
$fault: "client",
|
|
648
|
-
...t
|
|
649
|
-
}), Object.setPrototypeOf(this, G.prototype);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
class J extends E {
|
|
653
|
-
name = "NotAuthorizedException";
|
|
654
|
-
$fault = "client";
|
|
655
|
-
constructor(t) {
|
|
656
|
-
super({
|
|
657
|
-
name: "NotAuthorizedException",
|
|
658
|
-
$fault: "client",
|
|
659
|
-
...t
|
|
660
|
-
}), Object.setPrototypeOf(this, J.prototype);
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
class q extends E {
|
|
664
|
-
name = "ResourceConflictException";
|
|
665
|
-
$fault = "client";
|
|
666
|
-
constructor(t) {
|
|
667
|
-
super({
|
|
668
|
-
name: "ResourceConflictException",
|
|
669
|
-
$fault: "client",
|
|
670
|
-
...t
|
|
671
|
-
}), Object.setPrototypeOf(this, q.prototype);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
class B extends E {
|
|
675
|
-
name = "ResourceNotFoundException";
|
|
676
|
-
$fault = "client";
|
|
677
|
-
constructor(t) {
|
|
678
|
-
super({
|
|
679
|
-
name: "ResourceNotFoundException",
|
|
680
|
-
$fault: "client",
|
|
681
|
-
...t
|
|
682
|
-
}), Object.setPrototypeOf(this, B.prototype);
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
class K extends E {
|
|
686
|
-
name = "TooManyRequestsException";
|
|
687
|
-
$fault = "client";
|
|
688
|
-
constructor(t) {
|
|
689
|
-
super({
|
|
690
|
-
name: "TooManyRequestsException",
|
|
691
|
-
$fault: "client",
|
|
692
|
-
...t
|
|
693
|
-
}), Object.setPrototypeOf(this, K.prototype);
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
class V extends E {
|
|
697
|
-
name = "LimitExceededException";
|
|
698
|
-
$fault = "client";
|
|
699
|
-
constructor(t) {
|
|
700
|
-
super({
|
|
701
|
-
name: "LimitExceededException",
|
|
702
|
-
$fault: "client",
|
|
703
|
-
...t
|
|
704
|
-
}), Object.setPrototypeOf(this, V.prototype);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
const Xt = "AccountId", Zt = "AccessKeyId", we = "Credentials", Yt = "CustomRoleArn", es = "Expiration", ts = "ExternalServiceException", ss = "GetCredentialsForIdentity", rs = "GetCredentialsForIdentityInput", ns = "GetCredentialsForIdentityResponse", is = "GetId", os = "GetIdInput", as = "GetIdResponse", cs = "InternalErrorException", Q = "IdentityId", ds = "InvalidIdentityPoolConfigurationException", us = "InvalidParameterException", ps = "IdentityPoolId", ls = "IdentityProviderToken", xe = "Logins", hs = "LimitExceededException", fs = "LoginsMap", ms = "NotAuthorizedException", gs = "ResourceConflictException", ys = "ResourceNotFoundException", Ss = "SecretKey", Es = "SecretKeyString", Is = "SessionToken", ws = "TooManyRequestsException", _ = "client", b = "error", R = "httpError", C = "message", be = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity", xs = "server", f = "com.amazonaws.cognitoidentity", Ce = he.for(be);
|
|
708
|
-
var bs = [-3, be, "CognitoIdentityServiceException", 0, [], []];
|
|
709
|
-
Ce.registerError(bs, E);
|
|
710
|
-
const w = he.for(f);
|
|
711
|
-
var Cs = [-3, f, ts, { [b]: _, [R]: 400 }, [C], [0]];
|
|
712
|
-
w.registerError(Cs, U);
|
|
713
|
-
var Ps = [-3, f, cs, { [b]: xs }, [C], [0]];
|
|
714
|
-
w.registerError(Ps, L);
|
|
715
|
-
var _s = [
|
|
716
|
-
-3,
|
|
717
|
-
f,
|
|
718
|
-
ds,
|
|
719
|
-
{ [b]: _, [R]: 400 },
|
|
720
|
-
[C],
|
|
721
|
-
[0]
|
|
722
|
-
];
|
|
723
|
-
w.registerError(_s, H);
|
|
724
|
-
var Rs = [-3, f, us, { [b]: _, [R]: 400 }, [C], [0]];
|
|
725
|
-
w.registerError(Rs, G);
|
|
726
|
-
var As = [-3, f, hs, { [b]: _, [R]: 400 }, [C], [0]];
|
|
727
|
-
w.registerError(As, V);
|
|
728
|
-
var vs = [-3, f, ms, { [b]: _, [R]: 403 }, [C], [0]];
|
|
729
|
-
w.registerError(vs, J);
|
|
730
|
-
var ks = [-3, f, gs, { [b]: _, [R]: 409 }, [C], [0]];
|
|
731
|
-
w.registerError(ks, q);
|
|
732
|
-
var Ds = [-3, f, ys, { [b]: _, [R]: 404 }, [C], [0]];
|
|
733
|
-
w.registerError(Ds, B);
|
|
734
|
-
var Ts = [-3, f, ws, { [b]: _, [R]: 429 }, [C], [0]];
|
|
735
|
-
w.registerError(Ts, K);
|
|
736
|
-
const Os = [Ce, w];
|
|
737
|
-
var Ns = [0, f, ls, 8, 0], zs = [0, f, Es, 8, 0], Ms = [
|
|
738
|
-
3,
|
|
739
|
-
f,
|
|
740
|
-
we,
|
|
741
|
-
0,
|
|
742
|
-
[Zt, Ss, Is, es],
|
|
743
|
-
[0, [() => zs, 0], 0, 4]
|
|
744
|
-
], Fs = [
|
|
745
|
-
3,
|
|
746
|
-
f,
|
|
747
|
-
rs,
|
|
748
|
-
0,
|
|
749
|
-
[Q, xe, Yt],
|
|
750
|
-
[0, [() => Pe, 0], 0],
|
|
751
|
-
1
|
|
752
|
-
], $s = [
|
|
753
|
-
3,
|
|
754
|
-
f,
|
|
755
|
-
ns,
|
|
756
|
-
0,
|
|
757
|
-
[Q, we],
|
|
758
|
-
[0, [() => Ms, 0]]
|
|
759
|
-
], js = [3, f, os, 0, [ps, Xt, xe], [0, 0, [() => Pe, 0]], 1], Us = [3, f, as, 0, [Q], [0]], Pe = [2, f, fs, 0, [0, 0], [() => Ns, 0]], Ls = [
|
|
760
|
-
9,
|
|
761
|
-
f,
|
|
762
|
-
ss,
|
|
763
|
-
0,
|
|
764
|
-
() => Fs,
|
|
765
|
-
() => $s
|
|
766
|
-
], Hs = [9, f, is, 0, () => js, () => Us];
|
|
767
|
-
const Gs = (s) => ({
|
|
768
|
-
apiVersion: "2014-06-30",
|
|
769
|
-
base64Decoder: s?.base64Decoder ?? de,
|
|
770
|
-
base64Encoder: s?.base64Encoder ?? M,
|
|
771
|
-
disableHostPrefix: s?.disableHostPrefix ?? !1,
|
|
772
|
-
endpointProvider: s?.endpointProvider ?? Wt,
|
|
773
|
-
extensions: s?.extensions ?? [],
|
|
774
|
-
httpAuthSchemeProvider: s?.httpAuthSchemeProvider ?? Ht,
|
|
775
|
-
httpAuthSchemes: s?.httpAuthSchemes ?? [
|
|
776
|
-
{
|
|
777
|
-
schemeId: "aws.auth#sigv4",
|
|
778
|
-
identityProvider: (t) => t.getIdentityProvider("aws.auth#sigv4"),
|
|
779
|
-
signer: new Ke()
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
schemeId: "smithy.api#noAuth",
|
|
783
|
-
identityProvider: (t) => t.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
784
|
-
signer: new vt()
|
|
785
|
-
}
|
|
786
|
-
],
|
|
787
|
-
logger: s?.logger ?? new Be(),
|
|
788
|
-
protocol: s?.protocol ?? jt,
|
|
789
|
-
protocolSettings: s?.protocolSettings ?? {
|
|
790
|
-
defaultNamespace: "com.amazonaws.cognitoidentity",
|
|
791
|
-
errorTypeRegistries: Os,
|
|
792
|
-
xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/",
|
|
793
|
-
version: "2014-06-30",
|
|
794
|
-
serviceTarget: "AWSCognitoIdentityService"
|
|
795
|
-
},
|
|
796
|
-
serviceId: s?.serviceId ?? "Cognito Identity",
|
|
797
|
-
urlParser: s?.urlParser ?? qe,
|
|
798
|
-
utf8Decoder: s?.utf8Decoder ?? Je,
|
|
799
|
-
utf8Encoder: s?.utf8Encoder ?? ce
|
|
800
|
-
}), Js = (s) => {
|
|
801
|
-
const t = Ve(s), e = () => t().then(it), i = Gs(s);
|
|
802
|
-
return {
|
|
803
|
-
...i,
|
|
804
|
-
...s,
|
|
805
|
-
runtime: "browser",
|
|
806
|
-
defaultsMode: t,
|
|
807
|
-
bodyLengthChecker: s?.bodyLengthChecker ?? Ye,
|
|
808
|
-
defaultUserAgentProvider: s?.defaultUserAgentProvider ?? nt({ serviceId: i.serviceId, clientVersion: Bt.version }),
|
|
809
|
-
maxAttempts: s?.maxAttempts ?? Ze,
|
|
810
|
-
region: s?.region ?? rt("Region is missing"),
|
|
811
|
-
requestHandler: st.create(s?.requestHandler ?? e),
|
|
812
|
-
retryMode: s?.retryMode ?? (async () => (await e()).retryMode || Xe),
|
|
813
|
-
sha256: s?.sha256 ?? We,
|
|
814
|
-
streamCollector: s?.streamCollector ?? Qe,
|
|
815
|
-
useDualstackEndpoint: s?.useDualstackEndpoint ?? (() => Promise.resolve(tt)),
|
|
816
|
-
useFipsEndpoint: s?.useFipsEndpoint ?? (() => Promise.resolve(et))
|
|
817
|
-
};
|
|
818
|
-
}, qs = (s) => {
|
|
819
|
-
const t = s.httpAuthSchemes;
|
|
820
|
-
let e = s.httpAuthSchemeProvider, i = s.credentials;
|
|
821
|
-
return {
|
|
822
|
-
setHttpAuthScheme(n) {
|
|
823
|
-
const o = t.findIndex((r) => r.schemeId === n.schemeId);
|
|
824
|
-
o === -1 ? t.push(n) : t.splice(o, 1, n);
|
|
825
|
-
},
|
|
826
|
-
httpAuthSchemes() {
|
|
827
|
-
return t;
|
|
828
|
-
},
|
|
829
|
-
setHttpAuthSchemeProvider(n) {
|
|
830
|
-
e = n;
|
|
831
|
-
},
|
|
832
|
-
httpAuthSchemeProvider() {
|
|
833
|
-
return e;
|
|
834
|
-
},
|
|
835
|
-
setCredentials(n) {
|
|
836
|
-
i = n;
|
|
837
|
-
},
|
|
838
|
-
credentials() {
|
|
839
|
-
return i;
|
|
840
|
-
}
|
|
841
|
-
};
|
|
842
|
-
}, Bs = (s) => ({
|
|
843
|
-
httpAuthSchemes: s.httpAuthSchemes(),
|
|
844
|
-
httpAuthSchemeProvider: s.httpAuthSchemeProvider(),
|
|
845
|
-
credentials: s.credentials()
|
|
846
|
-
}), Ks = (s, t) => {
|
|
847
|
-
const e = Object.assign(ot(s), at(s), ct(s), qs(s));
|
|
848
|
-
return t.forEach((i) => i.configure(e)), Object.assign(s, dt(e), ut(e), pt(e), Bs(e));
|
|
849
|
-
};
|
|
850
|
-
class Qs extends lt {
|
|
851
|
-
config;
|
|
852
|
-
constructor(...[t]) {
|
|
853
|
-
const e = Js(t || {});
|
|
854
|
-
super(e), this.initConfig = e;
|
|
855
|
-
const i = Jt(e), n = ht(i), o = ft(n), r = mt(o), c = Rt(r), a = gt(c), p = Gt(a), d = Ks(p, t?.extensions || []);
|
|
856
|
-
this.config = d, this.middlewareStack.use(yt(this.config)), this.middlewareStack.use(St(this.config)), this.middlewareStack.use(Et(this.config)), this.middlewareStack.use(It(this.config)), this.middlewareStack.use(wt(this.config)), this.middlewareStack.use(xt(this.config)), this.middlewareStack.use(bt(this.config)), this.middlewareStack.use(Ct(this.config, {
|
|
857
|
-
httpAuthSchemeParametersProvider: Ut,
|
|
858
|
-
identityProviderConfigProvider: async (l) => new Pt({
|
|
859
|
-
"aws.auth#sigv4": l.credentials
|
|
860
|
-
})
|
|
861
|
-
})), this.middlewareStack.use(_t(this.config));
|
|
862
|
-
}
|
|
863
|
-
destroy() {
|
|
864
|
-
super.destroy();
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
class Ws extends fe.classBuilder().ep(ge).m(function(t, e, i, n) {
|
|
868
|
-
return [me(i, t.getEndpointParameterInstructions())];
|
|
869
|
-
}).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").sc(Ls).build() {
|
|
870
|
-
}
|
|
871
|
-
class Xs extends fe.classBuilder().ep(ge).m(function(t, e, i, n) {
|
|
872
|
-
return [me(i, t.getEndpointParameterInstructions())];
|
|
873
|
-
}).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").sc(Hs).build() {
|
|
874
|
-
}
|
|
875
|
-
export {
|
|
876
|
-
Qs as CognitoIdentityClient,
|
|
877
|
-
Ws as GetCredentialsForIdentityCommand,
|
|
878
|
-
Xs as GetIdCommand
|
|
879
|
-
};
|