@aws-sdk/client-workdocs 3.54.0 → 3.56.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 (56) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/WorkDocsClient.js +13 -13
  3. package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +3 -3
  4. package/dist-cjs/commands/ActivateUserCommand.js +3 -3
  5. package/dist-cjs/commands/AddResourcePermissionsCommand.js +3 -3
  6. package/dist-cjs/commands/CreateCommentCommand.js +3 -3
  7. package/dist-cjs/commands/CreateCustomMetadataCommand.js +3 -3
  8. package/dist-cjs/commands/CreateFolderCommand.js +3 -3
  9. package/dist-cjs/commands/CreateLabelsCommand.js +3 -3
  10. package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +3 -3
  11. package/dist-cjs/commands/CreateUserCommand.js +3 -3
  12. package/dist-cjs/commands/DeactivateUserCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteCommentCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteCustomMetadataCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteDocumentCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteFolderCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteFolderContentsCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteLabelsCommand.js +3 -3
  19. package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +3 -3
  20. package/dist-cjs/commands/DeleteUserCommand.js +3 -3
  21. package/dist-cjs/commands/DescribeActivitiesCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeCommentsCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +3 -3
  24. package/dist-cjs/commands/DescribeFolderContentsCommand.js +3 -3
  25. package/dist-cjs/commands/DescribeGroupsCommand.js +3 -3
  26. package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +3 -3
  27. package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +3 -3
  28. package/dist-cjs/commands/DescribeRootFoldersCommand.js +3 -3
  29. package/dist-cjs/commands/DescribeUsersCommand.js +3 -3
  30. package/dist-cjs/commands/GetCurrentUserCommand.js +3 -3
  31. package/dist-cjs/commands/GetDocumentCommand.js +3 -3
  32. package/dist-cjs/commands/GetDocumentPathCommand.js +3 -3
  33. package/dist-cjs/commands/GetDocumentVersionCommand.js +3 -3
  34. package/dist-cjs/commands/GetFolderCommand.js +3 -3
  35. package/dist-cjs/commands/GetFolderPathCommand.js +3 -3
  36. package/dist-cjs/commands/GetResourcesCommand.js +3 -3
  37. package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +3 -3
  38. package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +3 -3
  39. package/dist-cjs/commands/RemoveResourcePermissionCommand.js +3 -3
  40. package/dist-cjs/commands/UpdateDocumentCommand.js +3 -3
  41. package/dist-cjs/commands/UpdateDocumentVersionCommand.js +3 -3
  42. package/dist-cjs/commands/UpdateFolderCommand.js +3 -3
  43. package/dist-cjs/commands/UpdateUserCommand.js +3 -3
  44. package/dist-cjs/endpoints.js +1 -1
  45. package/dist-cjs/protocols/Aws_restJson1.js +264 -264
  46. package/dist-cjs/runtimeConfig.browser.js +4 -4
  47. package/dist-cjs/runtimeConfig.js +9 -9
  48. package/dist-cjs/runtimeConfig.native.js +1 -1
  49. package/dist-es/WorkDocs.js +41 -41
  50. package/dist-es/pagination/DescribeDocumentVersionsPaginator.js +4 -4
  51. package/dist-es/pagination/DescribeFolderContentsPaginator.js +4 -4
  52. package/dist-es/pagination/DescribeUsersPaginator.js +4 -4
  53. package/dist-es/protocols/Aws_restJson1.js +41 -41
  54. package/dist-types/runtimeConfig.native.d.ts +2 -2
  55. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  56. package/package.json +34 -34
@@ -18,7 +18,7 @@ const serializeAws_restJson1AbortDocumentVersionUploadCommand = async (input, co
18
18
  if (labelValue.length <= 0) {
19
19
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
20
20
  }
21
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
21
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
22
22
  }
