@aws-sdk/client-ecr-public 3.312.0 → 3.315.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.
@@ -8,21 +8,21 @@ const models_0_1 = require("../models/models_0");
8
8
  const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("BatchCheckLayerAvailability");
10
10
  let body;
11
- body = JSON.stringify(se_BatchCheckLayerAvailabilityRequest(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_BatchCheckLayerAvailabilityCommand = se_BatchCheckLayerAvailabilityCommand;
15
15
  const se_BatchDeleteImageCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("BatchDeleteImage");
17
17
  let body;
18
- body = JSON.stringify(se_BatchDeleteImageRequest(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
20
  };
21
21
  exports.se_BatchDeleteImageCommand = se_BatchDeleteImageCommand;
22
22
  const se_CompleteLayerUploadCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("CompleteLayerUpload");
24
24
  let body;
25
- body = JSON.stringify(se_CompleteLayerUploadRequest(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
27
  };
28
28
  exports.se_CompleteLayerUploadCommand = se_CompleteLayerUploadCommand;
@@ -36,98 +36,98 @@ exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
36
36
  const se_DeleteRepositoryCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("DeleteRepository");
38
38
  let body;
39
- body = JSON.stringify(se_DeleteRepositoryRequest(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
43
43
  const se_DeleteRepositoryPolicyCommand = async (input, context) => {
44
44
  const headers = sharedHeaders("DeleteRepositoryPolicy");
45
45
  let body;
46
- body = JSON.stringify(se_DeleteRepositoryPolicyRequest(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.se_DeleteRepositoryPolicyCommand = se_DeleteRepositoryPolicyCommand;
50
50
  const se_DescribeImagesCommand = async (input, context) => {
51
51
  const headers = sharedHeaders("DescribeImages");
52
52
  let body;
53
- body = JSON.stringify(se_DescribeImagesRequest(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
56
  exports.se_DescribeImagesCommand = se_DescribeImagesCommand;
57
57
  const se_DescribeImageTagsCommand = async (input, context) => {
58
58
  const headers = sharedHeaders("DescribeImageTags");
59
59
  let body;
60
- body = JSON.stringify(se_DescribeImageTagsRequest(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
61
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
62
  };
63
63
  exports.se_DescribeImageTagsCommand = se_DescribeImageTagsCommand;
64
64
  const se_DescribeRegistriesCommand = async (input, context) => {
65
65
  const headers = sharedHeaders("DescribeRegistries");
66
66
  let body;
67
- body = JSON.stringify(se_DescribeRegistriesRequest(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
68
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
69
  };
70
70
  exports.se_DescribeRegistriesCommand = se_DescribeRegistriesCommand;
71
71
  const se_DescribeRepositoriesCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("DescribeRepositories");
73
73
  let body;
74
- body = JSON.stringify(se_DescribeRepositoriesRequest(input, context));
74
+ body = JSON.stringify((0, smithy_client_1._json)(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  exports.se_DescribeRepositoriesCommand = se_DescribeRepositoriesCommand;
78
78
  const se_GetAuthorizationTokenCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("GetAuthorizationToken");
80
80
  let body;
81
- body = JSON.stringify(se_GetAuthorizationTokenRequest(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  exports.se_GetAuthorizationTokenCommand = se_GetAuthorizationTokenCommand;
85
85
  const se_GetRegistryCatalogDataCommand = async (input, context) => {
86
86
  const headers = sharedHeaders("GetRegistryCatalogData");
87
87
  let body;
88
- body = JSON.stringify(se_GetRegistryCatalogDataRequest(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
89
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
90
  };
91
91
  exports.se_GetRegistryCatalogDataCommand = se_GetRegistryCatalogDataCommand;
92
92
  const se_GetRepositoryCatalogDataCommand = async (input, context) => {
93
93
  const headers = sharedHeaders("GetRepositoryCatalogData");
94
94
  let body;
95
- body = JSON.stringify(se_GetRepositoryCatalogDataRequest(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
97
  };
98
98
  exports.se_GetRepositoryCatalogDataCommand = se_GetRepositoryCatalogDataCommand;
99
99
  const se_GetRepositoryPolicyCommand = async (input, context) => {
100
100
  const headers = sharedHeaders("GetRepositoryPolicy");
101
101
  let body;
102
- body = JSON.stringify(se_GetRepositoryPolicyRequest(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
103
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
104
  };
105
105
  exports.se_GetRepositoryPolicyCommand = se_GetRepositoryPolicyCommand;
106
106
  const se_InitiateLayerUploadCommand = async (input, context) => {
107
107
  const headers = sharedHeaders("InitiateLayerUpload");
108
108
  let body;
109
- body = JSON.stringify(se_InitiateLayerUploadRequest(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
110
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
111
  };
112
112
  exports.se_InitiateLayerUploadCommand = se_InitiateLayerUploadCommand;
113
113
  const se_ListTagsForResourceCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("ListTagsForResource");
115
115
  let body;
116
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
116
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
120
120
  const se_PutImageCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("PutImage");
122
122
  let body;
123
- body = JSON.stringify(se_PutImageRequest(input, context));
123
+ body = JSON.stringify((0, smithy_client_1._json)(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  exports.se_PutImageCommand = se_PutImageCommand;
127
127
  const se_PutRegistryCatalogDataCommand = async (input, context) => {
128
128
  const headers = sharedHeaders("PutRegistryCatalogData");
129
129
  let body;
130
- body = JSON.stringify(se_PutRegistryCatalogDataRequest(input, context));
130
+ body = JSON.stringify((0, smithy_client_1._json)(input));
131
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
132
  };
133
133
  exports.se_PutRegistryCatalogDataCommand = se_PutRegistryCatalogDataCommand;
@@ -141,21 +141,21 @@ exports.se_PutRepositoryCatalogDataCommand = se_PutRepositoryCatalogDataCommand;
141
141
  const se_SetRepositoryPolicyCommand = async (input, context) => {
142
142
  const headers = sharedHeaders("SetRepositoryPolicy");
143
143
  let body;
144
- body = JSON.stringify(se_SetRepositoryPolicyRequest(input, context));
144
+ body = JSON.stringify((0, smithy_client_1._json)(input));
145
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
146
  };
147
147
  exports.se_SetRepositoryPolicyCommand = se_SetRepositoryPolicyCommand;
148
148
  const se_TagResourceCommand = async (input, context) => {
149
149
  const headers = sharedHeaders("TagResource");
150
150
  let body;
151
- body = JSON.stringify(se_TagResourceRequest(input, context));
151
+ body = JSON.stringify((0, smithy_client_1._json)(input));
152
152
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
153
153
  };
154
154
  exports.se_TagResourceCommand = se_TagResourceCommand;
155
155
  const se_UntagResourceCommand = async (input, context) => {
156
156
  const headers = sharedHeaders("UntagResource");
157
157
  let body;
158
- body = JSON.stringify(se_UntagResourceRequest(input, context));
158
+ body = JSON.stringify((0, smithy_client_1._json)(input));
159
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
160
  };
161
161
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
@@ -172,12 +172,12 @@ const de_BatchCheckLayerAvailabilityCommand = async (output, context) => {
172
172
  }
173
173
  const data = await parseBody(output.body, context);
174
174
  let contents = {};
175
- contents = de_BatchCheckLayerAvailabilityResponse(data, context);
175
+ contents = (0, smithy_client_1._json)(data);
176
176
  const response = {
177
177
  $metadata: deserializeMetadata(output),
178
178
  ...contents,
179
179
  };
180
- return Promise.resolve(response);
180
+ return response;
181
181
  };
182
182
  exports.de_BatchCheckLayerAvailabilityCommand = de_BatchCheckLayerAvailabilityCommand;
183
183
  const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
@@ -204,10 +204,9 @@ const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
204
204
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
205
205
  default:
206
206
  const parsedBody = parsedOutput.body;
207
- (0, smithy_client_1.throwDefaultError)({
207
+ return throwDefaultError({
208
208
  output,
209
209
  parsedBody,
210
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
211
210
  errorCode,
212
211
  });
213
212
  }
@@ -218,12 +217,12 @@ const de_BatchDeleteImageCommand = async (output, context) => {
218
217
  }
219
218
  const data = await parseBody(output.body, context);
220
219
  let contents = {};
221
- contents = de_BatchDeleteImageResponse(data, context);
220
+ contents = (0, smithy_client_1._json)(data);
222
221
  const response = {
223
222
  $metadata: deserializeMetadata(output),
224
223
  ...contents,
225
224
  };
226
- return Promise.resolve(response);
225
+ return response;
227
226
  };
228
227
  exports.de_BatchDeleteImageCommand = de_BatchDeleteImageCommand;
229
228
  const de_BatchDeleteImageCommandError = async (output, context) => {
@@ -247,10 +246,9 @@ const de_BatchDeleteImageCommandError = async (output, context) => {
247
246
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
248
247
  default:
249
248
  const parsedBody = parsedOutput.body;
250
- (0, smithy_client_1.throwDefaultError)({
249
+ return throwDefaultError({
251
250
  output,
252
251
  parsedBody,
253
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
254
252
  errorCode,
255
253
  });
256
254
  }
@@ -261,12 +259,12 @@ const de_CompleteLayerUploadCommand = async (output, context) => {
261
259
  }
262
260
  const data = await parseBody(output.body, context);
263
261
  let contents = {};
264
- contents = de_CompleteLayerUploadResponse(data, context);
262
+ contents = (0, smithy_client_1._json)(data);
265
263
  const response = {
266
264
  $metadata: deserializeMetadata(output),
267
265
  ...contents,
268
266
  };
269
- return Promise.resolve(response);
267
+ return response;
270
268
  };
271
269
  exports.de_CompleteLayerUploadCommand = de_CompleteLayerUploadCommand;
272
270
  const de_CompleteLayerUploadCommandError = async (output, context) => {
@@ -308,10 +306,9 @@ const de_CompleteLayerUploadCommandError = async (output, context) => {
308
306
  throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
309
307
  default:
310
308
  const parsedBody = parsedOutput.body;
311
- (0, smithy_client_1.throwDefaultError)({
309
+ return throwDefaultError({
312
310
  output,
313
311
  parsedBody,
314
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
315
312
  errorCode,
316
313
  });
317
314
  }
@@ -327,7 +324,7 @@ const de_CreateRepositoryCommand = async (output, context) => {
327
324
  $metadata: deserializeMetadata(output),
328
325
  ...contents,
329
326
  };
330
- return Promise.resolve(response);
327
+ return response;
331
328
  };
332
329
  exports.de_CreateRepositoryCommand = de_CreateRepositoryCommand;
333
330
  const de_CreateRepositoryCommandError = async (output, context) => {
@@ -360,10 +357,9 @@ const de_CreateRepositoryCommandError = async (output, context) => {
360
357
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
361
358
  default:
362
359
  const parsedBody = parsedOutput.body;
363
- (0, smithy_client_1.throwDefaultError)({
360
+ return throwDefaultError({
364
361
  output,
365
362
  parsedBody,
366
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
367
363
  errorCode,
368
364
  });
369
365
  }
@@ -379,7 +375,7 @@ const de_DeleteRepositoryCommand = async (output, context) => {
379
375
  $metadata: deserializeMetadata(output),
380
376
  ...contents,
381
377
  };
382
- return Promise.resolve(response);
378
+ return response;
383
379
  };
384
380
  exports.de_DeleteRepositoryCommand = de_DeleteRepositoryCommand;
385
381
  const de_DeleteRepositoryCommandError = async (output, context) => {
@@ -406,10 +402,9 @@ const de_DeleteRepositoryCommandError = async (output, context) => {
406
402
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
407
403
  default:
408
404
  const parsedBody = parsedOutput.body;
409
- (0, smithy_client_1.throwDefaultError)({
405
+ return throwDefaultError({
410
406
  output,
411
407
  parsedBody,
412
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
413
408
  errorCode,
414
409
  });
415
410
  }
@@ -420,12 +415,12 @@ const de_DeleteRepositoryPolicyCommand = async (output, context) => {
420
415
  }
421
416
  const data = await parseBody(output.body, context);
422
417
  let contents = {};
423
- contents = de_DeleteRepositoryPolicyResponse(data, context);
418
+ contents = (0, smithy_client_1._json)(data);
424
419
  const response = {
425
420
  $metadata: deserializeMetadata(output),
426
421
  ...contents,
427
422
  };
428
- return Promise.resolve(response);
423
+ return response;
429
424
  };
430
425
  exports.de_DeleteRepositoryPolicyCommand = de_DeleteRepositoryPolicyCommand;
431
426
  const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
@@ -452,10 +447,9 @@ const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
452
447
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
453
448
  default:
454
449
  const parsedBody = parsedOutput.body;
455
- (0, smithy_client_1.throwDefaultError)({
450
+ return throwDefaultError({
456
451
  output,
457
452
  parsedBody,
458
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
459
453
  errorCode,
460
454
  });
461
455
  }
@@ -471,7 +465,7 @@ const de_DescribeImagesCommand = async (output, context) => {
471
465
  $metadata: deserializeMetadata(output),
472
466
  ...contents,
473
467
  };
474
- return Promise.resolve(response);
468
+ return response;
475
469
  };
476
470
  exports.de_DescribeImagesCommand = de_DescribeImagesCommand;
477
471
  const de_DescribeImagesCommandError = async (output, context) => {
@@ -498,10 +492,9 @@ const de_DescribeImagesCommandError = async (output, context) => {
498
492
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
499
493
  default:
500
494
  const parsedBody = parsedOutput.body;
501
- (0, smithy_client_1.throwDefaultError)({
495
+ return throwDefaultError({
502
496
  output,
503
497
  parsedBody,
504
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
505
498
  errorCode,
506
499
  });
507
500
  }
@@ -517,7 +510,7 @@ const de_DescribeImageTagsCommand = async (output, context) => {
517
510
  $metadata: deserializeMetadata(output),
518
511
  ...contents,
519
512
  };
520
- return Promise.resolve(response);
513
+ return response;
521
514
  };
522
515
  exports.de_DescribeImageTagsCommand = de_DescribeImageTagsCommand;
523
516
  const de_DescribeImageTagsCommandError = async (output, context) => {
@@ -541,10 +534,9 @@ const de_DescribeImageTagsCommandError = async (output, context) => {
541
534
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
542
535
  default:
543
536
  const parsedBody = parsedOutput.body;
544
- (0, smithy_client_1.throwDefaultError)({
537
+ return throwDefaultError({
545
538
  output,
546
539
  parsedBody,
547
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
548
540
  errorCode,
549
541
  });
550
542
  }
@@ -555,12 +547,12 @@ const de_DescribeRegistriesCommand = async (output, context) => {
555
547
  }
556
548
  const data = await parseBody(output.body, context);
557
549
  let contents = {};
558
- contents = de_DescribeRegistriesResponse(data, context);
550
+ contents = (0, smithy_client_1._json)(data);
559
551
  const response = {
560
552
  $metadata: deserializeMetadata(output),
561
553
  ...contents,
562
554
  };
563
- return Promise.resolve(response);
555
+ return response;
564
556
  };
565
557
  exports.de_DescribeRegistriesCommand = de_DescribeRegistriesCommand;
566
558
  const de_DescribeRegistriesCommandError = async (output, context) => {
@@ -581,10 +573,9 @@ const de_DescribeRegistriesCommandError = async (output, context) => {
581
573
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
582
574
  default:
583
575
  const parsedBody = parsedOutput.body;
584
- (0, smithy_client_1.throwDefaultError)({
576
+ return throwDefaultError({
585
577
  output,
586
578
  parsedBody,
587
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
588
579
  errorCode,
589
580
  });
590
581
  }
@@ -600,7 +591,7 @@ const de_DescribeRepositoriesCommand = async (output, context) => {
600
591
  $metadata: deserializeMetadata(output),
601
592
  ...contents,
602
593
  };
603
- return Promise.resolve(response);
594
+ return response;
604
595
  };
605
596
  exports.de_DescribeRepositoriesCommand = de_DescribeRepositoriesCommand;
606
597
  const de_DescribeRepositoriesCommandError = async (output, context) => {
@@ -624,10 +615,9 @@ const de_DescribeRepositoriesCommandError = async (output, context) => {
624
615
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
625
616
  default:
626
617
  const parsedBody = parsedOutput.body;
627
- (0, smithy_client_1.throwDefaultError)({
618
+ return throwDefaultError({
628
619
  output,
629
620
  parsedBody,
630
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
631
621
  errorCode,
632
622
  });
633
623
  }
@@ -643,7 +633,7 @@ const de_GetAuthorizationTokenCommand = async (output, context) => {
643
633
  $metadata: deserializeMetadata(output),
644
634
  ...contents,
645
635
  };
646
- return Promise.resolve(response);
636
+ return response;
647
637
  };
648
638
  exports.de_GetAuthorizationTokenCommand = de_GetAuthorizationTokenCommand;
649
639
  const de_GetAuthorizationTokenCommandError = async (output, context) => {
@@ -664,10 +654,9 @@ const de_GetAuthorizationTokenCommandError = async (output, context) => {
664
654
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
665
655
  default:
666
656
  const parsedBody = parsedOutput.body;
667
- (0, smithy_client_1.throwDefaultError)({
657
+ return throwDefaultError({
668
658
  output,
669
659
  parsedBody,
670
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
671
660
  errorCode,
672
661
  });
673
662
  }
@@ -678,12 +667,12 @@ const de_GetRegistryCatalogDataCommand = async (output, context) => {
678
667
  }
679
668
  const data = await parseBody(output.body, context);
680
669
  let contents = {};
681
- contents = de_GetRegistryCatalogDataResponse(data, context);
670
+ contents = (0, smithy_client_1._json)(data);
682
671
  const response = {
683
672
  $metadata: deserializeMetadata(output),
684
673
  ...contents,
685
674
  };
686
- return Promise.resolve(response);
675
+ return response;
687
676
  };
688
677
  exports.de_GetRegistryCatalogDataCommand = de_GetRegistryCatalogDataCommand;
689
678
  const de_GetRegistryCatalogDataCommandError = async (output, context) => {
@@ -701,10 +690,9 @@ const de_GetRegistryCatalogDataCommandError = async (output, context) => {
701
690
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
702
691
  default:
703
692
  const parsedBody = parsedOutput.body;
704
- (0, smithy_client_1.throwDefaultError)({
693
+ return throwDefaultError({
705
694
  output,
706
695
  parsedBody,
707
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
708
696
  errorCode,
709
697
  });
710
698
  }
@@ -715,12 +703,12 @@ const de_GetRepositoryCatalogDataCommand = async (output, context) => {
715
703
  }
716
704
  const data = await parseBody(output.body, context);
717
705
  let contents = {};
718
- contents = de_GetRepositoryCatalogDataResponse(data, context);
706
+ contents = (0, smithy_client_1._json)(data);
719
707
  const response = {
720
708
  $metadata: deserializeMetadata(output),
721
709
  ...contents,
722
710
  };
723
- return Promise.resolve(response);
711
+ return response;
724
712
  };
725
713
  exports.de_GetRepositoryCatalogDataCommand = de_GetRepositoryCatalogDataCommand;
726
714
  const de_GetRepositoryCatalogDataCommandError = async (output, context) => {
@@ -747,10 +735,9 @@ const de_GetRepositoryCatalogDataCommandError = async (output, context) => {
747
735
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
748
736
  default:
749
737
  const parsedBody = parsedOutput.body;
750
- (0, smithy_client_1.throwDefaultError)({
738
+ return throwDefaultError({
751
739
  output,
752
740
  parsedBody,
753
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
754
741
  errorCode,
755
742
  });
756
743
  }
@@ -761,12 +748,12 @@ const de_GetRepositoryPolicyCommand = async (output, context) => {
761
748
  }
762
749
  const data = await parseBody(output.body, context);
763
750
  let contents = {};
764
- contents = de_GetRepositoryPolicyResponse(data, context);
751
+ contents = (0, smithy_client_1._json)(data);
765
752
  const response = {
766
753
  $metadata: deserializeMetadata(output),
767
754
  ...contents,
768
755
  };
769
- return Promise.resolve(response);
756
+ return response;
770
757
  };
771
758
  exports.de_GetRepositoryPolicyCommand = de_GetRepositoryPolicyCommand;
772
759
  const de_GetRepositoryPolicyCommandError = async (output, context) => {
@@ -793,10 +780,9 @@ const de_GetRepositoryPolicyCommandError = async (output, context) => {
793
780
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
794
781
  default:
795
782
  const parsedBody = parsedOutput.body;
796
- (0, smithy_client_1.throwDefaultError)({
783
+ return throwDefaultError({
797
784
  output,
798
785
  parsedBody,
799
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
800
786
  errorCode,
801
787
  });
802
788
  }
@@ -807,12 +793,12 @@ const de_InitiateLayerUploadCommand = async (output, context) => {
807
793
  }
808
794
  const data = await parseBody(output.body, context);
809
795
  let contents = {};
810
- contents = de_InitiateLayerUploadResponse(data, context);
796
+ contents = (0, smithy_client_1._json)(data);
811
797
  const response = {
812
798
  $metadata: deserializeMetadata(output),
813
799
  ...contents,
814
800
  };
815
- return Promise.resolve(response);
801
+ return response;
816
802
  };
817
803
  exports.de_InitiateLayerUploadCommand = de_InitiateLayerUploadCommand;
818
804
  const de_InitiateLayerUploadCommandError = async (output, context) => {
@@ -839,10 +825,9 @@ const de_InitiateLayerUploadCommandError = async (output, context) => {
839
825
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
840
826
  default:
841
827
  const parsedBody = parsedOutput.body;
842
- (0, smithy_client_1.throwDefaultError)({
828
+ return throwDefaultError({
843
829
  output,
844
830
  parsedBody,
845
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
846
831
  errorCode,
847
832
  });
848
833
  }
@@ -853,12 +838,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
853
838
  }
854
839
  const data = await parseBody(output.body, context);
855
840
  let contents = {};
856
- contents = de_ListTagsForResourceResponse(data, context);
841
+ contents = (0, smithy_client_1._json)(data);
857
842
  const response = {
858
843
  $metadata: deserializeMetadata(output),
859
844
  ...contents,
860
845
  };
861
- return Promise.resolve(response);
846
+ return response;
862
847
  };
863
848
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
864
849
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -882,10 +867,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
882
867
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
883
868
  default:
884
869
  const parsedBody = parsedOutput.body;
885
- (0, smithy_client_1.throwDefaultError)({
870
+ return throwDefaultError({
886
871
  output,
887
872
  parsedBody,
888
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
889
873
  errorCode,
890
874
  });
891
875
  }
@@ -896,12 +880,12 @@ const de_PutImageCommand = async (output, context) => {
896
880
  }
897
881
  const data = await parseBody(output.body, context);
898
882
  let contents = {};
899
- contents = de_PutImageResponse(data, context);
883
+ contents = (0, smithy_client_1._json)(data);
900
884
  const response = {
901
885
  $metadata: deserializeMetadata(output),
902
886
  ...contents,
903
887
  };
904
- return Promise.resolve(response);
888
+ return response;
905
889
  };
906
890
  exports.de_PutImageCommand = de_PutImageCommand;
907
891
  const de_PutImageCommandError = async (output, context) => {
@@ -946,10 +930,9 @@ const de_PutImageCommandError = async (output, context) => {
946
930
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
947
931
  default:
948
932
  const parsedBody = parsedOutput.body;
949
- (0, smithy_client_1.throwDefaultError)({
933
+ return throwDefaultError({
950
934
  output,
951
935
  parsedBody,
952
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
953
936
  errorCode,
954
937
  });
955
938
  }
@@ -960,12 +943,12 @@ const de_PutRegistryCatalogDataCommand = async (output, context) => {
960
943
  }
961
944
  const data = await parseBody(output.body, context);
962
945
  let contents = {};
963
- contents = de_PutRegistryCatalogDataResponse(data, context);
946
+ contents = (0, smithy_client_1._json)(data);
964
947
  const response = {
965
948
  $metadata: deserializeMetadata(output),
966
949
  ...contents,
967
950
  };
968
- return Promise.resolve(response);
951
+ return response;
969
952
  };
970
953
  exports.de_PutRegistryCatalogDataCommand = de_PutRegistryCatalogDataCommand;
971
954
  const de_PutRegistryCatalogDataCommandError = async (output, context) => {
@@ -986,10 +969,9 @@ const de_PutRegistryCatalogDataCommandError = async (output, context) => {
986
969
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
987
970
  default:
988
971
  const parsedBody = parsedOutput.body;
989
- (0, smithy_client_1.throwDefaultError)({
972
+ return throwDefaultError({
990
973
  output,
991
974
  parsedBody,
992
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
993
975
  errorCode,
994
976
  });
995
977
  }
@@ -1000,12 +982,12 @@ const de_PutRepositoryCatalogDataCommand = async (output, context) => {
1000
982
  }
1001
983
  const data = await parseBody(output.body, context);
1002
984
  let contents = {};
1003
- contents = de_PutRepositoryCatalogDataResponse(data, context);
985
+ contents = (0, smithy_client_1._json)(data);
1004
986
  const response = {
1005
987
  $metadata: deserializeMetadata(output),
1006
988
  ...contents,
1007
989
  };
1008
- return Promise.resolve(response);
990
+ return response;
1009
991
  };
1010
992
  exports.de_PutRepositoryCatalogDataCommand = de_PutRepositoryCatalogDataCommand;
1011
993
  const de_PutRepositoryCatalogDataCommandError = async (output, context) => {
@@ -1029,10 +1011,9 @@ const de_PutRepositoryCatalogDataCommandError = async (output, context) => {
1029
1011
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
1030
1012
  default:
1031
1013
  const parsedBody = parsedOutput.body;
1032
- (0, smithy_client_1.throwDefaultError)({
1014
+ return throwDefaultError({
1033
1015
  output,
1034
1016
  parsedBody,
1035
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
1036
1017
  errorCode,
1037
1018
  });
1038
1019
  }
@@ -1043,12 +1024,12 @@ const de_SetRepositoryPolicyCommand = async (output, context) => {
1043
1024
  }
1044
1025
  const data = await parseBody(output.body, context);
1045
1026
  let contents = {};
1046
- contents = de_SetRepositoryPolicyResponse(data, context);
1027
+ contents = (0, smithy_client_1._json)(data);
1047
1028
  const response = {
1048
1029
  $metadata: deserializeMetadata(output),
1049
1030
  ...contents,
1050
1031
  };
1051
- return Promise.resolve(response);
1032
+ return response;
1052
1033
  };
1053
1034
  exports.de_SetRepositoryPolicyCommand = de_SetRepositoryPolicyCommand;
1054
1035
  const de_SetRepositoryPolicyCommandError = async (output, context) => {
@@ -1072,10 +1053,9 @@ const de_SetRepositoryPolicyCommandError = async (output, context) => {
1072
1053
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
1073
1054
  default:
1074
1055
  const parsedBody = parsedOutput.body;
1075
- (0, smithy_client_1.throwDefaultError)({
1056
+ return throwDefaultError({
1076
1057
  output,
1077
1058
  parsedBody,
1078
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
1079
1059
  errorCode,
1080
1060
  });
1081
1061
  }
@@ -1086,12 +1066,12 @@ const de_TagResourceCommand = async (output, context) => {
1086
1066
  }
1087
1067
  const data = await parseBody(output.body, context);
1088
1068
  let contents = {};
1089
- contents = de_TagResourceResponse(data, context);
1069
+ contents = (0, smithy_client_1._json)(data);
1090
1070
  const response = {
1091
1071
  $metadata: deserializeMetadata(output),
1092
1072
  ...contents,
1093
1073
  };
1094
- return Promise.resolve(response);
1074
+ return response;
1095
1075
  };
1096
1076
  exports.de_TagResourceCommand = de_TagResourceCommand;
1097
1077
  const de_TagResourceCommandError = async (output, context) => {
@@ -1121,10 +1101,9 @@ const de_TagResourceCommandError = async (output, context) => {
1121
1101
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
1122
1102
  default:
1123
1103
  const parsedBody = parsedOutput.body;
1124
- (0, smithy_client_1.throwDefaultError)({
1104
+ return throwDefaultError({
1125
1105
  output,
1126
1106
  parsedBody,
1127
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
1128
1107
  errorCode,
1129
1108
  });
1130
1109
  }
@@ -1135,12 +1114,12 @@ const de_UntagResourceCommand = async (output, context) => {
1135
1114
  }
1136
1115
  const data = await parseBody(output.body, context);
1137
1116
  let contents = {};
1138
- contents = de_UntagResourceResponse(data, context);
1117
+ contents = (0, smithy_client_1._json)(data);
1139
1118
  const response = {
1140
1119
  $metadata: deserializeMetadata(output),
1141
1120
  ...contents,
1142
1121
  };
1143
- return Promise.resolve(response);
1122
+ return response;
1144
1123
  };
1145
1124
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1146
1125
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1170,10 +1149,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1170
1149
  throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
1171
1150
  default:
1172
1151
  const parsedBody = parsedOutput.body;
1173
- (0, smithy_client_1.throwDefaultError)({
1152
+ return throwDefaultError({
1174
1153
  output,
1175
1154
  parsedBody,
1176
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
1177
1155
  errorCode,
1178
1156
  });
1179
1157
  }
@@ -1184,12 +1162,12 @@ const de_UploadLayerPartCommand = async (output, context) => {
1184
1162
  }
1185
1163
  const data = await parseBody(output.body, context);
1186
1164
  let contents = {};
1187
- contents = de_UploadLayerPartResponse(data, context);
1165
+ contents = (0, smithy_client_1._json)(data);
1188
1166
  const response = {
1189
1167
  $metadata: deserializeMetadata(output),
1190
1168
  ...contents,
1191
1169
  };
1192
- return Promise.resolve(response);
1170
+ return response;
1193
1171
  };
1194
1172
  exports.de_UploadLayerPartCommand = de_UploadLayerPartCommand;
1195
1173
  const de_UploadLayerPartCommandError = async (output, context) => {
@@ -1225,17 +1203,16 @@ const de_UploadLayerPartCommandError = async (output, context) => {
1225
1203
  throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
1226
1204
  default:
1227
1205
  const parsedBody = parsedOutput.body;
1228
- (0, smithy_client_1.throwDefaultError)({
1206
+ return throwDefaultError({
1229
1207
  output,
1230
1208
  parsedBody,
1231
- exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
1232
1209
  errorCode,
1233
1210
  });
1234
1211
  }
1235
1212
  };
1236
1213
  const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
1237
1214
  const body = parsedOutput.body;
1238
- const deserialized = de_EmptyUploadException(body, context);
1215
+ const deserialized = (0, smithy_client_1._json)(body);
1239
1216
  const exception = new models_0_1.EmptyUploadException({
1240
1217
  $metadata: deserializeMetadata(parsedOutput),
1241
1218
  ...deserialized,
@@ -1244,7 +1221,7 @@ const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
1244
1221
  };
1245
1222
  const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1246
1223
  const body = parsedOutput.body;
1247
- const deserialized = de_ImageAlreadyExistsException(body, context);
1224
+ const deserialized = (0, smithy_client_1._json)(body);
1248
1225
  const exception = new models_0_1.ImageAlreadyExistsException({
1249
1226
  $metadata: deserializeMetadata(parsedOutput),
1250
1227
  ...deserialized,
@@ -1253,7 +1230,7 @@ const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1253
1230
  };
1254
1231
  const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) => {
1255
1232
  const body = parsedOutput.body;
1256
- const deserialized = de_ImageDigestDoesNotMatchException(body, context);
1233
+ const deserialized = (0, smithy_client_1._json)(body);
1257
1234
  const exception = new models_0_1.ImageDigestDoesNotMatchException({
1258
1235
  $metadata: deserializeMetadata(parsedOutput),
1259
1236
  ...deserialized,
@@ -1262,7 +1239,7 @@ const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) =>
1262
1239
  };
1263
1240
  const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
1264
1241
  const body = parsedOutput.body;
1265
- const deserialized = de_ImageNotFoundException(body, context);
1242
+ const deserialized = (0, smithy_client_1._json)(body);
1266
1243
  const exception = new models_0_1.ImageNotFoundException({
1267
1244
  $metadata: deserializeMetadata(parsedOutput),
1268
1245
  ...deserialized,
@@ -1271,7 +1248,7 @@ const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
1271
1248
  };
1272
1249
  const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1273
1250
  const body = parsedOutput.body;
1274
- const deserialized = de_ImageTagAlreadyExistsException(body, context);
1251
+ const deserialized = (0, smithy_client_1._json)(body);
1275
1252
  const exception = new models_0_1.ImageTagAlreadyExistsException({
1276
1253
  $metadata: deserializeMetadata(parsedOutput),
1277
1254
  ...deserialized,
@@ -1280,7 +1257,7 @@ const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1280
1257
  };
1281
1258
  const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
1282
1259
  const body = parsedOutput.body;
1283
- const deserialized = de_InvalidLayerException(body, context);
1260
+ const deserialized = (0, smithy_client_1._json)(body);
1284
1261
  const exception = new models_0_1.InvalidLayerException({
1285
1262
  $metadata: deserializeMetadata(parsedOutput),
1286
1263
  ...deserialized,
@@ -1289,7 +1266,7 @@ const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
1289
1266
  };
1290
1267
  const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
1291
1268
  const body = parsedOutput.body;
1292
- const deserialized = de_InvalidLayerPartException(body, context);
1269
+ const deserialized = (0, smithy_client_1._json)(body);
1293
1270
  const exception = new models_0_1.InvalidLayerPartException({
1294
1271
  $metadata: deserializeMetadata(parsedOutput),
1295
1272
  ...deserialized,
@@ -1298,7 +1275,7 @@ const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
1298
1275
  };
1299
1276
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1300
1277
  const body = parsedOutput.body;
1301
- const deserialized = de_InvalidParameterException(body, context);
1278
+ const deserialized = (0, smithy_client_1._json)(body);
1302
1279
  const exception = new models_0_1.InvalidParameterException({
1303
1280
  $metadata: deserializeMetadata(parsedOutput),
1304
1281
  ...deserialized,
@@ -1307,7 +1284,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1307
1284
  };
1308
1285
  const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
1309
1286
  const body = parsedOutput.body;
1310
- const deserialized = de_InvalidTagParameterException(body, context);
1287
+ const deserialized = (0, smithy_client_1._json)(body);
1311
1288
  const exception = new models_0_1.InvalidTagParameterException({
1312
1289
  $metadata: deserializeMetadata(parsedOutput),
1313
1290
  ...deserialized,
@@ -1316,7 +1293,7 @@ const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
1316
1293
  };
1317
1294
  const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1318
1295
  const body = parsedOutput.body;
1319
- const deserialized = de_LayerAlreadyExistsException(body, context);
1296
+ const deserialized = (0, smithy_client_1._json)(body);
1320
1297
  const exception = new models_0_1.LayerAlreadyExistsException({
1321
1298
  $metadata: deserializeMetadata(parsedOutput),
1322
1299
  ...deserialized,
@@ -1325,7 +1302,7 @@ const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1325
1302
  };
1326
1303
  const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
1327
1304
  const body = parsedOutput.body;
1328
- const deserialized = de_LayerPartTooSmallException(body, context);
1305
+ const deserialized = (0, smithy_client_1._json)(body);
1329
1306
  const exception = new models_0_1.LayerPartTooSmallException({
1330
1307
  $metadata: deserializeMetadata(parsedOutput),
1331
1308
  ...deserialized,
@@ -1334,7 +1311,7 @@ const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
1334
1311
  };
1335
1312
  const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
1336
1313
  const body = parsedOutput.body;
1337
- const deserialized = de_LayersNotFoundException(body, context);
1314
+ const deserialized = (0, smithy_client_1._json)(body);
1338
1315
  const exception = new models_0_1.LayersNotFoundException({
1339
1316
  $metadata: deserializeMetadata(parsedOutput),
1340
1317
  ...deserialized,
@@ -1343,7 +1320,7 @@ const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
1343
1320
  };
1344
1321
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1345
1322
  const body = parsedOutput.body;
1346
- const deserialized = de_LimitExceededException(body, context);
1323
+ const deserialized = (0, smithy_client_1._json)(body);
1347
1324
  const exception = new models_0_1.LimitExceededException({
1348
1325
  $metadata: deserializeMetadata(parsedOutput),
1349
1326
  ...deserialized,
@@ -1352,7 +1329,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1352
1329
  };
1353
1330
  const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) => {
1354
1331
  const body = parsedOutput.body;
1355
- const deserialized = de_ReferencedImagesNotFoundException(body, context);
1332
+ const deserialized = (0, smithy_client_1._json)(body);
1356
1333
  const exception = new models_0_1.ReferencedImagesNotFoundException({
1357
1334
  $metadata: deserializeMetadata(parsedOutput),
1358
1335
  ...deserialized,
@@ -1361,7 +1338,7 @@ const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) =>
1361
1338
  };
1362
1339
  const de_RegistryNotFoundExceptionRes = async (parsedOutput, context) => {
1363
1340
  const body = parsedOutput.body;
1364
- const deserialized = de_RegistryNotFoundException(body, context);
1341
+ const deserialized = (0, smithy_client_1._json)(body);
1365
1342
  const exception = new models_0_1.RegistryNotFoundException({
1366
1343
  $metadata: deserializeMetadata(parsedOutput),
1367
1344
  ...deserialized,
@@ -1370,7 +1347,7 @@ const de_RegistryNotFoundExceptionRes = async (parsedOutput, context) => {
1370
1347
  };
1371
1348
  const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1372
1349
  const body = parsedOutput.body;
1373
- const deserialized = de_RepositoryAlreadyExistsException(body, context);
1350
+ const deserialized = (0, smithy_client_1._json)(body);
1374
1351
  const exception = new models_0_1.RepositoryAlreadyExistsException({
1375
1352
  $metadata: deserializeMetadata(parsedOutput),
1376
1353
  ...deserialized,
@@ -1379,7 +1356,7 @@ const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) =>
1379
1356
  };
1380
1357
  const de_RepositoryCatalogDataNotFoundExceptionRes = async (parsedOutput, context) => {
1381
1358
  const body = parsedOutput.body;
1382
- const deserialized = de_RepositoryCatalogDataNotFoundException(body, context);
1359
+ const deserialized = (0, smithy_client_1._json)(body);
1383
1360
  const exception = new models_0_1.RepositoryCatalogDataNotFoundException({
1384
1361
  $metadata: deserializeMetadata(parsedOutput),
1385
1362
  ...deserialized,
@@ -1388,7 +1365,7 @@ const de_RepositoryCatalogDataNotFoundExceptionRes = async (parsedOutput, contex
1388
1365
  };
1389
1366
  const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
1390
1367
  const body = parsedOutput.body;
1391
- const deserialized = de_RepositoryNotEmptyException(body, context);
1368
+ const deserialized = (0, smithy_client_1._json)(body);
1392
1369
  const exception = new models_0_1.RepositoryNotEmptyException({
1393
1370
  $metadata: deserializeMetadata(parsedOutput),
1394
1371
  ...deserialized,
@@ -1397,7 +1374,7 @@ const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
1397
1374
  };
1398
1375
  const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
1399
1376
  const body = parsedOutput.body;
1400
- const deserialized = de_RepositoryNotFoundException(body, context);
1377
+ const deserialized = (0, smithy_client_1._json)(body);
1401
1378
  const exception = new models_0_1.RepositoryNotFoundException({
1402
1379
  $metadata: deserializeMetadata(parsedOutput),
1403
1380
  ...deserialized,
@@ -1406,7 +1383,7 @@ const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
1406
1383
  };
1407
1384
  const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
1408
1385
  const body = parsedOutput.body;
1409
- const deserialized = de_RepositoryPolicyNotFoundException(body, context);
1386
+ const deserialized = (0, smithy_client_1._json)(body);
1410
1387
  const exception = new models_0_1.RepositoryPolicyNotFoundException({
1411
1388
  $metadata: deserializeMetadata(parsedOutput),
1412
1389
  ...deserialized,
@@ -1415,7 +1392,7 @@ const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) =>
1415
1392
  };
1416
1393
  const de_ServerExceptionRes = async (parsedOutput, context) => {
1417
1394
  const body = parsedOutput.body;
1418
- const deserialized = de_ServerException(body, context);
1395
+ const deserialized = (0, smithy_client_1._json)(body);
1419
1396
  const exception = new models_0_1.ServerException({
1420
1397
  $metadata: deserializeMetadata(parsedOutput),
1421
1398
  ...deserialized,
@@ -1424,7 +1401,7 @@ const de_ServerExceptionRes = async (parsedOutput, context) => {
1424
1401
  };
1425
1402
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1426
1403
  const body = parsedOutput.body;
1427
- const deserialized = de_TooManyTagsException(body, context);
1404
+ const deserialized = (0, smithy_client_1._json)(body);
1428
1405
  const exception = new models_0_1.TooManyTagsException({
1429
1406
  $metadata: deserializeMetadata(parsedOutput),
1430
1407
  ...deserialized,
@@ -1433,7 +1410,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1433
1410
  };
1434
1411
  const de_UnsupportedCommandExceptionRes = async (parsedOutput, context) => {
1435
1412
  const body = parsedOutput.body;
1436
- const deserialized = de_UnsupportedCommandException(body, context);
1413
+ const deserialized = (0, smithy_client_1._json)(body);
1437
1414
  const exception = new models_0_1.UnsupportedCommandException({
1438
1415
  $metadata: deserializeMetadata(parsedOutput),
1439
1416
  ...deserialized,
@@ -1442,770 +1419,148 @@ const de_UnsupportedCommandExceptionRes = async (parsedOutput, context) => {
1442
1419
  };
1443
1420
  const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
1444
1421
  const body = parsedOutput.body;
1445
- const deserialized = de_UploadNotFoundException(body, context);
1422
+ const deserialized = (0, smithy_client_1._json)(body);
1446
1423
  const exception = new models_0_1.UploadNotFoundException({
1447
1424
  $metadata: deserializeMetadata(parsedOutput),
1448
1425
  ...deserialized,
1449
1426
  });
1450
1427
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1451
1428
  };
1452
- const se_ArchitectureList = (input, context) => {
1453
- return input
1454
- .filter((e) => e != null)
1455
- .map((entry) => {
1456
- return entry;
1457
- });
1458
- };
1459
- const se_BatchCheckLayerAvailabilityRequest = (input, context) => {
1460
- return {
1461
- ...(input.layerDigests != null && {
1462
- layerDigests: se_BatchedOperationLayerDigestList(input.layerDigests, context),
1463
- }),
1464
- ...(input.registryId != null && { registryId: input.registryId }),
1465
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1466
- };
1467
- };
1468
- const se_BatchDeleteImageRequest = (input, context) => {
1469
- return {
1470
- ...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
1471
- ...(input.registryId != null && { registryId: input.registryId }),
1472
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1473
- };
1474
- };
1475
- const se_BatchedOperationLayerDigestList = (input, context) => {
1476
- return input
1477
- .filter((e) => e != null)
1478
- .map((entry) => {
1479
- return entry;
1480
- });
1481
- };
1482
- const se_CompleteLayerUploadRequest = (input, context) => {
1483
- return {
1484
- ...(input.layerDigests != null && { layerDigests: se_LayerDigestList(input.layerDigests, context) }),
1485
- ...(input.registryId != null && { registryId: input.registryId }),
1486
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1487
- ...(input.uploadId != null && { uploadId: input.uploadId }),
1488
- };
1489
- };
1490
1429
  const se_CreateRepositoryRequest = (input, context) => {
1491
- return {
1492
- ...(input.catalogData != null && { catalogData: se_RepositoryCatalogDataInput(input.catalogData, context) }),
1493
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1494
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
1495
- };
1496
- };
1497
- const se_DeleteRepositoryPolicyRequest = (input, context) => {
1498
- return {
1499
- ...(input.registryId != null && { registryId: input.registryId }),
1500
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1501
- };
1502
- };
1503
- const se_DeleteRepositoryRequest = (input, context) => {
1504
- return {
1505
- ...(input.force != null && { force: input.force }),
1506
- ...(input.registryId != null && { registryId: input.registryId }),
1507
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1508
- };
1509
- };
1510
- const se_DescribeImagesRequest = (input, context) => {
1511
- return {
1512
- ...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
1513
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1514
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1515
- ...(input.registryId != null && { registryId: input.registryId }),
1516
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1517
- };
1518
- };
1519
- const se_DescribeImageTagsRequest = (input, context) => {
1520
- return {
1521
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1522
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1523
- ...(input.registryId != null && { registryId: input.registryId }),
1524
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1525
- };
1526
- };
1527
- const se_DescribeRegistriesRequest = (input, context) => {
1528
- return {
1529
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1530
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1531
- };
1532
- };
1533
- const se_DescribeRepositoriesRequest = (input, context) => {
1534
- return {
1535
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1536
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1537
- ...(input.registryId != null && { registryId: input.registryId }),
1538
- ...(input.repositoryNames != null && { repositoryNames: se_RepositoryNameList(input.repositoryNames, context) }),
1539
- };
1540
- };
1541
- const se_GetAuthorizationTokenRequest = (input, context) => {
1542
- return {};
1543
- };
1544
- const se_GetRegistryCatalogDataRequest = (input, context) => {
1545
- return {};
1546
- };
1547
- const se_GetRepositoryCatalogDataRequest = (input, context) => {
1548
- return {
1549
- ...(input.registryId != null && { registryId: input.registryId }),
1550
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1551
- };
1552
- };
1553
- const se_GetRepositoryPolicyRequest = (input, context) => {
1554
- return {
1555
- ...(input.registryId != null && { registryId: input.registryId }),
1556
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1557
- };
1558
- };
1559
- const se_ImageIdentifier = (input, context) => {
1560
- return {
1561
- ...(input.imageDigest != null && { imageDigest: input.imageDigest }),
1562
- ...(input.imageTag != null && { imageTag: input.imageTag }),
1563
- };
1564
- };
1565
- const se_ImageIdentifierList = (input, context) => {
1566
- return input
1567
- .filter((e) => e != null)
1568
- .map((entry) => {
1569
- return se_ImageIdentifier(entry, context);
1430
+ return (0, smithy_client_1.take)(input, {
1431
+ catalogData: (_) => se_RepositoryCatalogDataInput(_, context),
1432
+ repositoryName: [],
1433
+ tags: smithy_client_1._json,
1570
1434
  });
1571
1435
  };
1572
- const se_InitiateLayerUploadRequest = (input, context) => {
1573
- return {
1574
- ...(input.registryId != null && { registryId: input.registryId }),
1575
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1576
- };
1577
- };
1578
- const se_LayerDigestList = (input, context) => {
1579
- return input
1580
- .filter((e) => e != null)
1581
- .map((entry) => {
1582
- return entry;
1583
- });
1584
- };
1585
- const se_ListTagsForResourceRequest = (input, context) => {
1586
- return {
1587
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
1588
- };
1589
- };
1590
- const se_OperatingSystemList = (input, context) => {
1591
- return input
1592
- .filter((e) => e != null)
1593
- .map((entry) => {
1594
- return entry;
1595
- });
1596
- };
1597
- const se_PutImageRequest = (input, context) => {
1598
- return {
1599
- ...(input.imageDigest != null && { imageDigest: input.imageDigest }),
1600
- ...(input.imageManifest != null && { imageManifest: input.imageManifest }),
1601
- ...(input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType }),
1602
- ...(input.imageTag != null && { imageTag: input.imageTag }),
1603
- ...(input.registryId != null && { registryId: input.registryId }),
1604
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1605
- };
1606
- };
1607
- const se_PutRegistryCatalogDataRequest = (input, context) => {
1608
- return {
1609
- ...(input.displayName != null && { displayName: input.displayName }),
1610
- };
1611
- };
1612
1436
  const se_PutRepositoryCatalogDataRequest = (input, context) => {
1613
- return {
1614
- ...(input.catalogData != null && { catalogData: se_RepositoryCatalogDataInput(input.catalogData, context) }),
1615
- ...(input.registryId != null && { registryId: input.registryId }),
1616
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1617
- };
1618
- };
1619
- const se_RepositoryCatalogDataInput = (input, context) => {
1620
- return {
1621
- ...(input.aboutText != null && { aboutText: input.aboutText }),
1622
- ...(input.architectures != null && { architectures: se_ArchitectureList(input.architectures, context) }),
1623
- ...(input.description != null && { description: input.description }),
1624
- ...(input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) }),
1625
- ...(input.operatingSystems != null && {
1626
- operatingSystems: se_OperatingSystemList(input.operatingSystems, context),
1627
- }),
1628
- ...(input.usageText != null && { usageText: input.usageText }),
1629
- };
1630
- };
1631
- const se_RepositoryNameList = (input, context) => {
1632
- return input
1633
- .filter((e) => e != null)
1634
- .map((entry) => {
1635
- return entry;
1437
+ return (0, smithy_client_1.take)(input, {
1438
+ catalogData: (_) => se_RepositoryCatalogDataInput(_, context),
1439
+ registryId: [],
1440
+ repositoryName: [],
1636
1441
  });
1637
1442
  };
1638
- const se_SetRepositoryPolicyRequest = (input, context) => {
1639
- return {
1640
- ...(input.force != null && { force: input.force }),
1641
- ...(input.policyText != null && { policyText: input.policyText }),
1642
- ...(input.registryId != null && { registryId: input.registryId }),
1643
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1644
- };
1645
- };
1646
- const se_Tag = (input, context) => {
1647
- return {
1648
- ...(input.Key != null && { Key: input.Key }),
1649
- ...(input.Value != null && { Value: input.Value }),
1650
- };
1651
- };
1652
- const se_TagKeyList = (input, context) => {
1653
- return input
1654
- .filter((e) => e != null)
1655
- .map((entry) => {
1656
- return entry;
1657
- });
1658
- };
1659
- const se_TagList = (input, context) => {
1660
- return input
1661
- .filter((e) => e != null)
1662
- .map((entry) => {
1663
- return se_Tag(entry, context);
1443
+ const se_RepositoryCatalogDataInput = (input, context) => {
1444
+ return (0, smithy_client_1.take)(input, {
1445
+ aboutText: [],
1446
+ architectures: smithy_client_1._json,
1447
+ description: [],
1448
+ logoImageBlob: context.base64Encoder,
1449
+ operatingSystems: smithy_client_1._json,
1450
+ usageText: [],
1664
1451
  });
1665
1452
  };
1666
- const se_TagResourceRequest = (input, context) => {
1667
- return {
1668
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
1669
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
1670
- };
1671
- };
1672
- const se_UntagResourceRequest = (input, context) => {
1673
- return {
1674
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
1675
- ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
1676
- };
1677
- };
1678
1453
  const se_UploadLayerPartRequest = (input, context) => {
1679
- return {
1680
- ...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
1681
- ...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
1682
- ...(input.partLastByte != null && { partLastByte: input.partLastByte }),
1683
- ...(input.registryId != null && { registryId: input.registryId }),
1684
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
1685
- ...(input.uploadId != null && { uploadId: input.uploadId }),
1686
- };
1687
- };
1688
- const de_ArchitectureList = (output, context) => {
1689
- const retVal = (output || [])
1690
- .filter((e) => e != null)
1691
- .map((entry) => {
1692
- if (entry === null) {
1693
- return null;
1694
- }
1695
- return (0, smithy_client_1.expectString)(entry);
1454
+ return (0, smithy_client_1.take)(input, {
1455
+ layerPartBlob: context.base64Encoder,
1456
+ partFirstByte: [],
1457
+ partLastByte: [],
1458
+ registryId: [],
1459
+ repositoryName: [],
1460
+ uploadId: [],
1696
1461
  });
1697
- return retVal;
1698
1462
  };
1699
1463
  const de_AuthorizationData = (output, context) => {
1700
- return {
1701
- authorizationToken: (0, smithy_client_1.expectString)(output.authorizationToken),
1702
- expiresAt: output.expiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt))) : undefined,
1703
- };
1704
- };
1705
- const de_BatchCheckLayerAvailabilityResponse = (output, context) => {
1706
- return {
1707
- failures: output.failures != null ? de_LayerFailureList(output.failures, context) : undefined,
1708
- layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
1709
- };
1710
- };
1711
- const de_BatchDeleteImageResponse = (output, context) => {
1712
- return {
1713
- failures: output.failures != null ? de_ImageFailureList(output.failures, context) : undefined,
1714
- imageIds: output.imageIds != null ? de_ImageIdentifierList(output.imageIds, context) : undefined,
1715
- };
1716
- };
1717
- const de_CompleteLayerUploadResponse = (output, context) => {
1718
- return {
1719
- layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
1720
- registryId: (0, smithy_client_1.expectString)(output.registryId),
1721
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
1722
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
1723
- };
1464
+ return (0, smithy_client_1.take)(output, {
1465
+ authorizationToken: smithy_client_1.expectString,
1466
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1467
+ });
1724
1468
  };
1725
1469
  const de_CreateRepositoryResponse = (output, context) => {
1726
- return {
1727
- catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
1728
- repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
1729
- };
1730
- };
1731
- const de_DeleteRepositoryPolicyResponse = (output, context) => {
1732
- return {
1733
- policyText: (0, smithy_client_1.expectString)(output.policyText),
1734
- registryId: (0, smithy_client_1.expectString)(output.registryId),
1735
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
1736
- };
1470
+ return (0, smithy_client_1.take)(output, {
1471
+ catalogData: smithy_client_1._json,
1472
+ repository: (_) => de_Repository(_, context),
1473
+ });
1737
1474
  };
1738
1475
  const de_DeleteRepositoryResponse = (output, context) => {
1739
- return {
1740
- repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
1741
- };
1476
+ return (0, smithy_client_1.take)(output, {
1477
+ repository: (_) => de_Repository(_, context),
1478
+ });
1742
1479
  };
1743
1480
  const de_DescribeImagesResponse = (output, context) => {
1744
- return {
1745
- imageDetails: output.imageDetails != null ? de_ImageDetailList(output.imageDetails, context) : undefined,
1746
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1747
- };
1481
+ return (0, smithy_client_1.take)(output, {
1482
+ imageDetails: (_) => de_ImageDetailList(_, context),
1483
+ nextToken: smithy_client_1.expectString,
1484
+ });
1748
1485
  };
1749
1486
  const de_DescribeImageTagsResponse = (output, context) => {
1750
- return {
1751
- imageTagDetails: output.imageTagDetails != null ? de_ImageTagDetailList(output.imageTagDetails, context) : undefined,
1752
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1753
- };
1754
- };
1755
- const de_DescribeRegistriesResponse = (output, context) => {
1756
- return {
1757
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1758
- registries: output.registries != null ? de_RegistryList(output.registries, context) : undefined,
1759
- };
1487
+ return (0, smithy_client_1.take)(output, {
1488
+ imageTagDetails: (_) => de_ImageTagDetailList(_, context),
1489
+ nextToken: smithy_client_1.expectString,
1490
+ });
1760
1491
  };
1761
1492
  const de_DescribeRepositoriesResponse = (output, context) => {
1762
- return {
1763
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1764
- repositories: output.repositories != null ? de_RepositoryList(output.repositories, context) : undefined,
1765
- };
1766
- };
1767
- const de_EmptyUploadException = (output, context) => {
1768
- return {
1769
- message: (0, smithy_client_1.expectString)(output.message),
1770
- };
1493
+ return (0, smithy_client_1.take)(output, {
1494
+ nextToken: smithy_client_1.expectString,
1495
+ repositories: (_) => de_RepositoryList(_, context),
1496
+ });
1771
1497
  };
1772
1498
  const de_GetAuthorizationTokenResponse = (output, context) => {
1773
- return {
1774
- authorizationData: output.authorizationData != null ? de_AuthorizationData(output.authorizationData, context) : undefined,
1775
- };
1776
- };
1777
- const de_GetRegistryCatalogDataResponse = (output, context) => {
1778
- return {
1779
- registryCatalogData: output.registryCatalogData != null ? de_RegistryCatalogData(output.registryCatalogData, context) : undefined,
1780
- };
1781
- };
1782
- const de_GetRepositoryCatalogDataResponse = (output, context) => {
1783
- return {
1784
- catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
1785
- };
1786
- };
1787
- const de_GetRepositoryPolicyResponse = (output, context) => {
1788
- return {
1789
- policyText: (0, smithy_client_1.expectString)(output.policyText),
1790
- registryId: (0, smithy_client_1.expectString)(output.registryId),
1791
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
1792
- };
1793
- };
1794
- const de_Image = (output, context) => {
1795
- return {
1796
- imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
1797
- imageManifest: (0, smithy_client_1.expectString)(output.imageManifest),
1798
- imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
1799
- registryId: (0, smithy_client_1.expectString)(output.registryId),
1800
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
1801
- };
1802
- };
1803
- const de_ImageAlreadyExistsException = (output, context) => {
1804
- return {
1805
- message: (0, smithy_client_1.expectString)(output.message),
1806
- };
1499
+ return (0, smithy_client_1.take)(output, {
1500
+ authorizationData: (_) => de_AuthorizationData(_, context),
1501
+ });
1807
1502
  };
1808
1503
  const de_ImageDetail = (output, context) => {
1809
- return {
1810
- artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
1811
- imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
1812
- imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
1813
- imagePushedAt: output.imagePushedAt != null
1814
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
1815
- : undefined,
1816
- imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
1817
- imageTags: output.imageTags != null ? de_ImageTagList(output.imageTags, context) : undefined,
1818
- registryId: (0, smithy_client_1.expectString)(output.registryId),
1819
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
1820
- };
1504
+ return (0, smithy_client_1.take)(output, {
1505
+ artifactMediaType: smithy_client_1.expectString,
1506
+ imageDigest: smithy_client_1.expectString,
1507
+ imageManifestMediaType: smithy_client_1.expectString,
1508
+ imagePushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1509
+ imageSizeInBytes: smithy_client_1.expectLong,
1510
+ imageTags: smithy_client_1._json,
1511
+ registryId: smithy_client_1.expectString,
1512
+ repositoryName: smithy_client_1.expectString,
1513
+ });
1821
1514
  };
1822
1515
  const de_ImageDetailList = (output, context) => {
1823
1516
  const retVal = (output || [])
1824
1517
  .filter((e) => e != null)
1825
1518
  .map((entry) => {
1826
- if (entry === null) {
1827
- return null;
1828
- }
1829
1519
  return de_ImageDetail(entry, context);
1830
1520
  });
1831
1521
  return retVal;
1832
1522
  };
1833
- const de_ImageDigestDoesNotMatchException = (output, context) => {
1834
- return {
1835
- message: (0, smithy_client_1.expectString)(output.message),
1836
- };
1837
- };
1838
- const de_ImageFailure = (output, context) => {
1839
- return {
1840
- failureCode: (0, smithy_client_1.expectString)(output.failureCode),
1841
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
1842
- imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
1843
- };
1844
- };
1845
- const de_ImageFailureList = (output, context) => {
1846
- const retVal = (output || [])
1847
- .filter((e) => e != null)
1848
- .map((entry) => {
1849
- if (entry === null) {
1850
- return null;
1851
- }
1852
- return de_ImageFailure(entry, context);
1853
- });
1854
- return retVal;
1855
- };
1856
- const de_ImageIdentifier = (output, context) => {
1857
- return {
1858
- imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
1859
- imageTag: (0, smithy_client_1.expectString)(output.imageTag),
1860
- };
1861
- };
1862
- const de_ImageIdentifierList = (output, context) => {
1863
- const retVal = (output || [])
1864
- .filter((e) => e != null)
1865
- .map((entry) => {
1866
- if (entry === null) {
1867
- return null;
1868
- }
1869
- return de_ImageIdentifier(entry, context);
1870
- });
1871
- return retVal;
1872
- };
1873
- const de_ImageNotFoundException = (output, context) => {
1874
- return {
1875
- message: (0, smithy_client_1.expectString)(output.message),
1876
- };
1877
- };
1878
- const de_ImageTagAlreadyExistsException = (output, context) => {
1879
- return {
1880
- message: (0, smithy_client_1.expectString)(output.message),
1881
- };
1882
- };
1883
1523
  const de_ImageTagDetail = (output, context) => {
1884
- return {
1885
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
1886
- imageDetail: output.imageDetail != null ? de_ReferencedImageDetail(output.imageDetail, context) : undefined,
1887
- imageTag: (0, smithy_client_1.expectString)(output.imageTag),
1888
- };
1524
+ return (0, smithy_client_1.take)(output, {
1525
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1526
+ imageDetail: (_) => de_ReferencedImageDetail(_, context),
1527
+ imageTag: smithy_client_1.expectString,
1528
+ });
1889
1529
  };
1890
1530
  const de_ImageTagDetailList = (output, context) => {
1891
1531
  const retVal = (output || [])
1892
1532
  .filter((e) => e != null)
1893
1533
  .map((entry) => {
1894
- if (entry === null) {
1895
- return null;
1896
- }
1897
1534
  return de_ImageTagDetail(entry, context);
1898
1535
  });
1899
1536
  return retVal;
1900
1537
  };
1901
- const de_ImageTagList = (output, context) => {
1902
- const retVal = (output || [])
1903
- .filter((e) => e != null)
1904
- .map((entry) => {
1905
- if (entry === null) {
1906
- return null;
1907
- }
1908
- return (0, smithy_client_1.expectString)(entry);
1909
- });
1910
- return retVal;
1911
- };
1912
- const de_InitiateLayerUploadResponse = (output, context) => {
1913
- return {
1914
- partSize: (0, smithy_client_1.expectLong)(output.partSize),
1915
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
1916
- };
1917
- };
1918
- const de_InvalidLayerException = (output, context) => {
1919
- return {
1920
- message: (0, smithy_client_1.expectString)(output.message),
1921
- };
1922
- };
1923
- const de_InvalidLayerPartException = (output, context) => {
1924
- return {
1925
- lastValidByteReceived: (0, smithy_client_1.expectLong)(output.lastValidByteReceived),
1926
- message: (0, smithy_client_1.expectString)(output.message),
1927
- registryId: (0, smithy_client_1.expectString)(output.registryId),
1928
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
1929
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
1930
- };
1931
- };
1932
- const de_InvalidParameterException = (output, context) => {
1933
- return {
1934
- message: (0, smithy_client_1.expectString)(output.message),
1935
- };
1936
- };
1937
- const de_InvalidTagParameterException = (output, context) => {
1938
- return {
1939
- message: (0, smithy_client_1.expectString)(output.message),
1940
- };
1941
- };
1942
- const de_Layer = (output, context) => {
1943
- return {
1944
- layerAvailability: (0, smithy_client_1.expectString)(output.layerAvailability),
1945
- layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
1946
- layerSize: (0, smithy_client_1.expectLong)(output.layerSize),
1947
- mediaType: (0, smithy_client_1.expectString)(output.mediaType),
1948
- };
1949
- };
1950
- const de_LayerAlreadyExistsException = (output, context) => {
1951
- return {
1952
- message: (0, smithy_client_1.expectString)(output.message),
1953
- };
1954
- };
1955
- const de_LayerFailure = (output, context) => {
1956
- return {
1957
- failureCode: (0, smithy_client_1.expectString)(output.failureCode),
1958
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
1959
- layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
1960
- };
1961
- };
1962
- const de_LayerFailureList = (output, context) => {
1963
- const retVal = (output || [])
1964
- .filter((e) => e != null)
1965
- .map((entry) => {
1966
- if (entry === null) {
1967
- return null;
1968
- }
1969
- return de_LayerFailure(entry, context);
1970
- });
1971
- return retVal;
1972
- };
1973
- const de_LayerList = (output, context) => {
1974
- const retVal = (output || [])
1975
- .filter((e) => e != null)
1976
- .map((entry) => {
1977
- if (entry === null) {
1978
- return null;
1979
- }
1980
- return de_Layer(entry, context);
1981
- });
1982
- return retVal;
1983
- };
1984
- const de_LayerPartTooSmallException = (output, context) => {
1985
- return {
1986
- message: (0, smithy_client_1.expectString)(output.message),
1987
- };
1988
- };
1989
- const de_LayersNotFoundException = (output, context) => {
1990
- return {
1991
- message: (0, smithy_client_1.expectString)(output.message),
1992
- };
1993
- };
1994
- const de_LimitExceededException = (output, context) => {
1995
- return {
1996
- message: (0, smithy_client_1.expectString)(output.message),
1997
- };
1998
- };
1999
- const de_ListTagsForResourceResponse = (output, context) => {
2000
- return {
2001
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
2002
- };
2003
- };
2004
- const de_OperatingSystemList = (output, context) => {
2005
- const retVal = (output || [])
2006
- .filter((e) => e != null)
2007
- .map((entry) => {
2008
- if (entry === null) {
2009
- return null;
2010
- }
2011
- return (0, smithy_client_1.expectString)(entry);
2012
- });
2013
- return retVal;
2014
- };
2015
- const de_PutImageResponse = (output, context) => {
2016
- return {
2017
- image: output.image != null ? de_Image(output.image, context) : undefined,
2018
- };
2019
- };
2020
- const de_PutRegistryCatalogDataResponse = (output, context) => {
2021
- return {
2022
- registryCatalogData: output.registryCatalogData != null ? de_RegistryCatalogData(output.registryCatalogData, context) : undefined,
2023
- };
2024
- };
2025
- const de_PutRepositoryCatalogDataResponse = (output, context) => {
2026
- return {
2027
- catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
2028
- };
2029
- };
2030
1538
  const de_ReferencedImageDetail = (output, context) => {
2031
- return {
2032
- artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
2033
- imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
2034
- imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
2035
- imagePushedAt: output.imagePushedAt != null
2036
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
2037
- : undefined,
2038
- imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
2039
- };
2040
- };
2041
- const de_ReferencedImagesNotFoundException = (output, context) => {
2042
- return {
2043
- message: (0, smithy_client_1.expectString)(output.message),
2044
- };
2045
- };
2046
- const de_Registry = (output, context) => {
2047
- return {
2048
- aliases: output.aliases != null ? de_RegistryAliasList(output.aliases, context) : undefined,
2049
- registryArn: (0, smithy_client_1.expectString)(output.registryArn),
2050
- registryId: (0, smithy_client_1.expectString)(output.registryId),
2051
- registryUri: (0, smithy_client_1.expectString)(output.registryUri),
2052
- verified: (0, smithy_client_1.expectBoolean)(output.verified),
2053
- };
2054
- };
2055
- const de_RegistryAlias = (output, context) => {
2056
- return {
2057
- defaultRegistryAlias: (0, smithy_client_1.expectBoolean)(output.defaultRegistryAlias),
2058
- name: (0, smithy_client_1.expectString)(output.name),
2059
- primaryRegistryAlias: (0, smithy_client_1.expectBoolean)(output.primaryRegistryAlias),
2060
- status: (0, smithy_client_1.expectString)(output.status),
2061
- };
2062
- };
2063
- const de_RegistryAliasList = (output, context) => {
2064
- const retVal = (output || [])
2065
- .filter((e) => e != null)
2066
- .map((entry) => {
2067
- if (entry === null) {
2068
- return null;
2069
- }
2070
- return de_RegistryAlias(entry, context);
1539
+ return (0, smithy_client_1.take)(output, {
1540
+ artifactMediaType: smithy_client_1.expectString,
1541
+ imageDigest: smithy_client_1.expectString,
1542
+ imageManifestMediaType: smithy_client_1.expectString,
1543
+ imagePushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1544
+ imageSizeInBytes: smithy_client_1.expectLong,
2071
1545
  });
2072
- return retVal;
2073
- };
2074
- const de_RegistryCatalogData = (output, context) => {
2075
- return {
2076
- displayName: (0, smithy_client_1.expectString)(output.displayName),
2077
- };
2078
- };
2079
- const de_RegistryList = (output, context) => {
2080
- const retVal = (output || [])
2081
- .filter((e) => e != null)
2082
- .map((entry) => {
2083
- if (entry === null) {
2084
- return null;
2085
- }
2086
- return de_Registry(entry, context);
2087
- });
2088
- return retVal;
2089
- };
2090
- const de_RegistryNotFoundException = (output, context) => {
2091
- return {
2092
- message: (0, smithy_client_1.expectString)(output.message),
2093
- };
2094
1546
  };
2095
1547
  const de_Repository = (output, context) => {
2096
- return {
2097
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
2098
- registryId: (0, smithy_client_1.expectString)(output.registryId),
2099
- repositoryArn: (0, smithy_client_1.expectString)(output.repositoryArn),
2100
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
2101
- repositoryUri: (0, smithy_client_1.expectString)(output.repositoryUri),
2102
- };
2103
- };
2104
- const de_RepositoryAlreadyExistsException = (output, context) => {
2105
- return {
2106
- message: (0, smithy_client_1.expectString)(output.message),
2107
- };
2108
- };
2109
- const de_RepositoryCatalogData = (output, context) => {
2110
- return {
2111
- aboutText: (0, smithy_client_1.expectString)(output.aboutText),
2112
- architectures: output.architectures != null ? de_ArchitectureList(output.architectures, context) : undefined,
2113
- description: (0, smithy_client_1.expectString)(output.description),
2114
- logoUrl: (0, smithy_client_1.expectString)(output.logoUrl),
2115
- marketplaceCertified: (0, smithy_client_1.expectBoolean)(output.marketplaceCertified),
2116
- operatingSystems: output.operatingSystems != null ? de_OperatingSystemList(output.operatingSystems, context) : undefined,
2117
- usageText: (0, smithy_client_1.expectString)(output.usageText),
2118
- };
2119
- };
2120
- const de_RepositoryCatalogDataNotFoundException = (output, context) => {
2121
- return {
2122
- message: (0, smithy_client_1.expectString)(output.message),
2123
- };
1548
+ return (0, smithy_client_1.take)(output, {
1549
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1550
+ registryId: smithy_client_1.expectString,
1551
+ repositoryArn: smithy_client_1.expectString,
1552
+ repositoryName: smithy_client_1.expectString,
1553
+ repositoryUri: smithy_client_1.expectString,
1554
+ });
2124
1555
  };
2125
1556
  const de_RepositoryList = (output, context) => {
2126
1557
  const retVal = (output || [])
2127
1558
  .filter((e) => e != null)
2128
1559
  .map((entry) => {
2129
- if (entry === null) {
2130
- return null;
2131
- }
2132
1560
  return de_Repository(entry, context);
2133
1561
  });
2134
1562
  return retVal;
2135
1563
  };
2136
- const de_RepositoryNotEmptyException = (output, context) => {
2137
- return {
2138
- message: (0, smithy_client_1.expectString)(output.message),
2139
- };
2140
- };
2141
- const de_RepositoryNotFoundException = (output, context) => {
2142
- return {
2143
- message: (0, smithy_client_1.expectString)(output.message),
2144
- };
2145
- };
2146
- const de_RepositoryPolicyNotFoundException = (output, context) => {
2147
- return {
2148
- message: (0, smithy_client_1.expectString)(output.message),
2149
- };
2150
- };
2151
- const de_ServerException = (output, context) => {
2152
- return {
2153
- message: (0, smithy_client_1.expectString)(output.message),
2154
- };
2155
- };
2156
- const de_SetRepositoryPolicyResponse = (output, context) => {
2157
- return {
2158
- policyText: (0, smithy_client_1.expectString)(output.policyText),
2159
- registryId: (0, smithy_client_1.expectString)(output.registryId),
2160
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
2161
- };
2162
- };
2163
- const de_Tag = (output, context) => {
2164
- return {
2165
- Key: (0, smithy_client_1.expectString)(output.Key),
2166
- Value: (0, smithy_client_1.expectString)(output.Value),
2167
- };
2168
- };
2169
- const de_TagList = (output, context) => {
2170
- const retVal = (output || [])
2171
- .filter((e) => e != null)
2172
- .map((entry) => {
2173
- if (entry === null) {
2174
- return null;
2175
- }
2176
- return de_Tag(entry, context);
2177
- });
2178
- return retVal;
2179
- };
2180
- const de_TagResourceResponse = (output, context) => {
2181
- return {};
2182
- };
2183
- const de_TooManyTagsException = (output, context) => {
2184
- return {
2185
- message: (0, smithy_client_1.expectString)(output.message),
2186
- };
2187
- };
2188
- const de_UnsupportedCommandException = (output, context) => {
2189
- return {
2190
- message: (0, smithy_client_1.expectString)(output.message),
2191
- };
2192
- };
2193
- const de_UntagResourceResponse = (output, context) => {
2194
- return {};
2195
- };
2196
- const de_UploadLayerPartResponse = (output, context) => {
2197
- return {
2198
- lastByteReceived: (0, smithy_client_1.expectLong)(output.lastByteReceived),
2199
- registryId: (0, smithy_client_1.expectString)(output.registryId),
2200
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
2201
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
2202
- };
2203
- };
2204
- const de_UploadNotFoundException = (output, context) => {
2205
- return {
2206
- message: (0, smithy_client_1.expectString)(output.message),
2207
- };
2208
- };
2209
1564
  const deserializeMetadata = (output) => ({
2210
1565
  httpStatusCode: output.statusCode,
2211
1566
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2219,6 +1574,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2219
1574
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2220
1575
  };
2221
1576
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1577
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ECRPUBLICServiceException_1.ECRPUBLICServiceException);
2222
1578
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2223
1579
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2224
1580
  const contents = {