@semiont/graph 0.5.20 → 0.5.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/{chunk-J2GNAAZA.js → chunk-7WLIHNPO.js} +19 -750
  2. package/dist/chunk-7WLIHNPO.js.map +1 -0
  3. package/dist/{chunk-WUOPYF3V.js → chunk-7X77XSVD.js} +7 -7
  4. package/dist/{chunk-WUOPYF3V.js.map → chunk-7X77XSVD.js.map} +1 -1
  5. package/dist/{chunk-L7UMT7TC.js → chunk-AJ4W3DS7.js} +5 -3
  6. package/dist/{chunk-L7UMT7TC.js.map → chunk-AJ4W3DS7.js.map} +1 -1
  7. package/dist/{chunk-JJUYBZ5C.js → chunk-FR442V6O.js} +3 -3
  8. package/dist/{chunk-UN64BKHA.js → chunk-GPJBZ6EG.js} +746 -3
  9. package/dist/chunk-GPJBZ6EG.js.map +1 -0
  10. package/dist/{chunk-IZRDH6ZA.js → chunk-NO67W7EF.js} +222 -55
  11. package/dist/chunk-NO67W7EF.js.map +1 -0
  12. package/dist/{chunk-WIM7YLFQ.js → chunk-RRZDPP7Z.js} +2 -2
  13. package/dist/{chunk-QVMXXFG5.js → chunk-ZPTG6NGD.js} +11 -11
  14. package/dist/chunk-ZPTG6NGD.js.map +1 -0
  15. package/dist/{dist-es-JMQZFACH.js → dist-es-5CNHCO76.js} +7 -7
  16. package/dist/{dist-es-EFSR5RHO.js → dist-es-63RSTSM2.js} +13 -13
  17. package/dist/{dist-es-TFVAFKJ5.js → dist-es-BTCEI257.js} +4 -4
  18. package/dist/{dist-es-RUJYXWW7.js → dist-es-C3XGVVKR.js} +7 -6
  19. package/dist/{dist-es-RUJYXWW7.js.map → dist-es-C3XGVVKR.js.map} +1 -1
  20. package/dist/{dist-es-47I7P7S4.js → dist-es-OHWBFB6Z.js} +7 -7
  21. package/dist/{dist-es-GCAGX4FB.js → dist-es-QDQUKRHU.js} +5 -4
  22. package/dist/{dist-es-GCAGX4FB.js.map → dist-es-QDQUKRHU.js.map} +1 -1
  23. package/dist/{dist-es-7RLYMBW4.js → dist-es-R36PCSLH.js} +5 -5
  24. package/dist/{dist-es-YSRYRFUR.js → dist-es-TBYZWFUA.js} +26 -26
  25. package/dist/{dist-es-YSRYRFUR.js.map → dist-es-TBYZWFUA.js.map} +1 -1
  26. package/dist/{dist-es-6D223V5J.js → dist-es-ZOQMUI6H.js} +5 -5
  27. package/dist/{event-streams-M4VNXF4E.js → event-streams-2HBIXE6X.js} +33 -14
  28. package/dist/event-streams-2HBIXE6X.js.map +1 -0
  29. package/dist/index.js +1 -1
  30. package/dist/{loadSso-UZJSAOIR.js → loadSso-OMYS2YH5.js} +13 -13
  31. package/dist/{signin-LCNGXJL6.js → signin-OZ4KQMKS.js} +13 -13
  32. package/dist/{sso-oidc-JCP5LKPR.js → sso-oidc-K2XXESPI.js} +13 -13
  33. package/dist/{sts-EM5BP3PD.js → sts-4YKAIUZO.js} +13 -13
  34. package/package.json +6 -5
  35. package/dist/chunk-IZRDH6ZA.js.map +0 -1
  36. package/dist/chunk-J2GNAAZA.js.map +0 -1
  37. package/dist/chunk-QVMXXFG5.js.map +0 -1
  38. package/dist/chunk-UN64BKHA.js.map +0 -1
  39. package/dist/event-streams-M4VNXF4E.js.map +0 -1
  40. /package/dist/{chunk-JJUYBZ5C.js.map → chunk-FR442V6O.js.map} +0 -0
  41. /package/dist/{chunk-WIM7YLFQ.js.map → chunk-RRZDPP7Z.js.map} +0 -0
  42. /package/dist/{dist-es-JMQZFACH.js.map → dist-es-5CNHCO76.js.map} +0 -0
  43. /package/dist/{dist-es-EFSR5RHO.js.map → dist-es-63RSTSM2.js.map} +0 -0
  44. /package/dist/{dist-es-TFVAFKJ5.js.map → dist-es-BTCEI257.js.map} +0 -0
  45. /package/dist/{dist-es-47I7P7S4.js.map → dist-es-OHWBFB6Z.js.map} +0 -0
  46. /package/dist/{dist-es-7RLYMBW4.js.map → dist-es-R36PCSLH.js.map} +0 -0
  47. /package/dist/{dist-es-6D223V5J.js.map → dist-es-ZOQMUI6H.js.map} +0 -0
  48. /package/dist/{loadSso-UZJSAOIR.js.map → loadSso-OMYS2YH5.js.map} +0 -0
  49. /package/dist/{signin-LCNGXJL6.js.map → signin-OZ4KQMKS.js.map} +0 -0
  50. /package/dist/{sso-oidc-JCP5LKPR.js.map → sso-oidc-K2XXESPI.js.map} +0 -0
  51. /package/dist/{sts-EM5BP3PD.js.map → sts-4YKAIUZO.js.map} +0 -0
