@aws-sdk/client-codeartifact 3.306.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist-cjs/commands/AssociateExternalConnectionCommand.js +2 -2
  2. package/dist-cjs/commands/CopyPackageVersionsCommand.js +2 -2
  3. package/dist-cjs/commands/CreateDomainCommand.js +2 -2
  4. package/dist-cjs/commands/CreateRepositoryCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteDomainCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteDomainPermissionsPolicyCommand.js +2 -2
  7. package/dist-cjs/commands/DeletePackageCommand.js +2 -2
  8. package/dist-cjs/commands/DeletePackageVersionsCommand.js +2 -2
  9. package/dist-cjs/commands/DeleteRepositoryCommand.js +2 -2
  10. package/dist-cjs/commands/DeleteRepositoryPermissionsPolicyCommand.js +2 -2
  11. package/dist-cjs/commands/DescribeDomainCommand.js +2 -2
  12. package/dist-cjs/commands/DescribePackageCommand.js +2 -2
  13. package/dist-cjs/commands/DescribePackageVersionCommand.js +2 -2
  14. package/dist-cjs/commands/DescribeRepositoryCommand.js +2 -2
  15. package/dist-cjs/commands/DisassociateExternalConnectionCommand.js +2 -2
  16. package/dist-cjs/commands/DisposePackageVersionsCommand.js +2 -2
  17. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +2 -2
  18. package/dist-cjs/commands/GetDomainPermissionsPolicyCommand.js +2 -2
  19. package/dist-cjs/commands/GetPackageVersionAssetCommand.js +2 -2
  20. package/dist-cjs/commands/GetPackageVersionReadmeCommand.js +2 -2
  21. package/dist-cjs/commands/GetRepositoryEndpointCommand.js +2 -2
  22. package/dist-cjs/commands/GetRepositoryPermissionsPolicyCommand.js +2 -2
  23. package/dist-cjs/commands/ListDomainsCommand.js +2 -2
  24. package/dist-cjs/commands/ListPackageVersionAssetsCommand.js +2 -2
  25. package/dist-cjs/commands/ListPackageVersionDependenciesCommand.js +2 -2
  26. package/dist-cjs/commands/ListPackageVersionsCommand.js +2 -2
  27. package/dist-cjs/commands/ListPackagesCommand.js +2 -2
  28. package/dist-cjs/commands/ListRepositoriesCommand.js +2 -2
  29. package/dist-cjs/commands/ListRepositoriesInDomainCommand.js +2 -2
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  31. package/dist-cjs/commands/PublishPackageVersionCommand.js +2 -2
  32. package/dist-cjs/commands/PutDomainPermissionsPolicyCommand.js +2 -2
  33. package/dist-cjs/commands/PutPackageOriginConfigurationCommand.js +2 -2
  34. package/dist-cjs/commands/PutRepositoryPermissionsPolicyCommand.js +2 -2
  35. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  36. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  37. package/dist-cjs/commands/UpdatePackageVersionsStatusCommand.js +2 -2
  38. package/dist-cjs/commands/UpdateRepositoryCommand.js +2 -2
  39. package/dist-cjs/protocols/Aws_restJson1.js +566 -578
  40. package/dist-es/commands/AssociateExternalConnectionCommand.js +3 -3
  41. package/dist-es/commands/CopyPackageVersionsCommand.js +3 -3
  42. package/dist-es/commands/CreateDomainCommand.js +3 -3
  43. package/dist-es/commands/CreateRepositoryCommand.js +3 -3
  44. package/dist-es/commands/DeleteDomainCommand.js +3 -3
  45. package/dist-es/commands/DeleteDomainPermissionsPolicyCommand.js +3 -3
  46. package/dist-es/commands/DeletePackageCommand.js +3 -3
  47. package/dist-es/commands/DeletePackageVersionsCommand.js +3 -3
  48. package/dist-es/commands/DeleteRepositoryCommand.js +3 -3
  49. package/dist-es/commands/DeleteRepositoryPermissionsPolicyCommand.js +3 -3
  50. package/dist-es/commands/DescribeDomainCommand.js +3 -3
  51. package/dist-es/commands/DescribePackageCommand.js +3 -3
  52. package/dist-es/commands/DescribePackageVersionCommand.js +3 -3
  53. package/dist-es/commands/DescribeRepositoryCommand.js +3 -3
  54. package/dist-es/commands/DisassociateExternalConnectionCommand.js +3 -3
  55. package/dist-es/commands/DisposePackageVersionsCommand.js +3 -3
  56. package/dist-es/commands/GetAuthorizationTokenCommand.js +3 -3
  57. package/dist-es/commands/GetDomainPermissionsPolicyCommand.js +3 -3
  58. package/dist-es/commands/GetPackageVersionAssetCommand.js +3 -3
  59. package/dist-es/commands/GetPackageVersionReadmeCommand.js +3 -3
  60. package/dist-es/commands/GetRepositoryEndpointCommand.js +3 -3
  61. package/dist-es/commands/GetRepositoryPermissionsPolicyCommand.js +3 -3
  62. package/dist-es/commands/ListDomainsCommand.js +3 -3
  63. package/dist-es/commands/ListPackageVersionAssetsCommand.js +3 -3
  64. package/dist-es/commands/ListPackageVersionDependenciesCommand.js +3 -3
  65. package/dist-es/commands/ListPackageVersionsCommand.js +3 -3
  66. package/dist-es/commands/ListPackagesCommand.js +3 -3
  67. package/dist-es/commands/ListRepositoriesCommand.js +3 -3
  68. package/dist-es/commands/ListRepositoriesInDomainCommand.js +3 -3
  69. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  70. package/dist-es/commands/PublishPackageVersionCommand.js +3 -3
  71. package/dist-es/commands/PutDomainPermissionsPolicyCommand.js +3 -3
  72. package/dist-es/commands/PutPackageOriginConfigurationCommand.js +3 -3
  73. package/dist-es/commands/PutRepositoryPermissionsPolicyCommand.js +3 -3
  74. package/dist-es/commands/TagResourceCommand.js +3 -3
  75. package/dist-es/commands/UntagResourceCommand.js +3 -3
  76. package/dist-es/commands/UpdatePackageVersionsStatusCommand.js +3 -3
  77. package/dist-es/commands/UpdateRepositoryCommand.js +3 -3
  78. package/dist-es/protocols/Aws_restJson1.js +488 -500
  79. package/dist-types/protocols/Aws_restJson1.d.ts +304 -76
  80. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +76 -76
  81. package/package.json +6 -6
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { CodeartifactServiceException as __BaseException } from "../models/CodeartifactServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1AssociateExternalConnectionCommand = async (input, context) => {
5
+ export const se_AssociateExternalConnectionCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {};
8
8
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection";
@@ -24,7 +24,7 @@ export const serializeAws_restJson1AssociateExternalConnectionCommand = async (i
24
24
  body,
25
25
  });
26
26
  };
