@aws-sdk/client-workdocs 3.306.0 → 3.310.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 (93) hide show
  1. package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +2 -2
  2. package/dist-cjs/commands/ActivateUserCommand.js +2 -2
  3. package/dist-cjs/commands/AddResourcePermissionsCommand.js +2 -2
  4. package/dist-cjs/commands/CreateCommentCommand.js +2 -2
  5. package/dist-cjs/commands/CreateCustomMetadataCommand.js +2 -2
  6. package/dist-cjs/commands/CreateFolderCommand.js +2 -2
  7. package/dist-cjs/commands/CreateLabelsCommand.js +2 -2
  8. package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +2 -2
  9. package/dist-cjs/commands/CreateUserCommand.js +2 -2
  10. package/dist-cjs/commands/DeactivateUserCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteCommentCommand.js +2 -2
  12. package/dist-cjs/commands/DeleteCustomMetadataCommand.js +2 -2
  13. package/dist-cjs/commands/DeleteDocumentCommand.js +2 -2
  14. package/dist-cjs/commands/DeleteDocumentVersionCommand.js +2 -2
  15. package/dist-cjs/commands/DeleteFolderCommand.js +2 -2
  16. package/dist-cjs/commands/DeleteFolderContentsCommand.js +2 -2
  17. package/dist-cjs/commands/DeleteLabelsCommand.js +2 -2
  18. package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +2 -2
  19. package/dist-cjs/commands/DeleteUserCommand.js +2 -2
  20. package/dist-cjs/commands/DescribeActivitiesCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeCommentsCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +2 -2
  23. package/dist-cjs/commands/DescribeFolderContentsCommand.js +2 -2
  24. package/dist-cjs/commands/DescribeGroupsCommand.js +2 -2
  25. package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +2 -2
  26. package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeRootFoldersCommand.js +2 -2
  28. package/dist-cjs/commands/DescribeUsersCommand.js +2 -2
  29. package/dist-cjs/commands/GetCurrentUserCommand.js +2 -2
  30. package/dist-cjs/commands/GetDocumentCommand.js +2 -2
  31. package/dist-cjs/commands/GetDocumentPathCommand.js +2 -2
  32. package/dist-cjs/commands/GetDocumentVersionCommand.js +2 -2
  33. package/dist-cjs/commands/GetFolderCommand.js +2 -2
  34. package/dist-cjs/commands/GetFolderPathCommand.js +2 -2
  35. package/dist-cjs/commands/GetResourcesCommand.js +2 -2
  36. package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +2 -2
  37. package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +2 -2
  38. package/dist-cjs/commands/RemoveResourcePermissionCommand.js +2 -2
  39. package/dist-cjs/commands/RestoreDocumentVersionsCommand.js +2 -2
  40. package/dist-cjs/commands/SearchResourcesCommand.js +2 -2
  41. package/dist-cjs/commands/UpdateDocumentCommand.js +2 -2
  42. package/dist-cjs/commands/UpdateDocumentVersionCommand.js +2 -2
  43. package/dist-cjs/commands/UpdateFolderCommand.js +2 -2
  44. package/dist-cjs/commands/UpdateUserCommand.js +2 -2
  45. package/dist-cjs/protocols/Aws_restJson1.js +732 -768
  46. package/dist-es/commands/AbortDocumentVersionUploadCommand.js +3 -3
  47. package/dist-es/commands/ActivateUserCommand.js +3 -3
  48. package/dist-es/commands/AddResourcePermissionsCommand.js +3 -3
  49. package/dist-es/commands/CreateCommentCommand.js +3 -3
  50. package/dist-es/commands/CreateCustomMetadataCommand.js +3 -3
  51. package/dist-es/commands/CreateFolderCommand.js +3 -3
  52. package/dist-es/commands/CreateLabelsCommand.js +3 -3
  53. package/dist-es/commands/CreateNotificationSubscriptionCommand.js +3 -3
  54. package/dist-es/commands/CreateUserCommand.js +3 -3
  55. package/dist-es/commands/DeactivateUserCommand.js +3 -3
  56. package/dist-es/commands/DeleteCommentCommand.js +3 -3
  57. package/dist-es/commands/DeleteCustomMetadataCommand.js +3 -3
  58. package/dist-es/commands/DeleteDocumentCommand.js +3 -3
  59. package/dist-es/commands/DeleteDocumentVersionCommand.js +3 -3
  60. package/dist-es/commands/DeleteFolderCommand.js +3 -3
  61. package/dist-es/commands/DeleteFolderContentsCommand.js +3 -3
  62. package/dist-es/commands/DeleteLabelsCommand.js +3 -3
  63. package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +3 -3
  64. package/dist-es/commands/DeleteUserCommand.js +3 -3
  65. package/dist-es/commands/DescribeActivitiesCommand.js +3 -3
  66. package/dist-es/commands/DescribeCommentsCommand.js +3 -3
  67. package/dist-es/commands/DescribeDocumentVersionsCommand.js +3 -3
  68. package/dist-es/commands/DescribeFolderContentsCommand.js +3 -3
  69. package/dist-es/commands/DescribeGroupsCommand.js +3 -3
  70. package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +3 -3
  71. package/dist-es/commands/DescribeResourcePermissionsCommand.js +3 -3
  72. package/dist-es/commands/DescribeRootFoldersCommand.js +3 -3
  73. package/dist-es/commands/DescribeUsersCommand.js +3 -3
  74. package/dist-es/commands/GetCurrentUserCommand.js +3 -3
  75. package/dist-es/commands/GetDocumentCommand.js +3 -3
  76. package/dist-es/commands/GetDocumentPathCommand.js +3 -3
  77. package/dist-es/commands/GetDocumentVersionCommand.js +3 -3
  78. package/dist-es/commands/GetFolderCommand.js +3 -3
  79. package/dist-es/commands/GetFolderPathCommand.js +3 -3
  80. package/dist-es/commands/GetResourcesCommand.js +3 -3
  81. package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +3 -3
  82. package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +3 -3
  83. package/dist-es/commands/RemoveResourcePermissionCommand.js +3 -3
  84. package/dist-es/commands/RestoreDocumentVersionsCommand.js +3 -3
  85. package/dist-es/commands/SearchResourcesCommand.js +3 -3
  86. package/dist-es/commands/UpdateDocumentCommand.js +3 -3
  87. package/dist-es/commands/UpdateDocumentVersionCommand.js +3 -3
  88. package/dist-es/commands/UpdateFolderCommand.js +3 -3
  89. package/dist-es/commands/UpdateUserCommand.js +3 -3
  90. package/dist-es/protocols/Aws_restJson1.js +642 -678
  91. package/dist-types/protocols/Aws_restJson1.d.ts +352 -88
  92. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +88 -88
  93. package/package.json +35 -35
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ConcurrentModificationException, ConflictingOperationException, CustomMetadataLimitExceededException, DeactivatingLastSystemUserException, DocumentLockedForCommentsException, DraftUploadOutOfSyncException, EntityAlreadyExistsException, EntityNotExistsException, FailedDependencyException, IllegalUserStateException, InvalidArgumentException, InvalidCommentOperationException, InvalidOperationException, InvalidPasswordException, LimitExceededException, ProhibitedStateException, RequestedEntityTooLargeException, ResourceAlreadyCheckedOutException, ServiceUnavailableException, StorageLimitExceededException, StorageLimitWillExceedException, TooManyLabelsException, TooManySubscriptionsException, UnauthorizedOperationException, UnauthorizedResourceAccessException, } from "../models/models_0";
4
4
  import { WorkDocsServiceException as __BaseException } from "../models/WorkDocsServiceException";