@@ -1,3 +1,729 @@
1
+ // ../../node_modules/@smithy/types/dist-es/extensions/checksum.js
2
+ var AlgorithmId;
3
+ (function(AlgorithmId2) {
4
+ AlgorithmId2["MD5"] = "md5";
5
+ AlgorithmId2["CRC32"] = "crc32";
6
+ AlgorithmId2["CRC32C"] = "crc32c";
7
+ AlgorithmId2["SHA1"] = "sha1";
8
+ AlgorithmId2["SHA256"] = "sha256";
9
+ })(AlgorithmId || (AlgorithmId = {}));
10
+
11
+ // ../../node_modules/@smithy/types/dist-es/middleware.js
12
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
13
+
14
+ // ../../node_modules/@smithy/types/dist-es/endpoint.js
15
+ var EndpointURLScheme;
16
+ (function(EndpointURLScheme2) {
17
+ EndpointURLScheme2["HTTP"] = "http";
18
+ EndpointURLScheme2["HTTPS"] = "https";
19
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
20
+
21
+ // ../../node_modules/@smithy/types/dist-es/profile.js
22
+ var IniSectionType;
23
+ (function(IniSectionType2) {
24
+ IniSectionType2["PROFILE"] = "profile";
25
+ IniSectionType2["SSO_SESSION"] = "sso-session";
26
+ IniSectionType2["SERVICES"] = "services";
27
+ })(IniSectionType || (IniSectionType = {}));
28
+
29
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/getSmithyContext.js
30
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
31
+
32
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js
33
+ var normalizeProvider = (input) => {
34
+ if (typeof input === "function")
35
+ return input;
36
+ const promisified = Promise.resolve(input);
37
+ return () => promisified;
38
+ };
39
+
40
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/parseQueryString.js
41
+ function parseQueryString(querystring) {
42
+ const query = {};
43
+ querystring = querystring.replace(/^\?/, "");
44
+ if (querystring) {
45
+ for (const pair of querystring.split("&")) {
46
+ let [key, value = null] = pair.split("=");
47
+ key = decodeURIComponent(key);
48
+ if (value) {
49
+ value = decodeURIComponent(value);
50
+ }
51
+ if (!(key in query)) {
52
+ query[key] = value;
53
+ } else if (Array.isArray(query[key])) {
54
+ query[key].push(value);
55
+ } else {
56
+ query[key] = [query[key], value];
57
+ }
58
+ }
59
+ }
60
+ return query;
61
+ }
62
+
63
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/parseUrl.js
64
+ var parseUrl = (url) => {
65
+ if (typeof url === "string") {
66
+ return parseUrl(new URL(url));
67
+ }
68
+ const { hostname, pathname, port, protocol, search } = url;
69
+ let query;
70
+ if (search) {
71
+ query = parseQueryString(search);
72
+ }
73
+ return {
74
+ hostname,
75
+ port: port ? parseInt(port) : void 0,
76
+ protocol,
77
+ path: pathname,
78
+ query
79
+ };
80
+ };
81
+
82
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/httpRequest.js
83
+ var HttpRequest = class _HttpRequest {
84
+ method;
85
+ protocol;
86
+ hostname;
87
+ port;
88
+ path;
89
+ query;
90
+ headers;
91
+ username;
92
+ password;
93
+ fragment;
94
+ body;
95
+ constructor(options) {
96
+ this.method = options.method || "GET";
97
+ this.hostname = options.hostname || "localhost";
98
+ this.port = options.port;
99
+ this.query = options.query || {};
100
+ this.headers = options.headers || {};
101
+ this.body = options.body;
102
+ this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
103
+ this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
104
+ this.username = options.username;
105
+ this.password = options.password;
106
+ this.fragment = options.fragment;
107
+ }
108
+ static clone(request) {
109
+ const cloned = new _HttpRequest({
110
+ ...request,
111
+ headers: { ...request.headers }
112
+ });
113
+ if (cloned.query) {
114
+ cloned.query = cloneQuery(cloned.query);
115
+ }
116
+ return cloned;
117
+ }
118
+ static isInstance(request) {
119
+ if (!request) {
120
+ return false;
121
+ }
122
+ const req = request;
123
+ return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
124
+ }
125
+ clone() {
126
+ return _HttpRequest.clone(this);
127
+ }
128
+ };
129
+ function cloneQuery(query) {
130
+ return Object.keys(query).reduce((carry, paramName) => {
131
+ const param = query[paramName];
132
+ return {
133
+ ...carry,
134
+ [paramName]: Array.isArray(param) ? [...param] : param
135
+ };
136
+ }, {});
137
+ }
138
+
139
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js
140
+ var HttpResponse = class {
141
+ statusCode;
142
+ reason;
143
+ headers;
144
+ body;
145
+ constructor(options) {
146
+ this.statusCode = options.statusCode;
147
+ this.reason = options.reason;
148
+ this.headers = options.headers || {};
149
+ this.body = options.body;
150
+ }
151
+ static isInstance(response) {
152
+ if (!response)
153
+ return false;
154
+ const resp = response;
155
+ return typeof resp.statusCode === "number" && typeof resp.headers === "object";
156
+ }
157
+ };
158
+
159
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/isValidHostLabel.js
160
+ var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
161
+ var isValidHostLabel = (value, allowSubDomains = false) => {
162
+ if (!allowSubDomains) {
163
+ return VALID_HOST_LABEL_REGEX.test(value);
164
+ }
165
+ const labels = value.split(".");
166
+ for (const label of labels) {
167
+ if (!isValidHostLabel(label)) {
168
+ return false;
169
+ }
170
+ }
171
+ return true;
172
+ };
173
+
174
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js
175
+ function isValidHostname(hostname) {
176
+ const hostPattern = /^[a-z0-9][a-z0-9.-]*[a-z0-9]$/;
177
+ return hostPattern.test(hostname);
178
+ }
179
+
180
+ // ../../node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js
181
+ var toEndpointV1 = (endpoint) => {
182
+ if (typeof endpoint === "object") {
183
+ if ("url" in endpoint) {
184
+ const v1Endpoint = parseUrl(endpoint.url);
185
+ if (endpoint.headers) {
186
+ v1Endpoint.headers = {};
187
+ for (const name in endpoint.headers) {
188
+ v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
189
+ }
190
+ }
191
+ return v1Endpoint;
192
+ }
193
+ return endpoint;
194
+ }
195
+ return parseUrl(endpoint);
196
+ };
197
+
198
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
199
+ var operation = (namespace, name, traits, input, output) => ({
200
+ name,
201
+ namespace,
202
+ traits,
203
+ input,
204
+ output
205
+ });
206
+
207
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
208
+ var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
209
+ const { response } = await next(args);
210
+ const { operationSchema } = getSmithyContext(context);
211
+ const [, ns, n, t, i, o] = operationSchema ?? [];
212
+ try {
213
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
214
+ ...config,
215
+ ...context
216
+ }, response);
217
+ return {
218
+ response,
219
+ output: parsed
220
+ };
221
+ } catch (error) {
222
+ Object.defineProperty(error, "$response", {
223
+ value: response,
224
+ enumerable: false,
225
+ writable: false,
226
+ configurable: false
227
+ });
228
+ if (!("$metadata" in error)) {
229
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
230
+ try {
231
+ error.message += "\n " + hint;
232
+ } catch (ignored) {
233
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
234
+ console.warn(hint);
235
+ } else {
236
+ context.logger?.warn?.(hint);
237
+ }
238
+ }
239
+ if (typeof error.$responseBodyText !== "undefined") {
240
+ if (error.$response) {
241
+ error.$response.body = error.$responseBodyText;
242
+ }
243
+ }
244
+ try {
245
+ if (HttpResponse.isInstance(response)) {
246
+ const { headers = {}, statusCode } = response;
247
+ const headerEntries = Object.entries(headers);
248
+ error.$metadata = {
249
+ httpStatusCode: statusCode,
250
+ requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
251
+ extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
252
+ cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
253
+ };
254
+ }
255
+ } catch (ignored) {
256
+ }
257
+ }
258
+ throw error;
259
+ }
260
+ };
261
+ var findHeader = (pattern, headers) => {
262
+ return (headers.find(([k]) => {
263
+ return k.match(pattern);
264
+ }) || [void 0, void 0])[1];
265
+ };
266
+
267
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
268
+ var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
269
+ const { operationSchema } = getSmithyContext(context);
270
+ const [, ns, n, t, i, o] = operationSchema ?? [];
271
+ const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
272
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
273
+ ...config,
274
+ ...context,
275
+ endpoint
276
+ });
277
+ return next({
278
+ ...args,
279
+ request
280
+ });
281
+ };
282
+
283
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
284
+ var deserializerMiddlewareOption = {
285
+ name: "deserializerMiddleware",
286
+ step: "deserialize",
287
+ tags: ["DESERIALIZER"],
288
+ override: true
289
+ };
290
+ var serializerMiddlewareOption = {
291
+ name: "serializerMiddleware",
292
+ step: "serialize",
293
+ tags: ["SERIALIZER"],
294
+ override: true
295
+ };
296
+ function getSchemaSerdePlugin(config) {
297
+ return {
298
+ applyToStack: (commandStack) => {
299
+ commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
300
+ commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
301
+ config.protocol.setSerdeContext(config);
302
+ }
303
+ };
304
+ }
305
+
306
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
307
+ var TypeRegistry = class _TypeRegistry {
308
+ namespace;
309
+ schemas;
310
+ exceptions;
311
+ static registries = /* @__PURE__ */ new Map();
312
+ constructor(namespace, schemas = /* @__PURE__ */ new Map(), exceptions = /* @__PURE__ */ new Map()) {
313
+ this.namespace = namespace;
314
+ this.schemas = schemas;
315
+ this.exceptions = exceptions;
316
+ }
317
+ static for(namespace) {
318
+ if (!_TypeRegistry.registries.has(namespace)) {
319
+ _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
320
+ }
321
+ return _TypeRegistry.registries.get(namespace);
322
+ }
323
+ copyFrom(other) {
324
+ const { schemas, exceptions } = this;
325
+ for (const [k, v] of other.schemas) {
326
+ if (!schemas.has(k)) {
327
+ schemas.set(k, v);
328
+ }
329
+ }
330
+ for (const [k, v] of other.exceptions) {
331
+ if (!exceptions.has(k)) {
332
+ exceptions.set(k, v);
333
+ }
334
+ }
335
+ }
336
+ register(shapeId, schema) {
337
+ const qualifiedName = this.normalizeShapeId(shapeId);
338
+ for (const r of [this, _TypeRegistry.for(qualifiedName.split("#")[0])]) {
339
+ r.schemas.set(qualifiedName, schema);
340
+ }
341
+ }
342
+ getSchema(shapeId) {
343
+ const id = this.normalizeShapeId(shapeId);
344
+ if (!this.schemas.has(id)) {
345
+ if (!shapeId.includes("#")) {
346
+ const suffix = "#" + shapeId;
347
+ const candidates = [];
348
+ for (const [shapeId2, schema] of this.schemas.entries()) {
349
+ if (shapeId2.endsWith(suffix)) {
350
+ candidates.push(schema);
351
+ }
352
+ }
353
+ if (candidates.length === 1) {
354
+ return candidates[0];
355
+ }
356
+ }
357
+ throw new Error(`@smithy/core/schema - schema not found for ${id}`);
358
+ }
359
+ return this.schemas.get(id);
360
+ }
361
+ registerError(es, ctor) {
362
+ const $error = es;
363
+ const ns = $error[1];
364
+ for (const r of [this, _TypeRegistry.for(ns)]) {
365
+ r.schemas.set(ns + "#" + $error[2], $error);
366
+ r.exceptions.set($error, ctor);
367
+ }
368
+ }
369
+ getErrorCtor(es) {
370
+ const $error = es;
371
+ if (this.exceptions.has($error)) {
372
+ return this.exceptions.get($error);
373
+ }
374
+ const registry = _TypeRegistry.for($error[1]);
375
+ return registry.exceptions.get($error);
376
+ }
377
+ getBaseException() {
378
+ for (const exceptionKey of this.exceptions.keys()) {
379
+ if (Array.isArray(exceptionKey)) {
380
+ const [, ns, name] = exceptionKey;
381
+ const id = ns + "#" + name;
382
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
383
+ return exceptionKey;
384
+ }
385
+ }
386
+ }
387
+ return void 0;
388
+ }
389
+ find(predicate) {
390
+ for (const schema of this.schemas.values()) {
391
+ if (predicate(schema)) {
392
+ return schema;
393
+ }
394
+ }
395
+ return void 0;
396
+ }
397
+ clear() {
398
+ this.schemas.clear();
399
+ this.exceptions.clear();
400
+ }
401
+ normalizeShapeId(shapeId) {
402
+ if (shapeId.includes("#")) {
403
+ return shapeId;
404
+ }
405
+ return this.namespace + "#" + shapeId;
406
+ }
407
+ };
408
+
409
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/deref.js
410
+ var deref = (schemaRef) => {
411
+ if (typeof schemaRef === "function") {
412
+ return schemaRef();
413
+ }
414
+ return schemaRef;
415
+ };
416
+
417
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
418
+ var traitsCache = [];
419
+ function translateTraits(indicator) {
420
+ if (typeof indicator === "object") {
421
+ return indicator;
422
+ }
423
+ indicator = indicator | 0;
424
+ if (traitsCache[indicator]) {
425
+ return traitsCache[indicator];
426
+ }
427
+ const traits = {};
428
+ let i = 0;
429
+ for (const trait of [
430
+ "httpLabel",
431
+ "idempotent",
432
+ "idempotencyToken",
433
+ "sensitive",
434
+ "httpPayload",
435
+ "httpResponseCode",
436
+ "httpQueryParams"
437
+ ]) {
438
+ if ((indicator >> i++ & 1) === 1) {
439
+ traits[trait] = 1;
440
+ }
441
+ }
442
+ return traitsCache[indicator] = traits;
443
+ }
444
+
445
+ // ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
446
+ var anno = {
447
+ it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it"),
448
+ ns: /* @__PURE__ */ Symbol.for("@smithy/ns")
449
+ };
450
+ var simpleSchemaCacheN = [];
451
+ var simpleSchemaCacheS = {};
452
+ var NormalizedSchema = class _NormalizedSchema {
453
+ ref;
454
+ memberName;
455
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/nor");
456
+ symbol = _NormalizedSchema.symbol;
457
+ name;
458
+ schema;
459
+ _isMemberSchema;
460
+ traits;
461
+ memberTraits;
462
+ normalizedTraits;
463
+ constructor(ref, memberName) {
464
+ this.ref = ref;
465
+ this.memberName = memberName;
466
+ const traitStack = [];
467
+ let _ref = ref;
468
+ let schema = ref;
469
+ this._isMemberSchema = false;
470
+ while (isMemberSchema(_ref)) {
471
+ traitStack.push(_ref[1]);
472
+ _ref = _ref[0];
473
+ schema = deref(_ref);
474
+ this._isMemberSchema = true;
475
+ }
476
+ if (traitStack.length > 0) {
477
+ this.memberTraits = {};
478
+ for (let i = traitStack.length - 1; i >= 0; --i) {
479
+ const traitSet = traitStack[i];
480
+ Object.assign(this.memberTraits, translateTraits(traitSet));
481
+ }
482
+ } else {
483
+ this.memberTraits = 0;
484
+ }
485
+ if (schema instanceof _NormalizedSchema) {
486
+ const computedMemberTraits = this.memberTraits;
487
+ Object.assign(this, schema);
488
+ this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
489
+ this.normalizedTraits = void 0;
490
+ this.memberName = memberName ?? schema.memberName;
491
+ return;
492
+ }
493
+ this.schema = deref(schema);
494
+ if (isStaticSchema(this.schema)) {
495
+ this.name = `${this.schema[1]}#${this.schema[2]}`;
496
+ this.traits = this.schema[3];
497
+ } else {
498
+ this.name = this.memberName ?? String(schema);
499
+ this.traits = 0;
500
+ }
501
+ if (this._isMemberSchema && !memberName) {
502
+ throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
503
+ }
504
+ }
505
+ static [Symbol.hasInstance](lhs) {
506
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
507
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
508
+ const ns = lhs;
509
+ return ns.symbol === this.symbol;
510
+ }
511
+ return isPrototype;
512
+ }
513
+ static of(ref) {
514
+ const keyAble = typeof ref === "function" || typeof ref === "object" && ref !== null;
515
+ if (typeof ref === "number") {
516
+ if (simpleSchemaCacheN[ref]) {
517
+ return simpleSchemaCacheN[ref];
518
+ }
519
+ } else if (typeof ref === "string") {
520
+ if (simpleSchemaCacheS[ref]) {
521
+ return simpleSchemaCacheS[ref];
522
+ }
523
+ } else if (keyAble) {
524
+ if (ref[anno.ns]) {
525
+ return ref[anno.ns];
526
+ }
527
+ }
528
+ const sc = deref(ref);
529
+ if (sc instanceof _NormalizedSchema) {
530
+ return sc;
531
+ }
532
+ if (isMemberSchema(sc)) {
533
+ const [ns2, traits] = sc;
534
+ if (ns2 instanceof _NormalizedSchema) {
535
+ Object.assign(ns2.getMergedTraits(), translateTraits(traits));
536
+ return ns2;
537
+ }
538
+ throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
539
+ }
540
+ const ns = new _NormalizedSchema(sc);
541
+ if (keyAble) {
542
+ return ref[anno.ns] = ns;
543
+ }
544
+ if (typeof sc === "string") {
545
+ return simpleSchemaCacheS[sc] = ns;
546
+ }
547
+ if (typeof sc === "number") {
548
+ return simpleSchemaCacheN[sc] = ns;
549
+ }
550
+ return ns;
551
+ }
552
+ getSchema() {
553
+ const sc = this.schema;
554
+ if (Array.isArray(sc) && sc[0] === 0) {
555
+ return sc[4];
556
+ }
557
+ return sc;
558
+ }
559
+ getName(withNamespace = false) {
560
+ const { name } = this;
561
+ const short = !withNamespace && name && name.includes("#");
562
+ return short ? name.split("#")[1] : name || void 0;
563
+ }
564
+ getMemberName() {
565
+ return this.memberName;
566
+ }
567
+ isMemberSchema() {
568
+ return this._isMemberSchema;
569
+ }
570
+ isListSchema() {
571
+ const sc = this.getSchema();
572
+ return typeof sc === "number" ? sc >= 64 && sc < 128 : sc[0] === 1;
573
+ }
574
+ isMapSchema() {
575
+ const sc = this.getSchema();
576
+ return typeof sc === "number" ? sc >= 128 && sc <= 255 : sc[0] === 2;
577
+ }
578
+ isStructSchema() {
579
+ const sc = this.getSchema();
580
+ if (typeof sc !== "object") {
581
+ return false;
582
+ }
583
+ const id = sc[0];
584
+ return id === 3 || id === -3 || id === 4;
585
+ }
586
+ isUnionSchema() {
587
+ const sc = this.getSchema();
588
+ if (typeof sc !== "object") {
589
+ return false;
590
+ }
591
+ return sc[0] === 4;
592
+ }
593
+ isBlobSchema() {
594
+ const sc = this.getSchema();
595
+ return sc === 21 || sc === 42;
596
+ }
597
+ isTimestampSchema() {
598
+ const sc = this.getSchema();
599
+ return typeof sc === "number" && sc >= 4 && sc <= 7;
600
+ }
601
+ isUnitSchema() {
602
+ return this.getSchema() === "unit";
603
+ }
604
+ isDocumentSchema() {
605
+ return this.getSchema() === 15;
606
+ }
607
+ isStringSchema() {
608
+ return this.getSchema() === 0;
609
+ }
610
+ isBooleanSchema() {
611
+ return this.getSchema() === 2;
612
+ }
613
+ isNumericSchema() {
614
+ return this.getSchema() === 1;
615
+ }
616
+ isBigIntegerSchema() {
617
+ return this.getSchema() === 17;
618
+ }
619
+ isBigDecimalSchema() {
620
+ return this.getSchema() === 19;
621
+ }
622
+ isStreaming() {
623
+ const { streaming } = this.getMergedTraits();
624
+ return !!streaming || this.getSchema() === 42;
625
+ }
626
+ isIdempotencyToken() {
627
+ return !!this.getMergedTraits().idempotencyToken;
628
+ }
629
+ getMergedTraits() {
630
+ return this.normalizedTraits ?? (this.normalizedTraits = {
631
+ ...this.getOwnTraits(),
632
+ ...this.getMemberTraits()
633
+ });
634
+ }
635
+ getMemberTraits() {
636
+ return translateTraits(this.memberTraits);
637
+ }
638
+ getOwnTraits() {
639
+ return translateTraits(this.traits);
640
+ }
641
+ getKeySchema() {
642
+ const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
643
+ if (!isDoc && !isMap) {
644
+ throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
645
+ }
646
+ const schema = this.getSchema();
647
+ const memberSchema = isDoc ? 15 : schema[4] ?? 0;
648
+ return member([memberSchema, 0], "key");
649
+ }
650
+ getValueSchema() {
651
+ const sc = this.getSchema();
652
+ const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
653
+ const memberSchema = typeof sc === "number" ? 63 & sc : sc && typeof sc === "object" && (isMap || isList) ? sc[3 + sc[0]] : isDoc ? 15 : void 0;
654
+ if (memberSchema != null) {
655
+ return member([memberSchema, 0], isMap ? "value" : "member");
656
+ }
657
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
658
+ }
659
+ getMemberSchema(memberName) {
660
+ const struct = this.getSchema();
661
+ if (this.isStructSchema() && struct[4].includes(memberName)) {
662
+ const i = struct[4].indexOf(memberName);
663
+ const memberSchema = struct[5][i];
664
+ return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
665
+ }
666
+ if (this.isDocumentSchema()) {
667
+ return member([15, 0], memberName);
668
+ }
669
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
670
+ }
671
+ getMemberSchemas() {
672
+ const buffer = {};
673
+ try {
674
+ for (const [k, v] of this.structIterator()) {
675
+ buffer[k] = v;
676
+ }
677
+ } catch (ignored) {
678
+ }
679
+ return buffer;
680
+ }
681
+ getEventStreamMember() {
682
+ if (this.isStructSchema()) {
683
+ for (const [memberName, memberSchema] of this.structIterator()) {
684
+ if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
685
+ return memberName;
686
+ }
687
+ }
688
+ }
689
+ return "";
690
+ }
691
+ *structIterator() {
692
+ if (this.isUnitSchema()) {
693
+ return;
694
+ }
695
+ if (!this.isStructSchema()) {
696
+ throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
697
+ }
698
+ const struct = this.getSchema();
699
+ const z = struct[4].length;
700
+ let it = struct[anno.it];
701
+ if (it && z === it.length) {
702
+ yield* it;
703
+ return;
704
+ }
705
+ it = Array(z);
706
+ for (let i = 0; i < z; ++i) {
707
+ const k = struct[4][i];
708
+ const v = member([struct[5][i], 0], k);
709
+ yield it[i] = [k, v];
710
+ }
711
+ struct[anno.it] = it;
712
+ }
713
+ };
714
+ function member(memberSchema, memberName) {
715
+ if (memberSchema instanceof NormalizedSchema) {
716
+ return Object.assign(memberSchema, {
717
+ memberName,
718
+ _isMemberSchema: true
719
+ });
720
+ }
721
+ const internalCtorAccess = NormalizedSchema;
722
+ return new internalCtorAccess(memberSchema, memberName);
723
+ }
724
+ var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
725
+ var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
726
+
1
727
  // ../../node_modules/@smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js
