@aws-sdk/client-schemas 3.489.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist-cjs/Schemas.js +1 -73
  2. package/dist-cjs/SchemasClient.js +1 -43
  3. package/dist-cjs/commands/CreateDiscovererCommand.js +1 -28
  4. package/dist-cjs/commands/CreateRegistryCommand.js +1 -28
  5. package/dist-cjs/commands/CreateSchemaCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteDiscovererCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteRegistryCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteSchemaCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteSchemaVersionCommand.js +1 -28
  11. package/dist-cjs/commands/DescribeCodeBindingCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeDiscovererCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeRegistryCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeSchemaCommand.js +1 -28
  15. package/dist-cjs/commands/ExportSchemaCommand.js +1 -28
  16. package/dist-cjs/commands/GetCodeBindingSourceCommand.js +1 -28
  17. package/dist-cjs/commands/GetDiscoveredSchemaCommand.js +1 -28
  18. package/dist-cjs/commands/GetResourcePolicyCommand.js +1 -28
  19. package/dist-cjs/commands/ListDiscoverersCommand.js +1 -28
  20. package/dist-cjs/commands/ListRegistriesCommand.js +1 -28
  21. package/dist-cjs/commands/ListSchemaVersionsCommand.js +1 -28
  22. package/dist-cjs/commands/ListSchemasCommand.js +1 -28
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  24. package/dist-cjs/commands/PutCodeBindingCommand.js +1 -28
  25. package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
  26. package/dist-cjs/commands/SearchSchemasCommand.js +1 -28
  27. package/dist-cjs/commands/StartDiscovererCommand.js +1 -28
  28. package/dist-cjs/commands/StopDiscovererCommand.js +1 -28
  29. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  30. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  31. package/dist-cjs/commands/UpdateDiscovererCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateRegistryCommand.js +1 -28
  33. package/dist-cjs/commands/UpdateSchemaCommand.js +1 -28
  34. package/dist-cjs/commands/index.js +1 -34
  35. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  36. package/dist-cjs/extensionConfiguration.js +1 -2
  37. package/dist-cjs/index.js +3289 -12
  38. package/dist-cjs/models/SchemasServiceException.js +1 -12
  39. package/dist-cjs/models/index.js +1 -4
  40. package/dist-cjs/models/models_0.js +1 -167
  41. package/dist-cjs/pagination/Interfaces.js +1 -2
  42. package/dist-cjs/pagination/ListDiscoverersPaginator.js +1 -7
  43. package/dist-cjs/pagination/ListRegistriesPaginator.js +1 -7
  44. package/dist-cjs/pagination/ListSchemaVersionsPaginator.js +1 -7
  45. package/dist-cjs/pagination/ListSchemasPaginator.js +1 -7
  46. package/dist-cjs/pagination/SearchSchemasPaginator.js +1 -7
  47. package/dist-cjs/pagination/index.js +1 -9
  48. package/dist-cjs/protocols/Aws_restJson1.js +1 -2262
  49. package/dist-cjs/runtimeExtensions.js +1 -22
  50. package/dist-cjs/waiters/index.js +1 -4
  51. package/dist-cjs/waiters/waitForCodeBindingExists.js +1 -57
  52. package/package.json +42 -42