23
23
  else {
24
24
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -28,7 +28,7 @@ const serializeAws_restJson1AbortDocumentVersionUploadCommand = async (input, co
28
28
  if (labelValue.length <= 0) {
29
29
  throw new Error("Empty value provided for input HTTP label: VersionId.");
30
30
  }
31
- resolvedPath = resolvedPath.replace("{VersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
31
+ resolvedPath = resolvedPath.replace("{VersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
32
32
  }
33
33
  else {
34
34
  throw new Error("No value provided for input HTTP label: VersionId.");
@@ -56,7 +56,7 @@ const serializeAws_restJson1ActivateUserCommand = async (input, context) => {
56
56
  if (labelValue.length <= 0) {
57
57
  throw new Error("Empty value provided for input HTTP label: UserId.");
58
58
  }
59
- resolvedPath = resolvedPath.replace("{UserId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
59
+ resolvedPath = resolvedPath.replace("{UserId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
60
60
  }
61
61
  else {
62
62
  throw new Error("No value provided for input HTTP label: UserId.");
@@ -86,7 +86,7 @@ const serializeAws_restJson1AddResourcePermissionsCommand = async (input, contex
86
86
  if (labelValue.length <= 0) {
87
87
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
88
88
  }
89
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
89
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
90
90
  }
91
91
  else {
92
92
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -124,7 +124,7 @@ const serializeAws_restJson1CreateCommentCommand = async (input, context) => {
124
124
  if (labelValue.length <= 0) {
125
125
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
126
126
  }
127
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
127
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
128
128
  }
129
129
  else {
130
130
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -134,7 +134,7 @@ const serializeAws_restJson1CreateCommentCommand = async (input, context) => {
134
134
  if (labelValue.length <= 0) {
135
135
  throw new Error("Empty value provided for input HTTP label: VersionId.");
136
136
  }
137
- resolvedPath = resolvedPath.replace("{VersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
137
+ resolvedPath = resolvedPath.replace("{VersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
138
138
  }
139
139
  else {
140
140
  throw new Error("No value provided for input HTTP label: VersionId.");
@@ -172,7 +172,7 @@ const serializeAws_restJson1CreateCustomMetadataCommand = async (input, context)
172
172
  if (labelValue.length <= 0) {
173
173
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
174
174
  }
175
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
175
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
176
176
  }
177
177
  else {
178
178
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -235,7 +235,7 @@ const serializeAws_restJson1CreateLabelsCommand = async (input, context) => {
235
235
  if (labelValue.length <= 0) {
236
236
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
237
237
  }
238
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
238
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
239
239
  }
240
240
  else {
241
241
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -268,7 +268,7 @@ const serializeAws_restJson1CreateNotificationSubscriptionCommand = async (input
268
268
  if (labelValue.length <= 0) {
269
269
  throw new Error("Empty value provided for input HTTP label: OrganizationId.");
270
270
  }
271
- resolvedPath = resolvedPath.replace("{OrganizationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
271
+ resolvedPath = resolvedPath.replace("{OrganizationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
272
272
  }
273
273
  else {
274
274
  throw new Error("No value provided for input HTTP label: OrganizationId.");
@@ -333,7 +333,7 @@ const serializeAws_restJson1DeactivateUserCommand = async (input, context) => {
333
333
  if (labelValue.length <= 0) {
334
334
  throw new Error("Empty value provided for input HTTP label: UserId.");
335
335
  }
336
- resolvedPath = resolvedPath.replace("{UserId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
336
+ resolvedPath = resolvedPath.replace("{UserId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
337
337
  }
338
338
  else {
339
339
  throw new Error("No value provided for input HTTP label: UserId.");
@@ -362,7 +362,7 @@ const serializeAws_restJson1DeleteCommentCommand = async (input, context) => {
362
362
  if (labelValue.length <= 0) {
363
363
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
364
364
  }
365
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
365
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
366
366
  }
367
367
  else {
368
368
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -372,7 +372,7 @@ const serializeAws_restJson1DeleteCommentCommand = async (input, context) => {
372
372
  if (labelValue.length <= 0) {
373
373
  throw new Error("Empty value provided for input HTTP label: VersionId.");
374
374
  }
375
- resolvedPath = resolvedPath.replace("{VersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
375
+ resolvedPath = resolvedPath.replace("{VersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
376
376
  }
377
377
  else {
378
378
  throw new Error("No value provided for input HTTP label: VersionId.");
@@ -382,7 +382,7 @@ const serializeAws_restJson1DeleteCommentCommand = async (input, context) => {
382
382
  if (labelValue.length <= 0) {
383
383
  throw new Error("Empty value provided for input HTTP label: CommentId.");
384
384
  }
385
- resolvedPath = resolvedPath.replace("{CommentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
385
+ resolvedPath = resolvedPath.replace("{CommentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
386
386
  }
387
387
  else {
388
388
  throw new Error("No value provided for input HTTP label: CommentId.");
@@ -411,7 +411,7 @@ const serializeAws_restJson1DeleteCustomMetadataCommand = async (input, context)
411
411
  if (labelValue.length <= 0) {
412
412
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
413
413
  }
414
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
414
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
415
415
  }
416
416
  else {
417
417
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -445,7 +445,7 @@ const serializeAws_restJson1DeleteDocumentCommand = async (input, context) => {
445
445
  if (labelValue.length <= 0) {
446
446
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
447
447
  }
448
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
448
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
449
449
  }
450
450
  else {
451
451
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -473,7 +473,7 @@ const serializeAws_restJson1DeleteFolderCommand = async (input, context) => {
473
473
  if (labelValue.length <= 0) {
474
474
  throw new Error("Empty value provided for input HTTP label: FolderId.");
475
475
  }
476
- resolvedPath = resolvedPath.replace("{FolderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
476
+ resolvedPath = resolvedPath.replace("{FolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
477
477
  }
478
478
  else {
479
479
  throw new Error("No value provided for input HTTP label: FolderId.");
@@ -501,7 +501,7 @@ const serializeAws_restJson1DeleteFolderContentsCommand = async (input, context)
501
501
  if (labelValue.length <= 0) {
502
502
  throw new Error("Empty value provided for input HTTP label: FolderId.");
503
503
  }
504
- resolvedPath = resolvedPath.replace("{FolderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
504
+ resolvedPath = resolvedPath.replace("{FolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
505
505
  }
506
506
  else {
507
507
  throw new Error("No value provided for input HTTP label: FolderId.");
@@ -529,7 +529,7 @@ const serializeAws_restJson1DeleteLabelsCommand = async (input, context) => {
529
529
  if (labelValue.length <= 0) {
530
530
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
531
531
  }
532
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
532
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
533
533
  }
534
534
  else {
535
535
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -561,7 +561,7 @@ const serializeAws_restJson1DeleteNotificationSubscriptionCommand = async (input
561
561
  if (labelValue.length <= 0) {
562
562
  throw new Error("Empty value provided for input HTTP label: SubscriptionId.");
563
563
  }
564
- resolvedPath = resolvedPath.replace("{SubscriptionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
564
+ resolvedPath = resolvedPath.replace("{SubscriptionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
565
565
  }
566
566
  else {
567
567
  throw new Error("No value provided for input HTTP label: SubscriptionId.");
@@ -571,7 +571,7 @@ const serializeAws_restJson1DeleteNotificationSubscriptionCommand = async (input
571
571
  if (labelValue.length <= 0) {
572
572
  throw new Error("Empty value provided for input HTTP label: OrganizationId.");
573
573
  }
574
- resolvedPath = resolvedPath.replace("{OrganizationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
574
+ resolvedPath = resolvedPath.replace("{OrganizationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
575
575
  }
576
576
  else {
577
577
  throw new Error("No value provided for input HTTP label: OrganizationId.");
@@ -599,7 +599,7 @@ const serializeAws_restJson1DeleteUserCommand = async (input, context) => {
599
599
  if (labelValue.length <= 0) {
600
600
  throw new Error("Empty value provided for input HTTP label: UserId.");
601
601
  }
602
- resolvedPath = resolvedPath.replace("{UserId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
602
+ resolvedPath = resolvedPath.replace("{UserId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
603
603
  }
604
604
  else {
605
605
  throw new Error("No value provided for input HTTP label: UserId.");
@@ -660,7 +660,7 @@ const serializeAws_restJson1DescribeCommentsCommand = async (input, context) =>
660
660
  if (labelValue.length <= 0) {
661
661
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
662
662
  }
663
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
663
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
664
664
  }
665
665
  else {
666
666
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -670,7 +670,7 @@ const serializeAws_restJson1DescribeCommentsCommand = async (input, context) =>
670
670
  if (labelValue.length <= 0) {
671
671
  throw new Error("Empty value provided for input HTTP label: VersionId.");
672
672
  }
673
- resolvedPath = resolvedPath.replace("{VersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
673
+ resolvedPath = resolvedPath.replace("{VersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
674
674
  }
675
675
  else {
676
676
  throw new Error("No value provided for input HTTP label: VersionId.");
@@ -703,7 +703,7 @@ const serializeAws_restJson1DescribeDocumentVersionsCommand = async (input, cont
703
703
  if (labelValue.length <= 0) {
704
704
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
705
705
  }
706
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
706
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
707
707
  }
708
708
  else {
709
709
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -738,7 +738,7 @@ const serializeAws_restJson1DescribeFolderContentsCommand = async (input, contex
738
738
  if (labelValue.length <= 0) {
739
739
  throw new Error("Empty value provided for input HTTP label: FolderId.");
740
740
  }
741
- resolvedPath = resolvedPath.replace("{FolderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
741
+ resolvedPath = resolvedPath.replace("{FolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
742
742
  }
743
743
  else {
744
744
  throw new Error("No value provided for input HTTP label: FolderId.");
@@ -799,7 +799,7 @@ const serializeAws_restJson1DescribeNotificationSubscriptionsCommand = async (in
799
799
  if (labelValue.length <= 0) {
800
800
  throw new Error("Empty value provided for input HTTP label: OrganizationId.");
801
801
  }
802
- resolvedPath = resolvedPath.replace("{OrganizationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
802
+ resolvedPath = resolvedPath.replace("{OrganizationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
803
803
  }
804
804
  else {
805
805
  throw new Error("No value provided for input HTTP label: OrganizationId.");
@@ -833,7 +833,7 @@ const serializeAws_restJson1DescribeResourcePermissionsCommand = async (input, c
833
833
  if (labelValue.length <= 0) {
834
834
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
835
835
  }
836
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
836
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
837
837
  }
838
838
  else {
839
839
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -938,7 +938,7 @@ const serializeAws_restJson1GetDocumentCommand = async (input, context) => {
938
938
  if (labelValue.length <= 0) {
939
939
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
940
940
  }
941
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
941
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
942
942
  }
943
943
  else {
944
944
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -970,7 +970,7 @@ const serializeAws_restJson1GetDocumentPathCommand = async (input, context) => {
970
970
  if (labelValue.length <= 0) {
971
971
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
972
972
  }
973
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
973
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
974
974
  }
975
975
  else {
976
976
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -1005,7 +1005,7 @@ const serializeAws_restJson1GetDocumentVersionCommand = async (input, context) =
1005
1005
  if (labelValue.length <= 0) {
1006
1006
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
1007
1007
  }
1008
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1008
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1009
1009
  }
1010
1010
  else {
1011
1011
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -1015,7 +1015,7 @@ const serializeAws_restJson1GetDocumentVersionCommand = async (input, context) =
1015
1015
  if (labelValue.length <= 0) {
1016
1016
  throw new Error("Empty value provided for input HTTP label: VersionId.");
1017
1017
  }
1018
- resolvedPath = resolvedPath.replace("{VersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1018
+ resolvedPath = resolvedPath.replace("{VersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1019
1019
  }
1020
1020
  else {
1021
1021
  throw new Error("No value provided for input HTTP label: VersionId.");
@@ -1048,7 +1048,7 @@ const serializeAws_restJson1GetFolderCommand = async (input, context) => {
1048
1048
  if (labelValue.length <= 0) {
1049
1049
  throw new Error("Empty value provided for input HTTP label: FolderId.");
1050
1050
  }
1051
- resolvedPath = resolvedPath.replace("{FolderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1051
+ resolvedPath = resolvedPath.replace("{FolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1052
1052
  }
1053
1053
  else {
1054
1054
  throw new Error("No value provided for input HTTP label: FolderId.");
@@ -1080,7 +1080,7 @@ const serializeAws_restJson1GetFolderPathCommand = async (input, context) => {
1080
1080
  if (labelValue.length <= 0) {
1081
1081
  throw new Error("Empty value provided for input HTTP label: FolderId.");
1082
1082
  }
1083
- resolvedPath = resolvedPath.replace("{FolderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1083
+ resolvedPath = resolvedPath.replace("{FolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1084
1084
  }
1085
1085
  else {
1086
1086
  throw new Error("No value provided for input HTTP label: FolderId.");
@@ -1176,7 +1176,7 @@ const serializeAws_restJson1RemoveAllResourcePermissionsCommand = async (input,
1176
1176
  if (labelValue.length <= 0) {
1177
1177
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
1178
1178
  }
1179
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1179
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1180
1180
  }
1181
1181
  else {
1182
1182
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -1205,7 +1205,7 @@ const serializeAws_restJson1RemoveResourcePermissionCommand = async (input, cont
1205
1205
  if (labelValue.length <= 0) {
1206
1206
  throw new Error("Empty value provided for input HTTP label: ResourceId.");
1207
1207
  }
1208
- resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1208
+ resolvedPath = resolvedPath.replace("{ResourceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1209
1209
  }
1210
1210
  else {
1211
1211
  throw new Error("No value provided for input HTTP label: ResourceId.");
@@ -1215,7 +1215,7 @@ const serializeAws_restJson1RemoveResourcePermissionCommand = async (input, cont
1215
1215
  if (labelValue.length <= 0) {
1216
1216
  throw new Error("Empty value provided for input HTTP label: PrincipalId.");
1217
1217
  }
1218
- resolvedPath = resolvedPath.replace("{PrincipalId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1218
+ resolvedPath = resolvedPath.replace("{PrincipalId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1219
1219
  }
1220
1220
  else {
1221
1221
  throw new Error("No value provided for input HTTP label: PrincipalId.");
@@ -1248,7 +1248,7 @@ const serializeAws_restJson1UpdateDocumentCommand = async (input, context) => {
1248
1248
  if (labelValue.length <= 0) {
1249
1249
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
1250
1250
  }
1251
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1251
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1252
1252
  }
1253
1253
  else {
1254
1254
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -1284,7 +1284,7 @@ const serializeAws_restJson1UpdateDocumentVersionCommand = async (input, context
1284
1284
  if (labelValue.length <= 0) {
1285
1285
  throw new Error("Empty value provided for input HTTP label: DocumentId.");
1286
1286
  }
1287
- resolvedPath = resolvedPath.replace("{DocumentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1287
+ resolvedPath = resolvedPath.replace("{DocumentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1288
1288
  }
1289
1289
  else {
1290
1290
  throw new Error("No value provided for input HTTP label: DocumentId.");
@@ -1294,7 +1294,7 @@ const serializeAws_restJson1UpdateDocumentVersionCommand = async (input, context
1294
1294
  if (labelValue.length <= 0) {
1295
1295
  throw new Error("Empty value provided for input HTTP label: VersionId.");
1296
1296
  }
1297
- resolvedPath = resolvedPath.replace("{VersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1297
+ resolvedPath = resolvedPath.replace("{VersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1298
1298
  }
1299
1299
  else {
1300
1300
  throw new Error("No value provided for input HTTP label: VersionId.");
@@ -1326,7 +1326,7 @@ const serializeAws_restJson1UpdateFolderCommand = async (input, context) => {
1326
1326
  if (labelValue.length <= 0) {
1327
1327
  throw new Error("Empty value provided for input HTTP label: FolderId.");
1328
1328
  }
1329
- resolvedPath = resolvedPath.replace("{FolderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1329
+ resolvedPath = resolvedPath.replace("{FolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1330
1330
  }
1331
1331
  else {
1332
1332
  throw new Error("No value provided for input HTTP label: FolderId.");
@@ -1361,7 +1361,7 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
1361
1361
  if (labelValue.length <= 0) {
1362
1362
  throw new Error("Empty value provided for input HTTP label: UserId.");
1363
1363
  }
1364
- resolvedPath = resolvedPath.replace("{UserId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1364
+ resolvedPath = resolvedPath.replace("{UserId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1365
1365
  }
1366
1366
  else {
1367
1367
  throw new Error("No value provided for input HTTP label: UserId.");
@@ -1434,7 +1434,7 @@ const deserializeAws_restJson1AbortDocumentVersionUploadCommandError = async (ou
1434
1434
  $fault: "client",
1435
1435
  $metadata: deserializeMetadata(output),
1436
1436
  });
1437
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1437
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1438
1438
  }
1439
1439
  };
1440
1440
  const deserializeAws_restJson1ActivateUserCommand = async (output, context) => {
@@ -1445,7 +1445,7 @@ const deserializeAws_restJson1ActivateUserCommand = async (output, context) => {
1445
1445
  $metadata: deserializeMetadata(output),
1446
1446
  User: undefined,
1447
1447
  };
1448
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1448
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1449
1449
  if (data.User !== undefined && data.User !== null) {
1450
1450
  contents.User = deserializeAws_restJson1User(data.User, context);
1451
1451
  }
@@ -1483,7 +1483,7 @@ const deserializeAws_restJson1ActivateUserCommandError = async (output, context)
1483
1483
  $fault: "client",
1484
1484
  $metadata: deserializeMetadata(output),
1485
1485
  });
1486
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1486
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1487
1487
  }
1488
1488
  };
1489
1489
  const deserializeAws_restJson1AddResourcePermissionsCommand = async (output, context) => {
@@ -1494,7 +1494,7 @@ const deserializeAws_restJson1AddResourcePermissionsCommand = async (output, con
1494
1494
  $metadata: deserializeMetadata(output),
1495
1495
  ShareResults: undefined,
1496
1496
  };
1497
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1497
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1498
1498
  if (data.ShareResults !== undefined && data.ShareResults !== null) {
1499
1499
  contents.ShareResults = deserializeAws_restJson1ShareResultsList(data.ShareResults, context);
1500
1500
  }
@@ -1529,7 +1529,7 @@ const deserializeAws_restJson1AddResourcePermissionsCommandError = async (output
1529
1529
  $fault: "client",
1530
1530
  $metadata: deserializeMetadata(output),
1531
1531
  });
1532
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1532
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1533
1533
  }
1534
1534
  };
1535
1535
  const deserializeAws_restJson1CreateCommentCommand = async (output, context) => {
@@ -1540,7 +1540,7 @@ const deserializeAws_restJson1CreateCommentCommand = async (output, context) =>
1540
1540
  $metadata: deserializeMetadata(output),
1541
1541
  Comment: undefined,
1542
1542
  };
1543
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1543
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1544
1544
  if (data.Comment !== undefined && data.Comment !== null) {
1545
1545
  contents.Comment = deserializeAws_restJson1Comment(data.Comment, context);
1546
1546
  }
@@ -1587,7 +1587,7 @@ const deserializeAws_restJson1CreateCommentCommandError = async (output, context
1587
1587
  $fault: "client",
1588
1588
  $metadata: deserializeMetadata(output),
1589
1589
  });
1590
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1590
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1591
1591
  }
1592
1592
  };
1593
1593
  const deserializeAws_restJson1CreateCustomMetadataCommand = async (output, context) => {
@@ -1638,7 +1638,7 @@ const deserializeAws_restJson1CreateCustomMetadataCommandError = async (output,
1638
1638
  $fault: "client",
1639
1639
  $metadata: deserializeMetadata(output),
1640
1640
  });
1641
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1641
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1642
1642
  }
1643
1643
  };
1644
1644
  const deserializeAws_restJson1CreateFolderCommand = async (output, context) => {
@@ -1649,7 +1649,7 @@ const deserializeAws_restJson1CreateFolderCommand = async (output, context) => {
1649
1649
  $metadata: deserializeMetadata(output),
1650
1650
  Metadata: undefined,
1651
1651
  };
1652
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1652
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1653
1653
  if (data.Metadata !== undefined && data.Metadata !== null) {
1654
1654
  contents.Metadata = deserializeAws_restJson1FolderMetadata(data.Metadata, context);
1655
1655
  }
@@ -1699,7 +1699,7 @@ const deserializeAws_restJson1CreateFolderCommandError = async (output, context)
1699
1699
  $fault: "client",
1700
1700
  $metadata: deserializeMetadata(output),
1701
1701
  });
1702
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1702
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1703
1703
  }
1704
1704
  };
1705
1705
  const deserializeAws_restJson1CreateLabelsCommand = async (output, context) => {
@@ -1747,7 +1747,7 @@ const deserializeAws_restJson1CreateLabelsCommandError = async (output, context)
1747
1747
  $fault: "client",
1748
1748
  $metadata: deserializeMetadata(output),
1749
1749
  });
1750
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1750
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1751
1751
  }
1752
1752
  };
1753
1753
  const deserializeAws_restJson1CreateNotificationSubscriptionCommand = async (output, context) => {
@@ -1758,7 +1758,7 @@ const deserializeAws_restJson1CreateNotificationSubscriptionCommand = async (out
1758
1758
  $metadata: deserializeMetadata(output),
1759
1759
  Subscription: undefined,
1760
1760
  };
1761
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1761
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1762
1762
  if (data.Subscription !== undefined && data.Subscription !== null) {
1763
1763
  contents.Subscription = deserializeAws_restJson1Subscription(data.Subscription, context);
1764
1764
  }
@@ -1790,7 +1790,7 @@ const deserializeAws_restJson1CreateNotificationSubscriptionCommandError = async
1790
1790
  $fault: "client",
1791
1791
  $metadata: deserializeMetadata(output),
1792
1792
  });
1793
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1793
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1794
1794
  }
1795
1795
  };
1796
1796
  const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
@@ -1801,7 +1801,7 @@ const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
1801
1801
  $metadata: deserializeMetadata(output),
1802
1802
  User: undefined,
1803
1803
  };
1804
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1804
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1805
1805
  if (data.User !== undefined && data.User !== null) {
1806
1806
  contents.User = deserializeAws_restJson1User(data.User, context);
1807
1807
  }
@@ -1839,7 +1839,7 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
1839
1839
  $fault: "client",
1840
1840
  $metadata: deserializeMetadata(output),
1841
1841
  });
1842
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1842
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1843
1843
  }
1844
1844
  };
1845
1845
  const deserializeAws_restJson1DeactivateUserCommand = async (output, context) => {
@@ -1884,7 +1884,7 @@ const deserializeAws_restJson1DeactivateUserCommandError = async (output, contex
1884
1884
  $fault: "client",
1885
1885
  $metadata: deserializeMetadata(output),
1886
1886
  });
1887
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1887
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1888
1888
  }
1889
1889
  };
1890
1890
  const deserializeAws_restJson1DeleteCommentCommand = async (output, context) => {
@@ -1935,7 +1935,7 @@ const deserializeAws_restJson1DeleteCommentCommandError = async (output, context
1935
1935
  $fault: "client",
1936
1936
  $metadata: deserializeMetadata(output),
1937
1937
  });
1938
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1938
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1939
1939
  }
1940
1940
  };
1941
1941
  const deserializeAws_restJson1DeleteCustomMetadataCommand = async (output, context) => {
@@ -1983,7 +1983,7 @@ const deserializeAws_restJson1DeleteCustomMetadataCommandError = async (output,
1983
1983
  $fault: "client",
1984
1984
  $metadata: deserializeMetadata(output),
1985
1985
  });
1986
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1986
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1987
1987
  }
1988
1988
  };
1989
1989
  const deserializeAws_restJson1DeleteDocumentCommand = async (output, context) => {
@@ -2037,7 +2037,7 @@ const deserializeAws_restJson1DeleteDocumentCommandError = async (output, contex
2037
2037
  $fault: "client",
2038
2038
  $metadata: deserializeMetadata(output),
2039
2039
  });
2040
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2040
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2041
2041
  }
2042
2042
  };
2043
2043
  const deserializeAws_restJson1DeleteFolderCommand = async (output, context) => {
@@ -2091,7 +2091,7 @@ const deserializeAws_restJson1DeleteFolderCommandError = async (output, context)
2091
2091
  $fault: "client",
2092
2092
  $metadata: deserializeMetadata(output),
2093
2093
  });
2094
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2094
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2095
2095
  }
2096
2096
  };
2097
2097
  const deserializeAws_restJson1DeleteFolderContentsCommand = async (output, context) => {
@@ -2142,7 +2142,7 @@ const deserializeAws_restJson1DeleteFolderContentsCommandError = async (output,
2142
2142
  $fault: "client",
2143
2143
  $metadata: deserializeMetadata(output),
2144
2144
  });
2145
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2145
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2146
2146
  }
2147
2147
  };
2148
2148
  const deserializeAws_restJson1DeleteLabelsCommand = async (output, context) => {
@@ -2187,7 +2187,7 @@ const deserializeAws_restJson1DeleteLabelsCommandError = async (output, context)
2187
2187
  $fault: "client",
2188
2188
  $metadata: deserializeMetadata(output),
2189
2189
  });
2190
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2190
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2191
2191
  }
2192
2192
  };
2193
2193
  const deserializeAws_restJson1DeleteNotificationSubscriptionCommand = async (output, context) => {
@@ -2229,7 +2229,7 @@ const deserializeAws_restJson1DeleteNotificationSubscriptionCommandError = async
2229
2229
  $fault: "client",
2230
2230
  $metadata: deserializeMetadata(output),
2231
2231
  });
2232
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2232
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2233
2233
  }
2234
2234
  };
2235
2235
  const deserializeAws_restJson1DeleteUserCommand = async (output, context) => {
@@ -2274,7 +2274,7 @@ const deserializeAws_restJson1DeleteUserCommandError = async (output, context) =
2274
2274
  $fault: "client",
2275
2275
  $metadata: deserializeMetadata(output),
2276
2276
  });
2277
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2277
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2278
2278
  }
2279
2279
  };
2280
2280
  const deserializeAws_restJson1DescribeActivitiesCommand = async (output, context) => {
@@ -2286,9 +2286,9 @@ const deserializeAws_restJson1DescribeActivitiesCommand = async (output, context
2286
2286
  Marker: undefined,
2287
2287
  UserActivities: undefined,
2288
2288
  };
2289
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2289
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2290
2290
  if (data.Marker !== undefined && data.Marker !== null) {
2291
- contents.Marker = smithy_client_1.expectString(data.Marker);
2291
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2292
2292
  }
2293
2293
  if (data.UserActivities !== undefined && data.UserActivities !== null) {
2294
2294
  contents.UserActivities = deserializeAws_restJson1UserActivities(data.UserActivities, context);
@@ -2327,7 +2327,7 @@ const deserializeAws_restJson1DescribeActivitiesCommandError = async (output, co
2327
2327
  $fault: "client",
2328
2328
  $metadata: deserializeMetadata(output),
2329
2329
  });
2330
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2330
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2331
2331
  }
2332
2332
  };
2333
2333
  const deserializeAws_restJson1DescribeCommentsCommand = async (output, context) => {
@@ -2339,12 +2339,12 @@ const deserializeAws_restJson1DescribeCommentsCommand = async (output, context)
2339
2339
  Comments: undefined,
2340
2340
  Marker: undefined,
2341
2341
  };
2342
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2342
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2343
2343
  if (data.Comments !== undefined && data.Comments !== null) {
2344
2344
  contents.Comments = deserializeAws_restJson1CommentList(data.Comments, context);
2345
2345
  }
2346
2346
  if (data.Marker !== undefined && data.Marker !== null) {
2347
- contents.Marker = smithy_client_1.expectString(data.Marker);
2347
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2348
2348
  }
2349
2349
  return Promise.resolve(contents);
2350
2350
  };
@@ -2383,7 +2383,7 @@ const deserializeAws_restJson1DescribeCommentsCommandError = async (output, cont
2383
2383
  $fault: "client",
2384
2384
  $metadata: deserializeMetadata(output),
2385
2385
  });
2386
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2386
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2387
2387
  }
2388
2388
  };
2389
2389
  const deserializeAws_restJson1DescribeDocumentVersionsCommand = async (output, context) => {
@@ -2395,12 +2395,12 @@ const deserializeAws_restJson1DescribeDocumentVersionsCommand = async (output, c
2395
2395
  DocumentVersions: undefined,
2396
2396
  Marker: undefined,
2397
2397
  };
2398
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2398
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2399
2399
  if (data.DocumentVersions !== undefined && data.DocumentVersions !== null) {
2400
2400
  contents.DocumentVersions = deserializeAws_restJson1DocumentVersionMetadataList(data.DocumentVersions, context);
2401
2401
  }
2402
2402
  if (data.Marker !== undefined && data.Marker !== null) {
2403
- contents.Marker = smithy_client_1.expectString(data.Marker);
2403
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2404
2404
  }
2405
2405
  return Promise.resolve(contents);
2406
2406
  };
@@ -2442,7 +2442,7 @@ const deserializeAws_restJson1DescribeDocumentVersionsCommandError = async (outp
2442
2442
  $fault: "client",
2443
2443
  $metadata: deserializeMetadata(output),
2444
2444
  });
2445
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2445
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2446
2446
  }
2447
2447
  };
2448
2448
  const deserializeAws_restJson1DescribeFolderContentsCommand = async (output, context) => {
@@ -2455,7 +2455,7 @@ const deserializeAws_restJson1DescribeFolderContentsCommand = async (output, con
2455
2455
  Folders: undefined,
2456
2456
  Marker: undefined,
2457
2457
  };
2458
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2458
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2459
2459
  if (data.Documents !== undefined && data.Documents !== null) {
2460
2460
  contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
2461
2461
  }
@@ -2463,7 +2463,7 @@ const deserializeAws_restJson1DescribeFolderContentsCommand = async (output, con
2463
2463
  contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
2464
2464
  }
2465
2465
  if (data.Marker !== undefined && data.Marker !== null) {
2466
- contents.Marker = smithy_client_1.expectString(data.Marker);
2466
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2467
2467
  }
2468
2468
  return Promise.resolve(contents);
2469
2469
  };
@@ -2502,7 +2502,7 @@ const deserializeAws_restJson1DescribeFolderContentsCommandError = async (output
2502
2502
  $fault: "client",
2503
2503
  $metadata: deserializeMetadata(output),
2504
2504
  });
2505
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2505
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2506
2506
  }
2507
2507
  };
2508
2508
  const deserializeAws_restJson1DescribeGroupsCommand = async (output, context) => {
@@ -2514,12 +2514,12 @@ const deserializeAws_restJson1DescribeGroupsCommand = async (output, context) =>
2514
2514
  Groups: undefined,
2515
2515
  Marker: undefined,
2516
2516
  };
2517
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2517
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2518
2518
  if (data.Groups !== undefined && data.Groups !== null) {
2519
2519
  contents.Groups = deserializeAws_restJson1GroupMetadataList(data.Groups, context);
2520
2520
  }
2521
2521
  if (data.Marker !== undefined && data.Marker !== null) {
2522
- contents.Marker = smithy_client_1.expectString(data.Marker);
2522
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2523
2523
  }
2524
2524
  return Promise.resolve(contents);
2525
2525
  };
@@ -2552,7 +2552,7 @@ const deserializeAws_restJson1DescribeGroupsCommandError = async (output, contex
2552
2552
  $fault: "client",
2553
2553
  $metadata: deserializeMetadata(output),
2554
2554
  });
2555
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2555
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2556
2556
  }
2557
2557
  };
2558
2558
  const deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = async (output, context) => {
@@ -2564,9 +2564,9 @@ const deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = async (
2564
2564
  Marker: undefined,
2565
2565
  Subscriptions: undefined,
2566
2566
  };
2567
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2567
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2568
2568
  if (data.Marker !== undefined && data.Marker !== null) {
2569
- contents.Marker = smithy_client_1.expectString(data.Marker);
2569
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2570
2570
  }
2571
2571
  if (data.Subscriptions !== undefined && data.Subscriptions !== null) {
2572
2572
  contents.Subscriptions = deserializeAws_restJson1SubscriptionList(data.Subscriptions, context);
@@ -2599,7 +2599,7 @@ const deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError = as
2599
2599
  $fault: "client",
2600
2600
  $metadata: deserializeMetadata(output),
2601
2601
  });
2602
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2602
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2603
2603
  }
2604
2604
  };
2605
2605
  const deserializeAws_restJson1DescribeResourcePermissionsCommand = async (output, context) => {
@@ -2611,9 +2611,9 @@ const deserializeAws_restJson1DescribeResourcePermissionsCommand = async (output
2611
2611
  Marker: undefined,
2612
2612
  Principals: undefined,
2613
2613
  };
2614
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2614
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2615
2615
  if (data.Marker !== undefined && data.Marker !== null) {
2616
- contents.Marker = smithy_client_1.expectString(data.Marker);
2616
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2617
2617
  }
2618
2618
  if (data.Principals !== undefined && data.Principals !== null) {
2619
2619
  contents.Principals = deserializeAws_restJson1PrincipalList(data.Principals, context);
@@ -2649,7 +2649,7 @@ const deserializeAws_restJson1DescribeResourcePermissionsCommandError = async (o
2649
2649
  $fault: "client",
2650
2650
  $metadata: deserializeMetadata(output),
2651
2651
  });
2652
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2652
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2653
2653
  }
2654
2654
  };
2655
2655
  const deserializeAws_restJson1DescribeRootFoldersCommand = async (output, context) => {
@@ -2661,12 +2661,12 @@ const deserializeAws_restJson1DescribeRootFoldersCommand = async (output, contex
2661
2661
  Folders: undefined,
2662
2662
  Marker: undefined,
2663
2663
  };
2664
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2664
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2665
2665
  if (data.Folders !== undefined && data.Folders !== null) {
2666
2666
  contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
2667
2667
  }
2668
2668
  if (data.Marker !== undefined && data.Marker !== null) {
2669
- contents.Marker = smithy_client_1.expectString(data.Marker);
2669
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2670
2670
  }
2671
2671
  return Promise.resolve(contents);
2672
2672
  };
@@ -2702,7 +2702,7 @@ const deserializeAws_restJson1DescribeRootFoldersCommandError = async (output, c
2702
2702
  $fault: "client",
2703
2703
  $metadata: deserializeMetadata(output),
2704
2704
  });
2705
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2705
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2706
2706
  }
2707
2707
  };
2708
2708
  const deserializeAws_restJson1DescribeUsersCommand = async (output, context) => {
@@ -2715,12 +2715,12 @@ const deserializeAws_restJson1DescribeUsersCommand = async (output, context) =>
2715
2715
  TotalNumberOfUsers: undefined,
2716
2716
  Users: undefined,
2717
2717
  };
2718
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2718
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2719
2719
  if (data.Marker !== undefined && data.Marker !== null) {
2720
- contents.Marker = smithy_client_1.expectString(data.Marker);
2720
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
2721
2721
  }
2722
2722
  if (data.TotalNumberOfUsers !== undefined && data.TotalNumberOfUsers !== null) {
2723
- contents.TotalNumberOfUsers = smithy_client_1.expectLong(data.TotalNumberOfUsers);
2723
+ contents.TotalNumberOfUsers = (0, smithy_client_1.expectLong)(data.TotalNumberOfUsers);
2724
2724
  }
2725
2725
  if (data.Users !== undefined && data.Users !== null) {
2726
2726
  contents.Users = deserializeAws_restJson1OrganizationUserList(data.Users, context);
@@ -2765,7 +2765,7 @@ const deserializeAws_restJson1DescribeUsersCommandError = async (output, context
2765
2765
  $fault: "client",
2766
2766
  $metadata: deserializeMetadata(output),
2767
2767
  });
2768
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2768
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2769
2769
  }
2770
2770
  };
2771
2771
  const deserializeAws_restJson1GetCurrentUserCommand = async (output, context) => {
@@ -2776,7 +2776,7 @@ const deserializeAws_restJson1GetCurrentUserCommand = async (output, context) =>
2776
2776
  $metadata: deserializeMetadata(output),
2777
2777
  User: undefined,
2778
2778
  };
2779
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2779
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2780
2780
  if (data.User !== undefined && data.User !== null) {
2781
2781
  contents.User = deserializeAws_restJson1User(data.User, context);
2782
2782
  }
@@ -2814,7 +2814,7 @@ const deserializeAws_restJson1GetCurrentUserCommandError = async (output, contex
2814
2814
  $fault: "client",
2815
2815
  $metadata: deserializeMetadata(output),
2816
2816
  });
2817
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2817
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2818
2818
  }
2819
2819
  };
2820
2820
  const deserializeAws_restJson1GetDocumentCommand = async (output, context) => {
@@ -2826,7 +2826,7 @@ const deserializeAws_restJson1GetDocumentCommand = async (output, context) => {
2826
2826
  CustomMetadata: undefined,
2827
2827
  Metadata: undefined,
2828
2828
  };
2829
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2829
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2830
2830
  if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
2831
2831
  contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
2832
2832
  }
@@ -2873,7 +2873,7 @@ const deserializeAws_restJson1GetDocumentCommandError = async (output, context)
2873
2873
  $fault: "client",
2874
2874
  $metadata: deserializeMetadata(output),
2875
2875
  });
2876
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2876
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2877
2877
  }
2878
2878
  };
2879
2879
  const deserializeAws_restJson1GetDocumentPathCommand = async (output, context) => {
@@ -2884,7 +2884,7 @@ const deserializeAws_restJson1GetDocumentPathCommand = async (output, context) =
2884
2884
  $metadata: deserializeMetadata(output),
2885
2885
  Path: undefined,
2886
2886
  };
2887
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2887
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2888
2888
  if (data.Path !== undefined && data.Path !== null) {
2889
2889
  contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
2890
2890
  }
@@ -2922,7 +2922,7 @@ const deserializeAws_restJson1GetDocumentPathCommandError = async (output, conte
2922
2922
  $fault: "client",
2923
2923
  $metadata: deserializeMetadata(output),
2924
2924
  });