5
- export const serializeAws_restJson1AbortDocumentVersionUploadCommand = async (input, context) => {
5
+ export const se_AbortDocumentVersionUploadCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = map({}, isSerializableHeaderValue, {
8
8
  authentication: input.AuthenticationToken,
@@ -22,7 +22,7 @@ export const serializeAws_restJson1AbortDocumentVersionUploadCommand = async (in
22
22
  body,
23
23
  });
24
24
  };
25
- export const serializeAws_restJson1ActivateUserCommand = async (input, context) => {
25
+ export const se_ActivateUserCommand = async (input, context) => {
26
26
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
27
  const headers = map({}, isSerializableHeaderValue, {
28
28
  authentication: input.AuthenticationToken,
@@ -40,7 +40,7 @@ export const serializeAws_restJson1ActivateUserCommand = async (input, context)
40
40
  body,
41
41
  });
42
42
  };
43
- export const serializeAws_restJson1AddResourcePermissionsCommand = async (input, context) => {
43
+ export const se_AddResourcePermissionsCommand = async (input, context) => {
44
44
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
45
  const headers = map({}, isSerializableHeaderValue, {
46
46
  "content-type": "application/json",
@@ -52,11 +52,9 @@ export const serializeAws_restJson1AddResourcePermissionsCommand = async (input,
52
52
  let body;
53
53
  body = JSON.stringify({
54
54
  ...(input.NotificationOptions != null && {
55
- NotificationOptions: serializeAws_restJson1NotificationOptions(input.NotificationOptions, context),
56
- }),
57
- ...(input.Principals != null && {
58
- Principals: serializeAws_restJson1SharePrincipalList(input.Principals, context),
55
+ NotificationOptions: se_NotificationOptions(input.NotificationOptions, context),
59
56
  }),
57
+ ...(input.Principals != null && { Principals: se_SharePrincipalList(input.Principals, context) }),
60
58
  });
61
59
  return new __HttpRequest({
62
60
  protocol,
@@ -68,7 +66,7 @@ export const serializeAws_restJson1AddResourcePermissionsCommand = async (input,
68
66
  body,
69
67
  });
70
68
  };
71
- export const serializeAws_restJson1CreateCommentCommand = async (input, context) => {
69
+ export const se_CreateCommentCommand = async (input, context) => {
72
70
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
71
  const headers = map({}, isSerializableHeaderValue, {
74
72
  "content-type": "application/json",
@@ -96,7 +94,7 @@ export const serializeAws_restJson1CreateCommentCommand = async (input, context)
96
94
  body,
97
95
  });
98
96
  };
99
- export const serializeAws_restJson1CreateCustomMetadataCommand = async (input, context) => {
97
+ export const se_CreateCustomMetadataCommand = async (input, context) => {
100
98
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
101
99
  const headers = map({}, isSerializableHeaderValue, {
102
100
  "content-type": "application/json",
@@ -110,9 +108,7 @@ export const serializeAws_restJson1CreateCustomMetadataCommand = async (input, c
110
108
  });
111
109
  let body;
112
110
  body = JSON.stringify({
113
- ...(input.CustomMetadata != null && {
114
- CustomMetadata: serializeAws_restJson1CustomMetadataMap(input.CustomMetadata, context),
115
- }),
111
+ ...(input.CustomMetadata != null && { CustomMetadata: se_CustomMetadataMap(input.CustomMetadata, context) }),
116
112
  });
117
113
  return new __HttpRequest({
118
114
  protocol,
@@ -125,7 +121,7 @@ export const serializeAws_restJson1CreateCustomMetadataCommand = async (input, c
125
121
  body,
126
122
  });
127
123
  };
128
- export const serializeAws_restJson1CreateFolderCommand = async (input, context) => {
124
+ export const se_CreateFolderCommand = async (input, context) => {
129
125
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
126
  const headers = map({}, isSerializableHeaderValue, {
131
127
  "content-type": "application/json",
@@ -147,7 +143,7 @@ export const serializeAws_restJson1CreateFolderCommand = async (input, context)
147
143
  body,
148
144
  });
149
145
  };
150
- export const serializeAws_restJson1CreateLabelsCommand = async (input, context) => {
146
+ export const se_CreateLabelsCommand = async (input, context) => {
151
147
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
148
  const headers = map({}, isSerializableHeaderValue, {
153
149
  "content-type": "application/json",
@@ -157,7 +153,7 @@ export const serializeAws_restJson1CreateLabelsCommand = async (input, context)
157
153
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
158
154
  let body;
159
155
  body = JSON.stringify({
160
- ...(input.Labels != null && { Labels: serializeAws_restJson1SharedLabels(input.Labels, context) }),
156
+ ...(input.Labels != null && { Labels: se_SharedLabels(input.Labels, context) }),
161
157
  });
162
158
  return new __HttpRequest({
163
159
  protocol,
@@ -169,7 +165,7 @@ export const serializeAws_restJson1CreateLabelsCommand = async (input, context)
169
165
  body,
170
166
  });
171
167
  };
172
- export const serializeAws_restJson1CreateNotificationSubscriptionCommand = async (input, context) => {
168
+ export const se_CreateNotificationSubscriptionCommand = async (input, context) => {
173
169
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
170
  const headers = {
175
171
  "content-type": "application/json",
@@ -193,7 +189,7 @@ export const serializeAws_restJson1CreateNotificationSubscriptionCommand = async
193
189
  body,
194
190
  });
195
191
  };
196
- export const serializeAws_restJson1CreateUserCommand = async (input, context) => {
192
+ export const se_CreateUserCommand = async (input, context) => {
197
193
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
194
  const headers = map({}, isSerializableHeaderValue, {
199
195
  "content-type": "application/json",
@@ -206,9 +202,7 @@ export const serializeAws_restJson1CreateUserCommand = async (input, context) =>
206
202
  ...(input.GivenName != null && { GivenName: input.GivenName }),
207
203
  ...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
208
204
  ...(input.Password != null && { Password: input.Password }),
209
- ...(input.StorageRule != null && {
210
- StorageRule: serializeAws_restJson1StorageRuleType(input.StorageRule, context),
211
- }),
205
+ ...(input.StorageRule != null && { StorageRule: se_StorageRuleType(input.StorageRule, context) }),
212
206
  ...(input.Surname != null && { Surname: input.Surname }),
213
207
  ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
214
208
  ...(input.Username != null && { Username: input.Username }),
@@ -223,7 +217,7 @@ export const serializeAws_restJson1CreateUserCommand = async (input, context) =>
223
217
  body,
224
218
  });
225
219
  };
226
- export const serializeAws_restJson1DeactivateUserCommand = async (input, context) => {
220
+ export const se_DeactivateUserCommand = async (input, context) => {
227
221
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
228
222
  const headers = map({}, isSerializableHeaderValue, {
229
223
  authentication: input.AuthenticationToken,
@@ -241,7 +235,7 @@ export const serializeAws_restJson1DeactivateUserCommand = async (input, context
241
235
  body,
242
236
  });
243
237
  };
244
- export const serializeAws_restJson1DeleteCommentCommand = async (input, context) => {
238
+ export const se_DeleteCommentCommand = async (input, context) => {
245
239
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
240
  const headers = map({}, isSerializableHeaderValue, {
247
241
  authentication: input.AuthenticationToken,
@@ -262,7 +256,7 @@ export const serializeAws_restJson1DeleteCommentCommand = async (input, context)
262
256
  body,
263
257
  });
264
258
  };
265
- export const serializeAws_restJson1DeleteCustomMetadataCommand = async (input, context) => {
259
+ export const se_DeleteCustomMetadataCommand = async (input, context) => {
266
260
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
261
  const headers = map({}, isSerializableHeaderValue, {
268
262
  authentication: input.AuthenticationToken,
@@ -287,7 +281,7 @@ export const serializeAws_restJson1DeleteCustomMetadataCommand = async (input, c
287
281
  body,
288
282
  });
289
283
  };
290
- export const serializeAws_restJson1DeleteDocumentCommand = async (input, context) => {
284
+ export const se_DeleteDocumentCommand = async (input, context) => {
291
285
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
286
  const headers = map({}, isSerializableHeaderValue, {
293
287
  authentication: input.AuthenticationToken,
@@ -305,7 +299,7 @@ export const serializeAws_restJson1DeleteDocumentCommand = async (input, context
305
299
  body,
306
300
  });
307
301
  };
308
- export const serializeAws_restJson1DeleteDocumentVersionCommand = async (input, context) => {
302
+ export const se_DeleteDocumentVersionCommand = async (input, context) => {
309
303
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
304
  const headers = map({}, isSerializableHeaderValue, {
311
305
  authentication: input.AuthenticationToken,
@@ -332,7 +326,7 @@ export const serializeAws_restJson1DeleteDocumentVersionCommand = async (input,
332
326
  body,
333
327
  });
334
328
  };
335
- export const serializeAws_restJson1DeleteFolderCommand = async (input, context) => {
329
+ export const se_DeleteFolderCommand = async (input, context) => {
336
330
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
337
331
  const headers = map({}, isSerializableHeaderValue, {
338
332
  authentication: input.AuthenticationToken,
@@ -350,7 +344,7 @@ export const serializeAws_restJson1DeleteFolderCommand = async (input, context)
350
344
  body,
351
345
  });
352
346
  };
353
- export const serializeAws_restJson1DeleteFolderContentsCommand = async (input, context) => {
347
+ export const se_DeleteFolderContentsCommand = async (input, context) => {
354
348
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
349
  const headers = map({}, isSerializableHeaderValue, {
356
350
  authentication: input.AuthenticationToken,
@@ -368,7 +362,7 @@ export const serializeAws_restJson1DeleteFolderContentsCommand = async (input, c
368
362
  body,
369
363
  });
370
364
  };
371
- export const serializeAws_restJson1DeleteLabelsCommand = async (input, context) => {
365
+ export const se_DeleteLabelsCommand = async (input, context) => {
372
366
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
373
367
  const headers = map({}, isSerializableHeaderValue, {
374
368
  authentication: input.AuthenticationToken,
@@ -391,7 +385,7 @@ export const serializeAws_restJson1DeleteLabelsCommand = async (input, context)
391
385
  body,
392
386
  });
393
387
  };
394
- export const serializeAws_restJson1DeleteNotificationSubscriptionCommand = async (input, context) => {
388
+ export const se_DeleteNotificationSubscriptionCommand = async (input, context) => {
395
389
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
390
  const headers = {};
397
391
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -409,7 +403,7 @@ export const serializeAws_restJson1DeleteNotificationSubscriptionCommand = async
409
403
  body,
410
404
  });
411
405
  };
412
- export const serializeAws_restJson1DeleteUserCommand = async (input, context) => {
406
+ export const se_DeleteUserCommand = async (input, context) => {
413
407
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
414
408
  const headers = map({}, isSerializableHeaderValue, {
415
409
  authentication: input.AuthenticationToken,
@@ -427,7 +421,7 @@ export const serializeAws_restJson1DeleteUserCommand = async (input, context) =>
427
421
  body,
428
422
  });
429
423
  };
430
- export const serializeAws_restJson1DescribeActivitiesCommand = async (input, context) => {
424
+ export const se_DescribeActivitiesCommand = async (input, context) => {
431
425
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
432
426
  const headers = map({}, isSerializableHeaderValue, {
433
427
  authentication: input.AuthenticationToken,
@@ -462,7 +456,7 @@ export const serializeAws_restJson1DescribeActivitiesCommand = async (input, con
462
456
  body,
463
457
  });
464
458
  };
465
- export const serializeAws_restJson1DescribeCommentsCommand = async (input, context) => {
459
+ export const se_DescribeCommentsCommand = async (input, context) => {
466
460
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
467
461
  const headers = map({}, isSerializableHeaderValue, {
468
462
  authentication: input.AuthenticationToken,
@@ -487,7 +481,7 @@ export const serializeAws_restJson1DescribeCommentsCommand = async (input, conte
487
481
  body,
488
482
  });
489
483
  };
490
- export const serializeAws_restJson1DescribeDocumentVersionsCommand = async (input, context) => {
484
+ export const se_DescribeDocumentVersionsCommand = async (input, context) => {
491
485
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
486
  const headers = map({}, isSerializableHeaderValue, {
493
487
  authentication: input.AuthenticationToken,
@@ -512,7 +506,7 @@ export const serializeAws_restJson1DescribeDocumentVersionsCommand = async (inpu
512
506
  body,
513
507
  });
514
508
  };
515
- export const serializeAws_restJson1DescribeFolderContentsCommand = async (input, context) => {
509
+ export const se_DescribeFolderContentsCommand = async (input, context) => {
516
510
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
517
511
  const headers = map({}, isSerializableHeaderValue, {
518
512
  authentication: input.AuthenticationToken,
@@ -539,7 +533,7 @@ export const serializeAws_restJson1DescribeFolderContentsCommand = async (input,
539
533
  body,
540
534
  });
541
535
  };
542
- export const serializeAws_restJson1DescribeGroupsCommand = async (input, context) => {
536
+ export const se_DescribeGroupsCommand = async (input, context) => {
543
537
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
544
538
  const headers = map({}, isSerializableHeaderValue, {
545
539
  authentication: input.AuthenticationToken,
@@ -563,7 +557,7 @@ export const serializeAws_restJson1DescribeGroupsCommand = async (input, context
563
557
  body,
564
558
  });
565
559
  };
566
- export const serializeAws_restJson1DescribeNotificationSubscriptionsCommand = async (input, context) => {
560
+ export const se_DescribeNotificationSubscriptionsCommand = async (input, context) => {
567
561
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
568
562
  const headers = {};
569
563
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -585,7 +579,7 @@ export const serializeAws_restJson1DescribeNotificationSubscriptionsCommand = as
585
579
  body,
586
580
  });
587
581
  };
588
- export const serializeAws_restJson1DescribeResourcePermissionsCommand = async (input, context) => {
582
+ export const se_DescribeResourcePermissionsCommand = async (input, context) => {
589
583
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
590
584
  const headers = map({}, isSerializableHeaderValue, {
591
585
  authentication: input.AuthenticationToken,
@@ -610,7 +604,7 @@ export const serializeAws_restJson1DescribeResourcePermissionsCommand = async (i
610
604
  body,
611
605
  });
612
606
  };
613
- export const serializeAws_restJson1DescribeRootFoldersCommand = async (input, context) => {
607
+ export const se_DescribeRootFoldersCommand = async (input, context) => {
614
608
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
615
609
  const headers = map({}, isSerializableHeaderValue, {
616
610
  authentication: input.AuthenticationToken,
@@ -632,7 +626,7 @@ export const serializeAws_restJson1DescribeRootFoldersCommand = async (input, co
632
626
  body,
633
627
  });
634
628
  };
635
- export const serializeAws_restJson1DescribeUsersCommand = async (input, context) => {
629
+ export const se_DescribeUsersCommand = async (input, context) => {
636
630
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
637
631
  const headers = map({}, isSerializableHeaderValue, {
638
632
  authentication: input.AuthenticationToken,
@@ -661,7 +655,7 @@ export const serializeAws_restJson1DescribeUsersCommand = async (input, context)
661
655
  body,
662
656
  });
663
657
  };
664
- export const serializeAws_restJson1GetCurrentUserCommand = async (input, context) => {
658
+ export const se_GetCurrentUserCommand = async (input, context) => {
665
659
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
666
660
  const headers = map({}, isSerializableHeaderValue, {
667
661
  authentication: input.AuthenticationToken,
@@ -678,7 +672,7 @@ export const serializeAws_restJson1GetCurrentUserCommand = async (input, context
678
672
  body,
679
673
  });
680
674
  };
681
- export const serializeAws_restJson1GetDocumentCommand = async (input, context) => {
675
+ export const se_GetDocumentCommand = async (input, context) => {
682
676
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
683
677
  const headers = map({}, isSerializableHeaderValue, {
684
678
  authentication: input.AuthenticationToken,
@@ -703,7 +697,7 @@ export const serializeAws_restJson1GetDocumentCommand = async (input, context) =
703
697
  body,
704
698
  });
705
699
  };
706
- export const serializeAws_restJson1GetDocumentPathCommand = async (input, context) => {
700
+ export const se_GetDocumentPathCommand = async (input, context) => {
707
701
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
708
702
  const headers = map({}, isSerializableHeaderValue, {
709
703
  authentication: input.AuthenticationToken,
@@ -727,7 +721,7 @@ export const serializeAws_restJson1GetDocumentPathCommand = async (input, contex
727
721
  body,
728
722
  });
729
723
  };
730
- export const serializeAws_restJson1GetDocumentVersionCommand = async (input, context) => {
724
+ export const se_GetDocumentVersionCommand = async (input, context) => {
731
725
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
732
726
  const headers = map({}, isSerializableHeaderValue, {
733
727
  authentication: input.AuthenticationToken,
@@ -755,7 +749,7 @@ export const serializeAws_restJson1GetDocumentVersionCommand = async (input, con
755
749
  body,
756
750
  });
757
751
  };
758
- export const serializeAws_restJson1GetFolderCommand = async (input, context) => {
752
+ export const se_GetFolderCommand = async (input, context) => {
759
753
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
760
754
  const headers = map({}, isSerializableHeaderValue, {
761
755
  authentication: input.AuthenticationToken,
@@ -780,7 +774,7 @@ export const serializeAws_restJson1GetFolderCommand = async (input, context) =>
780
774
  body,
781
775
  });
782
776
  };
783
- export const serializeAws_restJson1GetFolderPathCommand = async (input, context) => {
777
+ export const se_GetFolderPathCommand = async (input, context) => {
784
778
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
785
779
  const headers = map({}, isSerializableHeaderValue, {
786
780
  authentication: input.AuthenticationToken,
@@ -804,7 +798,7 @@ export const serializeAws_restJson1GetFolderPathCommand = async (input, context)
804
798
  body,
805
799
  });
806
800
  };
807
- export const serializeAws_restJson1GetResourcesCommand = async (input, context) => {
801
+ export const se_GetResourcesCommand = async (input, context) => {
808
802
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
809
803
  const headers = map({}, isSerializableHeaderValue, {
810
804
  authentication: input.AuthenticationToken,
@@ -828,7 +822,7 @@ export const serializeAws_restJson1GetResourcesCommand = async (input, context)
828
822
  body,
829
823
  });
830
824
  };
831
- export const serializeAws_restJson1InitiateDocumentVersionUploadCommand = async (input, context) => {
825
+ export const se_InitiateDocumentVersionUploadCommand = async (input, context) => {
832
826
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
833
827
  const headers = map({}, isSerializableHeaderValue, {
834
828
  "content-type": "application/json",
@@ -859,7 +853,7 @@ export const serializeAws_restJson1InitiateDocumentVersionUploadCommand = async
859
853
  body,
860
854
  });
861
855
  };
862
- export const serializeAws_restJson1RemoveAllResourcePermissionsCommand = async (input, context) => {
856
+ export const se_RemoveAllResourcePermissionsCommand = async (input, context) => {
863
857
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
864
858
  const headers = map({}, isSerializableHeaderValue, {
865
859
  authentication: input.AuthenticationToken,
@@ -878,7 +872,7 @@ export const serializeAws_restJson1RemoveAllResourcePermissionsCommand = async (
878
872
  body,
879
873
  });
880
874
  };
881
- export const serializeAws_restJson1RemoveResourcePermissionCommand = async (input, context) => {
875
+ export const se_RemoveResourcePermissionCommand = async (input, context) => {
882
876
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
883
877
  const headers = map({}, isSerializableHeaderValue, {
884
878
  authentication: input.AuthenticationToken,
@@ -902,7 +896,7 @@ export const serializeAws_restJson1RemoveResourcePermissionCommand = async (inpu
902
896
  body,
903
897
  });
904
898
  };
905
- export const serializeAws_restJson1RestoreDocumentVersionsCommand = async (input, context) => {
899
+ export const se_RestoreDocumentVersionsCommand = async (input, context) => {
906
900
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
907
901
  const headers = map({}, isSerializableHeaderValue, {
908
902
  authentication: input.AuthenticationToken,
@@ -921,7 +915,7 @@ export const serializeAws_restJson1RestoreDocumentVersionsCommand = async (input
921
915
  body,
922
916
  });
923
917
  };
924
- export const serializeAws_restJson1SearchResourcesCommand = async (input, context) => {
918
+ export const se_SearchResourcesCommand = async (input, context) => {
925
919
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
926
920
  const headers = map({}, isSerializableHeaderValue, {
927
921
  "content-type": "application/json",
@@ -931,16 +925,14 @@ export const serializeAws_restJson1SearchResourcesCommand = async (input, contex
931
925
  let body;
932
926
  body = JSON.stringify({
933
927
  ...(input.AdditionalResponseFields != null && {
934
- AdditionalResponseFields: serializeAws_restJson1AdditionalResponseFieldsList(input.AdditionalResponseFields, context),
928
+ AdditionalResponseFields: se_AdditionalResponseFieldsList(input.AdditionalResponseFields, context),
935
929
  }),
936
- ...(input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
930
+ ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
937
931
  ...(input.Limit != null && { Limit: input.Limit }),
938
932
  ...(input.Marker != null && { Marker: input.Marker }),
939
- ...(input.OrderBy != null && { OrderBy: serializeAws_restJson1SearchResultSortList(input.OrderBy, context) }),
933
+ ...(input.OrderBy != null && { OrderBy: se_SearchResultSortList(input.OrderBy, context) }),
940
934
  ...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
941
- ...(input.QueryScopes != null && {
942
- QueryScopes: serializeAws_restJson1SearchQueryScopeTypeList(input.QueryScopes, context),
943
- }),
935
+ ...(input.QueryScopes != null && { QueryScopes: se_SearchQueryScopeTypeList(input.QueryScopes, context) }),
944
936
  ...(input.QueryText != null && { QueryText: input.QueryText }),
945
937
  });
946
938
  return new __HttpRequest({
@@ -953,7 +945,7 @@ export const serializeAws_restJson1SearchResourcesCommand = async (input, contex
953
945
  body,
954
946
  });
955
947
  };
956
- export const serializeAws_restJson1UpdateDocumentCommand = async (input, context) => {
948
+ export const se_UpdateDocumentCommand = async (input, context) => {
957
949
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
958
950
  const headers = map({}, isSerializableHeaderValue, {
959
951
  "content-type": "application/json",
@@ -977,7 +969,7 @@ export const serializeAws_restJson1UpdateDocumentCommand = async (input, context
977
969
  body,
978
970
  });
979
971
  };
980
- export const serializeAws_restJson1UpdateDocumentVersionCommand = async (input, context) => {
972
+ export const se_UpdateDocumentVersionCommand = async (input, context) => {
981
973
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
982
974
  const headers = map({}, isSerializableHeaderValue, {
983
975
  "content-type": "application/json",
@@ -1001,7 +993,7 @@ export const serializeAws_restJson1UpdateDocumentVersionCommand = async (input,
1001
993
  body,
1002
994
  });
1003
995
  };
1004
- export const serializeAws_restJson1UpdateFolderCommand = async (input, context) => {
996
+ export const se_UpdateFolderCommand = async (input, context) => {
1005
997
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1006
998
  const headers = map({}, isSerializableHeaderValue, {
1007
999
  "content-type": "application/json",
@@ -1025,7 +1017,7 @@ export const serializeAws_restJson1UpdateFolderCommand = async (input, context)
1025
1017
  body,
1026
1018
  });
1027
1019
  };
1028
- export const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
1020
+ export const se_UpdateUserCommand = async (input, context) => {
1029
1021
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1030
1022
  const headers = map({}, isSerializableHeaderValue, {
1031
1023
  "content-type": "application/json",
@@ -1038,9 +1030,7 @@ export const serializeAws_restJson1UpdateUserCommand = async (input, context) =>
1038
1030
  ...(input.GivenName != null && { GivenName: input.GivenName }),
1039
1031
  ...(input.GrantPoweruserPrivileges != null && { GrantPoweruserPrivileges: input.GrantPoweruserPrivileges }),
1040
1032
  ...(input.Locale != null && { Locale: input.Locale }),
1041
- ...(input.StorageRule != null && {
1042
- StorageRule: serializeAws_restJson1StorageRuleType(input.StorageRule, context),
1043
- }),
1033
+ ...(input.StorageRule != null && { StorageRule: se_StorageRuleType(input.StorageRule, context) }),
1044
1034
  ...(input.Surname != null && { Surname: input.Surname }),
1045
1035
  ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
1046
1036
  ...(input.Type != null && { Type: input.Type }),
@@ -1055,9 +1045,9 @@ export const serializeAws_restJson1UpdateUserCommand = async (input, context) =>
1055
1045
  body,
1056
1046
  });
1057
1047
  };
1058
- export const deserializeAws_restJson1AbortDocumentVersionUploadCommand = async (output, context) => {
1048
+ export const de_AbortDocumentVersionUploadCommand = async (output, context) => {
1059
1049
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1060
- return deserializeAws_restJson1AbortDocumentVersionUploadCommandError(output, context);
1050
+ return de_AbortDocumentVersionUploadCommandError(output, context);
1061
1051
  }
1062
1052
  const contents = map({
1063
1053
  $metadata: deserializeMetadata(output),
@@ -1065,7 +1055,7 @@ export const deserializeAws_restJson1AbortDocumentVersionUploadCommand = async (
1065
1055
  await collectBody(output.body, context);
1066
1056
  return contents;
1067
1057
  };
1068
- const deserializeAws_restJson1AbortDocumentVersionUploadCommandError = async (output, context) => {
1058
+ const de_AbortDocumentVersionUploadCommandError = async (output, context) => {
1069
1059
  const parsedOutput = {
1070
1060
  ...output,
1071
1061
  body: await parseErrorBody(output.body, context),
@@ -1074,25 +1064,25 @@ const deserializeAws_restJson1AbortDocumentVersionUploadCommandError = async (ou
1074
1064
  switch (errorCode) {
1075
1065
  case "ConcurrentModificationException":
1076
1066
  case "com.amazonaws.workdocs#ConcurrentModificationException":
1077
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
1067
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1078
1068
  case "EntityNotExistsException":
1079
1069
  case "com.amazonaws.workdocs#EntityNotExistsException":
1080
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1070
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1081
1071
  case "FailedDependencyException":
1082
1072
  case "com.amazonaws.workdocs#FailedDependencyException":
1083
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1073
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1084
1074
  case "ProhibitedStateException":
1085
1075
  case "com.amazonaws.workdocs#ProhibitedStateException":
1086
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1076
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1087
1077
  case "ServiceUnavailableException":
1088
1078
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1089
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1079
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1090
1080
  case "UnauthorizedOperationException":
1091
1081
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1092
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1082
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1093
1083
  case "UnauthorizedResourceAccessException":
1094
1084
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1095
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1085
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1096
1086
  default:
1097
1087
  const parsedBody = parsedOutput.body;
1098
1088
  throwDefaultError({
@@ -1103,20 +1093,20 @@ const deserializeAws_restJson1AbortDocumentVersionUploadCommandError = async (ou
1103
1093
  });
1104
1094
  }
1105
1095
  };
1106
- export const deserializeAws_restJson1ActivateUserCommand = async (output, context) => {
1096
+ export const de_ActivateUserCommand = async (output, context) => {
1107
1097
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
- return deserializeAws_restJson1ActivateUserCommandError(output, context);
1098
+ return de_ActivateUserCommandError(output, context);
1109
1099
  }
1110
1100
  const contents = map({
1111
1101
  $metadata: deserializeMetadata(output),
1112
1102
  });
1113
1103
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1114
1104
  if (data.User != null) {
1115
- contents.User = deserializeAws_restJson1User(data.User, context);
1105
+ contents.User = de_User(data.User, context);
1116
1106
  }
1117
1107
  return contents;
1118
1108
  };
1119
- const deserializeAws_restJson1ActivateUserCommandError = async (output, context) => {
1109
+ const de_ActivateUserCommandError = async (output, context) => {
1120
1110
  const parsedOutput = {
1121
1111
  ...output,
1122
1112
  body: await parseErrorBody(output.body, context),
@@ -1125,19 +1115,19 @@ const deserializeAws_restJson1ActivateUserCommandError = async (output, context)
1125
1115
  switch (errorCode) {
1126
1116
  case "EntityNotExistsException":
1127
1117
  case "com.amazonaws.workdocs#EntityNotExistsException":
1128
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1118
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1129
1119
  case "FailedDependencyException":
1130
1120
  case "com.amazonaws.workdocs#FailedDependencyException":
1131
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1121
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1132
1122
  case "ServiceUnavailableException":
1133
1123
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1134
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1124
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1135
1125
  case "UnauthorizedOperationException":
1136
1126
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1137
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1127
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1138
1128
  case "UnauthorizedResourceAccessException":
1139
1129
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1140
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1130
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1141
1131
  default:
1142
1132
  const parsedBody = parsedOutput.body;
1143
1133
  throwDefaultError({
@@ -1148,20 +1138,20 @@ const deserializeAws_restJson1ActivateUserCommandError = async (output, context)
1148
1138
  });
1149
1139
  }
1150
1140
  };
1151
- export const deserializeAws_restJson1AddResourcePermissionsCommand = async (output, context) => {
1141
+ export const de_AddResourcePermissionsCommand = async (output, context) => {
1152
1142
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1153
- return deserializeAws_restJson1AddResourcePermissionsCommandError(output, context);
1143
+ return de_AddResourcePermissionsCommandError(output, context);
1154
1144
  }
1155
1145
  const contents = map({
1156
1146
  $metadata: deserializeMetadata(output),
1157
1147
  });
1158
1148
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1159
1149
  if (data.ShareResults != null) {
1160
- contents.ShareResults = deserializeAws_restJson1ShareResultsList(data.ShareResults, context);
1150
+ contents.ShareResults = de_ShareResultsList(data.ShareResults, context);
1161
1151
  }
1162
1152
  return contents;
1163
1153
  };
1164
- const deserializeAws_restJson1AddResourcePermissionsCommandError = async (output, context) => {
1154
+ const de_AddResourcePermissionsCommandError = async (output, context) => {
1165
1155
  const parsedOutput = {
1166
1156
  ...output,
1167
1157
  body: await parseErrorBody(output.body, context),
@@ -1170,19 +1160,19 @@ const deserializeAws_restJson1AddResourcePermissionsCommandError = async (output
1170
1160
  switch (errorCode) {
1171
1161
  case "FailedDependencyException":
1172
1162
  case "com.amazonaws.workdocs#FailedDependencyException":
1173
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1163
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1174
1164
  case "ProhibitedStateException":
1175
1165
  case "com.amazonaws.workdocs#ProhibitedStateException":
1176
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1166
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1177
1167
  case "ServiceUnavailableException":
1178
1168
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1179
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1169
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1180
1170
  case "UnauthorizedOperationException":
1181
1171
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1182
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1172
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1183
1173
  case "UnauthorizedResourceAccessException":
1184
1174
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1185
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1175
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1186
1176
  default:
1187
1177
  const parsedBody = parsedOutput.body;
1188
1178
  throwDefaultError({
@@ -1193,20 +1183,20 @@ const deserializeAws_restJson1AddResourcePermissionsCommandError = async (output
1193
1183
  });
1194
1184
  }
1195
1185
  };
1196
- export const deserializeAws_restJson1CreateCommentCommand = async (output, context) => {
1186
+ export const de_CreateCommentCommand = async (output, context) => {
1197
1187
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1198
- return deserializeAws_restJson1CreateCommentCommandError(output, context);
1188
+ return de_CreateCommentCommandError(output, context);
1199
1189
  }
1200
1190
  const contents = map({
1201
1191
  $metadata: deserializeMetadata(output),
1202
1192
  });
1203
1193
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1204
1194
  if (data.Comment != null) {
1205
- contents.Comment = deserializeAws_restJson1Comment(data.Comment, context);
1195
+ contents.Comment = de_Comment(data.Comment, context);
1206
1196
  }
1207
1197
  return contents;
1208
1198
  };
1209
- const deserializeAws_restJson1CreateCommentCommandError = async (output, context) => {
1199
+ const de_CreateCommentCommandError = async (output, context) => {
1210
1200
  const parsedOutput = {
1211
1201
  ...output,
1212
1202
  body: await parseErrorBody(output.body, context),
@@ -1215,28 +1205,28 @@ const deserializeAws_restJson1CreateCommentCommandError = async (output, context
1215
1205
  switch (errorCode) {
1216
1206
  case "DocumentLockedForCommentsException":
1217
1207
  case "com.amazonaws.workdocs#DocumentLockedForCommentsException":
1218
- throw await deserializeAws_restJson1DocumentLockedForCommentsExceptionResponse(parsedOutput, context);
1208
+ throw await de_DocumentLockedForCommentsExceptionRes(parsedOutput, context);
1219
1209
  case "EntityNotExistsException":
1220
1210
  case "com.amazonaws.workdocs#EntityNotExistsException":
1221
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1211
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1222
1212
  case "FailedDependencyException":
1223
1213
  case "com.amazonaws.workdocs#FailedDependencyException":
1224
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1214
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1225
1215
  case "InvalidCommentOperationException":
1226
1216
  case "com.amazonaws.workdocs#InvalidCommentOperationException":
1227
- throw await deserializeAws_restJson1InvalidCommentOperationExceptionResponse(parsedOutput, context);
1217
+ throw await de_InvalidCommentOperationExceptionRes(parsedOutput, context);
1228
1218
  case "ProhibitedStateException":
1229
1219
  case "com.amazonaws.workdocs#ProhibitedStateException":
1230
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1220
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1231
1221
  case "ServiceUnavailableException":
1232
1222
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1233
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1223
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1234
1224
  case "UnauthorizedOperationException":
1235
1225
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1236
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1226
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1237
1227
  case "UnauthorizedResourceAccessException":
1238
1228
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1239
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1229
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1240
1230
  default:
1241
1231
  const parsedBody = parsedOutput.body;
1242
1232
  throwDefaultError({
@@ -1247,9 +1237,9 @@ const deserializeAws_restJson1CreateCommentCommandError = async (output, context
1247
1237
  });
1248
1238
  }
1249
1239
  };
1250
- export const deserializeAws_restJson1CreateCustomMetadataCommand = async (output, context) => {
1240
+ export const de_CreateCustomMetadataCommand = async (output, context) => {
1251
1241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1252
- return deserializeAws_restJson1CreateCustomMetadataCommandError(output, context);
1242
+ return de_CreateCustomMetadataCommandError(output, context);
1253
1243
  }
1254
1244
  const contents = map({
1255
1245
  $metadata: deserializeMetadata(output),
@@ -1257,7 +1247,7 @@ export const deserializeAws_restJson1CreateCustomMetadataCommand = async (output
1257
1247
  await collectBody(output.body, context);
1258
1248
  return contents;
1259
1249
  };
1260
- const deserializeAws_restJson1CreateCustomMetadataCommandError = async (output, context) => {
1250
+ const de_CreateCustomMetadataCommandError = async (output, context) => {
1261
1251
  const parsedOutput = {
1262
1252
  ...output,
1263
1253
  body: await parseErrorBody(output.body, context),
@@ -1266,25 +1256,25 @@ const deserializeAws_restJson1CreateCustomMetadataCommandError = async (output,
1266
1256
  switch (errorCode) {
1267
1257
  case "CustomMetadataLimitExceededException":
1268
1258
  case "com.amazonaws.workdocs#CustomMetadataLimitExceededException":
1269
- throw await deserializeAws_restJson1CustomMetadataLimitExceededExceptionResponse(parsedOutput, context);
1259
+ throw await de_CustomMetadataLimitExceededExceptionRes(parsedOutput, context);
1270
1260
  case "EntityNotExistsException":
1271
1261
  case "com.amazonaws.workdocs#EntityNotExistsException":
1272
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1262
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1273
1263
  case "FailedDependencyException":
1274
1264
  case "com.amazonaws.workdocs#FailedDependencyException":
1275
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1265
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1276
1266
  case "ProhibitedStateException":
1277
1267
  case "com.amazonaws.workdocs#ProhibitedStateException":
1278
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1268
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1279
1269
  case "ServiceUnavailableException":
1280
1270
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1281
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1271
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1282
1272
  case "UnauthorizedOperationException":
1283
1273
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1284
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1274
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1285
1275
  case "UnauthorizedResourceAccessException":
1286
1276
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1287
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1277
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1288
1278
  default:
1289
1279
  const parsedBody = parsedOutput.body;
1290
1280
  throwDefaultError({
@@ -1295,20 +1285,20 @@ const deserializeAws_restJson1CreateCustomMetadataCommandError = async (output,
1295
1285
  });
1296
1286
  }
1297
1287
  };
1298
- export const deserializeAws_restJson1CreateFolderCommand = async (output, context) => {
1288
+ export const de_CreateFolderCommand = async (output, context) => {
1299
1289
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1300
- return deserializeAws_restJson1CreateFolderCommandError(output, context);
1290
+ return de_CreateFolderCommandError(output, context);
1301
1291
  }
1302
1292
  const contents = map({
1303
1293
  $metadata: deserializeMetadata(output),
1304
1294
  });
1305
1295
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1306
1296
  if (data.Metadata != null) {
1307
- contents.Metadata = deserializeAws_restJson1FolderMetadata(data.Metadata, context);
1297
+ contents.Metadata = de_FolderMetadata(data.Metadata, context);
1308
1298
  }
1309
1299
  return contents;
1310
1300
  };
1311
- const deserializeAws_restJson1CreateFolderCommandError = async (output, context) => {
1301
+ const de_CreateFolderCommandError = async (output, context) => {
1312
1302
  const parsedOutput = {
1313
1303
  ...output,
1314
1304
  body: await parseErrorBody(output.body, context),
@@ -1317,34 +1307,34 @@ const deserializeAws_restJson1CreateFolderCommandError = async (output, context)
1317
1307
  switch (errorCode) {
1318
1308
  case "ConcurrentModificationException":
1319
1309
  case "com.amazonaws.workdocs#ConcurrentModificationException":
1320
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
1310
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1321
1311
  case "ConflictingOperationException":
1322
1312
  case "com.amazonaws.workdocs#ConflictingOperationException":
1323
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
1313
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
1324
1314
  case "EntityAlreadyExistsException":
1325
1315
  case "com.amazonaws.workdocs#EntityAlreadyExistsException":
1326
- throw await deserializeAws_restJson1EntityAlreadyExistsExceptionResponse(parsedOutput, context);
1316
+ throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
1327
1317
  case "EntityNotExistsException":
1328
1318
  case "com.amazonaws.workdocs#EntityNotExistsException":
1329
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1319
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1330
1320
  case "FailedDependencyException":
1331
1321
  case "com.amazonaws.workdocs#FailedDependencyException":
1332
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1322
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1333
1323
  case "LimitExceededException":
1334
1324
  case "com.amazonaws.workdocs#LimitExceededException":
1335
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1325
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1336
1326
  case "ProhibitedStateException":
1337
1327
  case "com.amazonaws.workdocs#ProhibitedStateException":
1338
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1328
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1339
1329
  case "ServiceUnavailableException":
1340
1330
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1341
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1331
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1342
1332
  case "UnauthorizedOperationException":
1343
1333
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1344
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1334
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1345
1335
  case "UnauthorizedResourceAccessException":
1346
1336
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1347
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1337
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1348
1338
  default:
1349
1339
  const parsedBody = parsedOutput.body;
1350
1340
  throwDefaultError({
@@ -1355,9 +1345,9 @@ const deserializeAws_restJson1CreateFolderCommandError = async (output, context)
1355
1345
  });
1356
1346
  }
1357
1347
  };
1358
- export const deserializeAws_restJson1CreateLabelsCommand = async (output, context) => {
1348
+ export const de_CreateLabelsCommand = async (output, context) => {
1359
1349
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1360
- return deserializeAws_restJson1CreateLabelsCommandError(output, context);
1350
+ return de_CreateLabelsCommandError(output, context);
1361
1351
  }
1362
1352
  const contents = map({
1363
1353
  $metadata: deserializeMetadata(output),
@@ -1365,7 +1355,7 @@ export const deserializeAws_restJson1CreateLabelsCommand = async (output, contex
1365
1355
  await collectBody(output.body, context);
1366
1356
  return contents;
1367
1357
  };
1368
- const deserializeAws_restJson1CreateLabelsCommandError = async (output, context) => {
1358
+ const de_CreateLabelsCommandError = async (output, context) => {
1369
1359
  const parsedOutput = {
1370
1360
  ...output,
1371
1361
  body: await parseErrorBody(output.body, context),
@@ -1374,22 +1364,22 @@ const deserializeAws_restJson1CreateLabelsCommandError = async (output, context)
1374
1364
  switch (errorCode) {
1375
1365
  case "EntityNotExistsException":
1376
1366
  case "com.amazonaws.workdocs#EntityNotExistsException":
1377
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1367
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1378
1368
  case "FailedDependencyException":
1379
1369
  case "com.amazonaws.workdocs#FailedDependencyException":
1380
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1370
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1381
1371
  case "ServiceUnavailableException":
1382
1372
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1383
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1373
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1384
1374
  case "TooManyLabelsException":
1385
1375
  case "com.amazonaws.workdocs#TooManyLabelsException":
1386
- throw await deserializeAws_restJson1TooManyLabelsExceptionResponse(parsedOutput, context);
1376
+ throw await de_TooManyLabelsExceptionRes(parsedOutput, context);
1387
1377
  case "UnauthorizedOperationException":
1388
1378
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1389
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1379
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1390
1380
  case "UnauthorizedResourceAccessException":
1391
1381
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1392
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1382
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1393
1383
  default:
1394
1384
  const parsedBody = parsedOutput.body;
1395
1385
  throwDefaultError({
@@ -1400,20 +1390,20 @@ const deserializeAws_restJson1CreateLabelsCommandError = async (output, context)
1400
1390
  });
1401
1391
  }
1402
1392
  };
1403
- export const deserializeAws_restJson1CreateNotificationSubscriptionCommand = async (output, context) => {
1393
+ export const de_CreateNotificationSubscriptionCommand = async (output, context) => {
1404
1394
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1405
- return deserializeAws_restJson1CreateNotificationSubscriptionCommandError(output, context);
1395
+ return de_CreateNotificationSubscriptionCommandError(output, context);
1406
1396
  }
1407
1397
  const contents = map({
1408
1398
  $metadata: deserializeMetadata(output),
1409
1399
  });
1410
1400
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1411
1401
  if (data.Subscription != null) {
1412
- contents.Subscription = deserializeAws_restJson1Subscription(data.Subscription, context);
1402
+ contents.Subscription = de_Subscription(data.Subscription, context);
1413
1403
  }
1414
1404
  return contents;
1415
1405
  };
1416
- const deserializeAws_restJson1CreateNotificationSubscriptionCommandError = async (output, context) => {
1406
+ const de_CreateNotificationSubscriptionCommandError = async (output, context) => {
1417
1407
  const parsedOutput = {
1418
1408
  ...output,
1419
1409
  body: await parseErrorBody(output.body, context),
@@ -1422,16 +1412,16 @@ const deserializeAws_restJson1CreateNotificationSubscriptionCommandError = async
1422
1412
  switch (errorCode) {
1423
1413
  case "InvalidArgumentException":
1424
1414
  case "com.amazonaws.workdocs#InvalidArgumentException":
1425
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
1415
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1426
1416
  case "ServiceUnavailableException":
1427
1417
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1428
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1418
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1429
1419
  case "TooManySubscriptionsException":
1430
1420
  case "com.amazonaws.workdocs#TooManySubscriptionsException":
1431
- throw await deserializeAws_restJson1TooManySubscriptionsExceptionResponse(parsedOutput, context);
1421
+ throw await de_TooManySubscriptionsExceptionRes(parsedOutput, context);
1432
1422
  case "UnauthorizedResourceAccessException":
1433
1423
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1434
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1424
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1435
1425
  default:
1436
1426
  const parsedBody = parsedOutput.body;
1437
1427
  throwDefaultError({
@@ -1442,20 +1432,20 @@ const deserializeAws_restJson1CreateNotificationSubscriptionCommandError = async
1442
1432
  });
1443
1433
  }
1444
1434
  };
1445
- export const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
1435
+ export const de_CreateUserCommand = async (output, context) => {
1446
1436
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1447
- return deserializeAws_restJson1CreateUserCommandError(output, context);
1437
+ return de_CreateUserCommandError(output, context);
1448
1438
  }
1449
1439
  const contents = map({
1450
1440
  $metadata: deserializeMetadata(output),
1451
1441
  });
1452
1442
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1453
1443
  if (data.User != null) {
1454
- contents.User = deserializeAws_restJson1User(data.User, context);
1444
+ contents.User = de_User(data.User, context);
1455
1445
  }
1456
1446
  return contents;
1457
1447
  };
1458
- const deserializeAws_restJson1CreateUserCommandError = async (output, context) => {
1448
+ const de_CreateUserCommandError = async (output, context) => {
1459
1449
  const parsedOutput = {
1460
1450
  ...output,
1461
1451
  body: await parseErrorBody(output.body, context),
@@ -1464,19 +1454,19 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
1464
1454
  switch (errorCode) {
1465
1455
  case "EntityAlreadyExistsException":
1466
1456
  case "com.amazonaws.workdocs#EntityAlreadyExistsException":
1467
- throw await deserializeAws_restJson1EntityAlreadyExistsExceptionResponse(parsedOutput, context);
1457
+ throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
1468
1458
  case "FailedDependencyException":
1469
1459
  case "com.amazonaws.workdocs#FailedDependencyException":
1470
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1460
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1471
1461
  case "ServiceUnavailableException":
1472
1462
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1473
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1463
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1474
1464
  case "UnauthorizedOperationException":
1475
1465
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1476
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1466
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1477
1467
  case "UnauthorizedResourceAccessException":
1478
1468
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1479
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1469
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1480
1470
  default:
1481
1471
  const parsedBody = parsedOutput.body;
1482
1472
  throwDefaultError({
@@ -1487,9 +1477,9 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
1487
1477
  });
1488
1478
  }
1489
1479
  };
1490
- export const deserializeAws_restJson1DeactivateUserCommand = async (output, context) => {
1480
+ export const de_DeactivateUserCommand = async (output, context) => {
1491
1481
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1492
- return deserializeAws_restJson1DeactivateUserCommandError(output, context);
1482
+ return de_DeactivateUserCommandError(output, context);
1493
1483
  }
1494
1484
  const contents = map({
1495
1485
  $metadata: deserializeMetadata(output),
@@ -1497,7 +1487,7 @@ export const deserializeAws_restJson1DeactivateUserCommand = async (output, cont
1497
1487
  await collectBody(output.body, context);
1498
1488
  return contents;
1499
1489
  };
1500
- const deserializeAws_restJson1DeactivateUserCommandError = async (output, context) => {
1490
+ const de_DeactivateUserCommandError = async (output, context) => {
1501
1491
  const parsedOutput = {
1502
1492
  ...output,
1503
1493
  body: await parseErrorBody(output.body, context),
@@ -1506,19 +1496,19 @@ const deserializeAws_restJson1DeactivateUserCommandError = async (output, contex
1506
1496
  switch (errorCode) {
1507
1497
  case "EntityNotExistsException":
1508
1498
  case "com.amazonaws.workdocs#EntityNotExistsException":
1509
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1499
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1510
1500
  case "FailedDependencyException":
1511
1501
  case "com.amazonaws.workdocs#FailedDependencyException":
1512
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1502
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1513
1503
  case "ServiceUnavailableException":
1514
1504
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1515
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1505
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1516
1506
  case "UnauthorizedOperationException":
1517
1507
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1518
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1508
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1519
1509
  case "UnauthorizedResourceAccessException":
1520
1510
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1521
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1511
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1522
1512
  default:
1523
1513
  const parsedBody = parsedOutput.body;
1524
1514
  throwDefaultError({
@@ -1529,9 +1519,9 @@ const deserializeAws_restJson1DeactivateUserCommandError = async (output, contex
1529
1519
  });
1530
1520
  }
1531
1521
  };
1532
- export const deserializeAws_restJson1DeleteCommentCommand = async (output, context) => {
1522
+ export const de_DeleteCommentCommand = async (output, context) => {
1533
1523
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1534
- return deserializeAws_restJson1DeleteCommentCommandError(output, context);
1524
+ return de_DeleteCommentCommandError(output, context);
1535
1525
  }
1536
1526
  const contents = map({
1537
1527
  $metadata: deserializeMetadata(output),
@@ -1539,7 +1529,7 @@ export const deserializeAws_restJson1DeleteCommentCommand = async (output, conte
1539
1529
  await collectBody(output.body, context);
1540
1530
  return contents;
1541
1531
  };
1542
- const deserializeAws_restJson1DeleteCommentCommandError = async (output, context) => {
1532
+ const de_DeleteCommentCommandError = async (output, context) => {
1543
1533
  const parsedOutput = {
1544
1534
  ...output,
1545
1535
  body: await parseErrorBody(output.body, context),
@@ -1548,25 +1538,25 @@ const deserializeAws_restJson1DeleteCommentCommandError = async (output, context
1548
1538
  switch (errorCode) {
1549
1539
  case "DocumentLockedForCommentsException":
1550
1540
  case "com.amazonaws.workdocs#DocumentLockedForCommentsException":
1551
- throw await deserializeAws_restJson1DocumentLockedForCommentsExceptionResponse(parsedOutput, context);
1541
+ throw await de_DocumentLockedForCommentsExceptionRes(parsedOutput, context);
1552
1542
  case "EntityNotExistsException":
1553
1543
  case "com.amazonaws.workdocs#EntityNotExistsException":
1554
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1544
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1555
1545
  case "FailedDependencyException":
1556
1546
  case "com.amazonaws.workdocs#FailedDependencyException":
1557
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1547
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1558
1548
  case "ProhibitedStateException":
1559
1549
  case "com.amazonaws.workdocs#ProhibitedStateException":
1560
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1550
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1561
1551
  case "ServiceUnavailableException":
1562
1552
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1563
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1553
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1564
1554
  case "UnauthorizedOperationException":
1565
1555
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1566
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1556
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1567
1557
  case "UnauthorizedResourceAccessException":
1568
1558
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1569
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1559
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1570
1560
  default:
1571
1561
  const parsedBody = parsedOutput.body;
1572
1562
  throwDefaultError({
@@ -1577,9 +1567,9 @@ const deserializeAws_restJson1DeleteCommentCommandError = async (output, context
1577
1567
  });
1578
1568
  }
1579
1569
  };
1580
- export const deserializeAws_restJson1DeleteCustomMetadataCommand = async (output, context) => {
1570
+ export const de_DeleteCustomMetadataCommand = async (output, context) => {
1581
1571
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
- return deserializeAws_restJson1DeleteCustomMetadataCommandError(output, context);
1572
+ return de_DeleteCustomMetadataCommandError(output, context);
1583
1573
  }
1584
1574
  const contents = map({
1585
1575
  $metadata: deserializeMetadata(output),
@@ -1587,7 +1577,7 @@ export const deserializeAws_restJson1DeleteCustomMetadataCommand = async (output
1587
1577
  await collectBody(output.body, context);
1588
1578
  return contents;
1589
1579
  };
1590
- const deserializeAws_restJson1DeleteCustomMetadataCommandError = async (output, context) => {
1580
+ const de_DeleteCustomMetadataCommandError = async (output, context) => {
1591
1581
  const parsedOutput = {
1592
1582
  ...output,
1593
1583
  body: await parseErrorBody(output.body, context),
@@ -1596,22 +1586,22 @@ const deserializeAws_restJson1DeleteCustomMetadataCommandError = async (output,
1596
1586
  switch (errorCode) {
1597
1587
  case "EntityNotExistsException":
1598
1588
  case "com.amazonaws.workdocs#EntityNotExistsException":
1599
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1589
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1600
1590
  case "FailedDependencyException":
1601
1591
  case "com.amazonaws.workdocs#FailedDependencyException":
1602
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1592
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1603
1593
  case "ProhibitedStateException":
1604
1594
  case "com.amazonaws.workdocs#ProhibitedStateException":
1605
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1595
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1606
1596
  case "ServiceUnavailableException":
1607
1597
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1608
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1598
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1609
1599
  case "UnauthorizedOperationException":
1610
1600
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1611
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1601
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1612
1602
  case "UnauthorizedResourceAccessException":
1613
1603
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1614
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1604
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1615
1605
  default:
1616
1606
  const parsedBody = parsedOutput.body;
1617
1607
  throwDefaultError({
@@ -1622,9 +1612,9 @@ const deserializeAws_restJson1DeleteCustomMetadataCommandError = async (output,
1622
1612
  });
1623
1613
  }
1624
1614
  };
1625
- export const deserializeAws_restJson1DeleteDocumentCommand = async (output, context) => {
1615
+ export const de_DeleteDocumentCommand = async (output, context) => {
1626
1616
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1627
- return deserializeAws_restJson1DeleteDocumentCommandError(output, context);
1617
+ return de_DeleteDocumentCommandError(output, context);
1628
1618
  }
1629
1619
  const contents = map({
1630
1620
  $metadata: deserializeMetadata(output),
@@ -1632,7 +1622,7 @@ export const deserializeAws_restJson1DeleteDocumentCommand = async (output, cont
1632
1622
  await collectBody(output.body, context);
1633
1623
  return contents;
1634
1624
  };
1635
- const deserializeAws_restJson1DeleteDocumentCommandError = async (output, context) => {
1625
+ const de_DeleteDocumentCommandError = async (output, context) => {
1636
1626
  const parsedOutput = {
1637
1627
  ...output,
1638
1628
  body: await parseErrorBody(output.body, context),
@@ -1641,31 +1631,31 @@ const deserializeAws_restJson1DeleteDocumentCommandError = async (output, contex
1641
1631
  switch (errorCode) {
1642
1632
  case "ConcurrentModificationException":
1643
1633
  case "com.amazonaws.workdocs#ConcurrentModificationException":
1644
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
1634
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1645
1635
  case "ConflictingOperationException":
1646
1636
  case "com.amazonaws.workdocs#ConflictingOperationException":
1647
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
1637
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
1648
1638
  case "EntityNotExistsException":
1649
1639
  case "com.amazonaws.workdocs#EntityNotExistsException":
1650
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1640
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1651
1641
  case "FailedDependencyException":
1652
1642
  case "com.amazonaws.workdocs#FailedDependencyException":
1653
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1643
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1654
1644
  case "LimitExceededException":
1655
1645
  case "com.amazonaws.workdocs#LimitExceededException":
1656
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1646
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1657
1647
  case "ProhibitedStateException":
1658
1648
  case "com.amazonaws.workdocs#ProhibitedStateException":
1659
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1649
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1660
1650
  case "ServiceUnavailableException":
1661
1651
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1662
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1652
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1663
1653
  case "UnauthorizedOperationException":
1664
1654
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1665
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1655
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1666
1656
  case "UnauthorizedResourceAccessException":
1667
1657
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1668
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1658
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1669
1659
  default:
1670
1660
  const parsedBody = parsedOutput.body;
1671
1661
  throwDefaultError({
@@ -1676,9 +1666,9 @@ const deserializeAws_restJson1DeleteDocumentCommandError = async (output, contex
1676
1666
  });
1677
1667
  }
1678
1668
  };
1679
- export const deserializeAws_restJson1DeleteDocumentVersionCommand = async (output, context) => {
1669
+ export const de_DeleteDocumentVersionCommand = async (output, context) => {
1680
1670
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1681
- return deserializeAws_restJson1DeleteDocumentVersionCommandError(output, context);
1671
+ return de_DeleteDocumentVersionCommandError(output, context);
1682
1672
  }
1683
1673
  const contents = map({
1684
1674
  $metadata: deserializeMetadata(output),
@@ -1686,7 +1676,7 @@ export const deserializeAws_restJson1DeleteDocumentVersionCommand = async (outpu
1686
1676
  await collectBody(output.body, context);
1687
1677
  return contents;
1688
1678
  };
1689
- const deserializeAws_restJson1DeleteDocumentVersionCommandError = async (output, context) => {
1679
+ const de_DeleteDocumentVersionCommandError = async (output, context) => {
1690
1680
  const parsedOutput = {
1691
1681
  ...output,
1692
1682
  body: await parseErrorBody(output.body, context),
@@ -1695,28 +1685,28 @@ const deserializeAws_restJson1DeleteDocumentVersionCommandError = async (output,
1695
1685
  switch (errorCode) {
1696
1686
  case "ConcurrentModificationException":
1697
1687
  case "com.amazonaws.workdocs#ConcurrentModificationException":
1698
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
1688
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1699
1689
  case "ConflictingOperationException":
1700
1690
  case "com.amazonaws.workdocs#ConflictingOperationException":
1701
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
1691
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
1702
1692
  case "EntityNotExistsException":
1703
1693
  case "com.amazonaws.workdocs#EntityNotExistsException":
1704
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1694
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1705
1695
  case "FailedDependencyException":
1706
1696
  case "com.amazonaws.workdocs#FailedDependencyException":
1707
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1697
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1708
1698
  case "InvalidOperationException":
1709
1699
  case "com.amazonaws.workdocs#InvalidOperationException":
1710
- throw await deserializeAws_restJson1InvalidOperationExceptionResponse(parsedOutput, context);
1700
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1711
1701
  case "ProhibitedStateException":
1712
1702
  case "com.amazonaws.workdocs#ProhibitedStateException":
1713
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1703
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1714
1704
  case "UnauthorizedOperationException":
1715
1705
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1716
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1706
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1717
1707
  case "UnauthorizedResourceAccessException":
1718
1708
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1719
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1709
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1720
1710
  default:
1721
1711
  const parsedBody = parsedOutput.body;
1722
1712
  throwDefaultError({
@@ -1727,9 +1717,9 @@ const deserializeAws_restJson1DeleteDocumentVersionCommandError = async (output,
1727
1717
  });
1728
1718
  }
1729
1719
  };
1730
- export const deserializeAws_restJson1DeleteFolderCommand = async (output, context) => {
1720
+ export const de_DeleteFolderCommand = async (output, context) => {
1731
1721
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1732
- return deserializeAws_restJson1DeleteFolderCommandError(output, context);
1722
+ return de_DeleteFolderCommandError(output, context);
1733
1723
  }
1734
1724
  const contents = map({
1735
1725
  $metadata: deserializeMetadata(output),
@@ -1737,7 +1727,7 @@ export const deserializeAws_restJson1DeleteFolderCommand = async (output, contex
1737
1727
  await collectBody(output.body, context);
1738
1728
  return contents;
1739
1729
  };
1740
- const deserializeAws_restJson1DeleteFolderCommandError = async (output, context) => {
1730
+ const de_DeleteFolderCommandError = async (output, context) => {
1741
1731
  const parsedOutput = {
1742
1732
  ...output,
1743
1733
  body: await parseErrorBody(output.body, context),
@@ -1746,31 +1736,31 @@ const deserializeAws_restJson1DeleteFolderCommandError = async (output, context)
1746
1736
  switch (errorCode) {
1747
1737
  case "ConcurrentModificationException":
1748
1738
  case "com.amazonaws.workdocs#ConcurrentModificationException":
1749
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
1739
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1750
1740
  case "ConflictingOperationException":
1751
1741
  case "com.amazonaws.workdocs#ConflictingOperationException":
1752
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
1742
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
1753
1743
  case "EntityNotExistsException":
1754
1744
  case "com.amazonaws.workdocs#EntityNotExistsException":
1755
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1745
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1756
1746
  case "FailedDependencyException":
1757
1747
  case "com.amazonaws.workdocs#FailedDependencyException":
1758
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1748
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1759
1749
  case "LimitExceededException":
1760
1750
  case "com.amazonaws.workdocs#LimitExceededException":
1761
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1751
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1762
1752
  case "ProhibitedStateException":
1763
1753
  case "com.amazonaws.workdocs#ProhibitedStateException":
1764
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1754
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1765
1755
  case "ServiceUnavailableException":
1766
1756
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1767
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1757
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1768
1758
  case "UnauthorizedOperationException":
1769
1759
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1770
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1760
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1771
1761
  case "UnauthorizedResourceAccessException":
1772
1762
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1773
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1763
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1774
1764
  default:
1775
1765
  const parsedBody = parsedOutput.body;
1776
1766
  throwDefaultError({
@@ -1781,9 +1771,9 @@ const deserializeAws_restJson1DeleteFolderCommandError = async (output, context)
1781
1771
  });
1782
1772
  }
1783
1773
  };
1784
- export const deserializeAws_restJson1DeleteFolderContentsCommand = async (output, context) => {
1774
+ export const de_DeleteFolderContentsCommand = async (output, context) => {
1785
1775
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1786
- return deserializeAws_restJson1DeleteFolderContentsCommandError(output, context);
1776
+ return de_DeleteFolderContentsCommandError(output, context);
1787
1777
  }
1788
1778
  const contents = map({
1789
1779
  $metadata: deserializeMetadata(output),
@@ -1791,7 +1781,7 @@ export const deserializeAws_restJson1DeleteFolderContentsCommand = async (output
1791
1781
  await collectBody(output.body, context);
1792
1782
  return contents;
1793
1783
  };
1794
- const deserializeAws_restJson1DeleteFolderContentsCommandError = async (output, context) => {
1784
+ const de_DeleteFolderContentsCommandError = async (output, context) => {
1795
1785
  const parsedOutput = {
1796
1786
  ...output,
1797
1787
  body: await parseErrorBody(output.body, context),
@@ -1800,25 +1790,25 @@ const deserializeAws_restJson1DeleteFolderContentsCommandError = async (output,
1800
1790
  switch (errorCode) {
1801
1791
  case "ConflictingOperationException":
1802
1792
  case "com.amazonaws.workdocs#ConflictingOperationException":
1803
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
1793
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
1804
1794
  case "EntityNotExistsException":
1805
1795
  case "com.amazonaws.workdocs#EntityNotExistsException":
1806
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1796
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1807
1797
  case "FailedDependencyException":
1808
1798
  case "com.amazonaws.workdocs#FailedDependencyException":
1809
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1799
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1810
1800
  case "ProhibitedStateException":
1811
1801
  case "com.amazonaws.workdocs#ProhibitedStateException":
1812
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1802
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1813
1803
  case "ServiceUnavailableException":
1814
1804
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1815
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1805
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1816
1806
  case "UnauthorizedOperationException":
1817
1807
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1818
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1808
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1819
1809
  case "UnauthorizedResourceAccessException":
1820
1810
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1821
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1811
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1822
1812
  default:
1823
1813
  const parsedBody = parsedOutput.body;
1824
1814
  throwDefaultError({
@@ -1829,9 +1819,9 @@ const deserializeAws_restJson1DeleteFolderContentsCommandError = async (output,
1829
1819
  });
1830
1820
  }
1831
1821
  };
1832
- export const deserializeAws_restJson1DeleteLabelsCommand = async (output, context) => {
1822
+ export const de_DeleteLabelsCommand = async (output, context) => {
1833
1823
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1834
- return deserializeAws_restJson1DeleteLabelsCommandError(output, context);
1824
+ return de_DeleteLabelsCommandError(output, context);
1835
1825
  }
1836
1826
  const contents = map({
1837
1827
  $metadata: deserializeMetadata(output),
@@ -1839,7 +1829,7 @@ export const deserializeAws_restJson1DeleteLabelsCommand = async (output, contex
1839
1829
  await collectBody(output.body, context);
1840
1830
  return contents;
1841
1831
  };
1842
- const deserializeAws_restJson1DeleteLabelsCommandError = async (output, context) => {
1832
+ const de_DeleteLabelsCommandError = async (output, context) => {
1843
1833
  const parsedOutput = {
1844
1834
  ...output,
1845
1835
  body: await parseErrorBody(output.body, context),
@@ -1848,22 +1838,22 @@ const deserializeAws_restJson1DeleteLabelsCommandError = async (output, context)
1848
1838
  switch (errorCode) {
1849
1839
  case "EntityNotExistsException":
1850
1840
  case "com.amazonaws.workdocs#EntityNotExistsException":
1851
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1841
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1852
1842
  case "FailedDependencyException":
1853
1843
  case "com.amazonaws.workdocs#FailedDependencyException":
1854
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1844
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1855
1845
  case "ProhibitedStateException":
1856
1846
  case "com.amazonaws.workdocs#ProhibitedStateException":
1857
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1847
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1858
1848
  case "ServiceUnavailableException":
1859
1849
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1860
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1850
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1861
1851
  case "UnauthorizedOperationException":
1862
1852
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1863
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1853
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1864
1854
  case "UnauthorizedResourceAccessException":
1865
1855
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1866
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1856
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1867
1857
  default:
1868
1858
  const parsedBody = parsedOutput.body;
1869
1859
  throwDefaultError({
@@ -1874,9 +1864,9 @@ const deserializeAws_restJson1DeleteLabelsCommandError = async (output, context)
1874
1864
  });
1875
1865
  }
1876
1866
  };
1877
- export const deserializeAws_restJson1DeleteNotificationSubscriptionCommand = async (output, context) => {
1867
+ export const de_DeleteNotificationSubscriptionCommand = async (output, context) => {
1878
1868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1879
- return deserializeAws_restJson1DeleteNotificationSubscriptionCommandError(output, context);
1869
+ return de_DeleteNotificationSubscriptionCommandError(output, context);
1880
1870
  }
1881
1871
  const contents = map({
1882
1872
  $metadata: deserializeMetadata(output),
@@ -1884,7 +1874,7 @@ export const deserializeAws_restJson1DeleteNotificationSubscriptionCommand = asy
1884
1874
  await collectBody(output.body, context);
1885
1875
  return contents;
1886
1876
  };
1887
- const deserializeAws_restJson1DeleteNotificationSubscriptionCommandError = async (output, context) => {
1877
+ const de_DeleteNotificationSubscriptionCommandError = async (output, context) => {
1888
1878
  const parsedOutput = {
1889
1879
  ...output,
1890
1880
  body: await parseErrorBody(output.body, context),
@@ -1893,16 +1883,16 @@ const deserializeAws_restJson1DeleteNotificationSubscriptionCommandError = async
1893
1883
  switch (errorCode) {
1894
1884
  case "EntityNotExistsException":
1895
1885
  case "com.amazonaws.workdocs#EntityNotExistsException":
1896
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1886
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1897
1887
  case "ProhibitedStateException":
1898
1888
  case "com.amazonaws.workdocs#ProhibitedStateException":
1899
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
1889
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
1900
1890
  case "ServiceUnavailableException":
1901
1891
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1902
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1892
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1903
1893
  case "UnauthorizedResourceAccessException":
1904
1894
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1905
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1895
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1906
1896
  default:
1907
1897
  const parsedBody = parsedOutput.body;
1908
1898
  throwDefaultError({
@@ -1913,9 +1903,9 @@ const deserializeAws_restJson1DeleteNotificationSubscriptionCommandError = async
1913
1903
  });
1914
1904
  }
1915
1905
  };
1916
- export const deserializeAws_restJson1DeleteUserCommand = async (output, context) => {
1906
+ export const de_DeleteUserCommand = async (output, context) => {
1917
1907
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1918
- return deserializeAws_restJson1DeleteUserCommandError(output, context);
1908
+ return de_DeleteUserCommandError(output, context);
1919
1909
  }
1920
1910
  const contents = map({
1921
1911
  $metadata: deserializeMetadata(output),
@@ -1923,7 +1913,7 @@ export const deserializeAws_restJson1DeleteUserCommand = async (output, context)
1923
1913
  await collectBody(output.body, context);
1924
1914
  return contents;
1925
1915
  };
1926
- const deserializeAws_restJson1DeleteUserCommandError = async (output, context) => {
1916
+ const de_DeleteUserCommandError = async (output, context) => {
1927
1917
  const parsedOutput = {
1928
1918
  ...output,
1929
1919
  body: await parseErrorBody(output.body, context),
@@ -1932,19 +1922,19 @@ const deserializeAws_restJson1DeleteUserCommandError = async (output, context) =
1932
1922
  switch (errorCode) {
1933
1923
  case "EntityNotExistsException":
1934
1924
  case "com.amazonaws.workdocs#EntityNotExistsException":
1935
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
1925
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
1936
1926
  case "FailedDependencyException":
1937
1927
  case "com.amazonaws.workdocs#FailedDependencyException":
1938
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1928
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1939
1929
  case "ServiceUnavailableException":
1940
1930
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1941
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1931
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1942
1932
  case "UnauthorizedOperationException":
1943
1933
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1944
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1934
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1945
1935
  case "UnauthorizedResourceAccessException":
1946
1936
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1947
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1937
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1948
1938
  default:
1949
1939
  const parsedBody = parsedOutput.body;
1950
1940
  throwDefaultError({
@@ -1955,9 +1945,9 @@ const deserializeAws_restJson1DeleteUserCommandError = async (output, context) =
1955
1945
  });
1956
1946
  }
1957
1947
  };
1958
- export const deserializeAws_restJson1DescribeActivitiesCommand = async (output, context) => {
1948
+ export const de_DescribeActivitiesCommand = async (output, context) => {
1959
1949
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1960
- return deserializeAws_restJson1DescribeActivitiesCommandError(output, context);
1950
+ return de_DescribeActivitiesCommandError(output, context);
1961
1951
  }
1962
1952
  const contents = map({
1963
1953
  $metadata: deserializeMetadata(output),
@@ -1967,11 +1957,11 @@ export const deserializeAws_restJson1DescribeActivitiesCommand = async (output,
1967
1957
  contents.Marker = __expectString(data.Marker);
1968
1958
  }
1969
1959
  if (data.UserActivities != null) {
1970
- contents.UserActivities = deserializeAws_restJson1UserActivities(data.UserActivities, context);
1960
+ contents.UserActivities = de_UserActivities(data.UserActivities, context);
1971
1961
  }
1972
1962
  return contents;
1973
1963
  };
1974
- const deserializeAws_restJson1DescribeActivitiesCommandError = async (output, context) => {
1964
+ const de_DescribeActivitiesCommandError = async (output, context) => {
1975
1965
  const parsedOutput = {
1976
1966
  ...output,
1977
1967
  body: await parseErrorBody(output.body, context),
@@ -1980,19 +1970,19 @@ const deserializeAws_restJson1DescribeActivitiesCommandError = async (output, co
1980
1970
  switch (errorCode) {
1981
1971
  case "FailedDependencyException":
1982
1972
  case "com.amazonaws.workdocs#FailedDependencyException":
1983
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
1973
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
1984
1974
  case "InvalidArgumentException":
1985
1975
  case "com.amazonaws.workdocs#InvalidArgumentException":
1986
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
1976
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1987
1977
  case "ServiceUnavailableException":
1988
1978
  case "com.amazonaws.workdocs#ServiceUnavailableException":
1989
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1979
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1990
1980
  case "UnauthorizedOperationException":
1991
1981
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
1992
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
1982
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
1993
1983
  case "UnauthorizedResourceAccessException":
1994
1984
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
1995
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
1985
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
1996
1986
  default:
1997
1987
  const parsedBody = parsedOutput.body;
1998
1988
  throwDefaultError({
@@ -2003,23 +1993,23 @@ const deserializeAws_restJson1DescribeActivitiesCommandError = async (output, co
2003
1993
  });
2004
1994
  }
2005
1995
  };
2006
- export const deserializeAws_restJson1DescribeCommentsCommand = async (output, context) => {
1996
+ export const de_DescribeCommentsCommand = async (output, context) => {
2007
1997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2008
- return deserializeAws_restJson1DescribeCommentsCommandError(output, context);
1998
+ return de_DescribeCommentsCommandError(output, context);
2009
1999
  }
2010
2000
  const contents = map({
2011
2001
  $metadata: deserializeMetadata(output),
2012
2002
  });
2013
2003
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2014
2004
  if (data.Comments != null) {
2015
- contents.Comments = deserializeAws_restJson1CommentList(data.Comments, context);
2005
+ contents.Comments = de_CommentList(data.Comments, context);
2016
2006
  }
2017
2007
  if (data.Marker != null) {
2018
2008
  contents.Marker = __expectString(data.Marker);
2019
2009
  }
2020
2010
  return contents;
2021
2011
  };
2022
- const deserializeAws_restJson1DescribeCommentsCommandError = async (output, context) => {
2012
+ const de_DescribeCommentsCommandError = async (output, context) => {
2023
2013
  const parsedOutput = {
2024
2014
  ...output,
2025
2015
  body: await parseErrorBody(output.body, context),
@@ -2028,22 +2018,22 @@ const deserializeAws_restJson1DescribeCommentsCommandError = async (output, cont
2028
2018
  switch (errorCode) {
2029
2019
  case "EntityNotExistsException":
2030
2020
  case "com.amazonaws.workdocs#EntityNotExistsException":
2031
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2021
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2032
2022
  case "FailedDependencyException":
2033
2023
  case "com.amazonaws.workdocs#FailedDependencyException":
2034
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2024
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2035
2025
  case "ProhibitedStateException":
2036
2026
  case "com.amazonaws.workdocs#ProhibitedStateException":
2037
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
2027
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
2038
2028
  case "ServiceUnavailableException":
2039
2029
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2040
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2030
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2041
2031
  case "UnauthorizedOperationException":
2042
2032
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2043
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2033
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2044
2034
  case "UnauthorizedResourceAccessException":
2045
2035
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2046
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2036
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2047
2037
  default:
2048
2038
  const parsedBody = parsedOutput.body;
2049
2039
  throwDefaultError({
@@ -2054,23 +2044,23 @@ const deserializeAws_restJson1DescribeCommentsCommandError = async (output, cont
2054
2044
  });
2055
2045
  }
2056
2046
  };
2057
- export const deserializeAws_restJson1DescribeDocumentVersionsCommand = async (output, context) => {
2047
+ export const de_DescribeDocumentVersionsCommand = async (output, context) => {
2058
2048
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2059
- return deserializeAws_restJson1DescribeDocumentVersionsCommandError(output, context);
2049
+ return de_DescribeDocumentVersionsCommandError(output, context);
2060
2050
  }
2061
2051
  const contents = map({
2062
2052
  $metadata: deserializeMetadata(output),
2063
2053
  });
2064
2054
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2065
2055
  if (data.DocumentVersions != null) {
2066
- contents.DocumentVersions = deserializeAws_restJson1DocumentVersionMetadataList(data.DocumentVersions, context);
2056
+ contents.DocumentVersions = de_DocumentVersionMetadataList(data.DocumentVersions, context);
2067
2057
  }
2068
2058
  if (data.Marker != null) {
2069
2059
  contents.Marker = __expectString(data.Marker);
2070
2060
  }
2071
2061
  return contents;
2072
2062
  };
2073
- const deserializeAws_restJson1DescribeDocumentVersionsCommandError = async (output, context) => {
2063
+ const de_DescribeDocumentVersionsCommandError = async (output, context) => {
2074
2064
  const parsedOutput = {
2075
2065
  ...output,
2076
2066
  body: await parseErrorBody(output.body, context),
@@ -2079,28 +2069,28 @@ const deserializeAws_restJson1DescribeDocumentVersionsCommandError = async (outp
2079
2069
  switch (errorCode) {
2080
2070
  case "EntityNotExistsException":
2081
2071
  case "com.amazonaws.workdocs#EntityNotExistsException":
2082
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2072
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2083
2073
  case "FailedDependencyException":
2084
2074
  case "com.amazonaws.workdocs#FailedDependencyException":
2085
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2075
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2086
2076
  case "InvalidArgumentException":
2087
2077
  case "com.amazonaws.workdocs#InvalidArgumentException":
2088
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2078
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2089
2079
  case "InvalidPasswordException":
2090
2080
  case "com.amazonaws.workdocs#InvalidPasswordException":
2091
- throw await deserializeAws_restJson1InvalidPasswordExceptionResponse(parsedOutput, context);
2081
+ throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
2092
2082
  case "ProhibitedStateException":
2093
2083
  case "com.amazonaws.workdocs#ProhibitedStateException":
2094
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
2084
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
2095
2085
  case "ServiceUnavailableException":
2096
2086
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2097
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2087
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2098
2088
  case "UnauthorizedOperationException":
2099
2089
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2100
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2090
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2101
2091
  case "UnauthorizedResourceAccessException":
2102
2092
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2103
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2093
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2104
2094
  default:
2105
2095
  const parsedBody = parsedOutput.body;
2106
2096
  throwDefaultError({
@@ -2111,26 +2101,26 @@ const deserializeAws_restJson1DescribeDocumentVersionsCommandError = async (outp
2111
2101
  });
2112
2102
  }
2113
2103
  };
2114
- export const deserializeAws_restJson1DescribeFolderContentsCommand = async (output, context) => {
2104
+ export const de_DescribeFolderContentsCommand = async (output, context) => {
2115
2105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2116
- return deserializeAws_restJson1DescribeFolderContentsCommandError(output, context);
2106
+ return de_DescribeFolderContentsCommandError(output, context);
2117
2107
  }
2118
2108
  const contents = map({
2119
2109
  $metadata: deserializeMetadata(output),
2120
2110
  });
2121
2111
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2122
2112
  if (data.Documents != null) {
2123
- contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
2113
+ contents.Documents = de_DocumentMetadataList(data.Documents, context);
2124
2114
  }
2125
2115
  if (data.Folders != null) {
2126
- contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
2116
+ contents.Folders = de_FolderMetadataList(data.Folders, context);
2127
2117
  }
2128
2118
  if (data.Marker != null) {
2129
2119
  contents.Marker = __expectString(data.Marker);
2130
2120
  }
2131
2121
  return contents;
2132
2122
  };
2133
- const deserializeAws_restJson1DescribeFolderContentsCommandError = async (output, context) => {
2123
+ const de_DescribeFolderContentsCommandError = async (output, context) => {
2134
2124
  const parsedOutput = {
2135
2125
  ...output,
2136
2126
  body: await parseErrorBody(output.body, context),
@@ -2139,22 +2129,22 @@ const deserializeAws_restJson1DescribeFolderContentsCommandError = async (output
2139
2129
  switch (errorCode) {
2140
2130
  case "EntityNotExistsException":
2141
2131
  case "com.amazonaws.workdocs#EntityNotExistsException":
2142
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2132
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2143
2133
  case "FailedDependencyException":
2144
2134
  case "com.amazonaws.workdocs#FailedDependencyException":
2145
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2135
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2146
2136
  case "InvalidArgumentException":
2147
2137
  case "com.amazonaws.workdocs#InvalidArgumentException":
2148
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2138
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2149
2139
  case "ProhibitedStateException":
2150
2140
  case "com.amazonaws.workdocs#ProhibitedStateException":
2151
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
2141
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
2152
2142
  case "ServiceUnavailableException":
2153
2143
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2154
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2144
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2155
2145
  case "UnauthorizedResourceAccessException":
2156
2146
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2157
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2147
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2158
2148
  default:
2159
2149
  const parsedBody = parsedOutput.body;
2160
2150
  throwDefaultError({
@@ -2165,23 +2155,23 @@ const deserializeAws_restJson1DescribeFolderContentsCommandError = async (output
2165
2155
  });
2166
2156
  }
2167
2157
  };
2168
- export const deserializeAws_restJson1DescribeGroupsCommand = async (output, context) => {
2158
+ export const de_DescribeGroupsCommand = async (output, context) => {
2169
2159
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2170
- return deserializeAws_restJson1DescribeGroupsCommandError(output, context);
2160
+ return de_DescribeGroupsCommandError(output, context);
2171
2161
  }
2172
2162
  const contents = map({
2173
2163
  $metadata: deserializeMetadata(output),
2174
2164
  });
2175
2165
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2176
2166
  if (data.Groups != null) {
2177
- contents.Groups = deserializeAws_restJson1GroupMetadataList(data.Groups, context);
2167
+ contents.Groups = de_GroupMetadataList(data.Groups, context);
2178
2168
  }
2179
2169
  if (data.Marker != null) {
2180
2170
  contents.Marker = __expectString(data.Marker);
2181
2171
  }
2182
2172
  return contents;
2183
2173
  };
2184
- const deserializeAws_restJson1DescribeGroupsCommandError = async (output, context) => {
2174
+ const de_DescribeGroupsCommandError = async (output, context) => {
2185
2175
  const parsedOutput = {
2186
2176
  ...output,
2187
2177
  body: await parseErrorBody(output.body, context),
@@ -2190,16 +2180,16 @@ const deserializeAws_restJson1DescribeGroupsCommandError = async (output, contex
2190
2180
  switch (errorCode) {
2191
2181
  case "FailedDependencyException":
2192
2182
  case "com.amazonaws.workdocs#FailedDependencyException":
2193
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2183
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2194
2184
  case "ServiceUnavailableException":
2195
2185
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2196
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2186
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2197
2187
  case "UnauthorizedOperationException":
2198
2188
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2199
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2189
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2200
2190
  case "UnauthorizedResourceAccessException":
2201
2191
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2202
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2192
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2203
2193
  default:
2204
2194
  const parsedBody = parsedOutput.body;
2205
2195
  throwDefaultError({
@@ -2210,9 +2200,9 @@ const deserializeAws_restJson1DescribeGroupsCommandError = async (output, contex
2210
2200
  });
2211
2201
  }
2212
2202
  };
2213
- export const deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = async (output, context) => {
2203
+ export const de_DescribeNotificationSubscriptionsCommand = async (output, context) => {
2214
2204
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2215
- return deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError(output, context);
2205
+ return de_DescribeNotificationSubscriptionsCommandError(output, context);
2216
2206
  }
2217
2207
  const contents = map({
2218
2208
  $metadata: deserializeMetadata(output),
@@ -2222,11 +2212,11 @@ export const deserializeAws_restJson1DescribeNotificationSubscriptionsCommand =
2222
2212
  contents.Marker = __expectString(data.Marker);
2223
2213
  }
2224
2214
  if (data.Subscriptions != null) {
2225
- contents.Subscriptions = deserializeAws_restJson1SubscriptionList(data.Subscriptions, context);
2215
+ contents.Subscriptions = de_SubscriptionList(data.Subscriptions, context);
2226
2216
  }
2227
2217
  return contents;
2228
2218
  };
2229
- const deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError = async (output, context) => {
2219
+ const de_DescribeNotificationSubscriptionsCommandError = async (output, context) => {
2230
2220
  const parsedOutput = {
2231
2221
  ...output,
2232
2222
  body: await parseErrorBody(output.body, context),
@@ -2235,13 +2225,13 @@ const deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError = as
2235
2225
  switch (errorCode) {
2236
2226
  case "EntityNotExistsException":
2237
2227
  case "com.amazonaws.workdocs#EntityNotExistsException":
2238
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2228
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2239
2229
  case "ServiceUnavailableException":
2240
2230
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2241
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2231
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2242
2232
  case "UnauthorizedResourceAccessException":
2243
2233
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2244
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2234
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2245
2235
  default:
2246
2236
  const parsedBody = parsedOutput.body;
2247
2237
  throwDefaultError({
@@ -2252,9 +2242,9 @@ const deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError = as
2252
2242
  });
2253
2243
  }
2254
2244
  };
2255
- export const deserializeAws_restJson1DescribeResourcePermissionsCommand = async (output, context) => {
2245
+ export const de_DescribeResourcePermissionsCommand = async (output, context) => {
2256
2246
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2257
- return deserializeAws_restJson1DescribeResourcePermissionsCommandError(output, context);
2247
+ return de_DescribeResourcePermissionsCommandError(output, context);
2258
2248
  }
2259
2249
  const contents = map({
2260
2250
  $metadata: deserializeMetadata(output),
@@ -2264,11 +2254,11 @@ export const deserializeAws_restJson1DescribeResourcePermissionsCommand = async
2264
2254
  contents.Marker = __expectString(data.Marker);
2265
2255
  }
2266
2256
  if (data.Principals != null) {
2267
- contents.Principals = deserializeAws_restJson1PrincipalList(data.Principals, context);
2257
+ contents.Principals = de_PrincipalList(data.Principals, context);
2268
2258
  }
2269
2259
  return contents;
2270
2260
  };
2271
- const deserializeAws_restJson1DescribeResourcePermissionsCommandError = async (output, context) => {
2261
+ const de_DescribeResourcePermissionsCommandError = async (output, context) => {
2272
2262
  const parsedOutput = {
2273
2263
  ...output,
2274
2264
  body: await parseErrorBody(output.body, context),
@@ -2277,19 +2267,19 @@ const deserializeAws_restJson1DescribeResourcePermissionsCommandError = async (o
2277
2267
  switch (errorCode) {
2278
2268
  case "FailedDependencyException":
2279
2269
  case "com.amazonaws.workdocs#FailedDependencyException":
2280
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2270
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2281
2271
  case "InvalidArgumentException":
2282
2272
  case "com.amazonaws.workdocs#InvalidArgumentException":
2283
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2273
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2284
2274
  case "ServiceUnavailableException":
2285
2275
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2286
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2276
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2287
2277
  case "UnauthorizedOperationException":
2288
2278
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2289
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2279
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2290
2280
  case "UnauthorizedResourceAccessException":
2291
2281
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2292
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2282
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2293
2283
  default:
2294
2284
  const parsedBody = parsedOutput.body;
2295
2285
  throwDefaultError({
@@ -2300,23 +2290,23 @@ const deserializeAws_restJson1DescribeResourcePermissionsCommandError = async (o
2300
2290
  });
2301
2291
  }
2302
2292
  };
2303
- export const deserializeAws_restJson1DescribeRootFoldersCommand = async (output, context) => {
2293
+ export const de_DescribeRootFoldersCommand = async (output, context) => {
2304
2294
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2305
- return deserializeAws_restJson1DescribeRootFoldersCommandError(output, context);
2295
+ return de_DescribeRootFoldersCommandError(output, context);
2306
2296
  }
2307
2297
  const contents = map({
2308
2298
  $metadata: deserializeMetadata(output),
2309
2299
  });
2310
2300
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2311
2301
  if (data.Folders != null) {
2312
- contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
2302
+ contents.Folders = de_FolderMetadataList(data.Folders, context);
2313
2303
  }
2314
2304
  if (data.Marker != null) {
2315
2305
  contents.Marker = __expectString(data.Marker);
2316
2306
  }
2317
2307
  return contents;
2318
2308
  };
2319
- const deserializeAws_restJson1DescribeRootFoldersCommandError = async (output, context) => {
2309
+ const de_DescribeRootFoldersCommandError = async (output, context) => {
2320
2310
  const parsedOutput = {
2321
2311
  ...output,
2322
2312
  body: await parseErrorBody(output.body, context),
@@ -2325,19 +2315,19 @@ const deserializeAws_restJson1DescribeRootFoldersCommandError = async (output, c
2325
2315
  switch (errorCode) {
2326
2316
  case "FailedDependencyException":
2327
2317
  case "com.amazonaws.workdocs#FailedDependencyException":
2328
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2318
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2329
2319
  case "InvalidArgumentException":
2330
2320
  case "com.amazonaws.workdocs#InvalidArgumentException":
2331
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2321
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2332
2322
  case "ServiceUnavailableException":
2333
2323
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2334
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2324
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2335
2325
  case "UnauthorizedOperationException":
2336
2326
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2337
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2327
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2338
2328
  case "UnauthorizedResourceAccessException":
2339
2329
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2340
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2330
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2341
2331
  default:
2342
2332
  const parsedBody = parsedOutput.body;
2343
2333
  throwDefaultError({
@@ -2348,9 +2338,9 @@ const deserializeAws_restJson1DescribeRootFoldersCommandError = async (output, c
2348
2338
  });
2349
2339
  }
2350
2340
  };
2351
- export const deserializeAws_restJson1DescribeUsersCommand = async (output, context) => {
2341
+ export const de_DescribeUsersCommand = async (output, context) => {
2352
2342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2353
- return deserializeAws_restJson1DescribeUsersCommandError(output, context);
2343
+ return de_DescribeUsersCommandError(output, context);
2354
2344
  }
2355
2345
  const contents = map({
2356
2346
  $metadata: deserializeMetadata(output),
@@ -2363,11 +2353,11 @@ export const deserializeAws_restJson1DescribeUsersCommand = async (output, conte
2363
2353
  contents.TotalNumberOfUsers = __expectLong(data.TotalNumberOfUsers);
2364
2354
  }
2365
2355
  if (data.Users != null) {
2366
- contents.Users = deserializeAws_restJson1OrganizationUserList(data.Users, context);
2356
+ contents.Users = de_OrganizationUserList(data.Users, context);
2367
2357
  }
2368
2358
  return contents;
2369
2359
  };
2370
- const deserializeAws_restJson1DescribeUsersCommandError = async (output, context) => {
2360
+ const de_DescribeUsersCommandError = async (output, context) => {
2371
2361
  const parsedOutput = {
2372
2362
  ...output,
2373
2363
  body: await parseErrorBody(output.body, context),
@@ -2376,25 +2366,25 @@ const deserializeAws_restJson1DescribeUsersCommandError = async (output, context
2376
2366
  switch (errorCode) {
2377
2367
  case "EntityNotExistsException":
2378
2368
  case "com.amazonaws.workdocs#EntityNotExistsException":
2379
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2369
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2380
2370
  case "FailedDependencyException":
2381
2371
  case "com.amazonaws.workdocs#FailedDependencyException":
2382
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2372
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2383
2373
  case "InvalidArgumentException":
2384
2374
  case "com.amazonaws.workdocs#InvalidArgumentException":
2385
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2375
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2386
2376
  case "RequestedEntityTooLargeException":
2387
2377
  case "com.amazonaws.workdocs#RequestedEntityTooLargeException":
2388
- throw await deserializeAws_restJson1RequestedEntityTooLargeExceptionResponse(parsedOutput, context);
2378
+ throw await de_RequestedEntityTooLargeExceptionRes(parsedOutput, context);
2389
2379
  case "ServiceUnavailableException":
2390
2380
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2391
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2381
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2392
2382
  case "UnauthorizedOperationException":
2393
2383
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2394
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2384
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2395
2385
  case "UnauthorizedResourceAccessException":
2396
2386
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2397
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2387
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2398
2388
  default:
2399
2389
  const parsedBody = parsedOutput.body;
2400
2390
  throwDefaultError({
@@ -2405,20 +2395,20 @@ const deserializeAws_restJson1DescribeUsersCommandError = async (output, context
2405
2395
  });
2406
2396
  }
2407
2397
  };
2408
- export const deserializeAws_restJson1GetCurrentUserCommand = async (output, context) => {
2398
+ export const de_GetCurrentUserCommand = async (output, context) => {
2409
2399
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2410
- return deserializeAws_restJson1GetCurrentUserCommandError(output, context);
2400
+ return de_GetCurrentUserCommandError(output, context);
2411
2401
  }
2412
2402
  const contents = map({
2413
2403
  $metadata: deserializeMetadata(output),
2414
2404
  });
2415
2405
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2416
2406
  if (data.User != null) {
2417
- contents.User = deserializeAws_restJson1User(data.User, context);
2407
+ contents.User = de_User(data.User, context);
2418
2408
  }
2419
2409
  return contents;
2420
2410
  };
2421
- const deserializeAws_restJson1GetCurrentUserCommandError = async (output, context) => {
2411
+ const de_GetCurrentUserCommandError = async (output, context) => {
2422
2412
  const parsedOutput = {
2423
2413
  ...output,
2424
2414
  body: await parseErrorBody(output.body, context),
@@ -2427,19 +2417,19 @@ const deserializeAws_restJson1GetCurrentUserCommandError = async (output, contex
2427
2417
  switch (errorCode) {
2428
2418
  case "EntityNotExistsException":
2429
2419
  case "com.amazonaws.workdocs#EntityNotExistsException":
2430
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2420
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2431
2421
  case "FailedDependencyException":
2432
2422
  case "com.amazonaws.workdocs#FailedDependencyException":
2433
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2423
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2434
2424
  case "ServiceUnavailableException":
2435
2425
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2436
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2426
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2437
2427
  case "UnauthorizedOperationException":
2438
2428
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2439
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2429
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2440
2430
  case "UnauthorizedResourceAccessException":
2441
2431
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2442
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2432
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2443
2433
  default:
2444
2434
  const parsedBody = parsedOutput.body;
2445
2435
  throwDefaultError({
@@ -2450,23 +2440,23 @@ const deserializeAws_restJson1GetCurrentUserCommandError = async (output, contex
2450
2440
  });
2451
2441
  }
2452
2442
  };
2453
- export const deserializeAws_restJson1GetDocumentCommand = async (output, context) => {
2443
+ export const de_GetDocumentCommand = async (output, context) => {
2454
2444
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2455
- return deserializeAws_restJson1GetDocumentCommandError(output, context);
2445
+ return de_GetDocumentCommandError(output, context);
2456
2446
  }
2457
2447
  const contents = map({
2458
2448
  $metadata: deserializeMetadata(output),
2459
2449
  });
2460
2450
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2461
2451
  if (data.CustomMetadata != null) {
2462
- contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
2452
+ contents.CustomMetadata = de_CustomMetadataMap(data.CustomMetadata, context);
2463
2453
  }
2464
2454
  if (data.Metadata != null) {
2465
- contents.Metadata = deserializeAws_restJson1DocumentMetadata(data.Metadata, context);
2455
+ contents.Metadata = de_DocumentMetadata(data.Metadata, context);
2466
2456
  }
2467
2457
  return contents;
2468
2458
  };
2469
- const deserializeAws_restJson1GetDocumentCommandError = async (output, context) => {
2459
+ const de_GetDocumentCommandError = async (output, context) => {
2470
2460
  const parsedOutput = {
2471
2461
  ...output,
2472
2462
  body: await parseErrorBody(output.body, context),
@@ -2475,25 +2465,25 @@ const deserializeAws_restJson1GetDocumentCommandError = async (output, context)
2475
2465
  switch (errorCode) {
2476
2466
  case "EntityNotExistsException":
2477
2467
  case "com.amazonaws.workdocs#EntityNotExistsException":
2478
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2468
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2479
2469
  case "FailedDependencyException":
2480
2470
  case "com.amazonaws.workdocs#FailedDependencyException":
2481
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2471
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2482
2472
  case "InvalidArgumentException":
2483
2473
  case "com.amazonaws.workdocs#InvalidArgumentException":
2484
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2474
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2485
2475
  case "InvalidPasswordException":
2486
2476
  case "com.amazonaws.workdocs#InvalidPasswordException":
2487
- throw await deserializeAws_restJson1InvalidPasswordExceptionResponse(parsedOutput, context);
2477
+ throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
2488
2478
  case "ServiceUnavailableException":
2489
2479
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2490
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2480
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2491
2481
  case "UnauthorizedOperationException":
2492
2482
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2493
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2483
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2494
2484
  case "UnauthorizedResourceAccessException":
2495
2485
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2496
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2486
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2497
2487
  default:
2498
2488
  const parsedBody = parsedOutput.body;
2499
2489
  throwDefaultError({
@@ -2504,20 +2494,20 @@ const deserializeAws_restJson1GetDocumentCommandError = async (output, context)
2504
2494
  });
2505
2495
  }
2506
2496
  };
2507
- export const deserializeAws_restJson1GetDocumentPathCommand = async (output, context) => {
2497
+ export const de_GetDocumentPathCommand = async (output, context) => {
2508
2498
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2509
- return deserializeAws_restJson1GetDocumentPathCommandError(output, context);
2499
+ return de_GetDocumentPathCommandError(output, context);
2510
2500
  }
2511
2501
  const contents = map({
2512
2502
  $metadata: deserializeMetadata(output),
2513
2503
  });
2514
2504
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2515
2505
  if (data.Path != null) {
2516
- contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
2506
+ contents.Path = de_ResourcePath(data.Path, context);
2517
2507
  }
2518
2508
  return contents;
2519
2509
  };
2520
- const deserializeAws_restJson1GetDocumentPathCommandError = async (output, context) => {
2510
+ const de_GetDocumentPathCommandError = async (output, context) => {
2521
2511
  const parsedOutput = {
2522
2512
  ...output,
2523
2513
  body: await parseErrorBody(output.body, context),
@@ -2526,19 +2516,19 @@ const deserializeAws_restJson1GetDocumentPathCommandError = async (output, conte
2526
2516
  switch (errorCode) {
2527
2517
  case "EntityNotExistsException":
2528
2518
  case "com.amazonaws.workdocs#EntityNotExistsException":
2529
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2519
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2530
2520
  case "FailedDependencyException":
2531
2521
  case "com.amazonaws.workdocs#FailedDependencyException":
2532
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2522
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2533
2523
  case "ServiceUnavailableException":
2534
2524
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2535
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2525
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2536
2526
  case "UnauthorizedOperationException":
2537
2527
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2538
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2528
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2539
2529
  case "UnauthorizedResourceAccessException":
2540
2530
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2541
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2531
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2542
2532
  default:
2543
2533
  const parsedBody = parsedOutput.body;
2544
2534
  throwDefaultError({
@@ -2549,23 +2539,23 @@ const deserializeAws_restJson1GetDocumentPathCommandError = async (output, conte
2549
2539
  });
2550
2540
  }
2551
2541
  };
2552
- export const deserializeAws_restJson1GetDocumentVersionCommand = async (output, context) => {
2542
+ export const de_GetDocumentVersionCommand = async (output, context) => {
2553
2543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2554
- return deserializeAws_restJson1GetDocumentVersionCommandError(output, context);
2544
+ return de_GetDocumentVersionCommandError(output, context);
2555
2545
  }
2556
2546
  const contents = map({
2557
2547
  $metadata: deserializeMetadata(output),
2558
2548
  });
2559
2549
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2560
2550
  if (data.CustomMetadata != null) {
2561
- contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
2551
+ contents.CustomMetadata = de_CustomMetadataMap(data.CustomMetadata, context);
2562
2552
  }
2563
2553
  if (data.Metadata != null) {
2564
- contents.Metadata = deserializeAws_restJson1DocumentVersionMetadata(data.Metadata, context);
2554
+ contents.Metadata = de_DocumentVersionMetadata(data.Metadata, context);
2565
2555
  }
2566
2556
  return contents;
2567
2557
  };
2568
- const deserializeAws_restJson1GetDocumentVersionCommandError = async (output, context) => {
2558
+ const de_GetDocumentVersionCommandError = async (output, context) => {
2569
2559
  const parsedOutput = {
2570
2560
  ...output,
2571
2561
  body: await parseErrorBody(output.body, context),
@@ -2574,25 +2564,25 @@ const deserializeAws_restJson1GetDocumentVersionCommandError = async (output, co
2574
2564
  switch (errorCode) {
2575
2565
  case "EntityNotExistsException":
2576
2566
  case "com.amazonaws.workdocs#EntityNotExistsException":
2577
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2567
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2578
2568
  case "FailedDependencyException":
2579
2569
  case "com.amazonaws.workdocs#FailedDependencyException":
2580
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2570
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2581
2571
  case "InvalidPasswordException":
2582
2572
  case "com.amazonaws.workdocs#InvalidPasswordException":
2583
- throw await deserializeAws_restJson1InvalidPasswordExceptionResponse(parsedOutput, context);
2573
+ throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
2584
2574
  case "ProhibitedStateException":
2585
2575
  case "com.amazonaws.workdocs#ProhibitedStateException":
2586
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
2576
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
2587
2577
  case "ServiceUnavailableException":
2588
2578
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2589
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2579
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2590
2580
  case "UnauthorizedOperationException":
2591
2581
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2592
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2582
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2593
2583
  case "UnauthorizedResourceAccessException":
2594
2584
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2595
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2585
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2596
2586
  default:
2597
2587
  const parsedBody = parsedOutput.body;
2598
2588
  throwDefaultError({
@@ -2603,23 +2593,23 @@ const deserializeAws_restJson1GetDocumentVersionCommandError = async (output, co
2603
2593
  });
2604
2594
  }
2605
2595
  };
2606
- export const deserializeAws_restJson1GetFolderCommand = async (output, context) => {
2596
+ export const de_GetFolderCommand = async (output, context) => {
2607
2597
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2608
- return deserializeAws_restJson1GetFolderCommandError(output, context);
2598
+ return de_GetFolderCommandError(output, context);
2609
2599
  }
2610
2600
  const contents = map({
2611
2601
  $metadata: deserializeMetadata(output),
2612
2602
  });
2613
2603
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2614
2604
  if (data.CustomMetadata != null) {
2615
- contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
2605
+ contents.CustomMetadata = de_CustomMetadataMap(data.CustomMetadata, context);
2616
2606
  }
2617
2607
  if (data.Metadata != null) {
2618
- contents.Metadata = deserializeAws_restJson1FolderMetadata(data.Metadata, context);
2608
+ contents.Metadata = de_FolderMetadata(data.Metadata, context);
2619
2609
  }
2620
2610
  return contents;
2621
2611
  };
2622
- const deserializeAws_restJson1GetFolderCommandError = async (output, context) => {
2612
+ const de_GetFolderCommandError = async (output, context) => {
2623
2613
  const parsedOutput = {
2624
2614
  ...output,
2625
2615
  body: await parseErrorBody(output.body, context),
@@ -2628,25 +2618,25 @@ const deserializeAws_restJson1GetFolderCommandError = async (output, context) =>
2628
2618
  switch (errorCode) {
2629
2619
  case "EntityNotExistsException":
2630
2620
  case "com.amazonaws.workdocs#EntityNotExistsException":
2631
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2621
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2632
2622
  case "FailedDependencyException":
2633
2623
  case "com.amazonaws.workdocs#FailedDependencyException":
2634
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2624
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2635
2625
  case "InvalidArgumentException":
2636
2626
  case "com.amazonaws.workdocs#InvalidArgumentException":
2637
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2627
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2638
2628
  case "ProhibitedStateException":
2639
2629
  case "com.amazonaws.workdocs#ProhibitedStateException":
2640
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
2630
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
2641
2631
  case "ServiceUnavailableException":
2642
2632
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2643
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2633
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2644
2634
  case "UnauthorizedOperationException":
2645
2635
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2646
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2636
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2647
2637
  case "UnauthorizedResourceAccessException":
2648
2638
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2649
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2639
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2650
2640
  default:
2651
2641
  const parsedBody = parsedOutput.body;
2652
2642
  throwDefaultError({
@@ -2657,20 +2647,20 @@ const deserializeAws_restJson1GetFolderCommandError = async (output, context) =>
2657
2647
  });
2658
2648
  }
2659
2649
  };
2660
- export const deserializeAws_restJson1GetFolderPathCommand = async (output, context) => {
2650
+ export const de_GetFolderPathCommand = async (output, context) => {
2661
2651
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2662
- return deserializeAws_restJson1GetFolderPathCommandError(output, context);
2652
+ return de_GetFolderPathCommandError(output, context);
2663
2653
  }
2664
2654
  const contents = map({
2665
2655
  $metadata: deserializeMetadata(output),
2666
2656
  });
2667
2657
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2668
2658
  if (data.Path != null) {
2669
- contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
2659
+ contents.Path = de_ResourcePath(data.Path, context);
2670
2660
  }
2671
2661
  return contents;
2672
2662
  };
2673
- const deserializeAws_restJson1GetFolderPathCommandError = async (output, context) => {
2663
+ const de_GetFolderPathCommandError = async (output, context) => {
2674
2664
  const parsedOutput = {
2675
2665
  ...output,
2676
2666
  body: await parseErrorBody(output.body, context),
@@ -2679,19 +2669,19 @@ const deserializeAws_restJson1GetFolderPathCommandError = async (output, context
2679
2669
  switch (errorCode) {
2680
2670
  case "EntityNotExistsException":
2681
2671
  case "com.amazonaws.workdocs#EntityNotExistsException":
2682
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2672
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2683
2673
  case "FailedDependencyException":
2684
2674
  case "com.amazonaws.workdocs#FailedDependencyException":
2685
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2675
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2686
2676
  case "ServiceUnavailableException":
2687
2677
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2688
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2678
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2689
2679
  case "UnauthorizedOperationException":
2690
2680
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2691
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2681
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2692
2682
  case "UnauthorizedResourceAccessException":
2693
2683
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2694
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2684
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2695
2685
  default:
2696
2686
  const parsedBody = parsedOutput.body;
2697
2687
  throwDefaultError({
@@ -2702,26 +2692,26 @@ const deserializeAws_restJson1GetFolderPathCommandError = async (output, context
2702
2692
  });
2703
2693
  }
2704
2694
  };
2705
- export const deserializeAws_restJson1GetResourcesCommand = async (output, context) => {
2695
+ export const de_GetResourcesCommand = async (output, context) => {
2706
2696
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2707
- return deserializeAws_restJson1GetResourcesCommandError(output, context);
2697
+ return de_GetResourcesCommandError(output, context);
2708
2698
  }
2709
2699
  const contents = map({
2710
2700
  $metadata: deserializeMetadata(output),
2711
2701
  });
2712
2702
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2713
2703
  if (data.Documents != null) {
2714
- contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
2704
+ contents.Documents = de_DocumentMetadataList(data.Documents, context);
2715
2705
  }
2716
2706
  if (data.Folders != null) {
2717
- contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
2707
+ contents.Folders = de_FolderMetadataList(data.Folders, context);
2718
2708
  }
2719
2709
  if (data.Marker != null) {
2720
2710
  contents.Marker = __expectString(data.Marker);
2721
2711
  }
2722
2712
  return contents;
2723
2713
  };
2724
- const deserializeAws_restJson1GetResourcesCommandError = async (output, context) => {
2714
+ const de_GetResourcesCommandError = async (output, context) => {
2725
2715
  const parsedOutput = {
2726
2716
  ...output,
2727
2717
  body: await parseErrorBody(output.body, context),
@@ -2730,19 +2720,19 @@ const deserializeAws_restJson1GetResourcesCommandError = async (output, context)
2730
2720
  switch (errorCode) {
2731
2721
  case "FailedDependencyException":
2732
2722
  case "com.amazonaws.workdocs#FailedDependencyException":
2733
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2723
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2734
2724
  case "InvalidArgumentException":
2735
2725
  case "com.amazonaws.workdocs#InvalidArgumentException":
2736
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2726
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2737
2727
  case "ServiceUnavailableException":
2738
2728
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2739
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2729
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2740
2730
  case "UnauthorizedOperationException":
2741
2731
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2742
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2732
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2743
2733
  case "UnauthorizedResourceAccessException":
2744
2734
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2745
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2735
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2746
2736
  default:
2747
2737
  const parsedBody = parsedOutput.body;
2748
2738
  throwDefaultError({
@@ -2753,23 +2743,23 @@ const deserializeAws_restJson1GetResourcesCommandError = async (output, context)
2753
2743
  });
2754
2744
  }
2755
2745
  };
2756
- export const deserializeAws_restJson1InitiateDocumentVersionUploadCommand = async (output, context) => {
2746
+ export const de_InitiateDocumentVersionUploadCommand = async (output, context) => {
2757
2747
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2758
- return deserializeAws_restJson1InitiateDocumentVersionUploadCommandError(output, context);
2748
+ return de_InitiateDocumentVersionUploadCommandError(output, context);
2759
2749
  }
2760
2750
  const contents = map({
2761
2751
  $metadata: deserializeMetadata(output),
2762
2752
  });
2763
2753
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2764
2754
  if (data.Metadata != null) {
2765
- contents.Metadata = deserializeAws_restJson1DocumentMetadata(data.Metadata, context);
2755
+ contents.Metadata = de_DocumentMetadata(data.Metadata, context);
2766
2756
  }
2767
2757
  if (data.UploadMetadata != null) {
2768
- contents.UploadMetadata = deserializeAws_restJson1UploadMetadata(data.UploadMetadata, context);
2758
+ contents.UploadMetadata = de_UploadMetadata(data.UploadMetadata, context);
2769
2759
  }
2770
2760
  return contents;
2771
2761
  };
2772
- const deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = async (output, context) => {
2762
+ const de_InitiateDocumentVersionUploadCommandError = async (output, context) => {
2773
2763
  const parsedOutput = {
2774
2764
  ...output,
2775
2765
  body: await parseErrorBody(output.body, context),
@@ -2778,46 +2768,46 @@ const deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = async
2778
2768
  switch (errorCode) {
2779
2769
  case "DraftUploadOutOfSyncException":
2780
2770
  case "com.amazonaws.workdocs#DraftUploadOutOfSyncException":
2781
- throw await deserializeAws_restJson1DraftUploadOutOfSyncExceptionResponse(parsedOutput, context);
2771
+ throw await de_DraftUploadOutOfSyncExceptionRes(parsedOutput, context);
2782
2772
  case "EntityAlreadyExistsException":
2783
2773
  case "com.amazonaws.workdocs#EntityAlreadyExistsException":
2784
- throw await deserializeAws_restJson1EntityAlreadyExistsExceptionResponse(parsedOutput, context);
2774
+ throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
2785
2775
  case "EntityNotExistsException":
2786
2776
  case "com.amazonaws.workdocs#EntityNotExistsException":
2787
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2777
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2788
2778
  case "FailedDependencyException":
2789
2779
  case "com.amazonaws.workdocs#FailedDependencyException":
2790
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2780
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2791
2781
  case "InvalidArgumentException":
2792
2782
  case "com.amazonaws.workdocs#InvalidArgumentException":
2793
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2783
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2794
2784
  case "InvalidPasswordException":
2795
2785
  case "com.amazonaws.workdocs#InvalidPasswordException":
2796
- throw await deserializeAws_restJson1InvalidPasswordExceptionResponse(parsedOutput, context);
2786
+ throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
2797
2787
  case "LimitExceededException":
2798
2788
  case "com.amazonaws.workdocs#LimitExceededException":
2799
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
2789
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2800
2790
  case "ProhibitedStateException":
2801
2791
  case "com.amazonaws.workdocs#ProhibitedStateException":
2802
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
2792
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
2803
2793
  case "ResourceAlreadyCheckedOutException":
2804
2794
  case "com.amazonaws.workdocs#ResourceAlreadyCheckedOutException":
2805
- throw await deserializeAws_restJson1ResourceAlreadyCheckedOutExceptionResponse(parsedOutput, context);
2795
+ throw await de_ResourceAlreadyCheckedOutExceptionRes(parsedOutput, context);
2806
2796
  case "ServiceUnavailableException":
2807
2797
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2808
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2798
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2809
2799
  case "StorageLimitExceededException":
2810
2800
  case "com.amazonaws.workdocs#StorageLimitExceededException":
2811
- throw await deserializeAws_restJson1StorageLimitExceededExceptionResponse(parsedOutput, context);
2801
+ throw await de_StorageLimitExceededExceptionRes(parsedOutput, context);
2812
2802
  case "StorageLimitWillExceedException":
2813
2803
  case "com.amazonaws.workdocs#StorageLimitWillExceedException":
2814
- throw await deserializeAws_restJson1StorageLimitWillExceedExceptionResponse(parsedOutput, context);
2804
+ throw await de_StorageLimitWillExceedExceptionRes(parsedOutput, context);
2815
2805
  case "UnauthorizedOperationException":
2816
2806
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2817
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2807
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2818
2808
  case "UnauthorizedResourceAccessException":
2819
2809
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2820
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2810
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2821
2811
  default:
2822
2812
  const parsedBody = parsedOutput.body;
2823
2813
  throwDefaultError({
@@ -2828,9 +2818,9 @@ const deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = async
2828
2818
  });
2829
2819
  }
2830
2820
  };
2831
- export const deserializeAws_restJson1RemoveAllResourcePermissionsCommand = async (output, context) => {
2821
+ export const de_RemoveAllResourcePermissionsCommand = async (output, context) => {
2832
2822
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2833
- return deserializeAws_restJson1RemoveAllResourcePermissionsCommandError(output, context);
2823
+ return de_RemoveAllResourcePermissionsCommandError(output, context);
2834
2824
  }
2835
2825
  const contents = map({
2836
2826
  $metadata: deserializeMetadata(output),
@@ -2838,7 +2828,7 @@ export const deserializeAws_restJson1RemoveAllResourcePermissionsCommand = async
2838
2828
  await collectBody(output.body, context);
2839
2829
  return contents;
2840
2830
  };
2841
- const deserializeAws_restJson1RemoveAllResourcePermissionsCommandError = async (output, context) => {
2831
+ const de_RemoveAllResourcePermissionsCommandError = async (output, context) => {
2842
2832
  const parsedOutput = {
2843
2833
  ...output,
2844
2834
  body: await parseErrorBody(output.body, context),
@@ -2847,16 +2837,16 @@ const deserializeAws_restJson1RemoveAllResourcePermissionsCommandError = async (
2847
2837
  switch (errorCode) {
2848
2838
  case "FailedDependencyException":
2849
2839
  case "com.amazonaws.workdocs#FailedDependencyException":
2850
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2840
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2851
2841
  case "ServiceUnavailableException":
2852
2842
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2853
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2843
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2854
2844
  case "UnauthorizedOperationException":
2855
2845
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2856
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2846
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2857
2847
  case "UnauthorizedResourceAccessException":
2858
2848
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2859
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2849
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2860
2850
  default:
2861
2851
  const parsedBody = parsedOutput.body;
2862
2852
  throwDefaultError({
@@ -2867,9 +2857,9 @@ const deserializeAws_restJson1RemoveAllResourcePermissionsCommandError = async (
2867
2857
  });
2868
2858
  }
2869
2859
  };
2870
- export const deserializeAws_restJson1RemoveResourcePermissionCommand = async (output, context) => {
2860
+ export const de_RemoveResourcePermissionCommand = async (output, context) => {
2871
2861
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2872
- return deserializeAws_restJson1RemoveResourcePermissionCommandError(output, context);
2862
+ return de_RemoveResourcePermissionCommandError(output, context);
2873
2863
  }
2874
2864
  const contents = map({
2875
2865
  $metadata: deserializeMetadata(output),
@@ -2877,7 +2867,7 @@ export const deserializeAws_restJson1RemoveResourcePermissionCommand = async (ou
2877
2867
  await collectBody(output.body, context);
2878
2868
  return contents;
2879
2869
  };
2880
- const deserializeAws_restJson1RemoveResourcePermissionCommandError = async (output, context) => {
2870
+ const de_RemoveResourcePermissionCommandError = async (output, context) => {
2881
2871
  const parsedOutput = {
2882
2872
  ...output,
2883
2873
  body: await parseErrorBody(output.body, context),
@@ -2886,16 +2876,16 @@ const deserializeAws_restJson1RemoveResourcePermissionCommandError = async (outp
2886
2876
  switch (errorCode) {
2887
2877
  case "FailedDependencyException":
2888
2878
  case "com.amazonaws.workdocs#FailedDependencyException":
2889
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2879
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2890
2880
  case "ServiceUnavailableException":
2891
2881
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2892
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2882
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2893
2883
  case "UnauthorizedOperationException":
2894
2884
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2895
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2885
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2896
2886
  case "UnauthorizedResourceAccessException":
2897
2887
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2898
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2888
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2899
2889
  default:
2900
2890
  const parsedBody = parsedOutput.body;
2901
2891
  throwDefaultError({
@@ -2906,9 +2896,9 @@ const deserializeAws_restJson1RemoveResourcePermissionCommandError = async (outp
2906
2896
  });
2907
2897
  }
2908
2898
  };
2909
- export const deserializeAws_restJson1RestoreDocumentVersionsCommand = async (output, context) => {
2899
+ export const de_RestoreDocumentVersionsCommand = async (output, context) => {
2910
2900
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2911
- return deserializeAws_restJson1RestoreDocumentVersionsCommandError(output, context);
2901
+ return de_RestoreDocumentVersionsCommandError(output, context);
2912
2902
  }
2913
2903
  const contents = map({
2914
2904
  $metadata: deserializeMetadata(output),
@@ -2916,7 +2906,7 @@ export const deserializeAws_restJson1RestoreDocumentVersionsCommand = async (out
2916
2906
  await collectBody(output.body, context);
2917
2907
  return contents;
2918
2908
  };
2919
- const deserializeAws_restJson1RestoreDocumentVersionsCommandError = async (output, context) => {
2909
+ const de_RestoreDocumentVersionsCommandError = async (output, context) => {
2920
2910
  const parsedOutput = {
2921
2911
  ...output,
2922
2912
  body: await parseErrorBody(output.body, context),
@@ -2925,28 +2915,28 @@ const deserializeAws_restJson1RestoreDocumentVersionsCommandError = async (outpu
2925
2915
  switch (errorCode) {
2926
2916
  case "ConcurrentModificationException":
2927
2917
  case "com.amazonaws.workdocs#ConcurrentModificationException":
2928
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
2918
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2929
2919
  case "ConflictingOperationException":
2930
2920
  case "com.amazonaws.workdocs#ConflictingOperationException":
2931
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
2921
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
2932
2922
  case "EntityNotExistsException":
2933
2923
  case "com.amazonaws.workdocs#EntityNotExistsException":
2934
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
2924
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
2935
2925
  case "FailedDependencyException":
2936
2926
  case "com.amazonaws.workdocs#FailedDependencyException":
2937
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2927
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
2938
2928
  case "InvalidOperationException":
2939
2929
  case "com.amazonaws.workdocs#InvalidOperationException":
2940
- throw await deserializeAws_restJson1InvalidOperationExceptionResponse(parsedOutput, context);
2930
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
2941
2931
  case "ProhibitedStateException":
2942
2932
  case "com.amazonaws.workdocs#ProhibitedStateException":
2943
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
2933
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
2944
2934
  case "UnauthorizedOperationException":
2945
2935
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2946
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2936
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2947
2937
  case "UnauthorizedResourceAccessException":
2948
2938
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2949
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2939
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2950
2940
  default:
2951
2941
  const parsedBody = parsedOutput.body;
2952
2942
  throwDefaultError({
@@ -2957,23 +2947,23 @@ const deserializeAws_restJson1RestoreDocumentVersionsCommandError = async (outpu
2957
2947
  });
2958
2948
  }
2959
2949
  };
2960
- export const deserializeAws_restJson1SearchResourcesCommand = async (output, context) => {
2950
+ export const de_SearchResourcesCommand = async (output, context) => {
2961
2951
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2962
- return deserializeAws_restJson1SearchResourcesCommandError(output, context);
2952
+ return de_SearchResourcesCommandError(output, context);
2963
2953
  }
2964
2954
  const contents = map({
2965
2955
  $metadata: deserializeMetadata(output),
2966
2956
  });
2967
2957
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2968
2958
  if (data.Items != null) {
2969
- contents.Items = deserializeAws_restJson1ResponseItemsList(data.Items, context);
2959
+ contents.Items = de_ResponseItemsList(data.Items, context);
2970
2960
  }
2971
2961
  if (data.Marker != null) {
2972
2962
  contents.Marker = __expectString(data.Marker);
2973
2963
  }
2974
2964
  return contents;
2975
2965
  };
2976
- const deserializeAws_restJson1SearchResourcesCommandError = async (output, context) => {
2966
+ const de_SearchResourcesCommandError = async (output, context) => {
2977
2967
  const parsedOutput = {
2978
2968
  ...output,
2979
2969
  body: await parseErrorBody(output.body, context),
@@ -2982,16 +2972,16 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
2982
2972
  switch (errorCode) {
2983
2973
  case "InvalidArgumentException":
2984
2974
  case "com.amazonaws.workdocs#InvalidArgumentException":
2985
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2975
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2986
2976
  case "ServiceUnavailableException":
2987
2977
  case "com.amazonaws.workdocs#ServiceUnavailableException":
2988
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2978
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2989
2979
  case "UnauthorizedOperationException":
2990
2980
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
2991
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
2981
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
2992
2982
  case "UnauthorizedResourceAccessException":
2993
2983
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
2994
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
2984
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
2995
2985
  default:
2996
2986
  const parsedBody = parsedOutput.body;
2997
2987
  throwDefaultError({
@@ -3002,9 +2992,9 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
3002
2992
  });
3003
2993
  }
3004
2994
  };
3005
- export const deserializeAws_restJson1UpdateDocumentCommand = async (output, context) => {
2995
+ export const de_UpdateDocumentCommand = async (output, context) => {
3006
2996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3007
- return deserializeAws_restJson1UpdateDocumentCommandError(output, context);
2997
+ return de_UpdateDocumentCommandError(output, context);
3008
2998
  }
3009
2999
  const contents = map({
3010
3000
  $metadata: deserializeMetadata(output),
@@ -3012,7 +3002,7 @@ export const deserializeAws_restJson1UpdateDocumentCommand = async (output, cont
3012
3002
  await collectBody(output.body, context);
3013
3003
  return contents;
3014
3004
  };
3015
- const deserializeAws_restJson1UpdateDocumentCommandError = async (output, context) => {
3005
+ const de_UpdateDocumentCommandError = async (output, context) => {
3016
3006
  const parsedOutput = {
3017
3007
  ...output,
3018
3008
  body: await parseErrorBody(output.body, context),
@@ -3021,34 +3011,34 @@ const deserializeAws_restJson1UpdateDocumentCommandError = async (output, contex
3021
3011
  switch (errorCode) {
3022
3012
  case "ConcurrentModificationException":
3023
3013
  case "com.amazonaws.workdocs#ConcurrentModificationException":
3024
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
3014
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3025
3015
  case "ConflictingOperationException":
3026
3016
  case "com.amazonaws.workdocs#ConflictingOperationException":
3027
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
3017
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3028
3018
  case "EntityAlreadyExistsException":
3029
3019
  case "com.amazonaws.workdocs#EntityAlreadyExistsException":
3030
- throw await deserializeAws_restJson1EntityAlreadyExistsExceptionResponse(parsedOutput, context);
3020
+ throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
3031
3021
  case "EntityNotExistsException":
3032
3022
  case "com.amazonaws.workdocs#EntityNotExistsException":
3033
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
3023
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
3034
3024
  case "FailedDependencyException":
3035
3025
  case "com.amazonaws.workdocs#FailedDependencyException":
3036
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
3026
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
3037
3027
  case "LimitExceededException":
3038
3028
  case "com.amazonaws.workdocs#LimitExceededException":
3039
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3029
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3040
3030
  case "ProhibitedStateException":
3041
3031
  case "com.amazonaws.workdocs#ProhibitedStateException":
3042
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
3032
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
3043
3033
  case "ServiceUnavailableException":
3044
3034
  case "com.amazonaws.workdocs#ServiceUnavailableException":
3045
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3035
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3046
3036
  case "UnauthorizedOperationException":
3047
3037
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
3048
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
3038
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
3049
3039
  case "UnauthorizedResourceAccessException":
3050
3040
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
3051
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
3041
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
3052
3042
  default:
3053
3043
  const parsedBody = parsedOutput.body;
3054
3044
  throwDefaultError({
@@ -3059,9 +3049,9 @@ const deserializeAws_restJson1UpdateDocumentCommandError = async (output, contex
3059
3049
  });
3060
3050
  }
3061
3051
  };
3062
- export const deserializeAws_restJson1UpdateDocumentVersionCommand = async (output, context) => {
3052
+ export const de_UpdateDocumentVersionCommand = async (output, context) => {
3063
3053
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3064
- return deserializeAws_restJson1UpdateDocumentVersionCommandError(output, context);
3054
+ return de_UpdateDocumentVersionCommandError(output, context);
3065
3055
  }
3066
3056
  const contents = map({
3067
3057
  $metadata: deserializeMetadata(output),
@@ -3069,7 +3059,7 @@ export const deserializeAws_restJson1UpdateDocumentVersionCommand = async (outpu
3069
3059
  await collectBody(output.body, context);
3070
3060
  return contents;
3071
3061
  };
3072
- const deserializeAws_restJson1UpdateDocumentVersionCommandError = async (output, context) => {
3062
+ const de_UpdateDocumentVersionCommandError = async (output, context) => {
3073
3063
  const parsedOutput = {
3074
3064
  ...output,
3075
3065
  body: await parseErrorBody(output.body, context),
@@ -3078,28 +3068,28 @@ const deserializeAws_restJson1UpdateDocumentVersionCommandError = async (output,
3078
3068
  switch (errorCode) {
3079
3069
  case "ConcurrentModificationException":
3080
3070
  case "com.amazonaws.workdocs#ConcurrentModificationException":
3081
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
3071
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3082
3072
  case "EntityNotExistsException":
3083
3073
  case "com.amazonaws.workdocs#EntityNotExistsException":
3084
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
3074
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
3085
3075
  case "FailedDependencyException":
3086
3076
  case "com.amazonaws.workdocs#FailedDependencyException":
3087
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
3077
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
3088
3078
  case "InvalidOperationException":
3089
3079
  case "com.amazonaws.workdocs#InvalidOperationException":
3090
- throw await deserializeAws_restJson1InvalidOperationExceptionResponse(parsedOutput, context);
3080
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
3091
3081
  case "ProhibitedStateException":
3092
3082
  case "com.amazonaws.workdocs#ProhibitedStateException":
3093
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
3083
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
3094
3084
  case "ServiceUnavailableException":
3095
3085
  case "com.amazonaws.workdocs#ServiceUnavailableException":
3096
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3086
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3097
3087
  case "UnauthorizedOperationException":
3098
3088
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
3099
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
3089
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
3100
3090
  case "UnauthorizedResourceAccessException":
3101
3091
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
3102
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
3092
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
3103
3093
  default:
3104
3094
  const parsedBody = parsedOutput.body;
3105
3095
  throwDefaultError({
@@ -3110,9 +3100,9 @@ const deserializeAws_restJson1UpdateDocumentVersionCommandError = async (output,
3110
3100
  });
3111
3101
  }
3112
3102
  };
3113
- export const deserializeAws_restJson1UpdateFolderCommand = async (output, context) => {
3103
+ export const de_UpdateFolderCommand = async (output, context) => {
3114
3104
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3115
- return deserializeAws_restJson1UpdateFolderCommandError(output, context);
3105
+ return de_UpdateFolderCommandError(output, context);
3116
3106
  }
3117
3107
  const contents = map({
3118
3108
  $metadata: deserializeMetadata(output),
@@ -3120,7 +3110,7 @@ export const deserializeAws_restJson1UpdateFolderCommand = async (output, contex
3120
3110
  await collectBody(output.body, context);
3121
3111
  return contents;
3122
3112
  };
3123
- const deserializeAws_restJson1UpdateFolderCommandError = async (output, context) => {
3113
+ const de_UpdateFolderCommandError = async (output, context) => {
3124
3114
  const parsedOutput = {
3125
3115
  ...output,
3126
3116
  body: await parseErrorBody(output.body, context),
@@ -3129,34 +3119,34 @@ const deserializeAws_restJson1UpdateFolderCommandError = async (output, context)
3129
3119
  switch (errorCode) {
3130
3120
  case "ConcurrentModificationException":
3131
3121
  case "com.amazonaws.workdocs#ConcurrentModificationException":
3132
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
3122
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3133
3123
  case "ConflictingOperationException":
3134
3124
  case "com.amazonaws.workdocs#ConflictingOperationException":
3135
- throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
3125
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3136
3126
  case "EntityAlreadyExistsException":
3137
3127
  case "com.amazonaws.workdocs#EntityAlreadyExistsException":
3138
- throw await deserializeAws_restJson1EntityAlreadyExistsExceptionResponse(parsedOutput, context);
3128
+ throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
3139
3129
  case "EntityNotExistsException":
3140
3130
  case "com.amazonaws.workdocs#EntityNotExistsException":
3141
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
3131
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
3142
3132
  case "FailedDependencyException":
3143
3133
  case "com.amazonaws.workdocs#FailedDependencyException":
3144
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
3134
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
3145
3135
  case "LimitExceededException":
3146
3136
  case "com.amazonaws.workdocs#LimitExceededException":
3147
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3137
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3148
3138
  case "ProhibitedStateException":
3149
3139
  case "com.amazonaws.workdocs#ProhibitedStateException":
3150
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
3140
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
3151
3141
  case "ServiceUnavailableException":
3152
3142
  case "com.amazonaws.workdocs#ServiceUnavailableException":
3153
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3143
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3154
3144
  case "UnauthorizedOperationException":
3155
3145
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
3156
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
3146
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
3157
3147
  case "UnauthorizedResourceAccessException":
3158
3148
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
3159
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
3149
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
3160
3150
  default:
3161
3151
  const parsedBody = parsedOutput.body;
3162
3152
  throwDefaultError({
@@ -3167,20 +3157,20 @@ const deserializeAws_restJson1UpdateFolderCommandError = async (output, context)
3167
3157
  });
3168
3158
  }
3169
3159
  };
3170
- export const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
3160
+ export const de_UpdateUserCommand = async (output, context) => {
3171
3161
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3172
- return deserializeAws_restJson1UpdateUserCommandError(output, context);
3162
+ return de_UpdateUserCommandError(output, context);
3173
3163
  }
3174
3164
  const contents = map({
3175
3165
  $metadata: deserializeMetadata(output),
3176
3166
  });
3177
3167
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3178
3168
  if (data.User != null) {
3179
- contents.User = deserializeAws_restJson1User(data.User, context);
3169
+ contents.User = de_User(data.User, context);
3180
3170
  }
3181
3171
  return contents;
3182
3172
  };
3183
- const deserializeAws_restJson1UpdateUserCommandError = async (output, context) => {
3173
+ const de_UpdateUserCommandError = async (output, context) => {
3184
3174
  const parsedOutput = {
3185
3175
  ...output,
3186
3176
  body: await parseErrorBody(output.body, context),
@@ -3189,31 +3179,31 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
3189
3179
  switch (errorCode) {
3190
3180
  case "DeactivatingLastSystemUserException":
3191
3181
  case "com.amazonaws.workdocs#DeactivatingLastSystemUserException":
3192
- throw await deserializeAws_restJson1DeactivatingLastSystemUserExceptionResponse(parsedOutput, context);
3182
+ throw await de_DeactivatingLastSystemUserExceptionRes(parsedOutput, context);
3193
3183
  case "EntityNotExistsException":
3194
3184
  case "com.amazonaws.workdocs#EntityNotExistsException":
3195
- throw await deserializeAws_restJson1EntityNotExistsExceptionResponse(parsedOutput, context);
3185
+ throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
3196
3186
  case "FailedDependencyException":
3197
3187
  case "com.amazonaws.workdocs#FailedDependencyException":
3198
- throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
3188
+ throw await de_FailedDependencyExceptionRes(parsedOutput, context);
3199
3189
  case "IllegalUserStateException":
3200
3190
  case "com.amazonaws.workdocs#IllegalUserStateException":
3201
- throw await deserializeAws_restJson1IllegalUserStateExceptionResponse(parsedOutput, context);
3191
+ throw await de_IllegalUserStateExceptionRes(parsedOutput, context);
3202
3192
  case "InvalidArgumentException":
3203
3193
  case "com.amazonaws.workdocs#InvalidArgumentException":
3204
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
3194
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
3205
3195
  case "ProhibitedStateException":
3206
3196
  case "com.amazonaws.workdocs#ProhibitedStateException":
3207
- throw await deserializeAws_restJson1ProhibitedStateExceptionResponse(parsedOutput, context);
3197
+ throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
3208
3198
  case "ServiceUnavailableException":
3209
3199
  case "com.amazonaws.workdocs#ServiceUnavailableException":
3210
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3200
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3211
3201
  case "UnauthorizedOperationException":
3212
3202
  case "com.amazonaws.workdocs#UnauthorizedOperationException":
3213
- throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
3203
+ throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
3214
3204
  case "UnauthorizedResourceAccessException":
3215
3205
  case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
3216
- throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
3206
+ throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
3217
3207
  default:
3218
3208
  const parsedBody = parsedOutput.body;
3219
3209
  throwDefaultError({
@@ -3225,7 +3215,7 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
3225
3215
  }
3226
3216
  };
3227
3217
  const map = __map;
3228
- const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
3218
+ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3229
3219
  const contents = map({});
3230
3220
  const data = parsedOutput.body;
3231
3221
  if (data.Message != null) {
@@ -3237,7 +3227,7 @@ const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (p
3237
3227
  });
3238
3228
  return __decorateServiceException(exception, parsedOutput.body);
3239
3229
  };
3240
- const deserializeAws_restJson1ConflictingOperationExceptionResponse = async (parsedOutput, context) => {
3230
+ const de_ConflictingOperationExceptionRes = async (parsedOutput, context) => {
3241
3231
  const contents = map({});
3242
3232
  const data = parsedOutput.body;
3243
3233
  if (data.Message != null) {
@@ -3249,7 +3239,7 @@ const deserializeAws_restJson1ConflictingOperationExceptionResponse = async (par
3249
3239
  });
3250
3240
  return __decorateServiceException(exception, parsedOutput.body);
3251
3241
  };
3252
- const deserializeAws_restJson1CustomMetadataLimitExceededExceptionResponse = async (parsedOutput, context) => {
3242
+ const de_CustomMetadataLimitExceededExceptionRes = async (parsedOutput, context) => {
3253
3243
  const contents = map({});
3254
3244
  const data = parsedOutput.body;
3255
3245
  if (data.Message != null) {
@@ -3261,7 +3251,7 @@ const deserializeAws_restJson1CustomMetadataLimitExceededExceptionResponse = asy
3261
3251
  });
3262
3252
  return __decorateServiceException(exception, parsedOutput.body);
3263
3253
  };
3264
- const deserializeAws_restJson1DeactivatingLastSystemUserExceptionResponse = async (parsedOutput, context) => {
3254
+ const de_DeactivatingLastSystemUserExceptionRes = async (parsedOutput, context) => {
3265
3255
  const contents = map({});
3266
3256
  const data = parsedOutput.body;
3267
3257
  if (data.Code != null) {
@@ -3276,7 +3266,7 @@ const deserializeAws_restJson1DeactivatingLastSystemUserExceptionResponse = asyn
3276
3266
  });
3277
3267
  return __decorateServiceException(exception, parsedOutput.body);
3278
3268
  };
3279
- const deserializeAws_restJson1DocumentLockedForCommentsExceptionResponse = async (parsedOutput, context) => {
3269
+ const de_DocumentLockedForCommentsExceptionRes = async (parsedOutput, context) => {
3280
3270
  const contents = map({});
3281
3271
  const data = parsedOutput.body;
3282
3272
  if (data.Message != null) {
@@ -3288,7 +3278,7 @@ const deserializeAws_restJson1DocumentLockedForCommentsExceptionResponse = async
3288
3278
  });
3289
3279
  return __decorateServiceException(exception, parsedOutput.body);
3290
3280
  };
3291
- const deserializeAws_restJson1DraftUploadOutOfSyncExceptionResponse = async (parsedOutput, context) => {
3281
+ const de_DraftUploadOutOfSyncExceptionRes = async (parsedOutput, context) => {
3292
3282
  const contents = map({});
3293
3283
  const data = parsedOutput.body;
3294
3284
  if (data.Message != null) {
@@ -3300,7 +3290,7 @@ const deserializeAws_restJson1DraftUploadOutOfSyncExceptionResponse = async (par
3300
3290
  });
3301
3291
  return __decorateServiceException(exception, parsedOutput.body);
3302
3292
  };
3303
- const deserializeAws_restJson1EntityAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
3293
+ const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3304
3294
  const contents = map({});
3305
3295
  const data = parsedOutput.body;
3306
3296
  if (data.Message != null) {
@@ -3312,11 +3302,11 @@ const deserializeAws_restJson1EntityAlreadyExistsExceptionResponse = async (pars
3312
3302
  });
3313
3303
  return __decorateServiceException(exception, parsedOutput.body);
3314
3304
  };
3315
- const deserializeAws_restJson1EntityNotExistsExceptionResponse = async (parsedOutput, context) => {
3305
+ const de_EntityNotExistsExceptionRes = async (parsedOutput, context) => {
3316
3306
  const contents = map({});
3317
3307
  const data = parsedOutput.body;
3318
3308
  if (data.EntityIds != null) {
3319
- contents.EntityIds = deserializeAws_restJson1EntityIdList(data.EntityIds, context);
3309
+ contents.EntityIds = de_EntityIdList(data.EntityIds, context);
3320
3310
  }
3321
3311
  if (data.Message != null) {
3322
3312
  contents.Message = __expectString(data.Message);
@@ -3327,7 +3317,7 @@ const deserializeAws_restJson1EntityNotExistsExceptionResponse = async (parsedOu
3327
3317
  });
3328
3318
  return __decorateServiceException(exception, parsedOutput.body);
3329
3319
  };
3330
- const deserializeAws_restJson1FailedDependencyExceptionResponse = async (parsedOutput, context) => {
3320
+ const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
3331
3321
  const contents = map({});
3332
3322
  const data = parsedOutput.body;
3333
3323
  if (data.Message != null) {
@@ -3339,7 +3329,7 @@ const deserializeAws_restJson1FailedDependencyExceptionResponse = async (parsedO
3339
3329
  });
3340
3330
  return __decorateServiceException(exception, parsedOutput.body);
3341
3331
  };
3342
- const deserializeAws_restJson1IllegalUserStateExceptionResponse = async (parsedOutput, context) => {
3332
+ const de_IllegalUserStateExceptionRes = async (parsedOutput, context) => {
3343
3333
  const contents = map({});
3344
3334
  const data = parsedOutput.body;
3345
3335
  if (data.Message != null) {
@@ -3351,7 +3341,7 @@ const deserializeAws_restJson1IllegalUserStateExceptionResponse = async (parsedO
3351
3341
  });
3352
3342
  return __decorateServiceException(exception, parsedOutput.body);
3353
3343
  };
3354
- const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
3344
+ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
3355
3345
  const contents = map({});
3356
3346
  const data = parsedOutput.body;
3357
3347
  if (data.Message != null) {
@@ -3363,7 +3353,7 @@ const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOu
3363
3353
  });
3364
3354
  return __decorateServiceException(exception, parsedOutput.body);
3365
3355
  };
3366
- const deserializeAws_restJson1InvalidCommentOperationExceptionResponse = async (parsedOutput, context) => {
3356
+ const de_InvalidCommentOperationExceptionRes = async (parsedOutput, context) => {
3367
3357
  const contents = map({});
3368
3358
  const data = parsedOutput.body;
3369
3359
  if (data.Message != null) {
@@ -3375,7 +3365,7 @@ const deserializeAws_restJson1InvalidCommentOperationExceptionResponse = async (
3375
3365
  });
3376
3366
  return __decorateServiceException(exception, parsedOutput.body);
3377
3367
  };
3378
- const deserializeAws_restJson1InvalidOperationExceptionResponse = async (parsedOutput, context) => {
3368
+ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
3379
3369
  const contents = map({});
3380
3370
  const data = parsedOutput.body;
3381
3371
  if (data.Message != null) {
@@ -3387,7 +3377,7 @@ const deserializeAws_restJson1InvalidOperationExceptionResponse = async (parsedO
3387
3377
  });
3388
3378
  return __decorateServiceException(exception, parsedOutput.body);
3389
3379
  };
3390
- const deserializeAws_restJson1InvalidPasswordExceptionResponse = async (parsedOutput, context) => {
3380
+ const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
3391
3381
  const contents = map({});
3392
3382
  const data = parsedOutput.body;
3393
3383
  if (data.Message != null) {
@@ -3399,7 +3389,7 @@ const deserializeAws_restJson1InvalidPasswordExceptionResponse = async (parsedOu
3399
3389
  });
3400
3390
  return __decorateServiceException(exception, parsedOutput.body);
3401
3391
  };
3402
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
3392
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3403
3393
  const contents = map({});
3404
3394
  const data = parsedOutput.body;
3405
3395
  if (data.Message != null) {
@@ -3411,7 +3401,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
3411
3401
  });
3412
3402
  return __decorateServiceException(exception, parsedOutput.body);
3413
3403
  };
3414
- const deserializeAws_restJson1ProhibitedStateExceptionResponse = async (parsedOutput, context) => {
3404
+ const de_ProhibitedStateExceptionRes = async (parsedOutput, context) => {
3415
3405
  const contents = map({});
3416
3406
  const data = parsedOutput.body;
3417
3407
  if (data.Message != null) {
@@ -3423,7 +3413,7 @@ const deserializeAws_restJson1ProhibitedStateExceptionResponse = async (parsedOu
3423
3413
  });
3424
3414
  return __decorateServiceException(exception, parsedOutput.body);
3425
3415
  };
3426
- const deserializeAws_restJson1RequestedEntityTooLargeExceptionResponse = async (parsedOutput, context) => {
3416
+ const de_RequestedEntityTooLargeExceptionRes = async (parsedOutput, context) => {
3427
3417
  const contents = map({});
3428
3418
  const data = parsedOutput.body;
3429
3419
  if (data.Message != null) {
@@ -3435,7 +3425,7 @@ const deserializeAws_restJson1RequestedEntityTooLargeExceptionResponse = async (
3435
3425
  });
3436
3426
  return __decorateServiceException(exception, parsedOutput.body);
3437
3427
  };
3438
- const deserializeAws_restJson1ResourceAlreadyCheckedOutExceptionResponse = async (parsedOutput, context) => {
3428
+ const de_ResourceAlreadyCheckedOutExceptionRes = async (parsedOutput, context) => {
3439
3429
  const contents = map({});
3440
3430
  const data = parsedOutput.body;
3441
3431
  if (data.Message != null) {
@@ -3447,7 +3437,7 @@ const deserializeAws_restJson1ResourceAlreadyCheckedOutExceptionResponse = async
3447
3437
  });
3448
3438
  return __decorateServiceException(exception, parsedOutput.body);
3449
3439
  };
3450
- const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
3440
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3451
3441
  const contents = map({});
3452
3442
  const data = parsedOutput.body;
3453
3443
  if (data.Message != null) {
@@ -3459,7 +3449,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
3459
3449
  });
3460
3450
  return __decorateServiceException(exception, parsedOutput.body);
3461
3451
  };
3462
- const deserializeAws_restJson1StorageLimitExceededExceptionResponse = async (parsedOutput, context) => {
3452
+ const de_StorageLimitExceededExceptionRes = async (parsedOutput, context) => {
3463
3453
  const contents = map({});
3464
3454
  const data = parsedOutput.body;
3465
3455
  if (data.Message != null) {
@@ -3471,7 +3461,7 @@ const deserializeAws_restJson1StorageLimitExceededExceptionResponse = async (par
3471
3461
  });
3472
3462
  return __decorateServiceException(exception, parsedOutput.body);
3473
3463
  };
3474
- const deserializeAws_restJson1StorageLimitWillExceedExceptionResponse = async (parsedOutput, context) => {
3464
+ const de_StorageLimitWillExceedExceptionRes = async (parsedOutput, context) => {
3475
3465
  const contents = map({});
3476
3466
  const data = parsedOutput.body;
3477
3467
  if (data.Message != null) {
@@ -3483,7 +3473,7 @@ const deserializeAws_restJson1StorageLimitWillExceedExceptionResponse = async (p
3483
3473
  });
3484
3474
  return __decorateServiceException(exception, parsedOutput.body);
3485
3475
  };
3486
- const deserializeAws_restJson1TooManyLabelsExceptionResponse = async (parsedOutput, context) => {
3476
+ const de_TooManyLabelsExceptionRes = async (parsedOutput, context) => {
3487
3477
  const contents = map({});
3488
3478
  const data = parsedOutput.body;
3489
3479
  if (data.Message != null) {
@@ -3495,7 +3485,7 @@ const deserializeAws_restJson1TooManyLabelsExceptionResponse = async (parsedOutp
3495
3485
  });
3496
3486
  return __decorateServiceException(exception, parsedOutput.body);
3497
3487
  };
3498
- const deserializeAws_restJson1TooManySubscriptionsExceptionResponse = async (parsedOutput, context) => {
3488
+ const de_TooManySubscriptionsExceptionRes = async (parsedOutput, context) => {
3499
3489
  const contents = map({});
3500
3490
  const data = parsedOutput.body;
3501
3491
  if (data.Message != null) {
@@ -3507,7 +3497,7 @@ const deserializeAws_restJson1TooManySubscriptionsExceptionResponse = async (par
3507
3497
  });
3508
3498
  return __decorateServiceException(exception, parsedOutput.body);
3509
3499
  };
3510
- const deserializeAws_restJson1UnauthorizedOperationExceptionResponse = async (parsedOutput, context) => {
3500
+ const de_UnauthorizedOperationExceptionRes = async (parsedOutput, context) => {
3511
3501
  const contents = map({});
3512
3502
  const data = parsedOutput.body;
3513
3503
  if (data.Code != null) {
@@ -3522,7 +3512,7 @@ const deserializeAws_restJson1UnauthorizedOperationExceptionResponse = async (pa
3522
3512
  });
3523
3513
  return __decorateServiceException(exception, parsedOutput.body);
3524
3514
  };
3525
- const deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse = async (parsedOutput, context) => {
3515
+ const de_UnauthorizedResourceAccessExceptionRes = async (parsedOutput, context) => {
3526
3516
  const contents = map({});
3527
3517
  const data = parsedOutput.body;
3528
3518
  if (data.Message != null) {
@@ -3534,14 +3524,14 @@ const deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse = asyn
3534
3524
  });
3535
3525
  return __decorateServiceException(exception, parsedOutput.body);
3536
3526
  };
3537
- const serializeAws_restJson1AdditionalResponseFieldsList = (input, context) => {
3527
+ const se_AdditionalResponseFieldsList = (input, context) => {
3538
3528
  return input
3539
3529
  .filter((e) => e != null)
3540
3530
  .map((entry) => {
3541
3531
  return entry;
3542
3532
  });
3543
3533
  };
3544
- const serializeAws_restJson1CustomMetadataMap = (input, context) => {
3534
+ const se_CustomMetadataMap = (input, context) => {
3545
3535
  return Object.entries(input).reduce((acc, [key, value]) => {
3546
3536
  if (value === null) {
3547
3537
  return acc;
@@ -3550,186 +3540,168 @@ const serializeAws_restJson1CustomMetadataMap = (input, context) => {
3550
3540
  return acc;
3551
3541
  }, {});
3552
3542
  };
3553
- const serializeAws_restJson1DateRangeType = (input, context) => {
3543
+ const se_DateRangeType = (input, context) => {
3554
3544
  return {
3555
3545
  ...(input.EndValue != null && { EndValue: Math.round(input.EndValue.getTime() / 1000) }),
3556
3546
  ...(input.StartValue != null && { StartValue: Math.round(input.StartValue.getTime() / 1000) }),
3557
3547
  };
3558
3548
  };
3559
- const serializeAws_restJson1Filters = (input, context) => {
3549
+ const se_Filters = (input, context) => {
3560
3550
  return {
3561
- ...(input.AncestorIds != null && {
3562
- AncestorIds: serializeAws_restJson1SearchAncestorIdList(input.AncestorIds, context),
3563
- }),
3551
+ ...(input.AncestorIds != null && { AncestorIds: se_SearchAncestorIdList(input.AncestorIds, context) }),
3564
3552
  ...(input.ContentCategories != null && {
3565
- ContentCategories: serializeAws_restJson1SearchContentCategoryTypeList(input.ContentCategories, context),
3566
- }),
3567
- ...(input.CreatedRange != null && {
3568
- CreatedRange: serializeAws_restJson1DateRangeType(input.CreatedRange, context),
3569
- }),
3570
- ...(input.Labels != null && { Labels: serializeAws_restJson1SearchLabelList(input.Labels, context) }),
3571
- ...(input.ModifiedRange != null && {
3572
- ModifiedRange: serializeAws_restJson1DateRangeType(input.ModifiedRange, context),
3573
- }),
3574
- ...(input.Principals != null && {
3575
- Principals: serializeAws_restJson1SearchPrincipalTypeList(input.Principals, context),
3576
- }),
3577
- ...(input.ResourceTypes != null && {
3578
- ResourceTypes: serializeAws_restJson1SearchResourceTypeList(input.ResourceTypes, context),
3553
+ ContentCategories: se_SearchContentCategoryTypeList(input.ContentCategories, context),
3579
3554
  }),
3555
+ ...(input.CreatedRange != null && { CreatedRange: se_DateRangeType(input.CreatedRange, context) }),
3556
+ ...(input.Labels != null && { Labels: se_SearchLabelList(input.Labels, context) }),
3557
+ ...(input.ModifiedRange != null && { ModifiedRange: se_DateRangeType(input.ModifiedRange, context) }),
3558
+ ...(input.Principals != null && { Principals: se_SearchPrincipalTypeList(input.Principals, context) }),
3559
+ ...(input.ResourceTypes != null && { ResourceTypes: se_SearchResourceTypeList(input.ResourceTypes, context) }),
3580
3560
  ...(input.SearchCollectionTypes != null && {
3581
- SearchCollectionTypes: serializeAws_restJson1SearchCollectionTypeList(input.SearchCollectionTypes, context),
3582
- }),
3583
- ...(input.SizeRange != null && { SizeRange: serializeAws_restJson1LongRangeType(input.SizeRange, context) }),
3584
- ...(input.TextLocales != null && {
3585
- TextLocales: serializeAws_restJson1TextLocaleTypeList(input.TextLocales, context),
3561
+ SearchCollectionTypes: se_SearchCollectionTypeList(input.SearchCollectionTypes, context),
3586
3562
  }),
3563
+ ...(input.SizeRange != null && { SizeRange: se_LongRangeType(input.SizeRange, context) }),
3564
+ ...(input.TextLocales != null && { TextLocales: se_TextLocaleTypeList(input.TextLocales, context) }),
3587
3565
  };
3588
3566
  };
3589
- const serializeAws_restJson1LongRangeType = (input, context) => {
3567
+ const se_LongRangeType = (input, context) => {
3590
3568
  return {
3591
3569
  ...(input.EndValue != null && { EndValue: input.EndValue }),
3592
3570
  ...(input.StartValue != null && { StartValue: input.StartValue }),
3593
3571
  };
3594
3572
  };
3595
- const serializeAws_restJson1NotificationOptions = (input, context) => {
3573
+ const se_NotificationOptions = (input, context) => {
3596
3574
  return {
3597
3575
  ...(input.EmailMessage != null && { EmailMessage: input.EmailMessage }),
3598
3576
  ...(input.SendEmail != null && { SendEmail: input.SendEmail }),
3599
3577
  };
3600
3578
  };
3601
- const serializeAws_restJson1SearchAncestorIdList = (input, context) => {
3579
+ const se_SearchAncestorIdList = (input, context) => {
3602
3580
  return input
3603
3581
  .filter((e) => e != null)
3604
3582
  .map((entry) => {
3605
3583
  return entry;
3606
3584
  });
3607
3585
  };
3608
- const serializeAws_restJson1SearchCollectionTypeList = (input, context) => {
3586
+ const se_SearchCollectionTypeList = (input, context) => {
3609
3587
  return input
3610
3588
  .filter((e) => e != null)
3611
3589
  .map((entry) => {
3612
3590
  return entry;
3613
3591
  });
3614
3592
  };
3615
- const serializeAws_restJson1SearchContentCategoryTypeList = (input, context) => {
3593
+ const se_SearchContentCategoryTypeList = (input, context) => {
3616
3594
  return input
3617
3595
  .filter((e) => e != null)
3618
3596
  .map((entry) => {
3619
3597
  return entry;
3620
3598
  });
3621
3599
  };
3622
- const serializeAws_restJson1SearchLabelList = (input, context) => {
3600
+ const se_SearchLabelList = (input, context) => {
3623
3601
  return input
3624
3602
  .filter((e) => e != null)
3625
3603
  .map((entry) => {
3626
3604
  return entry;
3627
3605
  });
3628
3606
  };
3629
- const serializeAws_restJson1SearchPrincipalRoleList = (input, context) => {
3607
+ const se_SearchPrincipalRoleList = (input, context) => {
3630
3608
  return input
3631
3609
  .filter((e) => e != null)
3632
3610
  .map((entry) => {
3633
3611
  return entry;
3634
3612
  });
3635
3613
  };
3636
- const serializeAws_restJson1SearchPrincipalType = (input, context) => {
3614
+ const se_SearchPrincipalType = (input, context) => {
3637
3615
  return {
3638
3616
  ...(input.Id != null && { Id: input.Id }),
3639
- ...(input.Roles != null && { Roles: serializeAws_restJson1SearchPrincipalRoleList(input.Roles, context) }),
3617
+ ...(input.Roles != null && { Roles: se_SearchPrincipalRoleList(input.Roles, context) }),
3640
3618
  };
3641
3619
  };
3642
- const serializeAws_restJson1SearchPrincipalTypeList = (input, context) => {
3620
+ const se_SearchPrincipalTypeList = (input, context) => {
3643
3621
  return input
3644
3622
  .filter((e) => e != null)
3645
3623
  .map((entry) => {
3646
- return serializeAws_restJson1SearchPrincipalType(entry, context);
3624
+ return se_SearchPrincipalType(entry, context);
3647
3625
  });
3648
3626
  };
3649
- const serializeAws_restJson1SearchQueryScopeTypeList = (input, context) => {
3627
+ const se_SearchQueryScopeTypeList = (input, context) => {
3650
3628
  return input
3651
3629
  .filter((e) => e != null)
3652
3630
  .map((entry) => {
3653
3631
  return entry;
3654
3632
  });
3655
3633
  };
3656
- const serializeAws_restJson1SearchResourceTypeList = (input, context) => {
3634
+ const se_SearchResourceTypeList = (input, context) => {
3657
3635
  return input
3658
3636
  .filter((e) => e != null)
3659
3637
  .map((entry) => {
3660
3638
  return entry;
3661
3639
  });
3662
3640
  };
3663
- const serializeAws_restJson1SearchResultSortList = (input, context) => {
3641
+ const se_SearchResultSortList = (input, context) => {
3664
3642
  return input
3665
3643
  .filter((e) => e != null)
3666
3644
  .map((entry) => {
3667
- return serializeAws_restJson1SearchSortResult(entry, context);
3645
+ return se_SearchSortResult(entry, context);
3668
3646
  });
3669
3647
  };
3670
- const serializeAws_restJson1SearchSortResult = (input, context) => {
3648
+ const se_SearchSortResult = (input, context) => {
3671
3649
  return {
3672
3650
  ...(input.Field != null && { Field: input.Field }),
3673
3651
  ...(input.Order != null && { Order: input.Order }),
3674
3652
  };
3675
3653
  };
3676
- const serializeAws_restJson1SharedLabels = (input, context) => {
3654
+ const se_SharedLabels = (input, context) => {
3677
3655
  return input
3678
3656
  .filter((e) => e != null)
3679
3657
  .map((entry) => {
3680
3658
  return entry;
3681
3659
  });
3682
3660
  };
3683
- const serializeAws_restJson1SharePrincipal = (input, context) => {
3661
+ const se_SharePrincipal = (input, context) => {
3684
3662
  return {
3685
3663
  ...(input.Id != null && { Id: input.Id }),
3686
3664
  ...(input.Role != null && { Role: input.Role }),
3687
3665
  ...(input.Type != null && { Type: input.Type }),
3688
3666
  };
3689
3667
  };
3690
- const serializeAws_restJson1SharePrincipalList = (input, context) => {
3668
+ const se_SharePrincipalList = (input, context) => {
3691
3669
  return input
3692
3670
  .filter((e) => e != null)
3693
3671
  .map((entry) => {
3694
- return serializeAws_restJson1SharePrincipal(entry, context);
3672
+ return se_SharePrincipal(entry, context);
3695
3673
  });
3696
3674
  };
3697
- const serializeAws_restJson1StorageRuleType = (input, context) => {
3675
+ const se_StorageRuleType = (input, context) => {
3698
3676
  return {
3699
3677
  ...(input.StorageAllocatedInBytes != null && { StorageAllocatedInBytes: input.StorageAllocatedInBytes }),
3700
3678
  ...(input.StorageType != null && { StorageType: input.StorageType }),
3701
3679
  };
3702
3680
  };
3703
- const serializeAws_restJson1TextLocaleTypeList = (input, context) => {
3681
+ const se_TextLocaleTypeList = (input, context) => {
3704
3682
  return input
3705
3683
  .filter((e) => e != null)
3706
3684
  .map((entry) => {
3707
3685
  return entry;
3708
3686
  });
3709
3687
  };
3710
- const deserializeAws_restJson1Activity = (output, context) => {
3688
+ const de_Activity = (output, context) => {
3711
3689
  return {
3712
- CommentMetadata: output.CommentMetadata != null
3713
- ? deserializeAws_restJson1CommentMetadata(output.CommentMetadata, context)
3714
- : undefined,
3715
- Initiator: output.Initiator != null ? deserializeAws_restJson1UserMetadata(output.Initiator, context) : undefined,
3690
+ CommentMetadata: output.CommentMetadata != null ? de_CommentMetadata(output.CommentMetadata, context) : undefined,
3691
+ Initiator: output.Initiator != null ? de_UserMetadata(output.Initiator, context) : undefined,
3716
3692
  IsIndirectActivity: __expectBoolean(output.IsIndirectActivity),
3717
3693
  OrganizationId: __expectString(output.OrganizationId),
3718
- OriginalParent: output.OriginalParent != null
3719
- ? deserializeAws_restJson1ResourceMetadata(output.OriginalParent, context)
3720
- : undefined,
3721
- Participants: output.Participants != null ? deserializeAws_restJson1Participants(output.Participants, context) : undefined,
3722
- ResourceMetadata: output.ResourceMetadata != null
3723
- ? deserializeAws_restJson1ResourceMetadata(output.ResourceMetadata, context)
3724
- : undefined,
3694
+ OriginalParent: output.OriginalParent != null ? de_ResourceMetadata(output.OriginalParent, context) : undefined,
3695
+ Participants: output.Participants != null ? de_Participants(output.Participants, context) : undefined,
3696
+ ResourceMetadata: output.ResourceMetadata != null ? de_ResourceMetadata(output.ResourceMetadata, context) : undefined,
3725
3697
  TimeStamp: output.TimeStamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TimeStamp))) : undefined,
3726
3698
  Type: __expectString(output.Type),
3727
3699
  };
3728
3700
  };
3729
- const deserializeAws_restJson1Comment = (output, context) => {
3701
+ const de_Comment = (output, context) => {
3730
3702
  return {
3731
3703
  CommentId: __expectString(output.CommentId),
3732
- Contributor: output.Contributor != null ? deserializeAws_restJson1User(output.Contributor, context) : undefined,
3704
+ Contributor: output.Contributor != null ? de_User(output.Contributor, context) : undefined,
3733
3705
  CreatedTimestamp: output.CreatedTimestamp != null
3734
3706
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
3735
3707
  : undefined,
@@ -3741,22 +3713,22 @@ const deserializeAws_restJson1Comment = (output, context) => {
3741
3713
  Visibility: __expectString(output.Visibility),
3742
3714
  };
3743
3715
  };
3744
- const deserializeAws_restJson1CommentList = (output, context) => {
3716
+ const de_CommentList = (output, context) => {
3745
3717
  const retVal = (output || [])
3746
3718
  .filter((e) => e != null)
3747
3719
  .map((entry) => {
3748
3720
  if (entry === null) {
3749
3721
  return null;
3750
3722
  }
3751
- return deserializeAws_restJson1Comment(entry, context);
3723
+ return de_Comment(entry, context);
3752
3724
  });
3753
3725
  return retVal;
3754
3726
  };
3755
- const deserializeAws_restJson1CommentMetadata = (output, context) => {
3727
+ const de_CommentMetadata = (output, context) => {
3756
3728
  return {
3757
3729
  CommentId: __expectString(output.CommentId),
3758
3730
  CommentStatus: __expectString(output.CommentStatus),
3759
- Contributor: output.Contributor != null ? deserializeAws_restJson1User(output.Contributor, context) : undefined,
3731
+ Contributor: output.Contributor != null ? de_User(output.Contributor, context) : undefined,
3760
3732
  ContributorId: __expectString(output.ContributorId),
3761
3733
  CreatedTimestamp: output.CreatedTimestamp != null
3762
3734
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
@@ -3764,7 +3736,7 @@ const deserializeAws_restJson1CommentMetadata = (output, context) => {
3764
3736
  RecipientId: __expectString(output.RecipientId),
3765
3737
  };
3766
3738
  };
3767
- const deserializeAws_restJson1CustomMetadataMap = (output, context) => {
3739
+ const de_CustomMetadataMap = (output, context) => {
3768
3740
  return Object.entries(output).reduce((acc, [key, value]) => {
3769
3741
  if (value === null) {
3770
3742
  return acc;
@@ -3773,16 +3745,16 @@ const deserializeAws_restJson1CustomMetadataMap = (output, context) => {
3773
3745
  return acc;
3774
3746
  }, {});
3775
3747
  };
3776
- const deserializeAws_restJson1DocumentMetadata = (output, context) => {
3748
+ const de_DocumentMetadata = (output, context) => {
3777
3749
  return {
3778
3750
  CreatedTimestamp: output.CreatedTimestamp != null
3779
3751
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
3780
3752
  : undefined,
3781
3753
  CreatorId: __expectString(output.CreatorId),
3782
3754
  Id: __expectString(output.Id),
3783
- Labels: output.Labels != null ? deserializeAws_restJson1SharedLabels(output.Labels, context) : undefined,
3755
+ Labels: output.Labels != null ? de_SharedLabels(output.Labels, context) : undefined,
3784
3756
  LatestVersionMetadata: output.LatestVersionMetadata != null
3785
- ? deserializeAws_restJson1DocumentVersionMetadata(output.LatestVersionMetadata, context)
3757
+ ? de_DocumentVersionMetadata(output.LatestVersionMetadata, context)
3786
3758
  : undefined,
3787
3759
  ModifiedTimestamp: output.ModifiedTimestamp != null
3788
3760
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ModifiedTimestamp)))
@@ -3791,18 +3763,18 @@ const deserializeAws_restJson1DocumentMetadata = (output, context) => {
3791
3763
  ResourceState: __expectString(output.ResourceState),
3792
3764
  };
3793
3765
  };
3794
- const deserializeAws_restJson1DocumentMetadataList = (output, context) => {
3766
+ const de_DocumentMetadataList = (output, context) => {
3795
3767
  const retVal = (output || [])
3796
3768
  .filter((e) => e != null)
3797
3769
  .map((entry) => {
3798
3770
  if (entry === null) {
3799
3771
  return null;
3800
3772
  }
3801
- return deserializeAws_restJson1DocumentMetadata(entry, context);
3773
+ return de_DocumentMetadata(entry, context);
3802
3774
  });
3803
3775
  return retVal;
3804
3776
  };
3805
- const deserializeAws_restJson1DocumentSourceUrlMap = (output, context) => {
3777
+ const de_DocumentSourceUrlMap = (output, context) => {
3806
3778
  return Object.entries(output).reduce((acc, [key, value]) => {
3807
3779
  if (value === null) {
3808
3780
  return acc;
@@ -3811,7 +3783,7 @@ const deserializeAws_restJson1DocumentSourceUrlMap = (output, context) => {
3811
3783
  return acc;
3812
3784
  }, {});
3813
3785
  };
3814
- const deserializeAws_restJson1DocumentThumbnailUrlMap = (output, context) => {
3786
+ const de_DocumentThumbnailUrlMap = (output, context) => {
3815
3787
  return Object.entries(output).reduce((acc, [key, value]) => {
3816
3788
  if (value === null) {
3817
3789
  return acc;
@@ -3820,7 +3792,7 @@ const deserializeAws_restJson1DocumentThumbnailUrlMap = (output, context) => {
3820
3792
  return acc;
3821
3793
  }, {});
3822
3794
  };
3823
- const deserializeAws_restJson1DocumentVersionMetadata = (output, context) => {
3795
+ const de_DocumentVersionMetadata = (output, context) => {
3824
3796
  return {
3825
3797
  ContentCreatedTimestamp: output.ContentCreatedTimestamp != null
3826
3798
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ContentCreatedTimestamp)))
@@ -3840,23 +3812,23 @@ const deserializeAws_restJson1DocumentVersionMetadata = (output, context) => {
3840
3812
  Name: __expectString(output.Name),
3841
3813
  Signature: __expectString(output.Signature),
3842
3814
  Size: __expectLong(output.Size),
3843
- Source: output.Source != null ? deserializeAws_restJson1DocumentSourceUrlMap(output.Source, context) : undefined,
3815
+ Source: output.Source != null ? de_DocumentSourceUrlMap(output.Source, context) : undefined,
3844
3816
  Status: __expectString(output.Status),
3845
- Thumbnail: output.Thumbnail != null ? deserializeAws_restJson1DocumentThumbnailUrlMap(output.Thumbnail, context) : undefined,
3817
+ Thumbnail: output.Thumbnail != null ? de_DocumentThumbnailUrlMap(output.Thumbnail, context) : undefined,
3846
3818
  };
3847
3819
  };
3848
- const deserializeAws_restJson1DocumentVersionMetadataList = (output, context) => {
3820
+ const de_DocumentVersionMetadataList = (output, context) => {
3849
3821
  const retVal = (output || [])
3850
3822
  .filter((e) => e != null)
3851
3823
  .map((entry) => {
3852
3824
  if (entry === null) {
3853
3825
  return null;
3854
3826
  }
3855
- return deserializeAws_restJson1DocumentVersionMetadata(entry, context);
3827
+ return de_DocumentVersionMetadata(entry, context);
3856
3828
  });
3857
3829
  return retVal;
3858
3830
  };
3859
- const deserializeAws_restJson1EntityIdList = (output, context) => {
3831
+ const de_EntityIdList = (output, context) => {
3860
3832
  const retVal = (output || [])
3861
3833
  .filter((e) => e != null)
3862
3834
  .map((entry) => {
@@ -3867,14 +3839,14 @@ const deserializeAws_restJson1EntityIdList = (output, context) => {
3867
3839
  });
3868
3840
  return retVal;
3869
3841
  };
3870
- const deserializeAws_restJson1FolderMetadata = (output, context) => {
3842
+ const de_FolderMetadata = (output, context) => {
3871
3843
  return {
3872
3844
  CreatedTimestamp: output.CreatedTimestamp != null
3873
3845
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
3874
3846
  : undefined,
3875
3847
  CreatorId: __expectString(output.CreatorId),
3876
3848
  Id: __expectString(output.Id),
3877
- Labels: output.Labels != null ? deserializeAws_restJson1SharedLabels(output.Labels, context) : undefined,
3849
+ Labels: output.Labels != null ? de_SharedLabels(output.Labels, context) : undefined,
3878
3850
  LatestVersionSize: __expectLong(output.LatestVersionSize),
3879
3851
  ModifiedTimestamp: output.ModifiedTimestamp != null
3880
3852
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ModifiedTimestamp)))
@@ -3886,151 +3858,143 @@ const deserializeAws_restJson1FolderMetadata = (output, context) => {
3886
3858
  Size: __expectLong(output.Size),
3887
3859
  };
3888
3860
  };
3889
- const deserializeAws_restJson1FolderMetadataList = (output, context) => {
3861
+ const de_FolderMetadataList = (output, context) => {
3890
3862
  const retVal = (output || [])
3891
3863
  .filter((e) => e != null)
3892
3864
  .map((entry) => {
3893
3865
  if (entry === null) {
3894
3866
  return null;
3895
3867
  }
3896
- return deserializeAws_restJson1FolderMetadata(entry, context);
3868
+ return de_FolderMetadata(entry, context);
3897
3869
  });
3898
3870
  return retVal;
3899
3871
  };
3900
- const deserializeAws_restJson1GroupMetadata = (output, context) => {
3872
+ const de_GroupMetadata = (output, context) => {
3901
3873
  return {
3902
3874
  Id: __expectString(output.Id),
3903
3875
  Name: __expectString(output.Name),
3904
3876
  };
3905
3877
  };
3906
- const deserializeAws_restJson1GroupMetadataList = (output, context) => {
3878
+ const de_GroupMetadataList = (output, context) => {
3907
3879
  const retVal = (output || [])
3908
3880
  .filter((e) => e != null)
3909
3881
  .map((entry) => {
3910
3882
  if (entry === null) {
3911
3883
  return null;
3912
3884
  }
3913
- return deserializeAws_restJson1GroupMetadata(entry, context);
3885
+ return de_GroupMetadata(entry, context);
3914
3886
  });
3915
3887
  return retVal;
3916
3888
  };
3917
- const deserializeAws_restJson1OrganizationUserList = (output, context) => {
3889
+ const de_OrganizationUserList = (output, context) => {
3918
3890
  const retVal = (output || [])
3919
3891
  .filter((e) => e != null)
3920
3892
  .map((entry) => {
3921
3893
  if (entry === null) {
3922
3894
  return null;
3923
3895
  }
3924
- return deserializeAws_restJson1User(entry, context);
3896
+ return de_User(entry, context);
3925
3897
  });
3926
3898
  return retVal;
3927
3899
  };
3928
- const deserializeAws_restJson1Participants = (output, context) => {
3900
+ const de_Participants = (output, context) => {
3929
3901
  return {
3930
- Groups: output.Groups != null ? deserializeAws_restJson1GroupMetadataList(output.Groups, context) : undefined,
3931
- Users: output.Users != null ? deserializeAws_restJson1UserMetadataList(output.Users, context) : undefined,
3902
+ Groups: output.Groups != null ? de_GroupMetadataList(output.Groups, context) : undefined,
3903
+ Users: output.Users != null ? de_UserMetadataList(output.Users, context) : undefined,
3932
3904
  };
3933
3905
  };
3934
- const deserializeAws_restJson1PermissionInfo = (output, context) => {
3906
+ const de_PermissionInfo = (output, context) => {
3935
3907
  return {
3936
3908
  Role: __expectString(output.Role),
3937
3909
  Type: __expectString(output.Type),
3938
3910
  };
3939
3911
  };
3940
- const deserializeAws_restJson1PermissionInfoList = (output, context) => {
3912
+ const de_PermissionInfoList = (output, context) => {
3941
3913
  const retVal = (output || [])
3942
3914
  .filter((e) => e != null)
3943
3915
  .map((entry) => {
3944
3916
  if (entry === null) {
3945
3917
  return null;
3946
3918
  }
3947
- return deserializeAws_restJson1PermissionInfo(entry, context);
3919
+ return de_PermissionInfo(entry, context);
3948
3920
  });
3949
3921
  return retVal;
3950
3922
  };
3951
- const deserializeAws_restJson1Principal = (output, context) => {
3923
+ const de_Principal = (output, context) => {
3952
3924
  return {
3953
3925
  Id: __expectString(output.Id),
3954
- Roles: output.Roles != null ? deserializeAws_restJson1PermissionInfoList(output.Roles, context) : undefined,
3926
+ Roles: output.Roles != null ? de_PermissionInfoList(output.Roles, context) : undefined,
3955
3927
  Type: __expectString(output.Type),
3956
3928
  };
3957
3929
  };
3958
- const deserializeAws_restJson1PrincipalList = (output, context) => {
3930
+ const de_PrincipalList = (output, context) => {
3959
3931
  const retVal = (output || [])
3960
3932
  .filter((e) => e != null)
3961
3933
  .map((entry) => {
3962
3934
  if (entry === null) {
3963
3935
  return null;
3964
3936
  }
3965
- return deserializeAws_restJson1Principal(entry, context);
3937
+ return de_Principal(entry, context);
3966
3938
  });
3967
3939
  return retVal;
3968
3940
  };
3969
- const deserializeAws_restJson1ResourceMetadata = (output, context) => {
3941
+ const de_ResourceMetadata = (output, context) => {
3970
3942
  return {
3971
3943
  Id: __expectString(output.Id),
3972
3944
  Name: __expectString(output.Name),
3973
3945
  OriginalName: __expectString(output.OriginalName),
3974
- Owner: output.Owner != null ? deserializeAws_restJson1UserMetadata(output.Owner, context) : undefined,
3946
+ Owner: output.Owner != null ? de_UserMetadata(output.Owner, context) : undefined,
3975
3947
  ParentId: __expectString(output.ParentId),
3976
3948
  Type: __expectString(output.Type),
3977
3949
  VersionId: __expectString(output.VersionId),
3978
3950
  };
3979
3951
  };
3980
- const deserializeAws_restJson1ResourcePath = (output, context) => {
3952
+ const de_ResourcePath = (output, context) => {
3981
3953
  return {
3982
- Components: output.Components != null
3983
- ? deserializeAws_restJson1ResourcePathComponentList(output.Components, context)
3984
- : undefined,
3954
+ Components: output.Components != null ? de_ResourcePathComponentList(output.Components, context) : undefined,
3985
3955
  };
3986
3956
  };
3987
- const deserializeAws_restJson1ResourcePathComponent = (output, context) => {
3957
+ const de_ResourcePathComponent = (output, context) => {
3988
3958
  return {
3989
3959
  Id: __expectString(output.Id),
3990
3960
  Name: __expectString(output.Name),
3991
3961
  };
3992
3962
  };
3993
- const deserializeAws_restJson1ResourcePathComponentList = (output, context) => {
3963
+ const de_ResourcePathComponentList = (output, context) => {
3994
3964
  const retVal = (output || [])
3995
3965
  .filter((e) => e != null)
3996
3966
  .map((entry) => {
3997
3967
  if (entry === null) {
3998
3968
  return null;
3999
3969
  }
4000
- return deserializeAws_restJson1ResourcePathComponent(entry, context);
3970
+ return de_ResourcePathComponent(entry, context);
4001
3971
  });
4002
3972
  return retVal;
4003
3973
  };
4004
- const deserializeAws_restJson1ResponseItem = (output, context) => {
3974
+ const de_ResponseItem = (output, context) => {
4005
3975
  return {
4006
- CommentMetadata: output.CommentMetadata != null
4007
- ? deserializeAws_restJson1CommentMetadata(output.CommentMetadata, context)
4008
- : undefined,
4009
- DocumentMetadata: output.DocumentMetadata != null
4010
- ? deserializeAws_restJson1DocumentMetadata(output.DocumentMetadata, context)
4011
- : undefined,
3976
+ CommentMetadata: output.CommentMetadata != null ? de_CommentMetadata(output.CommentMetadata, context) : undefined,
3977
+ DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
4012
3978
  DocumentVersionMetadata: output.DocumentVersionMetadata != null
4013
- ? deserializeAws_restJson1DocumentVersionMetadata(output.DocumentVersionMetadata, context)
4014
- : undefined,
4015
- FolderMetadata: output.FolderMetadata != null
4016
- ? deserializeAws_restJson1FolderMetadata(output.FolderMetadata, context)
3979
+ ? de_DocumentVersionMetadata(output.DocumentVersionMetadata, context)
4017
3980
  : undefined,
3981
+ FolderMetadata: output.FolderMetadata != null ? de_FolderMetadata(output.FolderMetadata, context) : undefined,
4018
3982
  ResourceType: __expectString(output.ResourceType),
4019
3983
  WebUrl: __expectString(output.WebUrl),
4020
3984
  };
4021
3985
  };
4022
- const deserializeAws_restJson1ResponseItemsList = (output, context) => {
3986
+ const de_ResponseItemsList = (output, context) => {
4023
3987
  const retVal = (output || [])
4024
3988
  .filter((e) => e != null)
4025
3989
  .map((entry) => {
4026
3990
  if (entry === null) {
4027
3991
  return null;
4028
3992
  }
4029
- return deserializeAws_restJson1ResponseItem(entry, context);
3993
+ return de_ResponseItem(entry, context);
4030
3994
  });
4031
3995
  return retVal;
4032
3996
  };
4033
- const deserializeAws_restJson1SharedLabels = (output, context) => {
3997
+ const de_SharedLabels = (output, context) => {
4034
3998
  const retVal = (output || [])
4035
3999
  .filter((e) => e != null)
4036
4000
  .map((entry) => {
@@ -4041,7 +4005,7 @@ const deserializeAws_restJson1SharedLabels = (output, context) => {
4041
4005
  });
4042
4006
  return retVal;
4043
4007
  };
4044
- const deserializeAws_restJson1ShareResult = (output, context) => {
4008
+ const de_ShareResult = (output, context) => {
4045
4009
  return {
4046
4010
  InviteePrincipalId: __expectString(output.InviteePrincipalId),
4047
4011
  PrincipalId: __expectString(output.PrincipalId),
@@ -4051,18 +4015,18 @@ const deserializeAws_restJson1ShareResult = (output, context) => {
4051
4015
  StatusMessage: __expectString(output.StatusMessage),
4052
4016
  };
4053
4017
  };
4054
- const deserializeAws_restJson1ShareResultsList = (output, context) => {
4018
+ const de_ShareResultsList = (output, context) => {
4055
4019
  const retVal = (output || [])
4056
4020
  .filter((e) => e != null)
4057
4021
  .map((entry) => {
4058
4022
  if (entry === null) {
4059
4023
  return null;
4060
4024
  }
4061
- return deserializeAws_restJson1ShareResult(entry, context);
4025
+ return de_ShareResult(entry, context);
4062
4026
  });
4063
4027
  return retVal;
4064
4028
  };
4065
- const deserializeAws_restJson1SignedHeaderMap = (output, context) => {
4029
+ const de_SignedHeaderMap = (output, context) => {
4066
4030
  return Object.entries(output).reduce((acc, [key, value]) => {
4067
4031
  if (value === null) {
4068
4032
  return acc;
@@ -4071,37 +4035,37 @@ const deserializeAws_restJson1SignedHeaderMap = (output, context) => {
4071
4035
  return acc;
4072
4036
  }, {});
4073
4037
  };
4074
- const deserializeAws_restJson1StorageRuleType = (output, context) => {
4038
+ const de_StorageRuleType = (output, context) => {
4075
4039
  return {
4076
4040
  StorageAllocatedInBytes: __expectLong(output.StorageAllocatedInBytes),
4077
4041
  StorageType: __expectString(output.StorageType),
4078
4042
  };
4079
4043
  };
4080
- const deserializeAws_restJson1Subscription = (output, context) => {
4044
+ const de_Subscription = (output, context) => {
4081
4045
  return {
4082
4046
  EndPoint: __expectString(output.EndPoint),
4083
4047
  Protocol: __expectString(output.Protocol),
4084
4048
  SubscriptionId: __expectString(output.SubscriptionId),
4085
4049
  };
4086
4050
  };
4087
- const deserializeAws_restJson1SubscriptionList = (output, context) => {
4051
+ const de_SubscriptionList = (output, context) => {
4088
4052
  const retVal = (output || [])
4089
4053
  .filter((e) => e != null)
4090
4054
  .map((entry) => {
4091
4055
  if (entry === null) {
4092
4056
  return null;
4093
4057
  }
4094
- return deserializeAws_restJson1Subscription(entry, context);
4058
+ return de_Subscription(entry, context);
4095
4059
  });
4096
4060
  return retVal;
4097
4061
  };
4098
- const deserializeAws_restJson1UploadMetadata = (output, context) => {
4062
+ const de_UploadMetadata = (output, context) => {
4099
4063
  return {
4100
- SignedHeaders: output.SignedHeaders != null ? deserializeAws_restJson1SignedHeaderMap(output.SignedHeaders, context) : undefined,
4064
+ SignedHeaders: output.SignedHeaders != null ? de_SignedHeaderMap(output.SignedHeaders, context) : undefined,
4101
4065
  UploadUrl: __expectString(output.UploadUrl),
4102
4066
  };
4103
4067
  };
4104
- const deserializeAws_restJson1User = (output, context) => {
4068
+ const de_User = (output, context) => {
4105
4069
  return {
4106
4070
  CreatedTimestamp: output.CreatedTimestamp != null
4107
4071
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
@@ -4117,25 +4081,25 @@ const deserializeAws_restJson1User = (output, context) => {
4117
4081
  RecycleBinFolderId: __expectString(output.RecycleBinFolderId),
4118
4082
  RootFolderId: __expectString(output.RootFolderId),
4119
4083
  Status: __expectString(output.Status),
4120
- Storage: output.Storage != null ? deserializeAws_restJson1UserStorageMetadata(output.Storage, context) : undefined,
4084
+ Storage: output.Storage != null ? de_UserStorageMetadata(output.Storage, context) : undefined,
4121
4085
  Surname: __expectString(output.Surname),
4122
4086
  TimeZoneId: __expectString(output.TimeZoneId),
4123
4087
  Type: __expectString(output.Type),
4124
4088
  Username: __expectString(output.Username),
4125
4089
  };
4126
4090
  };
4127
- const deserializeAws_restJson1UserActivities = (output, context) => {
4091
+ const de_UserActivities = (output, context) => {
4128
4092
  const retVal = (output || [])
4129
4093
  .filter((e) => e != null)
4130
4094
  .map((entry) => {
4131
4095
  if (entry === null) {
4132
4096
  return null;
4133
4097
  }
4134
- return deserializeAws_restJson1Activity(entry, context);
4098
+ return de_Activity(entry, context);
4135
4099
  });
4136
4100
  return retVal;
4137
4101
  };
4138
- const deserializeAws_restJson1UserMetadata = (output, context) => {
4102
+ const de_UserMetadata = (output, context) => {
4139
4103
  return {
4140
4104
  EmailAddress: __expectString(output.EmailAddress),
4141
4105
  GivenName: __expectString(output.GivenName),
@@ -4144,20 +4108,20 @@ const deserializeAws_restJson1UserMetadata = (output, context) => {
4144
4108
  Username: __expectString(output.Username),
4145
4109
  };
4146
4110
  };
4147
- const deserializeAws_restJson1UserMetadataList = (output, context) => {
4111
+ const de_UserMetadataList = (output, context) => {
4148
4112
  const retVal = (output || [])
4149
4113
  .filter((e) => e != null)
4150
4114
  .map((entry) => {
4151
4115
  if (entry === null) {
4152
4116
  return null;
4153
4117
  }
4154
- return deserializeAws_restJson1UserMetadata(entry, context);
4118
+ return de_UserMetadata(entry, context);
4155
4119
  });
4156
4120
  return retVal;
4157
4121
  };
4158
- const deserializeAws_restJson1UserStorageMetadata = (output, context) => {
4122
+ const de_UserStorageMetadata = (output, context) => {
4159
4123
  return {
4160
- StorageRule: output.StorageRule != null ? deserializeAws_restJson1StorageRuleType(output.StorageRule, context) : undefined,
4124
+ StorageRule: output.StorageRule != null ? de_StorageRuleType(output.StorageRule, context) : undefined,
4161
4125
  StorageUtilizedInBytes: __expectLong(output.StorageUtilizedInBytes),
4162
4126
  };
4163
4127
  };