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