2925
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2925
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2926
2926
  }
2927
2927
  };
2928
2928
  const deserializeAws_restJson1GetDocumentVersionCommand = async (output, context) => {
@@ -2934,7 +2934,7 @@ const deserializeAws_restJson1GetDocumentVersionCommand = async (output, context
2934
2934
  CustomMetadata: undefined,
2935
2935
  Metadata: undefined,
2936
2936
  };
2937
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2937
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2938
2938
  if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
2939
2939
  contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
2940
2940
  }
@@ -2981,7 +2981,7 @@ const deserializeAws_restJson1GetDocumentVersionCommandError = async (output, co
2981
2981
  $fault: "client",
2982
2982
  $metadata: deserializeMetadata(output),
2983
2983
  });
2984
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2984
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2985
2985
  }
2986
2986
  };
2987
2987
  const deserializeAws_restJson1GetFolderCommand = async (output, context) => {
@@ -2993,7 +2993,7 @@ const deserializeAws_restJson1GetFolderCommand = async (output, context) => {
2993
2993
  CustomMetadata: undefined,
2994
2994
  Metadata: undefined,
2995
2995
  };
2996
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2996
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2997
2997
  if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
2998
2998
  contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
2999
2999
  }
@@ -3040,7 +3040,7 @@ const deserializeAws_restJson1GetFolderCommandError = async (output, context) =>
3040
3040
  $fault: "client",
