@aws-sdk/client-workdocs 3.306.0 → 3.310.0

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