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