3041
3041
  $metadata: deserializeMetadata(output),
3042
3042
  });
3043
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3043
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3044
3044
  }
3045
3045
  };
3046
3046
  const deserializeAws_restJson1GetFolderPathCommand = async (output, context) => {
@@ -3051,7 +3051,7 @@ const deserializeAws_restJson1GetFolderPathCommand = async (output, context) =>
3051
3051
  $metadata: deserializeMetadata(output),
3052
3052
  Path: undefined,
3053
3053
  };
3054
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3054
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3055
3055
  if (data.Path !== undefined && data.Path !== null) {
3056
3056
  contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
3057
3057
  }
@@ -3089,7 +3089,7 @@ const deserializeAws_restJson1GetFolderPathCommandError = async (output, context
3089
3089
  $fault: "client",
3090
3090
  $metadata: deserializeMetadata(output),
3091
3091
  });
3092
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3092
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3093
3093
  }
3094
3094
  };
3095
3095
  const deserializeAws_restJson1GetResourcesCommand = async (output, context) => {
@@ -3102,7 +3102,7 @@ const deserializeAws_restJson1GetResourcesCommand = async (output, context) => {
3102
3102
  Folders: undefined,
3103
3103
  Marker: undefined,
3104
3104
  };
3105
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3105
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3106
3106
  if (data.Documents !== undefined && data.Documents !== null) {
3107
3107
  contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
3108
3108
  }
@@ -3110,7 +3110,7 @@ const deserializeAws_restJson1GetResourcesCommand = async (output, context) => {
3110
3110
  contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
3111
3111
  }
3112
3112
  if (data.Marker !== undefined && data.Marker !== null) {
3113
- contents.Marker = smithy_client_1.expectString(data.Marker);
3113
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
3114
3114
  }
3115
3115
  return Promise.resolve(contents);
3116
3116
  };