package/dist-cjs/index.js CHANGED
@@ -1,13 +1,3290 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SchemasServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./SchemasClient"), exports);
6
- tslib_1.__exportStar(require("./Schemas"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./waiters"), exports);
10
- tslib_1.__exportStar(require("./models"), exports);
11
- require("@aws-sdk/util-endpoints");
12
- var SchemasServiceException_1 = require("./models/SchemasServiceException");
13
- Object.defineProperty(exports, "SchemasServiceException", { enumerable: true, get: function () { return SchemasServiceException_1.SchemasServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ BadRequestException: () => BadRequestException,
25
+ CodeGenerationStatus: () => CodeGenerationStatus,
26
+ ConflictException: () => ConflictException,
27
+ CreateDiscovererCommand: () => CreateDiscovererCommand,
28
+ CreateRegistryCommand: () => CreateRegistryCommand,
29
+ CreateSchemaCommand: () => CreateSchemaCommand,
30
+ DeleteDiscovererCommand: () => DeleteDiscovererCommand,
31
+ DeleteRegistryCommand: () => DeleteRegistryCommand,
32
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
33
+ DeleteSchemaCommand: () => DeleteSchemaCommand,
34
+ DeleteSchemaVersionCommand: () => DeleteSchemaVersionCommand,
35
+ DescribeCodeBindingCommand: () => DescribeCodeBindingCommand,
36
+ DescribeDiscovererCommand: () => DescribeDiscovererCommand,
37
+ DescribeRegistryCommand: () => DescribeRegistryCommand,
38
+ DescribeSchemaCommand: () => DescribeSchemaCommand,
39
+ DiscovererState: () => DiscovererState,
40
+ ExportSchemaCommand: () => ExportSchemaCommand,
41
+ ForbiddenException: () => ForbiddenException,
42
+ GetCodeBindingSourceCommand: () => GetCodeBindingSourceCommand,
43
+ GetDiscoveredSchemaCommand: () => GetDiscoveredSchemaCommand,
44
+ GetResourcePolicyCommand: () => GetResourcePolicyCommand,
45
+ GoneException: () => GoneException,
46
+ InternalServerErrorException: () => InternalServerErrorException,
47
+ ListDiscoverersCommand: () => ListDiscoverersCommand,
48
+ ListRegistriesCommand: () => ListRegistriesCommand,
49
+ ListSchemaVersionsCommand: () => ListSchemaVersionsCommand,
50
+ ListSchemasCommand: () => ListSchemasCommand,
51
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
52
+ NotFoundException: () => NotFoundException,
53
+ PreconditionFailedException: () => PreconditionFailedException,
54
+ PutCodeBindingCommand: () => PutCodeBindingCommand,
55
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
56
+ Schemas: () => Schemas,
57
+ SchemasClient: () => SchemasClient,
58
+ SchemasServiceException: () => SchemasServiceException,
59
+ SearchSchemasCommand: () => SearchSchemasCommand,
60
+ ServiceUnavailableException: () => ServiceUnavailableException,
61
+ StartDiscovererCommand: () => StartDiscovererCommand,
62
+ StopDiscovererCommand: () => StopDiscovererCommand,
63
+ TagResourceCommand: () => TagResourceCommand,
64
+ TooManyRequestsException: () => TooManyRequestsException,
65
+ Type: () => Type,
66
+ UnauthorizedException: () => UnauthorizedException,
67
+ UntagResourceCommand: () => UntagResourceCommand,
68
+ UpdateDiscovererCommand: () => UpdateDiscovererCommand,
69
+ UpdateRegistryCommand: () => UpdateRegistryCommand,
70
+ UpdateSchemaCommand: () => UpdateSchemaCommand,
71
+ __Client: () => import_smithy_client.Client,
72
+ paginateListDiscoverers: () => paginateListDiscoverers,
73
+ paginateListRegistries: () => paginateListRegistries,
74
+ paginateListSchemaVersions: () => paginateListSchemaVersions,
75
+ paginateListSchemas: () => paginateListSchemas,
76
+ paginateSearchSchemas: () => paginateSearchSchemas,
77
+ waitForCodeBindingExists: () => waitForCodeBindingExists,
78
+ waitUntilCodeBindingExists: () => waitUntilCodeBindingExists
79
+ });
80
+ module.exports = __toCommonJS(src_exports);
81
+
82
+ // src/SchemasClient.ts
83
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
84
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
85
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
86
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
87
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
88
+ var import_config_resolver = require("@smithy/config-resolver");
89
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
90
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
91
+ var import_middleware_retry = require("@smithy/middleware-retry");
92
+
93
+
94
+ // src/endpoint/EndpointParameters.ts
95
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
96
+ return {
97
+ ...options,
98
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
99
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
100
+ defaultSigningName: "schemas"
101
+ };
102
+ }, "resolveClientEndpointParameters");
103
+ var commonParams = {
104
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
105
+ Endpoint: { type: "builtInParams", name: "endpoint" },
106
+ Region: { type: "builtInParams", name: "region" },
107
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
108
+ };
109
+
110
+ // src/SchemasClient.ts
111
+ var import_runtimeConfig = require("././runtimeConfig");
112
+
113
+ // src/runtimeExtensions.ts
114
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
115
+ var import_protocol_http = require("@smithy/protocol-http");
116
+ var import_smithy_client = require("@smithy/smithy-client");
117
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
118
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
119
+ const extensionConfiguration = {
120
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
121
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
122
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
123
+ };
124
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
125
+ return {
126
+ ...runtimeConfig,
127
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
128
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
129
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
130
+ };
131
+ }, "resolveRuntimeExtensions");
132
+
133
+ // src/SchemasClient.ts
134
+ var _SchemasClient = class _SchemasClient extends import_smithy_client.Client {
135
+ constructor(...[configuration]) {
136
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
137
+ const _config_1 = resolveClientEndpointParameters(_config_0);
138
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
139
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
140
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
141
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
142
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
143
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
144
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
145
+ super(_config_8);
146
+ this.config = _config_8;
147
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
148
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
149
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
150
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
151
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
152
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
153
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
154
+ }
155
+ /**
156
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
157
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
158
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
159
+ */
160
+ destroy() {
161
+ super.destroy();
162
+ }
163
+ };
164
+ __name(_SchemasClient, "SchemasClient");
165
+ var SchemasClient = _SchemasClient;
166
+
167
+ // src/Schemas.ts
168
+
169
+
170
+ // src/commands/CreateDiscovererCommand.ts
171
+
172
+ var import_middleware_serde = require("@smithy/middleware-serde");
173
+
174
+ var import_types = require("@smithy/types");
175
+
176
+ // src/protocols/Aws_restJson1.ts
177
+ var import_core = require("@smithy/core");
178
+
179
+ var import_uuid = require("uuid");
180
+
181
+ // src/models/SchemasServiceException.ts
182
+
183
+ var _SchemasServiceException = class _SchemasServiceException extends import_smithy_client.ServiceException {
184
+ /**
185
+ * @internal
186
+ */
187
+ constructor(options) {
188
+ super(options);
189
+ Object.setPrototypeOf(this, _SchemasServiceException.prototype);
190
+ }
191
+ };
192
+ __name(_SchemasServiceException, "SchemasServiceException");
193
+ var SchemasServiceException = _SchemasServiceException;
194
+
195
+ // src/models/models_0.ts
196
+ var DiscovererState = {
197
+ STARTED: "STARTED",
198
+ STOPPED: "STOPPED"
199
+ };
200
+ var Type = {
201
+ JSONSchemaDraft4: "JSONSchemaDraft4",
202
+ OpenApi3: "OpenApi3"
203
+ };
204
+ var _BadRequestException = class _BadRequestException extends SchemasServiceException {
205
+ /**
206
+ * @internal
207
+ */
208
+ constructor(opts) {
209
+ super({
210
+ name: "BadRequestException",
211
+ $fault: "client",
212
+ ...opts
213
+ });
214
+ this.name = "BadRequestException";
215
+ this.$fault = "client";
216
+ Object.setPrototypeOf(this, _BadRequestException.prototype);
217
+ this.Code = opts.Code;
218
+ this.Message = opts.Message;
219
+ }
220
+ };
221
+ __name(_BadRequestException, "BadRequestException");
222
+ var BadRequestException = _BadRequestException;
223
+ var CodeGenerationStatus = {
224
+ CREATE_COMPLETE: "CREATE_COMPLETE",
225
+ CREATE_FAILED: "CREATE_FAILED",
226
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS"
227
+ };
228
+ var _ConflictException = class _ConflictException extends SchemasServiceException {
229
+ /**
230
+ * @internal
231
+ */
232
+ constructor(opts) {
233
+ super({
234
+ name: "ConflictException",
235
+ $fault: "client",
236
+ ...opts
237
+ });
238
+ this.name = "ConflictException";
239
+ this.$fault = "client";
240
+ Object.setPrototypeOf(this, _ConflictException.prototype);
241
+ this.Code = opts.Code;
242
+ this.Message = opts.Message;
243
+ }
244
+ };
245
+ __name(_ConflictException, "ConflictException");
246
+ var ConflictException = _ConflictException;
247
+ var _ForbiddenException = class _ForbiddenException extends SchemasServiceException {
248
+ /**
249
+ * @internal
250
+ */
251
+ constructor(opts) {
252
+ super({
253
+ name: "ForbiddenException",
254
+ $fault: "client",
255
+ ...opts
256
+ });
257
+ this.name = "ForbiddenException";
258
+ this.$fault = "client";
259
+ Object.setPrototypeOf(this, _ForbiddenException.prototype);
260
+ this.Code = opts.Code;
261
+ this.Message = opts.Message;
262
+ }
263
+ };
264
+ __name(_ForbiddenException, "ForbiddenException");
265
+ var ForbiddenException = _ForbiddenException;
266
+ var _InternalServerErrorException = class _InternalServerErrorException extends SchemasServiceException {
267
+ /**
268
+ * @internal
269
+ */
270
+ constructor(opts) {
271
+ super({
272
+ name: "InternalServerErrorException",
273
+ $fault: "server",
274
+ ...opts
275
+ });
276
+ this.name = "InternalServerErrorException";
277
+ this.$fault = "server";
278
+ Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
279
+ this.Code = opts.Code;
280
+ this.Message = opts.Message;
281
+ }
282
+ };
283
+ __name(_InternalServerErrorException, "InternalServerErrorException");
284
+ var InternalServerErrorException = _InternalServerErrorException;
285
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends SchemasServiceException {
286
+ /**
287
+ * @internal
288
+ */
289
+ constructor(opts) {
290
+ super({
291
+ name: "ServiceUnavailableException",
292
+ $fault: "server",
293
+ ...opts
294
+ });
295
+ this.name = "ServiceUnavailableException";
296
+ this.$fault = "server";
297
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
298
+ this.Code = opts.Code;
299
+ this.Message = opts.Message;
300
+ }
301
+ };
302
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
303
+ var ServiceUnavailableException = _ServiceUnavailableException;
304
+ var _UnauthorizedException = class _UnauthorizedException extends SchemasServiceException {
305
+ /**
306
+ * @internal
307
+ */
308
+ constructor(opts) {
309
+ super({
310
+ name: "UnauthorizedException",
311
+ $fault: "client",
312
+ ...opts
313
+ });
314
+ this.name = "UnauthorizedException";
315
+ this.$fault = "client";
316
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
317
+ this.Code = opts.Code;
318
+ this.Message = opts.Message;
319
+ }
320
+ };
321
+ __name(_UnauthorizedException, "UnauthorizedException");
322
+ var UnauthorizedException = _UnauthorizedException;
323
+ var _NotFoundException = class _NotFoundException extends SchemasServiceException {
324
+ /**
325
+ * @internal
326
+ */
327
+ constructor(opts) {
328
+ super({
329
+ name: "NotFoundException",
330
+ $fault: "client",
331
+ ...opts
332
+ });
333
+ this.name = "NotFoundException";
334
+ this.$fault = "client";
335
+ Object.setPrototypeOf(this, _NotFoundException.prototype);
336
+ this.Code = opts.Code;
337
+ this.Message = opts.Message;
338
+ }
339
+ };
340
+ __name(_NotFoundException, "NotFoundException");
341
+ var NotFoundException = _NotFoundException;
342
+ var _TooManyRequestsException = class _TooManyRequestsException extends SchemasServiceException {
343
+ /**
344
+ * @internal
345
+ */
346
+ constructor(opts) {
347
+ super({
348
+ name: "TooManyRequestsException",
349
+ $fault: "client",
350
+ ...opts
351
+ });
352
+ this.name = "TooManyRequestsException";
353
+ this.$fault = "client";
354
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
355
+ this.Code = opts.Code;
356
+ this.Message = opts.Message;
357
+ }
358
+ };
359
+ __name(_TooManyRequestsException, "TooManyRequestsException");
360
+ var TooManyRequestsException = _TooManyRequestsException;
361
+ var _GoneException = class _GoneException extends SchemasServiceException {
362
+ /**
363
+ * @internal
364
+ */
365
+ constructor(opts) {
366
+ super({
367
+ name: "GoneException",
368
+ $fault: "client",
369
+ ...opts
370
+ });
371
+ this.name = "GoneException";
372
+ this.$fault = "client";
373
+ Object.setPrototypeOf(this, _GoneException.prototype);
374
+ this.Code = opts.Code;
375
+ this.Message = opts.Message;
376
+ }
377
+ };
378
+ __name(_GoneException, "GoneException");
379
+ var GoneException = _GoneException;
380
+ var _PreconditionFailedException = class _PreconditionFailedException extends SchemasServiceException {
381
+ /**
382
+ * @internal
383
+ */
384
+ constructor(opts) {
385
+ super({
386
+ name: "PreconditionFailedException",
387
+ $fault: "client",
388
+ ...opts
389
+ });
390
+ this.name = "PreconditionFailedException";
391
+ this.$fault = "client";
392
+ Object.setPrototypeOf(this, _PreconditionFailedException.prototype);
393
+ this.Code = opts.Code;
394
+ this.Message = opts.Message;
395
+ }
396
+ };
397
+ __name(_PreconditionFailedException, "PreconditionFailedException");
398
+ var PreconditionFailedException = _PreconditionFailedException;
399
+
400
+ // src/protocols/Aws_restJson1.ts
401
+ var se_CreateDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {
402
+ const b = (0, import_core.requestBuilder)(input, context);
403
+ const headers = {
404
+ "content-type": "application/json"
405
+ };
406
+ b.bp("/v1/discoverers");
407
+ let body;
408
+ body = JSON.stringify(
409
+ (0, import_smithy_client.take)(input, {
410
+ CrossAccount: [],
411
+ Description: [],
412
+ SourceArn: [],
413
+ tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
414
+ })
415
+ );
416
+ b.m("POST").h(headers).b(body);
417
+ return b.build();
418
+ }, "se_CreateDiscovererCommand");
419
+ var se_CreateRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {
420
+ const b = (0, import_core.requestBuilder)(input, context);
421
+ const headers = {
422
+ "content-type": "application/json"
423
+ };
424
+ b.bp("/v1/registries/name/{RegistryName}");
425
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
426
+ let body;
427
+ body = JSON.stringify(
428
+ (0, import_smithy_client.take)(input, {
429
+ Description: [],
430
+ tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
431
+ })
432
+ );
433
+ b.m("POST").h(headers).b(body);
434
+ return b.build();
435
+ }, "se_CreateRegistryCommand");
436
+ var se_CreateSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
437
+ const b = (0, import_core.requestBuilder)(input, context);
438
+ const headers = {
439
+ "content-type": "application/json"
440
+ };
441
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
442
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
443
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
444
+ let body;
445
+ body = JSON.stringify(
446
+ (0, import_smithy_client.take)(input, {
447
+ Content: [],
448
+ Description: [],
449
+ tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`],
450
+ Type: []
451
+ })
452
+ );
453
+ b.m("POST").h(headers).b(body);
454
+ return b.build();
455
+ }, "se_CreateSchemaCommand");
456
+ var se_DeleteDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {
457
+ const b = (0, import_core.requestBuilder)(input, context);
458
+ const headers = {};
459
+ b.bp("/v1/discoverers/id/{DiscovererId}");
460
+ b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
461
+ let body;
462
+ b.m("DELETE").h(headers).b(body);
463
+ return b.build();
464
+ }, "se_DeleteDiscovererCommand");
465
+ var se_DeleteRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {
466
+ const b = (0, import_core.requestBuilder)(input, context);
467
+ const headers = {};
468
+ b.bp("/v1/registries/name/{RegistryName}");
469
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
470
+ let body;
471
+ b.m("DELETE").h(headers).b(body);
472
+ return b.build();
473
+ }, "se_DeleteRegistryCommand");
474
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
475
+ const b = (0, import_core.requestBuilder)(input, context);
476
+ const headers = {};
477
+ b.bp("/v1/policy");
478
+ const query = (0, import_smithy_client.map)({
479
+ [_rN]: [, input[_RN]]
480
+ });
481
+ let body;
482
+ b.m("DELETE").h(headers).q(query).b(body);
483
+ return b.build();
484
+ }, "se_DeleteResourcePolicyCommand");
485
+ var se_DeleteSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
486
+ const b = (0, import_core.requestBuilder)(input, context);
487
+ const headers = {};
488
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
489
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
490
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
491
+ let body;
492
+ b.m("DELETE").h(headers).b(body);
493
+ return b.build();
494
+ }, "se_DeleteSchemaCommand");
495
+ var se_DeleteSchemaVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
496
+ const b = (0, import_core.requestBuilder)(input, context);
497
+ const headers = {};
498
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}");
499
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
500
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
501
+ b.p("SchemaVersion", () => input.SchemaVersion, "{SchemaVersion}", false);
502
+ let body;
503
+ b.m("DELETE").h(headers).b(body);
504
+ return b.build();
505
+ }, "se_DeleteSchemaVersionCommand");
506
+ var se_DescribeCodeBindingCommand = /* @__PURE__ */ __name(async (input, context) => {
507
+ const b = (0, import_core.requestBuilder)(input, context);
508
+ const headers = {};
509
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");
510
+ b.p("Language", () => input.Language, "{Language}", false);
511
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
512
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
513
+ const query = (0, import_smithy_client.map)({
514
+ [_sV]: [, input[_SV]]
515
+ });
516
+ let body;
517
+ b.m("GET").h(headers).q(query).b(body);
518
+ return b.build();
519
+ }, "se_DescribeCodeBindingCommand");
520
+ var se_DescribeDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {
521
+ const b = (0, import_core.requestBuilder)(input, context);
522
+ const headers = {};
523
+ b.bp("/v1/discoverers/id/{DiscovererId}");
524
+ b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
525
+ let body;
526
+ b.m("GET").h(headers).b(body);
527
+ return b.build();
528
+ }, "se_DescribeDiscovererCommand");
529
+ var se_DescribeRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {
530
+ const b = (0, import_core.requestBuilder)(input, context);
531
+ const headers = {};
532
+ b.bp("/v1/registries/name/{RegistryName}");
533
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
534
+ let body;
535
+ b.m("GET").h(headers).b(body);
536
+ return b.build();
537
+ }, "se_DescribeRegistryCommand");
538
+ var se_DescribeSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
539
+ const b = (0, import_core.requestBuilder)(input, context);
540
+ const headers = {};
541
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
542
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
543
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
544
+ const query = (0, import_smithy_client.map)({
545
+ [_sV]: [, input[_SV]]
546
+ });
547
+ let body;
548
+ b.m("GET").h(headers).q(query).b(body);
549
+ return b.build();
550
+ }, "se_DescribeSchemaCommand");
551
+ var se_ExportSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
552
+ const b = (0, import_core.requestBuilder)(input, context);
553
+ const headers = {};
554
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export");
555
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
556
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
557
+ const query = (0, import_smithy_client.map)({
558
+ [_sV]: [, input[_SV]],
559
+ [_t]: [, (0, import_smithy_client.expectNonNull)(input[_T], `Type`)]
560
+ });
561
+ let body;
562
+ b.m("GET").h(headers).q(query).b(body);
563
+ return b.build();
564
+ }, "se_ExportSchemaCommand");
565
+ var se_GetCodeBindingSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
566
+ const b = (0, import_core.requestBuilder)(input, context);
567
+ const headers = {};
568
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source");
569
+ b.p("Language", () => input.Language, "{Language}", false);
570
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
571
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
572
+ const query = (0, import_smithy_client.map)({
573
+ [_sV]: [, input[_SV]]
574
+ });
575
+ let body;
576
+ b.m("GET").h(headers).q(query).b(body);
577
+ return b.build();
578
+ }, "se_GetCodeBindingSourceCommand");
579
+ var se_GetDiscoveredSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
580
+ const b = (0, import_core.requestBuilder)(input, context);
581
+ const headers = {
582
+ "content-type": "application/json"
583
+ };
584
+ b.bp("/v1/discover");
585
+ let body;
586
+ body = JSON.stringify(
587
+ (0, import_smithy_client.take)(input, {
588
+ Events: (_) => (0, import_smithy_client._json)(_),
589
+ Type: []
590
+ })
591
+ );
592
+ b.m("POST").h(headers).b(body);
593
+ return b.build();
594
+ }, "se_GetDiscoveredSchemaCommand");
595
+ var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
596
+ const b = (0, import_core.requestBuilder)(input, context);
597
+ const headers = {};
598
+ b.bp("/v1/policy");
599
+ const query = (0, import_smithy_client.map)({
600
+ [_rN]: [, input[_RN]]
601
+ });
602
+ let body;
603
+ b.m("GET").h(headers).q(query).b(body);
604
+ return b.build();
605
+ }, "se_GetResourcePolicyCommand");
606
+ var se_ListDiscoverersCommand = /* @__PURE__ */ __name(async (input, context) => {
607
+ const b = (0, import_core.requestBuilder)(input, context);
608
+ const headers = {};
609
+ b.bp("/v1/discoverers");
610
+ const query = (0, import_smithy_client.map)({
611
+ [_dIP]: [, input[_DIP]],
612
+ [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
613
+ [_nT]: [, input[_NT]],
614
+ [_sAP]: [, input[_SAP]]
615
+ });
616
+ let body;
617
+ b.m("GET").h(headers).q(query).b(body);
618
+ return b.build();
619
+ }, "se_ListDiscoverersCommand");
620
+ var se_ListRegistriesCommand = /* @__PURE__ */ __name(async (input, context) => {
621
+ const b = (0, import_core.requestBuilder)(input, context);
622
+ const headers = {};
623
+ b.bp("/v1/registries");
624
+ const query = (0, import_smithy_client.map)({
625
+ [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
626
+ [_nT]: [, input[_NT]],
627
+ [_rNP]: [, input[_RNP]],
628
+ [_s]: [, input[_S]]
629
+ });
630
+ let body;
631
+ b.m("GET").h(headers).q(query).b(body);
632
+ return b.build();
633
+ }, "se_ListRegistriesCommand");
634
+ var se_ListSchemasCommand = /* @__PURE__ */ __name(async (input, context) => {
635
+ const b = (0, import_core.requestBuilder)(input, context);
636
+ const headers = {};
637
+ b.bp("/v1/registries/name/{RegistryName}/schemas");
638
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
639
+ const query = (0, import_smithy_client.map)({
640
+ [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
641
+ [_nT]: [, input[_NT]],
642
+ [_sNP]: [, input[_SNP]]
643
+ });
644
+ let body;
645
+ b.m("GET").h(headers).q(query).b(body);
646
+ return b.build();
647
+ }, "se_ListSchemasCommand");
648
+ var se_ListSchemaVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
649
+ const b = (0, import_core.requestBuilder)(input, context);
650
+ const headers = {};
651
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions");
652
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
653
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
654
+ const query = (0, import_smithy_client.map)({
655
+ [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
656
+ [_nT]: [, input[_NT]]
657
+ });
658
+ let body;
659
+ b.m("GET").h(headers).q(query).b(body);
660
+ return b.build();
661
+ }, "se_ListSchemaVersionsCommand");
662
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
663
+ const b = (0, import_core.requestBuilder)(input, context);
664
+ const headers = {};
665
+ b.bp("/tags/{ResourceArn}");
666
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
667
+ let body;
668
+ b.m("GET").h(headers).b(body);
669
+ return b.build();
670
+ }, "se_ListTagsForResourceCommand");
671
+ var se_PutCodeBindingCommand = /* @__PURE__ */ __name(async (input, context) => {
672
+ const b = (0, import_core.requestBuilder)(input, context);
673
+ const headers = {};
674
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");
675
+ b.p("Language", () => input.Language, "{Language}", false);
676
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
677
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
678
+ const query = (0, import_smithy_client.map)({
679
+ [_sV]: [, input[_SV]]
680
+ });
681
+ let body;
682
+ b.m("POST").h(headers).q(query).b(body);
683
+ return b.build();
684
+ }, "se_PutCodeBindingCommand");
685
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
686
+ const b = (0, import_core.requestBuilder)(input, context);
687
+ const headers = {
688
+ "content-type": "application/json"
689
+ };
690
+ b.bp("/v1/policy");
691
+ const query = (0, import_smithy_client.map)({
692
+ [_rN]: [, input[_RN]]
693
+ });
694
+ let body;
695
+ body = JSON.stringify(
696
+ (0, import_smithy_client.take)(input, {
697
+ Policy: (_) => import_smithy_client.LazyJsonString.fromObject(_),
698
+ RevisionId: []
699
+ })
700
+ );
701
+ b.m("PUT").h(headers).q(query).b(body);
702
+ return b.build();
703
+ }, "se_PutResourcePolicyCommand");
704
+ var se_SearchSchemasCommand = /* @__PURE__ */ __name(async (input, context) => {
705
+ const b = (0, import_core.requestBuilder)(input, context);
706
+ const headers = {};
707
+ b.bp("/v1/registries/name/{RegistryName}/schemas/search");
708
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
709
+ const query = (0, import_smithy_client.map)({
710
+ [_k]: [, (0, import_smithy_client.expectNonNull)(input[_K], `Keywords`)],
711
+ [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
712
+ [_nT]: [, input[_NT]]
713
+ });
714
+ let body;
715
+ b.m("GET").h(headers).q(query).b(body);
716
+ return b.build();
717
+ }, "se_SearchSchemasCommand");
718
+ var se_StartDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {
719
+ const b = (0, import_core.requestBuilder)(input, context);
720
+ const headers = {};
721
+ b.bp("/v1/discoverers/id/{DiscovererId}/start");
722
+ b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
723
+ let body;
724
+ b.m("POST").h(headers).b(body);
725
+ return b.build();
726
+ }, "se_StartDiscovererCommand");
727
+ var se_StopDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {
728
+ const b = (0, import_core.requestBuilder)(input, context);
729
+ const headers = {};
730
+ b.bp("/v1/discoverers/id/{DiscovererId}/stop");
731
+ b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
732
+ let body;
733
+ b.m("POST").h(headers).b(body);
734
+ return b.build();
735
+ }, "se_StopDiscovererCommand");
736
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
737
+ const b = (0, import_core.requestBuilder)(input, context);
738
+ const headers = {
739
+ "content-type": "application/json"
740
+ };
741
+ b.bp("/tags/{ResourceArn}");
742
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
743
+ let body;
744
+ body = JSON.stringify(
745
+ (0, import_smithy_client.take)(input, {
746
+ tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
747
+ })
748
+ );
749
+ b.m("POST").h(headers).b(body);
750
+ return b.build();
751
+ }, "se_TagResourceCommand");
752
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
753
+ const b = (0, import_core.requestBuilder)(input, context);
754
+ const headers = {};
755
+ b.bp("/tags/{ResourceArn}");
756
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
757
+ const query = (0, import_smithy_client.map)({
758
+ [_tK]: [
759
+ (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
760
+ () => (input[_TK] || []).map((_entry) => _entry)
761
+ ]
762
+ });
763
+ let body;
764
+ b.m("DELETE").h(headers).q(query).b(body);
765
+ return b.build();
766
+ }, "se_UntagResourceCommand");
767
+ var se_UpdateDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {
768
+ const b = (0, import_core.requestBuilder)(input, context);
769
+ const headers = {
770
+ "content-type": "application/json"
771
+ };
772
+ b.bp("/v1/discoverers/id/{DiscovererId}");
773
+ b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
774
+ let body;
775
+ body = JSON.stringify(
776
+ (0, import_smithy_client.take)(input, {
777
+ CrossAccount: [],
778
+ Description: []
779
+ })
780
+ );
781
+ b.m("PUT").h(headers).b(body);
782
+ return b.build();
783
+ }, "se_UpdateDiscovererCommand");
784
+ var se_UpdateRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {
785
+ const b = (0, import_core.requestBuilder)(input, context);
786
+ const headers = {
787
+ "content-type": "application/json"
788
+ };
789
+ b.bp("/v1/registries/name/{RegistryName}");
790
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
791
+ let body;
792
+ body = JSON.stringify(
793
+ (0, import_smithy_client.take)(input, {
794
+ Description: []
795
+ })
796
+ );
797
+ b.m("PUT").h(headers).b(body);
798
+ return b.build();
799
+ }, "se_UpdateRegistryCommand");
800
+ var se_UpdateSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
801
+ const b = (0, import_core.requestBuilder)(input, context);
802
+ const headers = {
803
+ "content-type": "application/json"
804
+ };
805
+ b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
806
+ b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
807
+ b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
808
+ let body;
809
+ body = JSON.stringify(
810
+ (0, import_smithy_client.take)(input, {
811
+ ClientTokenId: [true, (_) => _ ?? (0, import_uuid.v4)()],
812
+ Content: [],
813
+ Description: [],
814
+ Type: []
815
+ })
816
+ );
817
+ b.m("PUT").h(headers).b(body);
818
+ return b.build();
819
+ }, "se_UpdateSchemaCommand");
820
+ var de_CreateDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
821
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
822
+ return de_CreateDiscovererCommandError(output, context);
823
+ }
824
+ const contents = (0, import_smithy_client.map)({
825
+ $metadata: deserializeMetadata(output)
826
+ });
827
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
828
+ const doc = (0, import_smithy_client.take)(data, {
829
+ CrossAccount: import_smithy_client.expectBoolean,
830
+ Description: import_smithy_client.expectString,
831
+ DiscovererArn: import_smithy_client.expectString,
832
+ DiscovererId: import_smithy_client.expectString,
833
+ SourceArn: import_smithy_client.expectString,
834
+ State: import_smithy_client.expectString,
835
+ Tags: [, import_smithy_client._json, `tags`]
836
+ });
837
+ Object.assign(contents, doc);
838
+ return contents;
839
+ }, "de_CreateDiscovererCommand");
840
+ var de_CreateDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
841
+ const parsedOutput = {
842
+ ...output,
843
+ body: await parseErrorBody(output.body, context)
844
+ };
845
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
846
+ switch (errorCode) {
847
+ case "BadRequestException":
848
+ case "com.amazonaws.schemas#BadRequestException":
849
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
850
+ case "ConflictException":
851
+ case "com.amazonaws.schemas#ConflictException":
852
+ throw await de_ConflictExceptionRes(parsedOutput, context);
853
+ case "ForbiddenException":
854
+ case "com.amazonaws.schemas#ForbiddenException":
855
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
856
+ case "InternalServerErrorException":
857
+ case "com.amazonaws.schemas#InternalServerErrorException":
858
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
859
+ case "ServiceUnavailableException":
860
+ case "com.amazonaws.schemas#ServiceUnavailableException":
861
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
862
+ case "UnauthorizedException":
863
+ case "com.amazonaws.schemas#UnauthorizedException":
864
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
865
+ default:
866
+ const parsedBody = parsedOutput.body;
867
+ return throwDefaultError({
868
+ output,
869
+ parsedBody,
870
+ errorCode
871
+ });
872
+ }
873
+ }, "de_CreateDiscovererCommandError");
874
+ var de_CreateRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
875
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
876
+ return de_CreateRegistryCommandError(output, context);
877
+ }
878
+ const contents = (0, import_smithy_client.map)({
879
+ $metadata: deserializeMetadata(output)
880
+ });
881
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
882
+ const doc = (0, import_smithy_client.take)(data, {
883
+ Description: import_smithy_client.expectString,
884
+ RegistryArn: import_smithy_client.expectString,
885
+ RegistryName: import_smithy_client.expectString,
886
+ Tags: [, import_smithy_client._json, `tags`]
887
+ });
888
+ Object.assign(contents, doc);
889
+ return contents;
890
+ }, "de_CreateRegistryCommand");
891
+ var de_CreateRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
892
+ const parsedOutput = {
893
+ ...output,
894
+ body: await parseErrorBody(output.body, context)
895
+ };
896
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
897
+ switch (errorCode) {
898
+ case "BadRequestException":
899
+ case "com.amazonaws.schemas#BadRequestException":
900
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
901
+ case "ConflictException":
902
+ case "com.amazonaws.schemas#ConflictException":
903
+ throw await de_ConflictExceptionRes(parsedOutput, context);
904
+ case "ForbiddenException":
905
+ case "com.amazonaws.schemas#ForbiddenException":
906
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
907
+ case "InternalServerErrorException":
908
+ case "com.amazonaws.schemas#InternalServerErrorException":
909
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
910
+ case "ServiceUnavailableException":
911
+ case "com.amazonaws.schemas#ServiceUnavailableException":
912
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
913
+ case "UnauthorizedException":
914
+ case "com.amazonaws.schemas#UnauthorizedException":
915
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
916
+ default:
917
+ const parsedBody = parsedOutput.body;
918
+ return throwDefaultError({
919
+ output,
920
+ parsedBody,
921
+ errorCode
922
+ });
923
+ }
924
+ }, "de_CreateRegistryCommandError");
925
+ var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
926
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
927
+ return de_CreateSchemaCommandError(output, context);
928
+ }
929
+ const contents = (0, import_smithy_client.map)({
930
+ $metadata: deserializeMetadata(output)
931
+ });
932
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
933
+ const doc = (0, import_smithy_client.take)(data, {
934
+ Description: import_smithy_client.expectString,
935
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
936
+ SchemaArn: import_smithy_client.expectString,
937
+ SchemaName: import_smithy_client.expectString,
938
+ SchemaVersion: import_smithy_client.expectString,
939
+ Tags: [, import_smithy_client._json, `tags`],
940
+ Type: import_smithy_client.expectString,
941
+ VersionCreatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
942
+ });
943
+ Object.assign(contents, doc);
944
+ return contents;
945
+ }, "de_CreateSchemaCommand");
946
+ var de_CreateSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
947
+ const parsedOutput = {
948
+ ...output,
949
+ body: await parseErrorBody(output.body, context)
950
+ };
951
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
952
+ switch (errorCode) {
953
+ case "BadRequestException":
954
+ case "com.amazonaws.schemas#BadRequestException":
955
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
956
+ case "ForbiddenException":
957
+ case "com.amazonaws.schemas#ForbiddenException":
958
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
959
+ case "InternalServerErrorException":
960
+ case "com.amazonaws.schemas#InternalServerErrorException":
961
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
962
+ case "ServiceUnavailableException":
963
+ case "com.amazonaws.schemas#ServiceUnavailableException":
964
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
965
+ default:
966
+ const parsedBody = parsedOutput.body;
967
+ return throwDefaultError({
968
+ output,
969
+ parsedBody,
970
+ errorCode
971
+ });
972
+ }
973
+ }, "de_CreateSchemaCommandError");
974
+ var de_DeleteDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
975
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
976
+ return de_DeleteDiscovererCommandError(output, context);
977
+ }
978
+ const contents = (0, import_smithy_client.map)({
979
+ $metadata: deserializeMetadata(output)
980
+ });
981
+ await (0, import_smithy_client.collectBody)(output.body, context);
982
+ return contents;
983
+ }, "de_DeleteDiscovererCommand");
984
+ var de_DeleteDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
985
+ const parsedOutput = {
986
+ ...output,
987
+ body: await parseErrorBody(output.body, context)
988
+ };
989
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
990
+ switch (errorCode) {
991
+ case "BadRequestException":
992
+ case "com.amazonaws.schemas#BadRequestException":
993
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
994
+ case "ForbiddenException":
995
+ case "com.amazonaws.schemas#ForbiddenException":
996
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
997
+ case "InternalServerErrorException":
998
+ case "com.amazonaws.schemas#InternalServerErrorException":
999
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1000
+ case "NotFoundException":
1001
+ case "com.amazonaws.schemas#NotFoundException":
1002
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1003
+ case "ServiceUnavailableException":
1004
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1005
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1006
+ case "UnauthorizedException":
1007
+ case "com.amazonaws.schemas#UnauthorizedException":
1008
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1009
+ default:
1010
+ const parsedBody = parsedOutput.body;
1011
+ return throwDefaultError({
1012
+ output,
1013
+ parsedBody,
1014
+ errorCode
1015
+ });
1016
+ }
1017
+ }, "de_DeleteDiscovererCommandError");
1018
+ var de_DeleteRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
1019
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1020
+ return de_DeleteRegistryCommandError(output, context);
1021
+ }
1022
+ const contents = (0, import_smithy_client.map)({
1023
+ $metadata: deserializeMetadata(output)
1024
+ });
1025
+ await (0, import_smithy_client.collectBody)(output.body, context);
1026
+ return contents;
1027
+ }, "de_DeleteRegistryCommand");
1028
+ var de_DeleteRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1029
+ const parsedOutput = {
1030
+ ...output,
1031
+ body: await parseErrorBody(output.body, context)
1032
+ };
1033
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1034
+ switch (errorCode) {
1035
+ case "BadRequestException":
1036
+ case "com.amazonaws.schemas#BadRequestException":
1037
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1038
+ case "ForbiddenException":
1039
+ case "com.amazonaws.schemas#ForbiddenException":
1040
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1041
+ case "InternalServerErrorException":
1042
+ case "com.amazonaws.schemas#InternalServerErrorException":
1043
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1044
+ case "NotFoundException":
1045
+ case "com.amazonaws.schemas#NotFoundException":
1046
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1047
+ case "ServiceUnavailableException":
1048
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1049
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1050
+ case "UnauthorizedException":
1051
+ case "com.amazonaws.schemas#UnauthorizedException":
1052
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1053
+ default:
1054
+ const parsedBody = parsedOutput.body;
1055
+ return throwDefaultError({
1056
+ output,
1057
+ parsedBody,
1058
+ errorCode
1059
+ });
1060
+ }
1061
+ }, "de_DeleteRegistryCommandError");
1062
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1063
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1064
+ return de_DeleteResourcePolicyCommandError(output, context);
1065
+ }
1066
+ const contents = (0, import_smithy_client.map)({
1067
+ $metadata: deserializeMetadata(output)
1068
+ });
1069
+ await (0, import_smithy_client.collectBody)(output.body, context);
1070
+ return contents;
1071
+ }, "de_DeleteResourcePolicyCommand");
1072
+ var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1073
+ const parsedOutput = {
1074
+ ...output,
1075
+ body: await parseErrorBody(output.body, context)
1076
+ };
1077
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1078
+ switch (errorCode) {
1079
+ case "BadRequestException":
1080
+ case "com.amazonaws.schemas#BadRequestException":
1081
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1082
+ case "ForbiddenException":
1083
+ case "com.amazonaws.schemas#ForbiddenException":
1084
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1085
+ case "InternalServerErrorException":
1086
+ case "com.amazonaws.schemas#InternalServerErrorException":
1087
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1088
+ case "NotFoundException":
1089
+ case "com.amazonaws.schemas#NotFoundException":
1090
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1091
+ case "ServiceUnavailableException":
1092
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1093
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1094
+ case "UnauthorizedException":
1095
+ case "com.amazonaws.schemas#UnauthorizedException":
1096
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1097
+ default:
1098
+ const parsedBody = parsedOutput.body;
1099
+ return throwDefaultError({
1100
+ output,
1101
+ parsedBody,
1102
+ errorCode
1103
+ });
1104
+ }
1105
+ }, "de_DeleteResourcePolicyCommandError");
1106
+ var de_DeleteSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1107
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1108
+ return de_DeleteSchemaCommandError(output, context);
1109
+ }
1110
+ const contents = (0, import_smithy_client.map)({
1111
+ $metadata: deserializeMetadata(output)
1112
+ });
1113
+ await (0, import_smithy_client.collectBody)(output.body, context);
1114
+ return contents;
1115
+ }, "de_DeleteSchemaCommand");
1116
+ var de_DeleteSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1117
+ const parsedOutput = {
1118
+ ...output,
1119
+ body: await parseErrorBody(output.body, context)
1120
+ };
1121
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1122
+ switch (errorCode) {
1123
+ case "BadRequestException":
1124
+ case "com.amazonaws.schemas#BadRequestException":
1125
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1126
+ case "ForbiddenException":
1127
+ case "com.amazonaws.schemas#ForbiddenException":
1128
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1129
+ case "InternalServerErrorException":
1130
+ case "com.amazonaws.schemas#InternalServerErrorException":
1131
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1132
+ case "NotFoundException":
1133
+ case "com.amazonaws.schemas#NotFoundException":
1134
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1135
+ case "ServiceUnavailableException":
1136
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1137
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1138
+ case "UnauthorizedException":
1139
+ case "com.amazonaws.schemas#UnauthorizedException":
1140
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1141
+ default:
1142
+ const parsedBody = parsedOutput.body;
1143
+ return throwDefaultError({
1144
+ output,
1145
+ parsedBody,
1146
+ errorCode
1147
+ });
1148
+ }
1149
+ }, "de_DeleteSchemaCommandError");
1150
+ var de_DeleteSchemaVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1151
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1152
+ return de_DeleteSchemaVersionCommandError(output, context);
1153
+ }
1154
+ const contents = (0, import_smithy_client.map)({
1155
+ $metadata: deserializeMetadata(output)
1156
+ });
1157
+ await (0, import_smithy_client.collectBody)(output.body, context);
1158
+ return contents;
1159
+ }, "de_DeleteSchemaVersionCommand");
1160
+ var de_DeleteSchemaVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1161
+ const parsedOutput = {
1162
+ ...output,
1163
+ body: await parseErrorBody(output.body, context)
1164
+ };
1165
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
+ switch (errorCode) {
1167
+ case "BadRequestException":
1168
+ case "com.amazonaws.schemas#BadRequestException":
1169
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1170
+ case "ForbiddenException":
1171
+ case "com.amazonaws.schemas#ForbiddenException":
1172
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1173
+ case "InternalServerErrorException":
1174
+ case "com.amazonaws.schemas#InternalServerErrorException":
1175
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1176
+ case "NotFoundException":
1177
+ case "com.amazonaws.schemas#NotFoundException":
1178
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1179
+ case "ServiceUnavailableException":
1180
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1181
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1182
+ case "UnauthorizedException":
1183
+ case "com.amazonaws.schemas#UnauthorizedException":
1184
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1185
+ default:
1186
+ const parsedBody = parsedOutput.body;
1187
+ return throwDefaultError({
1188
+ output,
1189
+ parsedBody,
1190
+ errorCode
1191
+ });
1192
+ }
1193
+ }, "de_DeleteSchemaVersionCommandError");
1194
+ var de_DescribeCodeBindingCommand = /* @__PURE__ */ __name(async (output, context) => {
1195
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1196
+ return de_DescribeCodeBindingCommandError(output, context);
1197
+ }
1198
+ const contents = (0, import_smithy_client.map)({
1199
+ $metadata: deserializeMetadata(output)
1200
+ });
1201
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1202
+ const doc = (0, import_smithy_client.take)(data, {
1203
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1204
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1205
+ SchemaVersion: import_smithy_client.expectString,
1206
+ Status: import_smithy_client.expectString
1207
+ });
1208
+ Object.assign(contents, doc);
1209
+ return contents;
1210
+ }, "de_DescribeCodeBindingCommand");
1211
+ var de_DescribeCodeBindingCommandError = /* @__PURE__ */ __name(async (output, context) => {
1212
+ const parsedOutput = {
1213
+ ...output,
1214
+ body: await parseErrorBody(output.body, context)
1215
+ };
1216
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1217
+ switch (errorCode) {
1218
+ case "BadRequestException":
1219
+ case "com.amazonaws.schemas#BadRequestException":
1220
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1221
+ case "ForbiddenException":
1222
+ case "com.amazonaws.schemas#ForbiddenException":
1223
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1224
+ case "InternalServerErrorException":
1225
+ case "com.amazonaws.schemas#InternalServerErrorException":
1226
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1227
+ case "NotFoundException":
1228
+ case "com.amazonaws.schemas#NotFoundException":
1229
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1230
+ case "TooManyRequestsException":
1231
+ case "com.amazonaws.schemas#TooManyRequestsException":
1232
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1233
+ case "UnauthorizedException":
1234
+ case "com.amazonaws.schemas#UnauthorizedException":
1235
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1236
+ default:
1237
+ const parsedBody = parsedOutput.body;
1238
+ return throwDefaultError({
1239
+ output,
1240
+ parsedBody,
1241
+ errorCode
1242
+ });
1243
+ }
1244
+ }, "de_DescribeCodeBindingCommandError");
1245
+ var de_DescribeDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
1246
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
+ return de_DescribeDiscovererCommandError(output, context);
1248
+ }
1249
+ const contents = (0, import_smithy_client.map)({
1250
+ $metadata: deserializeMetadata(output)
1251
+ });
1252
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1253
+ const doc = (0, import_smithy_client.take)(data, {
1254
+ CrossAccount: import_smithy_client.expectBoolean,
1255
+ Description: import_smithy_client.expectString,
1256
+ DiscovererArn: import_smithy_client.expectString,
1257
+ DiscovererId: import_smithy_client.expectString,
1258
+ SourceArn: import_smithy_client.expectString,
1259
+ State: import_smithy_client.expectString,
1260
+ Tags: [, import_smithy_client._json, `tags`]
1261
+ });
1262
+ Object.assign(contents, doc);
1263
+ return contents;
1264
+ }, "de_DescribeDiscovererCommand");
1265
+ var de_DescribeDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
1266
+ const parsedOutput = {
1267
+ ...output,
1268
+ body: await parseErrorBody(output.body, context)
1269
+ };
1270
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1271
+ switch (errorCode) {
1272
+ case "BadRequestException":
1273
+ case "com.amazonaws.schemas#BadRequestException":
1274
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1275
+ case "ForbiddenException":
1276
+ case "com.amazonaws.schemas#ForbiddenException":
1277
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1278
+ case "InternalServerErrorException":
1279
+ case "com.amazonaws.schemas#InternalServerErrorException":
1280
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1281
+ case "NotFoundException":
1282
+ case "com.amazonaws.schemas#NotFoundException":
1283
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1284
+ case "ServiceUnavailableException":
1285
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1286
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1287
+ case "UnauthorizedException":
1288
+ case "com.amazonaws.schemas#UnauthorizedException":
1289
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1290
+ default:
1291
+ const parsedBody = parsedOutput.body;
1292
+ return throwDefaultError({
1293
+ output,
1294
+ parsedBody,
1295
+ errorCode
1296
+ });
1297
+ }
1298
+ }, "de_DescribeDiscovererCommandError");
1299
+ var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
1300
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
+ return de_DescribeRegistryCommandError(output, context);
1302
+ }
1303
+ const contents = (0, import_smithy_client.map)({
1304
+ $metadata: deserializeMetadata(output)
1305
+ });
1306
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1307
+ const doc = (0, import_smithy_client.take)(data, {
1308
+ Description: import_smithy_client.expectString,
1309
+ RegistryArn: import_smithy_client.expectString,
1310
+ RegistryName: import_smithy_client.expectString,
1311
+ Tags: [, import_smithy_client._json, `tags`]
1312
+ });
1313
+ Object.assign(contents, doc);
1314
+ return contents;
1315
+ }, "de_DescribeRegistryCommand");
1316
+ var de_DescribeRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1317
+ const parsedOutput = {
1318
+ ...output,
1319
+ body: await parseErrorBody(output.body, context)
1320
+ };
1321
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1322
+ switch (errorCode) {
1323
+ case "BadRequestException":
1324
+ case "com.amazonaws.schemas#BadRequestException":
1325
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1326
+ case "ForbiddenException":
1327
+ case "com.amazonaws.schemas#ForbiddenException":
1328
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1329
+ case "InternalServerErrorException":
1330
+ case "com.amazonaws.schemas#InternalServerErrorException":
1331
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1332
+ case "NotFoundException":
1333
+ case "com.amazonaws.schemas#NotFoundException":
1334
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1335
+ case "ServiceUnavailableException":
1336
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1337
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1338
+ case "UnauthorizedException":
1339
+ case "com.amazonaws.schemas#UnauthorizedException":
1340
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1341
+ default:
1342
+ const parsedBody = parsedOutput.body;
1343
+ return throwDefaultError({
1344
+ output,
1345
+ parsedBody,
1346
+ errorCode
1347
+ });
1348
+ }
1349
+ }, "de_DescribeRegistryCommandError");
1350
+ var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
+ return de_DescribeSchemaCommandError(output, context);
1353
+ }
1354
+ const contents = (0, import_smithy_client.map)({
1355
+ $metadata: deserializeMetadata(output)
1356
+ });
1357
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1358
+ const doc = (0, import_smithy_client.take)(data, {
1359
+ Content: import_smithy_client.expectString,
1360
+ Description: import_smithy_client.expectString,
1361
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1362
+ SchemaArn: import_smithy_client.expectString,
1363
+ SchemaName: import_smithy_client.expectString,
1364
+ SchemaVersion: import_smithy_client.expectString,
1365
+ Tags: [, import_smithy_client._json, `tags`],
1366
+ Type: import_smithy_client.expectString,
1367
+ VersionCreatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1368
+ });
1369
+ Object.assign(contents, doc);
1370
+ return contents;
1371
+ }, "de_DescribeSchemaCommand");
1372
+ var de_DescribeSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1373
+ const parsedOutput = {
1374
+ ...output,
1375
+ body: await parseErrorBody(output.body, context)
1376
+ };
1377
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1378
+ switch (errorCode) {
1379
+ case "BadRequestException":
1380
+ case "com.amazonaws.schemas#BadRequestException":
1381
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1382
+ case "ForbiddenException":
1383
+ case "com.amazonaws.schemas#ForbiddenException":
1384
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1385
+ case "InternalServerErrorException":
1386
+ case "com.amazonaws.schemas#InternalServerErrorException":
1387
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1388
+ case "NotFoundException":
1389
+ case "com.amazonaws.schemas#NotFoundException":
1390
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1391
+ case "ServiceUnavailableException":
1392
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1393
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1394
+ case "UnauthorizedException":
1395
+ case "com.amazonaws.schemas#UnauthorizedException":
1396
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1397
+ default:
1398
+ const parsedBody = parsedOutput.body;
1399
+ return throwDefaultError({
1400
+ output,
1401
+ parsedBody,
1402
+ errorCode
1403
+ });
1404
+ }
1405
+ }, "de_DescribeSchemaCommandError");
1406
+ var de_ExportSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1407
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1408
+ return de_ExportSchemaCommandError(output, context);
1409
+ }
1410
+ const contents = (0, import_smithy_client.map)({
1411
+ $metadata: deserializeMetadata(output)
1412
+ });
1413
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1414
+ const doc = (0, import_smithy_client.take)(data, {
1415
+ Content: import_smithy_client.expectString,
1416
+ SchemaArn: import_smithy_client.expectString,
1417
+ SchemaName: import_smithy_client.expectString,
1418
+ SchemaVersion: import_smithy_client.expectString,
1419
+ Type: import_smithy_client.expectString
1420
+ });
1421
+ Object.assign(contents, doc);
1422
+ return contents;
1423
+ }, "de_ExportSchemaCommand");
1424
+ var de_ExportSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1425
+ const parsedOutput = {
1426
+ ...output,
1427
+ body: await parseErrorBody(output.body, context)
1428
+ };
1429
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1430
+ switch (errorCode) {
1431
+ case "BadRequestException":
1432
+ case "com.amazonaws.schemas#BadRequestException":
1433
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1434
+ case "ForbiddenException":
1435
+ case "com.amazonaws.schemas#ForbiddenException":
1436
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1437
+ case "InternalServerErrorException":
1438
+ case "com.amazonaws.schemas#InternalServerErrorException":
1439
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1440
+ case "NotFoundException":
1441
+ case "com.amazonaws.schemas#NotFoundException":
1442
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1443
+ case "ServiceUnavailableException":
1444
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1445
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1446
+ case "TooManyRequestsException":
1447
+ case "com.amazonaws.schemas#TooManyRequestsException":
1448
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1449
+ case "UnauthorizedException":
1450
+ case "com.amazonaws.schemas#UnauthorizedException":
1451
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1452
+ default:
1453
+ const parsedBody = parsedOutput.body;
1454
+ return throwDefaultError({
1455
+ output,
1456
+ parsedBody,
1457
+ errorCode
1458
+ });
1459
+ }
1460
+ }, "de_ExportSchemaCommandError");
1461
+ var de_GetCodeBindingSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1462
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1463
+ return de_GetCodeBindingSourceCommandError(output, context);
1464
+ }
1465
+ const contents = (0, import_smithy_client.map)({
1466
+ $metadata: deserializeMetadata(output)
1467
+ });
1468
+ const data = await (0, import_smithy_client.collectBody)(output.body, context);
1469
+ contents.Body = data;
1470
+ return contents;
1471
+ }, "de_GetCodeBindingSourceCommand");
1472
+ var de_GetCodeBindingSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1473
+ const parsedOutput = {
1474
+ ...output,
1475
+ body: await parseErrorBody(output.body, context)
1476
+ };
1477
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1478
+ switch (errorCode) {
1479
+ case "BadRequestException":
1480
+ case "com.amazonaws.schemas#BadRequestException":
1481
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1482
+ case "ForbiddenException":
1483
+ case "com.amazonaws.schemas#ForbiddenException":
1484
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1485
+ case "InternalServerErrorException":
1486
+ case "com.amazonaws.schemas#InternalServerErrorException":
1487
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1488
+ case "NotFoundException":
1489
+ case "com.amazonaws.schemas#NotFoundException":
1490
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1491
+ case "TooManyRequestsException":
1492
+ case "com.amazonaws.schemas#TooManyRequestsException":
1493
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1494
+ case "UnauthorizedException":
1495
+ case "com.amazonaws.schemas#UnauthorizedException":
1496
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1497
+ default:
1498
+ const parsedBody = parsedOutput.body;
1499
+ return throwDefaultError({
1500
+ output,
1501
+ parsedBody,
1502
+ errorCode
1503
+ });
1504
+ }
1505
+ }, "de_GetCodeBindingSourceCommandError");
1506
+ var de_GetDiscoveredSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1507
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1508
+ return de_GetDiscoveredSchemaCommandError(output, context);
1509
+ }
1510
+ const contents = (0, import_smithy_client.map)({
1511
+ $metadata: deserializeMetadata(output)
1512
+ });
1513
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1514
+ const doc = (0, import_smithy_client.take)(data, {
1515
+ Content: import_smithy_client.expectString
1516
+ });
1517
+ Object.assign(contents, doc);
1518
+ return contents;
1519
+ }, "de_GetDiscoveredSchemaCommand");
1520
+ var de_GetDiscoveredSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1521
+ const parsedOutput = {
1522
+ ...output,
1523
+ body: await parseErrorBody(output.body, context)
1524
+ };
1525
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1526
+ switch (errorCode) {
1527
+ case "BadRequestException":
1528
+ case "com.amazonaws.schemas#BadRequestException":
1529
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1530
+ case "ForbiddenException":
1531
+ case "com.amazonaws.schemas#ForbiddenException":
1532
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1533
+ case "InternalServerErrorException":
1534
+ case "com.amazonaws.schemas#InternalServerErrorException":
1535
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1536
+ case "ServiceUnavailableException":
1537
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1538
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1539
+ case "UnauthorizedException":
1540
+ case "com.amazonaws.schemas#UnauthorizedException":
1541
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1542
+ default:
1543
+ const parsedBody = parsedOutput.body;
1544
+ return throwDefaultError({
1545
+ output,
1546
+ parsedBody,
1547
+ errorCode
1548
+ });
1549
+ }
1550
+ }, "de_GetDiscoveredSchemaCommandError");
1551
+ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1552
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1553
+ return de_GetResourcePolicyCommandError(output, context);
1554
+ }
1555
+ const contents = (0, import_smithy_client.map)({
1556
+ $metadata: deserializeMetadata(output)
1557
+ });
1558
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1559
+ const doc = (0, import_smithy_client.take)(data, {
1560
+ Policy: (_) => new import_smithy_client.LazyJsonString(_),
1561
+ RevisionId: import_smithy_client.expectString
1562
+ });
1563
+ Object.assign(contents, doc);
1564
+ return contents;
1565
+ }, "de_GetResourcePolicyCommand");
1566
+ var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1567
+ const parsedOutput = {
1568
+ ...output,
1569
+ body: await parseErrorBody(output.body, context)
1570
+ };
1571
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1572
+ switch (errorCode) {
1573
+ case "BadRequestException":
1574
+ case "com.amazonaws.schemas#BadRequestException":
1575
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1576
+ case "ForbiddenException":
1577
+ case "com.amazonaws.schemas#ForbiddenException":
1578
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1579
+ case "InternalServerErrorException":
1580
+ case "com.amazonaws.schemas#InternalServerErrorException":
1581
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1582
+ case "NotFoundException":
1583
+ case "com.amazonaws.schemas#NotFoundException":
1584
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1585
+ case "ServiceUnavailableException":
1586
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1587
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1588
+ case "UnauthorizedException":
1589
+ case "com.amazonaws.schemas#UnauthorizedException":
1590
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1591
+ default:
1592
+ const parsedBody = parsedOutput.body;
1593
+ return throwDefaultError({
1594
+ output,
1595
+ parsedBody,
1596
+ errorCode
1597
+ });
1598
+ }
1599
+ }, "de_GetResourcePolicyCommandError");
1600
+ var de_ListDiscoverersCommand = /* @__PURE__ */ __name(async (output, context) => {
1601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1602
+ return de_ListDiscoverersCommandError(output, context);
1603
+ }
1604
+ const contents = (0, import_smithy_client.map)({
1605
+ $metadata: deserializeMetadata(output)
1606
+ });
1607
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1608
+ const doc = (0, import_smithy_client.take)(data, {
1609
+ Discoverers: (_) => de___listOfDiscovererSummary(_, context),
1610
+ NextToken: import_smithy_client.expectString
1611
+ });
1612
+ Object.assign(contents, doc);
1613
+ return contents;
1614
+ }, "de_ListDiscoverersCommand");
1615
+ var de_ListDiscoverersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1616
+ const parsedOutput = {
1617
+ ...output,
1618
+ body: await parseErrorBody(output.body, context)
1619
+ };
1620
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1621
+ switch (errorCode) {
1622
+ case "BadRequestException":
1623
+ case "com.amazonaws.schemas#BadRequestException":
1624
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1625
+ case "ForbiddenException":
1626
+ case "com.amazonaws.schemas#ForbiddenException":
1627
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1628
+ case "InternalServerErrorException":
1629
+ case "com.amazonaws.schemas#InternalServerErrorException":
1630
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1631
+ case "ServiceUnavailableException":
1632
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1633
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1634
+ case "UnauthorizedException":
1635
+ case "com.amazonaws.schemas#UnauthorizedException":
1636
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1637
+ default:
1638
+ const parsedBody = parsedOutput.body;
1639
+ return throwDefaultError({
1640
+ output,
1641
+ parsedBody,
1642
+ errorCode
1643
+ });
1644
+ }
1645
+ }, "de_ListDiscoverersCommandError");
1646
+ var de_ListRegistriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1647
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1648
+ return de_ListRegistriesCommandError(output, context);
1649
+ }
1650
+ const contents = (0, import_smithy_client.map)({
1651
+ $metadata: deserializeMetadata(output)
1652
+ });
1653
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1654
+ const doc = (0, import_smithy_client.take)(data, {
1655
+ NextToken: import_smithy_client.expectString,
1656
+ Registries: (_) => de___listOfRegistrySummary(_, context)
1657
+ });
1658
+ Object.assign(contents, doc);
1659
+ return contents;
1660
+ }, "de_ListRegistriesCommand");
1661
+ var de_ListRegistriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1662
+ const parsedOutput = {
1663
+ ...output,
1664
+ body: await parseErrorBody(output.body, context)
1665
+ };
1666
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1667
+ switch (errorCode) {
1668
+ case "BadRequestException":
1669
+ case "com.amazonaws.schemas#BadRequestException":
1670
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1671
+ case "ForbiddenException":
1672
+ case "com.amazonaws.schemas#ForbiddenException":
1673
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1674
+ case "InternalServerErrorException":
1675
+ case "com.amazonaws.schemas#InternalServerErrorException":
1676
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1677
+ case "ServiceUnavailableException":
1678
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1679
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1680
+ case "UnauthorizedException":
1681
+ case "com.amazonaws.schemas#UnauthorizedException":
1682
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1683
+ default:
1684
+ const parsedBody = parsedOutput.body;
1685
+ return throwDefaultError({
1686
+ output,
1687
+ parsedBody,
1688
+ errorCode
1689
+ });
1690
+ }
1691
+ }, "de_ListRegistriesCommandError");
1692
+ var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
1693
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1694
+ return de_ListSchemasCommandError(output, context);
1695
+ }
1696
+ const contents = (0, import_smithy_client.map)({
1697
+ $metadata: deserializeMetadata(output)
1698
+ });
1699
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1700
+ const doc = (0, import_smithy_client.take)(data, {
1701
+ NextToken: import_smithy_client.expectString,
1702
+ Schemas: (_) => de___listOfSchemaSummary(_, context)
1703
+ });
1704
+ Object.assign(contents, doc);
1705
+ return contents;
1706
+ }, "de_ListSchemasCommand");
1707
+ var de_ListSchemasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1708
+ const parsedOutput = {
1709
+ ...output,
1710
+ body: await parseErrorBody(output.body, context)
1711
+ };
1712
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1713
+ switch (errorCode) {
1714
+ case "BadRequestException":
1715
+ case "com.amazonaws.schemas#BadRequestException":
1716
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1717
+ case "ForbiddenException":
1718
+ case "com.amazonaws.schemas#ForbiddenException":
1719
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1720
+ case "InternalServerErrorException":
1721
+ case "com.amazonaws.schemas#InternalServerErrorException":
1722
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1723
+ case "ServiceUnavailableException":
1724
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1725
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1726
+ case "UnauthorizedException":
1727
+ case "com.amazonaws.schemas#UnauthorizedException":
1728
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1729
+ default:
1730
+ const parsedBody = parsedOutput.body;
1731
+ return throwDefaultError({
1732
+ output,
1733
+ parsedBody,
1734
+ errorCode
1735
+ });
1736
+ }
1737
+ }, "de_ListSchemasCommandError");
1738
+ var de_ListSchemaVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1739
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1740
+ return de_ListSchemaVersionsCommandError(output, context);
1741
+ }
1742
+ const contents = (0, import_smithy_client.map)({
1743
+ $metadata: deserializeMetadata(output)
1744
+ });
1745
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1746
+ const doc = (0, import_smithy_client.take)(data, {
1747
+ NextToken: import_smithy_client.expectString,
1748
+ SchemaVersions: import_smithy_client._json
1749
+ });
1750
+ Object.assign(contents, doc);
1751
+ return contents;
1752
+ }, "de_ListSchemaVersionsCommand");
1753
+ var de_ListSchemaVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1754
+ const parsedOutput = {
1755
+ ...output,
1756
+ body: await parseErrorBody(output.body, context)
1757
+ };
1758
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1759
+ switch (errorCode) {
1760
+ case "BadRequestException":
1761
+ case "com.amazonaws.schemas#BadRequestException":
1762
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1763
+ case "ForbiddenException":
1764
+ case "com.amazonaws.schemas#ForbiddenException":
1765
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1766
+ case "InternalServerErrorException":
1767
+ case "com.amazonaws.schemas#InternalServerErrorException":
1768
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1769
+ case "NotFoundException":
1770
+ case "com.amazonaws.schemas#NotFoundException":
1771
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1772
+ case "ServiceUnavailableException":
1773
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1774
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1775
+ case "UnauthorizedException":
1776
+ case "com.amazonaws.schemas#UnauthorizedException":
1777
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1778
+ default:
1779
+ const parsedBody = parsedOutput.body;
1780
+ return throwDefaultError({
1781
+ output,
1782
+ parsedBody,
1783
+ errorCode
1784
+ });
1785
+ }
1786
+ }, "de_ListSchemaVersionsCommandError");
1787
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1788
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1789
+ return de_ListTagsForResourceCommandError(output, context);
1790
+ }
1791
+ const contents = (0, import_smithy_client.map)({
1792
+ $metadata: deserializeMetadata(output)
1793
+ });
1794
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1795
+ const doc = (0, import_smithy_client.take)(data, {
1796
+ Tags: [, import_smithy_client._json, `tags`]
1797
+ });
1798
+ Object.assign(contents, doc);
1799
+ return contents;
1800
+ }, "de_ListTagsForResourceCommand");
1801
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1802
+ const parsedOutput = {
1803
+ ...output,
1804
+ body: await parseErrorBody(output.body, context)
1805
+ };
1806
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1807
+ switch (errorCode) {
1808
+ case "BadRequestException":
1809
+ case "com.amazonaws.schemas#BadRequestException":
1810
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1811
+ case "ForbiddenException":
1812
+ case "com.amazonaws.schemas#ForbiddenException":
1813
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1814
+ case "InternalServerErrorException":
1815
+ case "com.amazonaws.schemas#InternalServerErrorException":
1816
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1817
+ case "NotFoundException":
1818
+ case "com.amazonaws.schemas#NotFoundException":
1819
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1820
+ default:
1821
+ const parsedBody = parsedOutput.body;
1822
+ return throwDefaultError({
1823
+ output,
1824
+ parsedBody,
1825
+ errorCode
1826
+ });
1827
+ }
1828
+ }, "de_ListTagsForResourceCommandError");
1829
+ var de_PutCodeBindingCommand = /* @__PURE__ */ __name(async (output, context) => {
1830
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1831
+ return de_PutCodeBindingCommandError(output, context);
1832
+ }
1833
+ const contents = (0, import_smithy_client.map)({
1834
+ $metadata: deserializeMetadata(output)
1835
+ });
1836
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1837
+ const doc = (0, import_smithy_client.take)(data, {
1838
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1839
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1840
+ SchemaVersion: import_smithy_client.expectString,
1841
+ Status: import_smithy_client.expectString
1842
+ });
1843
+ Object.assign(contents, doc);
1844
+ return contents;
1845
+ }, "de_PutCodeBindingCommand");
1846
+ var de_PutCodeBindingCommandError = /* @__PURE__ */ __name(async (output, context) => {
1847
+ const parsedOutput = {
1848
+ ...output,
1849
+ body: await parseErrorBody(output.body, context)
1850
+ };
1851
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1852
+ switch (errorCode) {
1853
+ case "BadRequestException":
1854
+ case "com.amazonaws.schemas#BadRequestException":
1855
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1856
+ case "ForbiddenException":
1857
+ case "com.amazonaws.schemas#ForbiddenException":
1858
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1859
+ case "GoneException":
1860
+ case "com.amazonaws.schemas#GoneException":
1861
+ throw await de_GoneExceptionRes(parsedOutput, context);
1862
+ case "InternalServerErrorException":
1863
+ case "com.amazonaws.schemas#InternalServerErrorException":
1864
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1865
+ case "NotFoundException":
1866
+ case "com.amazonaws.schemas#NotFoundException":
1867
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1868
+ case "TooManyRequestsException":
1869
+ case "com.amazonaws.schemas#TooManyRequestsException":
1870
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1871
+ case "UnauthorizedException":
1872
+ case "com.amazonaws.schemas#UnauthorizedException":
1873
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1874
+ default:
1875
+ const parsedBody = parsedOutput.body;
1876
+ return throwDefaultError({
1877
+ output,
1878
+ parsedBody,
1879
+ errorCode
1880
+ });
1881
+ }
1882
+ }, "de_PutCodeBindingCommandError");
1883
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1884
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1885
+ return de_PutResourcePolicyCommandError(output, context);
1886
+ }
1887
+ const contents = (0, import_smithy_client.map)({
1888
+ $metadata: deserializeMetadata(output)
1889
+ });
1890
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1891
+ const doc = (0, import_smithy_client.take)(data, {
1892
+ Policy: (_) => new import_smithy_client.LazyJsonString(_),
1893
+ RevisionId: import_smithy_client.expectString
1894
+ });
1895
+ Object.assign(contents, doc);
1896
+ return contents;
1897
+ }, "de_PutResourcePolicyCommand");
1898
+ var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1899
+ const parsedOutput = {
1900
+ ...output,
1901
+ body: await parseErrorBody(output.body, context)
1902
+ };
1903
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1904
+ switch (errorCode) {
1905
+ case "BadRequestException":
1906
+ case "com.amazonaws.schemas#BadRequestException":
1907
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1908
+ case "ForbiddenException":
1909
+ case "com.amazonaws.schemas#ForbiddenException":
1910
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1911
+ case "InternalServerErrorException":
1912
+ case "com.amazonaws.schemas#InternalServerErrorException":
1913
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1914
+ case "NotFoundException":
1915
+ case "com.amazonaws.schemas#NotFoundException":
1916
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1917
+ case "PreconditionFailedException":
1918
+ case "com.amazonaws.schemas#PreconditionFailedException":
1919
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
1920
+ case "ServiceUnavailableException":
1921
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1922
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1923
+ case "UnauthorizedException":
1924
+ case "com.amazonaws.schemas#UnauthorizedException":
1925
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1926
+ default:
1927
+ const parsedBody = parsedOutput.body;
1928
+ return throwDefaultError({
1929
+ output,
1930
+ parsedBody,
1931
+ errorCode
1932
+ });
1933
+ }
1934
+ }, "de_PutResourcePolicyCommandError");
1935
+ var de_SearchSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
1936
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1937
+ return de_SearchSchemasCommandError(output, context);
1938
+ }
1939
+ const contents = (0, import_smithy_client.map)({
1940
+ $metadata: deserializeMetadata(output)
1941
+ });
1942
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1943
+ const doc = (0, import_smithy_client.take)(data, {
1944
+ NextToken: import_smithy_client.expectString,
1945
+ Schemas: (_) => de___listOfSearchSchemaSummary(_, context)
1946
+ });
1947
+ Object.assign(contents, doc);
1948
+ return contents;
1949
+ }, "de_SearchSchemasCommand");
1950
+ var de_SearchSchemasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1951
+ const parsedOutput = {
1952
+ ...output,
1953
+ body: await parseErrorBody(output.body, context)
1954
+ };
1955
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1956
+ switch (errorCode) {
1957
+ case "BadRequestException":
1958
+ case "com.amazonaws.schemas#BadRequestException":
1959
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1960
+ case "ForbiddenException":
1961
+ case "com.amazonaws.schemas#ForbiddenException":
1962
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1963
+ case "InternalServerErrorException":
1964
+ case "com.amazonaws.schemas#InternalServerErrorException":
1965
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1966
+ case "ServiceUnavailableException":
1967
+ case "com.amazonaws.schemas#ServiceUnavailableException":
1968
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1969
+ case "UnauthorizedException":
1970
+ case "com.amazonaws.schemas#UnauthorizedException":
1971
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1972
+ default:
1973
+ const parsedBody = parsedOutput.body;
1974
+ return throwDefaultError({
1975
+ output,
1976
+ parsedBody,
1977
+ errorCode
1978
+ });
1979
+ }
1980
+ }, "de_SearchSchemasCommandError");
1981
+ var de_StartDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
1982
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1983
+ return de_StartDiscovererCommandError(output, context);
1984
+ }
1985
+ const contents = (0, import_smithy_client.map)({
1986
+ $metadata: deserializeMetadata(output)
1987
+ });
1988
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1989
+ const doc = (0, import_smithy_client.take)(data, {
1990
+ DiscovererId: import_smithy_client.expectString,
1991
+ State: import_smithy_client.expectString
1992
+ });
1993
+ Object.assign(contents, doc);
1994
+ return contents;
1995
+ }, "de_StartDiscovererCommand");
1996
+ var de_StartDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
1997
+ const parsedOutput = {
1998
+ ...output,
1999
+ body: await parseErrorBody(output.body, context)
2000
+ };
2001
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2002
+ switch (errorCode) {
2003
+ case "BadRequestException":
2004
+ case "com.amazonaws.schemas#BadRequestException":
2005
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2006
+ case "ForbiddenException":
2007
+ case "com.amazonaws.schemas#ForbiddenException":
2008
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2009
+ case "InternalServerErrorException":
2010
+ case "com.amazonaws.schemas#InternalServerErrorException":
2011
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2012
+ case "NotFoundException":
2013
+ case "com.amazonaws.schemas#NotFoundException":
2014
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2015
+ case "ServiceUnavailableException":
2016
+ case "com.amazonaws.schemas#ServiceUnavailableException":
2017
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2018
+ case "UnauthorizedException":
2019
+ case "com.amazonaws.schemas#UnauthorizedException":
2020
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2021
+ default:
2022
+ const parsedBody = parsedOutput.body;
2023
+ return throwDefaultError({
2024
+ output,
2025
+ parsedBody,
2026
+ errorCode
2027
+ });
2028
+ }
2029
+ }, "de_StartDiscovererCommandError");
2030
+ var de_StopDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
2031
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2032
+ return de_StopDiscovererCommandError(output, context);
2033
+ }
2034
+ const contents = (0, import_smithy_client.map)({
2035
+ $metadata: deserializeMetadata(output)
2036
+ });
2037
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2038
+ const doc = (0, import_smithy_client.take)(data, {
2039
+ DiscovererId: import_smithy_client.expectString,
2040
+ State: import_smithy_client.expectString
2041
+ });
2042
+ Object.assign(contents, doc);
2043
+ return contents;
2044
+ }, "de_StopDiscovererCommand");
2045
+ var de_StopDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
2046
+ const parsedOutput = {
2047
+ ...output,
2048
+ body: await parseErrorBody(output.body, context)
2049
+ };
2050
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2051
+ switch (errorCode) {
2052
+ case "BadRequestException":
2053
+ case "com.amazonaws.schemas#BadRequestException":
2054
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2055
+ case "ForbiddenException":
2056
+ case "com.amazonaws.schemas#ForbiddenException":
2057
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2058
+ case "InternalServerErrorException":
2059
+ case "com.amazonaws.schemas#InternalServerErrorException":
2060
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2061
+ case "NotFoundException":
2062
+ case "com.amazonaws.schemas#NotFoundException":
2063
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2064
+ case "ServiceUnavailableException":
2065
+ case "com.amazonaws.schemas#ServiceUnavailableException":
2066
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2067
+ case "UnauthorizedException":
2068
+ case "com.amazonaws.schemas#UnauthorizedException":
2069
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2070
+ default:
2071
+ const parsedBody = parsedOutput.body;
2072
+ return throwDefaultError({
2073
+ output,
2074
+ parsedBody,
2075
+ errorCode
2076
+ });
2077
+ }
2078
+ }, "de_StopDiscovererCommandError");
2079
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2080
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2081
+ return de_TagResourceCommandError(output, context);
2082
+ }
2083
+ const contents = (0, import_smithy_client.map)({
2084
+ $metadata: deserializeMetadata(output)
2085
+ });
2086
+ await (0, import_smithy_client.collectBody)(output.body, context);
2087
+ return contents;
2088
+ }, "de_TagResourceCommand");
2089
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2090
+ const parsedOutput = {
2091
+ ...output,
2092
+ body: await parseErrorBody(output.body, context)
2093
+ };
2094
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2095
+ switch (errorCode) {
2096
+ case "BadRequestException":
2097
+ case "com.amazonaws.schemas#BadRequestException":
2098
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2099
+ case "ForbiddenException":
2100
+ case "com.amazonaws.schemas#ForbiddenException":
2101
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2102
+ case "InternalServerErrorException":
2103
+ case "com.amazonaws.schemas#InternalServerErrorException":
2104
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2105
+ case "NotFoundException":
2106
+ case "com.amazonaws.schemas#NotFoundException":
2107
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2108
+ default:
2109
+ const parsedBody = parsedOutput.body;
2110
+ return throwDefaultError({
2111
+ output,
2112
+ parsedBody,
2113
+ errorCode
2114
+ });
2115
+ }
2116
+ }, "de_TagResourceCommandError");
2117
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2118
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2119
+ return de_UntagResourceCommandError(output, context);
2120
+ }
2121
+ const contents = (0, import_smithy_client.map)({
2122
+ $metadata: deserializeMetadata(output)
2123
+ });
2124
+ await (0, import_smithy_client.collectBody)(output.body, context);
2125
+ return contents;
2126
+ }, "de_UntagResourceCommand");
2127
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2128
+ const parsedOutput = {
2129
+ ...output,
2130
+ body: await parseErrorBody(output.body, context)
2131
+ };
2132
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2133
+ switch (errorCode) {
2134
+ case "BadRequestException":
2135
+ case "com.amazonaws.schemas#BadRequestException":
2136
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2137
+ case "ForbiddenException":
2138
+ case "com.amazonaws.schemas#ForbiddenException":
2139
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2140
+ case "InternalServerErrorException":
2141
+ case "com.amazonaws.schemas#InternalServerErrorException":
2142
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2143
+ case "NotFoundException":
2144
+ case "com.amazonaws.schemas#NotFoundException":
2145
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2146
+ default:
2147
+ const parsedBody = parsedOutput.body;
2148
+ return throwDefaultError({
2149
+ output,
2150
+ parsedBody,
2151
+ errorCode
2152
+ });
2153
+ }
2154
+ }, "de_UntagResourceCommandError");
2155
+ var de_UpdateDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
2156
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2157
+ return de_UpdateDiscovererCommandError(output, context);
2158
+ }
2159
+ const contents = (0, import_smithy_client.map)({
2160
+ $metadata: deserializeMetadata(output)
2161
+ });
2162
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2163
+ const doc = (0, import_smithy_client.take)(data, {
2164
+ CrossAccount: import_smithy_client.expectBoolean,
2165
+ Description: import_smithy_client.expectString,
2166
+ DiscovererArn: import_smithy_client.expectString,
2167
+ DiscovererId: import_smithy_client.expectString,
2168
+ SourceArn: import_smithy_client.expectString,
2169
+ State: import_smithy_client.expectString,
2170
+ Tags: [, import_smithy_client._json, `tags`]
2171
+ });
2172
+ Object.assign(contents, doc);
2173
+ return contents;
2174
+ }, "de_UpdateDiscovererCommand");
2175
+ var de_UpdateDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
2176
+ const parsedOutput = {
2177
+ ...output,
2178
+ body: await parseErrorBody(output.body, context)
2179
+ };
2180
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2181
+ switch (errorCode) {
2182
+ case "BadRequestException":
2183
+ case "com.amazonaws.schemas#BadRequestException":
2184
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2185
+ case "ForbiddenException":
2186
+ case "com.amazonaws.schemas#ForbiddenException":
2187
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2188
+ case "InternalServerErrorException":
2189
+ case "com.amazonaws.schemas#InternalServerErrorException":
2190
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2191
+ case "NotFoundException":
2192
+ case "com.amazonaws.schemas#NotFoundException":
2193
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2194
+ case "ServiceUnavailableException":
2195
+ case "com.amazonaws.schemas#ServiceUnavailableException":
2196
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2197
+ case "UnauthorizedException":
2198
+ case "com.amazonaws.schemas#UnauthorizedException":
2199
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2200
+ default:
2201
+ const parsedBody = parsedOutput.body;
2202
+ return throwDefaultError({
2203
+ output,
2204
+ parsedBody,
2205
+ errorCode
2206
+ });
2207
+ }
2208
+ }, "de_UpdateDiscovererCommandError");
2209
+ var de_UpdateRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
2210
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2211
+ return de_UpdateRegistryCommandError(output, context);
2212
+ }
2213
+ const contents = (0, import_smithy_client.map)({
2214
+ $metadata: deserializeMetadata(output)
2215
+ });
2216
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2217
+ const doc = (0, import_smithy_client.take)(data, {
2218
+ Description: import_smithy_client.expectString,
2219
+ RegistryArn: import_smithy_client.expectString,
2220
+ RegistryName: import_smithy_client.expectString,
2221
+ Tags: [, import_smithy_client._json, `tags`]
2222
+ });
2223
+ Object.assign(contents, doc);
2224
+ return contents;
2225
+ }, "de_UpdateRegistryCommand");
2226
+ var de_UpdateRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
2227
+ const parsedOutput = {
2228
+ ...output,
2229
+ body: await parseErrorBody(output.body, context)
2230
+ };
2231
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2232
+ switch (errorCode) {
2233
+ case "BadRequestException":
2234
+ case "com.amazonaws.schemas#BadRequestException":
2235
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2236
+ case "ForbiddenException":
2237
+ case "com.amazonaws.schemas#ForbiddenException":
2238
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2239
+ case "InternalServerErrorException":
2240
+ case "com.amazonaws.schemas#InternalServerErrorException":
2241
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2242
+ case "NotFoundException":
2243
+ case "com.amazonaws.schemas#NotFoundException":
2244
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2245
+ case "ServiceUnavailableException":
2246
+ case "com.amazonaws.schemas#ServiceUnavailableException":
2247
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2248
+ case "UnauthorizedException":
2249
+ case "com.amazonaws.schemas#UnauthorizedException":
2250
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2251
+ default:
2252
+ const parsedBody = parsedOutput.body;
2253
+ return throwDefaultError({
2254
+ output,
2255
+ parsedBody,
2256
+ errorCode
2257
+ });
2258
+ }
2259
+ }, "de_UpdateRegistryCommandError");
2260
+ var de_UpdateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
2261
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2262
+ return de_UpdateSchemaCommandError(output, context);
2263
+ }
2264
+ const contents = (0, import_smithy_client.map)({
2265
+ $metadata: deserializeMetadata(output)
2266
+ });
2267
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2268
+ const doc = (0, import_smithy_client.take)(data, {
2269
+ Description: import_smithy_client.expectString,
2270
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2271
+ SchemaArn: import_smithy_client.expectString,
2272
+ SchemaName: import_smithy_client.expectString,
2273
+ SchemaVersion: import_smithy_client.expectString,
2274
+ Tags: [, import_smithy_client._json, `tags`],
2275
+ Type: import_smithy_client.expectString,
2276
+ VersionCreatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2277
+ });
2278
+ Object.assign(contents, doc);
2279
+ return contents;
2280
+ }, "de_UpdateSchemaCommand");
2281
+ var de_UpdateSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
2282
+ const parsedOutput = {
2283
+ ...output,
2284
+ body: await parseErrorBody(output.body, context)
2285
+ };
2286
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2287
+ switch (errorCode) {
2288
+ case "BadRequestException":
2289
+ case "com.amazonaws.schemas#BadRequestException":
2290
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2291
+ case "ForbiddenException":
2292
+ case "com.amazonaws.schemas#ForbiddenException":
2293
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2294
+ case "InternalServerErrorException":
2295
+ case "com.amazonaws.schemas#InternalServerErrorException":
2296
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2297
+ case "NotFoundException":
2298
+ case "com.amazonaws.schemas#NotFoundException":
2299
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2300
+ case "ServiceUnavailableException":
2301
+ case "com.amazonaws.schemas#ServiceUnavailableException":
2302
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2303
+ default:
2304
+ const parsedBody = parsedOutput.body;
2305
+ return throwDefaultError({
2306
+ output,
2307
+ parsedBody,
2308
+ errorCode
2309
+ });
2310
+ }
2311
+ }, "de_UpdateSchemaCommandError");
2312
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(SchemasServiceException);
2313
+ var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2314
+ const contents = (0, import_smithy_client.map)({});
2315
+ const data = parsedOutput.body;
2316
+ const doc = (0, import_smithy_client.take)(data, {
2317
+ Code: import_smithy_client.expectString,
2318
+ Message: import_smithy_client.expectString
2319
+ });
2320
+ Object.assign(contents, doc);
2321
+ const exception = new BadRequestException({
2322
+ $metadata: deserializeMetadata(parsedOutput),
2323
+ ...contents
2324
+ });
2325
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2326
+ }, "de_BadRequestExceptionRes");
2327
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2328
+ const contents = (0, import_smithy_client.map)({});
2329
+ const data = parsedOutput.body;
2330
+ const doc = (0, import_smithy_client.take)(data, {
2331
+ Code: import_smithy_client.expectString,
2332
+ Message: import_smithy_client.expectString
2333
+ });
2334
+ Object.assign(contents, doc);
2335
+ const exception = new ConflictException({
2336
+ $metadata: deserializeMetadata(parsedOutput),
2337
+ ...contents
2338
+ });
2339
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2340
+ }, "de_ConflictExceptionRes");
2341
+ var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2342
+ const contents = (0, import_smithy_client.map)({});
2343
+ const data = parsedOutput.body;
2344
+ const doc = (0, import_smithy_client.take)(data, {
2345
+ Code: import_smithy_client.expectString,
2346
+ Message: import_smithy_client.expectString
2347
+ });
2348
+ Object.assign(contents, doc);
2349
+ const exception = new ForbiddenException({
2350
+ $metadata: deserializeMetadata(parsedOutput),
2351
+ ...contents
2352
+ });
2353
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2354
+ }, "de_ForbiddenExceptionRes");
2355
+ var de_GoneExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2356
+ const contents = (0, import_smithy_client.map)({});
2357
+ const data = parsedOutput.body;
2358
+ const doc = (0, import_smithy_client.take)(data, {
2359
+ Code: import_smithy_client.expectString,
2360
+ Message: import_smithy_client.expectString
2361
+ });
2362
+ Object.assign(contents, doc);
2363
+ const exception = new GoneException({
2364
+ $metadata: deserializeMetadata(parsedOutput),
2365
+ ...contents
2366
+ });
2367
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2368
+ }, "de_GoneExceptionRes");
2369
+ var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2370
+ const contents = (0, import_smithy_client.map)({});
2371
+ const data = parsedOutput.body;
2372
+ const doc = (0, import_smithy_client.take)(data, {
2373
+ Code: import_smithy_client.expectString,
2374
+ Message: import_smithy_client.expectString
2375
+ });
2376
+ Object.assign(contents, doc);
2377
+ const exception = new InternalServerErrorException({
2378
+ $metadata: deserializeMetadata(parsedOutput),
2379
+ ...contents
2380
+ });
2381
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2382
+ }, "de_InternalServerErrorExceptionRes");
2383
+ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2384
+ const contents = (0, import_smithy_client.map)({});
2385
+ const data = parsedOutput.body;
2386
+ const doc = (0, import_smithy_client.take)(data, {
2387
+ Code: import_smithy_client.expectString,
2388
+ Message: import_smithy_client.expectString
2389
+ });
2390
+ Object.assign(contents, doc);
2391
+ const exception = new NotFoundException({
2392
+ $metadata: deserializeMetadata(parsedOutput),
2393
+ ...contents
2394
+ });
2395
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2396
+ }, "de_NotFoundExceptionRes");
2397
+ var de_PreconditionFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2398
+ const contents = (0, import_smithy_client.map)({});
2399
+ const data = parsedOutput.body;
2400
+ const doc = (0, import_smithy_client.take)(data, {
2401
+ Code: import_smithy_client.expectString,
2402
+ Message: import_smithy_client.expectString
2403
+ });
2404
+ Object.assign(contents, doc);
2405
+ const exception = new PreconditionFailedException({
2406
+ $metadata: deserializeMetadata(parsedOutput),
2407
+ ...contents
2408
+ });
2409
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2410
+ }, "de_PreconditionFailedExceptionRes");
2411
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2412
+ const contents = (0, import_smithy_client.map)({});
2413
+ const data = parsedOutput.body;
2414
+ const doc = (0, import_smithy_client.take)(data, {
2415
+ Code: import_smithy_client.expectString,
2416
+ Message: import_smithy_client.expectString
2417
+ });
2418
+ Object.assign(contents, doc);
2419
+ const exception = new ServiceUnavailableException({
2420
+ $metadata: deserializeMetadata(parsedOutput),
2421
+ ...contents
2422
+ });
2423
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2424
+ }, "de_ServiceUnavailableExceptionRes");
2425
+ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2426
+ const contents = (0, import_smithy_client.map)({});
2427
+ const data = parsedOutput.body;
2428
+ const doc = (0, import_smithy_client.take)(data, {
2429
+ Code: import_smithy_client.expectString,
2430
+ Message: import_smithy_client.expectString
2431
+ });
2432
+ Object.assign(contents, doc);
2433
+ const exception = new TooManyRequestsException({
2434
+ $metadata: deserializeMetadata(parsedOutput),
2435
+ ...contents
2436
+ });
2437
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2438
+ }, "de_TooManyRequestsExceptionRes");
2439
+ var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2440
+ const contents = (0, import_smithy_client.map)({});
2441
+ const data = parsedOutput.body;
2442
+ const doc = (0, import_smithy_client.take)(data, {
2443
+ Code: import_smithy_client.expectString,
2444
+ Message: import_smithy_client.expectString
2445
+ });
2446
+ Object.assign(contents, doc);
2447
+ const exception = new UnauthorizedException({
2448
+ $metadata: deserializeMetadata(parsedOutput),
2449
+ ...contents
2450
+ });
2451
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2452
+ }, "de_UnauthorizedExceptionRes");
2453
+ var de___listOfDiscovererSummary = /* @__PURE__ */ __name((output, context) => {
2454
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2455
+ return de_DiscovererSummary(entry, context);
2456
+ });
2457
+ return retVal;
2458
+ }, "de___listOfDiscovererSummary");
2459
+ var de___listOfRegistrySummary = /* @__PURE__ */ __name((output, context) => {
2460
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2461
+ return de_RegistrySummary(entry, context);
2462
+ });
2463
+ return retVal;
2464
+ }, "de___listOfRegistrySummary");
2465
+ var de___listOfSchemaSummary = /* @__PURE__ */ __name((output, context) => {
2466
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2467
+ return de_SchemaSummary(entry, context);
2468
+ });
2469
+ return retVal;
2470
+ }, "de___listOfSchemaSummary");
2471
+ var de___listOfSearchSchemaSummary = /* @__PURE__ */ __name((output, context) => {
2472
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2473
+ return de_SearchSchemaSummary(entry, context);
2474
+ });
2475
+ return retVal;
2476
+ }, "de___listOfSearchSchemaSummary");
2477
+ var de___listOfSearchSchemaVersionSummary = /* @__PURE__ */ __name((output, context) => {
2478
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2479
+ return de_SearchSchemaVersionSummary(entry, context);
2480
+ });
2481
+ return retVal;
2482
+ }, "de___listOfSearchSchemaVersionSummary");
2483
+ var de_DiscovererSummary = /* @__PURE__ */ __name((output, context) => {
2484
+ return (0, import_smithy_client.take)(output, {
2485
+ CrossAccount: import_smithy_client.expectBoolean,
2486
+ DiscovererArn: import_smithy_client.expectString,
2487
+ DiscovererId: import_smithy_client.expectString,
2488
+ SourceArn: import_smithy_client.expectString,
2489
+ State: import_smithy_client.expectString,
2490
+ Tags: [, import_smithy_client._json, `tags`]
2491
+ });
2492
+ }, "de_DiscovererSummary");
2493
+ var de_RegistrySummary = /* @__PURE__ */ __name((output, context) => {
2494
+ return (0, import_smithy_client.take)(output, {
2495
+ RegistryArn: import_smithy_client.expectString,
2496
+ RegistryName: import_smithy_client.expectString,
2497
+ Tags: [, import_smithy_client._json, `tags`]
2498
+ });
2499
+ }, "de_RegistrySummary");
2500
+ var de_SchemaSummary = /* @__PURE__ */ __name((output, context) => {
2501
+ return (0, import_smithy_client.take)(output, {
2502
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2503
+ SchemaArn: import_smithy_client.expectString,
2504
+ SchemaName: import_smithy_client.expectString,
2505
+ Tags: [, import_smithy_client._json, `tags`],
2506
+ VersionCount: import_smithy_client.expectLong
2507
+ });
2508
+ }, "de_SchemaSummary");
2509
+ var de_SearchSchemaSummary = /* @__PURE__ */ __name((output, context) => {
2510
+ return (0, import_smithy_client.take)(output, {
2511
+ RegistryName: import_smithy_client.expectString,
2512
+ SchemaArn: import_smithy_client.expectString,
2513
+ SchemaName: import_smithy_client.expectString,
2514
+ SchemaVersions: (_) => de___listOfSearchSchemaVersionSummary(_, context)
2515
+ });
2516
+ }, "de_SearchSchemaSummary");
2517
+ var de_SearchSchemaVersionSummary = /* @__PURE__ */ __name((output, context) => {
2518
+ return (0, import_smithy_client.take)(output, {
2519
+ CreatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2520
+ SchemaVersion: import_smithy_client.expectString,
2521
+ Type: import_smithy_client.expectString
2522
+ });
2523
+ }, "de_SearchSchemaVersionSummary");
2524
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2525
+ httpStatusCode: output.statusCode,
2526
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2527
+ extendedRequestId: output.headers["x-amz-id-2"],
2528
+ cfId: output.headers["x-amz-cf-id"]
2529
+ }), "deserializeMetadata");
2530
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2531
+ var _DIP = "DiscovererIdPrefix";
2532
+ var _K = "Keywords";
2533
+ var _L = "Limit";
2534
+ var _NT = "NextToken";
2535
+ var _RN = "RegistryName";
2536
+ var _RNP = "RegistryNamePrefix";
2537
+ var _S = "Scope";
2538
+ var _SAP = "SourceArnPrefix";
2539
+ var _SNP = "SchemaNamePrefix";
2540
+ var _SV = "SchemaVersion";
2541
+ var _T = "Type";
2542
+ var _TK = "TagKeys";
2543
+ var _dIP = "discovererIdPrefix";
2544
+ var _k = "keywords";
2545
+ var _l = "limit";
2546
+ var _nT = "nextToken";
2547
+ var _rN = "registryName";
2548
+ var _rNP = "registryNamePrefix";
2549
+ var _s = "scope";
2550
+ var _sAP = "sourceArnPrefix";
2551
+ var _sNP = "schemaNamePrefix";
2552
+ var _sV = "schemaVersion";
2553
+ var _t = "type";
2554
+ var _tK = "tagKeys";
2555
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2556
+ if (encoded.length) {
2557
+ return JSON.parse(encoded);
2558
+ }
2559
+ return {};
2560
+ }), "parseBody");
2561
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2562
+ const value = await parseBody(errorBody, context);
2563
+ value.message = value.message ?? value.Message;
2564
+ return value;
2565
+ }, "parseErrorBody");
2566
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2567
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2568
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2569
+ let cleanValue = rawValue;
2570
+ if (typeof cleanValue === "number") {
2571
+ cleanValue = cleanValue.toString();
2572
+ }
2573
+ if (cleanValue.indexOf(",") >= 0) {
2574
+ cleanValue = cleanValue.split(",")[0];
2575
+ }
2576
+ if (cleanValue.indexOf(":") >= 0) {
2577
+ cleanValue = cleanValue.split(":")[0];
2578
+ }
2579
+ if (cleanValue.indexOf("#") >= 0) {
2580
+ cleanValue = cleanValue.split("#")[1];
2581
+ }
2582
+ return cleanValue;
2583
+ }, "sanitizeErrorCode");
2584
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2585
+ if (headerKey !== void 0) {
2586
+ return sanitizeErrorCode(output.headers[headerKey]);
2587
+ }
2588
+ if (data.code !== void 0) {
2589
+ return sanitizeErrorCode(data.code);
2590
+ }
2591
+ if (data["__type"] !== void 0) {
2592
+ return sanitizeErrorCode(data["__type"]);
2593
+ }
2594
+ }, "loadRestJsonErrorCode");
2595
+
2596
+ // src/commands/CreateDiscovererCommand.ts
2597
+ var _CreateDiscovererCommand = class _CreateDiscovererCommand extends import_smithy_client.Command.classBuilder().ep({
2598
+ ...commonParams
2599
+ }).m(function(Command, cs, config, o) {
2600
+ return [
2601
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2602
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2603
+ ];
2604
+ }).s("schemas", "CreateDiscoverer", {}).n("SchemasClient", "CreateDiscovererCommand").f(void 0, void 0).ser(se_CreateDiscovererCommand).de(de_CreateDiscovererCommand).build() {
2605
+ };
2606
+ __name(_CreateDiscovererCommand, "CreateDiscovererCommand");
2607
+ var CreateDiscovererCommand = _CreateDiscovererCommand;
2608
+
2609
+ // src/commands/CreateRegistryCommand.ts
2610
+
2611
+
2612
+
2613
+
2614
+ var _CreateRegistryCommand = class _CreateRegistryCommand extends import_smithy_client.Command.classBuilder().ep({
2615
+ ...commonParams
2616
+ }).m(function(Command, cs, config, o) {
2617
+ return [
2618
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2619
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2620
+ ];
2621
+ }).s("schemas", "CreateRegistry", {}).n("SchemasClient", "CreateRegistryCommand").f(void 0, void 0).ser(se_CreateRegistryCommand).de(de_CreateRegistryCommand).build() {
2622
+ };
2623
+ __name(_CreateRegistryCommand, "CreateRegistryCommand");
2624
+ var CreateRegistryCommand = _CreateRegistryCommand;
2625
+
2626
+ // src/commands/CreateSchemaCommand.ts
2627
+
2628
+
2629
+
2630
+
2631
+ var _CreateSchemaCommand = class _CreateSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
2632
+ ...commonParams
2633
+ }).m(function(Command, cs, config, o) {
2634
+ return [
2635
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2636
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2637
+ ];
2638
+ }).s("schemas", "CreateSchema", {}).n("SchemasClient", "CreateSchemaCommand").f(void 0, void 0).ser(se_CreateSchemaCommand).de(de_CreateSchemaCommand).build() {
2639
+ };
2640
+ __name(_CreateSchemaCommand, "CreateSchemaCommand");
2641
+ var CreateSchemaCommand = _CreateSchemaCommand;
2642
+
2643
+ // src/commands/DeleteDiscovererCommand.ts
2644
+
2645
+
2646
+
2647
+
2648
+ var _DeleteDiscovererCommand = class _DeleteDiscovererCommand extends import_smithy_client.Command.classBuilder().ep({
2649
+ ...commonParams
2650
+ }).m(function(Command, cs, config, o) {
2651
+ return [
2652
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2653
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2654
+ ];
2655
+ }).s("schemas", "DeleteDiscoverer", {}).n("SchemasClient", "DeleteDiscovererCommand").f(void 0, void 0).ser(se_DeleteDiscovererCommand).de(de_DeleteDiscovererCommand).build() {
2656
+ };
2657
+ __name(_DeleteDiscovererCommand, "DeleteDiscovererCommand");
2658
+ var DeleteDiscovererCommand = _DeleteDiscovererCommand;
2659
+
2660
+ // src/commands/DeleteRegistryCommand.ts
2661
+
2662
+
2663
+
2664
+
2665
+ var _DeleteRegistryCommand = class _DeleteRegistryCommand extends import_smithy_client.Command.classBuilder().ep({
2666
+ ...commonParams
2667
+ }).m(function(Command, cs, config, o) {
2668
+ return [
2669
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2670
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2671
+ ];
2672
+ }).s("schemas", "DeleteRegistry", {}).n("SchemasClient", "DeleteRegistryCommand").f(void 0, void 0).ser(se_DeleteRegistryCommand).de(de_DeleteRegistryCommand).build() {
2673
+ };
2674
+ __name(_DeleteRegistryCommand, "DeleteRegistryCommand");
2675
+ var DeleteRegistryCommand = _DeleteRegistryCommand;
2676
+
2677
+ // src/commands/DeleteResourcePolicyCommand.ts
2678
+
2679
+
2680
+
2681
+
2682
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2683
+ ...commonParams
2684
+ }).m(function(Command, cs, config, o) {
2685
+ return [
2686
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2687
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2688
+ ];
2689
+ }).s("schemas", "DeleteResourcePolicy", {}).n("SchemasClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
2690
+ };
2691
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
2692
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
2693
+
2694
+ // src/commands/DeleteSchemaCommand.ts
2695
+
2696
+
2697
+
2698
+
2699
+ var _DeleteSchemaCommand = class _DeleteSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
2700
+ ...commonParams
2701
+ }).m(function(Command, cs, config, o) {
2702
+ return [
2703
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2704
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2705
+ ];
2706
+ }).s("schemas", "DeleteSchema", {}).n("SchemasClient", "DeleteSchemaCommand").f(void 0, void 0).ser(se_DeleteSchemaCommand).de(de_DeleteSchemaCommand).build() {
2707
+ };
2708
+ __name(_DeleteSchemaCommand, "DeleteSchemaCommand");
2709
+ var DeleteSchemaCommand = _DeleteSchemaCommand;
2710
+
2711
+ // src/commands/DeleteSchemaVersionCommand.ts
2712
+
2713
+
2714
+
2715
+
2716
+ var _DeleteSchemaVersionCommand = class _DeleteSchemaVersionCommand extends import_smithy_client.Command.classBuilder().ep({
2717
+ ...commonParams
2718
+ }).m(function(Command, cs, config, o) {
2719
+ return [
2720
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2721
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2722
+ ];
2723
+ }).s("schemas", "DeleteSchemaVersion", {}).n("SchemasClient", "DeleteSchemaVersionCommand").f(void 0, void 0).ser(se_DeleteSchemaVersionCommand).de(de_DeleteSchemaVersionCommand).build() {
2724
+ };
2725
+ __name(_DeleteSchemaVersionCommand, "DeleteSchemaVersionCommand");
2726
+ var DeleteSchemaVersionCommand = _DeleteSchemaVersionCommand;
2727
+
2728
+ // src/commands/DescribeCodeBindingCommand.ts
2729
+
2730
+
2731
+
2732
+
2733
+ var _DescribeCodeBindingCommand = class _DescribeCodeBindingCommand extends import_smithy_client.Command.classBuilder().ep({
2734
+ ...commonParams
2735
+ }).m(function(Command, cs, config, o) {
2736
+ return [
2737
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2738
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2739
+ ];
2740
+ }).s("schemas", "DescribeCodeBinding", {}).n("SchemasClient", "DescribeCodeBindingCommand").f(void 0, void 0).ser(se_DescribeCodeBindingCommand).de(de_DescribeCodeBindingCommand).build() {
2741
+ };
2742
+ __name(_DescribeCodeBindingCommand, "DescribeCodeBindingCommand");
2743
+ var DescribeCodeBindingCommand = _DescribeCodeBindingCommand;
2744
+
2745
+ // src/commands/DescribeDiscovererCommand.ts
2746
+
2747
+
2748
+
2749
+
2750
+ var _DescribeDiscovererCommand = class _DescribeDiscovererCommand extends import_smithy_client.Command.classBuilder().ep({
2751
+ ...commonParams
2752
+ }).m(function(Command, cs, config, o) {
2753
+ return [
2754
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2755
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2756
+ ];
2757
+ }).s("schemas", "DescribeDiscoverer", {}).n("SchemasClient", "DescribeDiscovererCommand").f(void 0, void 0).ser(se_DescribeDiscovererCommand).de(de_DescribeDiscovererCommand).build() {
2758
+ };
2759
+ __name(_DescribeDiscovererCommand, "DescribeDiscovererCommand");
2760
+ var DescribeDiscovererCommand = _DescribeDiscovererCommand;
2761
+
2762
+ // src/commands/DescribeRegistryCommand.ts
2763
+
2764
+
2765
+
2766
+
2767
+ var _DescribeRegistryCommand = class _DescribeRegistryCommand extends import_smithy_client.Command.classBuilder().ep({
2768
+ ...commonParams
2769
+ }).m(function(Command, cs, config, o) {
2770
+ return [
2771
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2772
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2773
+ ];
2774
+ }).s("schemas", "DescribeRegistry", {}).n("SchemasClient", "DescribeRegistryCommand").f(void 0, void 0).ser(se_DescribeRegistryCommand).de(de_DescribeRegistryCommand).build() {
2775
+ };
2776
+ __name(_DescribeRegistryCommand, "DescribeRegistryCommand");
2777
+ var DescribeRegistryCommand = _DescribeRegistryCommand;
2778
+
2779
+ // src/commands/DescribeSchemaCommand.ts
2780
+
2781
+
2782
+
2783
+
2784
+ var _DescribeSchemaCommand = class _DescribeSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
2785
+ ...commonParams
2786
+ }).m(function(Command, cs, config, o) {
2787
+ return [
2788
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2789
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2790
+ ];
2791
+ }).s("schemas", "DescribeSchema", {}).n("SchemasClient", "DescribeSchemaCommand").f(void 0, void 0).ser(se_DescribeSchemaCommand).de(de_DescribeSchemaCommand).build() {
2792
+ };
2793
+ __name(_DescribeSchemaCommand, "DescribeSchemaCommand");
2794
+ var DescribeSchemaCommand = _DescribeSchemaCommand;
2795
+
2796
+ // src/commands/ExportSchemaCommand.ts
2797
+
2798
+
2799
+
2800
+
2801
+ var _ExportSchemaCommand = class _ExportSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
2802
+ ...commonParams
2803
+ }).m(function(Command, cs, config, o) {
2804
+ return [
2805
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2806
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2807
+ ];
2808
+ }).s("schemas", "ExportSchema", {}).n("SchemasClient", "ExportSchemaCommand").f(void 0, void 0).ser(se_ExportSchemaCommand).de(de_ExportSchemaCommand).build() {
2809
+ };
2810
+ __name(_ExportSchemaCommand, "ExportSchemaCommand");
2811
+ var ExportSchemaCommand = _ExportSchemaCommand;
2812
+
2813
+ // src/commands/GetCodeBindingSourceCommand.ts
2814
+
2815
+
2816
+
2817
+
2818
+ var _GetCodeBindingSourceCommand = class _GetCodeBindingSourceCommand extends import_smithy_client.Command.classBuilder().ep({
2819
+ ...commonParams
2820
+ }).m(function(Command, cs, config, o) {
2821
+ return [
2822
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2823
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2824
+ ];
2825
+ }).s("schemas", "GetCodeBindingSource", {}).n("SchemasClient", "GetCodeBindingSourceCommand").f(void 0, void 0).ser(se_GetCodeBindingSourceCommand).de(de_GetCodeBindingSourceCommand).build() {
2826
+ };
2827
+ __name(_GetCodeBindingSourceCommand, "GetCodeBindingSourceCommand");
2828
+ var GetCodeBindingSourceCommand = _GetCodeBindingSourceCommand;
2829
+
2830
+ // src/commands/GetDiscoveredSchemaCommand.ts
2831
+
2832
+
2833
+
2834
+
2835
+ var _GetDiscoveredSchemaCommand = class _GetDiscoveredSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
2836
+ ...commonParams
2837
+ }).m(function(Command, cs, config, o) {
2838
+ return [
2839
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2840
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2841
+ ];
2842
+ }).s("schemas", "GetDiscoveredSchema", {}).n("SchemasClient", "GetDiscoveredSchemaCommand").f(void 0, void 0).ser(se_GetDiscoveredSchemaCommand).de(de_GetDiscoveredSchemaCommand).build() {
2843
+ };
2844
+ __name(_GetDiscoveredSchemaCommand, "GetDiscoveredSchemaCommand");
2845
+ var GetDiscoveredSchemaCommand = _GetDiscoveredSchemaCommand;
2846
+
2847
+ // src/commands/GetResourcePolicyCommand.ts
2848
+
2849
+
2850
+
2851
+
2852
+ var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2853
+ ...commonParams
2854
+ }).m(function(Command, cs, config, o) {
2855
+ return [
2856
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2857
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2858
+ ];
2859
+ }).s("schemas", "GetResourcePolicy", {}).n("SchemasClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
2860
+ };
2861
+ __name(_GetResourcePolicyCommand, "GetResourcePolicyCommand");
2862
+ var GetResourcePolicyCommand = _GetResourcePolicyCommand;
2863
+
2864
+ // src/commands/ListDiscoverersCommand.ts
2865
+
2866
+
2867
+
2868
+
2869
+ var _ListDiscoverersCommand = class _ListDiscoverersCommand extends import_smithy_client.Command.classBuilder().ep({
2870
+ ...commonParams
2871
+ }).m(function(Command, cs, config, o) {
2872
+ return [
2873
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2874
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2875
+ ];
2876
+ }).s("schemas", "ListDiscoverers", {}).n("SchemasClient", "ListDiscoverersCommand").f(void 0, void 0).ser(se_ListDiscoverersCommand).de(de_ListDiscoverersCommand).build() {
2877
+ };
2878
+ __name(_ListDiscoverersCommand, "ListDiscoverersCommand");
2879
+ var ListDiscoverersCommand = _ListDiscoverersCommand;
2880
+
2881
+ // src/commands/ListRegistriesCommand.ts
2882
+
2883
+
2884
+
2885
+
2886
+ var _ListRegistriesCommand = class _ListRegistriesCommand extends import_smithy_client.Command.classBuilder().ep({
2887
+ ...commonParams
2888
+ }).m(function(Command, cs, config, o) {
2889
+ return [
2890
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2891
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2892
+ ];
2893
+ }).s("schemas", "ListRegistries", {}).n("SchemasClient", "ListRegistriesCommand").f(void 0, void 0).ser(se_ListRegistriesCommand).de(de_ListRegistriesCommand).build() {
2894
+ };
2895
+ __name(_ListRegistriesCommand, "ListRegistriesCommand");
2896
+ var ListRegistriesCommand = _ListRegistriesCommand;
2897
+
2898
+ // src/commands/ListSchemasCommand.ts
2899
+
2900
+
2901
+
2902
+
2903
+ var _ListSchemasCommand = class _ListSchemasCommand extends import_smithy_client.Command.classBuilder().ep({
2904
+ ...commonParams
2905
+ }).m(function(Command, cs, config, o) {
2906
+ return [
2907
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2908
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2909
+ ];
2910
+ }).s("schemas", "ListSchemas", {}).n("SchemasClient", "ListSchemasCommand").f(void 0, void 0).ser(se_ListSchemasCommand).de(de_ListSchemasCommand).build() {
2911
+ };
2912
+ __name(_ListSchemasCommand, "ListSchemasCommand");
2913
+ var ListSchemasCommand = _ListSchemasCommand;
2914
+
2915
+ // src/commands/ListSchemaVersionsCommand.ts
2916
+
2917
+
2918
+
2919
+
2920
+ var _ListSchemaVersionsCommand = class _ListSchemaVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
2921
+ ...commonParams
2922
+ }).m(function(Command, cs, config, o) {
2923
+ return [
2924
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2925
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2926
+ ];
2927
+ }).s("schemas", "ListSchemaVersions", {}).n("SchemasClient", "ListSchemaVersionsCommand").f(void 0, void 0).ser(se_ListSchemaVersionsCommand).de(de_ListSchemaVersionsCommand).build() {
2928
+ };
2929
+ __name(_ListSchemaVersionsCommand, "ListSchemaVersionsCommand");
2930
+ var ListSchemaVersionsCommand = _ListSchemaVersionsCommand;
2931
+
2932
+ // src/commands/ListTagsForResourceCommand.ts
2933
+
2934
+
2935
+
2936
+
2937
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2938
+ ...commonParams
2939
+ }).m(function(Command, cs, config, o) {
2940
+ return [
2941
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2942
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2943
+ ];
2944
+ }).s("schemas", "ListTagsForResource", {}).n("SchemasClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2945
+ };
2946
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2947
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2948
+
2949
+ // src/commands/PutCodeBindingCommand.ts
2950
+
2951
+
2952
+
2953
+
2954
+ var _PutCodeBindingCommand = class _PutCodeBindingCommand extends import_smithy_client.Command.classBuilder().ep({
2955
+ ...commonParams
2956
+ }).m(function(Command, cs, config, o) {
2957
+ return [
2958
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2959
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2960
+ ];
2961
+ }).s("schemas", "PutCodeBinding", {}).n("SchemasClient", "PutCodeBindingCommand").f(void 0, void 0).ser(se_PutCodeBindingCommand).de(de_PutCodeBindingCommand).build() {
2962
+ };
2963
+ __name(_PutCodeBindingCommand, "PutCodeBindingCommand");
2964
+ var PutCodeBindingCommand = _PutCodeBindingCommand;
2965
+
2966
+ // src/commands/PutResourcePolicyCommand.ts
2967
+
2968
+
2969
+
2970
+
2971
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2972
+ ...commonParams
2973
+ }).m(function(Command, cs, config, o) {
2974
+ return [
2975
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2976
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2977
+ ];
2978
+ }).s("schemas", "PutResourcePolicy", {}).n("SchemasClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
2979
+ };
2980
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
2981
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
2982
+
2983
+ // src/commands/SearchSchemasCommand.ts
2984
+
2985
+
2986
+
2987
+
2988
+ var _SearchSchemasCommand = class _SearchSchemasCommand extends import_smithy_client.Command.classBuilder().ep({
2989
+ ...commonParams
2990
+ }).m(function(Command, cs, config, o) {
2991
+ return [
2992
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2993
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2994
+ ];
2995
+ }).s("schemas", "SearchSchemas", {}).n("SchemasClient", "SearchSchemasCommand").f(void 0, void 0).ser(se_SearchSchemasCommand).de(de_SearchSchemasCommand).build() {
2996
+ };
2997
+ __name(_SearchSchemasCommand, "SearchSchemasCommand");
2998
+ var SearchSchemasCommand = _SearchSchemasCommand;
2999
+
3000
+ // src/commands/StartDiscovererCommand.ts
3001
+
3002
+
3003
+
3004
+
3005
+ var _StartDiscovererCommand = class _StartDiscovererCommand extends import_smithy_client.Command.classBuilder().ep({
3006
+ ...commonParams
3007
+ }).m(function(Command, cs, config, o) {
3008
+ return [
3009
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3010
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3011
+ ];
3012
+ }).s("schemas", "StartDiscoverer", {}).n("SchemasClient", "StartDiscovererCommand").f(void 0, void 0).ser(se_StartDiscovererCommand).de(de_StartDiscovererCommand).build() {
3013
+ };
3014
+ __name(_StartDiscovererCommand, "StartDiscovererCommand");
3015
+ var StartDiscovererCommand = _StartDiscovererCommand;
3016
+
3017
+ // src/commands/StopDiscovererCommand.ts
3018
+
3019
+
3020
+
3021
+
3022
+ var _StopDiscovererCommand = class _StopDiscovererCommand extends import_smithy_client.Command.classBuilder().ep({
3023
+ ...commonParams
3024
+ }).m(function(Command, cs, config, o) {
3025
+ return [
3026
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3027
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3028
+ ];
3029
+ }).s("schemas", "StopDiscoverer", {}).n("SchemasClient", "StopDiscovererCommand").f(void 0, void 0).ser(se_StopDiscovererCommand).de(de_StopDiscovererCommand).build() {
3030
+ };
3031
+ __name(_StopDiscovererCommand, "StopDiscovererCommand");
3032
+ var StopDiscovererCommand = _StopDiscovererCommand;
3033
+
3034
+ // src/commands/TagResourceCommand.ts
3035
+
3036
+
3037
+
3038
+
3039
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3040
+ ...commonParams
3041
+ }).m(function(Command, cs, config, o) {
3042
+ return [
3043
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3044
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3045
+ ];
3046
+ }).s("schemas", "TagResource", {}).n("SchemasClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
3047
+ };
3048
+ __name(_TagResourceCommand, "TagResourceCommand");
3049
+ var TagResourceCommand = _TagResourceCommand;
3050
+
3051
+ // src/commands/UntagResourceCommand.ts
3052
+
3053
+
3054
+
3055
+
3056
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3057
+ ...commonParams
3058
+ }).m(function(Command, cs, config, o) {
3059
+ return [
3060
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3061
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3062
+ ];
3063
+ }).s("schemas", "UntagResource", {}).n("SchemasClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
3064
+ };
3065
+ __name(_UntagResourceCommand, "UntagResourceCommand");
3066
+ var UntagResourceCommand = _UntagResourceCommand;
3067
+
3068
+ // src/commands/UpdateDiscovererCommand.ts
3069
+
3070
+
3071
+
3072
+
3073
+ var _UpdateDiscovererCommand = class _UpdateDiscovererCommand extends import_smithy_client.Command.classBuilder().ep({
3074
+ ...commonParams
3075
+ }).m(function(Command, cs, config, o) {
3076
+ return [
3077
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3078
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3079
+ ];
3080
+ }).s("schemas", "UpdateDiscoverer", {}).n("SchemasClient", "UpdateDiscovererCommand").f(void 0, void 0).ser(se_UpdateDiscovererCommand).de(de_UpdateDiscovererCommand).build() {
3081
+ };
3082
+ __name(_UpdateDiscovererCommand, "UpdateDiscovererCommand");
3083
+ var UpdateDiscovererCommand = _UpdateDiscovererCommand;
3084
+
3085
+ // src/commands/UpdateRegistryCommand.ts
3086
+
3087
+
3088
+
3089
+
3090
+ var _UpdateRegistryCommand = class _UpdateRegistryCommand extends import_smithy_client.Command.classBuilder().ep({
3091
+ ...commonParams
3092
+ }).m(function(Command, cs, config, o) {
3093
+ return [
3094
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3095
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3096
+ ];
3097
+ }).s("schemas", "UpdateRegistry", {}).n("SchemasClient", "UpdateRegistryCommand").f(void 0, void 0).ser(se_UpdateRegistryCommand).de(de_UpdateRegistryCommand).build() {
3098
+ };
3099
+ __name(_UpdateRegistryCommand, "UpdateRegistryCommand");
3100
+ var UpdateRegistryCommand = _UpdateRegistryCommand;
3101
+
3102
+ // src/commands/UpdateSchemaCommand.ts
3103
+
3104
+
3105
+
3106
+
3107
+ var _UpdateSchemaCommand = class _UpdateSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
3108
+ ...commonParams
3109
+ }).m(function(Command, cs, config, o) {
3110
+ return [
3111
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3112
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3113
+ ];
3114
+ }).s("schemas", "UpdateSchema", {}).n("SchemasClient", "UpdateSchemaCommand").f(void 0, void 0).ser(se_UpdateSchemaCommand).de(de_UpdateSchemaCommand).build() {
3115
+ };
3116
+ __name(_UpdateSchemaCommand, "UpdateSchemaCommand");
3117
+ var UpdateSchemaCommand = _UpdateSchemaCommand;
3118
+
3119
+ // src/Schemas.ts
3120
+ var commands = {
3121
+ CreateDiscovererCommand,
3122
+ CreateRegistryCommand,
3123
+ CreateSchemaCommand,
3124
+ DeleteDiscovererCommand,
3125
+ DeleteRegistryCommand,
3126
+ DeleteResourcePolicyCommand,
3127
+ DeleteSchemaCommand,
3128
+ DeleteSchemaVersionCommand,
3129
+ DescribeCodeBindingCommand,
3130
+ DescribeDiscovererCommand,
3131
+ DescribeRegistryCommand,
3132
+ DescribeSchemaCommand,
3133
+ ExportSchemaCommand,
3134
+ GetCodeBindingSourceCommand,
3135
+ GetDiscoveredSchemaCommand,
3136
+ GetResourcePolicyCommand,
3137
+ ListDiscoverersCommand,
3138
+ ListRegistriesCommand,
3139
+ ListSchemasCommand,
3140
+ ListSchemaVersionsCommand,
3141
+ ListTagsForResourceCommand,
3142
+ PutCodeBindingCommand,
3143
+ PutResourcePolicyCommand,
3144
+ SearchSchemasCommand,
3145
+ StartDiscovererCommand,
3146
+ StopDiscovererCommand,
3147
+ TagResourceCommand,
3148
+ UntagResourceCommand,
3149
+ UpdateDiscovererCommand,
3150
+ UpdateRegistryCommand,
3151
+ UpdateSchemaCommand
3152
+ };
3153
+ var _Schemas = class _Schemas extends SchemasClient {
3154
+ };
3155
+ __name(_Schemas, "Schemas");
3156
+ var Schemas = _Schemas;
3157
+ (0, import_smithy_client.createAggregatedClient)(commands, Schemas);
3158
+
3159
+ // src/pagination/ListDiscoverersPaginator.ts
3160
+
3161
+ var paginateListDiscoverers = (0, import_core.createPaginator)(SchemasClient, ListDiscoverersCommand, "NextToken", "NextToken", "Limit");
3162
+
3163
+ // src/pagination/ListRegistriesPaginator.ts
3164
+
3165
+ var paginateListRegistries = (0, import_core.createPaginator)(SchemasClient, ListRegistriesCommand, "NextToken", "NextToken", "Limit");
3166
+
3167
+ // src/pagination/ListSchemaVersionsPaginator.ts
3168
+
3169
+ var paginateListSchemaVersions = (0, import_core.createPaginator)(SchemasClient, ListSchemaVersionsCommand, "NextToken", "NextToken", "Limit");
3170
+
3171
+ // src/pagination/ListSchemasPaginator.ts
3172
+
3173
+ var paginateListSchemas = (0, import_core.createPaginator)(SchemasClient, ListSchemasCommand, "NextToken", "NextToken", "Limit");
3174
+
3175
+ // src/pagination/SearchSchemasPaginator.ts
3176
+
3177
+ var paginateSearchSchemas = (0, import_core.createPaginator)(SchemasClient, SearchSchemasCommand, "NextToken", "NextToken", "Limit");
3178
+
3179
+ // src/waiters/waitForCodeBindingExists.ts
3180
+ var import_util_waiter = require("@smithy/util-waiter");
3181
+ var checkState = /* @__PURE__ */ __name(async (client, input) => {
3182
+ let reason;
3183
+ try {
3184
+ const result = await client.send(new DescribeCodeBindingCommand(input));
3185
+ reason = result;
3186
+ try {
3187
+ const returnComparator = /* @__PURE__ */ __name(() => {
3188
+ return result.Status;
3189
+ }, "returnComparator");
3190
+ if (returnComparator() === "CREATE_COMPLETE") {
3191
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
3192
+ }
3193
+ } catch (e) {
3194
+ }
3195
+ try {
3196
+ const returnComparator = /* @__PURE__ */ __name(() => {
3197
+ return result.Status;
3198
+ }, "returnComparator");
3199
+ if (returnComparator() === "CREATE_IN_PROGRESS") {
3200
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
3201
+ }
3202
+ } catch (e) {
3203
+ }
3204
+ try {
3205
+ const returnComparator = /* @__PURE__ */ __name(() => {
3206
+ return result.Status;
3207
+ }, "returnComparator");
3208
+ if (returnComparator() === "CREATE_FAILED") {
3209
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
3210
+ }
3211
+ } catch (e) {
3212
+ }
3213
+ } catch (exception) {
3214
+ reason = exception;
3215
+ if (exception.name && exception.name == "NotFoundException") {
3216
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
3217
+ }
3218
+ }
3219
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
3220
+ }, "checkState");
3221
+ var waitForCodeBindingExists = /* @__PURE__ */ __name(async (params, input) => {
3222
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
3223
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
3224
+ }, "waitForCodeBindingExists");
3225
+ var waitUntilCodeBindingExists = /* @__PURE__ */ __name(async (params, input) => {
3226
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
3227
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
3228
+ return (0, import_util_waiter.checkExceptions)(result);
3229
+ }, "waitUntilCodeBindingExists");
3230
+
3231
+ // src/index.ts
3232
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3233
+ // Annotate the CommonJS export names for ESM import in node:
3234
+ 0 && (module.exports = {
3235
+ BadRequestException,
3236
+ CodeGenerationStatus,
3237
+ ConflictException,
3238
+ CreateDiscovererCommand,
3239
+ CreateRegistryCommand,
3240
+ CreateSchemaCommand,
3241
+ DeleteDiscovererCommand,
3242
+ DeleteRegistryCommand,
3243
+ DeleteResourcePolicyCommand,
3244
+ DeleteSchemaCommand,
3245
+ DeleteSchemaVersionCommand,
3246
+ DescribeCodeBindingCommand,
3247
+ DescribeDiscovererCommand,
3248
+ DescribeRegistryCommand,
3249
+ DescribeSchemaCommand,
3250
+ DiscovererState,
3251
+ ExportSchemaCommand,
3252
+ ForbiddenException,
3253
+ GetCodeBindingSourceCommand,
3254
+ GetDiscoveredSchemaCommand,
3255
+ GetResourcePolicyCommand,
3256
+ GoneException,
3257
+ InternalServerErrorException,
3258
+ ListDiscoverersCommand,
3259
+ ListRegistriesCommand,
3260
+ ListSchemaVersionsCommand,
3261
+ ListSchemasCommand,
3262
+ ListTagsForResourceCommand,
3263
+ NotFoundException,
3264
+ PreconditionFailedException,
3265
+ PutCodeBindingCommand,
3266
+ PutResourcePolicyCommand,
3267
+ Schemas,
3268
+ SchemasClient,
3269
+ SchemasServiceException,
3270
+ SearchSchemasCommand,
3271
+ ServiceUnavailableException,
3272
+ StartDiscovererCommand,
3273
+ StopDiscovererCommand,
3274
+ TagResourceCommand,
3275
+ TooManyRequestsException,
3276
+ Type,
3277
+ UnauthorizedException,
3278
+ UntagResourceCommand,
3279
+ UpdateDiscovererCommand,
3280
+ UpdateRegistryCommand,
3281
+ UpdateSchemaCommand,
3282
+ __Client,
3283
+ paginateListDiscoverers,
3284
+ paginateListRegistries,
3285
+ paginateListSchemaVersions,
3286
+ paginateListSchemas,
3287
+ paginateSearchSchemas,
3288
+ waitForCodeBindingExists,
3289
+ waitUntilCodeBindingExists
3290
+ });