@vercube/storage 0.0.24 → 0.0.26
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/Drivers/MemoryStorage.d.mts +1 -1
- package/dist/Drivers/MemoryStorage.mjs +1 -1
- package/dist/Drivers/S3Storage.d.mts +1 -1
- package/dist/Drivers/S3Storage.mjs +7 -34056
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
- package/dist/event-streams-CEo-hsfG.mjs +0 -179
- package/dist/schema-DfAlCaU9.mjs +0 -1176
- /package/dist/{Storage-D-QyQ5of.d.mts → Storage-DZ-jzAK_.d.mts} +0 -0
- /package/dist/{Storage-Cr72sGff.mjs → Storage-LkoAU125.mjs} +0 -0
package/dist/schema-DfAlCaU9.mjs
DELETED
|
@@ -1,1176 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp$6 = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames$6 = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __esm = (fn, res) => function() {
|
|
11
|
-
return fn && (res = (0, fn[__getOwnPropNames$6(fn)[0]])(fn = 0)), res;
|
|
12
|
-
};
|
|
13
|
-
var __commonJS = (cb, mod) => function() {
|
|
14
|
-
return mod || (0, cb[__getOwnPropNames$6(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
-
};
|
|
16
|
-
var __export$6 = (all) => {
|
|
17
|
-
let target = {};
|
|
18
|
-
for (var name in all) __defProp$6(target, name, {
|
|
19
|
-
get: all[name],
|
|
20
|
-
enumerable: true
|
|
21
|
-
});
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
|
-
var __copyProps$6 = (to, from, except, desc) => {
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$6(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
26
|
-
key = keys[i];
|
|
27
|
-
if (!__hasOwnProp$6.call(to, key) && key !== except) __defProp$6(to, key, {
|
|
28
|
-
get: ((k) => from[k]).bind(null, key),
|
|
29
|
-
enumerable: !(desc = __getOwnPropDesc$6(from, key)) || desc.enumerable
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return to;
|
|
33
|
-
};
|
|
34
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps$6(isNodeMode || !mod || !mod.__esModule ? __defProp$6(target, "default", {
|
|
35
|
-
value: mod,
|
|
36
|
-
enumerable: true
|
|
37
|
-
}) : target, mod));
|
|
38
|
-
var __toCommonJS$6 = (mod) => __copyProps$6(__defProp$6({}, "__esModule", { value: true }), mod);
|
|
39
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region ../../node_modules/.pnpm/@smithy+types@4.5.0/node_modules/@smithy/types/dist-cjs/index.js
|
|
43
|
-
var require_dist_cjs$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@smithy+types@4.5.0/node_modules/@smithy/types/dist-cjs/index.js": ((exports, module) => {
|
|
44
|
-
var __defProp$5 = Object.defineProperty;
|
|
45
|
-
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
46
|
-
var __getOwnPropNames$5 = Object.getOwnPropertyNames;
|
|
47
|
-
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
48
|
-
var __name$5 = (target, value) => __defProp$5(target, "name", {
|
|
49
|
-
value,
|
|
50
|
-
configurable: true
|
|
51
|
-
});
|
|
52
|
-
var __export$5 = (target, all) => {
|
|
53
|
-
for (var name in all) __defProp$5(target, name, {
|
|
54
|
-
get: all[name],
|
|
55
|
-
enumerable: true
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
var __copyProps$5 = (to, from, except, desc) => {
|
|
59
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
60
|
-
for (let key of __getOwnPropNames$5(from)) if (!__hasOwnProp$5.call(to, key) && key !== except) __defProp$5(to, key, {
|
|
61
|
-
get: () => from[key],
|
|
62
|
-
enumerable: !(desc = __getOwnPropDesc$5(from, key)) || desc.enumerable
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return to;
|
|
66
|
-
};
|
|
67
|
-
var __toCommonJS$5 = (mod) => __copyProps$5(__defProp$5({}, "__esModule", { value: true }), mod);
|
|
68
|
-
var index_exports$5 = {};
|
|
69
|
-
__export$5(index_exports$5, {
|
|
70
|
-
AlgorithmId: () => AlgorithmId,
|
|
71
|
-
EndpointURLScheme: () => EndpointURLScheme,
|
|
72
|
-
FieldPosition: () => FieldPosition,
|
|
73
|
-
HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,
|
|
74
|
-
HttpAuthLocation: () => HttpAuthLocation,
|
|
75
|
-
IniSectionType: () => IniSectionType,
|
|
76
|
-
RequestHandlerProtocol: () => RequestHandlerProtocol,
|
|
77
|
-
SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,
|
|
78
|
-
getDefaultClientConfiguration: () => getDefaultClientConfiguration,
|
|
79
|
-
resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig
|
|
80
|
-
});
|
|
81
|
-
module.exports = __toCommonJS$5(index_exports$5);
|
|
82
|
-
var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
|
|
83
|
-
HttpAuthLocation2["HEADER"] = "header";
|
|
84
|
-
HttpAuthLocation2["QUERY"] = "query";
|
|
85
|
-
return HttpAuthLocation2;
|
|
86
|
-
})(HttpAuthLocation || {});
|
|
87
|
-
var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {
|
|
88
|
-
HttpApiKeyAuthLocation2["HEADER"] = "header";
|
|
89
|
-
HttpApiKeyAuthLocation2["QUERY"] = "query";
|
|
90
|
-
return HttpApiKeyAuthLocation2;
|
|
91
|
-
})(HttpApiKeyAuthLocation || {});
|
|
92
|
-
var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
|
|
93
|
-
EndpointURLScheme2["HTTP"] = "http";
|
|
94
|
-
EndpointURLScheme2["HTTPS"] = "https";
|
|
95
|
-
return EndpointURLScheme2;
|
|
96
|
-
})(EndpointURLScheme || {});
|
|
97
|
-
var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
|
|
98
|
-
AlgorithmId2["MD5"] = "md5";
|
|
99
|
-
AlgorithmId2["CRC32"] = "crc32";
|
|
100
|
-
AlgorithmId2["CRC32C"] = "crc32c";
|
|
101
|
-
AlgorithmId2["SHA1"] = "sha1";
|
|
102
|
-
AlgorithmId2["SHA256"] = "sha256";
|
|
103
|
-
return AlgorithmId2;
|
|
104
|
-
})(AlgorithmId || {});
|
|
105
|
-
var getChecksumConfiguration = /* @__PURE__ */ __name$5((runtimeConfig) => {
|
|
106
|
-
const checksumAlgorithms = [];
|
|
107
|
-
if (runtimeConfig.sha256 !== void 0) checksumAlgorithms.push({
|
|
108
|
-
algorithmId: /* @__PURE__ */ __name$5(() => "sha256", "algorithmId"),
|
|
109
|
-
checksumConstructor: /* @__PURE__ */ __name$5(() => runtimeConfig.sha256, "checksumConstructor")
|
|
110
|
-
});
|
|
111
|
-
if (runtimeConfig.md5 != void 0) checksumAlgorithms.push({
|
|
112
|
-
algorithmId: /* @__PURE__ */ __name$5(() => "md5", "algorithmId"),
|
|
113
|
-
checksumConstructor: /* @__PURE__ */ __name$5(() => runtimeConfig.md5, "checksumConstructor")
|
|
114
|
-
});
|
|
115
|
-
return {
|
|
116
|
-
addChecksumAlgorithm(algo) {
|
|
117
|
-
checksumAlgorithms.push(algo);
|
|
118
|
-
},
|
|
119
|
-
checksumAlgorithms() {
|
|
120
|
-
return checksumAlgorithms;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}, "getChecksumConfiguration");
|
|
124
|
-
var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name$5((clientConfig) => {
|
|
125
|
-
const runtimeConfig = {};
|
|
126
|
-
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
127
|
-
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
128
|
-
});
|
|
129
|
-
return runtimeConfig;
|
|
130
|
-
}, "resolveChecksumRuntimeConfig");
|
|
131
|
-
var getDefaultClientConfiguration = /* @__PURE__ */ __name$5((runtimeConfig) => {
|
|
132
|
-
return getChecksumConfiguration(runtimeConfig);
|
|
133
|
-
}, "getDefaultClientConfiguration");
|
|
134
|
-
var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name$5((config) => {
|
|
135
|
-
return resolveChecksumRuntimeConfig(config);
|
|
136
|
-
}, "resolveDefaultRuntimeConfig");
|
|
137
|
-
var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
|
|
138
|
-
FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
|
|
139
|
-
FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
|
|
140
|
-
return FieldPosition2;
|
|
141
|
-
})(FieldPosition || {});
|
|
142
|
-
var SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
143
|
-
var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
|
|
144
|
-
IniSectionType2["PROFILE"] = "profile";
|
|
145
|
-
IniSectionType2["SSO_SESSION"] = "sso-session";
|
|
146
|
-
IniSectionType2["SERVICES"] = "services";
|
|
147
|
-
return IniSectionType2;
|
|
148
|
-
})(IniSectionType || {});
|
|
149
|
-
var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
|
|
150
|
-
RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
|
|
151
|
-
RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
|
|
152
|
-
RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
|
|
153
|
-
return RequestHandlerProtocol2;
|
|
154
|
-
})(RequestHandlerProtocol || {});
|
|
155
|
-
}) });
|
|
156
|
-
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region ../../node_modules/.pnpm/@smithy+protocol-http@5.2.1/node_modules/@smithy/protocol-http/dist-cjs/index.js
|
|
159
|
-
var require_dist_cjs$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@smithy+protocol-http@5.2.1/node_modules/@smithy/protocol-http/dist-cjs/index.js": ((exports, module) => {
|
|
160
|
-
var __defProp$4 = Object.defineProperty;
|
|
161
|
-
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
162
|
-
var __getOwnPropNames$4 = Object.getOwnPropertyNames;
|
|
163
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
164
|
-
var __name$4 = (target, value) => __defProp$4(target, "name", {
|
|
165
|
-
value,
|
|
166
|
-
configurable: true
|
|
167
|
-
});
|
|
168
|
-
var __export$4 = (target, all) => {
|
|
169
|
-
for (var name in all) __defProp$4(target, name, {
|
|
170
|
-
get: all[name],
|
|
171
|
-
enumerable: true
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
var __copyProps$4 = (to, from, except, desc) => {
|
|
175
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
176
|
-
for (let key of __getOwnPropNames$4(from)) if (!__hasOwnProp$4.call(to, key) && key !== except) __defProp$4(to, key, {
|
|
177
|
-
get: () => from[key],
|
|
178
|
-
enumerable: !(desc = __getOwnPropDesc$4(from, key)) || desc.enumerable
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
return to;
|
|
182
|
-
};
|
|
183
|
-
var __toCommonJS$4 = (mod) => __copyProps$4(__defProp$4({}, "__esModule", { value: true }), mod);
|
|
184
|
-
var index_exports$4 = {};
|
|
185
|
-
__export$4(index_exports$4, {
|
|
186
|
-
Field: () => Field,
|
|
187
|
-
Fields: () => Fields,
|
|
188
|
-
HttpRequest: () => HttpRequest,
|
|
189
|
-
HttpResponse: () => HttpResponse$1,
|
|
190
|
-
IHttpRequest: () => import_types$1.HttpRequest,
|
|
191
|
-
getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration,
|
|
192
|
-
isValidHostname: () => isValidHostname,
|
|
193
|
-
resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig
|
|
194
|
-
});
|
|
195
|
-
module.exports = __toCommonJS$4(index_exports$4);
|
|
196
|
-
var getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name$4((runtimeConfig) => {
|
|
197
|
-
return {
|
|
198
|
-
setHttpHandler(handler) {
|
|
199
|
-
runtimeConfig.httpHandler = handler;
|
|
200
|
-
},
|
|
201
|
-
httpHandler() {
|
|
202
|
-
return runtimeConfig.httpHandler;
|
|
203
|
-
},
|
|
204
|
-
updateHttpClientConfig(key, value) {
|
|
205
|
-
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
|
|
206
|
-
},
|
|
207
|
-
httpHandlerConfigs() {
|
|
208
|
-
return runtimeConfig.httpHandler.httpHandlerConfigs();
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
}, "getHttpHandlerExtensionConfiguration");
|
|
212
|
-
var resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ __name$4((httpHandlerExtensionConfiguration) => {
|
|
213
|
-
return { httpHandler: httpHandlerExtensionConfiguration.httpHandler() };
|
|
214
|
-
}, "resolveHttpHandlerRuntimeConfig");
|
|
215
|
-
var import_types$1 = require_dist_cjs$5();
|
|
216
|
-
var Field = class {
|
|
217
|
-
static {
|
|
218
|
-
__name$4(this, "Field");
|
|
219
|
-
}
|
|
220
|
-
constructor({ name, kind = import_types$1.FieldPosition.HEADER, values = [] }) {
|
|
221
|
-
this.name = name;
|
|
222
|
-
this.kind = kind;
|
|
223
|
-
this.values = values;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Appends a value to the field.
|
|
227
|
-
*
|
|
228
|
-
* @param value The value to append.
|
|
229
|
-
*/
|
|
230
|
-
add(value) {
|
|
231
|
-
this.values.push(value);
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Overwrite existing field values.
|
|
235
|
-
*
|
|
236
|
-
* @param values The new field values.
|
|
237
|
-
*/
|
|
238
|
-
set(values) {
|
|
239
|
-
this.values = values;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Remove all matching entries from list.
|
|
243
|
-
*
|
|
244
|
-
* @param value Value to remove.
|
|
245
|
-
*/
|
|
246
|
-
remove(value) {
|
|
247
|
-
this.values = this.values.filter((v) => v !== value);
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Get comma-delimited string.
|
|
251
|
-
*
|
|
252
|
-
* @returns String representation of {@link Field}.
|
|
253
|
-
*/
|
|
254
|
-
toString() {
|
|
255
|
-
return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", ");
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Get string values as a list
|
|
259
|
-
*
|
|
260
|
-
* @returns Values in {@link Field} as a list.
|
|
261
|
-
*/
|
|
262
|
-
get() {
|
|
263
|
-
return this.values;
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
var Fields = class {
|
|
267
|
-
constructor({ fields = [], encoding = "utf-8" }) {
|
|
268
|
-
this.entries = {};
|
|
269
|
-
fields.forEach(this.setField.bind(this));
|
|
270
|
-
this.encoding = encoding;
|
|
271
|
-
}
|
|
272
|
-
static {
|
|
273
|
-
__name$4(this, "Fields");
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Set entry for a {@link Field} name. The `name`
|
|
277
|
-
* attribute will be used to key the collection.
|
|
278
|
-
*
|
|
279
|
-
* @param field The {@link Field} to set.
|
|
280
|
-
*/
|
|
281
|
-
setField(field) {
|
|
282
|
-
this.entries[field.name.toLowerCase()] = field;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Retrieve {@link Field} entry by name.
|
|
286
|
-
*
|
|
287
|
-
* @param name The name of the {@link Field} entry
|
|
288
|
-
* to retrieve
|
|
289
|
-
* @returns The {@link Field} if it exists.
|
|
290
|
-
*/
|
|
291
|
-
getField(name) {
|
|
292
|
-
return this.entries[name.toLowerCase()];
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Delete entry from collection.
|
|
296
|
-
*
|
|
297
|
-
* @param name Name of the entry to delete.
|
|
298
|
-
*/
|
|
299
|
-
removeField(name) {
|
|
300
|
-
delete this.entries[name.toLowerCase()];
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* Helper function for retrieving specific types of fields.
|
|
304
|
-
* Used to grab all headers or all trailers.
|
|
305
|
-
*
|
|
306
|
-
* @param kind {@link FieldPosition} of entries to retrieve.
|
|
307
|
-
* @returns The {@link Field} entries with the specified
|
|
308
|
-
* {@link FieldPosition}.
|
|
309
|
-
*/
|
|
310
|
-
getByType(kind) {
|
|
311
|
-
return Object.values(this.entries).filter((field) => field.kind === kind);
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
var HttpRequest = class _HttpRequest {
|
|
315
|
-
static {
|
|
316
|
-
__name$4(this, "HttpRequest");
|
|
317
|
-
}
|
|
318
|
-
constructor(options) {
|
|
319
|
-
this.method = options.method || "GET";
|
|
320
|
-
this.hostname = options.hostname || "localhost";
|
|
321
|
-
this.port = options.port;
|
|
322
|
-
this.query = options.query || {};
|
|
323
|
-
this.headers = options.headers || {};
|
|
324
|
-
this.body = options.body;
|
|
325
|
-
this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
|
|
326
|
-
this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
|
|
327
|
-
this.username = options.username;
|
|
328
|
-
this.password = options.password;
|
|
329
|
-
this.fragment = options.fragment;
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Note: this does not deep-clone the body.
|
|
333
|
-
*/
|
|
334
|
-
static clone(request) {
|
|
335
|
-
const cloned = new _HttpRequest({
|
|
336
|
-
...request,
|
|
337
|
-
headers: { ...request.headers }
|
|
338
|
-
});
|
|
339
|
-
if (cloned.query) cloned.query = cloneQuery(cloned.query);
|
|
340
|
-
return cloned;
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* This method only actually asserts that request is the interface {@link IHttpRequest},
|
|
344
|
-
* and not necessarily this concrete class. Left in place for API stability.
|
|
345
|
-
*
|
|
346
|
-
* Do not call instance methods on the input of this function, and
|
|
347
|
-
* do not assume it has the HttpRequest prototype.
|
|
348
|
-
*/
|
|
349
|
-
static isInstance(request) {
|
|
350
|
-
if (!request) return false;
|
|
351
|
-
const req = request;
|
|
352
|
-
return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @deprecated use static HttpRequest.clone(request) instead. It's not safe to call
|
|
356
|
-
* this method because {@link HttpRequest.isInstance} incorrectly
|
|
357
|
-
* asserts that IHttpRequest (interface) objects are of type HttpRequest (class).
|
|
358
|
-
*/
|
|
359
|
-
clone() {
|
|
360
|
-
return _HttpRequest.clone(this);
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
|
-
function cloneQuery(query) {
|
|
364
|
-
return Object.keys(query).reduce((carry, paramName) => {
|
|
365
|
-
const param = query[paramName];
|
|
366
|
-
return {
|
|
367
|
-
...carry,
|
|
368
|
-
[paramName]: Array.isArray(param) ? [...param] : param
|
|
369
|
-
};
|
|
370
|
-
}, {});
|
|
371
|
-
}
|
|
372
|
-
__name$4(cloneQuery, "cloneQuery");
|
|
373
|
-
var HttpResponse$1 = class {
|
|
374
|
-
static {
|
|
375
|
-
__name$4(this, "HttpResponse");
|
|
376
|
-
}
|
|
377
|
-
constructor(options) {
|
|
378
|
-
this.statusCode = options.statusCode;
|
|
379
|
-
this.reason = options.reason;
|
|
380
|
-
this.headers = options.headers || {};
|
|
381
|
-
this.body = options.body;
|
|
382
|
-
}
|
|
383
|
-
static isInstance(response) {
|
|
384
|
-
if (!response) return false;
|
|
385
|
-
const resp = response;
|
|
386
|
-
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
function isValidHostname(hostname) {
|
|
390
|
-
return /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(hostname);
|
|
391
|
-
}
|
|
392
|
-
__name$4(isValidHostname, "isValidHostname");
|
|
393
|
-
}) });
|
|
394
|
-
|
|
395
|
-
//#endregion
|
|
396
|
-
//#region ../../node_modules/.pnpm/@smithy+util-middleware@4.1.1/node_modules/@smithy/util-middleware/dist-cjs/index.js
|
|
397
|
-
var require_dist_cjs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@smithy+util-middleware@4.1.1/node_modules/@smithy/util-middleware/dist-cjs/index.js": ((exports, module) => {
|
|
398
|
-
var __defProp$3 = Object.defineProperty;
|
|
399
|
-
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
400
|
-
var __getOwnPropNames$3 = Object.getOwnPropertyNames;
|
|
401
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
402
|
-
var __name$3 = (target, value) => __defProp$3(target, "name", {
|
|
403
|
-
value,
|
|
404
|
-
configurable: true
|
|
405
|
-
});
|
|
406
|
-
var __export$3 = (target, all) => {
|
|
407
|
-
for (var name in all) __defProp$3(target, name, {
|
|
408
|
-
get: all[name],
|
|
409
|
-
enumerable: true
|
|
410
|
-
});
|
|
411
|
-
};
|
|
412
|
-
var __copyProps$3 = (to, from, except, desc) => {
|
|
413
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
414
|
-
for (let key of __getOwnPropNames$3(from)) if (!__hasOwnProp$3.call(to, key) && key !== except) __defProp$3(to, key, {
|
|
415
|
-
get: () => from[key],
|
|
416
|
-
enumerable: !(desc = __getOwnPropDesc$3(from, key)) || desc.enumerable
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
return to;
|
|
420
|
-
};
|
|
421
|
-
var __toCommonJS$3 = (mod) => __copyProps$3(__defProp$3({}, "__esModule", { value: true }), mod);
|
|
422
|
-
var index_exports$3 = {};
|
|
423
|
-
__export$3(index_exports$3, {
|
|
424
|
-
getSmithyContext: () => getSmithyContext$2,
|
|
425
|
-
normalizeProvider: () => normalizeProvider
|
|
426
|
-
});
|
|
427
|
-
module.exports = __toCommonJS$3(index_exports$3);
|
|
428
|
-
var import_types = require_dist_cjs$5();
|
|
429
|
-
var getSmithyContext$2 = /* @__PURE__ */ __name$3((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
|
|
430
|
-
var normalizeProvider = /* @__PURE__ */ __name$3((input) => {
|
|
431
|
-
if (typeof input === "function") return input;
|
|
432
|
-
const promisified = Promise.resolve(input);
|
|
433
|
-
return () => promisified;
|
|
434
|
-
}, "normalizeProvider");
|
|
435
|
-
}) });
|
|
436
|
-
|
|
437
|
-
//#endregion
|
|
438
|
-
//#region ../../node_modules/.pnpm/@smithy+is-array-buffer@4.1.0/node_modules/@smithy/is-array-buffer/dist-cjs/index.js
|
|
439
|
-
var require_dist_cjs$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@smithy+is-array-buffer@4.1.0/node_modules/@smithy/is-array-buffer/dist-cjs/index.js": ((exports, module) => {
|
|
440
|
-
var __defProp$2 = Object.defineProperty;
|
|
441
|
-
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
442
|
-
var __getOwnPropNames$2 = Object.getOwnPropertyNames;
|
|
443
|
-
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
444
|
-
var __name$2 = (target, value) => __defProp$2(target, "name", {
|
|
445
|
-
value,
|
|
446
|
-
configurable: true
|
|
447
|
-
});
|
|
448
|
-
var __export$2 = (target, all) => {
|
|
449
|
-
for (var name in all) __defProp$2(target, name, {
|
|
450
|
-
get: all[name],
|
|
451
|
-
enumerable: true
|
|
452
|
-
});
|
|
453
|
-
};
|
|
454
|
-
var __copyProps$2 = (to, from, except, desc) => {
|
|
455
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
456
|
-
for (let key of __getOwnPropNames$2(from)) if (!__hasOwnProp$2.call(to, key) && key !== except) __defProp$2(to, key, {
|
|
457
|
-
get: () => from[key],
|
|
458
|
-
enumerable: !(desc = __getOwnPropDesc$2(from, key)) || desc.enumerable
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
return to;
|
|
462
|
-
};
|
|
463
|
-
var __toCommonJS$2 = (mod) => __copyProps$2(__defProp$2({}, "__esModule", { value: true }), mod);
|
|
464
|
-
var index_exports$2 = {};
|
|
465
|
-
__export$2(index_exports$2, { isArrayBuffer: () => isArrayBuffer });
|
|
466
|
-
module.exports = __toCommonJS$2(index_exports$2);
|
|
467
|
-
var isArrayBuffer = /* @__PURE__ */ __name$2((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer");
|
|
468
|
-
}) });
|
|
469
|
-
|
|
470
|
-
//#endregion
|
|
471
|
-
//#region ../../node_modules/.pnpm/@smithy+util-buffer-from@4.1.0/node_modules/@smithy/util-buffer-from/dist-cjs/index.js
|
|
472
|
-
var require_dist_cjs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@smithy+util-buffer-from@4.1.0/node_modules/@smithy/util-buffer-from/dist-cjs/index.js": ((exports, module) => {
|
|
473
|
-
var __defProp$1 = Object.defineProperty;
|
|
474
|
-
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
475
|
-
var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
476
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
477
|
-
var __name$1 = (target, value) => __defProp$1(target, "name", {
|
|
478
|
-
value,
|
|
479
|
-
configurable: true
|
|
480
|
-
});
|
|
481
|
-
var __export$1 = (target, all) => {
|
|
482
|
-
for (var name in all) __defProp$1(target, name, {
|
|
483
|
-
get: all[name],
|
|
484
|
-
enumerable: true
|
|
485
|
-
});
|
|
486
|
-
};
|
|
487
|
-
var __copyProps$1 = (to, from, except, desc) => {
|
|
488
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
489
|
-
for (let key of __getOwnPropNames$1(from)) if (!__hasOwnProp$1.call(to, key) && key !== except) __defProp$1(to, key, {
|
|
490
|
-
get: () => from[key],
|
|
491
|
-
enumerable: !(desc = __getOwnPropDesc$1(from, key)) || desc.enumerable
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
return to;
|
|
495
|
-
};
|
|
496
|
-
var __toCommonJS$1 = (mod) => __copyProps$1(__defProp$1({}, "__esModule", { value: true }), mod);
|
|
497
|
-
var index_exports$1 = {};
|
|
498
|
-
__export$1(index_exports$1, {
|
|
499
|
-
fromArrayBuffer: () => fromArrayBuffer,
|
|
500
|
-
fromString: () => fromString
|
|
501
|
-
});
|
|
502
|
-
module.exports = __toCommonJS$1(index_exports$1);
|
|
503
|
-
var import_is_array_buffer = require_dist_cjs$2();
|
|
504
|
-
var import_buffer = __require("buffer");
|
|
505
|
-
var fromArrayBuffer = /* @__PURE__ */ __name$1((input, offset = 0, length = input.byteLength - offset) => {
|
|
506
|
-
if (!(0, import_is_array_buffer.isArrayBuffer)(input)) throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
507
|
-
return import_buffer.Buffer.from(input, offset, length);
|
|
508
|
-
}, "fromArrayBuffer");
|
|
509
|
-
var fromString = /* @__PURE__ */ __name$1((input, encoding) => {
|
|
510
|
-
if (typeof input !== "string") throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
511
|
-
return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input);
|
|
512
|
-
}, "fromString");
|
|
513
|
-
}) });
|
|
514
|
-
|
|
515
|
-
//#endregion
|
|
516
|
-
//#region ../../node_modules/.pnpm/@smithy+util-utf8@4.1.0/node_modules/@smithy/util-utf8/dist-cjs/index.js
|
|
517
|
-
var require_dist_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@smithy+util-utf8@4.1.0/node_modules/@smithy/util-utf8/dist-cjs/index.js": ((exports, module) => {
|
|
518
|
-
var __defProp = Object.defineProperty;
|
|
519
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
520
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
521
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
522
|
-
var __name = (target, value) => __defProp(target, "name", {
|
|
523
|
-
value,
|
|
524
|
-
configurable: true
|
|
525
|
-
});
|
|
526
|
-
var __export = (target, all) => {
|
|
527
|
-
for (var name in all) __defProp(target, name, {
|
|
528
|
-
get: all[name],
|
|
529
|
-
enumerable: true
|
|
530
|
-
});
|
|
531
|
-
};
|
|
532
|
-
var __copyProps = (to, from, except, desc) => {
|
|
533
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
534
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
535
|
-
get: () => from[key],
|
|
536
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
return to;
|
|
540
|
-
};
|
|
541
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
542
|
-
var index_exports = {};
|
|
543
|
-
__export(index_exports, {
|
|
544
|
-
fromUtf8: () => fromUtf8,
|
|
545
|
-
toUint8Array: () => toUint8Array,
|
|
546
|
-
toUtf8: () => toUtf8
|
|
547
|
-
});
|
|
548
|
-
module.exports = __toCommonJS(index_exports);
|
|
549
|
-
var import_util_buffer_from = require_dist_cjs$1();
|
|
550
|
-
var fromUtf8 = /* @__PURE__ */ __name((input) => {
|
|
551
|
-
const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
|
|
552
|
-
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
553
|
-
}, "fromUtf8");
|
|
554
|
-
var toUint8Array = /* @__PURE__ */ __name((data) => {
|
|
555
|
-
if (typeof data === "string") return fromUtf8(data);
|
|
556
|
-
if (ArrayBuffer.isView(data)) return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
557
|
-
return new Uint8Array(data);
|
|
558
|
-
}, "toUint8Array");
|
|
559
|
-
var toUtf8 = /* @__PURE__ */ __name((input) => {
|
|
560
|
-
if (typeof input === "string") return input;
|
|
561
|
-
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
562
|
-
return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
563
|
-
}, "toUtf8");
|
|
564
|
-
}) });
|
|
565
|
-
|
|
566
|
-
//#endregion
|
|
567
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/deref.js
|
|
568
|
-
var deref;
|
|
569
|
-
var init_deref = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/deref.js": (() => {
|
|
570
|
-
deref = (schemaRef) => {
|
|
571
|
-
if (typeof schemaRef === "function") return schemaRef();
|
|
572
|
-
return schemaRef;
|
|
573
|
-
};
|
|
574
|
-
}) });
|
|
575
|
-
|
|
576
|
-
//#endregion
|
|
577
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
|
|
578
|
-
var import_dist_cjs$1, import_dist_cjs$2, schemaDeserializationMiddleware, findHeader;
|
|
579
|
-
var init_schemaDeserializationMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js": (() => {
|
|
580
|
-
import_dist_cjs$1 = /* @__PURE__ */ __toESM(require_dist_cjs$4());
|
|
581
|
-
import_dist_cjs$2 = /* @__PURE__ */ __toESM(require_dist_cjs$3());
|
|
582
|
-
schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
|
|
583
|
-
const { response } = await next(args);
|
|
584
|
-
const { operationSchema } = (0, import_dist_cjs$2.getSmithyContext)(context);
|
|
585
|
-
try {
|
|
586
|
-
const parsed = await config.protocol.deserializeResponse(operationSchema, {
|
|
587
|
-
...config,
|
|
588
|
-
...context
|
|
589
|
-
}, response);
|
|
590
|
-
return {
|
|
591
|
-
response,
|
|
592
|
-
output: parsed
|
|
593
|
-
};
|
|
594
|
-
} catch (error$1) {
|
|
595
|
-
Object.defineProperty(error$1, "$response", { value: response });
|
|
596
|
-
if (!("$metadata" in error$1)) {
|
|
597
|
-
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
|
598
|
-
try {
|
|
599
|
-
error$1.message += "\n " + hint;
|
|
600
|
-
} catch (e) {
|
|
601
|
-
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") console.warn(hint);
|
|
602
|
-
else context.logger?.warn?.(hint);
|
|
603
|
-
}
|
|
604
|
-
if (typeof error$1.$responseBodyText !== "undefined") {
|
|
605
|
-
if (error$1.$response) error$1.$response.body = error$1.$responseBodyText;
|
|
606
|
-
}
|
|
607
|
-
try {
|
|
608
|
-
if (import_dist_cjs$1.HttpResponse.isInstance(response)) {
|
|
609
|
-
const { headers = {} } = response;
|
|
610
|
-
const headerEntries = Object.entries(headers);
|
|
611
|
-
error$1.$metadata = {
|
|
612
|
-
httpStatusCode: response.statusCode,
|
|
613
|
-
requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
|
|
614
|
-
extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
|
|
615
|
-
cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
} catch (e) {}
|
|
619
|
-
}
|
|
620
|
-
throw error$1;
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
findHeader = (pattern, headers) => {
|
|
624
|
-
return (headers.find(([k]) => {
|
|
625
|
-
return k.match(pattern);
|
|
626
|
-
}) || [void 0, void 0])[1];
|
|
627
|
-
};
|
|
628
|
-
}) });
|
|
629
|
-
|
|
630
|
-
//#endregion
|
|
631
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
|
|
632
|
-
var import_dist_cjs, schemaSerializationMiddleware;
|
|
633
|
-
var init_schemaSerializationMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js": (() => {
|
|
634
|
-
import_dist_cjs = /* @__PURE__ */ __toESM(require_dist_cjs$3());
|
|
635
|
-
schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
|
|
636
|
-
const { operationSchema } = (0, import_dist_cjs.getSmithyContext)(context);
|
|
637
|
-
const endpoint = context.endpointV2?.url && config.urlParser ? async () => config.urlParser(context.endpointV2.url) : config.endpoint;
|
|
638
|
-
const request = await config.protocol.serializeRequest(operationSchema, args.input, {
|
|
639
|
-
...config,
|
|
640
|
-
...context,
|
|
641
|
-
endpoint
|
|
642
|
-
});
|
|
643
|
-
return next({
|
|
644
|
-
...args,
|
|
645
|
-
request
|
|
646
|
-
});
|
|
647
|
-
};
|
|
648
|
-
}) });
|
|
649
|
-
|
|
650
|
-
//#endregion
|
|
651
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
|
|
652
|
-
function getSchemaSerdePlugin(config) {
|
|
653
|
-
return { applyToStack: (commandStack) => {
|
|
654
|
-
commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
|
|
655
|
-
commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
|
|
656
|
-
config.protocol.setSerdeContext(config);
|
|
657
|
-
} };
|
|
658
|
-
}
|
|
659
|
-
var deserializerMiddlewareOption, serializerMiddlewareOption;
|
|
660
|
-
var init_getSchemaSerdePlugin = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js": (() => {
|
|
661
|
-
init_schemaDeserializationMiddleware();
|
|
662
|
-
init_schemaSerializationMiddleware();
|
|
663
|
-
deserializerMiddlewareOption = {
|
|
664
|
-
name: "deserializerMiddleware",
|
|
665
|
-
step: "deserialize",
|
|
666
|
-
tags: ["DESERIALIZER"],
|
|
667
|
-
override: true
|
|
668
|
-
};
|
|
669
|
-
serializerMiddlewareOption = {
|
|
670
|
-
name: "serializerMiddleware",
|
|
671
|
-
step: "serialize",
|
|
672
|
-
tags: ["SERIALIZER"],
|
|
673
|
-
override: true
|
|
674
|
-
};
|
|
675
|
-
}) });
|
|
676
|
-
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
|
|
679
|
-
var TypeRegistry;
|
|
680
|
-
var init_TypeRegistry = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js": (() => {
|
|
681
|
-
TypeRegistry = class TypeRegistry {
|
|
682
|
-
constructor(namespace, schemas = /* @__PURE__ */ new Map()) {
|
|
683
|
-
this.namespace = namespace;
|
|
684
|
-
this.schemas = schemas;
|
|
685
|
-
}
|
|
686
|
-
static for(namespace) {
|
|
687
|
-
if (!TypeRegistry.registries.has(namespace)) TypeRegistry.registries.set(namespace, new TypeRegistry(namespace));
|
|
688
|
-
return TypeRegistry.registries.get(namespace);
|
|
689
|
-
}
|
|
690
|
-
register(shapeId, schema) {
|
|
691
|
-
const qualifiedName = this.normalizeShapeId(shapeId);
|
|
692
|
-
TypeRegistry.for(this.getNamespace(shapeId)).schemas.set(qualifiedName, schema);
|
|
693
|
-
}
|
|
694
|
-
getSchema(shapeId) {
|
|
695
|
-
const id = this.normalizeShapeId(shapeId);
|
|
696
|
-
if (!this.schemas.has(id)) throw new Error(`@smithy/core/schema - schema not found for ${id}`);
|
|
697
|
-
return this.schemas.get(id);
|
|
698
|
-
}
|
|
699
|
-
getBaseException() {
|
|
700
|
-
for (const [id, schema] of this.schemas.entries()) if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) return schema;
|
|
701
|
-
}
|
|
702
|
-
find(predicate) {
|
|
703
|
-
return [...this.schemas.values()].find(predicate);
|
|
704
|
-
}
|
|
705
|
-
destroy() {
|
|
706
|
-
TypeRegistry.registries.delete(this.namespace);
|
|
707
|
-
this.schemas.clear();
|
|
708
|
-
}
|
|
709
|
-
normalizeShapeId(shapeId) {
|
|
710
|
-
if (shapeId.includes("#")) return shapeId;
|
|
711
|
-
return this.namespace + "#" + shapeId;
|
|
712
|
-
}
|
|
713
|
-
getNamespace(shapeId) {
|
|
714
|
-
return this.normalizeShapeId(shapeId).split("#")[0];
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
TypeRegistry.registries = /* @__PURE__ */ new Map();
|
|
718
|
-
}) });
|
|
719
|
-
|
|
720
|
-
//#endregion
|
|
721
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js
|
|
722
|
-
var Schema;
|
|
723
|
-
var init_Schema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js": (() => {
|
|
724
|
-
init_TypeRegistry();
|
|
725
|
-
Schema = class {
|
|
726
|
-
static assign(instance, values) {
|
|
727
|
-
const schema = Object.assign(instance, values);
|
|
728
|
-
TypeRegistry.for(schema.namespace).register(schema.name, schema);
|
|
729
|
-
return schema;
|
|
730
|
-
}
|
|
731
|
-
static [Symbol.hasInstance](lhs) {
|
|
732
|
-
const isPrototype = this.prototype.isPrototypeOf(lhs);
|
|
733
|
-
if (!isPrototype && typeof lhs === "object" && lhs !== null) return lhs.symbol === this.symbol;
|
|
734
|
-
return isPrototype;
|
|
735
|
-
}
|
|
736
|
-
getName() {
|
|
737
|
-
return this.namespace + "#" + this.name;
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
}) });
|
|
741
|
-
|
|
742
|
-
//#endregion
|
|
743
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js
|
|
744
|
-
var ListSchema, list;
|
|
745
|
-
var init_ListSchema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js": (() => {
|
|
746
|
-
init_Schema();
|
|
747
|
-
ListSchema = class ListSchema extends Schema {
|
|
748
|
-
constructor() {
|
|
749
|
-
super(...arguments);
|
|
750
|
-
this.symbol = ListSchema.symbol;
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
ListSchema.symbol = Symbol.for("@smithy/lis");
|
|
754
|
-
list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSchema(), {
|
|
755
|
-
name,
|
|
756
|
-
namespace,
|
|
757
|
-
traits,
|
|
758
|
-
valueSchema
|
|
759
|
-
});
|
|
760
|
-
}) });
|
|
761
|
-
|
|
762
|
-
//#endregion
|
|
763
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js
|
|
764
|
-
var MapSchema, map;
|
|
765
|
-
var init_MapSchema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js": (() => {
|
|
766
|
-
init_Schema();
|
|
767
|
-
MapSchema = class MapSchema extends Schema {
|
|
768
|
-
constructor() {
|
|
769
|
-
super(...arguments);
|
|
770
|
-
this.symbol = MapSchema.symbol;
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
|
-
MapSchema.symbol = Symbol.for("@smithy/map");
|
|
774
|
-
map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(new MapSchema(), {
|
|
775
|
-
name,
|
|
776
|
-
namespace,
|
|
777
|
-
traits,
|
|
778
|
-
keySchema,
|
|
779
|
-
valueSchema
|
|
780
|
-
});
|
|
781
|
-
}) });
|
|
782
|
-
|
|
783
|
-
//#endregion
|
|
784
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js
|
|
785
|
-
var OperationSchema, op;
|
|
786
|
-
var init_OperationSchema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js": (() => {
|
|
787
|
-
init_Schema();
|
|
788
|
-
OperationSchema = class OperationSchema extends Schema {
|
|
789
|
-
constructor() {
|
|
790
|
-
super(...arguments);
|
|
791
|
-
this.symbol = OperationSchema.symbol;
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
|
-
OperationSchema.symbol = Symbol.for("@smithy/ope");
|
|
795
|
-
op = (namespace, name, traits, input, output) => Schema.assign(new OperationSchema(), {
|
|
796
|
-
name,
|
|
797
|
-
namespace,
|
|
798
|
-
traits,
|
|
799
|
-
input,
|
|
800
|
-
output
|
|
801
|
-
});
|
|
802
|
-
}) });
|
|
803
|
-
|
|
804
|
-
//#endregion
|
|
805
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js
|
|
806
|
-
var StructureSchema, struct;
|
|
807
|
-
var init_StructureSchema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js": (() => {
|
|
808
|
-
init_Schema();
|
|
809
|
-
StructureSchema = class StructureSchema extends Schema {
|
|
810
|
-
constructor() {
|
|
811
|
-
super(...arguments);
|
|
812
|
-
this.symbol = StructureSchema.symbol;
|
|
813
|
-
}
|
|
814
|
-
};
|
|
815
|
-
StructureSchema.symbol = Symbol.for("@smithy/str");
|
|
816
|
-
struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), {
|
|
817
|
-
name,
|
|
818
|
-
namespace,
|
|
819
|
-
traits,
|
|
820
|
-
memberNames,
|
|
821
|
-
memberList
|
|
822
|
-
});
|
|
823
|
-
}) });
|
|
824
|
-
|
|
825
|
-
//#endregion
|
|
826
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js
|
|
827
|
-
var ErrorSchema, error;
|
|
828
|
-
var init_ErrorSchema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js": (() => {
|
|
829
|
-
init_Schema();
|
|
830
|
-
init_StructureSchema();
|
|
831
|
-
ErrorSchema = class ErrorSchema extends StructureSchema {
|
|
832
|
-
constructor() {
|
|
833
|
-
super(...arguments);
|
|
834
|
-
this.symbol = ErrorSchema.symbol;
|
|
835
|
-
}
|
|
836
|
-
};
|
|
837
|
-
ErrorSchema.symbol = Symbol.for("@smithy/err");
|
|
838
|
-
error = (namespace, name, traits, memberNames, memberList, ctor) => Schema.assign(new ErrorSchema(), {
|
|
839
|
-
name,
|
|
840
|
-
namespace,
|
|
841
|
-
traits,
|
|
842
|
-
memberNames,
|
|
843
|
-
memberList,
|
|
844
|
-
ctor
|
|
845
|
-
});
|
|
846
|
-
}) });
|
|
847
|
-
|
|
848
|
-
//#endregion
|
|
849
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js
|
|
850
|
-
var SCHEMA;
|
|
851
|
-
var init_sentinels = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js": (() => {
|
|
852
|
-
SCHEMA = {
|
|
853
|
-
BLOB: 21,
|
|
854
|
-
STREAMING_BLOB: 42,
|
|
855
|
-
BOOLEAN: 2,
|
|
856
|
-
STRING: 0,
|
|
857
|
-
NUMERIC: 1,
|
|
858
|
-
BIG_INTEGER: 17,
|
|
859
|
-
BIG_DECIMAL: 19,
|
|
860
|
-
DOCUMENT: 15,
|
|
861
|
-
TIMESTAMP_DEFAULT: 4,
|
|
862
|
-
TIMESTAMP_DATE_TIME: 5,
|
|
863
|
-
TIMESTAMP_HTTP_DATE: 6,
|
|
864
|
-
TIMESTAMP_EPOCH_SECONDS: 7,
|
|
865
|
-
LIST_MODIFIER: 64,
|
|
866
|
-
MAP_MODIFIER: 128
|
|
867
|
-
};
|
|
868
|
-
}) });
|
|
869
|
-
|
|
870
|
-
//#endregion
|
|
871
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js
|
|
872
|
-
var SimpleSchema, sim;
|
|
873
|
-
var init_SimpleSchema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js": (() => {
|
|
874
|
-
init_Schema();
|
|
875
|
-
SimpleSchema = class SimpleSchema extends Schema {
|
|
876
|
-
constructor() {
|
|
877
|
-
super(...arguments);
|
|
878
|
-
this.symbol = SimpleSchema.symbol;
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
SimpleSchema.symbol = Symbol.for("@smithy/sim");
|
|
882
|
-
sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
|
|
883
|
-
name,
|
|
884
|
-
namespace,
|
|
885
|
-
traits,
|
|
886
|
-
schemaRef
|
|
887
|
-
});
|
|
888
|
-
}) });
|
|
889
|
-
|
|
890
|
-
//#endregion
|
|
891
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
|
|
892
|
-
var NormalizedSchema;
|
|
893
|
-
var init_NormalizedSchema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js": (() => {
|
|
894
|
-
init_deref();
|
|
895
|
-
init_ListSchema();
|
|
896
|
-
init_MapSchema();
|
|
897
|
-
init_Schema();
|
|
898
|
-
init_sentinels();
|
|
899
|
-
init_SimpleSchema();
|
|
900
|
-
init_StructureSchema();
|
|
901
|
-
NormalizedSchema = class NormalizedSchema {
|
|
902
|
-
constructor(ref, memberName) {
|
|
903
|
-
this.ref = ref;
|
|
904
|
-
this.memberName = memberName;
|
|
905
|
-
this.symbol = NormalizedSchema.symbol;
|
|
906
|
-
const traitStack = [];
|
|
907
|
-
let _ref = ref;
|
|
908
|
-
let schema = ref;
|
|
909
|
-
this._isMemberSchema = false;
|
|
910
|
-
while (Array.isArray(_ref)) {
|
|
911
|
-
traitStack.push(_ref[1]);
|
|
912
|
-
_ref = _ref[0];
|
|
913
|
-
schema = deref(_ref);
|
|
914
|
-
this._isMemberSchema = true;
|
|
915
|
-
}
|
|
916
|
-
if (traitStack.length > 0) {
|
|
917
|
-
this.memberTraits = {};
|
|
918
|
-
for (let i = traitStack.length - 1; i >= 0; --i) {
|
|
919
|
-
const traitSet = traitStack[i];
|
|
920
|
-
Object.assign(this.memberTraits, NormalizedSchema.translateTraits(traitSet));
|
|
921
|
-
}
|
|
922
|
-
} else this.memberTraits = 0;
|
|
923
|
-
if (schema instanceof NormalizedSchema) {
|
|
924
|
-
Object.assign(this, schema);
|
|
925
|
-
this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
|
|
926
|
-
this.normalizedTraits = void 0;
|
|
927
|
-
this.memberName = memberName ?? schema.memberName;
|
|
928
|
-
return;
|
|
929
|
-
}
|
|
930
|
-
this.schema = deref(schema);
|
|
931
|
-
if (this.schema && typeof this.schema === "object") this.traits = this.schema?.traits ?? {};
|
|
932
|
-
else this.traits = 0;
|
|
933
|
-
this.name = (this.schema instanceof Schema ? this.schema.getName?.() : void 0) ?? this.memberName ?? this.getSchemaName();
|
|
934
|
-
if (this._isMemberSchema && !memberName) throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
|
|
935
|
-
}
|
|
936
|
-
static [Symbol.hasInstance](lhs) {
|
|
937
|
-
return Schema[Symbol.hasInstance].bind(this)(lhs);
|
|
938
|
-
}
|
|
939
|
-
static of(ref) {
|
|
940
|
-
if (ref instanceof NormalizedSchema) return ref;
|
|
941
|
-
if (Array.isArray(ref)) {
|
|
942
|
-
const [ns, traits] = ref;
|
|
943
|
-
if (ns instanceof NormalizedSchema) {
|
|
944
|
-
Object.assign(ns.getMergedTraits(), NormalizedSchema.translateTraits(traits));
|
|
945
|
-
return ns;
|
|
946
|
-
}
|
|
947
|
-
throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
|
|
948
|
-
}
|
|
949
|
-
return new NormalizedSchema(ref);
|
|
950
|
-
}
|
|
951
|
-
static translateTraits(indicator) {
|
|
952
|
-
if (typeof indicator === "object") return indicator;
|
|
953
|
-
indicator = indicator | 0;
|
|
954
|
-
const traits = {};
|
|
955
|
-
let i = 0;
|
|
956
|
-
for (const trait of [
|
|
957
|
-
"httpLabel",
|
|
958
|
-
"idempotent",
|
|
959
|
-
"idempotencyToken",
|
|
960
|
-
"sensitive",
|
|
961
|
-
"httpPayload",
|
|
962
|
-
"httpResponseCode",
|
|
963
|
-
"httpQueryParams"
|
|
964
|
-
]) if ((indicator >> i++ & 1) === 1) traits[trait] = 1;
|
|
965
|
-
return traits;
|
|
966
|
-
}
|
|
967
|
-
getSchema() {
|
|
968
|
-
if (this.schema instanceof NormalizedSchema) {
|
|
969
|
-
Object.assign(this, { schema: this.schema.getSchema() });
|
|
970
|
-
return this.schema;
|
|
971
|
-
}
|
|
972
|
-
if (this.schema instanceof SimpleSchema) return deref(this.schema.schemaRef);
|
|
973
|
-
return deref(this.schema);
|
|
974
|
-
}
|
|
975
|
-
getName(withNamespace = false) {
|
|
976
|
-
if (!withNamespace) {
|
|
977
|
-
if (this.name && this.name.includes("#")) return this.name.split("#")[1];
|
|
978
|
-
}
|
|
979
|
-
return this.name || void 0;
|
|
980
|
-
}
|
|
981
|
-
getMemberName() {
|
|
982
|
-
if (!this.isMemberSchema()) throw new Error(`@smithy/core/schema - non-member schema: ${this.getName(true)}`);
|
|
983
|
-
return this.memberName;
|
|
984
|
-
}
|
|
985
|
-
isMemberSchema() {
|
|
986
|
-
return this._isMemberSchema;
|
|
987
|
-
}
|
|
988
|
-
isUnitSchema() {
|
|
989
|
-
return this.getSchema() === "unit";
|
|
990
|
-
}
|
|
991
|
-
isListSchema() {
|
|
992
|
-
const inner = this.getSchema();
|
|
993
|
-
if (typeof inner === "number") return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER;
|
|
994
|
-
return inner instanceof ListSchema;
|
|
995
|
-
}
|
|
996
|
-
isMapSchema() {
|
|
997
|
-
const inner = this.getSchema();
|
|
998
|
-
if (typeof inner === "number") return inner >= SCHEMA.MAP_MODIFIER && inner <= 255;
|
|
999
|
-
return inner instanceof MapSchema;
|
|
1000
|
-
}
|
|
1001
|
-
isStructSchema() {
|
|
1002
|
-
const inner = this.getSchema();
|
|
1003
|
-
return inner !== null && typeof inner === "object" && "members" in inner || inner instanceof StructureSchema;
|
|
1004
|
-
}
|
|
1005
|
-
isBlobSchema() {
|
|
1006
|
-
return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB;
|
|
1007
|
-
}
|
|
1008
|
-
isTimestampSchema() {
|
|
1009
|
-
const schema = this.getSchema();
|
|
1010
|
-
return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS;
|
|
1011
|
-
}
|
|
1012
|
-
isDocumentSchema() {
|
|
1013
|
-
return this.getSchema() === SCHEMA.DOCUMENT;
|
|
1014
|
-
}
|
|
1015
|
-
isStringSchema() {
|
|
1016
|
-
return this.getSchema() === SCHEMA.STRING;
|
|
1017
|
-
}
|
|
1018
|
-
isBooleanSchema() {
|
|
1019
|
-
return this.getSchema() === SCHEMA.BOOLEAN;
|
|
1020
|
-
}
|
|
1021
|
-
isNumericSchema() {
|
|
1022
|
-
return this.getSchema() === SCHEMA.NUMERIC;
|
|
1023
|
-
}
|
|
1024
|
-
isBigIntegerSchema() {
|
|
1025
|
-
return this.getSchema() === SCHEMA.BIG_INTEGER;
|
|
1026
|
-
}
|
|
1027
|
-
isBigDecimalSchema() {
|
|
1028
|
-
return this.getSchema() === SCHEMA.BIG_DECIMAL;
|
|
1029
|
-
}
|
|
1030
|
-
isStreaming() {
|
|
1031
|
-
if (!!this.getMergedTraits().streaming) return true;
|
|
1032
|
-
return this.getSchema() === SCHEMA.STREAMING_BLOB;
|
|
1033
|
-
}
|
|
1034
|
-
isIdempotencyToken() {
|
|
1035
|
-
if (typeof this.traits === "number") return (this.traits & 4) === 4;
|
|
1036
|
-
else if (typeof this.traits === "object") return !!this.traits.idempotencyToken;
|
|
1037
|
-
return false;
|
|
1038
|
-
}
|
|
1039
|
-
getMergedTraits() {
|
|
1040
|
-
return this.normalizedTraits ?? (this.normalizedTraits = {
|
|
1041
|
-
...this.getOwnTraits(),
|
|
1042
|
-
...this.getMemberTraits()
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
getMemberTraits() {
|
|
1046
|
-
return NormalizedSchema.translateTraits(this.memberTraits);
|
|
1047
|
-
}
|
|
1048
|
-
getOwnTraits() {
|
|
1049
|
-
return NormalizedSchema.translateTraits(this.traits);
|
|
1050
|
-
}
|
|
1051
|
-
getKeySchema() {
|
|
1052
|
-
if (this.isDocumentSchema()) return this.memberFrom([SCHEMA.DOCUMENT, 0], "key");
|
|
1053
|
-
if (!this.isMapSchema()) throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
|
|
1054
|
-
const schema = this.getSchema();
|
|
1055
|
-
if (typeof schema === "number") return this.memberFrom([63 & schema, 0], "key");
|
|
1056
|
-
return this.memberFrom([schema.keySchema, 0], "key");
|
|
1057
|
-
}
|
|
1058
|
-
getValueSchema() {
|
|
1059
|
-
const schema = this.getSchema();
|
|
1060
|
-
if (typeof schema === "number") {
|
|
1061
|
-
if (this.isMapSchema()) return this.memberFrom([63 & schema, 0], "value");
|
|
1062
|
-
else if (this.isListSchema()) return this.memberFrom([63 & schema, 0], "member");
|
|
1063
|
-
}
|
|
1064
|
-
if (schema && typeof schema === "object") {
|
|
1065
|
-
if (this.isStructSchema()) throw new Error(`may not getValueSchema() on structure ${this.getName(true)}`);
|
|
1066
|
-
const collection = schema;
|
|
1067
|
-
if ("valueSchema" in collection) {
|
|
1068
|
-
if (this.isMapSchema()) return this.memberFrom([collection.valueSchema, 0], "value");
|
|
1069
|
-
else if (this.isListSchema()) return this.memberFrom([collection.valueSchema, 0], "member");
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
if (this.isDocumentSchema()) return this.memberFrom([SCHEMA.DOCUMENT, 0], "value");
|
|
1073
|
-
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
|
|
1074
|
-
}
|
|
1075
|
-
hasMemberSchema(member) {
|
|
1076
|
-
if (this.isStructSchema()) return this.getSchema().memberNames.includes(member);
|
|
1077
|
-
return false;
|
|
1078
|
-
}
|
|
1079
|
-
getMemberSchema(member) {
|
|
1080
|
-
if (this.isStructSchema()) {
|
|
1081
|
-
const struct$1 = this.getSchema();
|
|
1082
|
-
if (!struct$1.memberNames.includes(member)) throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${member}.`);
|
|
1083
|
-
const i = struct$1.memberNames.indexOf(member);
|
|
1084
|
-
const memberSchema = struct$1.memberList[i];
|
|
1085
|
-
return this.memberFrom(Array.isArray(memberSchema) ? memberSchema : [memberSchema, 0], member);
|
|
1086
|
-
}
|
|
1087
|
-
if (this.isDocumentSchema()) return this.memberFrom([SCHEMA.DOCUMENT, 0], member);
|
|
1088
|
-
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no members.`);
|
|
1089
|
-
}
|
|
1090
|
-
getMemberSchemas() {
|
|
1091
|
-
const buffer = {};
|
|
1092
|
-
try {
|
|
1093
|
-
for (const [k, v] of this.structIterator()) buffer[k] = v;
|
|
1094
|
-
} catch (ignored) {}
|
|
1095
|
-
return buffer;
|
|
1096
|
-
}
|
|
1097
|
-
getEventStreamMember() {
|
|
1098
|
-
if (this.isStructSchema()) {
|
|
1099
|
-
for (const [memberName, memberSchema] of this.structIterator()) if (memberSchema.isStreaming() && memberSchema.isStructSchema()) return memberName;
|
|
1100
|
-
}
|
|
1101
|
-
return "";
|
|
1102
|
-
}
|
|
1103
|
-
*structIterator() {
|
|
1104
|
-
if (this.isUnitSchema()) return;
|
|
1105
|
-
if (!this.isStructSchema()) throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
|
|
1106
|
-
const struct$1 = this.getSchema();
|
|
1107
|
-
for (let i = 0; i < struct$1.memberNames.length; ++i) yield [struct$1.memberNames[i], this.memberFrom([struct$1.memberList[i], 0], struct$1.memberNames[i])];
|
|
1108
|
-
}
|
|
1109
|
-
memberFrom(memberSchema, memberName) {
|
|
1110
|
-
if (memberSchema instanceof NormalizedSchema) return Object.assign(memberSchema, {
|
|
1111
|
-
memberName,
|
|
1112
|
-
_isMemberSchema: true
|
|
1113
|
-
});
|
|
1114
|
-
return new NormalizedSchema(memberSchema, memberName);
|
|
1115
|
-
}
|
|
1116
|
-
getSchemaName() {
|
|
1117
|
-
const schema = this.getSchema();
|
|
1118
|
-
if (typeof schema === "number") {
|
|
1119
|
-
const _schema = 63 & schema;
|
|
1120
|
-
const container = 192 & schema;
|
|
1121
|
-
const type = Object.entries(SCHEMA).find(([, value]) => {
|
|
1122
|
-
return value === _schema;
|
|
1123
|
-
})?.[0] ?? "Unknown";
|
|
1124
|
-
switch (container) {
|
|
1125
|
-
case SCHEMA.MAP_MODIFIER: return `${type}Map`;
|
|
1126
|
-
case SCHEMA.LIST_MODIFIER: return `${type}List`;
|
|
1127
|
-
case 0: return type;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
return "Unknown";
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
|
-
NormalizedSchema.symbol = Symbol.for("@smithy/nor");
|
|
1134
|
-
}) });
|
|
1135
|
-
|
|
1136
|
-
//#endregion
|
|
1137
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/index.js
|
|
1138
|
-
var schema_exports = /* @__PURE__ */ __export$6({
|
|
1139
|
-
ErrorSchema: () => ErrorSchema,
|
|
1140
|
-
ListSchema: () => ListSchema,
|
|
1141
|
-
MapSchema: () => MapSchema,
|
|
1142
|
-
NormalizedSchema: () => NormalizedSchema,
|
|
1143
|
-
OperationSchema: () => OperationSchema,
|
|
1144
|
-
SCHEMA: () => SCHEMA,
|
|
1145
|
-
Schema: () => Schema,
|
|
1146
|
-
SimpleSchema: () => SimpleSchema,
|
|
1147
|
-
StructureSchema: () => StructureSchema,
|
|
1148
|
-
TypeRegistry: () => TypeRegistry,
|
|
1149
|
-
deref: () => deref,
|
|
1150
|
-
deserializerMiddlewareOption: () => deserializerMiddlewareOption,
|
|
1151
|
-
error: () => error,
|
|
1152
|
-
getSchemaSerdePlugin: () => getSchemaSerdePlugin,
|
|
1153
|
-
list: () => list,
|
|
1154
|
-
map: () => map,
|
|
1155
|
-
op: () => op,
|
|
1156
|
-
serializerMiddlewareOption: () => serializerMiddlewareOption,
|
|
1157
|
-
sim: () => sim,
|
|
1158
|
-
struct: () => struct
|
|
1159
|
-
});
|
|
1160
|
-
var init_schema = __esm({ "../../node_modules/.pnpm/@smithy+core@3.11.1/node_modules/@smithy/core/dist-es/submodules/schema/index.js": (() => {
|
|
1161
|
-
init_deref();
|
|
1162
|
-
init_getSchemaSerdePlugin();
|
|
1163
|
-
init_ListSchema();
|
|
1164
|
-
init_MapSchema();
|
|
1165
|
-
init_OperationSchema();
|
|
1166
|
-
init_ErrorSchema();
|
|
1167
|
-
init_NormalizedSchema();
|
|
1168
|
-
init_Schema();
|
|
1169
|
-
init_SimpleSchema();
|
|
1170
|
-
init_StructureSchema();
|
|
1171
|
-
init_sentinels();
|
|
1172
|
-
init_TypeRegistry();
|
|
1173
|
-
}) });
|
|
1174
|
-
|
|
1175
|
-
//#endregion
|
|
1176
|
-
export { NormalizedSchema, SCHEMA, TypeRegistry, __commonJS, __esm, __export$6 as __export, __require, __toCommonJS$6 as __toCommonJS, __toESM, deref, init_schema, require_dist_cjs, require_dist_cjs$1, require_dist_cjs$2, require_dist_cjs$3, require_dist_cjs$4, require_dist_cjs$5, schema_exports };
|