@@ -3146,7 +3146,7 @@ const deserializeAws_restJson1GetResourcesCommandError = async (output, context)
3146
3146
  $fault: "client",
3147
3147
  $metadata: deserializeMetadata(output),
3148
3148
  });
3149
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3149
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3150
3150
  }
3151
3151
  };
3152
3152
  const deserializeAws_restJson1InitiateDocumentVersionUploadCommand = async (output, context) => {
@@ -3158,7 +3158,7 @@ const deserializeAws_restJson1InitiateDocumentVersionUploadCommand = async (outp
3158
3158
  Metadata: undefined,
3159
3159
  UploadMetadata: undefined,
3160
3160
  };
3161
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3161
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3162
3162
  if (data.Metadata !== undefined && data.Metadata !== null) {
3163
3163
  contents.Metadata = deserializeAws_restJson1DocumentMetadata(data.Metadata, context);
3164
3164
  }
@@ -3217,7 +3217,7 @@ const deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = async
3217
3217
  $fault: "client",
3218
3218
  $metadata: deserializeMetadata(output),
3219
3219
  });
3220
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3220
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3221
3221
  }
3222
3222
  };
3223
3223
  const deserializeAws_restJson1RemoveAllResourcePermissionsCommand = async (output, context) => {
@@ -3259,7 +3259,7 @@ const deserializeAws_restJson1RemoveAllResourcePermissionsCommandError = async (
3259
3259
  $fault: "client",
3260
3260
  $metadata: deserializeMetadata(output),
3261
3261
  });
3262
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3262
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3263
3263
  }
3264
3264
  };
3265
3265
  const deserializeAws_restJson1RemoveResourcePermissionCommand = async (output, context) => {
@@ -3301,7 +3301,7 @@ const deserializeAws_restJson1RemoveResourcePermissionCommandError = async (outp
3301
3301
  $fault: "client",
3302
3302
  $metadata: deserializeMetadata(output),
3303
3303
  });
3304
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3304
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3305
3305
  }
3306
3306
  };
3307
3307
  const deserializeAws_restJson1UpdateDocumentCommand = async (output, context) => {
@@ -3361,7 +3361,7 @@ const deserializeAws_restJson1UpdateDocumentCommandError = async (output, contex
3361
3361
  $fault: "client",
3362
3362
  $metadata: deserializeMetadata(output),
3363
3363
  });
3364
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3364
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3365
3365
  }
3366
3366
  };
3367
3367
  const deserializeAws_restJson1UpdateDocumentVersionCommand = async (output, context) => {
@@ -3415,7 +3415,7 @@ const deserializeAws_restJson1UpdateDocumentVersionCommandError = async (output,
3415
3415
  $fault: "client",
3416
3416
  $metadata: deserializeMetadata(output),
3417
3417
  });
3418
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3418
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3419
3419
  }
3420
3420
  };
3421
3421
  const deserializeAws_restJson1UpdateFolderCommand = async (output, context) => {
@@ -3475,7 +3475,7 @@ const deserializeAws_restJson1UpdateFolderCommandError = async (output, context)
3475
3475
  $fault: "client",
3476
3476
  $metadata: deserializeMetadata(output),
3477
3477
  });
3478
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3478
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3479
3479
  }
3480
3480
  };
3481
3481
  const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
@@ -3486,7 +3486,7 @@ const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
3486
3486
  $metadata: deserializeMetadata(output),
3487
3487
  User: undefined,
3488
3488
  };
3489
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3489
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3490
3490
  if (data.User !== undefined && data.User !== null) {
3491
3491
  contents.User = deserializeAws_restJson1User(data.User, context);
3492
3492
  }
@@ -3533,95 +3533,95 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
3533
3533
  $fault: "client",
3534
3534
  $metadata: deserializeMetadata(output),
3535
3535
  });
3536
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3536
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3537
3537
  }
3538
3538
  };
3539
3539
  const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
3540
3540
  const contents = {};
3541
3541
  const data = parsedOutput.body;
3542
3542
  if (data.Message !== undefined && data.Message !== null) {
3543
- contents.Message = smithy_client_1.expectString(data.Message);
3543
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3544
3544
  }
3545
3545
  const exception = new models_0_1.ConcurrentModificationException({
3546
3546
  $metadata: deserializeMetadata(parsedOutput),
3547
3547
  ...contents,
3548
3548
  });
3549
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3549
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3550
3550
  };
3551
3551
  const deserializeAws_restJson1ConflictingOperationExceptionResponse = async (parsedOutput, context) => {
3552
3552
  const contents = {};
3553
3553
  const data = parsedOutput.body;
3554
3554
  if (data.Message !== undefined && data.Message !== null) {
3555
- contents.Message = smithy_client_1.expectString(data.Message);
3555
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3556
3556
  }
3557
3557
  const exception = new models_0_1.ConflictingOperationException({
3558
3558
  $metadata: deserializeMetadata(parsedOutput),
3559
3559
  ...contents,
3560
3560
  });
3561
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3561
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3562
3562
  };
3563
3563
  const deserializeAws_restJson1CustomMetadataLimitExceededExceptionResponse = async (parsedOutput, context) => {
3564
3564
  const contents = {};
3565
3565
  const data = parsedOutput.body;
3566
3566
  if (data.Message !== undefined && data.Message !== null) {
3567
- contents.Message = smithy_client_1.expectString(data.Message);
3567
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3568
3568
  }
3569
3569
  const exception = new models_0_1.CustomMetadataLimitExceededException({
3570
3570
  $metadata: deserializeMetadata(parsedOutput),
3571
3571
  ...contents,
3572
3572
  });
3573
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3573
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3574
3574
  };
3575
3575
  const deserializeAws_restJson1DeactivatingLastSystemUserExceptionResponse = async (parsedOutput, context) => {
3576
3576
  const contents = {};
3577
3577
  const data = parsedOutput.body;
3578
3578
  if (data.Code !== undefined && data.Code !== null) {
3579
- contents.Code = smithy_client_1.expectString(data.Code);
3579
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
3580
3580
  }
3581
3581
  if (data.Message !== undefined && data.Message !== null) {
3582
- contents.Message = smithy_client_1.expectString(data.Message);
3582
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3583
3583
  }
3584
3584
  const exception = new models_0_1.DeactivatingLastSystemUserException({
3585
3585
  $metadata: deserializeMetadata(parsedOutput),
3586
3586
  ...contents,
3587
3587
  });
3588
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3588
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3589
3589
  };
3590
3590
  const deserializeAws_restJson1DocumentLockedForCommentsExceptionResponse = async (parsedOutput, context) => {
3591
3591
  const contents = {};
3592
3592
  const data = parsedOutput.body;
3593
3593
  if (data.Message !== undefined && data.Message !== null) {
3594
- contents.Message = smithy_client_1.expectString(data.Message);
3594
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3595
3595
  }
3596
3596
  const exception = new models_0_1.DocumentLockedForCommentsException({
3597
3597
  $metadata: deserializeMetadata(parsedOutput),
3598
3598
  ...contents,
3599
3599
  });
3600
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3600
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3601
3601
  };
3602
3602
  const deserializeAws_restJson1DraftUploadOutOfSyncExceptionResponse = async (parsedOutput, context) => {
3603
3603
  const contents = {};
3604
3604
  const data = parsedOutput.body;
3605
3605
  if (data.Message !== undefined && data.Message !== null) {
3606
- contents.Message = smithy_client_1.expectString(data.Message);
3606
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3607
3607
  }
3608
3608
  const exception = new models_0_1.DraftUploadOutOfSyncException({
3609
3609
  $metadata: deserializeMetadata(parsedOutput),
3610
3610
  ...contents,
3611
3611
  });
3612
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3612
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3613
3613
  };
3614
3614
  const deserializeAws_restJson1EntityAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
3615
3615
  const contents = {};
3616
3616
  const data = parsedOutput.body;
3617
3617
  if (data.Message !== undefined && data.Message !== null) {
3618
- contents.Message = smithy_client_1.expectString(data.Message);
3618
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3619
3619
  }
3620
3620
  const exception = new models_0_1.EntityAlreadyExistsException({
3621
3621
  $metadata: deserializeMetadata(parsedOutput),
3622
3622
  ...contents,
3623
3623
  });
3624
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3624
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3625
3625
  };
3626
3626
  const deserializeAws_restJson1EntityNotExistsExceptionResponse = async (parsedOutput, context) => {
3627
3627
  const contents = {};
@@ -3630,220 +3630,220 @@ const deserializeAws_restJson1EntityNotExistsExceptionResponse = async (parsedOu
3630
3630
  contents.EntityIds = deserializeAws_restJson1EntityIdList(data.EntityIds, context);
3631
3631
  }
3632
3632
  if (data.Message !== undefined && data.Message !== null) {
3633
- contents.Message = smithy_client_1.expectString(data.Message);
3633
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3634
3634
  }
3635
3635
  const exception = new models_0_1.EntityNotExistsException({
3636
3636
  $metadata: deserializeMetadata(parsedOutput),
3637
3637
  ...contents,
3638
3638
  });
3639
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3639
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3640
3640
  };
3641
3641
  const deserializeAws_restJson1FailedDependencyExceptionResponse = async (parsedOutput, context) => {
3642
3642
  const contents = {};
3643
3643
  const data = parsedOutput.body;
3644
3644
  if (data.Message !== undefined && data.Message !== null) {
3645
- contents.Message = smithy_client_1.expectString(data.Message);
3645
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3646
3646
  }
3647
3647
  const exception = new models_0_1.FailedDependencyException({
3648
3648
  $metadata: deserializeMetadata(parsedOutput),
3649
3649
  ...contents,
3650
3650
  });
3651
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3651
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3652
3652
  };
3653
3653
  const deserializeAws_restJson1IllegalUserStateExceptionResponse = async (parsedOutput, context) => {
3654
3654
  const contents = {};
3655
3655
  const data = parsedOutput.body;
3656
3656
  if (data.Message !== undefined && data.Message !== null) {
3657
- contents.Message = smithy_client_1.expectString(data.Message);
3657
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3658
3658
  }
3659
3659
  const exception = new models_0_1.IllegalUserStateException({
3660
3660
  $metadata: deserializeMetadata(parsedOutput),
3661
3661
  ...contents,
3662
3662
  });
3663
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3663
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3664
3664
  };