27
- export const serializeAws_restJson1CopyPackageVersionsCommand = async (input, context) => {
27
+ export const se_CopyPackageVersionsCommand = async (input, context) => {
28
28
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
29
  const headers = {
30
30
  "content-type": "application/json",
@@ -44,9 +44,9 @@ export const serializeAws_restJson1CopyPackageVersionsCommand = async (input, co
44
44
  ...(input.allowOverwrite != null && { allowOverwrite: input.allowOverwrite }),
45
45
  ...(input.includeFromUpstream != null && { includeFromUpstream: input.includeFromUpstream }),
46
46
  ...(input.versionRevisions != null && {
47
- versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
47
+ versionRevisions: se_PackageVersionRevisionMap(input.versionRevisions, context),
48
48
  }),
49
- ...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
49
+ ...(input.versions != null && { versions: se_PackageVersionList(input.versions, context) }),
50
50
  });
51
51
  return new __HttpRequest({
52
52
  protocol,
@@ -59,7 +59,7 @@ export const serializeAws_restJson1CopyPackageVersionsCommand = async (input, co
59
59
  body,
60
60
  });
61
61
  };
62
- export const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
62
+ export const se_CreateDomainCommand = async (input, context) => {
63
63
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
64
64
  const headers = {
65
65
  "content-type": "application/json",
@@ -71,7 +71,7 @@ export const serializeAws_restJson1CreateDomainCommand = async (input, context)
71
71
  let body;
72
72
  body = JSON.stringify({
73
73
  ...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
74
- ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
74
+ ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
75
75
  });
76
76
  return new __HttpRequest({
77
77
  protocol,
@@ -84,7 +84,7 @@ export const serializeAws_restJson1CreateDomainCommand = async (input, context)
84
84
  body,
85
85
  });
86
86
  };
87
- export const serializeAws_restJson1CreateRepositoryCommand = async (input, context) => {
87
+ export const se_CreateRepositoryCommand = async (input, context) => {
88
88
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
89
  const headers = {
90
90
  "content-type": "application/json",
@@ -98,10 +98,8 @@ export const serializeAws_restJson1CreateRepositoryCommand = async (input, conte
98
98
  let body;
99
99
  body = JSON.stringify({
100
100
  ...(input.description != null && { description: input.description }),
101
- ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
102
- ...(input.upstreams != null && {
103
- upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
104
- }),
101
+ ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
102
+ ...(input.upstreams != null && { upstreams: se_UpstreamRepositoryList(input.upstreams, context) }),
105
103
  });
106
104
  return new __HttpRequest({
107
105
  protocol,
@@ -114,7 +112,7 @@ export const serializeAws_restJson1CreateRepositoryCommand = async (input, conte
114
112
  body,
115
113
  });
116
114
  };
117
- export const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
115
+ export const se_DeleteDomainCommand = async (input, context) => {
118
116
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
119
117
  const headers = {};
120
118
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
@@ -134,7 +132,7 @@ export const serializeAws_restJson1DeleteDomainCommand = async (input, context)
134
132
  body,
135
133
  });
136
134
  };
137
- export const serializeAws_restJson1DeleteDomainPermissionsPolicyCommand = async (input, context) => {
135
+ export const se_DeleteDomainPermissionsPolicyCommand = async (input, context) => {
138
136
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
137
  const headers = {};
140
138
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
@@ -155,7 +153,7 @@ export const serializeAws_restJson1DeleteDomainPermissionsPolicyCommand = async
155
153
  body,
156
154
  });
157
155
  };
158
- export const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
156
+ export const se_DeletePackageCommand = async (input, context) => {
159
157
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
158
  const headers = {};
161
159
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
@@ -179,7 +177,7 @@ export const serializeAws_restJson1DeletePackageCommand = async (input, context)
179
177
  body,
180
178
  });
181
179
  };
182
- export const serializeAws_restJson1DeletePackageVersionsCommand = async (input, context) => {
180
+ export const se_DeletePackageVersionsCommand = async (input, context) => {
183
181
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
184
182
  const headers = {
185
183
  "content-type": "application/json",
@@ -196,7 +194,7 @@ export const serializeAws_restJson1DeletePackageVersionsCommand = async (input,
196
194
  let body;
197
195
  body = JSON.stringify({
198
196
  ...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
199
- ...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
197
+ ...(input.versions != null && { versions: se_PackageVersionList(input.versions, context) }),
200
198
  });
201
199
  return new __HttpRequest({
202
200
  protocol,
@@ -209,7 +207,7 @@ export const serializeAws_restJson1DeletePackageVersionsCommand = async (input,
209
207
  body,
210
208
  });
211
209
  };
212
- export const serializeAws_restJson1DeleteRepositoryCommand = async (input, context) => {
210
+ export const se_DeleteRepositoryCommand = async (input, context) => {
213
211
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
212
  const headers = {};
215
213
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
@@ -230,7 +228,7 @@ export const serializeAws_restJson1DeleteRepositoryCommand = async (input, conte
230
228
  body,
231
229
  });
232
230
  };
233
- export const serializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = async (input, context) => {
231
+ export const se_DeleteRepositoryPermissionsPolicyCommand = async (input, context) => {
234
232
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
233
  const headers = {};
236
234
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policies";
@@ -252,7 +250,7 @@ export const serializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = as
252
250
  body,
253
251
  });
254
252
  };
255
- export const serializeAws_restJson1DescribeDomainCommand = async (input, context) => {
253
+ export const se_DescribeDomainCommand = async (input, context) => {
256
254
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
257
255
  const headers = {};
258
256
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
@@ -272,7 +270,7 @@ export const serializeAws_restJson1DescribeDomainCommand = async (input, context
272
270
  body,
273
271
  });
274
272
  };
275
- export const serializeAws_restJson1DescribePackageCommand = async (input, context) => {
273
+ export const se_DescribePackageCommand = async (input, context) => {
276
274
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
275
  const headers = {};
278
276
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
@@ -296,7 +294,7 @@ export const serializeAws_restJson1DescribePackageCommand = async (input, contex
296
294
  body,
297
295
  });
298
296
  };
299
- export const serializeAws_restJson1DescribePackageVersionCommand = async (input, context) => {
297
+ export const se_DescribePackageVersionCommand = async (input, context) => {
300
298
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
301
299
  const headers = {};
302
300
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version";
@@ -321,7 +319,7 @@ export const serializeAws_restJson1DescribePackageVersionCommand = async (input,
321
319
  body,
322
320
  });
323
321
  };
324
- export const serializeAws_restJson1DescribeRepositoryCommand = async (input, context) => {
322
+ export const se_DescribeRepositoryCommand = async (input, context) => {
325
323
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
326
324
  const headers = {};
327
325
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
@@ -342,7 +340,7 @@ export const serializeAws_restJson1DescribeRepositoryCommand = async (input, con
342
340
  body,
343
341
  });
344
342
  };
345
- export const serializeAws_restJson1DisassociateExternalConnectionCommand = async (input, context) => {
343
+ export const se_DisassociateExternalConnectionCommand = async (input, context) => {
346
344
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
345
  const headers = {};
348
346
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection";
@@ -364,7 +362,7 @@ export const serializeAws_restJson1DisassociateExternalConnectionCommand = async
364
362
  body,
365
363
  });
366
364
  };
367
- export const serializeAws_restJson1DisposePackageVersionsCommand = async (input, context) => {
365
+ export const se_DisposePackageVersionsCommand = async (input, context) => {
368
366
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
369
367
  const headers = {
370
368
  "content-type": "application/json",
@@ -382,9 +380,9 @@ export const serializeAws_restJson1DisposePackageVersionsCommand = async (input,
382
380
  body = JSON.stringify({
383
381
  ...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
384
382
  ...(input.versionRevisions != null && {
385
- versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
383
+ versionRevisions: se_PackageVersionRevisionMap(input.versionRevisions, context),
386
384
  }),
387
- ...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
385
+ ...(input.versions != null && { versions: se_PackageVersionList(input.versions, context) }),
388
386
  });
389
387
  return new __HttpRequest({
390
388
  protocol,
@@ -397,7 +395,7 @@ export const serializeAws_restJson1DisposePackageVersionsCommand = async (input,
397
395
  body,
398
396
  });
399
397
  };
400
- export const serializeAws_restJson1GetAuthorizationTokenCommand = async (input, context) => {
398
+ export const se_GetAuthorizationTokenCommand = async (input, context) => {
401
399
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
400
  const headers = {};
403
401
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/authorization-token";
@@ -418,7 +416,7 @@ export const serializeAws_restJson1GetAuthorizationTokenCommand = async (input,
418
416
  body,
419
417
  });
420
418
  };
421
- export const serializeAws_restJson1GetDomainPermissionsPolicyCommand = async (input, context) => {
419
+ export const se_GetDomainPermissionsPolicyCommand = async (input, context) => {
422
420
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
421
  const headers = {};
424
422
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
@@ -438,7 +436,7 @@ export const serializeAws_restJson1GetDomainPermissionsPolicyCommand = async (in
438
436
  body,
439
437
  });
440
438
  };
441
- export const serializeAws_restJson1GetPackageVersionAssetCommand = async (input, context) => {
439
+ export const se_GetPackageVersionAssetCommand = async (input, context) => {
442
440
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
443
441
  const headers = {};
444
442
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/asset";
@@ -465,7 +463,7 @@ export const serializeAws_restJson1GetPackageVersionAssetCommand = async (input,
465
463
  body,
466
464
  });
467
465
  };
468
- export const serializeAws_restJson1GetPackageVersionReadmeCommand = async (input, context) => {
466
+ export const se_GetPackageVersionReadmeCommand = async (input, context) => {
469
467
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
470
468
  const headers = {};
471
469
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/readme";
@@ -490,7 +488,7 @@ export const serializeAws_restJson1GetPackageVersionReadmeCommand = async (input
490
488
  body,
491
489
  });
492
490
  };
493
- export const serializeAws_restJson1GetRepositoryEndpointCommand = async (input, context) => {
491
+ export const se_GetRepositoryEndpointCommand = async (input, context) => {
494
492
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
495
493
  const headers = {};
496
494
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/endpoint";
@@ -512,7 +510,7 @@ export const serializeAws_restJson1GetRepositoryEndpointCommand = async (input,
512
510
  body,
513
511
  });
514
512
  };
515
- export const serializeAws_restJson1GetRepositoryPermissionsPolicyCommand = async (input, context) => {
513
+ export const se_GetRepositoryPermissionsPolicyCommand = async (input, context) => {
516
514
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
517
515
  const headers = {};
518
516
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policy";
@@ -533,7 +531,7 @@ export const serializeAws_restJson1GetRepositoryPermissionsPolicyCommand = async
533
531
  body,
534
532
  });
535
533
  };
536
- export const serializeAws_restJson1ListDomainsCommand = async (input, context) => {
534
+ export const se_ListDomainsCommand = async (input, context) => {
537
535
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
538
536
  const headers = {
539
537
  "content-type": "application/json",
@@ -554,7 +552,7 @@ export const serializeAws_restJson1ListDomainsCommand = async (input, context) =
554
552
  body,
555
553
  });
556
554
  };
557
- export const serializeAws_restJson1ListPackagesCommand = async (input, context) => {
555
+ export const se_ListPackagesCommand = async (input, context) => {
558
556
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
559
557
  const headers = {};
560
558
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/packages";
@@ -582,7 +580,7 @@ export const serializeAws_restJson1ListPackagesCommand = async (input, context)
582
580
  body,
583
581
  });
584
582
  };
585
- export const serializeAws_restJson1ListPackageVersionAssetsCommand = async (input, context) => {
583
+ export const se_ListPackageVersionAssetsCommand = async (input, context) => {
586
584
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
587
585
  const headers = {};
588
586
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/assets";
@@ -609,7 +607,7 @@ export const serializeAws_restJson1ListPackageVersionAssetsCommand = async (inpu
609
607
  body,
610
608
  });
611
609
  };
612
- export const serializeAws_restJson1ListPackageVersionDependenciesCommand = async (input, context) => {
610
+ export const se_ListPackageVersionDependenciesCommand = async (input, context) => {
613
611
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
614
612
  const headers = {};
615
613
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/dependencies";
@@ -635,7 +633,7 @@ export const serializeAws_restJson1ListPackageVersionDependenciesCommand = async
635
633
  body,
636
634
  });
637
635
  };
638
- export const serializeAws_restJson1ListPackageVersionsCommand = async (input, context) => {
636
+ export const se_ListPackageVersionsCommand = async (input, context) => {
639
637
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
638
  const headers = {};
641
639
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions";
@@ -664,7 +662,7 @@ export const serializeAws_restJson1ListPackageVersionsCommand = async (input, co
664
662
  body,
665
663
  });
666
664
  };
667
- export const serializeAws_restJson1ListRepositoriesCommand = async (input, context) => {
665
+ export const se_ListRepositoriesCommand = async (input, context) => {
668
666
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
669
667
  const headers = {};
670
668
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repositories";
@@ -685,7 +683,7 @@ export const serializeAws_restJson1ListRepositoriesCommand = async (input, conte
685
683
  body,
686
684
  });
687
685
  };
688
- export const serializeAws_restJson1ListRepositoriesInDomainCommand = async (input, context) => {
686
+ export const se_ListRepositoriesInDomainCommand = async (input, context) => {
689
687
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
690
688
  const headers = {};
691
689
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/repositories";
@@ -709,7 +707,7 @@ export const serializeAws_restJson1ListRepositoriesInDomainCommand = async (inpu
709
707
  body,
710
708
  });
711
709
  };
712
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
710
+ export const se_ListTagsForResourceCommand = async (input, context) => {
713
711
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
714
712
  const headers = {};
715
713
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags";
@@ -728,7 +726,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
728
726
  body,
729
727
  });
730
728
  };
731
- export const serializeAws_restJson1PublishPackageVersionCommand = async (input, context) => {
729
+ export const se_PublishPackageVersionCommand = async (input, context) => {
732
730
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
733
731
  const headers = map({}, isSerializableHeaderValue, {
734
732
  "content-type": "application/octet-stream",
@@ -761,7 +759,7 @@ export const serializeAws_restJson1PublishPackageVersionCommand = async (input,
761
759
  body,
762
760
  });
763
761
  };
764
- export const serializeAws_restJson1PutDomainPermissionsPolicyCommand = async (input, context) => {
762
+ export const se_PutDomainPermissionsPolicyCommand = async (input, context) => {
765
763
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
766
764
  const headers = {
767
765
  "content-type": "application/json",
@@ -784,7 +782,7 @@ export const serializeAws_restJson1PutDomainPermissionsPolicyCommand = async (in
784
782
  body,
785
783
  });
786
784
  };
787
- export const serializeAws_restJson1PutPackageOriginConfigurationCommand = async (input, context) => {
785
+ export const se_PutPackageOriginConfigurationCommand = async (input, context) => {
788
786
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
789
787
  const headers = {
790
788
  "content-type": "application/json",
@@ -800,9 +798,7 @@ export const serializeAws_restJson1PutPackageOriginConfigurationCommand = async
800
798
  });
801
799
  let body;
802
800
  body = JSON.stringify({
803
- ...(input.restrictions != null && {
804
- restrictions: serializeAws_restJson1PackageOriginRestrictions(input.restrictions, context),
805
- }),
801
+ ...(input.restrictions != null && { restrictions: se_PackageOriginRestrictions(input.restrictions, context) }),
806
802
  });
807
803
  return new __HttpRequest({
808
804
  protocol,
@@ -815,7 +811,7 @@ export const serializeAws_restJson1PutPackageOriginConfigurationCommand = async
815
811
  body,
816
812
  });
817
813
  };
818
- export const serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = async (input, context) => {
814
+ export const se_PutRepositoryPermissionsPolicyCommand = async (input, context) => {
819
815
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
820
816
  const headers = {
821
817
  "content-type": "application/json",
@@ -842,7 +838,7 @@ export const serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = async
842
838
  body,
843
839
  });
844
840
  };
845
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
841
+ export const se_TagResourceCommand = async (input, context) => {
846
842
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
847
843
  const headers = {
848
844
  "content-type": "application/json",
@@ -853,7 +849,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
853
849
  });
854
850
  let body;
855
851
  body = JSON.stringify({
856
- ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
852
+ ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
857
853
  });
858
854
  return new __HttpRequest({
859
855
  protocol,
@@ -866,7 +862,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
866
862
  body,
867
863
  });
868
864
  };
869
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
865
+ export const se_UntagResourceCommand = async (input, context) => {
870
866
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
871
867
  const headers = {
872
868
  "content-type": "application/json",
@@ -877,7 +873,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
877
873
  });
878
874
  let body;
879
875
  body = JSON.stringify({
880
- ...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
876
+ ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
881
877
  });
882
878
  return new __HttpRequest({
883
879
  protocol,
@@ -890,7 +886,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
890
886
  body,
891
887
  });
892
888
  };
893
- export const serializeAws_restJson1UpdatePackageVersionsStatusCommand = async (input, context) => {
889
+ export const se_UpdatePackageVersionsStatusCommand = async (input, context) => {
894
890
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
895
891
  const headers = {
896
892
  "content-type": "application/json",
@@ -909,9 +905,9 @@ export const serializeAws_restJson1UpdatePackageVersionsStatusCommand = async (i
909
905
  ...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
910
906
  ...(input.targetStatus != null && { targetStatus: input.targetStatus }),
911
907
  ...(input.versionRevisions != null && {
912
- versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
908
+ versionRevisions: se_PackageVersionRevisionMap(input.versionRevisions, context),
913
909
  }),
914
- ...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
910
+ ...(input.versions != null && { versions: se_PackageVersionList(input.versions, context) }),
915
911
  });
916
912
  return new __HttpRequest({
917
913
  protocol,
@@ -924,7 +920,7 @@ export const serializeAws_restJson1UpdatePackageVersionsStatusCommand = async (i
924
920
  body,
925
921
  });
926
922
  };
927
- export const serializeAws_restJson1UpdateRepositoryCommand = async (input, context) => {
923
+ export const se_UpdateRepositoryCommand = async (input, context) => {
928
924
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
929
925
  const headers = {
930
926
  "content-type": "application/json",
@@ -938,9 +934,7 @@ export const serializeAws_restJson1UpdateRepositoryCommand = async (input, conte
938
934
  let body;
939
935
  body = JSON.stringify({
940
936
  ...(input.description != null && { description: input.description }),
941
- ...(input.upstreams != null && {
942
- upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
943
- }),
937
+ ...(input.upstreams != null && { upstreams: se_UpstreamRepositoryList(input.upstreams, context) }),
944
938
  });
945
939
  return new __HttpRequest({
946
940
  protocol,
@@ -953,20 +947,20 @@ export const serializeAws_restJson1UpdateRepositoryCommand = async (input, conte
953
947
  body,
954
948
  });
955
949
  };
956
- export const deserializeAws_restJson1AssociateExternalConnectionCommand = async (output, context) => {
950
+ export const de_AssociateExternalConnectionCommand = async (output, context) => {
957
951
  if (output.statusCode !== 200 && output.statusCode >= 300) {
958
- return deserializeAws_restJson1AssociateExternalConnectionCommandError(output, context);
952
+ return de_AssociateExternalConnectionCommandError(output, context);
959
953
  }
960
954
  const contents = map({
961
955
  $metadata: deserializeMetadata(output),
962
956
  });
963
957
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
964
958
  if (data.repository != null) {
965
- contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
959
+ contents.repository = de_RepositoryDescription(data.repository, context);
966
960
  }
967
961
  return contents;
968
962
  };
969
- const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (output, context) => {
963
+ const de_AssociateExternalConnectionCommandError = async (output, context) => {
970
964
  const parsedOutput = {
971
965
  ...output,
972
966
  body: await parseErrorBody(output.body, context),
@@ -975,25 +969,25 @@ const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (o
975
969
  switch (errorCode) {
976
970
  case "AccessDeniedException":
977
971
  case "com.amazonaws.codeartifact#AccessDeniedException":
978
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
972
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
979
973
  case "ConflictException":
980
974
  case "com.amazonaws.codeartifact#ConflictException":
981
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
975
+ throw await de_ConflictExceptionRes(parsedOutput, context);
982
976
  case "InternalServerException":
983
977
  case "com.amazonaws.codeartifact#InternalServerException":
984
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
978
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
985
979
  case "ResourceNotFoundException":
986
980
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
987
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
981
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
988
982
  case "ServiceQuotaExceededException":
989
983
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
990
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
984
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
991
985
  case "ThrottlingException":
992
986
  case "com.amazonaws.codeartifact#ThrottlingException":
993
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
987
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
994
988
  case "ValidationException":
995
989
  case "com.amazonaws.codeartifact#ValidationException":
996
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
990
+ throw await de_ValidationExceptionRes(parsedOutput, context);
997
991
  default:
998
992
  const parsedBody = parsedOutput.body;
999
993
  throwDefaultError({
@@ -1004,23 +998,23 @@ const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (o
1004
998
  });
1005
999
  }
1006
1000
  };
1007
- export const deserializeAws_restJson1CopyPackageVersionsCommand = async (output, context) => {
1001
+ export const de_CopyPackageVersionsCommand = async (output, context) => {
1008
1002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1009
- return deserializeAws_restJson1CopyPackageVersionsCommandError(output, context);
1003
+ return de_CopyPackageVersionsCommandError(output, context);
1010
1004
  }
1011
1005
  const contents = map({
1012
1006
  $metadata: deserializeMetadata(output),
1013
1007
  });
1014
1008
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1015
1009
  if (data.failedVersions != null) {
1016
- contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
1010
+ contents.failedVersions = de_PackageVersionErrorMap(data.failedVersions, context);
1017
1011
  }
1018
1012
  if (data.successfulVersions != null) {
1019
- contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
1013
+ contents.successfulVersions = de_SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
1020
1014
  }
1021
1015
  return contents;
1022
1016
  };
1023
- const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, context) => {
1017
+ const de_CopyPackageVersionsCommandError = async (output, context) => {
1024
1018
  const parsedOutput = {
1025
1019
  ...output,
1026
1020
  body: await parseErrorBody(output.body, context),
@@ -1029,25 +1023,25 @@ const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, c
1029
1023
  switch (errorCode) {
1030
1024
  case "AccessDeniedException":
1031
1025
  case "com.amazonaws.codeartifact#AccessDeniedException":
1032
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1026
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1033
1027
  case "ConflictException":
1034
1028
  case "com.amazonaws.codeartifact#ConflictException":
1035
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1029
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1036
1030
  case "InternalServerException":
1037
1031
  case "com.amazonaws.codeartifact#InternalServerException":
1038
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1032
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1039
1033
  case "ResourceNotFoundException":
1040
1034
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1041
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1035
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1042
1036
  case "ServiceQuotaExceededException":
1043
1037
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
1044
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1038
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1045
1039
  case "ThrottlingException":
1046
1040
  case "com.amazonaws.codeartifact#ThrottlingException":
1047
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1041
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1048
1042
  case "ValidationException":
1049
1043
  case "com.amazonaws.codeartifact#ValidationException":
1050
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1044
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1051
1045
  default:
1052
1046
  const parsedBody = parsedOutput.body;
1053
1047
  throwDefaultError({
@@ -1058,20 +1052,20 @@ const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, c
1058
1052
  });
1059
1053
  }
1060
1054
  };
1061
- export const deserializeAws_restJson1CreateDomainCommand = async (output, context) => {
1055
+ export const de_CreateDomainCommand = async (output, context) => {
1062
1056
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1063
- return deserializeAws_restJson1CreateDomainCommandError(output, context);
1057
+ return de_CreateDomainCommandError(output, context);
1064
1058
  }
1065
1059
  const contents = map({
1066
1060
  $metadata: deserializeMetadata(output),
1067
1061
  });
1068
1062
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1069
1063
  if (data.domain != null) {
1070
- contents.domain = deserializeAws_restJson1DomainDescription(data.domain, context);
1064
+ contents.domain = de_DomainDescription(data.domain, context);
1071
1065
  }
1072
1066
  return contents;
1073
1067
  };
1074
- const deserializeAws_restJson1CreateDomainCommandError = async (output, context) => {
1068
+ const de_CreateDomainCommandError = async (output, context) => {
1075
1069
  const parsedOutput = {
1076
1070
  ...output,
1077
1071
  body: await parseErrorBody(output.body, context),
@@ -1080,25 +1074,25 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
1080
1074
  switch (errorCode) {
1081
1075
  case "AccessDeniedException":
1082
1076
  case "com.amazonaws.codeartifact#AccessDeniedException":
1083
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1077
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1084
1078
  case "ConflictException":
1085
1079
  case "com.amazonaws.codeartifact#ConflictException":
1086
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1080
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1087
1081
  case "InternalServerException":
1088
1082
  case "com.amazonaws.codeartifact#InternalServerException":
1089
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1083
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1090
1084
  case "ResourceNotFoundException":
1091
1085
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1092
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1086
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1093
1087
  case "ServiceQuotaExceededException":
1094
1088
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
1095
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1089
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1096
1090
  case "ThrottlingException":
1097
1091
  case "com.amazonaws.codeartifact#ThrottlingException":
1098
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1092
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1099
1093
  case "ValidationException":
1100
1094
  case "com.amazonaws.codeartifact#ValidationException":
1101
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1095
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1102
1096
  default:
1103
1097
  const parsedBody = parsedOutput.body;
1104
1098
  throwDefaultError({
@@ -1109,20 +1103,20 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
1109
1103
  });
1110
1104
  }
1111
1105
  };
1112
- export const deserializeAws_restJson1CreateRepositoryCommand = async (output, context) => {
1106
+ export const de_CreateRepositoryCommand = async (output, context) => {
1113
1107
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1114
- return deserializeAws_restJson1CreateRepositoryCommandError(output, context);
1108
+ return de_CreateRepositoryCommandError(output, context);
1115
1109
  }
1116
1110
  const contents = map({
1117
1111
  $metadata: deserializeMetadata(output),
1118
1112
  });
1119
1113
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1120
1114
  if (data.repository != null) {
1121
- contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
1115
+ contents.repository = de_RepositoryDescription(data.repository, context);
1122
1116
  }
1123
1117
  return contents;
1124
1118
  };
1125
- const deserializeAws_restJson1CreateRepositoryCommandError = async (output, context) => {
1119
+ const de_CreateRepositoryCommandError = async (output, context) => {
1126
1120
  const parsedOutput = {
1127
1121
  ...output,
1128
1122
  body: await parseErrorBody(output.body, context),
@@ -1131,25 +1125,25 @@ const deserializeAws_restJson1CreateRepositoryCommandError = async (output, cont
1131
1125
  switch (errorCode) {
1132
1126
  case "AccessDeniedException":
1133
1127
  case "com.amazonaws.codeartifact#AccessDeniedException":
1134
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1128
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1135
1129
  case "ConflictException":
1136
1130
  case "com.amazonaws.codeartifact#ConflictException":
1137
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1131
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1138
1132
  case "InternalServerException":
1139
1133
  case "com.amazonaws.codeartifact#InternalServerException":
1140
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1134
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1141
1135
  case "ResourceNotFoundException":
1142
1136
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1143
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1137
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1144
1138
  case "ServiceQuotaExceededException":
1145
1139
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
1146
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1140
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1147
1141
  case "ThrottlingException":
1148
1142
  case "com.amazonaws.codeartifact#ThrottlingException":
1149
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1143
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1150
1144
  case "ValidationException":
1151
1145
  case "com.amazonaws.codeartifact#ValidationException":
1152
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1146
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1153
1147
  default:
1154
1148
  const parsedBody = parsedOutput.body;
1155
1149
  throwDefaultError({
@@ -1160,20 +1154,20 @@ const deserializeAws_restJson1CreateRepositoryCommandError = async (output, cont
1160
1154
  });
1161
1155
  }
1162
1156
  };
1163
- export const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
1157
+ export const de_DeleteDomainCommand = async (output, context) => {
1164
1158
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
- return deserializeAws_restJson1DeleteDomainCommandError(output, context);
1159
+ return de_DeleteDomainCommandError(output, context);
1166
1160
  }
1167
1161
  const contents = map({
1168
1162
  $metadata: deserializeMetadata(output),
1169
1163
  });
1170
1164
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1171
1165
  if (data.domain != null) {
1172
- contents.domain = deserializeAws_restJson1DomainDescription(data.domain, context);
1166
+ contents.domain = de_DomainDescription(data.domain, context);
1173
1167
  }
1174
1168
  return contents;
1175
1169
  };
1176
- const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
1170
+ const de_DeleteDomainCommandError = async (output, context) => {
1177
1171
  const parsedOutput = {
1178
1172
  ...output,
1179
1173
  body: await parseErrorBody(output.body, context),
@@ -1182,19 +1176,19 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
1182
1176
  switch (errorCode) {
1183
1177
  case "AccessDeniedException":
1184
1178
  case "com.amazonaws.codeartifact#AccessDeniedException":
1185
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1179
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1186
1180
  case "ConflictException":
1187
1181
  case "com.amazonaws.codeartifact#ConflictException":
1188
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1182
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1189
1183
  case "InternalServerException":
1190
1184
  case "com.amazonaws.codeartifact#InternalServerException":
1191
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1185
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1192
1186
  case "ThrottlingException":
1193
1187
  case "com.amazonaws.codeartifact#ThrottlingException":
1194
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1188
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1195
1189
  case "ValidationException":
1196
1190
  case "com.amazonaws.codeartifact#ValidationException":
1197
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1191
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1198
1192
  default:
1199
1193
  const parsedBody = parsedOutput.body;
1200
1194
  throwDefaultError({
@@ -1205,20 +1199,20 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
1205
1199
  });
1206
1200
  }
1207
1201
  };
1208
- export const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommand = async (output, context) => {
1202
+ export const de_DeleteDomainPermissionsPolicyCommand = async (output, context) => {
1209
1203
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1210
- return deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError(output, context);
1204
+ return de_DeleteDomainPermissionsPolicyCommandError(output, context);
1211
1205
  }
1212
1206
  const contents = map({
1213
1207
  $metadata: deserializeMetadata(output),
1214
1208
  });
1215
1209
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1216
1210
  if (data.policy != null) {
1217
- contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
1211
+ contents.policy = de_ResourcePolicy(data.policy, context);
1218
1212
  }
1219
1213
  return contents;
1220
1214
  };
1221
- const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async (output, context) => {
1215
+ const de_DeleteDomainPermissionsPolicyCommandError = async (output, context) => {
1222
1216
  const parsedOutput = {
1223
1217
  ...output,
1224
1218
  body: await parseErrorBody(output.body, context),
@@ -1227,22 +1221,22 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
1227
1221
  switch (errorCode) {
1228
1222
  case "AccessDeniedException":
1229
1223
  case "com.amazonaws.codeartifact#AccessDeniedException":
1230
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1224
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1231
1225
  case "ConflictException":
1232
1226
  case "com.amazonaws.codeartifact#ConflictException":
1233
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1227
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1234
1228
  case "InternalServerException":
1235
1229
  case "com.amazonaws.codeartifact#InternalServerException":
1236
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1230
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1237
1231
  case "ResourceNotFoundException":
1238
1232
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1239
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1233
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1240
1234
  case "ThrottlingException":
1241
1235
  case "com.amazonaws.codeartifact#ThrottlingException":
1242
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1236
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1243
1237
  case "ValidationException":
1244
1238
  case "com.amazonaws.codeartifact#ValidationException":
1245
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1239
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1246
1240
  default:
1247
1241
  const parsedBody = parsedOutput.body;
1248
1242
  throwDefaultError({
@@ -1253,20 +1247,20 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
1253
1247
  });
1254
1248
  }
1255
1249
  };
1256
- export const deserializeAws_restJson1DeletePackageCommand = async (output, context) => {
1250
+ export const de_DeletePackageCommand = async (output, context) => {
1257
1251
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1258
- return deserializeAws_restJson1DeletePackageCommandError(output, context);
1252
+ return de_DeletePackageCommandError(output, context);
1259
1253
  }
1260
1254
  const contents = map({
1261
1255
  $metadata: deserializeMetadata(output),
1262
1256
  });
1263
1257
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1264
1258
  if (data.deletedPackage != null) {
1265
- contents.deletedPackage = deserializeAws_restJson1PackageSummary(data.deletedPackage, context);
1259
+ contents.deletedPackage = de_PackageSummary(data.deletedPackage, context);
1266
1260
  }
1267
1261
  return contents;
1268
1262
  };
1269
- const deserializeAws_restJson1DeletePackageCommandError = async (output, context) => {
1263
+ const de_DeletePackageCommandError = async (output, context) => {
1270
1264
  const parsedOutput = {
1271
1265
  ...output,
1272
1266
  body: await parseErrorBody(output.body, context),
@@ -1275,22 +1269,22 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
1275
1269
  switch (errorCode) {
1276
1270
  case "AccessDeniedException":
1277
1271
  case "com.amazonaws.codeartifact#AccessDeniedException":
1278
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1272
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1279
1273
  case "ConflictException":
1280
1274
  case "com.amazonaws.codeartifact#ConflictException":
1281
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1275
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1282
1276
  case "InternalServerException":
1283
1277
  case "com.amazonaws.codeartifact#InternalServerException":
1284
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1278
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1285
1279
  case "ResourceNotFoundException":
1286
1280
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1287
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1281
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1288
1282
  case "ThrottlingException":
1289
1283
  case "com.amazonaws.codeartifact#ThrottlingException":
1290
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1284
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1291
1285
  case "ValidationException":
1292
1286
  case "com.amazonaws.codeartifact#ValidationException":
1293
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1287
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1294
1288
  default:
1295
1289
  const parsedBody = parsedOutput.body;
1296
1290
  throwDefaultError({
@@ -1301,23 +1295,23 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
1301
1295
  });
1302
1296
  }
1303
1297
  };
1304
- export const deserializeAws_restJson1DeletePackageVersionsCommand = async (output, context) => {
1298
+ export const de_DeletePackageVersionsCommand = async (output, context) => {
1305
1299
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1306
- return deserializeAws_restJson1DeletePackageVersionsCommandError(output, context);
1300
+ return de_DeletePackageVersionsCommandError(output, context);
1307
1301
  }
1308
1302
  const contents = map({
1309
1303
  $metadata: deserializeMetadata(output),
1310
1304
  });
1311
1305
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1312
1306
  if (data.failedVersions != null) {
1313
- contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
1307
+ contents.failedVersions = de_PackageVersionErrorMap(data.failedVersions, context);
1314
1308
  }
1315
1309
  if (data.successfulVersions != null) {
1316
- contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
1310
+ contents.successfulVersions = de_SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
1317
1311
  }
1318
1312
  return contents;
1319
1313
  };
1320
- const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output, context) => {
1314
+ const de_DeletePackageVersionsCommandError = async (output, context) => {
1321
1315
  const parsedOutput = {
1322
1316
  ...output,
1323
1317
  body: await parseErrorBody(output.body, context),
@@ -1326,22 +1320,22 @@ const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output,
1326
1320
  switch (errorCode) {
1327
1321
  case "AccessDeniedException":
1328
1322
  case "com.amazonaws.codeartifact#AccessDeniedException":
1329
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1323
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1330
1324
  case "ConflictException":
1331
1325
  case "com.amazonaws.codeartifact#ConflictException":
1332
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1326
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1333
1327
  case "InternalServerException":
1334
1328
  case "com.amazonaws.codeartifact#InternalServerException":
1335
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1329
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1336
1330
  case "ResourceNotFoundException":
1337
1331
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1338
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1332
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1339
1333
  case "ThrottlingException":
1340
1334
  case "com.amazonaws.codeartifact#ThrottlingException":
1341
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1335
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1342
1336
  case "ValidationException":
1343
1337
  case "com.amazonaws.codeartifact#ValidationException":
1344
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1338
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1345
1339
  default:
1346
1340
  const parsedBody = parsedOutput.body;
1347
1341
  throwDefaultError({
@@ -1352,20 +1346,20 @@ const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output,
1352
1346
  });
1353
1347
  }
1354
1348
  };
1355
- export const deserializeAws_restJson1DeleteRepositoryCommand = async (output, context) => {
1349
+ export const de_DeleteRepositoryCommand = async (output, context) => {
1356
1350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1357
- return deserializeAws_restJson1DeleteRepositoryCommandError(output, context);
1351
+ return de_DeleteRepositoryCommandError(output, context);
1358
1352
  }
1359
1353
  const contents = map({
1360
1354
  $metadata: deserializeMetadata(output),
1361
1355
  });
1362
1356
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1363
1357
  if (data.repository != null) {
1364
- contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
1358
+ contents.repository = de_RepositoryDescription(data.repository, context);
1365
1359
  }
1366
1360
  return contents;
1367
1361
  };
1368
- const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, context) => {
1362
+ const de_DeleteRepositoryCommandError = async (output, context) => {
1369
1363
  const parsedOutput = {
1370
1364
  ...output,
1371
1365
  body: await parseErrorBody(output.body, context),
@@ -1374,22 +1368,22 @@ const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, cont
1374
1368
  switch (errorCode) {
1375
1369
  case "AccessDeniedException":
1376
1370
  case "com.amazonaws.codeartifact#AccessDeniedException":
1377
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1371
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1378
1372
  case "ConflictException":
1379
1373
  case "com.amazonaws.codeartifact#ConflictException":
1380
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1374
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1381
1375
  case "InternalServerException":
1382
1376
  case "com.amazonaws.codeartifact#InternalServerException":
1383
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1377
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1384
1378
  case "ResourceNotFoundException":
1385
1379
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1386
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1380
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1387
1381
  case "ThrottlingException":
1388
1382
  case "com.amazonaws.codeartifact#ThrottlingException":
1389
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1383
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1390
1384
  case "ValidationException":
1391
1385
  case "com.amazonaws.codeartifact#ValidationException":
1392
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1386
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1393
1387
  default:
1394
1388
  const parsedBody = parsedOutput.body;
1395
1389
  throwDefaultError({
@@ -1400,20 +1394,20 @@ const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, cont
1400
1394
  });
1401
1395
  }
1402
1396
  };
1403
- export const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = async (output, context) => {
1397
+ export const de_DeleteRepositoryPermissionsPolicyCommand = async (output, context) => {
1404
1398
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1405
- return deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError(output, context);
1399
+ return de_DeleteRepositoryPermissionsPolicyCommandError(output, context);
1406
1400
  }
1407
1401
  const contents = map({
1408
1402
  $metadata: deserializeMetadata(output),
1409
1403
  });
1410
1404
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1411
1405
  if (data.policy != null) {
1412
- contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
1406
+ contents.policy = de_ResourcePolicy(data.policy, context);
1413
1407
  }
1414
1408
  return contents;
1415
1409
  };
1416
- const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = async (output, context) => {
1410
+ const de_DeleteRepositoryPermissionsPolicyCommandError = async (output, context) => {
1417
1411
  const parsedOutput = {
1418
1412
  ...output,
1419
1413
  body: await parseErrorBody(output.body, context),
@@ -1422,22 +1416,22 @@ const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = as
1422
1416
  switch (errorCode) {
1423
1417
  case "AccessDeniedException":
1424
1418
  case "com.amazonaws.codeartifact#AccessDeniedException":
1425
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1419
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1426
1420
  case "ConflictException":
1427
1421
  case "com.amazonaws.codeartifact#ConflictException":
1428
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1422
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1429
1423
  case "InternalServerException":
1430
1424
  case "com.amazonaws.codeartifact#InternalServerException":
1431
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1425
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1432
1426
  case "ResourceNotFoundException":
1433
1427
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1434
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1428
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1435
1429
  case "ThrottlingException":
1436
1430
  case "com.amazonaws.codeartifact#ThrottlingException":
1437
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1431
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1438
1432
  case "ValidationException":
1439
1433
  case "com.amazonaws.codeartifact#ValidationException":
1440
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1434
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1441
1435
  default:
1442
1436
  const parsedBody = parsedOutput.body;
1443
1437
  throwDefaultError({
@@ -1448,20 +1442,20 @@ const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = as
1448
1442
  });
1449
1443
  }
1450
1444
  };
1451
- export const deserializeAws_restJson1DescribeDomainCommand = async (output, context) => {
1445
+ export const de_DescribeDomainCommand = async (output, context) => {
1452
1446
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1453
- return deserializeAws_restJson1DescribeDomainCommandError(output, context);
1447
+ return de_DescribeDomainCommandError(output, context);
1454
1448
  }
1455
1449
  const contents = map({
1456
1450
  $metadata: deserializeMetadata(output),
1457
1451
  });
1458
1452
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1459
1453
  if (data.domain != null) {
1460
- contents.domain = deserializeAws_restJson1DomainDescription(data.domain, context);
1454
+ contents.domain = de_DomainDescription(data.domain, context);
1461
1455
  }
1462
1456
  return contents;
1463
1457
  };
1464
- const deserializeAws_restJson1DescribeDomainCommandError = async (output, context) => {
1458
+ const de_DescribeDomainCommandError = async (output, context) => {
1465
1459
  const parsedOutput = {
1466
1460
  ...output,
1467
1461
  body: await parseErrorBody(output.body, context),
@@ -1470,19 +1464,19 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
1470
1464
  switch (errorCode) {
1471
1465
  case "AccessDeniedException":
1472
1466
  case "com.amazonaws.codeartifact#AccessDeniedException":
1473
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1467
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1474
1468
  case "InternalServerException":
1475
1469
  case "com.amazonaws.codeartifact#InternalServerException":
1476
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1470
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1477
1471
  case "ResourceNotFoundException":
1478
1472
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1479
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1473
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1480
1474
  case "ThrottlingException":
1481
1475
  case "com.amazonaws.codeartifact#ThrottlingException":
1482
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1476
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1483
1477
  case "ValidationException":
1484
1478
  case "com.amazonaws.codeartifact#ValidationException":
1485
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1479
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1486
1480
  default:
1487
1481
  const parsedBody = parsedOutput.body;
1488
1482
  throwDefaultError({
@@ -1493,20 +1487,20 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
1493
1487
  });
1494
1488
  }
1495
1489
  };
1496
- export const deserializeAws_restJson1DescribePackageCommand = async (output, context) => {
1490
+ export const de_DescribePackageCommand = async (output, context) => {
1497
1491
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1498
- return deserializeAws_restJson1DescribePackageCommandError(output, context);
1492
+ return de_DescribePackageCommandError(output, context);
1499
1493
  }
1500
1494
  const contents = map({
1501
1495
  $metadata: deserializeMetadata(output),
1502
1496
  });
1503
1497
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1504
1498
  if (data.package != null) {
1505
- contents.package = deserializeAws_restJson1PackageDescription(data.package, context);
1499
+ contents.package = de_PackageDescription(data.package, context);
1506
1500
  }
1507
1501
  return contents;
1508
1502
  };
1509
- const deserializeAws_restJson1DescribePackageCommandError = async (output, context) => {
1503
+ const de_DescribePackageCommandError = async (output, context) => {
1510
1504
  const parsedOutput = {
1511
1505
  ...output,
1512
1506
  body: await parseErrorBody(output.body, context),
@@ -1515,19 +1509,19 @@ const deserializeAws_restJson1DescribePackageCommandError = async (output, conte
1515
1509
  switch (errorCode) {
1516
1510
  case "AccessDeniedException":
1517
1511
  case "com.amazonaws.codeartifact#AccessDeniedException":
1518
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1512
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1519
1513
  case "InternalServerException":
1520
1514
  case "com.amazonaws.codeartifact#InternalServerException":
1521
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1515
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1522
1516
  case "ResourceNotFoundException":
1523
1517
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1524
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1518
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1525
1519
  case "ThrottlingException":
1526
1520
  case "com.amazonaws.codeartifact#ThrottlingException":
1527
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1521
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1528
1522
  case "ValidationException":
1529
1523
  case "com.amazonaws.codeartifact#ValidationException":
1530
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1524
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1531
1525
  default:
1532
1526
  const parsedBody = parsedOutput.body;
1533
1527
  throwDefaultError({
@@ -1538,20 +1532,20 @@ const deserializeAws_restJson1DescribePackageCommandError = async (output, conte
1538
1532
  });
1539
1533
  }
1540
1534
  };
1541
- export const deserializeAws_restJson1DescribePackageVersionCommand = async (output, context) => {
1535
+ export const de_DescribePackageVersionCommand = async (output, context) => {
1542
1536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1543
- return deserializeAws_restJson1DescribePackageVersionCommandError(output, context);
1537
+ return de_DescribePackageVersionCommandError(output, context);
1544
1538
  }
1545
1539
  const contents = map({
1546
1540
  $metadata: deserializeMetadata(output),
1547
1541
  });
1548
1542
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1549
1543
  if (data.packageVersion != null) {
1550
- contents.packageVersion = deserializeAws_restJson1PackageVersionDescription(data.packageVersion, context);
1544
+ contents.packageVersion = de_PackageVersionDescription(data.packageVersion, context);
1551
1545
  }
1552
1546
  return contents;
1553
1547
  };
1554
- const deserializeAws_restJson1DescribePackageVersionCommandError = async (output, context) => {
1548
+ const de_DescribePackageVersionCommandError = async (output, context) => {
1555
1549
  const parsedOutput = {
1556
1550
  ...output,
1557
1551
  body: await parseErrorBody(output.body, context),
@@ -1560,22 +1554,22 @@ const deserializeAws_restJson1DescribePackageVersionCommandError = async (output
1560
1554
  switch (errorCode) {
1561
1555
  case "AccessDeniedException":
1562
1556
  case "com.amazonaws.codeartifact#AccessDeniedException":
1563
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1557
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1564
1558
  case "ConflictException":
1565
1559
  case "com.amazonaws.codeartifact#ConflictException":
1566
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1560
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1567
1561
  case "InternalServerException":
1568
1562
  case "com.amazonaws.codeartifact#InternalServerException":
1569
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1563
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1570
1564
  case "ResourceNotFoundException":
1571
1565
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1572
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1566
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1573
1567
  case "ThrottlingException":
1574
1568
  case "com.amazonaws.codeartifact#ThrottlingException":
1575
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1569
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1576
1570
  case "ValidationException":
1577
1571
  case "com.amazonaws.codeartifact#ValidationException":
1578
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1572
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1579
1573
  default:
1580
1574
  const parsedBody = parsedOutput.body;
1581
1575
  throwDefaultError({
@@ -1586,20 +1580,20 @@ const deserializeAws_restJson1DescribePackageVersionCommandError = async (output
1586
1580
  });
1587
1581
  }
1588
1582
  };
1589
- export const deserializeAws_restJson1DescribeRepositoryCommand = async (output, context) => {
1583
+ export const de_DescribeRepositoryCommand = async (output, context) => {
1590
1584
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1591
- return deserializeAws_restJson1DescribeRepositoryCommandError(output, context);
1585
+ return de_DescribeRepositoryCommandError(output, context);
1592
1586
  }
1593
1587
  const contents = map({
1594
1588
  $metadata: deserializeMetadata(output),
1595
1589
  });
1596
1590
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1597
1591
  if (data.repository != null) {
1598
- contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
1592
+ contents.repository = de_RepositoryDescription(data.repository, context);
1599
1593
  }
1600
1594
  return contents;
1601
1595
  };
1602
- const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, context) => {
1596
+ const de_DescribeRepositoryCommandError = async (output, context) => {
1603
1597
  const parsedOutput = {
1604
1598
  ...output,
1605
1599
  body: await parseErrorBody(output.body, context),
@@ -1608,19 +1602,19 @@ const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, co
1608
1602
  switch (errorCode) {
1609
1603
  case "AccessDeniedException":
1610
1604
  case "com.amazonaws.codeartifact#AccessDeniedException":
1611
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1605
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1612
1606
  case "InternalServerException":
1613
1607
  case "com.amazonaws.codeartifact#InternalServerException":
1614
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1608
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1615
1609
  case "ResourceNotFoundException":
1616
1610
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1617
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1611
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1618
1612
  case "ThrottlingException":
1619
1613
  case "com.amazonaws.codeartifact#ThrottlingException":
1620
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1614
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1621
1615
  case "ValidationException":
1622
1616
  case "com.amazonaws.codeartifact#ValidationException":
1623
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1617
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1624
1618
  default:
1625
1619
  const parsedBody = parsedOutput.body;
1626
1620
  throwDefaultError({
@@ -1631,20 +1625,20 @@ const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, co
1631
1625
  });
1632
1626
  }
1633
1627
  };
1634
- export const deserializeAws_restJson1DisassociateExternalConnectionCommand = async (output, context) => {
1628
+ export const de_DisassociateExternalConnectionCommand = async (output, context) => {
1635
1629
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1636
- return deserializeAws_restJson1DisassociateExternalConnectionCommandError(output, context);
1630
+ return de_DisassociateExternalConnectionCommandError(output, context);
1637
1631
  }
1638
1632
  const contents = map({
1639
1633
  $metadata: deserializeMetadata(output),
1640
1634
  });
1641
1635
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1642
1636
  if (data.repository != null) {
1643
- contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
1637
+ contents.repository = de_RepositoryDescription(data.repository, context);
1644
1638
  }
1645
1639
  return contents;
1646
1640
  };
1647
- const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async (output, context) => {
1641
+ const de_DisassociateExternalConnectionCommandError = async (output, context) => {
1648
1642
  const parsedOutput = {
1649
1643
  ...output,
1650
1644
  body: await parseErrorBody(output.body, context),
@@ -1653,25 +1647,25 @@ const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async
1653
1647
  switch (errorCode) {
1654
1648
  case "AccessDeniedException":
1655
1649
  case "com.amazonaws.codeartifact#AccessDeniedException":
1656
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1650
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1657
1651
  case "ConflictException":
1658
1652
  case "com.amazonaws.codeartifact#ConflictException":
1659
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1653
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1660
1654
  case "InternalServerException":
1661
1655
  case "com.amazonaws.codeartifact#InternalServerException":
1662
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1656
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1663
1657
  case "ResourceNotFoundException":
1664
1658
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1665
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1659
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1666
1660
  case "ServiceQuotaExceededException":
1667
1661
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
1668
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1662
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1669
1663
  case "ThrottlingException":
1670
1664
  case "com.amazonaws.codeartifact#ThrottlingException":
1671
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1665
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1672
1666
  case "ValidationException":
1673
1667
  case "com.amazonaws.codeartifact#ValidationException":
1674
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1668
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1675
1669
  default:
1676
1670
  const parsedBody = parsedOutput.body;
1677
1671
  throwDefaultError({
@@ -1682,23 +1676,23 @@ const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async
1682
1676
  });
1683
1677
  }
1684
1678
  };
1685
- export const deserializeAws_restJson1DisposePackageVersionsCommand = async (output, context) => {
1679
+ export const de_DisposePackageVersionsCommand = async (output, context) => {
1686
1680
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1687
- return deserializeAws_restJson1DisposePackageVersionsCommandError(output, context);
1681
+ return de_DisposePackageVersionsCommandError(output, context);
1688
1682
  }
1689
1683
  const contents = map({
1690
1684
  $metadata: deserializeMetadata(output),
1691
1685
  });
1692
1686
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1693
1687
  if (data.failedVersions != null) {
1694
- contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
1688
+ contents.failedVersions = de_PackageVersionErrorMap(data.failedVersions, context);
1695
1689
  }
1696
1690
  if (data.successfulVersions != null) {
1697
- contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
1691
+ contents.successfulVersions = de_SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
1698
1692
  }
1699
1693
  return contents;
1700
1694
  };
1701
- const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output, context) => {
1695
+ const de_DisposePackageVersionsCommandError = async (output, context) => {
1702
1696
  const parsedOutput = {
1703
1697
  ...output,
1704
1698
  body: await parseErrorBody(output.body, context),
@@ -1707,22 +1701,22 @@ const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output
1707
1701
  switch (errorCode) {
1708
1702
  case "AccessDeniedException":
1709
1703
  case "com.amazonaws.codeartifact#AccessDeniedException":
1710
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1704
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1711
1705
  case "ConflictException":
1712
1706
  case "com.amazonaws.codeartifact#ConflictException":
1713
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1707
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1714
1708
  case "InternalServerException":
1715
1709
  case "com.amazonaws.codeartifact#InternalServerException":
1716
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1710
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1717
1711
  case "ResourceNotFoundException":
1718
1712
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1719
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1713
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1720
1714
  case "ThrottlingException":
1721
1715
  case "com.amazonaws.codeartifact#ThrottlingException":
1722
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1716
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1723
1717
  case "ValidationException":
1724
1718
  case "com.amazonaws.codeartifact#ValidationException":
1725
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1719
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1726
1720
  default:
1727
1721
  const parsedBody = parsedOutput.body;
1728
1722
  throwDefaultError({
@@ -1733,9 +1727,9 @@ const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output
1733
1727
  });
1734
1728
  }
1735
1729
  };
1736
- export const deserializeAws_restJson1GetAuthorizationTokenCommand = async (output, context) => {
1730
+ export const de_GetAuthorizationTokenCommand = async (output, context) => {
1737
1731
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1738
- return deserializeAws_restJson1GetAuthorizationTokenCommandError(output, context);
1732
+ return de_GetAuthorizationTokenCommandError(output, context);
1739
1733
  }
1740
1734
  const contents = map({
1741
1735
  $metadata: deserializeMetadata(output),
@@ -1749,7 +1743,7 @@ export const deserializeAws_restJson1GetAuthorizationTokenCommand = async (outpu
1749
1743
  }
1750
1744
  return contents;
1751
1745
  };
1752
- const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output, context) => {
1746
+ const de_GetAuthorizationTokenCommandError = async (output, context) => {
1753
1747
  const parsedOutput = {
1754
1748
  ...output,
1755
1749
  body: await parseErrorBody(output.body, context),
@@ -1758,19 +1752,19 @@ const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output,
1758
1752
  switch (errorCode) {
1759
1753
  case "AccessDeniedException":
1760
1754
  case "com.amazonaws.codeartifact#AccessDeniedException":
1761
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1755
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1762
1756
  case "InternalServerException":
1763
1757
  case "com.amazonaws.codeartifact#InternalServerException":
1764
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1758
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1765
1759
  case "ResourceNotFoundException":
1766
1760
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1767
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1761
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1768
1762
  case "ThrottlingException":
1769
1763
  case "com.amazonaws.codeartifact#ThrottlingException":
1770
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1764
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1771
1765
  case "ValidationException":
1772
1766
  case "com.amazonaws.codeartifact#ValidationException":
1773
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1767
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1774
1768
  default:
1775
1769
  const parsedBody = parsedOutput.body;
1776
1770
  throwDefaultError({
@@ -1781,20 +1775,20 @@ const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output,
1781
1775
  });
1782
1776
  }
1783
1777
  };
1784
- export const deserializeAws_restJson1GetDomainPermissionsPolicyCommand = async (output, context) => {
1778
+ export const de_GetDomainPermissionsPolicyCommand = async (output, context) => {
1785
1779
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1786
- return deserializeAws_restJson1GetDomainPermissionsPolicyCommandError(output, context);
1780
+ return de_GetDomainPermissionsPolicyCommandError(output, context);
1787
1781
  }
1788
1782
  const contents = map({
1789
1783
  $metadata: deserializeMetadata(output),
1790
1784
  });
1791
1785
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1792
1786
  if (data.policy != null) {
1793
- contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
1787
+ contents.policy = de_ResourcePolicy(data.policy, context);
1794
1788
  }
1795
1789
  return contents;
1796
1790
  };
1797
- const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (output, context) => {
1791
+ const de_GetDomainPermissionsPolicyCommandError = async (output, context) => {
1798
1792
  const parsedOutput = {
1799
1793
  ...output,
1800
1794
  body: await parseErrorBody(output.body, context),
@@ -1803,19 +1797,19 @@ const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (ou
1803
1797
  switch (errorCode) {
1804
1798
  case "AccessDeniedException":
1805
1799
  case "com.amazonaws.codeartifact#AccessDeniedException":
1806
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1800
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1807
1801
  case "InternalServerException":
1808
1802
  case "com.amazonaws.codeartifact#InternalServerException":
1809
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1803
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1810
1804
  case "ResourceNotFoundException":
1811
1805
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1812
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1806
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1813
1807
  case "ThrottlingException":
1814
1808
  case "com.amazonaws.codeartifact#ThrottlingException":
1815
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1809
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1816
1810
  case "ValidationException":
1817
1811
  case "com.amazonaws.codeartifact#ValidationException":
1818
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1812
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1819
1813
  default:
1820
1814
  const parsedBody = parsedOutput.body;
1821
1815
  throwDefaultError({
@@ -1826,9 +1820,9 @@ const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (ou
1826
1820
  });
1827
1821
  }
1828
1822
  };
1829
- export const deserializeAws_restJson1GetPackageVersionAssetCommand = async (output, context) => {
1823
+ export const de_GetPackageVersionAssetCommand = async (output, context) => {
1830
1824
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
- return deserializeAws_restJson1GetPackageVersionAssetCommandError(output, context);
1825
+ return de_GetPackageVersionAssetCommandError(output, context);
1832
1826
  }
1833
1827
  const contents = map({
1834
1828
  $metadata: deserializeMetadata(output),
@@ -1841,7 +1835,7 @@ export const deserializeAws_restJson1GetPackageVersionAssetCommand = async (outp
1841
1835
  contents.asset = data;
1842
1836
  return contents;
1843
1837
  };
1844
- const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output, context) => {
1838
+ const de_GetPackageVersionAssetCommandError = async (output, context) => {
1845
1839
  const parsedOutput = {
1846
1840
  ...output,
1847
1841
  body: await parseErrorBody(output.body, context),
@@ -1850,22 +1844,22 @@ const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output
1850
1844
  switch (errorCode) {
1851
1845
  case "AccessDeniedException":
1852
1846
  case "com.amazonaws.codeartifact#AccessDeniedException":
1853
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1847
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1854
1848
  case "ConflictException":
1855
1849
  case "com.amazonaws.codeartifact#ConflictException":
1856
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1850
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1857
1851
  case "InternalServerException":
1858
1852
  case "com.amazonaws.codeartifact#InternalServerException":
1859
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1853
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1860
1854
  case "ResourceNotFoundException":
1861
1855
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1862
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1856
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1863
1857
  case "ThrottlingException":
1864
1858
  case "com.amazonaws.codeartifact#ThrottlingException":
1865
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1859
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1866
1860
  case "ValidationException":
1867
1861
  case "com.amazonaws.codeartifact#ValidationException":
1868
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1862
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1869
1863
  default:
1870
1864
  const parsedBody = parsedOutput.body;
1871
1865
  throwDefaultError({
@@ -1876,9 +1870,9 @@ const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output
1876
1870
  });
1877
1871
  }
1878
1872
  };
1879
- export const deserializeAws_restJson1GetPackageVersionReadmeCommand = async (output, context) => {
1873
+ export const de_GetPackageVersionReadmeCommand = async (output, context) => {
1880
1874
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1881
- return deserializeAws_restJson1GetPackageVersionReadmeCommandError(output, context);
1875
+ return de_GetPackageVersionReadmeCommandError(output, context);
1882
1876
  }
1883
1877
  const contents = map({
1884
1878
  $metadata: deserializeMetadata(output),
@@ -1904,7 +1898,7 @@ export const deserializeAws_restJson1GetPackageVersionReadmeCommand = async (out
1904
1898
  }
1905
1899
  return contents;
1906
1900
  };
1907
- const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (output, context) => {
1901
+ const de_GetPackageVersionReadmeCommandError = async (output, context) => {
1908
1902
  const parsedOutput = {
1909
1903
  ...output,
1910
1904
  body: await parseErrorBody(output.body, context),
@@ -1913,19 +1907,19 @@ const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (outpu
1913
1907
  switch (errorCode) {
1914
1908
  case "AccessDeniedException":
1915
1909
  case "com.amazonaws.codeartifact#AccessDeniedException":
1916
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1910
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1917
1911
  case "InternalServerException":
1918
1912
  case "com.amazonaws.codeartifact#InternalServerException":
1919
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1913
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1920
1914
  case "ResourceNotFoundException":
1921
1915
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1922
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1916
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1923
1917
  case "ThrottlingException":
1924
1918
  case "com.amazonaws.codeartifact#ThrottlingException":
1925
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1919
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1926
1920
  case "ValidationException":
1927
1921
  case "com.amazonaws.codeartifact#ValidationException":
1928
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1922
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1929
1923
  default:
1930
1924
  const parsedBody = parsedOutput.body;
1931
1925
  throwDefaultError({
@@ -1936,9 +1930,9 @@ const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (outpu
1936
1930
  });
1937
1931
  }
1938
1932
  };
1939
- export const deserializeAws_restJson1GetRepositoryEndpointCommand = async (output, context) => {
1933
+ export const de_GetRepositoryEndpointCommand = async (output, context) => {
1940
1934
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1941
- return deserializeAws_restJson1GetRepositoryEndpointCommandError(output, context);
1935
+ return de_GetRepositoryEndpointCommandError(output, context);
1942
1936
  }
1943
1937
  const contents = map({
1944
1938
  $metadata: deserializeMetadata(output),
@@ -1949,7 +1943,7 @@ export const deserializeAws_restJson1GetRepositoryEndpointCommand = async (outpu
1949
1943
  }
1950
1944
  return contents;
1951
1945
  };
1952
- const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output, context) => {
1946
+ const de_GetRepositoryEndpointCommandError = async (output, context) => {
1953
1947
  const parsedOutput = {
1954
1948
  ...output,
1955
1949
  body: await parseErrorBody(output.body, context),
@@ -1958,19 +1952,19 @@ const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output,
1958
1952
  switch (errorCode) {
1959
1953
  case "AccessDeniedException":
1960
1954
  case "com.amazonaws.codeartifact#AccessDeniedException":
1961
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1955
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1962
1956
  case "InternalServerException":
1963
1957
  case "com.amazonaws.codeartifact#InternalServerException":
1964
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1958
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1965
1959
  case "ResourceNotFoundException":
1966
1960
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
1967
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1961
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1968
1962
  case "ThrottlingException":
1969
1963
  case "com.amazonaws.codeartifact#ThrottlingException":
1970
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1964
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1971
1965
  case "ValidationException":
1972
1966
  case "com.amazonaws.codeartifact#ValidationException":
1973
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1967
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1974
1968
  default:
1975
1969
  const parsedBody = parsedOutput.body;
1976
1970
  throwDefaultError({
@@ -1981,20 +1975,20 @@ const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output,
1981
1975
  });
1982
1976
  }
1983
1977
  };
1984
- export const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand = async (output, context) => {
1978
+ export const de_GetRepositoryPermissionsPolicyCommand = async (output, context) => {
1985
1979
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1986
- return deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError(output, context);
1980
+ return de_GetRepositoryPermissionsPolicyCommandError(output, context);
1987
1981
  }
1988
1982
  const contents = map({
1989
1983
  $metadata: deserializeMetadata(output),
1990
1984
  });
1991
1985
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1992
1986
  if (data.policy != null) {
1993
- contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
1987
+ contents.policy = de_ResourcePolicy(data.policy, context);
1994
1988
  }
1995
1989
  return contents;
1996
1990
  };
1997
- const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async (output, context) => {
1991
+ const de_GetRepositoryPermissionsPolicyCommandError = async (output, context) => {
1998
1992
  const parsedOutput = {
1999
1993
  ...output,
2000
1994
  body: await parseErrorBody(output.body, context),
@@ -2003,19 +1997,19 @@ const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async
2003
1997
  switch (errorCode) {
2004
1998
  case "AccessDeniedException":
2005
1999
  case "com.amazonaws.codeartifact#AccessDeniedException":
2006
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2000
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2007
2001
  case "InternalServerException":
2008
2002
  case "com.amazonaws.codeartifact#InternalServerException":
2009
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2003
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2010
2004
  case "ResourceNotFoundException":
2011
2005
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2012
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2006
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2013
2007
  case "ThrottlingException":
2014
2008
  case "com.amazonaws.codeartifact#ThrottlingException":
2015
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2009
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2016
2010
  case "ValidationException":
2017
2011
  case "com.amazonaws.codeartifact#ValidationException":
2018
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2012
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2019
2013
  default:
2020
2014
  const parsedBody = parsedOutput.body;
2021
2015
  throwDefaultError({
@@ -2026,23 +2020,23 @@ const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async
2026
2020
  });
2027
2021
  }
2028
2022
  };
2029
- export const deserializeAws_restJson1ListDomainsCommand = async (output, context) => {
2023
+ export const de_ListDomainsCommand = async (output, context) => {
2030
2024
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2031
- return deserializeAws_restJson1ListDomainsCommandError(output, context);
2025
+ return de_ListDomainsCommandError(output, context);
2032
2026
  }
2033
2027
  const contents = map({
2034
2028
  $metadata: deserializeMetadata(output),
2035
2029
  });
2036
2030
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2037
2031
  if (data.domains != null) {
2038
- contents.domains = deserializeAws_restJson1DomainSummaryList(data.domains, context);
2032
+ contents.domains = de_DomainSummaryList(data.domains, context);
2039
2033
  }
2040
2034
  if (data.nextToken != null) {
2041
2035
  contents.nextToken = __expectString(data.nextToken);
2042
2036
  }
2043
2037
  return contents;
2044
2038
  };
2045
- const deserializeAws_restJson1ListDomainsCommandError = async (output, context) => {
2039
+ const de_ListDomainsCommandError = async (output, context) => {
2046
2040
  const parsedOutput = {
2047
2041
  ...output,
2048
2042
  body: await parseErrorBody(output.body, context),
@@ -2051,16 +2045,16 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
2051
2045
  switch (errorCode) {
2052
2046
  case "AccessDeniedException":
2053
2047
  case "com.amazonaws.codeartifact#AccessDeniedException":
2054
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2048
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2055
2049
  case "InternalServerException":
2056
2050
  case "com.amazonaws.codeartifact#InternalServerException":
2057
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2051
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2058
2052
  case "ThrottlingException":
2059
2053
  case "com.amazonaws.codeartifact#ThrottlingException":
2060
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2054
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2061
2055
  case "ValidationException":
2062
2056
  case "com.amazonaws.codeartifact#ValidationException":
2063
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2057
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2064
2058
  default:
2065
2059
  const parsedBody = parsedOutput.body;
2066
2060
  throwDefaultError({
@@ -2071,9 +2065,9 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
2071
2065
  });
2072
2066
  }
2073
2067
  };
2074
- export const deserializeAws_restJson1ListPackagesCommand = async (output, context) => {
2068
+ export const de_ListPackagesCommand = async (output, context) => {
2075
2069
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2076
- return deserializeAws_restJson1ListPackagesCommandError(output, context);
2070
+ return de_ListPackagesCommandError(output, context);
2077
2071
  }
2078
2072
  const contents = map({
2079
2073
  $metadata: deserializeMetadata(output),
@@ -2083,11 +2077,11 @@ export const deserializeAws_restJson1ListPackagesCommand = async (output, contex
2083
2077
  contents.nextToken = __expectString(data.nextToken);
2084
2078
  }
2085
2079
  if (data.packages != null) {
2086
- contents.packages = deserializeAws_restJson1PackageSummaryList(data.packages, context);
2080
+ contents.packages = de_PackageSummaryList(data.packages, context);
2087
2081
  }
2088
2082
  return contents;
2089
2083
  };
2090
- const deserializeAws_restJson1ListPackagesCommandError = async (output, context) => {
2084
+ const de_ListPackagesCommandError = async (output, context) => {
2091
2085
  const parsedOutput = {
2092
2086
  ...output,
2093
2087
  body: await parseErrorBody(output.body, context),
@@ -2096,19 +2090,19 @@ const deserializeAws_restJson1ListPackagesCommandError = async (output, context)
2096
2090
  switch (errorCode) {
2097
2091
  case "AccessDeniedException":
2098
2092
  case "com.amazonaws.codeartifact#AccessDeniedException":
2099
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2093
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2100
2094
  case "InternalServerException":
2101
2095
  case "com.amazonaws.codeartifact#InternalServerException":
2102
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2096
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2103
2097
  case "ResourceNotFoundException":
2104
2098
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2105
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2099
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2106
2100
  case "ThrottlingException":
2107
2101
  case "com.amazonaws.codeartifact#ThrottlingException":
2108
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2102
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2109
2103
  case "ValidationException":
2110
2104
  case "com.amazonaws.codeartifact#ValidationException":
2111
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2105
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2112
2106
  default:
2113
2107
  const parsedBody = parsedOutput.body;
2114
2108
  throwDefaultError({
@@ -2119,16 +2113,16 @@ const deserializeAws_restJson1ListPackagesCommandError = async (output, context)
2119
2113
  });
2120
2114
  }
2121
2115
  };
2122
- export const deserializeAws_restJson1ListPackageVersionAssetsCommand = async (output, context) => {
2116
+ export const de_ListPackageVersionAssetsCommand = async (output, context) => {
2123
2117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2124
- return deserializeAws_restJson1ListPackageVersionAssetsCommandError(output, context);
2118
+ return de_ListPackageVersionAssetsCommandError(output, context);
2125
2119
  }
2126
2120
  const contents = map({
2127
2121
  $metadata: deserializeMetadata(output),
2128
2122
  });
2129
2123
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2130
2124
  if (data.assets != null) {
2131
- contents.assets = deserializeAws_restJson1AssetSummaryList(data.assets, context);
2125
+ contents.assets = de_AssetSummaryList(data.assets, context);
2132
2126
  }
2133
2127
  if (data.format != null) {
2134
2128
  contents.format = __expectString(data.format);
@@ -2150,7 +2144,7 @@ export const deserializeAws_restJson1ListPackageVersionAssetsCommand = async (ou
2150
2144
  }
2151
2145
  return contents;
2152
2146
  };
2153
- const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (output, context) => {
2147
+ const de_ListPackageVersionAssetsCommandError = async (output, context) => {
2154
2148
  const parsedOutput = {
2155
2149
  ...output,
2156
2150
  body: await parseErrorBody(output.body, context),
@@ -2159,19 +2153,19 @@ const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (outp
2159
2153
  switch (errorCode) {
2160
2154
  case "AccessDeniedException":
2161
2155
  case "com.amazonaws.codeartifact#AccessDeniedException":
2162
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2156
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2163
2157
  case "InternalServerException":
2164
2158
  case "com.amazonaws.codeartifact#InternalServerException":
2165
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2159
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2166
2160
  case "ResourceNotFoundException":
2167
2161
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2168
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2162
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2169
2163
  case "ThrottlingException":
2170
2164
  case "com.amazonaws.codeartifact#ThrottlingException":
2171
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2165
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2172
2166
  case "ValidationException":
2173
2167
  case "com.amazonaws.codeartifact#ValidationException":
2174
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2168
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2175
2169
  default:
2176
2170
  const parsedBody = parsedOutput.body;
2177
2171
  throwDefaultError({
@@ -2182,16 +2176,16 @@ const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (outp
2182
2176
  });
2183
2177
  }
2184
2178
  };
2185
- export const deserializeAws_restJson1ListPackageVersionDependenciesCommand = async (output, context) => {
2179
+ export const de_ListPackageVersionDependenciesCommand = async (output, context) => {
2186
2180
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2187
- return deserializeAws_restJson1ListPackageVersionDependenciesCommandError(output, context);
2181
+ return de_ListPackageVersionDependenciesCommandError(output, context);
2188
2182
  }
2189
2183
  const contents = map({
2190
2184
  $metadata: deserializeMetadata(output),
2191
2185
  });
2192
2186
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2193
2187
  if (data.dependencies != null) {
2194
- contents.dependencies = deserializeAws_restJson1PackageDependencyList(data.dependencies, context);
2188
+ contents.dependencies = de_PackageDependencyList(data.dependencies, context);
2195
2189
  }
2196
2190
  if (data.format != null) {
2197
2191
  contents.format = __expectString(data.format);
@@ -2213,7 +2207,7 @@ export const deserializeAws_restJson1ListPackageVersionDependenciesCommand = asy
2213
2207
  }
2214
2208
  return contents;
2215
2209
  };
2216
- const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async (output, context) => {
2210
+ const de_ListPackageVersionDependenciesCommandError = async (output, context) => {
2217
2211
  const parsedOutput = {
2218
2212
  ...output,
2219
2213
  body: await parseErrorBody(output.body, context),
@@ -2222,19 +2216,19 @@ const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async
2222
2216
  switch (errorCode) {
2223
2217
  case "AccessDeniedException":
2224
2218
  case "com.amazonaws.codeartifact#AccessDeniedException":
2225
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2219
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2226
2220
  case "InternalServerException":
2227
2221
  case "com.amazonaws.codeartifact#InternalServerException":
2228
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2222
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2229
2223
  case "ResourceNotFoundException":
2230
2224
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2231
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2225
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2232
2226
  case "ThrottlingException":
2233
2227
  case "com.amazonaws.codeartifact#ThrottlingException":
2234
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2228
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2235
2229
  case "ValidationException":
2236
2230
  case "com.amazonaws.codeartifact#ValidationException":
2237
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2231
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2238
2232
  default:
2239
2233
  const parsedBody = parsedOutput.body;
2240
2234
  throwDefaultError({
@@ -2245,9 +2239,9 @@ const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async
2245
2239
  });
2246
2240
  }
2247
2241
  };
2248
- export const deserializeAws_restJson1ListPackageVersionsCommand = async (output, context) => {
2242
+ export const de_ListPackageVersionsCommand = async (output, context) => {
2249
2243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2250
- return deserializeAws_restJson1ListPackageVersionsCommandError(output, context);
2244
+ return de_ListPackageVersionsCommandError(output, context);
2251
2245
  }
2252
2246
  const contents = map({
2253
2247
  $metadata: deserializeMetadata(output),
@@ -2269,11 +2263,11 @@ export const deserializeAws_restJson1ListPackageVersionsCommand = async (output,
2269
2263
  contents.package = __expectString(data.package);
2270
2264
  }
2271
2265
  if (data.versions != null) {
2272
- contents.versions = deserializeAws_restJson1PackageVersionSummaryList(data.versions, context);
2266
+ contents.versions = de_PackageVersionSummaryList(data.versions, context);
2273
2267
  }
2274
2268
  return contents;
2275
2269
  };
2276
- const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, context) => {
2270
+ const de_ListPackageVersionsCommandError = async (output, context) => {
2277
2271
  const parsedOutput = {
2278
2272
  ...output,
2279
2273
  body: await parseErrorBody(output.body, context),
@@ -2282,19 +2276,19 @@ const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, c
2282
2276
  switch (errorCode) {
2283
2277
  case "AccessDeniedException":
2284
2278
  case "com.amazonaws.codeartifact#AccessDeniedException":
2285
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2279
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2286
2280
  case "InternalServerException":
2287
2281
  case "com.amazonaws.codeartifact#InternalServerException":
2288
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2282
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2289
2283
  case "ResourceNotFoundException":
2290
2284
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2291
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2285
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2292
2286
  case "ThrottlingException":
2293
2287
  case "com.amazonaws.codeartifact#ThrottlingException":
2294
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2288
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2295
2289
  case "ValidationException":
2296
2290
  case "com.amazonaws.codeartifact#ValidationException":
2297
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2291
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2298
2292
  default:
2299
2293
  const parsedBody = parsedOutput.body;
2300
2294
  throwDefaultError({
@@ -2305,9 +2299,9 @@ const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, c
2305
2299
  });
2306
2300
  }
2307
2301
  };
2308
- export const deserializeAws_restJson1ListRepositoriesCommand = async (output, context) => {
2302
+ export const de_ListRepositoriesCommand = async (output, context) => {
2309
2303
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2310
- return deserializeAws_restJson1ListRepositoriesCommandError(output, context);
2304
+ return de_ListRepositoriesCommandError(output, context);
2311
2305
  }
2312
2306
  const contents = map({
2313
2307
  $metadata: deserializeMetadata(output),
@@ -2317,11 +2311,11 @@ export const deserializeAws_restJson1ListRepositoriesCommand = async (output, co
2317
2311
  contents.nextToken = __expectString(data.nextToken);
2318
2312
  }
2319
2313
  if (data.repositories != null) {
2320
- contents.repositories = deserializeAws_restJson1RepositorySummaryList(data.repositories, context);
2314
+ contents.repositories = de_RepositorySummaryList(data.repositories, context);
2321
2315
  }
2322
2316
  return contents;
2323
2317
  };
2324
- const deserializeAws_restJson1ListRepositoriesCommandError = async (output, context) => {
2318
+ const de_ListRepositoriesCommandError = async (output, context) => {
2325
2319
  const parsedOutput = {
2326
2320
  ...output,
2327
2321
  body: await parseErrorBody(output.body, context),
@@ -2330,16 +2324,16 @@ const deserializeAws_restJson1ListRepositoriesCommandError = async (output, cont
2330
2324
  switch (errorCode) {
2331
2325
  case "AccessDeniedException":
2332
2326
  case "com.amazonaws.codeartifact#AccessDeniedException":
2333
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2327
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2334
2328
  case "InternalServerException":
2335
2329
  case "com.amazonaws.codeartifact#InternalServerException":
2336
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2330
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2337
2331
  case "ThrottlingException":
2338
2332
  case "com.amazonaws.codeartifact#ThrottlingException":
2339
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2333
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2340
2334
  case "ValidationException":
2341
2335
  case "com.amazonaws.codeartifact#ValidationException":
2342
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2336
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2343
2337
  default:
2344
2338
  const parsedBody = parsedOutput.body;
2345
2339
  throwDefaultError({
@@ -2350,9 +2344,9 @@ const deserializeAws_restJson1ListRepositoriesCommandError = async (output, cont
2350
2344
  });
2351
2345
  }
2352
2346
  };
2353
- export const deserializeAws_restJson1ListRepositoriesInDomainCommand = async (output, context) => {
2347
+ export const de_ListRepositoriesInDomainCommand = async (output, context) => {
2354
2348
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2355
- return deserializeAws_restJson1ListRepositoriesInDomainCommandError(output, context);
2349
+ return de_ListRepositoriesInDomainCommandError(output, context);
2356
2350
  }
2357
2351
  const contents = map({
2358
2352
  $metadata: deserializeMetadata(output),
@@ -2362,11 +2356,11 @@ export const deserializeAws_restJson1ListRepositoriesInDomainCommand = async (ou
2362
2356
  contents.nextToken = __expectString(data.nextToken);
2363
2357
  }
2364
2358
  if (data.repositories != null) {
2365
- contents.repositories = deserializeAws_restJson1RepositorySummaryList(data.repositories, context);
2359
+ contents.repositories = de_RepositorySummaryList(data.repositories, context);
2366
2360
  }
2367
2361
  return contents;
2368
2362
  };
2369
- const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (output, context) => {
2363
+ const de_ListRepositoriesInDomainCommandError = async (output, context) => {
2370
2364
  const parsedOutput = {
2371
2365
  ...output,
2372
2366
  body: await parseErrorBody(output.body, context),
@@ -2375,19 +2369,19 @@ const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (outp
2375
2369
  switch (errorCode) {
2376
2370
  case "AccessDeniedException":
2377
2371
  case "com.amazonaws.codeartifact#AccessDeniedException":
2378
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2372
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2379
2373
  case "InternalServerException":
2380
2374
  case "com.amazonaws.codeartifact#InternalServerException":
2381
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2375
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2382
2376
  case "ResourceNotFoundException":
2383
2377
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2384
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2378
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2385
2379
  case "ThrottlingException":
2386
2380
  case "com.amazonaws.codeartifact#ThrottlingException":
2387
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2381
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2388
2382
  case "ValidationException":
2389
2383
  case "com.amazonaws.codeartifact#ValidationException":
2390
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2384
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2391
2385
  default:
2392
2386
  const parsedBody = parsedOutput.body;
2393
2387
  throwDefaultError({
@@ -2398,20 +2392,20 @@ const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (outp
2398
2392
  });
2399
2393
  }
2400
2394
  };
2401
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
2395
+ export const de_ListTagsForResourceCommand = async (output, context) => {
2402
2396
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2403
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
2397
+ return de_ListTagsForResourceCommandError(output, context);
2404
2398
  }
2405
2399
  const contents = map({
2406
2400
  $metadata: deserializeMetadata(output),
2407
2401
  });
2408
2402
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2409
2403
  if (data.tags != null) {
2410
- contents.tags = deserializeAws_restJson1TagList(data.tags, context);
2404
+ contents.tags = de_TagList(data.tags, context);
2411
2405
  }
2412
2406
  return contents;
2413
2407
  };
2414
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
2408
+ const de_ListTagsForResourceCommandError = async (output, context) => {
2415
2409
  const parsedOutput = {
2416
2410
  ...output,
2417
2411
  body: await parseErrorBody(output.body, context),
@@ -2420,16 +2414,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2420
2414
  switch (errorCode) {
2421
2415
  case "AccessDeniedException":
2422
2416
  case "com.amazonaws.codeartifact#AccessDeniedException":
2423
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2417
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2424
2418
  case "ResourceNotFoundException":
2425
2419
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2426
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2420
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2427
2421
  case "ThrottlingException":
2428
2422
  case "com.amazonaws.codeartifact#ThrottlingException":
2429
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2423
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2430
2424
  case "ValidationException":
2431
2425
  case "com.amazonaws.codeartifact#ValidationException":
2432
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2426
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2433
2427
  default:
2434
2428
  const parsedBody = parsedOutput.body;
2435
2429
  throwDefaultError({
@@ -2440,16 +2434,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2440
2434
  });
2441
2435
  }
2442
2436
  };
2443
- export const deserializeAws_restJson1PublishPackageVersionCommand = async (output, context) => {
2437
+ export const de_PublishPackageVersionCommand = async (output, context) => {
2444
2438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2445
- return deserializeAws_restJson1PublishPackageVersionCommandError(output, context);
2439
+ return de_PublishPackageVersionCommandError(output, context);
2446
2440
  }
2447
2441
  const contents = map({
2448
2442
  $metadata: deserializeMetadata(output),
2449
2443
  });
2450
2444
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2451
2445
  if (data.asset != null) {
2452
- contents.asset = deserializeAws_restJson1AssetSummary(data.asset, context);
2446
+ contents.asset = de_AssetSummary(data.asset, context);
2453
2447
  }
2454
2448
  if (data.format != null) {
2455
2449
  contents.format = __expectString(data.format);
@@ -2471,7 +2465,7 @@ export const deserializeAws_restJson1PublishPackageVersionCommand = async (outpu
2471
2465
  }
2472
2466
  return contents;
2473
2467
  };
2474
- const deserializeAws_restJson1PublishPackageVersionCommandError = async (output, context) => {
2468
+ const de_PublishPackageVersionCommandError = async (output, context) => {
2475
2469
  const parsedOutput = {
2476
2470
  ...output,
2477
2471
  body: await parseErrorBody(output.body, context),
@@ -2480,25 +2474,25 @@ const deserializeAws_restJson1PublishPackageVersionCommandError = async (output,
2480
2474
  switch (errorCode) {
2481
2475
  case "AccessDeniedException":
2482
2476
  case "com.amazonaws.codeartifact#AccessDeniedException":
2483
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2477
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2484
2478
  case "ConflictException":
2485
2479
  case "com.amazonaws.codeartifact#ConflictException":
2486
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2480
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2487
2481
  case "InternalServerException":
2488
2482
  case "com.amazonaws.codeartifact#InternalServerException":
2489
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2483
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2490
2484
  case "ResourceNotFoundException":
2491
2485
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2492
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2486
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2493
2487
  case "ServiceQuotaExceededException":
2494
2488
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
2495
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2489
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2496
2490
  case "ThrottlingException":
2497
2491
  case "com.amazonaws.codeartifact#ThrottlingException":
2498
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2492
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2499
2493
  case "ValidationException":
2500
2494
  case "com.amazonaws.codeartifact#ValidationException":
2501
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2495
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2502
2496
  default:
2503
2497
  const parsedBody = parsedOutput.body;
2504
2498
  throwDefaultError({
@@ -2509,20 +2503,20 @@ const deserializeAws_restJson1PublishPackageVersionCommandError = async (output,
2509
2503
  });
2510
2504
  }
2511
2505
  };
2512
- export const deserializeAws_restJson1PutDomainPermissionsPolicyCommand = async (output, context) => {
2506
+ export const de_PutDomainPermissionsPolicyCommand = async (output, context) => {
2513
2507
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2514
- return deserializeAws_restJson1PutDomainPermissionsPolicyCommandError(output, context);
2508
+ return de_PutDomainPermissionsPolicyCommandError(output, context);
2515
2509
  }
2516
2510
  const contents = map({
2517
2511
  $metadata: deserializeMetadata(output),
2518
2512
  });
2519
2513
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2520
2514
  if (data.policy != null) {
2521
- contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
2515
+ contents.policy = de_ResourcePolicy(data.policy, context);
2522
2516
  }
2523
2517
  return contents;
2524
2518
  };
2525
- const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (output, context) => {
2519
+ const de_PutDomainPermissionsPolicyCommandError = async (output, context) => {
2526
2520
  const parsedOutput = {
2527
2521
  ...output,
2528
2522
  body: await parseErrorBody(output.body, context),
@@ -2531,25 +2525,25 @@ const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (ou
2531
2525
  switch (errorCode) {
2532
2526
  case "AccessDeniedException":
2533
2527
  case "com.amazonaws.codeartifact#AccessDeniedException":
2534
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2528
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2535
2529
  case "ConflictException":
2536
2530
  case "com.amazonaws.codeartifact#ConflictException":
2537
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2531
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2538
2532
  case "InternalServerException":
2539
2533
  case "com.amazonaws.codeartifact#InternalServerException":
2540
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2534
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2541
2535
  case "ResourceNotFoundException":
2542
2536
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2543
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2537
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2544
2538
  case "ServiceQuotaExceededException":
2545
2539
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
2546
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2540
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2547
2541
  case "ThrottlingException":
2548
2542
  case "com.amazonaws.codeartifact#ThrottlingException":
2549
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2543
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2550
2544
  case "ValidationException":
2551
2545
  case "com.amazonaws.codeartifact#ValidationException":
2552
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2546
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2553
2547
  default:
2554
2548
  const parsedBody = parsedOutput.body;
2555
2549
  throwDefaultError({
@@ -2560,20 +2554,20 @@ const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (ou
2560
2554
  });
2561
2555
  }
2562
2556
  };
2563
- export const deserializeAws_restJson1PutPackageOriginConfigurationCommand = async (output, context) => {
2557
+ export const de_PutPackageOriginConfigurationCommand = async (output, context) => {
2564
2558
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2565
- return deserializeAws_restJson1PutPackageOriginConfigurationCommandError(output, context);
2559
+ return de_PutPackageOriginConfigurationCommandError(output, context);
2566
2560
  }
2567
2561
  const contents = map({
2568
2562
  $metadata: deserializeMetadata(output),
2569
2563
  });
2570
2564
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2571
2565
  if (data.originConfiguration != null) {
2572
- contents.originConfiguration = deserializeAws_restJson1PackageOriginConfiguration(data.originConfiguration, context);
2566
+ contents.originConfiguration = de_PackageOriginConfiguration(data.originConfiguration, context);
2573
2567
  }
2574
2568
  return contents;
2575
2569
  };
2576
- const deserializeAws_restJson1PutPackageOriginConfigurationCommandError = async (output, context) => {
2570
+ const de_PutPackageOriginConfigurationCommandError = async (output, context) => {
2577
2571
  const parsedOutput = {
2578
2572
  ...output,
2579
2573
  body: await parseErrorBody(output.body, context),
@@ -2582,19 +2576,19 @@ const deserializeAws_restJson1PutPackageOriginConfigurationCommandError = async
2582
2576
  switch (errorCode) {
2583
2577
  case "AccessDeniedException":
2584
2578
  case "com.amazonaws.codeartifact#AccessDeniedException":
2585
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2579
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2586
2580
  case "InternalServerException":
2587
2581
  case "com.amazonaws.codeartifact#InternalServerException":
2588
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2582
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2589
2583
  case "ResourceNotFoundException":
2590
2584
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2591
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2585
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2592
2586
  case "ThrottlingException":
2593
2587
  case "com.amazonaws.codeartifact#ThrottlingException":
2594
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2588
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2595
2589
  case "ValidationException":
2596
2590
  case "com.amazonaws.codeartifact#ValidationException":
2597
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2591
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2598
2592
  default:
2599
2593
  const parsedBody = parsedOutput.body;
2600
2594
  throwDefaultError({
@@ -2605,20 +2599,20 @@ const deserializeAws_restJson1PutPackageOriginConfigurationCommandError = async
2605
2599
  });
2606
2600
  }
2607
2601
  };
2608
- export const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = async (output, context) => {
2602
+ export const de_PutRepositoryPermissionsPolicyCommand = async (output, context) => {
2609
2603
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2610
- return deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError(output, context);
2604
+ return de_PutRepositoryPermissionsPolicyCommandError(output, context);
2611
2605
  }
2612
2606
  const contents = map({
2613
2607
  $metadata: deserializeMetadata(output),
2614
2608
  });
2615
2609
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2616
2610
  if (data.policy != null) {
2617
- contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
2611
+ contents.policy = de_ResourcePolicy(data.policy, context);
2618
2612
  }
2619
2613
  return contents;
2620
2614
  };
2621
- const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async (output, context) => {
2615
+ const de_PutRepositoryPermissionsPolicyCommandError = async (output, context) => {
2622
2616
  const parsedOutput = {
2623
2617
  ...output,
2624
2618
  body: await parseErrorBody(output.body, context),
@@ -2627,25 +2621,25 @@ const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async
2627
2621
  switch (errorCode) {
2628
2622
  case "AccessDeniedException":
2629
2623
  case "com.amazonaws.codeartifact#AccessDeniedException":
2630
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2624
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2631
2625
  case "ConflictException":
2632
2626
  case "com.amazonaws.codeartifact#ConflictException":
2633
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2627
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2634
2628
  case "InternalServerException":
2635
2629
  case "com.amazonaws.codeartifact#InternalServerException":
2636
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2630
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2637
2631
  case "ResourceNotFoundException":
2638
2632
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2639
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2633
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2640
2634
  case "ServiceQuotaExceededException":
2641
2635
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
2642
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2636
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2643
2637
  case "ThrottlingException":
2644
2638
  case "com.amazonaws.codeartifact#ThrottlingException":
2645
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2639
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2646
2640
  case "ValidationException":
2647
2641
  case "com.amazonaws.codeartifact#ValidationException":
2648
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2642
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2649
2643
  default:
2650
2644
  const parsedBody = parsedOutput.body;
2651
2645
  throwDefaultError({
@@ -2656,9 +2650,9 @@ const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async
2656
2650
  });
2657
2651
  }
2658
2652
  };
2659
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
2653
+ export const de_TagResourceCommand = async (output, context) => {
2660
2654
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2661
- return deserializeAws_restJson1TagResourceCommandError(output, context);
2655
+ return de_TagResourceCommandError(output, context);
2662
2656
  }
2663
2657
  const contents = map({
2664
2658
  $metadata: deserializeMetadata(output),
@@ -2666,7 +2660,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
2666
2660
  await collectBody(output.body, context);
2667
2661
  return contents;
2668
2662
  };
2669
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
2663
+ const de_TagResourceCommandError = async (output, context) => {
2670
2664
  const parsedOutput = {
2671
2665
  ...output,
2672
2666
  body: await parseErrorBody(output.body, context),
@@ -2675,19 +2669,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2675
2669
  switch (errorCode) {
2676
2670
  case "AccessDeniedException":
2677
2671
  case "com.amazonaws.codeartifact#AccessDeniedException":
2678
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2672
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2679
2673
  case "ResourceNotFoundException":
2680
2674
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2681
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2675
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2682
2676
  case "ServiceQuotaExceededException":
2683
2677
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
2684
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2678
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2685
2679
  case "ThrottlingException":
2686
2680
  case "com.amazonaws.codeartifact#ThrottlingException":
2687
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2681
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2688
2682
  case "ValidationException":
2689
2683
  case "com.amazonaws.codeartifact#ValidationException":
2690
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2684
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2691
2685
  default:
2692
2686
  const parsedBody = parsedOutput.body;
2693
2687
  throwDefaultError({
@@ -2698,9 +2692,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2698
2692
  });
2699
2693
  }
2700
2694
  };
2701
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
2695
+ export const de_UntagResourceCommand = async (output, context) => {
2702
2696
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2703
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
2697
+ return de_UntagResourceCommandError(output, context);
2704
2698
  }
2705
2699
  const contents = map({
2706
2700
  $metadata: deserializeMetadata(output),
@@ -2708,7 +2702,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
2708
2702
  await collectBody(output.body, context);
2709
2703
  return contents;
2710
2704
  };
2711
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
2705
+ const de_UntagResourceCommandError = async (output, context) => {
2712
2706
  const parsedOutput = {
2713
2707
  ...output,
2714
2708
  body: await parseErrorBody(output.body, context),
@@ -2717,16 +2711,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2717
2711
  switch (errorCode) {
2718
2712
  case "AccessDeniedException":
2719
2713
  case "com.amazonaws.codeartifact#AccessDeniedException":
2720
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2714
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2721
2715
  case "ResourceNotFoundException":
2722
2716
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2723
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2717
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2724
2718
  case "ThrottlingException":
2725
2719
  case "com.amazonaws.codeartifact#ThrottlingException":
2726
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2720
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2727
2721
  case "ValidationException":
2728
2722
  case "com.amazonaws.codeartifact#ValidationException":
2729
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2723
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2730
2724
  default:
2731
2725
  const parsedBody = parsedOutput.body;
2732
2726
  throwDefaultError({
@@ -2737,23 +2731,23 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2737
2731
  });
2738
2732
  }
2739
2733
  };
2740
- export const deserializeAws_restJson1UpdatePackageVersionsStatusCommand = async (output, context) => {
2734
+ export const de_UpdatePackageVersionsStatusCommand = async (output, context) => {
2741
2735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2742
- return deserializeAws_restJson1UpdatePackageVersionsStatusCommandError(output, context);
2736
+ return de_UpdatePackageVersionsStatusCommandError(output, context);
2743
2737
  }
2744
2738
  const contents = map({
2745
2739
  $metadata: deserializeMetadata(output),
2746
2740
  });
2747
2741
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2748
2742
  if (data.failedVersions != null) {
2749
- contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
2743
+ contents.failedVersions = de_PackageVersionErrorMap(data.failedVersions, context);
2750
2744
  }
2751
2745
  if (data.successfulVersions != null) {
2752
- contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
2746
+ contents.successfulVersions = de_SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
2753
2747
  }
2754
2748
  return contents;
2755
2749
  };
2756
- const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (output, context) => {
2750
+ const de_UpdatePackageVersionsStatusCommandError = async (output, context) => {
2757
2751
  const parsedOutput = {
2758
2752
  ...output,
2759
2753
  body: await parseErrorBody(output.body, context),
@@ -2762,22 +2756,22 @@ const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (o
2762
2756
  switch (errorCode) {
2763
2757
  case "AccessDeniedException":
2764
2758
  case "com.amazonaws.codeartifact#AccessDeniedException":
2765
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2759
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2766
2760
  case "ConflictException":
2767
2761
  case "com.amazonaws.codeartifact#ConflictException":
2768
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2762
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2769
2763
  case "InternalServerException":
2770
2764
  case "com.amazonaws.codeartifact#InternalServerException":
2771
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2765
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2772
2766
  case "ResourceNotFoundException":
2773
2767
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2774
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2768
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2775
2769
  case "ThrottlingException":
2776
2770
  case "com.amazonaws.codeartifact#ThrottlingException":
2777
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2771
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2778
2772
  case "ValidationException":
2779
2773
  case "com.amazonaws.codeartifact#ValidationException":
2780
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2774
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2781
2775
  default:
2782
2776
  const parsedBody = parsedOutput.body;
2783
2777
  throwDefaultError({
@@ -2788,20 +2782,20 @@ const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (o
2788
2782
  });
2789
2783
  }
2790
2784
  };
2791
- export const deserializeAws_restJson1UpdateRepositoryCommand = async (output, context) => {
2785
+ export const de_UpdateRepositoryCommand = async (output, context) => {
2792
2786
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2793
- return deserializeAws_restJson1UpdateRepositoryCommandError(output, context);
2787
+ return de_UpdateRepositoryCommandError(output, context);
2794
2788
  }
2795
2789
  const contents = map({
2796
2790
  $metadata: deserializeMetadata(output),
2797
2791
  });
2798
2792
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2799
2793
  if (data.repository != null) {
2800
- contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
2794
+ contents.repository = de_RepositoryDescription(data.repository, context);
2801
2795
  }
2802
2796
  return contents;
2803
2797
  };
2804
- const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, context) => {
2798
+ const de_UpdateRepositoryCommandError = async (output, context) => {
2805
2799
  const parsedOutput = {
2806
2800
  ...output,
2807
2801
  body: await parseErrorBody(output.body, context),
@@ -2810,25 +2804,25 @@ const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, cont
2810
2804
  switch (errorCode) {
2811
2805
  case "AccessDeniedException":
2812
2806
  case "com.amazonaws.codeartifact#AccessDeniedException":
2813
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2807
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2814
2808
  case "ConflictException":
2815
2809
  case "com.amazonaws.codeartifact#ConflictException":
2816
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2810
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2817
2811
  case "InternalServerException":
2818
2812
  case "com.amazonaws.codeartifact#InternalServerException":
2819
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2813
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2820
2814
  case "ResourceNotFoundException":
2821
2815
  case "com.amazonaws.codeartifact#ResourceNotFoundException":
2822
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2816
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2823
2817
  case "ServiceQuotaExceededException":
2824
2818
  case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
2825
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2819
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2826
2820
  case "ThrottlingException":
2827
2821
  case "com.amazonaws.codeartifact#ThrottlingException":
2828
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2822
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2829
2823
  case "ValidationException":
2830
2824
  case "com.amazonaws.codeartifact#ValidationException":
2831
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2825
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2832
2826
  default:
2833
2827
  const parsedBody = parsedOutput.body;
2834
2828
  throwDefaultError({
@@ -2840,7 +2834,7 @@ const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, cont
2840
2834
  }
2841
2835
  };
2842
2836
  const map = __map;
2843
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2837
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2844
2838
  const contents = map({});
2845
2839
  const data = parsedOutput.body;
2846
2840
  if (data.message != null) {
@@ -2852,7 +2846,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
2852
2846
  });
2853
2847
  return __decorateServiceException(exception, parsedOutput.body);
2854
2848
  };
2855
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
2849
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2856
2850
  const contents = map({});
2857
2851
  const data = parsedOutput.body;
2858
2852
  if (data.message != null) {
@@ -2870,7 +2864,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
2870
2864
  });
2871
2865
  return __decorateServiceException(exception, parsedOutput.body);
2872
2866
  };
2873
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
2867
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2874
2868
  const contents = map({});
2875
2869
  const data = parsedOutput.body;
2876
2870
  if (data.message != null) {
@@ -2882,7 +2876,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
2882
2876
  });
2883
2877
  return __decorateServiceException(exception, parsedOutput.body);
2884
2878
  };
2885
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
2879
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2886
2880
  const contents = map({});
2887
2881
  const data = parsedOutput.body;
2888
2882
  if (data.message != null) {
@@ -2900,7 +2894,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2900
2894
  });
2901
2895
  return __decorateServiceException(exception, parsedOutput.body);
2902
2896
  };
2903
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
2897
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2904
2898
  const contents = map({});
2905
2899
  const data = parsedOutput.body;
2906
2900
  if (data.message != null) {
@@ -2918,7 +2912,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
2918
2912
  });
2919
2913
  return __decorateServiceException(exception, parsedOutput.body);
2920
2914
  };
2921
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
2915
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2922
2916
  const contents = map({
2923
2917
  retryAfterSeconds: [
2924
2918
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -2935,7 +2929,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
2935
2929
  });
2936
2930
  return __decorateServiceException(exception, parsedOutput.body);
2937
2931
  };
2938
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
2932
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
2939
2933
  const contents = map({});
2940
2934
  const data = parsedOutput.body;
2941
2935
  if (data.message != null) {
@@ -2950,20 +2944,20 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2950
2944
  });
2951
2945
  return __decorateServiceException(exception, parsedOutput.body);
2952
2946
  };
2953
- const serializeAws_restJson1PackageOriginRestrictions = (input, context) => {
2947
+ const se_PackageOriginRestrictions = (input, context) => {
2954
2948
  return {
2955
2949
  ...(input.publish != null && { publish: input.publish }),
2956
2950
  ...(input.upstream != null && { upstream: input.upstream }),
2957
2951
  };
2958
2952
  };
2959
- const serializeAws_restJson1PackageVersionList = (input, context) => {
2953
+ const se_PackageVersionList = (input, context) => {
2960
2954
  return input
2961
2955
  .filter((e) => e != null)
2962
2956
  .map((entry) => {
2963
2957
  return entry;
2964
2958
  });
2965
2959
  };
2966
- const serializeAws_restJson1PackageVersionRevisionMap = (input, context) => {
2960
+ const se_PackageVersionRevisionMap = (input, context) => {
2967
2961
  return Object.entries(input).reduce((acc, [key, value]) => {
2968
2962
  if (value === null) {
2969
2963
  return acc;
@@ -2972,39 +2966,39 @@ const serializeAws_restJson1PackageVersionRevisionMap = (input, context) => {
2972
2966
  return acc;
2973
2967
  }, {});
2974
2968
  };
2975
- const serializeAws_restJson1Tag = (input, context) => {
2969
+ const se_Tag = (input, context) => {
2976
2970
  return {
2977
2971
  ...(input.key != null && { key: input.key }),
2978
2972
  ...(input.value != null && { value: input.value }),
2979
2973
  };
2980
2974
  };
2981
- const serializeAws_restJson1TagKeyList = (input, context) => {
2975
+ const se_TagKeyList = (input, context) => {
2982
2976
  return input
2983
2977
  .filter((e) => e != null)
2984
2978
  .map((entry) => {
2985
2979
  return entry;
2986
2980
  });
2987
2981
  };
2988
- const serializeAws_restJson1TagList = (input, context) => {
2982
+ const se_TagList = (input, context) => {
2989
2983
  return input
2990
2984
  .filter((e) => e != null)
2991
2985
  .map((entry) => {
2992
- return serializeAws_restJson1Tag(entry, context);
2986
+ return se_Tag(entry, context);
2993
2987
  });
2994
2988
  };
2995
- const serializeAws_restJson1UpstreamRepository = (input, context) => {
2989
+ const se_UpstreamRepository = (input, context) => {
2996
2990
  return {
2997
2991
  ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2998
2992
  };
2999
2993
  };
3000
- const serializeAws_restJson1UpstreamRepositoryList = (input, context) => {
2994
+ const se_UpstreamRepositoryList = (input, context) => {
3001
2995
  return input
3002
2996
  .filter((e) => e != null)
3003
2997
  .map((entry) => {
3004
- return serializeAws_restJson1UpstreamRepository(entry, context);
2998
+ return se_UpstreamRepository(entry, context);
3005
2999
  });
3006
3000
  };
3007
- const deserializeAws_restJson1AssetHashes = (output, context) => {
3001
+ const de_AssetHashes = (output, context) => {
3008
3002
  return Object.entries(output).reduce((acc, [key, value]) => {
3009
3003
  if (value === null) {
3010
3004
  return acc;
@@ -3013,25 +3007,25 @@ const deserializeAws_restJson1AssetHashes = (output, context) => {
3013
3007
  return acc;
3014
3008
  }, {});
3015
3009
  };
3016
- const deserializeAws_restJson1AssetSummary = (output, context) => {
3010
+ const de_AssetSummary = (output, context) => {
3017
3011
  return {
3018
- hashes: output.hashes != null ? deserializeAws_restJson1AssetHashes(output.hashes, context) : undefined,
3012
+ hashes: output.hashes != null ? de_AssetHashes(output.hashes, context) : undefined,
3019
3013
  name: __expectString(output.name),
3020
3014
  size: __expectLong(output.size),
3021
3015
  };
3022
3016
  };
3023
- const deserializeAws_restJson1AssetSummaryList = (output, context) => {
3017
+ const de_AssetSummaryList = (output, context) => {
3024
3018
  const retVal = (output || [])
3025
3019
  .filter((e) => e != null)
3026
3020
  .map((entry) => {
3027
3021
  if (entry === null) {
3028
3022
  return null;
3029
3023
  }
3030
- return deserializeAws_restJson1AssetSummary(entry, context);
3024
+ return de_AssetSummary(entry, context);
3031
3025
  });
3032
3026
  return retVal;
3033
3027
  };
3034
- const deserializeAws_restJson1DomainDescription = (output, context) => {
3028
+ const de_DomainDescription = (output, context) => {
3035
3029
  return {
3036
3030
  arn: __expectString(output.arn),
3037
3031
  assetSizeBytes: __expectLong(output.assetSizeBytes),
@@ -3046,13 +3040,13 @@ const deserializeAws_restJson1DomainDescription = (output, context) => {
3046
3040
  status: __expectString(output.status),
3047
3041
  };
3048
3042
  };
3049
- const deserializeAws_restJson1DomainEntryPoint = (output, context) => {
3043
+ const de_DomainEntryPoint = (output, context) => {
3050
3044
  return {
3051
3045
  externalConnectionName: __expectString(output.externalConnectionName),
3052
3046
  repositoryName: __expectString(output.repositoryName),
3053
3047
  };
3054
3048
  };
3055
- const deserializeAws_restJson1DomainSummary = (output, context) => {
3049
+ const de_DomainSummary = (output, context) => {
3056
3050
  return {
3057
3051
  arn: __expectString(output.arn),
3058
3052
  createdTime: output.createdTime != null
@@ -3064,35 +3058,35 @@ const deserializeAws_restJson1DomainSummary = (output, context) => {
3064
3058
  status: __expectString(output.status),
3065
3059
  };
3066
3060
  };
3067
- const deserializeAws_restJson1DomainSummaryList = (output, context) => {
3061
+ const de_DomainSummaryList = (output, context) => {
3068
3062
  const retVal = (output || [])
3069
3063
  .filter((e) => e != null)
3070
3064
  .map((entry) => {
3071
3065
  if (entry === null) {
3072
3066
  return null;
3073
3067
  }
3074
- return deserializeAws_restJson1DomainSummary(entry, context);
3068
+ return de_DomainSummary(entry, context);
3075
3069
  });
3076
3070
  return retVal;
3077
3071
  };
3078
- const deserializeAws_restJson1LicenseInfo = (output, context) => {
3072
+ const de_LicenseInfo = (output, context) => {
3079
3073
  return {
3080
3074
  name: __expectString(output.name),
3081
3075
  url: __expectString(output.url),
3082
3076
  };
3083
3077
  };
3084
- const deserializeAws_restJson1LicenseInfoList = (output, context) => {
3078
+ const de_LicenseInfoList = (output, context) => {
3085
3079
  const retVal = (output || [])
3086
3080
  .filter((e) => e != null)
3087
3081
  .map((entry) => {
3088
3082
  if (entry === null) {
3089
3083
  return null;
3090
3084
  }
3091
- return deserializeAws_restJson1LicenseInfo(entry, context);
3085
+ return de_LicenseInfo(entry, context);
3092
3086
  });
3093
3087
  return retVal;
3094
3088
  };
3095
- const deserializeAws_restJson1PackageDependency = (output, context) => {
3089
+ const de_PackageDependency = (output, context) => {
3096
3090
  return {
3097
3091
  dependencyType: __expectString(output.dependencyType),
3098
3092
  namespace: __expectString(output.namespace),
@@ -3100,69 +3094,67 @@ const deserializeAws_restJson1PackageDependency = (output, context) => {
3100
3094
  versionRequirement: __expectString(output.versionRequirement),
3101
3095
  };
3102
3096
  };
3103
- const deserializeAws_restJson1PackageDependencyList = (output, context) => {
3097
+ const de_PackageDependencyList = (output, context) => {
3104
3098
  const retVal = (output || [])
3105
3099
  .filter((e) => e != null)
3106
3100
  .map((entry) => {
3107
3101
  if (entry === null) {
3108
3102
  return null;
3109
3103
  }
3110
- return deserializeAws_restJson1PackageDependency(entry, context);
3104
+ return de_PackageDependency(entry, context);
3111
3105
  });
3112
3106
  return retVal;
3113
3107
  };
3114
- const deserializeAws_restJson1PackageDescription = (output, context) => {
3108
+ const de_PackageDescription = (output, context) => {
3115
3109
  return {
3116
3110
  format: __expectString(output.format),
3117
3111
  name: __expectString(output.name),
3118
3112
  namespace: __expectString(output.namespace),
3119
3113
  originConfiguration: output.originConfiguration != null
3120
- ? deserializeAws_restJson1PackageOriginConfiguration(output.originConfiguration, context)
3114
+ ? de_PackageOriginConfiguration(output.originConfiguration, context)
3121
3115
  : undefined,
3122
3116
  };
3123
3117
  };
3124
- const deserializeAws_restJson1PackageOriginConfiguration = (output, context) => {
3118
+ const de_PackageOriginConfiguration = (output, context) => {
3125
3119
  return {
3126
- restrictions: output.restrictions != null
3127
- ? deserializeAws_restJson1PackageOriginRestrictions(output.restrictions, context)
3128
- : undefined,
3120
+ restrictions: output.restrictions != null ? de_PackageOriginRestrictions(output.restrictions, context) : undefined,
3129
3121
  };
3130
3122
  };
3131
- const deserializeAws_restJson1PackageOriginRestrictions = (output, context) => {
3123
+ const de_PackageOriginRestrictions = (output, context) => {
3132
3124
  return {
3133
3125
  publish: __expectString(output.publish),
3134
3126
  upstream: __expectString(output.upstream),
3135
3127
  };
3136
3128
  };
3137
- const deserializeAws_restJson1PackageSummary = (output, context) => {
3129
+ const de_PackageSummary = (output, context) => {
3138
3130
  return {
3139
3131
  format: __expectString(output.format),
3140
3132
  namespace: __expectString(output.namespace),
3141
3133
  originConfiguration: output.originConfiguration != null
3142
- ? deserializeAws_restJson1PackageOriginConfiguration(output.originConfiguration, context)
3134
+ ? de_PackageOriginConfiguration(output.originConfiguration, context)
3143
3135
  : undefined,
3144
3136
  package: __expectString(output.package),
3145
3137
  };
3146
3138
  };
3147
- const deserializeAws_restJson1PackageSummaryList = (output, context) => {
3139
+ const de_PackageSummaryList = (output, context) => {
3148
3140
  const retVal = (output || [])
3149
3141
  .filter((e) => e != null)
3150
3142
  .map((entry) => {
3151
3143
  if (entry === null) {
3152
3144
  return null;
3153
3145
  }
3154
- return deserializeAws_restJson1PackageSummary(entry, context);
3146
+ return de_PackageSummary(entry, context);
3155
3147
  });
3156
3148
  return retVal;
3157
3149
  };
3158
- const deserializeAws_restJson1PackageVersionDescription = (output, context) => {
3150
+ const de_PackageVersionDescription = (output, context) => {
3159
3151
  return {
3160
3152
  displayName: __expectString(output.displayName),
3161
3153
  format: __expectString(output.format),
3162
3154
  homePage: __expectString(output.homePage),
3163
- licenses: output.licenses != null ? deserializeAws_restJson1LicenseInfoList(output.licenses, context) : undefined,
3155
+ licenses: output.licenses != null ? de_LicenseInfoList(output.licenses, context) : undefined,
3164
3156
  namespace: __expectString(output.namespace),
3165
- origin: output.origin != null ? deserializeAws_restJson1PackageVersionOrigin(output.origin, context) : undefined,
3157
+ origin: output.origin != null ? de_PackageVersionOrigin(output.origin, context) : undefined,
3166
3158
  packageName: __expectString(output.packageName),
3167
3159
  publishedTime: output.publishedTime != null
3168
3160
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.publishedTime)))
@@ -3174,49 +3166,47 @@ const deserializeAws_restJson1PackageVersionDescription = (output, context) => {
3174
3166
  version: __expectString(output.version),
3175
3167
  };
3176
3168
  };
3177
- const deserializeAws_restJson1PackageVersionError = (output, context) => {
3169
+ const de_PackageVersionError = (output, context) => {
3178
3170
  return {
3179
3171
  errorCode: __expectString(output.errorCode),
3180
3172
  errorMessage: __expectString(output.errorMessage),
3181
3173
  };
3182
3174
  };
3183
- const deserializeAws_restJson1PackageVersionErrorMap = (output, context) => {
3175
+ const de_PackageVersionErrorMap = (output, context) => {
3184
3176
  return Object.entries(output).reduce((acc, [key, value]) => {
3185
3177
  if (value === null) {
3186
3178
  return acc;
3187
3179
  }
3188
- acc[key] = deserializeAws_restJson1PackageVersionError(value, context);
3180
+ acc[key] = de_PackageVersionError(value, context);
3189
3181
  return acc;
3190
3182
  }, {});
3191
3183
  };
3192
- const deserializeAws_restJson1PackageVersionOrigin = (output, context) => {
3184
+ const de_PackageVersionOrigin = (output, context) => {
3193
3185
  return {
3194
- domainEntryPoint: output.domainEntryPoint != null
3195
- ? deserializeAws_restJson1DomainEntryPoint(output.domainEntryPoint, context)
3196
- : undefined,
3186
+ domainEntryPoint: output.domainEntryPoint != null ? de_DomainEntryPoint(output.domainEntryPoint, context) : undefined,
3197
3187
  originType: __expectString(output.originType),
3198
3188
  };
3199
3189
  };
3200
- const deserializeAws_restJson1PackageVersionSummary = (output, context) => {
3190
+ const de_PackageVersionSummary = (output, context) => {
3201
3191
  return {
3202
- origin: output.origin != null ? deserializeAws_restJson1PackageVersionOrigin(output.origin, context) : undefined,
3192
+ origin: output.origin != null ? de_PackageVersionOrigin(output.origin, context) : undefined,
3203
3193
  revision: __expectString(output.revision),
3204
3194
  status: __expectString(output.status),
3205
3195
  version: __expectString(output.version),
3206
3196
  };
3207
3197
  };
3208
- const deserializeAws_restJson1PackageVersionSummaryList = (output, context) => {
3198
+ const de_PackageVersionSummaryList = (output, context) => {
3209
3199
  const retVal = (output || [])
3210
3200
  .filter((e) => e != null)
3211
3201
  .map((entry) => {
3212
3202
  if (entry === null) {
3213
3203
  return null;
3214
3204
  }
3215
- return deserializeAws_restJson1PackageVersionSummary(entry, context);
3205
+ return de_PackageVersionSummary(entry, context);
3216
3206
  });
3217
3207
  return retVal;
3218
3208
  };
3219
- const deserializeAws_restJson1RepositoryDescription = (output, context) => {
3209
+ const de_RepositoryDescription = (output, context) => {
3220
3210
  return {
3221
3211
  administratorAccount: __expectString(output.administratorAccount),
3222
3212
  arn: __expectString(output.arn),
@@ -3227,33 +3217,31 @@ const deserializeAws_restJson1RepositoryDescription = (output, context) => {
3227
3217
  domainName: __expectString(output.domainName),
3228
3218
  domainOwner: __expectString(output.domainOwner),
3229
3219
  externalConnections: output.externalConnections != null
3230
- ? deserializeAws_restJson1RepositoryExternalConnectionInfoList(output.externalConnections, context)
3220
+ ? de_RepositoryExternalConnectionInfoList(output.externalConnections, context)
3231
3221
  : undefined,
3232
3222
  name: __expectString(output.name),
3233
- upstreams: output.upstreams != null
3234
- ? deserializeAws_restJson1UpstreamRepositoryInfoList(output.upstreams, context)
3235
- : undefined,
3223
+ upstreams: output.upstreams != null ? de_UpstreamRepositoryInfoList(output.upstreams, context) : undefined,
3236
3224
  };
3237
3225
  };
3238
- const deserializeAws_restJson1RepositoryExternalConnectionInfo = (output, context) => {
3226
+ const de_RepositoryExternalConnectionInfo = (output, context) => {
3239
3227
  return {
3240
3228
  externalConnectionName: __expectString(output.externalConnectionName),
3241
3229
  packageFormat: __expectString(output.packageFormat),
3242
3230
  status: __expectString(output.status),
3243
3231
  };
3244
3232
  };
3245
- const deserializeAws_restJson1RepositoryExternalConnectionInfoList = (output, context) => {
3233
+ const de_RepositoryExternalConnectionInfoList = (output, context) => {
3246
3234
  const retVal = (output || [])
3247
3235
  .filter((e) => e != null)
3248
3236
  .map((entry) => {
3249
3237
  if (entry === null) {
3250
3238
  return null;
3251
3239
  }
3252
- return deserializeAws_restJson1RepositoryExternalConnectionInfo(entry, context);
3240
+ return de_RepositoryExternalConnectionInfo(entry, context);
3253
3241
  });
3254
3242
  return retVal;
3255
3243
  };
3256
- const deserializeAws_restJson1RepositorySummary = (output, context) => {
3244
+ const de_RepositorySummary = (output, context) => {
3257
3245
  return {
3258
3246
  administratorAccount: __expectString(output.administratorAccount),
3259
3247
  arn: __expectString(output.arn),
@@ -3266,69 +3254,69 @@ const deserializeAws_restJson1RepositorySummary = (output, context) => {
3266
3254
  name: __expectString(output.name),
3267
3255
  };
3268
3256
  };
3269
- const deserializeAws_restJson1RepositorySummaryList = (output, context) => {
3257
+ const de_RepositorySummaryList = (output, context) => {
3270
3258
  const retVal = (output || [])
3271
3259
  .filter((e) => e != null)
3272
3260
  .map((entry) => {
3273
3261
  if (entry === null) {
3274
3262
  return null;
3275
3263
  }
3276
- return deserializeAws_restJson1RepositorySummary(entry, context);
3264
+ return de_RepositorySummary(entry, context);
3277
3265
  });
3278
3266
  return retVal;
3279
3267
  };
3280
- const deserializeAws_restJson1ResourcePolicy = (output, context) => {
3268
+ const de_ResourcePolicy = (output, context) => {
3281
3269
  return {
3282
3270
  document: __expectString(output.document),
3283
3271
  resourceArn: __expectString(output.resourceArn),
3284
3272
  revision: __expectString(output.revision),
3285
3273
  };
3286
3274
  };
3287
- const deserializeAws_restJson1SuccessfulPackageVersionInfo = (output, context) => {
3275
+ const de_SuccessfulPackageVersionInfo = (output, context) => {
3288
3276
  return {
3289
3277
  revision: __expectString(output.revision),
3290
3278
  status: __expectString(output.status),
3291
3279
  };
3292
3280
  };
3293
- const deserializeAws_restJson1SuccessfulPackageVersionInfoMap = (output, context) => {
3281
+ const de_SuccessfulPackageVersionInfoMap = (output, context) => {
3294
3282
  return Object.entries(output).reduce((acc, [key, value]) => {
3295
3283
  if (value === null) {
3296
3284
  return acc;
3297
3285
  }
3298
- acc[key] = deserializeAws_restJson1SuccessfulPackageVersionInfo(value, context);
3286
+ acc[key] = de_SuccessfulPackageVersionInfo(value, context);
3299
3287
  return acc;
3300
3288
  }, {});
3301
3289
  };
3302
- const deserializeAws_restJson1Tag = (output, context) => {
3290
+ const de_Tag = (output, context) => {
3303
3291
  return {
3304
3292
  key: __expectString(output.key),
3305
3293
  value: __expectString(output.value),
3306
3294
  };
3307
3295
  };
3308
- const deserializeAws_restJson1TagList = (output, context) => {
3296
+ const de_TagList = (output, context) => {
3309
3297
  const retVal = (output || [])
3310
3298
  .filter((e) => e != null)
3311
3299
  .map((entry) => {
3312
3300
  if (entry === null) {
3313
3301
  return null;
3314
3302
  }
3315
- return deserializeAws_restJson1Tag(entry, context);
3303
+ return de_Tag(entry, context);
3316
3304
  });
3317
3305
  return retVal;
3318
3306
  };
3319
- const deserializeAws_restJson1UpstreamRepositoryInfo = (output, context) => {
3307
+ const de_UpstreamRepositoryInfo = (output, context) => {
3320
3308
  return {
3321
3309
  repositoryName: __expectString(output.repositoryName),
3322
3310
  };
3323
3311
  };
3324
- const deserializeAws_restJson1UpstreamRepositoryInfoList = (output, context) => {
3312
+ const de_UpstreamRepositoryInfoList = (output, context) => {
3325
3313
  const retVal = (output || [])
3326
3314
  .filter((e) => e != null)
3327
3315
  .map((entry) => {
3328
3316
  if (entry === null) {
3329
3317
  return null;
3330
3318
  }
3331
- return deserializeAws_restJson1UpstreamRepositoryInfo(entry, context);
3319
+ return de_UpstreamRepositoryInfo(entry, context);
3332
3320
  });
3333
3321
  return retVal;
3334
3322
  };