dynamic-mui 4.0.0 → 4.0.1

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.
@@ -1,1169 +0,0 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, Et as o, G as s, H as c, I as l, J as u, M as d, Mt as ee, Nt as te, O as ne, Ot as f, P as re, Q as ie, R as ae, S as oe, T as se, Tt as ce, U as p, V as le, W as m, X as ue, Y as de, Z as fe, a as pe, at as me, b as he, ct as ge, dt as _e, et as ve, ft as ye, g as be, h as xe, i as Se, it as Ce, j as we, jt as Te, k as h, l as Ee, lt as De, m as Oe, n as ke, o as Ae, ot as g, p as je, pt as Me, q as _, r as Ne, rt as Pe, st as Fe, t as Ie, tt as v, u as Le, ut as Re, v as ze, w as Be, wt as Ve, x as He, y as Ue, z as We } from "./extensions-DZDYv2QS.mjs";
2
- import { n as Ge, t as Ke } from "./toUtf8.browser-BG3l2gyD.mjs";
3
- //#region node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js
4
- var qe = class extends s {
5
- async serializeRequest(e, t, n) {
6
- let r = this.serializer, i = {}, a = {}, o = await n.endpoint(), s = v.of(e?.input), c = s.getSchema(), l, u = t && typeof t == "object" ? t : {}, d = new Te({
7
- protocol: "",
8
- hostname: "",
9
- port: void 0,
10
- path: "/",
11
- fragment: void 0,
12
- query: i,
13
- headers: a,
14
- body: void 0
15
- });
16
- if (o && (this.updateServiceEndpoint(d, o), this.setHostPrefix(d, e, u)), u) {
17
- let e = s.getEventStreamMember();
18
- if (e) {
19
- if (u[e]) {
20
- let t = {};
21
- for (let [n, i] of s.structIterator()) n !== e && u[n] && (r.write(i, u[n]), t[n] = r.flush());
22
- l = await this.serializeEventStream({
23
- eventStream: u[e],
24
- requestSchema: s,
25
- initialRequest: t
26
- });
27
- }
28
- } else r.write(c, u), l = r.flush();
29
- }
30
- return d.headers = Object.assign(d.headers, a), d.query = i, d.body = l, d.method = "POST", d;
31
- }
32
- async deserializeResponse(e, t, n) {
33
- let r = this.deserializer, i = v.of(e.output), a = {};
34
- if (n.statusCode >= 300) {
35
- let i = await g(n.body, t);
36
- throw i.byteLength > 0 && Object.assign(a, await r.read(15, i)), await this.handleError(e, t, n, a, this.deserializeMetadata(n)), Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
37
- }
38
- for (let e in n.headers) {
39
- let t = n.headers[e];
40
- delete n.headers[e], n.headers[e.toLowerCase()] = t;
41
- }
42
- let o = i.getEventStreamMember();
43
- if (o) a[o] = await this.deserializeEventStream({
44
- response: n,
45
- responseSchema: i,
46
- initialResponseContainer: a
47
- });
48
- else {
49
- let e = await g(n.body, t);
50
- e.byteLength > 0 && Object.assign(a, await r.read(i, e));
51
- }
52
- return a.$metadata = this.deserializeMetadata(n), a;
53
- }
54
- }, Je = class {
55
- async sign(e, t, n) {
56
- return e;
57
- }
58
- };
59
- //#endregion
60
- //#region node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
61
- function Ye(e, t, n) {
62
- if (n?.source) {
63
- let e = n.source;
64
- if (typeof t == "number" && (t > 2 ** 53 - 1 || t < -(2 ** 53 - 1) || e !== String(t))) return e.includes(".") ? new _(e, "bigDecimal") : BigInt(e);
65
- }
66
- return t;
67
- }
68
- //#endregion
69
- //#region node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
70
- var Xe = (e, t) => i(e, t).then((e) => {
71
- if (e.length) try {
72
- return JSON.parse(e);
73
- } catch (t) {
74
- throw t?.name === "SyntaxError" && Object.defineProperty(t, "$responseBodyText", { value: e }), t;
75
- }
76
- return {};
77
- }), Ze = (e, t) => {
78
- let n = (e, t) => Object.keys(e).find((e) => e.toLowerCase() === t.toLowerCase()), r = (e) => {
79
- let t = e;
80
- return typeof t == "number" && (t = t.toString()), t.indexOf(",") >= 0 && (t = t.split(",")[0]), t.indexOf(":") >= 0 && (t = t.split(":")[0]), t.indexOf("#") >= 0 && (t = t.split("#")[1]), t;
81
- }, i = n(e.headers, "x-amzn-errortype");
82
- if (i !== void 0) return r(e.headers[i]);
83
- if (t && typeof t == "object") {
84
- let e = n(t, "code");
85
- if (e && t[e] !== void 0) return r(t[e]);
86
- if (t.__type !== void 0) return r(t.__type);
87
- }
88
- }, Qe = class extends h {
89
- settings;
90
- constructor(e) {
91
- super(), this.settings = e;
92
- }
93
- async read(e, t) {
94
- return this._read(e, typeof t == "string" ? JSON.parse(t, Ye) : await Xe(t, this.serdeContext));
95
- }
96
- readObject(e, t) {
97
- return this._read(e, t);
98
- }
99
- _read(t, n) {
100
- let r = typeof n == "object" && !!n, i = v.of(t);
101
- if (r) {
102
- if (i.isStructSchema()) {
103
- let e = n, t = i.isUnionSchema(), r = {}, a, { jsonName: o } = this.settings;
104
- o && (a = {});
105
- let s;
106
- t && (s = new ne(e, r));
107
- for (let [n, c] of i.structIterator()) {
108
- let i = n;
109
- o && (i = c.getMergedTraits().jsonName ?? i, a[i] = n), t && s.mark(i), e[i] != null && (r[n] = this._read(c, e[i]));
110
- }
111
- if (t) s.writeUnknown();
112
- else if (typeof e.__type == "string") for (let [t, n] of Object.entries(e)) {
113
- let e = o ? a[t] ?? t : t;
114
- e in r || (r[e] = n);
115
- }
116
- return r;
117
- }
118
- if (Array.isArray(n) && i.isListSchema()) {
119
- let e = i.getValueSchema(), t = [];
120
- for (let r of n) t.push(this._read(e, r));
121
- return t;
122
- }
123
- if (i.isMapSchema()) {
124
- let e = i.getValueSchema(), t = {};
125
- for (let [r, i] of Object.entries(n)) t[r] = this._read(e, i);
126
- return t;
127
- }
128
- }
129
- if (i.isBlobSchema() && typeof n == "string") return f(n);
130
- let a = i.getMergedTraits().mediaType;
131
- if (i.isStringSchema() && typeof n == "string" && a) return a === "application/json" || a.endsWith("+json") ? u.from(n) : n;
132
- if (i.isTimestampSchema() && n != null) switch (m(i, this.settings)) {
133
- case 5: return ie(n);
134
- case 6: return e(n);
135
- case 7: return fe(n);
136
- default: return console.warn("Missing timestamp format, parsing value with Date constructor:", n), new Date(n);
137
- }
138
- if (i.isBigIntegerSchema() && (typeof n == "number" || typeof n == "string")) return BigInt(n);
139
- if (i.isBigDecimalSchema() && n != null) {
140
- if (n instanceof _) return n;
141
- let e = n;
142
- return e.type === "bigDecimal" && "string" in e ? new _(e.string, e.type) : new _(String(n), "bigDecimal");
143
- }
144
- if (i.isNumericSchema() && typeof n == "string") {
145
- switch (n) {
146
- case "Infinity": return Infinity;
147
- case "-Infinity": return -Infinity;
148
- case "NaN": return NaN;
149
- }
150
- return n;
151
- }
152
- if (i.isDocumentSchema()) if (r) {
153
- let e = Array.isArray(n) ? [] : {};
154
- for (let [t, r] of Object.entries(n)) r instanceof _ ? e[t] = r : e[t] = this._read(i, r);
155
- return e;
156
- } else return structuredClone(n);
157
- return n;
158
- }
159
- }, y = "Ν", $e = class {
160
- values = /* @__PURE__ */ new Map();
161
- counter = 0;
162
- stage = 0;
163
- createReplacer() {
164
- if (this.stage === 1) throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");
165
- if (this.stage === 2) throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
166
- return this.stage = 1, (e, t) => {
167
- if (t instanceof _) {
168
- let e = `${y + "nv" + this.counter++}_` + t.string;
169
- return this.values.set(`"${e}"`, t.string), e;
170
- }
171
- if (typeof t == "bigint") {
172
- let e = t.toString(), n = `${y + "b" + this.counter++}_` + e;
173
- return this.values.set(`"${n}"`, e), n;
174
- }
175
- return t;
176
- };
177
- }
178
- replaceInJson(e) {
179
- if (this.stage === 0) throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
180
- if (this.stage === 2) throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
181
- if (this.stage = 2, this.counter === 0) return e;
182
- for (let [t, n] of this.values) e = e.replace(t, n);
183
- return e;
184
- }
185
- }, et = class extends h {
186
- settings;
187
- buffer;
188
- useReplacer = !1;
189
- rootSchema;
190
- constructor(e) {
191
- super(), this.settings = e;
192
- }
193
- write(e, t) {
194
- this.rootSchema = v.of(e), this.buffer = this._write(this.rootSchema, t);
195
- }
196
- writeDiscriminatedDocument(e, t) {
197
- this.write(e, t), typeof this.buffer == "object" && (this.buffer.__type = v.of(e).getName(!0));
198
- }
199
- flush() {
200
- let { rootSchema: e, useReplacer: t } = this;
201
- if (this.rootSchema = void 0, this.useReplacer = !1, e?.isStructSchema() || e?.isDocumentSchema()) {
202
- if (!t) return JSON.stringify(this.buffer);
203
- let e = new $e();
204
- return e.replaceInJson(JSON.stringify(this.buffer, e.createReplacer(), 0));
205
- }
206
- return this.buffer;
207
- }
208
- _write(e, t, n) {
209
- let r = typeof t == "object" && !!t, i = v.of(e);
210
- if (r) {
211
- if (i.isStructSchema()) {
212
- let e = t, n = {}, { jsonName: r } = this.settings, a;
213
- r && (a = {});
214
- for (let [t, o] of i.structIterator()) {
215
- let s = this._write(o, e[t], i);
216
- if (s !== void 0) {
217
- let e = t;
218
- r && (e = o.getMergedTraits().jsonName ?? t, a[t] = e), n[e] = s;
219
- }
220
- }
221
- if (i.isUnionSchema() && Object.keys(n).length === 0) {
222
- let { $unknown: t } = e;
223
- if (Array.isArray(t)) {
224
- let [e, r] = t;
225
- n[e] = this._write(15, r);
226
- }
227
- } else if (typeof e.__type == "string") for (let [t, i] of Object.entries(e)) {
228
- let e = r ? a[t] ?? t : t;
229
- e in n || (n[e] = this._write(15, i));
230
- }
231
- return n;
232
- }
233
- if (Array.isArray(t) && i.isListSchema()) {
234
- let e = i.getValueSchema(), n = [], r = !!i.getMergedTraits().sparse;
235
- for (let i of t) (r || i != null) && n.push(this._write(e, i));
236
- return n;
237
- }
238
- if (i.isMapSchema()) {
239
- let e = i.getValueSchema(), n = {}, r = !!i.getMergedTraits().sparse;
240
- for (let [i, a] of Object.entries(t)) (r || a != null) && (n[i] = this._write(e, a));
241
- return n;
242
- }
243
- if (t instanceof Uint8Array && (i.isBlobSchema() || i.isDocumentSchema())) return i === this.rootSchema ? t : (this.serdeContext?.base64Encoder ?? o)(t);
244
- if (t instanceof Date && (i.isTimestampSchema() || i.isDocumentSchema())) switch (m(i, this.settings)) {
245
- case 5: return t.toISOString().replace(".000Z", "Z");
246
- case 6: return ue(t);
247
- case 7: return t.getTime() / 1e3;
248
- default: return console.warn("Missing timestamp format, using epoch seconds", t), t.getTime() / 1e3;
249
- }
250
- t instanceof _ && (this.useReplacer = !0);
251
- }
252
- if (!(t === null && n?.isStructSchema())) {
253
- if (i.isStringSchema()) {
254
- if (t === void 0 && i.isIdempotencyToken()) return de();
255
- let e = i.getMergedTraits().mediaType;
256
- return t != null && e && (e === "application/json" || e.endsWith("+json")) ? u.from(t) : t;
257
- }
258
- if (typeof t == "number" && i.isNumericSchema()) return Math.abs(t) === Infinity || isNaN(t) ? String(t) : t;
259
- if (typeof t == "string" && i.isBlobSchema()) return i === this.rootSchema ? t : (this.serdeContext?.base64Encoder ?? o)(t);
260
- if (typeof t == "bigint" && (this.useReplacer = !0), i.isDocumentSchema()) if (r) {
261
- let e = Array.isArray(t) ? [] : {};
262
- for (let [n, r] of Object.entries(t)) r instanceof _ ? (this.useReplacer = !0, e[n] = r) : e[n] = this._write(i, r);
263
- return e;
264
- } else return structuredClone(t);
265
- return t;
266
- }
267
- }
268
- }, tt = class extends h {
269
- settings;
270
- constructor(e) {
271
- super(), this.settings = e;
272
- }
273
- createSerializer() {
274
- let e = new et(this.settings);
275
- return e.setSerdeContext(this.serdeContext), e;
276
- }
277
- createDeserializer() {
278
- let e = new Qe(this.settings);
279
- return e.setSerdeContext(this.serdeContext), e;
280
- }
281
- }, nt = class extends qe {
282
- serializer;
283
- deserializer;
284
- serviceTarget;
285
- codec;
286
- mixin;
287
- awsQueryCompatible;
288
- constructor({ defaultNamespace: e, errorTypeRegistries: n, serviceTarget: r, awsQueryCompatible: i, jsonCodec: a }) {
289
- super({
290
- defaultNamespace: e,
291
- errorTypeRegistries: n
292
- }), this.serviceTarget = r, this.codec = a ?? new tt({
293
- timestampFormat: {
294
- useTrait: !0,
295
- default: 7
296
- },
297
- jsonName: !1
298
- }), this.serializer = this.codec.createSerializer(), this.deserializer = this.codec.createDeserializer(), this.awsQueryCompatible = !!i, this.mixin = new t(this.awsQueryCompatible);
299
- }
300
- async serializeRequest(e, t, n) {
301
- let r = await super.serializeRequest(e, t, n);
302
- return r.path.endsWith("/") || (r.path += "/"), Object.assign(r.headers, {
303
- "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
304
- "x-amz-target": `${this.serviceTarget}.${e.name}`
305
- }), this.awsQueryCompatible && (r.headers["x-amzn-query-mode"] = "true"), (me(e.input) === "unit" || !r.body) && (r.body = "{}"), r;
306
- }
307
- getPayloadCodec() {
308
- return this.codec;
309
- }
310
- async handleError(e, t, n, r, i) {
311
- this.awsQueryCompatible && this.mixin.setQueryCompatError(r, n);
312
- let a = Ze(n, r) ?? "Unknown";
313
- this.mixin.compose(this.compositeErrorRegistry, a, this.options.defaultNamespace);
314
- let { errorSchema: o, errorMetadata: s } = await this.mixin.getErrorSchemaOrThrowBaseException(a, this.options.defaultNamespace, n, r, i, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : void 0), c = v.of(o), l = r.message ?? r.Message ?? "UnknownError", u = new ((this.compositeErrorRegistry.getErrorCtor(o)) ?? Error)(l), d = {};
315
- for (let [e, t] of c.structIterator()) r[e] != null && (d[e] = this.codec.createDeserializer().readObject(t, r[e]));
316
- throw this.awsQueryCompatible && this.mixin.queryCompatOutput(r, d), this.mixin.decorateServiceException(Object.assign(u, s, {
317
- $fault: c.getMergedTraits().error,
318
- message: l
319
- }, d), r);
320
- }
321
- }, rt = class extends nt {
322
- constructor({ defaultNamespace: e, errorTypeRegistries: t, serviceTarget: n, awsQueryCompatible: r, jsonCodec: i }) {
323
- super({
324
- defaultNamespace: e,
325
- errorTypeRegistries: t,
326
- serviceTarget: n,
327
- awsQueryCompatible: r,
328
- jsonCodec: i
329
- });
330
- }
331
- getShapeId() {
332
- return "aws.protocols#awsJson1_1";
333
- }
334
- getJsonRpcVersion() {
335
- return "1.1";
336
- }
337
- getDefaultContentType() {
338
- return "application/x-amz-json-1.1";
339
- }
340
- }, it = async (e, t, n) => ({
341
- operation: Me(t).operation,
342
- region: await ye(e.region)() || (() => {
343
- throw Error("expected `region` to be configured for `aws.auth#sigv4`");
344
- })()
345
- });
346
- function at(e) {
347
- return {
348
- schemeId: "aws.auth#sigv4",
349
- signingProperties: {
350
- name: "cognito-identity",
351
- region: e.region
352
- },
353
- propertiesExtractor: (e, t) => ({ signingProperties: {
354
- config: e,
355
- context: t
356
- } })
357
- };
358
- }
359
- function b(e) {
360
- return { schemeId: "smithy.api#noAuth" };
361
- }
362
- var ot = (e) => {
363
- let t = [];
364
- switch (e.operation) {
365
- case "GetCredentialsForIdentity":
366
- t.push(b(e));
367
- break;
368
- case "GetId":
369
- t.push(b(e));
370
- break;
371
- default: t.push(at(e));
372
- }
373
- return t;
374
- }, st = (e) => {
375
- let t = Ee(e);
376
- return Object.assign(t, { authSchemePreference: ye(e.authSchemePreference ?? []) });
377
- }, ct = (e) => Object.assign(e, {
378
- useDualstackEndpoint: e.useDualstackEndpoint ?? !1,
379
- useFipsEndpoint: e.useFipsEndpoint ?? !1,
380
- defaultSigningName: "cognito-identity"
381
- }), x = {
382
- UseFIPS: {
383
- type: "builtInParams",
384
- name: "useFipsEndpoint"
385
- },
386
- Endpoint: {
387
- type: "builtInParams",
388
- name: "endpoint"
389
- },
390
- Region: {
391
- type: "builtInParams",
392
- name: "region"
393
- },
394
- UseDualStack: {
395
- type: "builtInParams",
396
- name: "useDualstackEndpoint"
397
- }
398
- }, lt = {
399
- name: "@aws-sdk/nested-clients",
400
- version: "3.996.19",
401
- description: "Nested clients for AWS SDK packages.",
402
- main: "./dist-cjs/index.js",
403
- module: "./dist-es/index.js",
404
- types: "./dist-types/index.d.ts",
405
- scripts: {
406
- build: "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
407
- "build:cjs": "node ../../scripts/compilation/inline nested-clients",
408
- "build:es": "tsc -p tsconfig.es.json",
409
- "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
410
- "build:types": "tsc -p tsconfig.types.json",
411
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
412
- clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
413
- lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
414
- test: "yarn g:vitest run",
415
- "test:watch": "yarn g:vitest watch"
416
- },
417
- engines: { node: ">=20.0.0" },
418
- sideEffects: !1,
419
- author: {
420
- name: "AWS SDK for JavaScript Team",
421
- url: "https://aws.amazon.com/javascript/"
422
- },
423
- license: "Apache-2.0",
424
- dependencies: {
425
- "@aws-crypto/sha256-browser": "5.2.0",
426
- "@aws-crypto/sha256-js": "5.2.0",
427
- "@aws-sdk/core": "^3.973.27",
428
- "@aws-sdk/middleware-host-header": "^3.972.9",
429
- "@aws-sdk/middleware-logger": "^3.972.9",
430
- "@aws-sdk/middleware-recursion-detection": "^3.972.10",
431
- "@aws-sdk/middleware-user-agent": "^3.972.29",
432
- "@aws-sdk/region-config-resolver": "^3.972.11",
433
- "@aws-sdk/types": "^3.973.7",
434
- "@aws-sdk/util-endpoints": "^3.996.6",
435
- "@aws-sdk/util-user-agent-browser": "^3.972.9",
436
- "@aws-sdk/util-user-agent-node": "^3.973.15",
437
- "@smithy/config-resolver": "^4.4.14",
438
- "@smithy/core": "^3.23.14",
439
- "@smithy/fetch-http-handler": "^5.3.16",
440
- "@smithy/hash-node": "^4.2.13",
441
- "@smithy/invalid-dependency": "^4.2.13",
442
- "@smithy/middleware-content-length": "^4.2.13",
443
- "@smithy/middleware-endpoint": "^4.4.29",
444
- "@smithy/middleware-retry": "^4.5.0",
445
- "@smithy/middleware-serde": "^4.2.17",
446
- "@smithy/middleware-stack": "^4.2.13",
447
- "@smithy/node-config-provider": "^4.3.13",
448
- "@smithy/node-http-handler": "^4.5.2",
449
- "@smithy/protocol-http": "^5.3.13",
450
- "@smithy/smithy-client": "^4.12.9",
451
- "@smithy/types": "^4.14.0",
452
- "@smithy/url-parser": "^4.2.13",
453
- "@smithy/util-base64": "^4.3.2",
454
- "@smithy/util-body-length-browser": "^4.2.2",
455
- "@smithy/util-body-length-node": "^4.2.3",
456
- "@smithy/util-defaults-mode-browser": "^4.3.45",
457
- "@smithy/util-defaults-mode-node": "^4.2.49",
458
- "@smithy/util-endpoints": "^3.3.4",
459
- "@smithy/util-middleware": "^4.2.13",
460
- "@smithy/util-retry": "^4.3.0",
461
- "@smithy/util-utf8": "^4.2.2",
462
- tslib: "^2.6.2"
463
- },
464
- devDependencies: {
465
- concurrently: "7.0.0",
466
- "downlevel-dts": "0.10.1",
467
- premove: "4.0.0",
468
- typescript: "~5.8.3"
469
- },
470
- typesVersions: { "<4.5": { "dist-types/*": ["dist-types/ts3.4/*"] } },
471
- files: [
472
- "./cognito-identity.d.ts",
473
- "./cognito-identity.js",
474
- "./signin.d.ts",
475
- "./signin.js",
476
- "./sso-oidc.d.ts",
477
- "./sso-oidc.js",
478
- "./sso.d.ts",
479
- "./sso.js",
480
- "./sts.d.ts",
481
- "./sts.js",
482
- "dist-*/**"
483
- ],
484
- browser: {
485
- "./dist-es/submodules/cognito-identity/runtimeConfig": "./dist-es/submodules/cognito-identity/runtimeConfig.browser",
486
- "./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
487
- "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
488
- "./dist-es/submodules/sso/runtimeConfig": "./dist-es/submodules/sso/runtimeConfig.browser",
489
- "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
490
- },
491
- "react-native": {},
492
- homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
493
- repository: {
494
- type: "git",
495
- url: "https://github.com/aws/aws-sdk-js-v3.git",
496
- directory: "packages/nested-clients"
497
- },
498
- exports: {
499
- "./package.json": "./package.json",
500
- "./sso-oidc": {
501
- types: "./dist-types/submodules/sso-oidc/index.d.ts",
502
- module: "./dist-es/submodules/sso-oidc/index.js",
503
- node: "./dist-cjs/submodules/sso-oidc/index.js",
504
- import: "./dist-es/submodules/sso-oidc/index.js",
505
- require: "./dist-cjs/submodules/sso-oidc/index.js"
506
- },
507
- "./sts": {
508
- types: "./dist-types/submodules/sts/index.d.ts",
509
- module: "./dist-es/submodules/sts/index.js",
510
- node: "./dist-cjs/submodules/sts/index.js",
511
- import: "./dist-es/submodules/sts/index.js",
512
- require: "./dist-cjs/submodules/sts/index.js"
513
- },
514
- "./signin": {
515
- types: "./dist-types/submodules/signin/index.d.ts",
516
- module: "./dist-es/submodules/signin/index.js",
517
- node: "./dist-cjs/submodules/signin/index.js",
518
- import: "./dist-es/submodules/signin/index.js",
519
- require: "./dist-cjs/submodules/signin/index.js"
520
- },
521
- "./cognito-identity": {
522
- types: "./dist-types/submodules/cognito-identity/index.d.ts",
523
- module: "./dist-es/submodules/cognito-identity/index.js",
524
- node: "./dist-cjs/submodules/cognito-identity/index.js",
525
- import: "./dist-es/submodules/cognito-identity/index.js",
526
- require: "./dist-cjs/submodules/cognito-identity/index.js"
527
- },
528
- "./sso": {
529
- types: "./dist-types/submodules/sso/index.d.ts",
530
- module: "./dist-es/submodules/sso/index.js",
531
- node: "./dist-cjs/submodules/sso/index.js",
532
- import: "./dist-es/submodules/sso/index.js",
533
- require: "./dist-cjs/submodules/sso/index.js"
534
- }
535
- }
536
- }, S = "required", C = "fn", w = "argv", T = "ref", E = !0, D = "isSet", O = "booleanEquals", k = "error", A = "endpoint", j = "tree", M = "PartitionResult", N = "getAttr", P = "stringEquals", F = {
537
- [S]: !1,
538
- type: "string"
539
- }, I = {
540
- [S]: !0,
541
- default: !1,
542
- type: "boolean"
543
- }, L = { [T]: "Endpoint" }, R = {
544
- [C]: O,
545
- [w]: [{ [T]: "UseFIPS" }, !0]
546
- }, z = {
547
- [C]: O,
548
- [w]: [{ [T]: "UseDualStack" }, !0]
549
- }, B = {}, V = { [T]: "Region" }, H = {
550
- [C]: N,
551
- [w]: [{ [T]: M }, "supportsFIPS"]
552
- }, U = { [T]: M }, W = {
553
- [C]: O,
554
- [w]: [!0, {
555
- [C]: N,
556
- [w]: [U, "supportsDualStack"]
557
- }]
558
- }, ut = [R], dt = [z], ft = [V], pt = {
559
- version: "1.0",
560
- parameters: {
561
- Region: F,
562
- UseDualStack: I,
563
- UseFIPS: I,
564
- Endpoint: F
565
- },
566
- rules: [
567
- {
568
- conditions: [{
569
- [C]: D,
570
- [w]: [L]
571
- }],
572
- rules: [
573
- {
574
- conditions: ut,
575
- error: "Invalid Configuration: FIPS and custom endpoint are not supported",
576
- type: k
577
- },
578
- {
579
- conditions: dt,
580
- error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
581
- type: k
582
- },
583
- {
584
- endpoint: {
585
- url: L,
586
- properties: B,
587
- headers: B
588
- },
589
- type: A
590
- }
591
- ],
592
- type: j
593
- },
594
- {
595
- conditions: [{
596
- [C]: D,
597
- [w]: ft
598
- }],
599
- rules: [{
600
- conditions: [{
601
- [C]: "aws.partition",
602
- [w]: ft,
603
- assign: M
604
- }],
605
- rules: [
606
- {
607
- conditions: [R, z],
608
- rules: [{
609
- conditions: [{
610
- [C]: O,
611
- [w]: [E, H]
612
- }, W],
613
- rules: [
614
- {
615
- conditions: [{
616
- [C]: P,
617
- [w]: [V, "us-east-1"]
618
- }],
619
- endpoint: {
620
- url: "https://cognito-identity-fips.us-east-1.amazonaws.com",
621
- properties: B,
622
- headers: B
623
- },
624
- type: A
625
- },
626
- {
627
- conditions: [{
628
- [C]: P,
629
- [w]: [V, "us-east-2"]
630
- }],
631
- endpoint: {
632
- url: "https://cognito-identity-fips.us-east-2.amazonaws.com",
633
- properties: B,
634
- headers: B
635
- },
636
- type: A
637
- },
638
- {
639
- conditions: [{
640
- [C]: P,
641
- [w]: [V, "us-west-1"]
642
- }],
643
- endpoint: {
644
- url: "https://cognito-identity-fips.us-west-1.amazonaws.com",
645
- properties: B,
646
- headers: B
647
- },
648
- type: A
649
- },
650
- {
651
- conditions: [{
652
- [C]: P,
653
- [w]: [V, "us-west-2"]
654
- }],
655
- endpoint: {
656
- url: "https://cognito-identity-fips.us-west-2.amazonaws.com",
657
- properties: B,
658
- headers: B
659
- },
660
- type: A
661
- },
662
- {
663
- endpoint: {
664
- url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
665
- properties: B,
666
- headers: B
667
- },
668
- type: A
669
- }
670
- ],
671
- type: j
672
- }, {
673
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
674
- type: k
675
- }],
676
- type: j
677
- },
678
- {
679
- conditions: ut,
680
- rules: [{
681
- conditions: [{
682
- [C]: O,
683
- [w]: [H, E]
684
- }],
685
- rules: [{
686
- endpoint: {
687
- url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",
688
- properties: B,
689
- headers: B
690
- },
691
- type: A
692
- }],
693
- type: j
694
- }, {
695
- error: "FIPS is enabled but this partition does not support FIPS",
696
- type: k
697
- }],
698
- type: j
699
- },
700
- {
701
- conditions: dt,
702
- rules: [{
703
- conditions: [W],
704
- rules: [{
705
- conditions: [{
706
- [C]: P,
707
- [w]: ["aws", {
708
- [C]: N,
709
- [w]: [U, "name"]
710
- }]
711
- }],
712
- endpoint: {
713
- url: "https://cognito-identity.{Region}.amazonaws.com",
714
- properties: B,
715
- headers: B
716
- },
717
- type: A
718
- }, {
719
- endpoint: {
720
- url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",
721
- properties: B,
722
- headers: B
723
- },
724
- type: A
725
- }],
726
- type: j
727
- }, {
728
- error: "DualStack is enabled but this partition does not support DualStack",
729
- type: k
730
- }],
731
- type: j
732
- },
733
- {
734
- endpoint: {
735
- url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",
736
- properties: B,
737
- headers: B
738
- },
739
- type: A
740
- }
741
- ],
742
- type: j
743
- }],
744
- type: j
745
- },
746
- {
747
- error: "Invalid Configuration: Missing Region",
748
- type: k
749
- }
750
- ]
751
- }, mt = new se({
752
- size: 50,
753
- params: [
754
- "Endpoint",
755
- "Region",
756
- "UseDualStack",
757
- "UseFIPS"
758
- ]
759
- }), ht = (e, t = {}) => mt.get(e, () => r(pt, {
760
- endpointParams: e,
761
- logger: t.logger
762
- }));
763
- Be.aws = oe;
764
- //#endregion
765
- //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js
766
- var G = class e extends c {
767
- constructor(t) {
768
- super(t), Object.setPrototypeOf(this, e.prototype);
769
- }
770
- }, gt = class e extends G {
771
- name = "ExternalServiceException";
772
- $fault = "client";
773
- constructor(t) {
774
- super({
775
- name: "ExternalServiceException",
776
- $fault: "client",
777
- ...t
778
- }), Object.setPrototypeOf(this, e.prototype);
779
- }
780
- }, _t = class e extends G {
781
- name = "InternalErrorException";
782
- $fault = "server";
783
- constructor(t) {
784
- super({
785
- name: "InternalErrorException",
786
- $fault: "server",
787
- ...t
788
- }), Object.setPrototypeOf(this, e.prototype);
789
- }
790
- }, vt = class e extends G {
791
- name = "InvalidIdentityPoolConfigurationException";
792
- $fault = "client";
793
- constructor(t) {
794
- super({
795
- name: "InvalidIdentityPoolConfigurationException",
796
- $fault: "client",
797
- ...t
798
- }), Object.setPrototypeOf(this, e.prototype);
799
- }
800
- }, yt = class e extends G {
801
- name = "InvalidParameterException";
802
- $fault = "client";
803
- constructor(t) {
804
- super({
805
- name: "InvalidParameterException",
806
- $fault: "client",
807
- ...t
808
- }), Object.setPrototypeOf(this, e.prototype);
809
- }
810
- }, bt = class e extends G {
811
- name = "NotAuthorizedException";
812
- $fault = "client";
813
- constructor(t) {
814
- super({
815
- name: "NotAuthorizedException",
816
- $fault: "client",
817
- ...t
818
- }), Object.setPrototypeOf(this, e.prototype);
819
- }
820
- }, xt = class e extends G {
821
- name = "ResourceConflictException";
822
- $fault = "client";
823
- constructor(t) {
824
- super({
825
- name: "ResourceConflictException",
826
- $fault: "client",
827
- ...t
828
- }), Object.setPrototypeOf(this, e.prototype);
829
- }
830
- }, St = class e extends G {
831
- name = "ResourceNotFoundException";
832
- $fault = "client";
833
- constructor(t) {
834
- super({
835
- name: "ResourceNotFoundException",
836
- $fault: "client",
837
- ...t
838
- }), Object.setPrototypeOf(this, e.prototype);
839
- }
840
- }, Ct = class e extends G {
841
- name = "TooManyRequestsException";
842
- $fault = "client";
843
- constructor(t) {
844
- super({
845
- name: "TooManyRequestsException",
846
- $fault: "client",
847
- ...t
848
- }), Object.setPrototypeOf(this, e.prototype);
849
- }
850
- }, wt = class e extends G {
851
- name = "LimitExceededException";
852
- $fault = "client";
853
- constructor(t) {
854
- super({
855
- name: "LimitExceededException",
856
- $fault: "client",
857
- ...t
858
- }), Object.setPrototypeOf(this, e.prototype);
859
- }
860
- }, Tt = "AccountId", Et = "AccessKeyId", Dt = "Credentials", Ot = "CustomRoleArn", kt = "Expiration", At = "ExternalServiceException", jt = "GetCredentialsForIdentity", Mt = "GetCredentialsForIdentityInput", Nt = "GetCredentialsForIdentityResponse", Pt = "GetId", Ft = "GetIdInput", It = "GetIdResponse", Lt = "InternalErrorException", K = "IdentityId", Rt = "InvalidIdentityPoolConfigurationException", zt = "InvalidParameterException", Bt = "IdentityPoolId", Vt = "IdentityProviderToken", Ht = "Logins", Ut = "LimitExceededException", Wt = "LoginsMap", Gt = "NotAuthorizedException", Kt = "ResourceConflictException", qt = "ResourceNotFoundException", Jt = "SecretKey", Yt = "SecretKeyString", Xt = "SessionToken", Zt = "TooManyRequestsException", q = "client", J = "error", Y = "httpError", X = "message", Qt = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity", $t = "server", Z = "com.amazonaws.cognitoidentity", en = ve.for(Qt), tn = [
861
- -3,
862
- Qt,
863
- "CognitoIdentityServiceException",
864
- 0,
865
- [],
866
- []
867
- ];
868
- en.registerError(tn, G);
869
- var Q = ve.for(Z), nn = [
870
- -3,
871
- Z,
872
- At,
873
- {
874
- [J]: q,
875
- [Y]: 400
876
- },
877
- [X],
878
- [0]
879
- ];
880
- Q.registerError(nn, gt);
881
- var rn = [
882
- -3,
883
- Z,
884
- Lt,
885
- { [J]: $t },
886
- [X],
887
- [0]
888
- ];
889
- Q.registerError(rn, _t);
890
- var an = [
891
- -3,
892
- Z,
893
- Rt,
894
- {
895
- [J]: q,
896
- [Y]: 400
897
- },
898
- [X],
899
- [0]
900
- ];
901
- Q.registerError(an, vt);
902
- var on = [
903
- -3,
904
- Z,
905
- zt,
906
- {
907
- [J]: q,
908
- [Y]: 400
909
- },
910
- [X],
911
- [0]
912
- ];
913
- Q.registerError(on, yt);
914
- var sn = [
915
- -3,
916
- Z,
917
- Ut,
918
- {
919
- [J]: q,
920
- [Y]: 400
921
- },
922
- [X],
923
- [0]
924
- ];
925
- Q.registerError(sn, wt);
926
- var cn = [
927
- -3,
928
- Z,
929
- Gt,
930
- {
931
- [J]: q,
932
- [Y]: 403
933
- },
934
- [X],
935
- [0]
936
- ];
937
- Q.registerError(cn, bt);
938
- var ln = [
939
- -3,
940
- Z,
941
- Kt,
942
- {
943
- [J]: q,
944
- [Y]: 409
945
- },
946
- [X],
947
- [0]
948
- ];
949
- Q.registerError(ln, xt);
950
- var un = [
951
- -3,
952
- Z,
953
- qt,
954
- {
955
- [J]: q,
956
- [Y]: 404
957
- },
958
- [X],
959
- [0]
960
- ];
961
- Q.registerError(un, St);
962
- var dn = [
963
- -3,
964
- Z,
965
- Zt,
966
- {
967
- [J]: q,
968
- [Y]: 429
969
- },
970
- [X],
971
- [0]
972
- ];
973
- Q.registerError(dn, Ct);
974
- var fn = [en, Q], pn = [
975
- 0,
976
- Z,
977
- Vt,
978
- 8,
979
- 0
980
- ], mn = [
981
- 0,
982
- Z,
983
- Yt,
984
- 8,
985
- 0
986
- ], hn = [
987
- 3,
988
- Z,
989
- Dt,
990
- 0,
991
- [
992
- Et,
993
- Jt,
994
- Xt,
995
- kt
996
- ],
997
- [
998
- 0,
999
- [() => mn, 0],
1000
- 0,
1001
- 4
1002
- ]
1003
- ], gn = [
1004
- 3,
1005
- Z,
1006
- Mt,
1007
- 0,
1008
- [
1009
- K,
1010
- Ht,
1011
- Ot
1012
- ],
1013
- [
1014
- 0,
1015
- [() => $, 0],
1016
- 0
1017
- ],
1018
- 1
1019
- ], _n = [
1020
- 3,
1021
- Z,
1022
- Nt,
1023
- 0,
1024
- [K, Dt],
1025
- [0, [() => hn, 0]]
1026
- ], vn = [
1027
- 3,
1028
- Z,
1029
- Ft,
1030
- 0,
1031
- [
1032
- Bt,
1033
- Tt,
1034
- Ht
1035
- ],
1036
- [
1037
- 0,
1038
- 0,
1039
- [() => $, 0]
1040
- ],
1041
- 1
1042
- ], yn = [
1043
- 3,
1044
- Z,
1045
- It,
1046
- 0,
1047
- [K],
1048
- [0]
1049
- ], $ = [
1050
- 2,
1051
- Z,
1052
- Wt,
1053
- 0,
1054
- [0, 0],
1055
- [() => pn, 0]
1056
- ], bn = [
1057
- 9,
1058
- Z,
1059
- jt,
1060
- 0,
1061
- () => gn,
1062
- () => _n
1063
- ], xn = [
1064
- 9,
1065
- Z,
1066
- Pt,
1067
- 0,
1068
- () => vn,
1069
- () => yn
1070
- ], Sn = (e) => ({
1071
- apiVersion: "2014-06-30",
1072
- base64Decoder: e?.base64Decoder ?? f,
1073
- base64Encoder: e?.base64Encoder ?? o,
1074
- disableHostPrefix: e?.disableHostPrefix ?? !1,
1075
- endpointProvider: e?.endpointProvider ?? ht,
1076
- extensions: e?.extensions ?? [],
1077
- httpAuthSchemeProvider: e?.httpAuthSchemeProvider ?? ot,
1078
- httpAuthSchemes: e?.httpAuthSchemes ?? [{
1079
- schemeId: "aws.auth#sigv4",
1080
- identityProvider: (e) => e.getIdentityProvider("aws.auth#sigv4"),
1081
- signer: new Le()
1082
- }, {
1083
- schemeId: "smithy.api#noAuth",
1084
- identityProvider: (e) => e.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
1085
- signer: new Je()
1086
- }],
1087
- logger: e?.logger ?? new ae(),
1088
- protocol: e?.protocol ?? rt,
1089
- protocolSettings: e?.protocolSettings ?? {
1090
- defaultNamespace: "com.amazonaws.cognitoidentity",
1091
- errorTypeRegistries: fn,
1092
- xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/",
1093
- version: "2014-06-30",
1094
- serviceTarget: "AWSCognitoIdentityService"
1095
- },
1096
- serviceId: e?.serviceId ?? "Cognito Identity",
1097
- urlParser: e?.urlParser ?? Ce,
1098
- utf8Decoder: e?.utf8Decoder ?? Ge,
1099
- utf8Encoder: e?.utf8Encoder ?? Ke
1100
- }), Cn = (e) => {
1101
- let t = Ne(e), n = () => t().then(le), r = Sn(e);
1102
- return {
1103
- ...r,
1104
- ...e,
1105
- runtime: "browser",
1106
- defaultsMode: t,
1107
- bodyLengthChecker: e?.bodyLengthChecker ?? we,
1108
- defaultUserAgentProvider: e?.defaultUserAgentProvider ?? pe({
1109
- serviceId: r.serviceId,
1110
- clientVersion: lt.version
1111
- }),
1112
- maxAttempts: e?.maxAttempts ?? 3,
1113
- region: e?.region ?? Se("Region is missing"),
1114
- requestHandler: ce.create(e?.requestHandler ?? n),
1115
- retryMode: e?.retryMode ?? (async () => (await n()).retryMode || He),
1116
- sha256: e?.sha256 ?? Ae,
1117
- streamCollector: e?.streamCollector ?? Ve,
1118
- useDualstackEndpoint: e?.useDualstackEndpoint ?? (() => Promise.resolve(!1)),
1119
- useFipsEndpoint: e?.useFipsEndpoint ?? (() => Promise.resolve(!1))
1120
- };
1121
- }, wn = (e) => {
1122
- let t = e.httpAuthSchemes, n = e.httpAuthSchemeProvider, r = e.credentials;
1123
- return {
1124
- setHttpAuthScheme(e) {
1125
- let n = t.findIndex((t) => t.schemeId === e.schemeId);
1126
- n === -1 ? t.push(e) : t.splice(n, 1, e);
1127
- },
1128
- httpAuthSchemes() {
1129
- return t;
1130
- },
1131
- setHttpAuthSchemeProvider(e) {
1132
- n = e;
1133
- },
1134
- httpAuthSchemeProvider() {
1135
- return n;
1136
- },
1137
- setCredentials(e) {
1138
- r = e;
1139
- },
1140
- credentials() {
1141
- return r;
1142
- }
1143
- };
1144
- }, Tn = (e) => ({
1145
- httpAuthSchemes: e.httpAuthSchemes(),
1146
- httpAuthSchemeProvider: e.httpAuthSchemeProvider(),
1147
- credentials: e.credentials()
1148
- }), En = (e, t) => {
1149
- let r = Object.assign(Ie(e), We(e), ee(e), wn(e));
1150
- return t.forEach((e) => e.configure(r)), Object.assign(e, ke(r), n(r), te(r), Tn(r));
1151
- }, Dn = class extends Fe {
1152
- config;
1153
- constructor(...[e]) {
1154
- let t = Cn(e || {});
1155
- super(t), this.initConfig = t, this.config = En(st(xe(_e(Ue(Oe(a(ct(t))))))), e?.extensions || []), this.middlewareStack.use(Pe(this.config)), this.middlewareStack.use(he(this.config)), this.middlewareStack.use(je(this.config)), this.middlewareStack.use(ze(this.config)), this.middlewareStack.use(Re(this.config)), this.middlewareStack.use(De(this.config)), this.middlewareStack.use(ge(this.config)), this.middlewareStack.use(l(this.config, {
1156
- httpAuthSchemeParametersProvider: it,
1157
- identityProviderConfigProvider: async (e) => new d({ "aws.auth#sigv4": e.credentials })
1158
- })), this.middlewareStack.use(re(this.config));
1159
- }
1160
- destroy() {
1161
- super.destroy();
1162
- }
1163
- }, On = class extends p.classBuilder().ep(x).m(function(e, t, n, r) {
1164
- return [be(n, e.getEndpointParameterInstructions())];
1165
- }).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").sc(bn).build() {}, kn = class extends p.classBuilder().ep(x).m(function(e, t, n, r) {
1166
- return [be(n, e.getEndpointParameterInstructions())];
1167
- }).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").sc(xn).build() {};
1168
- //#endregion
1169
- export { Dn as CognitoIdentityClient, On as GetCredentialsForIdentityCommand, kn as GetIdCommand };