3665
3665
  const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
3666
3666
  const contents = {};
3667
3667
  const data = parsedOutput.body;
3668
3668
  if (data.Message !== undefined && data.Message !== null) {
3669
- contents.Message = smithy_client_1.expectString(data.Message);
3669
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3670
3670
  }
3671
3671
  const exception = new models_0_1.InvalidArgumentException({
3672
3672
  $metadata: deserializeMetadata(parsedOutput),
3673
3673
  ...contents,
3674
3674
  });
3675
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3675
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3676
3676
  };
3677
3677
  const deserializeAws_restJson1InvalidCommentOperationExceptionResponse = async (parsedOutput, context) => {
3678
3678
  const contents = {};
3679
3679
  const data = parsedOutput.body;
3680
3680
  if (data.Message !== undefined && data.Message !== null) {
3681
- contents.Message = smithy_client_1.expectString(data.Message);
3681
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3682
3682
  }
3683
3683
  const exception = new models_0_1.InvalidCommentOperationException({
3684
3684
  $metadata: deserializeMetadata(parsedOutput),
3685
3685
  ...contents,
3686
3686
  });
3687
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3687
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3688
3688
  };
3689
3689
  const deserializeAws_restJson1InvalidOperationExceptionResponse = async (parsedOutput, context) => {
3690
3690
  const contents = {};
3691
3691
  const data = parsedOutput.body;
3692
3692
  if (data.Message !== undefined && data.Message !== null) {
3693
- contents.Message = smithy_client_1.expectString(data.Message);
3693
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3694
3694
  }
3695
3695
  const exception = new models_0_1.InvalidOperationException({
3696
3696
  $metadata: deserializeMetadata(parsedOutput),
3697
3697
  ...contents,
3698
3698
  });
3699
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3699
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3700
3700
  };
3701
3701
  const deserializeAws_restJson1InvalidPasswordExceptionResponse = async (parsedOutput, context) => {
3702
3702
  const contents = {};
3703
3703
  const data = parsedOutput.body;
3704
3704
  if (data.Message !== undefined && data.Message !== null) {
3705
- contents.Message = smithy_client_1.expectString(data.Message);
3705
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3706
3706
  }
3707
3707
  const exception = new models_0_1.InvalidPasswordException({
3708
3708
  $metadata: deserializeMetadata(parsedOutput),
3709
3709
  ...contents,
3710
3710
  });
3711
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3711
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3712
3712
  };
3713
3713
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
3714
3714
  const contents = {};
3715
3715
  const data = parsedOutput.body;
3716
3716
  if (data.Message !== undefined && data.Message !== null) {
3717
- contents.Message = smithy_client_1.expectString(data.Message);
3717
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3718
3718
  }
3719
3719
  const exception = new models_0_1.LimitExceededException({
3720
3720
  $metadata: deserializeMetadata(parsedOutput),
3721
3721
  ...contents,
3722
3722
  });
3723
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3723
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3724
3724
  };
3725
3725
  const deserializeAws_restJson1ProhibitedStateExceptionResponse = async (parsedOutput, context) => {
3726
3726
  const contents = {};
3727
3727
  const data = parsedOutput.body;
3728
3728
  if (data.Message !== undefined && data.Message !== null) {
3729
- contents.Message = smithy_client_1.expectString(data.Message);
3729
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3730
3730
  }
3731
3731
  const exception = new models_0_1.ProhibitedStateException({
3732
3732
  $metadata: deserializeMetadata(parsedOutput),
3733
3733
  ...contents,
3734
3734
  });
3735
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3735
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3736
3736
  };
3737
3737
  const deserializeAws_restJson1RequestedEntityTooLargeExceptionResponse = async (parsedOutput, context) => {
3738
3738
  const contents = {};
3739
3739
  const data = parsedOutput.body;
3740
3740
  if (data.Message !== undefined && data.Message !== null) {
3741
- contents.Message = smithy_client_1.expectString(data.Message);
3741
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3742
3742
  }
3743
3743
  const exception = new models_0_1.RequestedEntityTooLargeException({
3744
3744
  $metadata: deserializeMetadata(parsedOutput),
3745
3745
  ...contents,
3746
3746
  });
3747
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3747
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3748
3748
  };
3749
3749
  const deserializeAws_restJson1ResourceAlreadyCheckedOutExceptionResponse = async (parsedOutput, context) => {
3750
3750
  const contents = {};
3751
3751
  const data = parsedOutput.body;
3752
3752
  if (data.Message !== undefined && data.Message !== null) {
3753
- contents.Message = smithy_client_1.expectString(data.Message);
3753
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3754
3754
  }
3755
3755
  const exception = new models_0_1.ResourceAlreadyCheckedOutException({
3756
3756
  $metadata: deserializeMetadata(parsedOutput),
3757
3757
  ...contents,
3758
3758
  });
3759
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3759
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3760
3760
  };
3761
3761
  const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
3762
3762
  const contents = {};
3763
3763
  const data = parsedOutput.body;
3764
3764
  if (data.Message !== undefined && data.Message !== null) {
3765
- contents.Message = smithy_client_1.expectString(data.Message);
3765
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3766
3766
  }
3767
3767
  const exception = new models_0_1.ServiceUnavailableException({
3768
3768
  $metadata: deserializeMetadata(parsedOutput),
3769
3769
  ...contents,
3770
3770
  });
3771
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3771
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3772
3772
  };
3773
3773
  const deserializeAws_restJson1StorageLimitExceededExceptionResponse = async (parsedOutput, context) => {
3774
3774
  const contents = {};
3775
3775
  const data = parsedOutput.body;
3776
3776
  if (data.Message !== undefined && data.Message !== null) {
3777
- contents.Message = smithy_client_1.expectString(data.Message);
3777
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3778
3778
  }
3779
3779
  const exception = new models_0_1.StorageLimitExceededException({
3780
3780
  $metadata: deserializeMetadata(parsedOutput),
3781
3781
  ...contents,
3782
3782
  });
3783
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3783
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3784
3784
  };
3785
3785
  const deserializeAws_restJson1StorageLimitWillExceedExceptionResponse = async (parsedOutput, context) => {
3786
3786
  const contents = {};
3787
3787
  const data = parsedOutput.body;
3788
3788
  if (data.Message !== undefined && data.Message !== null) {
3789
- contents.Message = smithy_client_1.expectString(data.Message);
3789
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3790
3790
  }
3791
3791
  const exception = new models_0_1.StorageLimitWillExceedException({
3792
3792
  $metadata: deserializeMetadata(parsedOutput),
3793
3793
  ...contents,
3794
3794
  });
3795
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3795
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3796
3796
  };
3797
3797
  const deserializeAws_restJson1TooManyLabelsExceptionResponse = async (parsedOutput, context) => {
3798
3798
  const contents = {};
3799
3799
  const data = parsedOutput.body;
3800
3800
  if (data.Message !== undefined && data.Message !== null) {
3801
- contents.Message = smithy_client_1.expectString(data.Message);
3801
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3802
3802
  }
3803
3803
  const exception = new models_0_1.TooManyLabelsException({
3804
3804
  $metadata: deserializeMetadata(parsedOutput),
3805
3805
  ...contents,
3806
3806
  });
3807
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3807
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3808
3808
  };
3809
3809
  const deserializeAws_restJson1TooManySubscriptionsExceptionResponse = async (parsedOutput, context) => {
3810
3810
  const contents = {};
3811
3811
  const data = parsedOutput.body;
3812
3812
  if (data.Message !== undefined && data.Message !== null) {
3813
- contents.Message = smithy_client_1.expectString(data.Message);
3813
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3814
3814
  }
3815
3815
  const exception = new models_0_1.TooManySubscriptionsException({
3816
3816
  $metadata: deserializeMetadata(parsedOutput),
3817
3817
  ...contents,
3818
3818
  });
3819
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3819
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3820
3820
  };
3821
3821
  const deserializeAws_restJson1UnauthorizedOperationExceptionResponse = async (parsedOutput, context) => {
3822
3822
  const contents = {};
3823
3823
  const data = parsedOutput.body;
3824
3824
  if (data.Code !== undefined && data.Code !== null) {
3825
- contents.Code = smithy_client_1.expectString(data.Code);
3825
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
3826
3826
  }
3827
3827
  if (data.Message !== undefined && data.Message !== null) {
3828
- contents.Message = smithy_client_1.expectString(data.Message);
3828
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3829
3829
  }
3830
3830
  const exception = new models_0_1.UnauthorizedOperationException({
3831
3831
  $metadata: deserializeMetadata(parsedOutput),
3832
3832
  ...contents,
3833
3833
  });
3834
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3834
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3835
3835
  };
3836
3836
  const deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse = async (parsedOutput, context) => {
3837
3837
  const contents = {};
3838
3838
  const data = parsedOutput.body;
3839
3839
  if (data.Message !== undefined && data.Message !== null) {
3840
- contents.Message = smithy_client_1.expectString(data.Message);
3840
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
3841
3841
  }
3842
3842
  const exception = new models_0_1.UnauthorizedResourceAccessException({
3843
3843
  $metadata: deserializeMetadata(parsedOutput),
3844
3844
  ...contents,
3845
3845
  });
3846
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3846
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3847
3847
  };
3848
3848
  const serializeAws_restJson1CustomMetadataMap = (input, context) => {
3849
3849
  return Object.entries(input).reduce((acc, [key, value]) => {
@@ -3904,8 +3904,8 @@ const deserializeAws_restJson1Activity = (output, context) => {
3904
3904
  Initiator: output.Initiator !== undefined && output.Initiator !== null
3905
3905
  ? deserializeAws_restJson1UserMetadata(output.Initiator, context)
3906
3906
  : undefined,
3907
- IsIndirectActivity: smithy_client_1.expectBoolean(output.IsIndirectActivity),
3908
- OrganizationId: smithy_client_1.expectString(output.OrganizationId),
3907
+ IsIndirectActivity: (0, smithy_client_1.expectBoolean)(output.IsIndirectActivity),
3908
+ OrganizationId: (0, smithy_client_1.expectString)(output.OrganizationId),
3909
3909
  OriginalParent: output.OriginalParent !== undefined && output.OriginalParent !== null
3910
3910
  ? deserializeAws_restJson1ResourceMetadata(output.OriginalParent, context)
3911
3911
  : undefined,
@@ -3916,26 +3916,26 @@ const deserializeAws_restJson1Activity = (output, context) => {
3916
3916
  ? deserializeAws_restJson1ResourceMetadata(output.ResourceMetadata, context)
3917
3917
  : undefined,
3918
3918
  TimeStamp: output.TimeStamp !== undefined && output.TimeStamp !== null
3919
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TimeStamp)))
3919
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TimeStamp)))
3920
3920
  : undefined,
3921
- Type: smithy_client_1.expectString(output.Type),
3921
+ Type: (0, smithy_client_1.expectString)(output.Type),
3922
3922
  };
