@aws-sdk/client-schemas 3.928.0 → 3.929.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/index.js +1443 -1401
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SchemasClient.js +2 -0
  4. package/dist-es/commands/CreateDiscovererCommand.js +3 -9
  5. package/dist-es/commands/CreateRegistryCommand.js +3 -9
  6. package/dist-es/commands/CreateSchemaCommand.js +3 -9
  7. package/dist-es/commands/DeleteDiscovererCommand.js +3 -9
  8. package/dist-es/commands/DeleteRegistryCommand.js +3 -9
  9. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  10. package/dist-es/commands/DeleteSchemaCommand.js +3 -9
  11. package/dist-es/commands/DeleteSchemaVersionCommand.js +3 -9
  12. package/dist-es/commands/DescribeCodeBindingCommand.js +3 -9
  13. package/dist-es/commands/DescribeDiscovererCommand.js +3 -9
  14. package/dist-es/commands/DescribeRegistryCommand.js +3 -9
  15. package/dist-es/commands/DescribeSchemaCommand.js +3 -9
  16. package/dist-es/commands/ExportSchemaCommand.js +3 -9
  17. package/dist-es/commands/GetCodeBindingSourceCommand.js +3 -9
  18. package/dist-es/commands/GetDiscoveredSchemaCommand.js +3 -9
  19. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  20. package/dist-es/commands/ListDiscoverersCommand.js +3 -9
  21. package/dist-es/commands/ListRegistriesCommand.js +3 -9
  22. package/dist-es/commands/ListSchemaVersionsCommand.js +3 -9
  23. package/dist-es/commands/ListSchemasCommand.js +3 -9
  24. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  25. package/dist-es/commands/PutCodeBindingCommand.js +3 -9
  26. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  27. package/dist-es/commands/SearchSchemasCommand.js +3 -9
  28. package/dist-es/commands/StartDiscovererCommand.js +3 -9
  29. package/dist-es/commands/StopDiscovererCommand.js +3 -9
  30. package/dist-es/commands/TagResourceCommand.js +3 -9
  31. package/dist-es/commands/UntagResourceCommand.js +3 -9
  32. package/dist-es/commands/UpdateDiscovererCommand.js +3 -9
  33. package/dist-es/commands/UpdateRegistryCommand.js +3 -9
  34. package/dist-es/commands/UpdateSchemaCommand.js +3 -9
  35. package/dist-es/runtimeConfig.shared.js +2 -0
  36. package/dist-es/schemas/schemas_0.js +1371 -0
  37. package/dist-types/SchemasClient.d.ts +10 -1
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  39. package/dist-types/runtimeConfig.d.ts +1 -0
  40. package/dist-types/runtimeConfig.native.d.ts +1 -0
  41. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  42. package/dist-types/schemas/schemas_0.d.ts +115 -0
  43. package/dist-types/ts3.4/SchemasClient.d.ts +4 -0
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  46. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  47. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  48. package/dist-types/ts3.4/schemas/schemas_0.d.ts +121 -0
  49. package/package.json +2 -3
  50. package/dist-es/protocols/Aws_restJson1.js +0 -1174
  51. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