2
728
  var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
3
729
 
@@ -618,7 +1344,7 @@ var splitHeader = (value) => {
618
1344
  };
619
1345
 
620
1346
  // ../../node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js
621
- var format = /^-?\d*(\.\d+)?$/;
1347
+ var format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;
622
1348
  var NumericValue = class _NumericValue {
623
1349
  string;
624
1350
  type;
@@ -626,7 +1352,7 @@ var NumericValue = class _NumericValue {
626
1352
  this.string = string;
627
1353
  this.type = type;
628
1354
  if (!format.test(string)) {
629
- throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`);
1355
+ throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`);
630
1356
  }
631
1357
  }
632
1358
  toString() {
@@ -929,6 +1655,23 @@ var v4 = bindV4(_getRandomValues);
929
1655
  var generateIdempotencyToken = v4;
930
1656
 
931
1657
  export {
1658
+ EndpointURLScheme,
1659
+ AlgorithmId,
1660
+ SMITHY_CONTEXT_KEY,
1661
+ IniSectionType,
1662
+ getSmithyContext,
1663
+ HttpRequest,
1664
+ HttpResponse,
1665
+ isValidHostLabel,
1666
+ isValidHostname,
1667
+ normalizeProvider,
1668
+ parseUrl,
1669
+ toEndpointV1,
1670
+ deref,
1671
+ getSchemaSerdePlugin,
1672
+ translateTraits,
1673
+ NormalizedSchema,
1674
+ TypeRegistry,
932
1675
  isArrayBuffer,
933
1676
  fromBase64,
934
1677
  fromUtf8,
@@ -957,4 +1700,4 @@ export {
957
1700
  v4,
958
1701
  generateIdempotencyToken
959
1702
  };
960
- //# sourceMappingURL=chunk-UN64BKHA.js.map
1703
+ //# sourceMappingURL=chunk-GPJBZ6EG.js.map