3923
3923
  };
3924
3924
  const deserializeAws_restJson1Comment = (output, context) => {
3925
3925
  return {
3926
- CommentId: smithy_client_1.expectString(output.CommentId),
3926
+ CommentId: (0, smithy_client_1.expectString)(output.CommentId),
3927
3927
  Contributor: output.Contributor !== undefined && output.Contributor !== null
3928
3928
  ? deserializeAws_restJson1User(output.Contributor, context)
3929
3929
  : undefined,
3930
3930
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
3931
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
3931
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
3932
3932
  : undefined,
3933
- ParentId: smithy_client_1.expectString(output.ParentId),
3934
- RecipientId: smithy_client_1.expectString(output.RecipientId),
3935
- Status: smithy_client_1.expectString(output.Status),
3936
- Text: smithy_client_1.expectString(output.Text),
3937
- ThreadId: smithy_client_1.expectString(output.ThreadId),
3938
- Visibility: smithy_client_1.expectString(output.Visibility),
3933
+ ParentId: (0, smithy_client_1.expectString)(output.ParentId),
3934
+ RecipientId: (0, smithy_client_1.expectString)(output.RecipientId),
3935
+ Status: (0, smithy_client_1.expectString)(output.Status),
3936
+ Text: (0, smithy_client_1.expectString)(output.Text),
3937
+ ThreadId: (0, smithy_client_1.expectString)(output.ThreadId),
3938
+ Visibility: (0, smithy_client_1.expectString)(output.Visibility),
3939
3939
  };
3940
3940
  };
3941
3941
  const deserializeAws_restJson1CommentList = (output, context) => {
@@ -3951,15 +3951,15 @@ const deserializeAws_restJson1CommentList = (output, context) => {
3951
3951
  };
3952
3952
  const deserializeAws_restJson1CommentMetadata = (output, context) => {
3953
3953
  return {
3954
- CommentId: smithy_client_1.expectString(output.CommentId),
3955
- CommentStatus: smithy_client_1.expectString(output.CommentStatus),
3954
+ CommentId: (0, smithy_client_1.expectString)(output.CommentId),
3955
+ CommentStatus: (0, smithy_client_1.expectString)(output.CommentStatus),
3956
3956
  Contributor: output.Contributor !== undefined && output.Contributor !== null
3957
3957
  ? deserializeAws_restJson1User(output.Contributor, context)
3958
3958
  : undefined,
3959
3959
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
3960
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
3960
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
3961
3961
  : undefined,
3962
- RecipientId: smithy_client_1.expectString(output.RecipientId),
3962
+ RecipientId: (0, smithy_client_1.expectString)(output.RecipientId),
3963
3963
  };
3964
3964
  };
3965
3965
  const deserializeAws_restJson1CustomMetadataMap = (output, context) => {
@@ -3969,17 +3969,17 @@ const deserializeAws_restJson1CustomMetadataMap = (output, context) => {
3969
3969
  }
3970
3970
  return {
3971
3971
  ...acc,
3972
- [key]: smithy_client_1.expectString(value),
3972
+ [key]: (0, smithy_client_1.expectString)(value),
3973
3973
  };
3974
3974
  }, {});
3975
3975
  };
3976
3976
  const deserializeAws_restJson1DocumentMetadata = (output, context) => {
3977
3977
  return {
3978
3978
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
3979
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
3979
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
3980
3980
  : undefined,
3981
- CreatorId: smithy_client_1.expectString(output.CreatorId),
3982
- Id: smithy_client_1.expectString(output.Id),
3981
+ CreatorId: (0, smithy_client_1.expectString)(output.CreatorId),
3982
+ Id: (0, smithy_client_1.expectString)(output.Id),
3983
3983
  Labels: output.Labels !== undefined && output.Labels !== null
3984
3984
  ? deserializeAws_restJson1SharedLabels(output.Labels, context)
3985
3985
  : undefined,
@@ -3987,10 +3987,10 @@ const deserializeAws_restJson1DocumentMetadata = (output, context) => {
3987
3987
  ? deserializeAws_restJson1DocumentVersionMetadata(output.LatestVersionMetadata, context)
3988
3988
  : undefined,
3989
3989
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
3990
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
3990
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedTimestamp)))
3991
3991
  : undefined,
3992
- ParentFolderId: smithy_client_1.expectString(output.ParentFolderId),
3993
- ResourceState: smithy_client_1.expectString(output.ResourceState),
3992
+ ParentFolderId: (0, smithy_client_1.expectString)(output.ParentFolderId),
3993
+ ResourceState: (0, smithy_client_1.expectString)(output.ResourceState),
3994
3994
  };
3995
3995
  };
3996
3996
  const deserializeAws_restJson1DocumentMetadataList = (output, context) => {
@@ -4011,7 +4011,7 @@ const deserializeAws_restJson1DocumentSourceUrlMap = (output, context) => {
4011
4011
  }
4012
4012
  return {
4013
4013
  ...acc,
4014
- [key]: smithy_client_1.expectString(value),
4014
+ [key]: (0, smithy_client_1.expectString)(value),
4015
4015
  };
4016
4016
  }, {});
4017
4017
  };
@@ -4022,34 +4022,34 @@ const deserializeAws_restJson1DocumentThumbnailUrlMap = (output, context) => {
4022
4022
  }
4023
4023
  return {
4024
4024
  ...acc,
4025
- [key]: smithy_client_1.expectString(value),
4025
+ [key]: (0, smithy_client_1.expectString)(value),
4026
4026
  };
4027
4027
  }, {});
4028
4028
  };
4029
4029
  const deserializeAws_restJson1DocumentVersionMetadata = (output, context) => {
4030
4030
  return {
4031
4031
  ContentCreatedTimestamp: output.ContentCreatedTimestamp !== undefined && output.ContentCreatedTimestamp !== null
4032
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ContentCreatedTimestamp)))
4032
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ContentCreatedTimestamp)))
4033
4033
  : undefined,
4034
4034
  ContentModifiedTimestamp: output.ContentModifiedTimestamp !== undefined && output.ContentModifiedTimestamp !== null
4035
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ContentModifiedTimestamp)))
4035
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ContentModifiedTimestamp)))
4036
4036
  : undefined,
4037
- ContentType: smithy_client_1.expectString(output.ContentType),
4037
+ ContentType: (0, smithy_client_1.expectString)(output.ContentType),
4038
4038
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
4039
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
4039
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4040
4040
  : undefined,
4041
- CreatorId: smithy_client_1.expectString(output.CreatorId),
4042
- Id: smithy_client_1.expectString(output.Id),
4041
+ CreatorId: (0, smithy_client_1.expectString)(output.CreatorId),
4042
+ Id: (0, smithy_client_1.expectString)(output.Id),
4043
4043
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
4044
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
4044
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedTimestamp)))
4045
4045
  : undefined,
4046
- Name: smithy_client_1.expectString(output.Name),
4047
- Signature: smithy_client_1.expectString(output.Signature),
4048
- Size: smithy_client_1.expectLong(output.Size),
4046
+ Name: (0, smithy_client_1.expectString)(output.Name),
4047
+ Signature: (0, smithy_client_1.expectString)(output.Signature),
4048
+ Size: (0, smithy_client_1.expectLong)(output.Size),
4049
4049
  Source: output.Source !== undefined && output.Source !== null
4050
4050
  ? deserializeAws_restJson1DocumentSourceUrlMap(output.Source, context)
4051
4051
  : undefined,
4052
- Status: smithy_client_1.expectString(output.Status),
4052
+ Status: (0, smithy_client_1.expectString)(output.Status),
4053
4053
  Thumbnail: output.Thumbnail !== undefined && output.Thumbnail !== null
4054
4054
  ? deserializeAws_restJson1DocumentThumbnailUrlMap(output.Thumbnail, context)
4055
4055
  : undefined,
@@ -4073,29 +4073,29 @@ const deserializeAws_restJson1EntityIdList = (output, context) => {
4073
4073
  if (entry === null) {
4074
4074
  return null;
4075
4075
  }
4076
- return smithy_client_1.expectString(entry);
4076
+ return (0, smithy_client_1.expectString)(entry);
4077
4077
  });
4078
4078
  return retVal;
4079
4079
  };
4080
4080
  const deserializeAws_restJson1FolderMetadata = (output, context) => {
4081
4081
  return {
4082
4082
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
4083
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
4083
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4084
4084
  : undefined,
4085
- CreatorId: smithy_client_1.expectString(output.CreatorId),
4086
- Id: smithy_client_1.expectString(output.Id),
4085
+ CreatorId: (0, smithy_client_1.expectString)(output.CreatorId),
4086
+ Id: (0, smithy_client_1.expectString)(output.Id),
4087
4087
  Labels: output.Labels !== undefined && output.Labels !== null
4088
4088
  ? deserializeAws_restJson1SharedLabels(output.Labels, context)
4089
4089
  : undefined,
4090
- LatestVersionSize: smithy_client_1.expectLong(output.LatestVersionSize),
4090
+ LatestVersionSize: (0, smithy_client_1.expectLong)(output.LatestVersionSize),
4091
4091
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
4092
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
4092
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedTimestamp)))
4093
4093
  : undefined,
4094
- Name: smithy_client_1.expectString(output.Name),
4095
- ParentFolderId: smithy_client_1.expectString(output.ParentFolderId),
4096
- ResourceState: smithy_client_1.expectString(output.ResourceState),
4097
- Signature: smithy_client_1.expectString(output.Signature),
4098
- Size: smithy_client_1.expectLong(output.Size),
4094
+ Name: (0, smithy_client_1.expectString)(output.Name),
4095
+ ParentFolderId: (0, smithy_client_1.expectString)(output.ParentFolderId),
4096
+ ResourceState: (0, smithy_client_1.expectString)(output.ResourceState),
4097
+ Signature: (0, smithy_client_1.expectString)(output.Signature),
4098
+ Size: (0, smithy_client_1.expectLong)(output.Size),
4099
4099
  };
4100
4100
  };