@@ -1,1174 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { BadRequestException, ConflictException, ForbiddenException, GoneException, InternalServerErrorException, NotFoundException, PreconditionFailedException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
6
- import { SchemasServiceException as __BaseException } from "../models/SchemasServiceException";
7
- export const se_CreateDiscovererCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/v1/discoverers");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- CrossAccount: [],
16
- Description: [],
17
- SourceArn: [],
18
- tags: [, (_) => _json(_), `Tags`],
19
- }));
20
- b.m("POST").h(headers).b(body);
21
- return b.build();
22
- };
23
- export const se_CreateRegistryCommand = async (input, context) => {
24
- const b = rb(input, context);
25
- const headers = {
26
- "content-type": "application/json",
27
- };
28
- b.bp("/v1/registries/name/{RegistryName}");
29
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
30
- let body;
31
- body = JSON.stringify(take(input, {
32
- Description: [],
33
- tags: [, (_) => _json(_), `Tags`],
34
- }));
35
- b.m("POST").h(headers).b(body);
36
- return b.build();
37
- };
38
- export const se_CreateSchemaCommand = async (input, context) => {
39
- const b = rb(input, context);
40
- const headers = {
41
- "content-type": "application/json",
42
- };
43
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
44
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
45
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
46
- let body;
47
- body = JSON.stringify(take(input, {
48
- Content: [],
49
- Description: [],
50
- tags: [, (_) => _json(_), `Tags`],
51
- Type: [],
52
- }));
53
- b.m("POST").h(headers).b(body);
54
- return b.build();
55
- };
56
- export const se_DeleteDiscovererCommand = async (input, context) => {
57
- const b = rb(input, context);
58
- const headers = {};
59
- b.bp("/v1/discoverers/id/{DiscovererId}");
60
- b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
61
- let body;
62
- b.m("DELETE").h(headers).b(body);
63
- return b.build();
64
- };
65
- export const se_DeleteRegistryCommand = async (input, context) => {
66
- const b = rb(input, context);
67
- const headers = {};
68
- b.bp("/v1/registries/name/{RegistryName}");
69
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
70
- let body;
71
- b.m("DELETE").h(headers).b(body);
72
- return b.build();
73
- };
74
- export const se_DeleteResourcePolicyCommand = async (input, context) => {
75
- const b = rb(input, context);
76
- const headers = {};
77
- b.bp("/v1/policy");
78
- const query = map({
79
- [_rN]: [, input[_RN]],
80
- });
81
- let body;
82
- b.m("DELETE").h(headers).q(query).b(body);
83
- return b.build();
84
- };
85
- export const se_DeleteSchemaCommand = async (input, context) => {
86
- const b = rb(input, context);
87
- const headers = {};
88
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
89
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
90
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
91
- let body;
92
- b.m("DELETE").h(headers).b(body);
93
- return b.build();
94
- };
95
- export const se_DeleteSchemaVersionCommand = async (input, context) => {
96
- const b = rb(input, context);
97
- const headers = {};
98
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}");
99
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
100
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
101
- b.p("SchemaVersion", () => input.SchemaVersion, "{SchemaVersion}", false);
102
- let body;
103
- b.m("DELETE").h(headers).b(body);
104
- return b.build();
105
- };
106
- export const se_DescribeCodeBindingCommand = async (input, context) => {
107
- const b = rb(input, context);
108
- const headers = {};
109
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");
110
- b.p("Language", () => input.Language, "{Language}", false);
111
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
112
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
113
- const query = map({
114
- [_sV]: [, input[_SV]],
115
- });
116
- let body;
117
- b.m("GET").h(headers).q(query).b(body);
118
- return b.build();
119
- };
120
- export const se_DescribeDiscovererCommand = async (input, context) => {
121
- const b = rb(input, context);
122
- const headers = {};
123
- b.bp("/v1/discoverers/id/{DiscovererId}");
124
- b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
125
- let body;
126
- b.m("GET").h(headers).b(body);
127
- return b.build();
128
- };
129
- export const se_DescribeRegistryCommand = async (input, context) => {
130
- const b = rb(input, context);
131
- const headers = {};
132
- b.bp("/v1/registries/name/{RegistryName}");
133
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
134
- let body;
135
- b.m("GET").h(headers).b(body);
136
- return b.build();
137
- };
138
- export const se_DescribeSchemaCommand = async (input, context) => {
139
- const b = rb(input, context);
140
- const headers = {};
141
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
142
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
143
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
144
- const query = map({
145
- [_sV]: [, input[_SV]],
146
- });
147
- let body;
148
- b.m("GET").h(headers).q(query).b(body);
149
- return b.build();
150
- };
151
- export const se_ExportSchemaCommand = async (input, context) => {
152
- const b = rb(input, context);
153
- const headers = {};
154
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export");
155
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
156
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
157
- const query = map({
158
- [_sV]: [, input[_SV]],
159
- [_t]: [, __expectNonNull(input[_T], `Type`)],
160
- });
161
- let body;
162
- b.m("GET").h(headers).q(query).b(body);
163
- return b.build();
164
- };
165
- export const se_GetCodeBindingSourceCommand = async (input, context) => {
166
- const b = rb(input, context);
167
- const headers = {};
168
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source");
169
- b.p("Language", () => input.Language, "{Language}", false);
170
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
171
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
172
- const query = map({
173
- [_sV]: [, input[_SV]],
174
- });
175
- let body;
176
- b.m("GET").h(headers).q(query).b(body);
177
- return b.build();
178
- };
179
- export const se_GetDiscoveredSchemaCommand = async (input, context) => {
180
- const b = rb(input, context);
181
- const headers = {
182
- "content-type": "application/json",
183
- };
184
- b.bp("/v1/discover");
185
- let body;
186
- body = JSON.stringify(take(input, {
187
- Events: (_) => _json(_),
188
- Type: [],
189
- }));
190
- b.m("POST").h(headers).b(body);
191
- return b.build();
192
- };
193
- export const se_GetResourcePolicyCommand = async (input, context) => {
194
- const b = rb(input, context);
195
- const headers = {};
196
- b.bp("/v1/policy");
197
- const query = map({
198
- [_rN]: [, input[_RN]],
199
- });
200
- let body;
201
- b.m("GET").h(headers).q(query).b(body);
202
- return b.build();
203
- };
204
- export const se_ListDiscoverersCommand = async (input, context) => {
205
- const b = rb(input, context);
206
- const headers = {};
207
- b.bp("/v1/discoverers");
208
- const query = map({
209
- [_dIP]: [, input[_DIP]],
210
- [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
211
- [_nT]: [, input[_NT]],
212
- [_sAP]: [, input[_SAP]],
213
- });
214
- let body;
215
- b.m("GET").h(headers).q(query).b(body);
216
- return b.build();
217
- };
218
- export const se_ListRegistriesCommand = async (input, context) => {
219
- const b = rb(input, context);
220
- const headers = {};
221
- b.bp("/v1/registries");
222
- const query = map({
223
- [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
224
- [_nT]: [, input[_NT]],
225
- [_rNP]: [, input[_RNP]],
226
- [_s]: [, input[_S]],
227
- });
228
- let body;
229
- b.m("GET").h(headers).q(query).b(body);
230
- return b.build();
231
- };
232
- export const se_ListSchemasCommand = async (input, context) => {
233
- const b = rb(input, context);
234
- const headers = {};
235
- b.bp("/v1/registries/name/{RegistryName}/schemas");
236
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
237
- const query = map({
238
- [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
239
- [_nT]: [, input[_NT]],
240
- [_sNP]: [, input[_SNP]],
241
- });
242
- let body;
243
- b.m("GET").h(headers).q(query).b(body);
244
- return b.build();
245
- };
246
- export const se_ListSchemaVersionsCommand = async (input, context) => {
247
- const b = rb(input, context);
248
- const headers = {};
249
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions");
250
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
251
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
252
- const query = map({
253
- [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
254
- [_nT]: [, input[_NT]],
255
- });
256
- let body;
257
- b.m("GET").h(headers).q(query).b(body);
258
- return b.build();
259
- };
260
- export const se_ListTagsForResourceCommand = async (input, context) => {
261
- const b = rb(input, context);
262
- const headers = {};
263
- b.bp("/tags/{ResourceArn}");
264
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
265
- let body;
266
- b.m("GET").h(headers).b(body);
267
- return b.build();
268
- };
269
- export const se_PutCodeBindingCommand = async (input, context) => {
270
- const b = rb(input, context);
271
- const headers = {};
272
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");
273
- b.p("Language", () => input.Language, "{Language}", false);
274
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
275
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
276
- const query = map({
277
- [_sV]: [, input[_SV]],
278
- });
279
- let body;
280
- b.m("POST").h(headers).q(query).b(body);
281
- return b.build();
282
- };
283
- export const se_PutResourcePolicyCommand = async (input, context) => {
284
- const b = rb(input, context);
285
- const headers = {
286
- "content-type": "application/json",
287
- };
288
- b.bp("/v1/policy");
289
- const query = map({
290
- [_rN]: [, input[_RN]],
291
- });
292
- let body;
293
- body = JSON.stringify(take(input, {
294
- Policy: (_) => __LazyJsonString.from(_),
295
- RevisionId: [],
296
- }));
297
- b.m("PUT").h(headers).q(query).b(body);
298
- return b.build();
299
- };
300
- export const se_SearchSchemasCommand = async (input, context) => {
301
- const b = rb(input, context);
302
- const headers = {};
303
- b.bp("/v1/registries/name/{RegistryName}/schemas/search");
304
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
305
- const query = map({
306
- [_k]: [, __expectNonNull(input[_K], `Keywords`)],
307
- [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
308
- [_nT]: [, input[_NT]],
309
- });
310
- let body;
311
- b.m("GET").h(headers).q(query).b(body);
312
- return b.build();
313
- };
314
- export const se_StartDiscovererCommand = async (input, context) => {
315
- const b = rb(input, context);
316
- const headers = {};
317
- b.bp("/v1/discoverers/id/{DiscovererId}/start");
318
- b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
319
- let body;
320
- b.m("POST").h(headers).b(body);
321
- return b.build();
322
- };
323
- export const se_StopDiscovererCommand = async (input, context) => {
324
- const b = rb(input, context);
325
- const headers = {};
326
- b.bp("/v1/discoverers/id/{DiscovererId}/stop");
327
- b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
328
- let body;
329
- b.m("POST").h(headers).b(body);
330
- return b.build();
331
- };
332
- export const se_TagResourceCommand = async (input, context) => {
333
- const b = rb(input, context);
334
- const headers = {
335
- "content-type": "application/json",
336
- };
337
- b.bp("/tags/{ResourceArn}");
338
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
339
- let body;
340
- body = JSON.stringify(take(input, {
341
- tags: [, (_) => _json(_), `Tags`],
342
- }));
343
- b.m("POST").h(headers).b(body);
344
- return b.build();
345
- };
346
- export const se_UntagResourceCommand = async (input, context) => {
347
- const b = rb(input, context);
348
- const headers = {};
349
- b.bp("/tags/{ResourceArn}");
350
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
351
- const query = map({
352
- [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
353
- });
354
- let body;
355
- b.m("DELETE").h(headers).q(query).b(body);
356
- return b.build();
357
- };
358
- export const se_UpdateDiscovererCommand = async (input, context) => {
359
- const b = rb(input, context);
360
- const headers = {
361
- "content-type": "application/json",
362
- };
363
- b.bp("/v1/discoverers/id/{DiscovererId}");
364
- b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
365
- let body;
366
- body = JSON.stringify(take(input, {
367
- CrossAccount: [],
368
- Description: [],
369
- }));
370
- b.m("PUT").h(headers).b(body);
371
- return b.build();
372
- };
373
- export const se_UpdateRegistryCommand = async (input, context) => {
374
- const b = rb(input, context);
375
- const headers = {
376
- "content-type": "application/json",
377
- };
378
- b.bp("/v1/registries/name/{RegistryName}");
379
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
380
- let body;
381
- body = JSON.stringify(take(input, {
382
- Description: [],
383
- }));
384
- b.m("PUT").h(headers).b(body);
385
- return b.build();
386
- };
387
- export const se_UpdateSchemaCommand = async (input, context) => {
388
- const b = rb(input, context);
389
- const headers = {
390
- "content-type": "application/json",
391
- };
392
- b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
393
- b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
394
- b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
395
- let body;
396
- body = JSON.stringify(take(input, {
397
- ClientTokenId: [true, (_) => _ ?? generateIdempotencyToken()],
398
- Content: [],
399
- Description: [],
400
- Type: [],
401
- }));
402
- b.m("PUT").h(headers).b(body);
403
- return b.build();
404
- };
405
- export const de_CreateDiscovererCommand = async (output, context) => {
406
- if (output.statusCode !== 201 && output.statusCode >= 300) {
407
- return de_CommandError(output, context);
408
- }
409
- const contents = map({
410
- $metadata: deserializeMetadata(output),
411
- });
412
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
413
- const doc = take(data, {
414
- CrossAccount: __expectBoolean,
415
- Description: __expectString,
416
- DiscovererArn: __expectString,
417
- DiscovererId: __expectString,
418
- SourceArn: __expectString,
419
- State: __expectString,
420
- Tags: [, _json, `tags`],
421
- });
422
- Object.assign(contents, doc);
423
- return contents;
424
- };
425
- export const de_CreateRegistryCommand = async (output, context) => {
426
- if (output.statusCode !== 201 && output.statusCode >= 300) {
427
- return de_CommandError(output, context);
428
- }
429
- const contents = map({
430
- $metadata: deserializeMetadata(output),
431
- });
432
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
433
- const doc = take(data, {
434
- Description: __expectString,
435
- RegistryArn: __expectString,
436
- RegistryName: __expectString,
437
- Tags: [, _json, `tags`],
438
- });
439
- Object.assign(contents, doc);
440
- return contents;
441
- };
442
- export const de_CreateSchemaCommand = async (output, context) => {
443
- if (output.statusCode !== 201 && output.statusCode >= 300) {
444
- return de_CommandError(output, context);
445
- }
446
- const contents = map({
447
- $metadata: deserializeMetadata(output),
448
- });
449
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
450
- const doc = take(data, {
451
- Description: __expectString,
452
- LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
453
- SchemaArn: __expectString,
454
- SchemaName: __expectString,
455
- SchemaVersion: __expectString,
456
- Tags: [, _json, `tags`],
457
- Type: __expectString,
458
- VersionCreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
459
- });
460
- Object.assign(contents, doc);
461
- return contents;
462
- };
463
- export const de_DeleteDiscovererCommand = async (output, context) => {
464
- if (output.statusCode !== 204 && output.statusCode >= 300) {
465
- return de_CommandError(output, context);
466
- }
467
- const contents = map({
468
- $metadata: deserializeMetadata(output),
469
- });
470
- await collectBody(output.body, context);
471
- return contents;
472
- };
473
- export const de_DeleteRegistryCommand = async (output, context) => {
474
- if (output.statusCode !== 204 && output.statusCode >= 300) {
475
- return de_CommandError(output, context);
476
- }
477
- const contents = map({
478
- $metadata: deserializeMetadata(output),
479
- });
480
- await collectBody(output.body, context);
481
- return contents;
482
- };
483
- export const de_DeleteResourcePolicyCommand = async (output, context) => {
484
- if (output.statusCode !== 204 && output.statusCode >= 300) {
485
- return de_CommandError(output, context);
486
- }
487
- const contents = map({
488
- $metadata: deserializeMetadata(output),
489
- });
490
- await collectBody(output.body, context);
491
- return contents;
492
- };
493
- export const de_DeleteSchemaCommand = async (output, context) => {
494
- if (output.statusCode !== 204 && output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const contents = map({
498
- $metadata: deserializeMetadata(output),
499
- });
500
- await collectBody(output.body, context);
501
- return contents;
502
- };
503
- export const de_DeleteSchemaVersionCommand = async (output, context) => {
504
- if (output.statusCode !== 204 && output.statusCode >= 300) {
505
- return de_CommandError(output, context);
506
- }
507
- const contents = map({
508
- $metadata: deserializeMetadata(output),
509
- });
510
- await collectBody(output.body, context);
511
- return contents;
512
- };
513
- export const de_DescribeCodeBindingCommand = async (output, context) => {
514
- if (output.statusCode !== 200 && output.statusCode >= 300) {
515
- return de_CommandError(output, context);
516
- }
517
- const contents = map({
518
- $metadata: deserializeMetadata(output),
519
- });
520
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
521
- const doc = take(data, {
522
- CreationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
523
- LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
524
- SchemaVersion: __expectString,
525
- Status: __expectString,
526
- });
527
- Object.assign(contents, doc);
528
- return contents;
529
- };
530
- export const de_DescribeDiscovererCommand = async (output, context) => {
531
- if (output.statusCode !== 200 && output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const contents = map({
535
- $metadata: deserializeMetadata(output),
536
- });
537
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
538
- const doc = take(data, {
539
- CrossAccount: __expectBoolean,
540
- Description: __expectString,
541
- DiscovererArn: __expectString,
542
- DiscovererId: __expectString,
543
- SourceArn: __expectString,
544
- State: __expectString,
545
- Tags: [, _json, `tags`],
546
- });
547
- Object.assign(contents, doc);
548
- return contents;
549
- };
550
- export const de_DescribeRegistryCommand = async (output, context) => {
551
- if (output.statusCode !== 200 && output.statusCode >= 300) {
552
- return de_CommandError(output, context);
553
- }
554
- const contents = map({
555
- $metadata: deserializeMetadata(output),
556
- });
557
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
558
- const doc = take(data, {
559
- Description: __expectString,
560
- RegistryArn: __expectString,
561
- RegistryName: __expectString,
562
- Tags: [, _json, `tags`],
563
- });
564
- Object.assign(contents, doc);
565
- return contents;
566
- };
567
- export const de_DescribeSchemaCommand = async (output, context) => {
568
- if (output.statusCode !== 200 && output.statusCode >= 300) {
569
- return de_CommandError(output, context);
570
- }
571
- const contents = map({
572
- $metadata: deserializeMetadata(output),
573
- });
574
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
575
- const doc = take(data, {
576
- Content: __expectString,
577
- Description: __expectString,
578
- LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
579
- SchemaArn: __expectString,
580
- SchemaName: __expectString,
581
- SchemaVersion: __expectString,
582
- Tags: [, _json, `tags`],
583
- Type: __expectString,
584
- VersionCreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
585
- });
586
- Object.assign(contents, doc);
587
- return contents;
588
- };
589
- export const de_ExportSchemaCommand = async (output, context) => {
590
- if (output.statusCode !== 200 && output.statusCode >= 300) {
591
- return de_CommandError(output, context);
592
- }
593
- const contents = map({
594
- $metadata: deserializeMetadata(output),
595
- });
596
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
597
- const doc = take(data, {
598
- Content: __expectString,
599
- SchemaArn: __expectString,
600
- SchemaName: __expectString,
601
- SchemaVersion: __expectString,
602
- Type: __expectString,
603
- });
604
- Object.assign(contents, doc);
605
- return contents;
606
- };
607
- export const de_GetCodeBindingSourceCommand = async (output, context) => {
608
- if (output.statusCode !== 200 && output.statusCode >= 300) {
609
- return de_CommandError(output, context);
610
- }
611
- const contents = map({
612
- $metadata: deserializeMetadata(output),
613
- });
614
- const data = await collectBody(output.body, context);
615
- contents.Body = data;
616
- return contents;
617
- };
618
- export const de_GetDiscoveredSchemaCommand = async (output, context) => {
619
- if (output.statusCode !== 200 && output.statusCode >= 300) {
620
- return de_CommandError(output, context);
621
- }
622
- const contents = map({
623
- $metadata: deserializeMetadata(output),
624
- });
625
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
626
- const doc = take(data, {
627
- Content: __expectString,
628
- });
629
- Object.assign(contents, doc);
630
- return contents;
631
- };
632
- export const de_GetResourcePolicyCommand = async (output, context) => {
633
- if (output.statusCode !== 200 && output.statusCode >= 300) {
634
- return de_CommandError(output, context);
635
- }
636
- const contents = map({
637
- $metadata: deserializeMetadata(output),
638
- });
639
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
640
- const doc = take(data, {
641
- Policy: __LazyJsonString.from,
642
- RevisionId: __expectString,
643
- });
644
- Object.assign(contents, doc);
645
- return contents;
646
- };
647
- export const de_ListDiscoverersCommand = async (output, context) => {
648
- if (output.statusCode !== 200 && output.statusCode >= 300) {
649
- return de_CommandError(output, context);
650
- }
651
- const contents = map({
652
- $metadata: deserializeMetadata(output),
653
- });
654
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
655
- const doc = take(data, {
656
- Discoverers: (_) => de___listOfDiscovererSummary(_, context),
657
- NextToken: __expectString,
658
- });
659
- Object.assign(contents, doc);
660
- return contents;
661
- };
662
- export const de_ListRegistriesCommand = async (output, context) => {
663
- if (output.statusCode !== 200 && output.statusCode >= 300) {
664
- return de_CommandError(output, context);
665
- }
666
- const contents = map({
667
- $metadata: deserializeMetadata(output),
668
- });
669
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
670
- const doc = take(data, {
671
- NextToken: __expectString,
672
- Registries: (_) => de___listOfRegistrySummary(_, context),
673
- });
674
- Object.assign(contents, doc);
675
- return contents;
676
- };
677
- export const de_ListSchemasCommand = async (output, context) => {
678
- if (output.statusCode !== 200 && output.statusCode >= 300) {
679
- return de_CommandError(output, context);
680
- }
681
- const contents = map({
682
- $metadata: deserializeMetadata(output),
683
- });
684
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
685
- const doc = take(data, {
686
- NextToken: __expectString,
687
- Schemas: (_) => de___listOfSchemaSummary(_, context),
688
- });
689
- Object.assign(contents, doc);
690
- return contents;
691
- };
692
- export const de_ListSchemaVersionsCommand = async (output, context) => {
693
- if (output.statusCode !== 200 && output.statusCode >= 300) {
694
- return de_CommandError(output, context);
695
- }
696
- const contents = map({
697
- $metadata: deserializeMetadata(output),
698
- });
699
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
700
- const doc = take(data, {
701
- NextToken: __expectString,
702
- SchemaVersions: _json,
703
- });
704
- Object.assign(contents, doc);
705
- return contents;
706
- };
707
- export const de_ListTagsForResourceCommand = async (output, context) => {
708
- if (output.statusCode !== 200 && output.statusCode >= 300) {
709
- return de_CommandError(output, context);
710
- }
711
- const contents = map({
712
- $metadata: deserializeMetadata(output),
713
- });
714
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
715
- const doc = take(data, {
716
- Tags: [, _json, `tags`],
717
- });
718
- Object.assign(contents, doc);
719
- return contents;
720
- };
721
- export const de_PutCodeBindingCommand = async (output, context) => {
722
- if (output.statusCode !== 202 && output.statusCode >= 300) {
723
- return de_CommandError(output, context);
724
- }
725
- const contents = map({
726
- $metadata: deserializeMetadata(output),
727
- });
728
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
729
- const doc = take(data, {
730
- CreationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
731
- LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
732
- SchemaVersion: __expectString,
733
- Status: __expectString,
734
- });
735
- Object.assign(contents, doc);
736
- return contents;
737
- };
738
- export const de_PutResourcePolicyCommand = async (output, context) => {
739
- if (output.statusCode !== 200 && output.statusCode >= 300) {
740
- return de_CommandError(output, context);
741
- }
742
- const contents = map({
743
- $metadata: deserializeMetadata(output),
744
- });
745
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
746
- const doc = take(data, {
747
- Policy: __LazyJsonString.from,
748
- RevisionId: __expectString,
749
- });
750
- Object.assign(contents, doc);
751
- return contents;
752
- };
753
- export const de_SearchSchemasCommand = async (output, context) => {
754
- if (output.statusCode !== 200 && output.statusCode >= 300) {
755
- return de_CommandError(output, context);
756
- }
757
- const contents = map({
758
- $metadata: deserializeMetadata(output),
759
- });
760
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
761
- const doc = take(data, {
762
- NextToken: __expectString,
763
- Schemas: (_) => de___listOfSearchSchemaSummary(_, context),
764
- });
765
- Object.assign(contents, doc);
766
- return contents;
767
- };
768
- export const de_StartDiscovererCommand = async (output, context) => {
769
- if (output.statusCode !== 200 && output.statusCode >= 300) {
770
- return de_CommandError(output, context);
771
- }
772
- const contents = map({
773
- $metadata: deserializeMetadata(output),
774
- });
775
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
776
- const doc = take(data, {
777
- DiscovererId: __expectString,
778
- State: __expectString,
779
- });
780
- Object.assign(contents, doc);
781
- return contents;
782
- };
783
- export const de_StopDiscovererCommand = async (output, context) => {
784
- if (output.statusCode !== 200 && output.statusCode >= 300) {
785
- return de_CommandError(output, context);
786
- }
787
- const contents = map({
788
- $metadata: deserializeMetadata(output),
789
- });
790
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
791
- const doc = take(data, {
792
- DiscovererId: __expectString,
793
- State: __expectString,
794
- });
795
- Object.assign(contents, doc);
796
- return contents;
797
- };
798
- export const de_TagResourceCommand = async (output, context) => {
799
- if (output.statusCode !== 204 && output.statusCode >= 300) {
800
- return de_CommandError(output, context);
801
- }
802
- const contents = map({
803
- $metadata: deserializeMetadata(output),
804
- });
805
- await collectBody(output.body, context);
806
- return contents;
807
- };
808
- export const de_UntagResourceCommand = async (output, context) => {
809
- if (output.statusCode !== 204 && output.statusCode >= 300) {
810
- return de_CommandError(output, context);
811
- }
812
- const contents = map({
813
- $metadata: deserializeMetadata(output),
814
- });
815
- await collectBody(output.body, context);
816
- return contents;
817
- };
818
- export const de_UpdateDiscovererCommand = async (output, context) => {
819
- if (output.statusCode !== 200 && output.statusCode >= 300) {
820
- return de_CommandError(output, context);
821
- }
822
- const contents = map({
823
- $metadata: deserializeMetadata(output),
824
- });
825
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
826
- const doc = take(data, {
827
- CrossAccount: __expectBoolean,
828
- Description: __expectString,
829
- DiscovererArn: __expectString,
830
- DiscovererId: __expectString,
831
- SourceArn: __expectString,
832
- State: __expectString,
833
- Tags: [, _json, `tags`],
834
- });
835
- Object.assign(contents, doc);
836
- return contents;
837
- };
838
- export const de_UpdateRegistryCommand = async (output, context) => {
839
- if (output.statusCode !== 200 && output.statusCode >= 300) {
840
- return de_CommandError(output, context);
841
- }
842
- const contents = map({
843
- $metadata: deserializeMetadata(output),
844
- });
845
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
846
- const doc = take(data, {
847
- Description: __expectString,
848
- RegistryArn: __expectString,
849
- RegistryName: __expectString,
850
- Tags: [, _json, `tags`],
851
- });
852
- Object.assign(contents, doc);
853
- return contents;
854
- };
855
- export const de_UpdateSchemaCommand = async (output, context) => {
856
- if (output.statusCode !== 200 && output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const contents = map({
860
- $metadata: deserializeMetadata(output),
861
- });
862
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
863
- const doc = take(data, {
864
- Description: __expectString,
865
- LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
866
- SchemaArn: __expectString,
867
- SchemaName: __expectString,
868
- SchemaVersion: __expectString,
869
- Tags: [, _json, `tags`],
870
- Type: __expectString,
871
- VersionCreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
872
- });
873
- Object.assign(contents, doc);
874
- return contents;
875
- };
876
- const de_CommandError = async (output, context) => {
877
- const parsedOutput = {
878
- ...output,
879
- body: await parseErrorBody(output.body, context),
880
- };
881
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
882
- switch (errorCode) {
883
- case "BadRequestException":
884
- case "com.amazonaws.schemas#BadRequestException":
885
- throw await de_BadRequestExceptionRes(parsedOutput, context);
886
- case "ConflictException":
887
- case "com.amazonaws.schemas#ConflictException":
888
- throw await de_ConflictExceptionRes(parsedOutput, context);
889
- case "ForbiddenException":
890
- case "com.amazonaws.schemas#ForbiddenException":
891
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
892
- case "InternalServerErrorException":
893
- case "com.amazonaws.schemas#InternalServerErrorException":
894
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
895
- case "ServiceUnavailableException":
896
- case "com.amazonaws.schemas#ServiceUnavailableException":
897
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
898
- case "UnauthorizedException":
899
- case "com.amazonaws.schemas#UnauthorizedException":
900
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
901
- case "NotFoundException":
902
- case "com.amazonaws.schemas#NotFoundException":
903
- throw await de_NotFoundExceptionRes(parsedOutput, context);
904
- case "TooManyRequestsException":
905
- case "com.amazonaws.schemas#TooManyRequestsException":
906
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
907
- case "GoneException":
908
- case "com.amazonaws.schemas#GoneException":
909
- throw await de_GoneExceptionRes(parsedOutput, context);
910
- case "PreconditionFailedException":
911
- case "com.amazonaws.schemas#PreconditionFailedException":
912
- throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
913
- default:
914
- const parsedBody = parsedOutput.body;
915
- return throwDefaultError({
916
- output,
917
- parsedBody,
918
- errorCode,
919
- });
920
- }
921
- };
922
- const throwDefaultError = withBaseException(__BaseException);
923
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
924
- const contents = map({});
925
- const data = parsedOutput.body;
926
- const doc = take(data, {
927
- Code: __expectString,
928
- Message: __expectString,
929
- });
930
- Object.assign(contents, doc);
931
- const exception = new BadRequestException({
932
- $metadata: deserializeMetadata(parsedOutput),
933
- ...contents,
934
- });
935
- return __decorateServiceException(exception, parsedOutput.body);
936
- };
937
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
938
- const contents = map({});
939
- const data = parsedOutput.body;
940
- const doc = take(data, {
941
- Code: __expectString,
942
- Message: __expectString,
943
- });
944
- Object.assign(contents, doc);
945
- const exception = new ConflictException({
946
- $metadata: deserializeMetadata(parsedOutput),
947
- ...contents,
948
- });
949
- return __decorateServiceException(exception, parsedOutput.body);
950
- };
951
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
952
- const contents = map({});
953
- const data = parsedOutput.body;
954
- const doc = take(data, {
955
- Code: __expectString,
956
- Message: __expectString,
957
- });
958
- Object.assign(contents, doc);
959
- const exception = new ForbiddenException({
960
- $metadata: deserializeMetadata(parsedOutput),
961
- ...contents,
962
- });
963
- return __decorateServiceException(exception, parsedOutput.body);
964
- };
965
- const de_GoneExceptionRes = async (parsedOutput, context) => {
966
- const contents = map({});
967
- const data = parsedOutput.body;
968
- const doc = take(data, {
969
- Code: __expectString,
970
- Message: __expectString,
971
- });
972
- Object.assign(contents, doc);
973
- const exception = new GoneException({
974
- $metadata: deserializeMetadata(parsedOutput),
975
- ...contents,
976
- });
977
- return __decorateServiceException(exception, parsedOutput.body);
978
- };
979
- const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
980
- const contents = map({});
981
- const data = parsedOutput.body;
982
- const doc = take(data, {
983
- Code: __expectString,
984
- Message: __expectString,
985
- });
986
- Object.assign(contents, doc);
987
- const exception = new InternalServerErrorException({
988
- $metadata: deserializeMetadata(parsedOutput),
989
- ...contents,
990
- });
991
- return __decorateServiceException(exception, parsedOutput.body);
992
- };
993
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
994
- const contents = map({});
995
- const data = parsedOutput.body;
996
- const doc = take(data, {
997
- Code: __expectString,
998
- Message: __expectString,
999
- });
1000
- Object.assign(contents, doc);
1001
- const exception = new NotFoundException({
1002
- $metadata: deserializeMetadata(parsedOutput),
1003
- ...contents,
1004
- });
1005
- return __decorateServiceException(exception, parsedOutput.body);
1006
- };
1007
- const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
1008
- const contents = map({});
1009
- const data = parsedOutput.body;
1010
- const doc = take(data, {
1011
- Code: __expectString,
1012
- Message: __expectString,
1013
- });
1014
- Object.assign(contents, doc);
1015
- const exception = new PreconditionFailedException({
1016
- $metadata: deserializeMetadata(parsedOutput),
1017
- ...contents,
1018
- });
1019
- return __decorateServiceException(exception, parsedOutput.body);
1020
- };
1021
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1022
- const contents = map({});
1023
- const data = parsedOutput.body;
1024
- const doc = take(data, {
1025
- Code: __expectString,
1026
- Message: __expectString,
1027
- });
1028
- Object.assign(contents, doc);
1029
- const exception = new ServiceUnavailableException({
1030
- $metadata: deserializeMetadata(parsedOutput),
1031
- ...contents,
1032
- });
1033
- return __decorateServiceException(exception, parsedOutput.body);
1034
- };
1035
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1036
- const contents = map({});
1037
- const data = parsedOutput.body;
1038
- const doc = take(data, {
1039
- Code: __expectString,
1040
- Message: __expectString,
1041
- });
1042
- Object.assign(contents, doc);
1043
- const exception = new TooManyRequestsException({
1044
- $metadata: deserializeMetadata(parsedOutput),
1045
- ...contents,
1046
- });
1047
- return __decorateServiceException(exception, parsedOutput.body);
1048
- };
1049
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
1050
- const contents = map({});
1051
- const data = parsedOutput.body;
1052
- const doc = take(data, {
1053
- Code: __expectString,
1054
- Message: __expectString,
1055
- });
1056
- Object.assign(contents, doc);
1057
- const exception = new UnauthorizedException({
1058
- $metadata: deserializeMetadata(parsedOutput),
1059
- ...contents,
1060
- });
1061
- return __decorateServiceException(exception, parsedOutput.body);
1062
- };
1063
- const de___listOfDiscovererSummary = (output, context) => {
1064
- const retVal = (output || [])
1065
- .filter((e) => e != null)
1066
- .map((entry) => {
1067
- return de_DiscovererSummary(entry, context);
1068
- });
1069
- return retVal;
1070
- };
1071
- const de___listOfRegistrySummary = (output, context) => {
1072
- const retVal = (output || [])
1073
- .filter((e) => e != null)
1074
- .map((entry) => {
1075
- return de_RegistrySummary(entry, context);
1076
- });
1077
- return retVal;
1078
- };
1079
- const de___listOfSchemaSummary = (output, context) => {
1080
- const retVal = (output || [])
1081
- .filter((e) => e != null)
1082
- .map((entry) => {
1083
- return de_SchemaSummary(entry, context);
1084
- });
1085
- return retVal;
1086
- };
1087
- const de___listOfSearchSchemaSummary = (output, context) => {
1088
- const retVal = (output || [])
1089
- .filter((e) => e != null)
1090
- .map((entry) => {
1091
- return de_SearchSchemaSummary(entry, context);
1092
- });
1093
- return retVal;
1094
- };
1095
- const de___listOfSearchSchemaVersionSummary = (output, context) => {
1096
- const retVal = (output || [])
1097
- .filter((e) => e != null)
1098
- .map((entry) => {
1099
- return de_SearchSchemaVersionSummary(entry, context);
1100
- });
1101
- return retVal;
1102
- };
1103
- const de_DiscovererSummary = (output, context) => {
1104
- return take(output, {
1105
- CrossAccount: __expectBoolean,
1106
- DiscovererArn: __expectString,
1107
- DiscovererId: __expectString,
1108
- SourceArn: __expectString,
1109
- State: __expectString,
1110
- Tags: [, _json, `tags`],
1111
- });
1112
- };
1113
- const de_RegistrySummary = (output, context) => {
1114
- return take(output, {
1115
- RegistryArn: __expectString,
1116
- RegistryName: __expectString,
1117
- Tags: [, _json, `tags`],
1118
- });
1119
- };
1120
- const de_SchemaSummary = (output, context) => {
1121
- return take(output, {
1122
- LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1123
- SchemaArn: __expectString,
1124
- SchemaName: __expectString,
1125
- Tags: [, _json, `tags`],
1126
- VersionCount: __expectLong,
1127
- });
1128
- };
1129
- const de_SearchSchemaSummary = (output, context) => {
1130
- return take(output, {
1131
- RegistryName: __expectString,
1132
- SchemaArn: __expectString,
1133
- SchemaName: __expectString,
1134
- SchemaVersions: (_) => de___listOfSearchSchemaVersionSummary(_, context),
1135
- });
1136
- };
1137
- const de_SearchSchemaVersionSummary = (output, context) => {
1138
- return take(output, {
1139
- CreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1140
- SchemaVersion: __expectString,
1141
- Type: __expectString,
1142
- });
1143
- };
1144
- const deserializeMetadata = (output) => ({
1145
- httpStatusCode: output.statusCode,
1146
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1147
- extendedRequestId: output.headers["x-amz-id-2"],
1148
- cfId: output.headers["x-amz-cf-id"],
1149
- });
1150
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1151
- const _DIP = "DiscovererIdPrefix";
1152
- const _K = "Keywords";
1153
- const _L = "Limit";
1154
- const _NT = "NextToken";
1155
- const _RN = "RegistryName";
1156
- const _RNP = "RegistryNamePrefix";
1157
- const _S = "Scope";
1158
- const _SAP = "SourceArnPrefix";
1159
- const _SNP = "SchemaNamePrefix";
1160
- const _SV = "SchemaVersion";
1161
- const _T = "Type";
1162
- const _TK = "TagKeys";
1163
- const _dIP = "discovererIdPrefix";
1164
- const _k = "keywords";
1165
- const _l = "limit";
1166
- const _nT = "nextToken";
1167
- const _rN = "registryName";
1168
- const _rNP = "registryNamePrefix";
1169
- const _s = "scope";
1170
- const _sAP = "sourceArnPrefix";
1171
- const _sNP = "schemaNamePrefix";
1172
- const _sV = "schemaVersion";
1173
- const _t = "type";
1174
- const _tK = "tagKeys";