4101
4101
  const deserializeAws_restJson1FolderMetadataList = (output, context) => {
@@ -4111,8 +4111,8 @@ const deserializeAws_restJson1FolderMetadataList = (output, context) => {
4111
4111
  };
4112
4112
  const deserializeAws_restJson1GroupMetadata = (output, context) => {
4113
4113
  return {
4114
- Id: smithy_client_1.expectString(output.Id),
4115
- Name: smithy_client_1.expectString(output.Name),
4114
+ Id: (0, smithy_client_1.expectString)(output.Id),
4115
+ Name: (0, smithy_client_1.expectString)(output.Name),
4116
4116
  };
4117
4117
  };
4118
4118
  const deserializeAws_restJson1GroupMetadataList = (output, context) => {
@@ -4149,8 +4149,8 @@ const deserializeAws_restJson1Participants = (output, context) => {
4149
4149
  };
4150
4150
  const deserializeAws_restJson1PermissionInfo = (output, context) => {
4151
4151
  return {
4152
- Role: smithy_client_1.expectString(output.Role),
4153
- Type: smithy_client_1.expectString(output.Type),
4152
+ Role: (0, smithy_client_1.expectString)(output.Role),
4153
+ Type: (0, smithy_client_1.expectString)(output.Type),
4154
4154
  };
4155
4155
  };
4156
4156
  const deserializeAws_restJson1PermissionInfoList = (output, context) => {
@@ -4166,11 +4166,11 @@ const deserializeAws_restJson1PermissionInfoList = (output, context) => {
4166
4166
  };
4167
4167
  const deserializeAws_restJson1Principal = (output, context) => {
4168
4168
  return {
4169
- Id: smithy_client_1.expectString(output.Id),
4169
+ Id: (0, smithy_client_1.expectString)(output.Id),
4170
4170
  Roles: output.Roles !== undefined && output.Roles !== null
4171
4171
  ? deserializeAws_restJson1PermissionInfoList(output.Roles, context)
4172
4172
  : undefined,
4173
- Type: smithy_client_1.expectString(output.Type),
4173
+ Type: (0, smithy_client_1.expectString)(output.Type),
4174
4174
  };
4175
4175
  };
4176
4176
  const deserializeAws_restJson1PrincipalList = (output, context) => {
@@ -4186,15 +4186,15 @@ const deserializeAws_restJson1PrincipalList = (output, context) => {
4186
4186
  };
4187
4187
  const deserializeAws_restJson1ResourceMetadata = (output, context) => {
4188
4188
  return {
4189
- Id: smithy_client_1.expectString(output.Id),
4190
- Name: smithy_client_1.expectString(output.Name),
4191
- OriginalName: smithy_client_1.expectString(output.OriginalName),
4189
+ Id: (0, smithy_client_1.expectString)(output.Id),
4190
+ Name: (0, smithy_client_1.expectString)(output.Name),
4191
+ OriginalName: (0, smithy_client_1.expectString)(output.OriginalName),
4192
4192
  Owner: output.Owner !== undefined && output.Owner !== null
4193
4193
  ? deserializeAws_restJson1UserMetadata(output.Owner, context)
4194
4194
  : undefined,
4195
- ParentId: smithy_client_1.expectString(output.ParentId),
4196
- Type: smithy_client_1.expectString(output.Type),
4197
- VersionId: smithy_client_1.expectString(output.VersionId),
4195
+ ParentId: (0, smithy_client_1.expectString)(output.ParentId),
4196
+ Type: (0, smithy_client_1.expectString)(output.Type),
4197
+ VersionId: (0, smithy_client_1.expectString)(output.VersionId),
4198
4198
  };
4199
4199
  };
4200
4200
  const deserializeAws_restJson1ResourcePath = (output, context) => {
@@ -4206,8 +4206,8 @@ const deserializeAws_restJson1ResourcePath = (output, context) => {
4206
4206
  };
4207
4207
  const deserializeAws_restJson1ResourcePathComponent = (output, context) => {
4208
4208
  return {
4209
- Id: smithy_client_1.expectString(output.Id),
4210
- Name: smithy_client_1.expectString(output.Name),
4209
+ Id: (0, smithy_client_1.expectString)(output.Id),
4210
+ Name: (0, smithy_client_1.expectString)(output.Name),
4211
4211
  };
4212
4212
  };
4213
4213
  const deserializeAws_restJson1ResourcePathComponentList = (output, context) => {
@@ -4228,18 +4228,18 @@ const deserializeAws_restJson1SharedLabels = (output, context) => {
4228
4228
  if (entry === null) {
4229
4229
  return null;
4230
4230
  }
4231
- return smithy_client_1.expectString(entry);
4231
+ return (0, smithy_client_1.expectString)(entry);
4232
4232
  });
4233
4233
  return retVal;
4234
4234
  };
4235
4235
  const deserializeAws_restJson1ShareResult = (output, context) => {
4236
4236
  return {
4237
- InviteePrincipalId: smithy_client_1.expectString(output.InviteePrincipalId),
4238
- PrincipalId: smithy_client_1.expectString(output.PrincipalId),
4239
- Role: smithy_client_1.expectString(output.Role),
4240
- ShareId: smithy_client_1.expectString(output.ShareId),
4241
- Status: smithy_client_1.expectString(output.Status),
4242
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
4237
+ InviteePrincipalId: (0, smithy_client_1.expectString)(output.InviteePrincipalId),
4238
+ PrincipalId: (0, smithy_client_1.expectString)(output.PrincipalId),
4239
+ Role: (0, smithy_client_1.expectString)(output.Role),
4240
+ ShareId: (0, smithy_client_1.expectString)(output.ShareId),
4241
+ Status: (0, smithy_client_1.expectString)(output.Status),
4242
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
4243
4243
  };
4244
4244
  };
4245
4245
  const deserializeAws_restJson1ShareResultsList = (output, context) => {
@@ -4260,21 +4260,21 @@ const deserializeAws_restJson1SignedHeaderMap = (output, context) => {
4260
4260
  }
4261
4261
  return {
4262
4262
  ...acc,
4263
- [key]: smithy_client_1.expectString(value),
4263
+ [key]: (0, smithy_client_1.expectString)(value),
4264
4264
  };
4265
4265
  }, {});
4266
4266
  };
4267
4267
  const deserializeAws_restJson1StorageRuleType = (output, context) => {
4268
4268
  return {
4269
- StorageAllocatedInBytes: smithy_client_1.expectLong(output.StorageAllocatedInBytes),
4270
- StorageType: smithy_client_1.expectString(output.StorageType),
4269
+ StorageAllocatedInBytes: (0, smithy_client_1.expectLong)(output.StorageAllocatedInBytes),
4270
+ StorageType: (0, smithy_client_1.expectString)(output.StorageType),
4271
4271
  };
4272
4272
  };
4273
4273
  const deserializeAws_restJson1Subscription = (output, context) => {
4274
4274
  return {
4275
- EndPoint: smithy_client_1.expectString(output.EndPoint),
4276
- Protocol: smithy_client_1.expectString(output.Protocol),
4277
- SubscriptionId: smithy_client_1.expectString(output.SubscriptionId),
4275
+ EndPoint: (0, smithy_client_1.expectString)(output.EndPoint),
4276
+ Protocol: (0, smithy_client_1.expectString)(output.Protocol),
4277
+ SubscriptionId: (0, smithy_client_1.expectString)(output.SubscriptionId),
4278
4278
  };
4279
4279
  };
4280
4280
  const deserializeAws_restJson1SubscriptionList = (output, context) => {
@@ -4293,32 +4293,32 @@ const deserializeAws_restJson1UploadMetadata = (output, context) => {
4293
4293
  SignedHeaders: output.SignedHeaders !== undefined && output.SignedHeaders !== null
4294
4294
  ? deserializeAws_restJson1SignedHeaderMap(output.SignedHeaders, context)
4295
4295
  : undefined,
4296
- UploadUrl: smithy_client_1.expectString(output.UploadUrl),
4296
+ UploadUrl: (0, smithy_client_1.expectString)(output.UploadUrl),
4297
4297
  };
4298
4298
  };
4299
4299
  const deserializeAws_restJson1User = (output, context) => {
4300
4300
  return {
4301
4301
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
4302
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
4302
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4303
4303
  : undefined,
4304
- EmailAddress: smithy_client_1.expectString(output.EmailAddress),
4305
- GivenName: smithy_client_1.expectString(output.GivenName),
4306
- Id: smithy_client_1.expectString(output.Id),
4307
- Locale: smithy_client_1.expectString(output.Locale),
4304
+ EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
4305
+ GivenName: (0, smithy_client_1.expectString)(output.GivenName),
4306
+ Id: (0, smithy_client_1.expectString)(output.Id),
4307
+ Locale: (0, smithy_client_1.expectString)(output.Locale),
4308
4308
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
4309
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
4309
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedTimestamp)))
4310
4310
  : undefined,
4311
- OrganizationId: smithy_client_1.expectString(output.OrganizationId),
4312
- RecycleBinFolderId: smithy_client_1.expectString(output.RecycleBinFolderId),
4313
- RootFolderId: smithy_client_1.expectString(output.RootFolderId),
4314
- Status: smithy_client_1.expectString(output.Status),
4311
+ OrganizationId: (0, smithy_client_1.expectString)(output.OrganizationId),
4312
+ RecycleBinFolderId: (0, smithy_client_1.expectString)(output.RecycleBinFolderId),
4313
+ RootFolderId: (0, smithy_client_1.expectString)(output.RootFolderId),
4314
+ Status: (0, smithy_client_1.expectString)(output.Status),
4315
4315
  Storage: output.Storage !== undefined && output.Storage !== null
4316
4316
  ? deserializeAws_restJson1UserStorageMetadata(output.Storage, context)
4317
4317
  : undefined,
4318
- Surname: smithy_client_1.expectString(output.Surname),
4319
- TimeZoneId: smithy_client_1.expectString(output.TimeZoneId),
4320
- Type: smithy_client_1.expectString(output.Type),
4321
- Username: smithy_client_1.expectString(output.Username),
4318
+ Surname: (0, smithy_client_1.expectString)(output.Surname),
4319
+ TimeZoneId: (0, smithy_client_1.expectString)(output.TimeZoneId),
4320
+ Type: (0, smithy_client_1.expectString)(output.Type),
4321
+ Username: (0, smithy_client_1.expectString)(output.Username),
4322
4322
  };
4323
4323
  };
4324
4324
  const deserializeAws_restJson1UserActivities = (output, context) => {
@@ -4334,11 +4334,11 @@ const deserializeAws_restJson1UserActivities = (output, context) => {
4334
4334
  };
4335
4335
  const deserializeAws_restJson1UserMetadata = (output, context) => {
4336
4336
  return {
4337
- EmailAddress: smithy_client_1.expectString(output.EmailAddress),
4338
- GivenName: smithy_client_1.expectString(output.GivenName),
4339
- Id: smithy_client_1.expectString(output.Id),
4340
- Surname: smithy_client_1.expectString(output.Surname),
4341
- Username: smithy_client_1.expectString(output.Username),
4337
+ EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
4338
+ GivenName: (0, smithy_client_1.expectString)(output.GivenName),
4339
+ Id: (0, smithy_client_1.expectString)(output.Id),
4340
+ Surname: (0, smithy_client_1.expectString)(output.Surname),
4341
+ Username: (0, smithy_client_1.expectString)(output.Username),
4342
4342
  };
4343
4343
  };
4344
4344
  const deserializeAws_restJson1UserMetadataList = (output, context) => {
@@ -4357,7 +4357,7 @@ const deserializeAws_restJson1UserStorageMetadata = (output, context) => {
4357
4357
  StorageRule: output.StorageRule !== undefined && output.StorageRule !== null
4358
4358
  ? deserializeAws_restJson1StorageRuleType(output.StorageRule, context)
4359
4359
  : undefined,
4360
- StorageUtilizedInBytes: smithy_client_1.expectLong(output.StorageUtilizedInBytes),
4360
+ StorageUtilizedInBytes: (0, smithy_client_1.expectLong)(output.StorageUtilizedInBytes),
4361
4361
  };
4362
4362
  };
4363
4363
  const deserializeMetadata = (output) => {