@aws-sdk/client-chime-sdk-messaging 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 (107) hide show
  1. package/dist-cjs/commands/AssociateChannelFlowCommand.js +2 -2
  2. package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +2 -2
  3. package/dist-cjs/commands/ChannelFlowCallbackCommand.js +2 -2
  4. package/dist-cjs/commands/CreateChannelBanCommand.js +2 -2
  5. package/dist-cjs/commands/CreateChannelCommand.js +2 -2
  6. package/dist-cjs/commands/CreateChannelFlowCommand.js +2 -2
  7. package/dist-cjs/commands/CreateChannelMembershipCommand.js +2 -2
  8. package/dist-cjs/commands/CreateChannelModeratorCommand.js +2 -2
  9. package/dist-cjs/commands/DeleteChannelBanCommand.js +2 -2
  10. package/dist-cjs/commands/DeleteChannelCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteChannelFlowCommand.js +2 -2
  12. package/dist-cjs/commands/DeleteChannelMembershipCommand.js +2 -2
  13. package/dist-cjs/commands/DeleteChannelMessageCommand.js +2 -2
  14. package/dist-cjs/commands/DeleteChannelModeratorCommand.js +2 -2
  15. package/dist-cjs/commands/DeleteMessagingStreamingConfigurationsCommand.js +2 -2
  16. package/dist-cjs/commands/DescribeChannelBanCommand.js +2 -2
  17. package/dist-cjs/commands/DescribeChannelCommand.js +2 -2
  18. package/dist-cjs/commands/DescribeChannelFlowCommand.js +2 -2
  19. package/dist-cjs/commands/DescribeChannelMembershipCommand.js +2 -2
  20. package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeChannelModeratorCommand.js +2 -2
  23. package/dist-cjs/commands/DisassociateChannelFlowCommand.js +2 -2
  24. package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +2 -2
  25. package/dist-cjs/commands/GetChannelMessageCommand.js +2 -2
  26. package/dist-cjs/commands/GetChannelMessageStatusCommand.js +2 -2
  27. package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +2 -2
  28. package/dist-cjs/commands/GetMessagingStreamingConfigurationsCommand.js +2 -2
  29. package/dist-cjs/commands/ListChannelBansCommand.js +2 -2
  30. package/dist-cjs/commands/ListChannelFlowsCommand.js +2 -2
  31. package/dist-cjs/commands/ListChannelMembershipsCommand.js +2 -2
  32. package/dist-cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +2 -2
  33. package/dist-cjs/commands/ListChannelMessagesCommand.js +2 -2
  34. package/dist-cjs/commands/ListChannelModeratorsCommand.js +2 -2
  35. package/dist-cjs/commands/ListChannelsAssociatedWithChannelFlowCommand.js +2 -2
  36. package/dist-cjs/commands/ListChannelsCommand.js +2 -2
  37. package/dist-cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +2 -2
  38. package/dist-cjs/commands/ListSubChannelsCommand.js +2 -2
  39. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  40. package/dist-cjs/commands/PutChannelExpirationSettingsCommand.js +2 -2
  41. package/dist-cjs/commands/PutChannelMembershipPreferencesCommand.js +2 -2
  42. package/dist-cjs/commands/PutMessagingStreamingConfigurationsCommand.js +2 -2
  43. package/dist-cjs/commands/RedactChannelMessageCommand.js +2 -2
  44. package/dist-cjs/commands/SearchChannelsCommand.js +2 -2
  45. package/dist-cjs/commands/SendChannelMessageCommand.js +2 -2
  46. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  47. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  48. package/dist-cjs/commands/UpdateChannelCommand.js +2 -2
  49. package/dist-cjs/commands/UpdateChannelFlowCommand.js +2 -2
  50. package/dist-cjs/commands/UpdateChannelMessageCommand.js +2 -2
  51. package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +2 -2
  52. package/dist-cjs/protocols/Aws_restJson1.js +842 -868
  53. package/dist-es/commands/AssociateChannelFlowCommand.js +3 -3
  54. package/dist-es/commands/BatchCreateChannelMembershipCommand.js +3 -3
  55. package/dist-es/commands/ChannelFlowCallbackCommand.js +3 -3
  56. package/dist-es/commands/CreateChannelBanCommand.js +3 -3
  57. package/dist-es/commands/CreateChannelCommand.js +3 -3
  58. package/dist-es/commands/CreateChannelFlowCommand.js +3 -3
  59. package/dist-es/commands/CreateChannelMembershipCommand.js +3 -3
  60. package/dist-es/commands/CreateChannelModeratorCommand.js +3 -3
  61. package/dist-es/commands/DeleteChannelBanCommand.js +3 -3
  62. package/dist-es/commands/DeleteChannelCommand.js +3 -3
  63. package/dist-es/commands/DeleteChannelFlowCommand.js +3 -3
  64. package/dist-es/commands/DeleteChannelMembershipCommand.js +3 -3
  65. package/dist-es/commands/DeleteChannelMessageCommand.js +3 -3
  66. package/dist-es/commands/DeleteChannelModeratorCommand.js +3 -3
  67. package/dist-es/commands/DeleteMessagingStreamingConfigurationsCommand.js +3 -3
  68. package/dist-es/commands/DescribeChannelBanCommand.js +3 -3
  69. package/dist-es/commands/DescribeChannelCommand.js +3 -3
  70. package/dist-es/commands/DescribeChannelFlowCommand.js +3 -3
  71. package/dist-es/commands/DescribeChannelMembershipCommand.js +3 -3
  72. package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -3
  73. package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -3
  74. package/dist-es/commands/DescribeChannelModeratorCommand.js +3 -3
  75. package/dist-es/commands/DisassociateChannelFlowCommand.js +3 -3
  76. package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +3 -3
  77. package/dist-es/commands/GetChannelMessageCommand.js +3 -3
  78. package/dist-es/commands/GetChannelMessageStatusCommand.js +3 -3
  79. package/dist-es/commands/GetMessagingSessionEndpointCommand.js +3 -3
  80. package/dist-es/commands/GetMessagingStreamingConfigurationsCommand.js +3 -3
  81. package/dist-es/commands/ListChannelBansCommand.js +3 -3
  82. package/dist-es/commands/ListChannelFlowsCommand.js +3 -3
  83. package/dist-es/commands/ListChannelMembershipsCommand.js +3 -3
  84. package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -3
  85. package/dist-es/commands/ListChannelMessagesCommand.js +3 -3
  86. package/dist-es/commands/ListChannelModeratorsCommand.js +3 -3
  87. package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +3 -3
  88. package/dist-es/commands/ListChannelsCommand.js +3 -3
  89. package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -3
  90. package/dist-es/commands/ListSubChannelsCommand.js +3 -3
  91. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  92. package/dist-es/commands/PutChannelExpirationSettingsCommand.js +3 -3
  93. package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +3 -3
  94. package/dist-es/commands/PutMessagingStreamingConfigurationsCommand.js +3 -3
  95. package/dist-es/commands/RedactChannelMessageCommand.js +3 -3
  96. package/dist-es/commands/SearchChannelsCommand.js +3 -3
  97. package/dist-es/commands/SendChannelMessageCommand.js +3 -3
  98. package/dist-es/commands/TagResourceCommand.js +3 -3
  99. package/dist-es/commands/UntagResourceCommand.js +3 -3
  100. package/dist-es/commands/UpdateChannelCommand.js +3 -3
  101. package/dist-es/commands/UpdateChannelFlowCommand.js +3 -3
  102. package/dist-es/commands/UpdateChannelMessageCommand.js +3 -3
  103. package/dist-es/commands/UpdateChannelReadMarkerCommand.js +3 -3
  104. package/dist-es/protocols/Aws_restJson1.js +737 -763
  105. package/dist-types/protocols/Aws_restJson1.d.ts +408 -102
  106. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +102 -102
  107. package/package.json +35 -35
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { ChimeSDKMessagingServiceException as __BaseException } from "../models/ChimeSDKMessagingServiceException";
5
5
  import { BadRequestException, ConflictException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
6
- export const serializeAws_restJson1AssociateChannelFlowCommand = async (input, context) => {
6
+ export const se_AssociateChannelFlowCommand = async (input, context) => {
7
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
8
  const headers = map({}, isSerializableHeaderValue, {
9
9
  "content-type": "application/json",
@@ -25,7 +25,7 @@ export const serializeAws_restJson1AssociateChannelFlowCommand = async (input, c
25
25
  body,
26
26
  });
27
27
  };
28
- export const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input, context) => {
28
+ export const se_BatchCreateChannelMembershipCommand = async (input, context) => {
29
29
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
30
  const headers = map({}, isSerializableHeaderValue, {
31
31
  "content-type": "application/json",
@@ -38,7 +38,7 @@ export const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (
38
38
  });
39
39
  let body;
40
40
  body = JSON.stringify({
41
- ...(input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) }),
41
+ ...(input.MemberArns != null && { MemberArns: se_MemberArns(input.MemberArns, context) }),
42
42
  ...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
43
43
  ...(input.Type != null && { Type: input.Type }),
44
44
  });
@@ -53,7 +53,7 @@ export const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (
53
53
  body,
54
54
  });
55
55
  };
56
- export const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, context) => {
56
+ export const se_ChannelFlowCallbackCommand = async (input, context) => {
57
57
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
58
  const headers = {
59
59
  "content-type": "application/json",
@@ -66,9 +66,7 @@ export const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, co
66
66
  let body;
67
67
  body = JSON.stringify({
68
68
  CallbackId: input.CallbackId ?? generateIdempotencyToken(),
69
- ...(input.ChannelMessage != null && {
70
- ChannelMessage: serializeAws_restJson1ChannelMessageCallback(input.ChannelMessage, context),
71
- }),
69
+ ...(input.ChannelMessage != null && { ChannelMessage: se_ChannelMessageCallback(input.ChannelMessage, context) }),
72
70
  ...(input.DeleteResource != null && { DeleteResource: input.DeleteResource }),
73
71
  });
74
72
  return new __HttpRequest({
@@ -82,7 +80,7 @@ export const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, co
82
80
  body,
83
81
  });
84
82
  };
85
- export const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
83
+ export const se_CreateChannelCommand = async (input, context) => {
86
84
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
85
  const headers = map({}, isSerializableHeaderValue, {
88
86
  "content-type": "application/json",
@@ -95,20 +93,18 @@ export const serializeAws_restJson1CreateChannelCommand = async (input, context)
95
93
  ...(input.ChannelId != null && { ChannelId: input.ChannelId }),
96
94
  ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
97
95
  ...(input.ElasticChannelConfiguration != null && {
98
- ElasticChannelConfiguration: serializeAws_restJson1ElasticChannelConfiguration(input.ElasticChannelConfiguration, context),
96
+ ElasticChannelConfiguration: se_ElasticChannelConfiguration(input.ElasticChannelConfiguration, context),
99
97
  }),
100
98
  ...(input.ExpirationSettings != null && {
101
- ExpirationSettings: serializeAws_restJson1ExpirationSettings(input.ExpirationSettings, context),
99
+ ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
102
100
  }),
103
- ...(input.MemberArns != null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) }),
101
+ ...(input.MemberArns != null && { MemberArns: se_ChannelMemberArns(input.MemberArns, context) }),
104
102
  ...(input.Metadata != null && { Metadata: input.Metadata }),
105
103
  ...(input.Mode != null && { Mode: input.Mode }),
106
- ...(input.ModeratorArns != null && {
107
- ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
108
- }),
104
+ ...(input.ModeratorArns != null && { ModeratorArns: se_ChannelModeratorArns(input.ModeratorArns, context) }),
109
105
  ...(input.Name != null && { Name: input.Name }),
110
106
  ...(input.Privacy != null && { Privacy: input.Privacy }),
111
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
107
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
112
108
  });
113
109
  return new __HttpRequest({
114
110
  protocol,
@@ -120,7 +116,7 @@ export const serializeAws_restJson1CreateChannelCommand = async (input, context)
120
116
  body,
121
117
  });
122
118
  };
123
- export const serializeAws_restJson1CreateChannelBanCommand = async (input, context) => {
119
+ export const se_CreateChannelBanCommand = async (input, context) => {
124
120
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
121
  const headers = map({}, isSerializableHeaderValue, {
126
122
  "content-type": "application/json",
@@ -142,7 +138,7 @@ export const serializeAws_restJson1CreateChannelBanCommand = async (input, conte
142
138
  body,
143
139
  });
144
140
  };
145
- export const serializeAws_restJson1CreateChannelFlowCommand = async (input, context) => {
141
+ export const se_CreateChannelFlowCommand = async (input, context) => {
146
142
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
143
  const headers = {
148
144
  "content-type": "application/json",
@@ -153,8 +149,8 @@ export const serializeAws_restJson1CreateChannelFlowCommand = async (input, cont
153
149
  ...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
154
150
  ...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
155
151
  ...(input.Name != null && { Name: input.Name }),
156
- ...(input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) }),
157
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
152
+ ...(input.Processors != null && { Processors: se_ProcessorList(input.Processors, context) }),
153
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
158
154
  });
159
155
  return new __HttpRequest({
160
156
  protocol,
@@ -166,7 +162,7 @@ export const serializeAws_restJson1CreateChannelFlowCommand = async (input, cont
166
162
  body,
167
163
  });
168
164
  };
169
- export const serializeAws_restJson1CreateChannelMembershipCommand = async (input, context) => {
165
+ export const se_CreateChannelMembershipCommand = async (input, context) => {
170
166
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
171
167
  const headers = map({}, isSerializableHeaderValue, {
172
168
  "content-type": "application/json",
@@ -190,7 +186,7 @@ export const serializeAws_restJson1CreateChannelMembershipCommand = async (input
190
186
  body,
191
187
  });
192
188
  };
193
- export const serializeAws_restJson1CreateChannelModeratorCommand = async (input, context) => {
189
+ export const se_CreateChannelModeratorCommand = async (input, context) => {
194
190
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
191
  const headers = map({}, isSerializableHeaderValue, {
196
192
  "content-type": "application/json",
@@ -212,7 +208,7 @@ export const serializeAws_restJson1CreateChannelModeratorCommand = async (input,
212
208
  body,
213
209
  });
214
210
  };
215
- export const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
211
+ export const se_DeleteChannelCommand = async (input, context) => {
216
212
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
213
  const headers = map({}, isSerializableHeaderValue, {
218
214
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -234,7 +230,7 @@ export const serializeAws_restJson1DeleteChannelCommand = async (input, context)
234
230
  body,
235
231
  });
236
232
  };
237
- export const serializeAws_restJson1DeleteChannelBanCommand = async (input, context) => {
233
+ export const se_DeleteChannelBanCommand = async (input, context) => {
238
234
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
235
  const headers = map({}, isSerializableHeaderValue, {
240
236
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -253,7 +249,7 @@ export const serializeAws_restJson1DeleteChannelBanCommand = async (input, conte
253
249
  body,
254
250
  });
255
251
  };
256
- export const serializeAws_restJson1DeleteChannelFlowCommand = async (input, context) => {
252
+ export const se_DeleteChannelFlowCommand = async (input, context) => {
257
253
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
254
  const headers = {};
259
255
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
@@ -269,7 +265,7 @@ export const serializeAws_restJson1DeleteChannelFlowCommand = async (input, cont
269
265
  body,
270
266
  });
271
267
  };
272
- export const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, context) => {
268
+ export const se_DeleteChannelMembershipCommand = async (input, context) => {
273
269
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
274
270
  const headers = map({}, isSerializableHeaderValue, {
275
271
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -293,7 +289,7 @@ export const serializeAws_restJson1DeleteChannelMembershipCommand = async (input
293
289
  body,
294
290
  });
295
291
  };
296
- export const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context) => {
292
+ export const se_DeleteChannelMessageCommand = async (input, context) => {
297
293
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
298
294
  const headers = map({}, isSerializableHeaderValue, {
299
295
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -317,7 +313,7 @@ export const serializeAws_restJson1DeleteChannelMessageCommand = async (input, c
317
313
  body,
318
314
  });
319
315
  };
320
- export const serializeAws_restJson1DeleteChannelModeratorCommand = async (input, context) => {
316
+ export const se_DeleteChannelModeratorCommand = async (input, context) => {
321
317
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
322
318
  const headers = map({}, isSerializableHeaderValue, {
323
319
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -337,7 +333,7 @@ export const serializeAws_restJson1DeleteChannelModeratorCommand = async (input,
337
333
  body,
338
334
  });
339
335
  };
340
- export const serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
336
+ export const se_DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
341
337
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
342
338
  const headers = {};
343
339
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -354,7 +350,7 @@ export const serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand
354
350
  body,
355
351
  });
356
352
  };
357
- export const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
353
+ export const se_DescribeChannelCommand = async (input, context) => {
358
354
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
359
355
  const headers = map({}, isSerializableHeaderValue, {
360
356
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -372,7 +368,7 @@ export const serializeAws_restJson1DescribeChannelCommand = async (input, contex
372
368
  body,
373
369
  });
374
370
  };
375
- export const serializeAws_restJson1DescribeChannelBanCommand = async (input, context) => {
371
+ export const se_DescribeChannelBanCommand = async (input, context) => {
376
372
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
377
373
  const headers = map({}, isSerializableHeaderValue, {
378
374
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -391,7 +387,7 @@ export const serializeAws_restJson1DescribeChannelBanCommand = async (input, con
391
387
  body,
392
388
  });
393
389
  };
394
- export const serializeAws_restJson1DescribeChannelFlowCommand = async (input, context) => {
390
+ export const se_DescribeChannelFlowCommand = async (input, context) => {
395
391
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
392
  const headers = {};
397
393
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
@@ -407,7 +403,7 @@ export const serializeAws_restJson1DescribeChannelFlowCommand = async (input, co
407
403
  body,
408
404
  });
409
405
  };
410
- export const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, context) => {
406
+ export const se_DescribeChannelMembershipCommand = async (input, context) => {
411
407
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
412
408
  const headers = map({}, isSerializableHeaderValue, {
413
409
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -431,7 +427,7 @@ export const serializeAws_restJson1DescribeChannelMembershipCommand = async (inp
431
427
  body,
432
428
  });
433
429
  };
434
- export const serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
430
+ export const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
435
431
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
436
432
  const headers = map({}, isSerializableHeaderValue, {
437
433
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -454,7 +450,7 @@ export const serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCo
454
450
  body,
455
451
  });
456
452
  };
457
- export const serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
453
+ export const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
458
454
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
459
455
  const headers = map({}, isSerializableHeaderValue, {
460
456
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -477,7 +473,7 @@ export const serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComm
477
473
  body,
478
474
  });
479
475
  };
480
- export const serializeAws_restJson1DescribeChannelModeratorCommand = async (input, context) => {
476
+ export const se_DescribeChannelModeratorCommand = async (input, context) => {
481
477
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
482
478
  const headers = map({}, isSerializableHeaderValue, {
483
479
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -497,7 +493,7 @@ export const serializeAws_restJson1DescribeChannelModeratorCommand = async (inpu
497
493
  body,
498
494
  });
499
495
  };
500
- export const serializeAws_restJson1DisassociateChannelFlowCommand = async (input, context) => {
496
+ export const se_DisassociateChannelFlowCommand = async (input, context) => {
501
497
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
502
498
  const headers = map({}, isSerializableHeaderValue, {
503
499
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -517,7 +513,7 @@ export const serializeAws_restJson1DisassociateChannelFlowCommand = async (input
517
513
  body,
518
514
  });
519
515
  };
520
- export const serializeAws_restJson1GetChannelMembershipPreferencesCommand = async (input, context) => {
516
+ export const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
521
517
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
518
  const headers = map({}, isSerializableHeaderValue, {
523
519
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -537,7 +533,7 @@ export const serializeAws_restJson1GetChannelMembershipPreferencesCommand = asyn
537
533
  body,
538
534
  });
539
535
  };
540
- export const serializeAws_restJson1GetChannelMessageCommand = async (input, context) => {
536
+ export const se_GetChannelMessageCommand = async (input, context) => {
541
537
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
542
538
  const headers = map({}, isSerializableHeaderValue, {
543
539
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -561,7 +557,7 @@ export const serializeAws_restJson1GetChannelMessageCommand = async (input, cont
561
557
  body,
562
558
  });
563
559
  };
564
- export const serializeAws_restJson1GetChannelMessageStatusCommand = async (input, context) => {
560
+ export const se_GetChannelMessageStatusCommand = async (input, context) => {
565
561
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
566
562
  const headers = map({}, isSerializableHeaderValue, {
567
563
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -586,7 +582,7 @@ export const serializeAws_restJson1GetChannelMessageStatusCommand = async (input
586
582
  body,
587
583
  });
588
584
  };
589
- export const serializeAws_restJson1GetMessagingSessionEndpointCommand = async (input, context) => {
585
+ export const se_GetMessagingSessionEndpointCommand = async (input, context) => {
590
586
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
591
587
  const headers = {
592
588
  "content-type": "application/json",
@@ -604,7 +600,7 @@ export const serializeAws_restJson1GetMessagingSessionEndpointCommand = async (i
604
600
  body,
605
601
  });
606
602
  };
607
- export const serializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (input, context) => {
603
+ export const se_GetMessagingStreamingConfigurationsCommand = async (input, context) => {
608
604
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
609
605
  const headers = {};
610
606
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -621,7 +617,7 @@ export const serializeAws_restJson1GetMessagingStreamingConfigurationsCommand =
621
617
  body,
622
618
  });
623
619
  };
624
- export const serializeAws_restJson1ListChannelBansCommand = async (input, context) => {
620
+ export const se_ListChannelBansCommand = async (input, context) => {
625
621
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
626
622
  const headers = map({}, isSerializableHeaderValue, {
627
623
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -644,7 +640,7 @@ export const serializeAws_restJson1ListChannelBansCommand = async (input, contex
644
640
  body,
645
641
  });
646
642
  };
647
- export const serializeAws_restJson1ListChannelFlowsCommand = async (input, context) => {
643
+ export const se_ListChannelFlowsCommand = async (input, context) => {
648
644
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
649
645
  const headers = {};
650
646
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
@@ -665,7 +661,7 @@ export const serializeAws_restJson1ListChannelFlowsCommand = async (input, conte
665
661
  body,
666
662
  });
667
663
  };
668
- export const serializeAws_restJson1ListChannelMembershipsCommand = async (input, context) => {
664
+ export const se_ListChannelMembershipsCommand = async (input, context) => {
669
665
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
670
666
  const headers = map({}, isSerializableHeaderValue, {
671
667
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -690,7 +686,7 @@ export const serializeAws_restJson1ListChannelMembershipsCommand = async (input,
690
686
  body,
691
687
  });
692
688
  };
693
- export const serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
689
+ export const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
694
690
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
695
691
  const headers = map({}, isSerializableHeaderValue, {
696
692
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -714,7 +710,7 @@ export const serializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
714
710
  body,
715
711
  });
716
712
  };
717
- export const serializeAws_restJson1ListChannelMessagesCommand = async (input, context) => {
713
+ export const se_ListChannelMessagesCommand = async (input, context) => {
718
714
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
719
715
  const headers = map({}, isSerializableHeaderValue, {
720
716
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -747,7 +743,7 @@ export const serializeAws_restJson1ListChannelMessagesCommand = async (input, co
747
743
  body,
748
744
  });
749
745
  };
750
- export const serializeAws_restJson1ListChannelModeratorsCommand = async (input, context) => {
746
+ export const se_ListChannelModeratorsCommand = async (input, context) => {
751
747
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
752
748
  const headers = map({}, isSerializableHeaderValue, {
753
749
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -770,7 +766,7 @@ export const serializeAws_restJson1ListChannelModeratorsCommand = async (input,
770
766
  body,
771
767
  });
772
768
  };
773
- export const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
769
+ export const se_ListChannelsCommand = async (input, context) => {
774
770
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
775
771
  const headers = map({}, isSerializableHeaderValue, {
776
772
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -794,7 +790,7 @@ export const serializeAws_restJson1ListChannelsCommand = async (input, context)
794
790
  body,
795
791
  });
796
792
  };
797
- export const serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = async (input, context) => {
793
+ export const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) => {
798
794
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
799
795
  const headers = {};
800
796
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
@@ -816,7 +812,7 @@ export const serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand
816
812
  body,
817
813
  });
818
814
  };
819
- export const serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
815
+ export const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
820
816
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
821
817
  const headers = map({}, isSerializableHeaderValue, {
822
818
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -840,7 +836,7 @@ export const serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
840
836
  body,
841
837
  });
842
838
  };
843
- export const serializeAws_restJson1ListSubChannelsCommand = async (input, context) => {
839
+ export const se_ListSubChannelsCommand = async (input, context) => {
844
840
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
845
841
  const headers = map({}, isSerializableHeaderValue, {
846
842
  "x-amz-chime-bearer": input.ChimeBearer,
@@ -863,7 +859,7 @@ export const serializeAws_restJson1ListSubChannelsCommand = async (input, contex
863
859
  body,
864
860
  });
865
861
  };
866
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
862
+ export const se_ListTagsForResourceCommand = async (input, context) => {
867
863
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
864
  const headers = {};
869
865
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
@@ -882,7 +878,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
882
878
  body,
883
879
  });
884
880
  };
885
- export const serializeAws_restJson1PutChannelExpirationSettingsCommand = async (input, context) => {
881
+ export const se_PutChannelExpirationSettingsCommand = async (input, context) => {
886
882
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
887
883
  const headers = map({}, isSerializableHeaderValue, {
888
884
  "content-type": "application/json",
@@ -894,7 +890,7 @@ export const serializeAws_restJson1PutChannelExpirationSettingsCommand = async (
894
890
  let body;
895
891
  body = JSON.stringify({
896
892
  ...(input.ExpirationSettings != null && {
897
- ExpirationSettings: serializeAws_restJson1ExpirationSettings(input.ExpirationSettings, context),
893
+ ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
898
894
  }),
899
895
  });
900
896
  return new __HttpRequest({
@@ -907,7 +903,7 @@ export const serializeAws_restJson1PutChannelExpirationSettingsCommand = async (
907
903
  body,
908
904
  });
909
905
  };
910
- export const serializeAws_restJson1PutChannelMembershipPreferencesCommand = async (input, context) => {
906
+ export const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
911
907
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
912
908
  const headers = map({}, isSerializableHeaderValue, {
913
909
  "content-type": "application/json",
@@ -919,9 +915,7 @@ export const serializeAws_restJson1PutChannelMembershipPreferencesCommand = asyn
919
915
  resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
920
916
  let body;
921
917
  body = JSON.stringify({
922
- ...(input.Preferences != null && {
923
- Preferences: serializeAws_restJson1ChannelMembershipPreferences(input.Preferences, context),
924
- }),
918
+ ...(input.Preferences != null && { Preferences: se_ChannelMembershipPreferences(input.Preferences, context) }),
925
919
  });
926
920
  return new __HttpRequest({
927
921
  protocol,
@@ -933,7 +927,7 @@ export const serializeAws_restJson1PutChannelMembershipPreferencesCommand = asyn
933
927
  body,
934
928
  });
935
929
  };
936
- export const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (input, context) => {
930
+ export const se_PutMessagingStreamingConfigurationsCommand = async (input, context) => {
937
931
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
938
932
  const headers = {
939
933
  "content-type": "application/json",
@@ -944,7 +938,7 @@ export const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand =
944
938
  let body;
945
939
  body = JSON.stringify({
946
940
  ...(input.StreamingConfigurations != null && {
947
- StreamingConfigurations: serializeAws_restJson1StreamingConfigurationList(input.StreamingConfigurations, context),
941
+ StreamingConfigurations: se_StreamingConfigurationList(input.StreamingConfigurations, context),
948
942
  }),
949
943
  });
950
944
  return new __HttpRequest({
@@ -957,7 +951,7 @@ export const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand =
957
951
  body,
958
952
  });
959
953
  };
960
- export const serializeAws_restJson1RedactChannelMessageCommand = async (input, context) => {
954
+ export const se_RedactChannelMessageCommand = async (input, context) => {
961
955
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
962
956
  const headers = map({}, isSerializableHeaderValue, {
963
957
  "content-type": "application/json",
@@ -985,7 +979,7 @@ export const serializeAws_restJson1RedactChannelMessageCommand = async (input, c
985
979
  body,
986
980
  });
987
981
  };
988
- export const serializeAws_restJson1SearchChannelsCommand = async (input, context) => {
982
+ export const se_SearchChannelsCommand = async (input, context) => {
989
983
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
990
984
  const headers = map({}, isSerializableHeaderValue, {
991
985
  "content-type": "application/json",
@@ -999,7 +993,7 @@ export const serializeAws_restJson1SearchChannelsCommand = async (input, context
999
993
  });
1000
994
  let body;
1001
995
  body = JSON.stringify({
1002
- ...(input.Fields != null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) }),
996
+ ...(input.Fields != null && { Fields: se_SearchFields(input.Fields, context) }),
1003
997
  });
1004
998
  return new __HttpRequest({
1005
999
  protocol,
@@ -1012,7 +1006,7 @@ export const serializeAws_restJson1SearchChannelsCommand = async (input, context
1012
1006
  body,
1013
1007
  });
1014
1008
  };
1015
- export const serializeAws_restJson1SendChannelMessageCommand = async (input, context) => {
1009
+ export const se_SendChannelMessageCommand = async (input, context) => {
1016
1010
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1017
1011
  const headers = map({}, isSerializableHeaderValue, {
1018
1012
  "content-type": "application/json",
@@ -1026,12 +1020,12 @@ export const serializeAws_restJson1SendChannelMessageCommand = async (input, con
1026
1020
  ...(input.Content != null && { Content: input.Content }),
1027
1021
  ...(input.ContentType != null && { ContentType: input.ContentType }),
1028
1022
  ...(input.MessageAttributes != null && {
1029
- MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
1023
+ MessageAttributes: se_MessageAttributeMap(input.MessageAttributes, context),
1030
1024
  }),
1031
1025
  ...(input.Metadata != null && { Metadata: input.Metadata }),
1032
1026
  ...(input.Persistence != null && { Persistence: input.Persistence }),
1033
1027
  ...(input.PushNotification != null && {
1034
- PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
1028
+ PushNotification: se_PushNotificationConfiguration(input.PushNotification, context),
1035
1029
  }),
1036
1030
  ...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
1037
1031
  ...(input.Type != null && { Type: input.Type }),
@@ -1046,7 +1040,7 @@ export const serializeAws_restJson1SendChannelMessageCommand = async (input, con
1046
1040
  body,
1047
1041
  });
1048
1042
  };
1049
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1043
+ export const se_TagResourceCommand = async (input, context) => {
1050
1044
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1051
1045
  const headers = {
1052
1046
  "content-type": "application/json",
@@ -1058,7 +1052,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
1058
1052
  let body;
1059
1053
  body = JSON.stringify({
1060
1054
  ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1061
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
1055
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1062
1056
  });
1063
1057
  return new __HttpRequest({
1064
1058
  protocol,
@@ -1071,7 +1065,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
1071
1065
  body,
1072
1066
  });
1073
1067
  };
1074
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1068
+ export const se_UntagResourceCommand = async (input, context) => {
1075
1069
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1076
1070
  const headers = {
1077
1071
  "content-type": "application/json",
@@ -1083,7 +1077,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
1083
1077
  let body;
1084
1078
  body = JSON.stringify({
1085
1079
  ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1086
- ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
1080
+ ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
1087
1081
  });
1088
1082
  return new __HttpRequest({
1089
1083
  protocol,
@@ -1096,7 +1090,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
1096
1090
  body,
1097
1091
  });
1098
1092
  };
1099
- export const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
1093
+ export const se_UpdateChannelCommand = async (input, context) => {
1100
1094
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1101
1095
  const headers = map({}, isSerializableHeaderValue, {
1102
1096
  "content-type": "application/json",
@@ -1120,7 +1114,7 @@ export const serializeAws_restJson1UpdateChannelCommand = async (input, context)
1120
1114
  body,
1121
1115
  });
1122
1116
  };
1123
- export const serializeAws_restJson1UpdateChannelFlowCommand = async (input, context) => {
1117
+ export const se_UpdateChannelFlowCommand = async (input, context) => {
1124
1118
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1125
1119
  const headers = {
1126
1120
  "content-type": "application/json",
@@ -1130,7 +1124,7 @@ export const serializeAws_restJson1UpdateChannelFlowCommand = async (input, cont
1130
1124
  let body;
1131
1125
  body = JSON.stringify({
1132
1126
  ...(input.Name != null && { Name: input.Name }),
1133
- ...(input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) }),
1127
+ ...(input.Processors != null && { Processors: se_ProcessorList(input.Processors, context) }),
1134
1128
  });
1135
1129
  return new __HttpRequest({
1136
1130
  protocol,
@@ -1142,7 +1136,7 @@ export const serializeAws_restJson1UpdateChannelFlowCommand = async (input, cont
1142
1136
  body,
1143
1137
  });
1144
1138
  };
1145
- export const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context) => {
1139
+ export const se_UpdateChannelMessageCommand = async (input, context) => {
1146
1140
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1147
1141
  const headers = map({}, isSerializableHeaderValue, {
1148
1142
  "content-type": "application/json",
@@ -1169,7 +1163,7 @@ export const serializeAws_restJson1UpdateChannelMessageCommand = async (input, c
1169
1163
  body,
1170
1164
  });
1171
1165
  };
1172
- export const serializeAws_restJson1UpdateChannelReadMarkerCommand = async (input, context) => {
1166
+ export const se_UpdateChannelReadMarkerCommand = async (input, context) => {
1173
1167
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1174
1168
  const headers = map({}, isSerializableHeaderValue, {
1175
1169
  "content-type": "application/json",
@@ -1191,9 +1185,9 @@ export const serializeAws_restJson1UpdateChannelReadMarkerCommand = async (input
1191
1185
  body,
1192
1186
  });
1193
1187
  };
1194
- export const deserializeAws_restJson1AssociateChannelFlowCommand = async (output, context) => {
1188
+ export const de_AssociateChannelFlowCommand = async (output, context) => {
1195
1189
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1196
- return deserializeAws_restJson1AssociateChannelFlowCommandError(output, context);
1190
+ return de_AssociateChannelFlowCommandError(output, context);
1197
1191
  }
1198
1192
  const contents = map({
1199
1193
  $metadata: deserializeMetadata(output),
@@ -1201,7 +1195,7 @@ export const deserializeAws_restJson1AssociateChannelFlowCommand = async (output
1201
1195
  await collectBody(output.body, context);
1202
1196
  return contents;
1203
1197
  };
1204
- const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output, context) => {
1198
+ const de_AssociateChannelFlowCommandError = async (output, context) => {
1205
1199
  const parsedOutput = {
1206
1200
  ...output,
1207
1201
  body: await parseErrorBody(output.body, context),
@@ -1210,28 +1204,28 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
1210
1204
  switch (errorCode) {
1211
1205
  case "BadRequestException":
1212
1206
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1213
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1207
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1214
1208
  case "ConflictException":
1215
1209
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1216
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1210
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1217
1211
  case "ForbiddenException":
1218
1212
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1219
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1213
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1220
1214
  case "NotFoundException":
1221
1215
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
1222
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1216
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1223
1217
  case "ServiceFailureException":
1224
1218
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1225
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1219
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1226
1220
  case "ServiceUnavailableException":
1227
1221
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1228
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1222
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1229
1223
  case "ThrottledClientException":
1230
1224
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1231
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1225
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1232
1226
  case "UnauthorizedClientException":
1233
1227
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1234
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1228
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1235
1229
  default:
1236
1230
  const parsedBody = parsedOutput.body;
1237
1231
  throwDefaultError({
@@ -1242,23 +1236,23 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
1242
1236
  });
1243
1237
  }
1244
1238
  };
1245
- export const deserializeAws_restJson1BatchCreateChannelMembershipCommand = async (output, context) => {
1239
+ export const de_BatchCreateChannelMembershipCommand = async (output, context) => {
1246
1240
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
- return deserializeAws_restJson1BatchCreateChannelMembershipCommandError(output, context);
1241
+ return de_BatchCreateChannelMembershipCommandError(output, context);
1248
1242
  }
1249
1243
  const contents = map({
1250
1244
  $metadata: deserializeMetadata(output),
1251
1245
  });
1252
1246
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1253
1247
  if (data.BatchChannelMemberships != null) {
1254
- contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
1248
+ contents.BatchChannelMemberships = de_BatchChannelMemberships(data.BatchChannelMemberships, context);
1255
1249
  }
1256
1250
  if (data.Errors != null) {
1257
- contents.Errors = deserializeAws_restJson1BatchCreateChannelMembershipErrors(data.Errors, context);
1251
+ contents.Errors = de_BatchCreateChannelMembershipErrors(data.Errors, context);
1258
1252
  }
1259
1253
  return contents;
1260
1254
  };
1261
- const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (output, context) => {
1255
+ const de_BatchCreateChannelMembershipCommandError = async (output, context) => {
1262
1256
  const parsedOutput = {
1263
1257
  ...output,
1264
1258
  body: await parseErrorBody(output.body, context),
@@ -1267,28 +1261,28 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
1267
1261
  switch (errorCode) {
1268
1262
  case "BadRequestException":
1269
1263
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1270
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1264
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1271
1265
  case "ForbiddenException":
1272
1266
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1273
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1267
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1274
1268
  case "NotFoundException":
1275
1269
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
1276
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1270
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1277
1271
  case "ResourceLimitExceededException":
1278
1272
  case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
1279
- throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
1273
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1280
1274
  case "ServiceFailureException":
1281
1275
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1282
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1276
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1283
1277
  case "ServiceUnavailableException":
1284
1278
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1285
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1279
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1286
1280
  case "ThrottledClientException":
1287
1281
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1288
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1282
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1289
1283
  case "UnauthorizedClientException":
1290
1284
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1291
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1285
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1292
1286
  default:
1293
1287
  const parsedBody = parsedOutput.body;
1294
1288
  throwDefaultError({
@@ -1299,9 +1293,9 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
1299
1293
  });
1300
1294
  }
1301
1295
  };
1302
- export const deserializeAws_restJson1ChannelFlowCallbackCommand = async (output, context) => {
1296
+ export const de_ChannelFlowCallbackCommand = async (output, context) => {
1303
1297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1304
- return deserializeAws_restJson1ChannelFlowCallbackCommandError(output, context);
1298
+ return de_ChannelFlowCallbackCommandError(output, context);
1305
1299
  }
1306
1300
  const contents = map({
1307
1301
  $metadata: deserializeMetadata(output),
@@ -1315,7 +1309,7 @@ export const deserializeAws_restJson1ChannelFlowCallbackCommand = async (output,
1315
1309
  }
1316
1310
  return contents;
1317
1311
  };
1318
- const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, context) => {
1312
+ const de_ChannelFlowCallbackCommandError = async (output, context) => {
1319
1313
  const parsedOutput = {
1320
1314
  ...output,
1321
1315
  body: await parseErrorBody(output.body, context),
@@ -1324,25 +1318,25 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
1324
1318
  switch (errorCode) {
1325
1319
  case "BadRequestException":
1326
1320
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1327
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1321
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1328
1322
  case "ConflictException":
1329
1323
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1330
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1324
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1331
1325
  case "ForbiddenException":
1332
1326
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1333
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1327
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1334
1328
  case "ServiceFailureException":
1335
1329
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1336
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1330
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1337
1331
  case "ServiceUnavailableException":
1338
1332
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1339
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1333
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1340
1334
  case "ThrottledClientException":
1341
1335
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1342
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1336
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1343
1337
  case "UnauthorizedClientException":
1344
1338
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1345
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1339
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1346
1340
  default:
1347
1341
  const parsedBody = parsedOutput.body;
1348
1342
  throwDefaultError({
@@ -1353,9 +1347,9 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
1353
1347
  });
1354
1348
  }
1355
1349
  };
1356
- export const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
1350
+ export const de_CreateChannelCommand = async (output, context) => {
1357
1351
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1358
- return deserializeAws_restJson1CreateChannelCommandError(output, context);
1352
+ return de_CreateChannelCommandError(output, context);
1359
1353
  }
1360
1354
  const contents = map({
1361
1355
  $metadata: deserializeMetadata(output),
@@ -1366,7 +1360,7 @@ export const deserializeAws_restJson1CreateChannelCommand = async (output, conte
1366
1360
  }
1367
1361
  return contents;
1368
1362
  };
1369
- const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
1363
+ const de_CreateChannelCommandError = async (output, context) => {
1370
1364
  const parsedOutput = {
1371
1365
  ...output,
1372
1366
  body: await parseErrorBody(output.body, context),
@@ -1375,28 +1369,28 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
1375
1369
  switch (errorCode) {
1376
1370
  case "BadRequestException":
1377
1371
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1378
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1372
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1379
1373
  case "ConflictException":
1380
1374
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1381
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1375
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1382
1376
  case "ForbiddenException":
1383
1377
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1384
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1378
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1385
1379
  case "ResourceLimitExceededException":
1386
1380
  case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
1387
- throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
1381
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1388
1382
  case "ServiceFailureException":
1389
1383
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1390
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1384
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1391
1385
  case "ServiceUnavailableException":
1392
1386
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1393
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1387
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1394
1388
  case "ThrottledClientException":
1395
1389
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1396
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1390
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1397
1391
  case "UnauthorizedClientException":
1398
1392
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1399
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1393
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1400
1394
  default:
1401
1395
  const parsedBody = parsedOutput.body;
1402
1396
  throwDefaultError({
@@ -1407,9 +1401,9 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
1407
1401
  });
1408
1402
  }
1409
1403
  };
1410
- export const deserializeAws_restJson1CreateChannelBanCommand = async (output, context) => {
1404
+ export const de_CreateChannelBanCommand = async (output, context) => {
1411
1405
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1412
- return deserializeAws_restJson1CreateChannelBanCommandError(output, context);
1406
+ return de_CreateChannelBanCommandError(output, context);
1413
1407
  }
1414
1408
  const contents = map({
1415
1409
  $metadata: deserializeMetadata(output),
@@ -1419,11 +1413,11 @@ export const deserializeAws_restJson1CreateChannelBanCommand = async (output, co
1419
1413
  contents.ChannelArn = __expectString(data.ChannelArn);
1420
1414
  }
1421
1415
  if (data.Member != null) {
1422
- contents.Member = deserializeAws_restJson1Identity(data.Member, context);
1416
+ contents.Member = de_Identity(data.Member, context);
1423
1417
  }
1424
1418
  return contents;
1425
1419
  };
1426
- const deserializeAws_restJson1CreateChannelBanCommandError = async (output, context) => {
1420
+ const de_CreateChannelBanCommandError = async (output, context) => {
1427
1421
  const parsedOutput = {
1428
1422
  ...output,
1429
1423
  body: await parseErrorBody(output.body, context),
@@ -1432,28 +1426,28 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
1432
1426
  switch (errorCode) {
1433
1427
  case "BadRequestException":
1434
1428
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1435
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1429
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1436
1430
  case "ConflictException":
1437
1431
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1438
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1432
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1439
1433
  case "ForbiddenException":
1440
1434
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1441
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1435
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1442
1436
  case "ResourceLimitExceededException":
1443
1437
  case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
1444
- throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
1438
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1445
1439
  case "ServiceFailureException":
1446
1440
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1447
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1441
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1448
1442
  case "ServiceUnavailableException":
1449
1443
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1450
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1444
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1451
1445
  case "ThrottledClientException":
1452
1446
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1453
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1447
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1454
1448
  case "UnauthorizedClientException":
1455
1449
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1456
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1450
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1457
1451
  default:
1458
1452
  const parsedBody = parsedOutput.body;
1459
1453
  throwDefaultError({
@@ -1464,9 +1458,9 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
1464
1458
  });
1465
1459
  }
1466
1460
  };
1467
- export const deserializeAws_restJson1CreateChannelFlowCommand = async (output, context) => {
1461
+ export const de_CreateChannelFlowCommand = async (output, context) => {
1468
1462
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1469
- return deserializeAws_restJson1CreateChannelFlowCommandError(output, context);
1463
+ return de_CreateChannelFlowCommandError(output, context);
1470
1464
  }
1471
1465
  const contents = map({
1472
1466
  $metadata: deserializeMetadata(output),
@@ -1477,7 +1471,7 @@ export const deserializeAws_restJson1CreateChannelFlowCommand = async (output, c
1477
1471
  }
1478
1472
  return contents;
1479
1473
  };
1480
- const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, context) => {
1474
+ const de_CreateChannelFlowCommandError = async (output, context) => {
1481
1475
  const parsedOutput = {
1482
1476
  ...output,
1483
1477
  body: await parseErrorBody(output.body, context),
@@ -1486,28 +1480,28 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
1486
1480
  switch (errorCode) {
1487
1481
  case "BadRequestException":
1488
1482
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1489
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1483
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1490
1484
  case "ConflictException":
1491
1485
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1492
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1486
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1493
1487
  case "ForbiddenException":
1494
1488
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1495
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1489
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1496
1490
  case "ResourceLimitExceededException":
1497
1491
  case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
1498
- throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
1492
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1499
1493
  case "ServiceFailureException":
1500
1494
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1501
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1495
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1502
1496
  case "ServiceUnavailableException":
1503
1497
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1504
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1498
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1505
1499
  case "ThrottledClientException":
1506
1500
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1507
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1501
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1508
1502
  case "UnauthorizedClientException":
1509
1503
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1510
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1504
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1511
1505
  default:
1512
1506
  const parsedBody = parsedOutput.body;
1513
1507
  throwDefaultError({
@@ -1518,9 +1512,9 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
1518
1512
  });
1519
1513
  }
1520
1514
  };
1521
- export const deserializeAws_restJson1CreateChannelMembershipCommand = async (output, context) => {
1515
+ export const de_CreateChannelMembershipCommand = async (output, context) => {
1522
1516
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1523
- return deserializeAws_restJson1CreateChannelMembershipCommandError(output, context);
1517
+ return de_CreateChannelMembershipCommandError(output, context);
1524
1518
  }
1525
1519
  const contents = map({
1526
1520
  $metadata: deserializeMetadata(output),
@@ -1530,14 +1524,14 @@ export const deserializeAws_restJson1CreateChannelMembershipCommand = async (out
1530
1524
  contents.ChannelArn = __expectString(data.ChannelArn);
1531
1525
  }
1532
1526
  if (data.Member != null) {
1533
- contents.Member = deserializeAws_restJson1Identity(data.Member, context);
1527
+ contents.Member = de_Identity(data.Member, context);
1534
1528
  }
1535
1529
  if (data.SubChannelId != null) {
1536
1530
  contents.SubChannelId = __expectString(data.SubChannelId);
1537
1531
  }
1538
1532
  return contents;
1539
1533
  };
1540
- const deserializeAws_restJson1CreateChannelMembershipCommandError = async (output, context) => {
1534
+ const de_CreateChannelMembershipCommandError = async (output, context) => {
1541
1535
  const parsedOutput = {
1542
1536
  ...output,
1543
1537
  body: await parseErrorBody(output.body, context),
@@ -1546,31 +1540,31 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
1546
1540
  switch (errorCode) {
1547
1541
  case "BadRequestException":
1548
1542
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1549
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1543
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1550
1544
  case "ConflictException":
1551
1545
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1552
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1546
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1553
1547
  case "ForbiddenException":
1554
1548
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1555
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1549
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1556
1550
  case "NotFoundException":
1557
1551
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
1558
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1552
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1559
1553
  case "ResourceLimitExceededException":
1560
1554
  case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
1561
- throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
1555
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1562
1556
  case "ServiceFailureException":
1563
1557
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1564
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1558
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1565
1559
  case "ServiceUnavailableException":
1566
1560
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1567
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1561
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1568
1562
  case "ThrottledClientException":
1569
1563
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1570
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1564
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1571
1565
  case "UnauthorizedClientException":
1572
1566
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1573
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1567
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1574
1568
  default:
1575
1569
  const parsedBody = parsedOutput.body;
1576
1570
  throwDefaultError({
@@ -1581,9 +1575,9 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
1581
1575
  });
1582
1576
  }
1583
1577
  };
1584
- export const deserializeAws_restJson1CreateChannelModeratorCommand = async (output, context) => {
1578
+ export const de_CreateChannelModeratorCommand = async (output, context) => {
1585
1579
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1586
- return deserializeAws_restJson1CreateChannelModeratorCommandError(output, context);
1580
+ return de_CreateChannelModeratorCommandError(output, context);
1587
1581
  }
1588
1582
  const contents = map({
1589
1583
  $metadata: deserializeMetadata(output),
@@ -1593,11 +1587,11 @@ export const deserializeAws_restJson1CreateChannelModeratorCommand = async (outp
1593
1587
  contents.ChannelArn = __expectString(data.ChannelArn);
1594
1588
  }
1595
1589
  if (data.ChannelModerator != null) {
1596
- contents.ChannelModerator = deserializeAws_restJson1Identity(data.ChannelModerator, context);
1590
+ contents.ChannelModerator = de_Identity(data.ChannelModerator, context);
1597
1591
  }
1598
1592
  return contents;
1599
1593
  };
1600
- const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output, context) => {
1594
+ const de_CreateChannelModeratorCommandError = async (output, context) => {
1601
1595
  const parsedOutput = {
1602
1596
  ...output,
1603
1597
  body: await parseErrorBody(output.body, context),
@@ -1606,28 +1600,28 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
1606
1600
  switch (errorCode) {
1607
1601
  case "BadRequestException":
1608
1602
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1609
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1603
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1610
1604
  case "ConflictException":
1611
1605
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1612
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1606
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1613
1607
  case "ForbiddenException":
1614
1608
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1615
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1609
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1616
1610
  case "ResourceLimitExceededException":
1617
1611
  case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
1618
- throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
1612
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1619
1613
  case "ServiceFailureException":
1620
1614
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1621
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1615
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1622
1616
  case "ServiceUnavailableException":
1623
1617
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1624
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1618
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1625
1619
  case "ThrottledClientException":
1626
1620
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1627
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1621
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1628
1622
  case "UnauthorizedClientException":
1629
1623
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1630
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1624
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1631
1625
  default:
1632
1626
  const parsedBody = parsedOutput.body;
1633
1627
  throwDefaultError({
@@ -1638,9 +1632,9 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
1638
1632
  });
1639
1633
  }
1640
1634
  };
1641
- export const deserializeAws_restJson1DeleteChannelCommand = async (output, context) => {
1635
+ export const de_DeleteChannelCommand = async (output, context) => {
1642
1636
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1643
- return deserializeAws_restJson1DeleteChannelCommandError(output, context);
1637
+ return de_DeleteChannelCommandError(output, context);
1644
1638
  }
1645
1639
  const contents = map({
1646
1640
  $metadata: deserializeMetadata(output),
@@ -1648,7 +1642,7 @@ export const deserializeAws_restJson1DeleteChannelCommand = async (output, conte
1648
1642
  await collectBody(output.body, context);
1649
1643
  return contents;
1650
1644
  };
1651
- const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
1645
+ const de_DeleteChannelCommandError = async (output, context) => {
1652
1646
  const parsedOutput = {
1653
1647
  ...output,
1654
1648
  body: await parseErrorBody(output.body, context),
@@ -1657,22 +1651,22 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
1657
1651
  switch (errorCode) {
1658
1652
  case "BadRequestException":
1659
1653
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1660
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1654
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1661
1655
  case "ForbiddenException":
1662
1656
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1663
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1657
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1664
1658
  case "ServiceFailureException":
1665
1659
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1666
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1660
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1667
1661
  case "ServiceUnavailableException":
1668
1662
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1669
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1663
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1670
1664
  case "ThrottledClientException":
1671
1665
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1672
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1666
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1673
1667
  case "UnauthorizedClientException":
1674
1668
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1675
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1669
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1676
1670
  default:
1677
1671
  const parsedBody = parsedOutput.body;
1678
1672
  throwDefaultError({
@@ -1683,9 +1677,9 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
1683
1677
  });
1684
1678
  }
1685
1679
  };
1686
- export const deserializeAws_restJson1DeleteChannelBanCommand = async (output, context) => {
1680
+ export const de_DeleteChannelBanCommand = async (output, context) => {
1687
1681
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1688
- return deserializeAws_restJson1DeleteChannelBanCommandError(output, context);
1682
+ return de_DeleteChannelBanCommandError(output, context);
1689
1683
  }
1690
1684
  const contents = map({
1691
1685
  $metadata: deserializeMetadata(output),
@@ -1693,7 +1687,7 @@ export const deserializeAws_restJson1DeleteChannelBanCommand = async (output, co
1693
1687
  await collectBody(output.body, context);
1694
1688
  return contents;
1695
1689
  };
1696
- const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, context) => {
1690
+ const de_DeleteChannelBanCommandError = async (output, context) => {
1697
1691
  const parsedOutput = {
1698
1692
  ...output,
1699
1693
  body: await parseErrorBody(output.body, context),
@@ -1702,22 +1696,22 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
1702
1696
  switch (errorCode) {
1703
1697
  case "BadRequestException":
1704
1698
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1705
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1699
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1706
1700
  case "ForbiddenException":
1707
1701
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1708
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1702
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1709
1703
  case "ServiceFailureException":
1710
1704
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1711
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1705
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1712
1706
  case "ServiceUnavailableException":
1713
1707
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1714
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1708
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1715
1709
  case "ThrottledClientException":
1716
1710
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1717
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1711
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1718
1712
  case "UnauthorizedClientException":
1719
1713
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1720
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1714
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1721
1715
  default:
1722
1716
  const parsedBody = parsedOutput.body;
1723
1717
  throwDefaultError({
@@ -1728,9 +1722,9 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
1728
1722
  });
1729
1723
  }
1730
1724
  };
1731
- export const deserializeAws_restJson1DeleteChannelFlowCommand = async (output, context) => {
1725
+ export const de_DeleteChannelFlowCommand = async (output, context) => {
1732
1726
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1733
- return deserializeAws_restJson1DeleteChannelFlowCommandError(output, context);
1727
+ return de_DeleteChannelFlowCommandError(output, context);
1734
1728
  }
1735
1729
  const contents = map({
1736
1730
  $metadata: deserializeMetadata(output),
@@ -1738,7 +1732,7 @@ export const deserializeAws_restJson1DeleteChannelFlowCommand = async (output, c
1738
1732
  await collectBody(output.body, context);
1739
1733
  return contents;
1740
1734
  };
1741
- const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, context) => {
1735
+ const de_DeleteChannelFlowCommandError = async (output, context) => {
1742
1736
  const parsedOutput = {
1743
1737
  ...output,
1744
1738
  body: await parseErrorBody(output.body, context),
@@ -1747,25 +1741,25 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
1747
1741
  switch (errorCode) {
1748
1742
  case "BadRequestException":
1749
1743
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1750
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1744
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1751
1745
  case "ConflictException":
1752
1746
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1753
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1747
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1754
1748
  case "ForbiddenException":
1755
1749
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1756
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1750
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1757
1751
  case "ServiceFailureException":
1758
1752
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1759
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1753
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1760
1754
  case "ServiceUnavailableException":
1761
1755
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1762
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1756
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1763
1757
  case "ThrottledClientException":
1764
1758
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1765
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1759
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1766
1760
  case "UnauthorizedClientException":
1767
1761
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1768
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1762
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1769
1763
  default:
1770
1764
  const parsedBody = parsedOutput.body;
1771
1765
  throwDefaultError({
@@ -1776,9 +1770,9 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
1776
1770
  });
1777
1771
  }
1778
1772
  };
1779
- export const deserializeAws_restJson1DeleteChannelMembershipCommand = async (output, context) => {
1773
+ export const de_DeleteChannelMembershipCommand = async (output, context) => {
1780
1774
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1781
- return deserializeAws_restJson1DeleteChannelMembershipCommandError(output, context);
1775
+ return de_DeleteChannelMembershipCommandError(output, context);
1782
1776
  }
1783
1777
  const contents = map({
1784
1778
  $metadata: deserializeMetadata(output),
@@ -1786,7 +1780,7 @@ export const deserializeAws_restJson1DeleteChannelMembershipCommand = async (out
1786
1780
  await collectBody(output.body, context);
1787
1781
  return contents;
1788
1782
  };
1789
- const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (output, context) => {
1783
+ const de_DeleteChannelMembershipCommandError = async (output, context) => {
1790
1784
  const parsedOutput = {
1791
1785
  ...output,
1792
1786
  body: await parseErrorBody(output.body, context),
@@ -1795,25 +1789,25 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
1795
1789
  switch (errorCode) {
1796
1790
  case "BadRequestException":
1797
1791
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1798
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1792
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1799
1793
  case "ConflictException":
1800
1794
  case "com.amazonaws.chimesdkmessaging#ConflictException":
1801
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1795
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1802
1796
  case "ForbiddenException":
1803
1797
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1804
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1798
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1805
1799
  case "ServiceFailureException":
1806
1800
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1807
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1801
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1808
1802
  case "ServiceUnavailableException":
1809
1803
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1810
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1804
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1811
1805
  case "ThrottledClientException":
1812
1806
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1813
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1807
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1814
1808
  case "UnauthorizedClientException":
1815
1809
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1816
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1810
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1817
1811
  default:
1818
1812
  const parsedBody = parsedOutput.body;
1819
1813
  throwDefaultError({
@@ -1824,9 +1818,9 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
1824
1818
  });
1825
1819
  }
1826
1820
  };
1827
- export const deserializeAws_restJson1DeleteChannelMessageCommand = async (output, context) => {
1821
+ export const de_DeleteChannelMessageCommand = async (output, context) => {
1828
1822
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1829
- return deserializeAws_restJson1DeleteChannelMessageCommandError(output, context);
1823
+ return de_DeleteChannelMessageCommandError(output, context);
1830
1824
  }
1831
1825
  const contents = map({
1832
1826
  $metadata: deserializeMetadata(output),
@@ -1834,7 +1828,7 @@ export const deserializeAws_restJson1DeleteChannelMessageCommand = async (output
1834
1828
  await collectBody(output.body, context);
1835
1829
  return contents;
1836
1830
  };
1837
- const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output, context) => {
1831
+ const de_DeleteChannelMessageCommandError = async (output, context) => {
1838
1832
  const parsedOutput = {
1839
1833
  ...output,
1840
1834
  body: await parseErrorBody(output.body, context),
@@ -1843,22 +1837,22 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
1843
1837
  switch (errorCode) {
1844
1838
  case "BadRequestException":
1845
1839
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1846
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1840
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1847
1841
  case "ForbiddenException":
1848
1842
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1849
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1843
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1850
1844
  case "ServiceFailureException":
1851
1845
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1852
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1846
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1853
1847
  case "ServiceUnavailableException":
1854
1848
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1855
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1849
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1856
1850
  case "ThrottledClientException":
1857
1851
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1858
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1852
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1859
1853
  case "UnauthorizedClientException":
1860
1854
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1861
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1855
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1862
1856
  default:
1863
1857
  const parsedBody = parsedOutput.body;
1864
1858
  throwDefaultError({
@@ -1869,9 +1863,9 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
1869
1863
  });
1870
1864
  }
1871
1865
  };
1872
- export const deserializeAws_restJson1DeleteChannelModeratorCommand = async (output, context) => {
1866
+ export const de_DeleteChannelModeratorCommand = async (output, context) => {
1873
1867
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1874
- return deserializeAws_restJson1DeleteChannelModeratorCommandError(output, context);
1868
+ return de_DeleteChannelModeratorCommandError(output, context);
1875
1869
  }
1876
1870
  const contents = map({
1877
1871
  $metadata: deserializeMetadata(output),
@@ -1879,7 +1873,7 @@ export const deserializeAws_restJson1DeleteChannelModeratorCommand = async (outp
1879
1873
  await collectBody(output.body, context);
1880
1874
  return contents;
1881
1875
  };
1882
- const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output, context) => {
1876
+ const de_DeleteChannelModeratorCommandError = async (output, context) => {
1883
1877
  const parsedOutput = {
1884
1878
  ...output,
1885
1879
  body: await parseErrorBody(output.body, context),
@@ -1888,22 +1882,22 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
1888
1882
  switch (errorCode) {
1889
1883
  case "BadRequestException":
1890
1884
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1891
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1885
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1892
1886
  case "ForbiddenException":
1893
1887
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1894
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1888
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1895
1889
  case "ServiceFailureException":
1896
1890
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1897
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1891
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1898
1892
  case "ServiceUnavailableException":
1899
1893
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1900
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1894
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1901
1895
  case "ThrottledClientException":
1902
1896
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1903
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1897
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1904
1898
  case "UnauthorizedClientException":
1905
1899
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1906
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1900
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1907
1901
  default:
1908
1902
  const parsedBody = parsedOutput.body;
1909
1903
  throwDefaultError({
@@ -1914,9 +1908,9 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
1914
1908
  });
1915
1909
  }
1916
1910
  };
1917
- export const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
1911
+ export const de_DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
1918
1912
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1919
- return deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError(output, context);
1913
+ return de_DeleteMessagingStreamingConfigurationsCommandError(output, context);
1920
1914
  }
1921
1915
  const contents = map({
1922
1916
  $metadata: deserializeMetadata(output),
@@ -1924,7 +1918,7 @@ export const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsComma
1924
1918
  await collectBody(output.body, context);
1925
1919
  return contents;
1926
1920
  };
1927
- const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
1921
+ const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
1928
1922
  const parsedOutput = {
1929
1923
  ...output,
1930
1924
  body: await parseErrorBody(output.body, context),
@@ -1933,19 +1927,19 @@ const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError
1933
1927
  switch (errorCode) {
1934
1928
  case "ForbiddenException":
1935
1929
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1936
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1930
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1937
1931
  case "ServiceFailureException":
1938
1932
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1939
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1933
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1940
1934
  case "ServiceUnavailableException":
1941
1935
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1942
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1936
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1943
1937
  case "ThrottledClientException":
1944
1938
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1945
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1939
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1946
1940
  case "UnauthorizedClientException":
1947
1941
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1948
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1942
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1949
1943
  default:
1950
1944
  const parsedBody = parsedOutput.body;
1951
1945
  throwDefaultError({
@@ -1956,20 +1950,20 @@ const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError
1956
1950
  });
1957
1951
  }
1958
1952
  };
1959
- export const deserializeAws_restJson1DescribeChannelCommand = async (output, context) => {
1953
+ export const de_DescribeChannelCommand = async (output, context) => {
1960
1954
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1961
- return deserializeAws_restJson1DescribeChannelCommandError(output, context);
1955
+ return de_DescribeChannelCommandError(output, context);
1962
1956
  }
1963
1957
  const contents = map({
1964
1958
  $metadata: deserializeMetadata(output),
1965
1959
  });
1966
1960
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1967
1961
  if (data.Channel != null) {
1968
- contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
1962
+ contents.Channel = de_Channel(data.Channel, context);
1969
1963
  }
1970
1964
  return contents;
1971
1965
  };
1972
- const deserializeAws_restJson1DescribeChannelCommandError = async (output, context) => {
1966
+ const de_DescribeChannelCommandError = async (output, context) => {
1973
1967
  const parsedOutput = {
1974
1968
  ...output,
1975
1969
  body: await parseErrorBody(output.body, context),
@@ -1978,22 +1972,22 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
1978
1972
  switch (errorCode) {
1979
1973
  case "BadRequestException":
1980
1974
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1981
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1975
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1982
1976
  case "ForbiddenException":
1983
1977
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1984
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1978
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1985
1979
  case "ServiceFailureException":
1986
1980
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
1987
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
1981
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1988
1982
  case "ServiceUnavailableException":
1989
1983
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
1990
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1984
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1991
1985
  case "ThrottledClientException":
1992
1986
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
1993
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
1987
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
1994
1988
  case "UnauthorizedClientException":
1995
1989
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
1996
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
1990
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
1997
1991
  default:
1998
1992
  const parsedBody = parsedOutput.body;
1999
1993
  throwDefaultError({
@@ -2004,20 +1998,20 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
2004
1998
  });
2005
1999
  }
2006
2000
  };
2007
- export const deserializeAws_restJson1DescribeChannelBanCommand = async (output, context) => {
2001
+ export const de_DescribeChannelBanCommand = async (output, context) => {
2008
2002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2009
- return deserializeAws_restJson1DescribeChannelBanCommandError(output, context);
2003
+ return de_DescribeChannelBanCommandError(output, context);
2010
2004
  }
2011
2005
  const contents = map({
2012
2006
  $metadata: deserializeMetadata(output),
2013
2007
  });
2014
2008
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2015
2009
  if (data.ChannelBan != null) {
2016
- contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
2010
+ contents.ChannelBan = de_ChannelBan(data.ChannelBan, context);
2017
2011
  }
2018
2012
  return contents;
2019
2013
  };
2020
- const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, context) => {
2014
+ const de_DescribeChannelBanCommandError = async (output, context) => {
2021
2015
  const parsedOutput = {
2022
2016
  ...output,
2023
2017
  body: await parseErrorBody(output.body, context),
@@ -2026,25 +2020,25 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
2026
2020
  switch (errorCode) {
2027
2021
  case "BadRequestException":
2028
2022
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2029
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2023
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2030
2024
  case "ForbiddenException":
2031
2025
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2032
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2026
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2033
2027
  case "NotFoundException":
2034
2028
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
2035
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2029
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2036
2030
  case "ServiceFailureException":
2037
2031
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2038
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2032
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2039
2033
  case "ServiceUnavailableException":
2040
2034
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2041
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2035
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2042
2036
  case "ThrottledClientException":
2043
2037
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2044
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2038
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2045
2039
  case "UnauthorizedClientException":
2046
2040
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2047
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2041
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2048
2042
  default:
2049
2043
  const parsedBody = parsedOutput.body;
2050
2044
  throwDefaultError({
@@ -2055,20 +2049,20 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
2055
2049
  });
2056
2050
  }
2057
2051
  };
2058
- export const deserializeAws_restJson1DescribeChannelFlowCommand = async (output, context) => {
2052
+ export const de_DescribeChannelFlowCommand = async (output, context) => {
2059
2053
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2060
- return deserializeAws_restJson1DescribeChannelFlowCommandError(output, context);
2054
+ return de_DescribeChannelFlowCommandError(output, context);
2061
2055
  }
2062
2056
  const contents = map({
2063
2057
  $metadata: deserializeMetadata(output),
2064
2058
  });
2065
2059
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2066
2060
  if (data.ChannelFlow != null) {
2067
- contents.ChannelFlow = deserializeAws_restJson1ChannelFlow(data.ChannelFlow, context);
2061
+ contents.ChannelFlow = de_ChannelFlow(data.ChannelFlow, context);
2068
2062
  }
2069
2063
  return contents;
2070
2064
  };
2071
- const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, context) => {
2065
+ const de_DescribeChannelFlowCommandError = async (output, context) => {
2072
2066
  const parsedOutput = {
2073
2067
  ...output,
2074
2068
  body: await parseErrorBody(output.body, context),
@@ -2077,22 +2071,22 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
2077
2071
  switch (errorCode) {
2078
2072
  case "BadRequestException":
2079
2073
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2080
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2074
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2081
2075
  case "ForbiddenException":
2082
2076
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2083
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2077
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2084
2078
  case "ServiceFailureException":
2085
2079
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2086
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2080
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2087
2081
  case "ServiceUnavailableException":
2088
2082
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2089
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2083
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2090
2084
  case "ThrottledClientException":
2091
2085
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2092
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2086
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2093
2087
  case "UnauthorizedClientException":
2094
2088
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2095
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2089
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2096
2090
  default:
2097
2091
  const parsedBody = parsedOutput.body;
2098
2092
  throwDefaultError({
@@ -2103,20 +2097,20 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
2103
2097
  });
2104
2098
  }
2105
2099
  };
2106
- export const deserializeAws_restJson1DescribeChannelMembershipCommand = async (output, context) => {
2100
+ export const de_DescribeChannelMembershipCommand = async (output, context) => {
2107
2101
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2108
- return deserializeAws_restJson1DescribeChannelMembershipCommandError(output, context);
2102
+ return de_DescribeChannelMembershipCommandError(output, context);
2109
2103
  }
2110
2104
  const contents = map({
2111
2105
  $metadata: deserializeMetadata(output),
2112
2106
  });
2113
2107
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2114
2108
  if (data.ChannelMembership != null) {
2115
- contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
2109
+ contents.ChannelMembership = de_ChannelMembership(data.ChannelMembership, context);
2116
2110
  }
2117
2111
  return contents;
2118
2112
  };
2119
- const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (output, context) => {
2113
+ const de_DescribeChannelMembershipCommandError = async (output, context) => {
2120
2114
  const parsedOutput = {
2121
2115
  ...output,
2122
2116
  body: await parseErrorBody(output.body, context),
@@ -2125,25 +2119,25 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
2125
2119
  switch (errorCode) {
2126
2120
  case "BadRequestException":
2127
2121
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2128
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2122
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2129
2123
  case "ForbiddenException":
2130
2124
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2131
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2125
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2132
2126
  case "NotFoundException":
2133
2127
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
2134
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2128
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2135
2129
  case "ServiceFailureException":
2136
2130
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2137
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2131
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2138
2132
  case "ServiceUnavailableException":
2139
2133
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2140
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2134
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2141
2135
  case "ThrottledClientException":
2142
2136
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2143
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2137
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2144
2138
  case "UnauthorizedClientException":
2145
2139
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2146
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2140
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2147
2141
  default:
2148
2142
  const parsedBody = parsedOutput.body;
2149
2143
  throwDefaultError({
@@ -2154,20 +2148,20 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
2154
2148
  });
2155
2149
  }
2156
2150
  };
2157
- export const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
2151
+ export const de_DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
2158
2152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2159
- return deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError(output, context);
2153
+ return de_DescribeChannelMembershipForAppInstanceUserCommandError(output, context);
2160
2154
  }
2161
2155
  const contents = map({
2162
2156
  $metadata: deserializeMetadata(output),
2163
2157
  });
2164
2158
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2165
2159
  if (data.ChannelMembership != null) {
2166
- contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
2160
+ contents.ChannelMembership = de_ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
2167
2161
  }
2168
2162
  return contents;
2169
2163
  };
2170
- const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError = async (output, context) => {
2164
+ const de_DescribeChannelMembershipForAppInstanceUserCommandError = async (output, context) => {
2171
2165
  const parsedOutput = {
2172
2166
  ...output,
2173
2167
  body: await parseErrorBody(output.body, context),
@@ -2176,22 +2170,22 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
2176
2170
  switch (errorCode) {
2177
2171
  case "BadRequestException":
2178
2172
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2179
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2173
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2180
2174
  case "ForbiddenException":
2181
2175
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2182
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2176
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2183
2177
  case "ServiceFailureException":
2184
2178
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2185
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2179
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2186
2180
  case "ServiceUnavailableException":
2187
2181
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2188
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2182
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2189
2183
  case "ThrottledClientException":
2190
2184
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2191
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2185
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2192
2186
  case "UnauthorizedClientException":
2193
2187
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2194
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2188
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2195
2189
  default:
2196
2190
  const parsedBody = parsedOutput.body;
2197
2191
  throwDefaultError({
@@ -2202,20 +2196,20 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
2202
2196
  });
2203
2197
  }
2204
2198
  };
2205
- export const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
2199
+ export const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
2206
2200
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2207
- return deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError(output, context);
2201
+ return de_DescribeChannelModeratedByAppInstanceUserCommandError(output, context);
2208
2202
  }
2209
2203
  const contents = map({
2210
2204
  $metadata: deserializeMetadata(output),
2211
2205
  });
2212
2206
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2213
2207
  if (data.Channel != null) {
2214
- contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
2208
+ contents.Channel = de_ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
2215
2209
  }
2216
2210
  return contents;
2217
2211
  };
2218
- const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError = async (output, context) => {
2212
+ const de_DescribeChannelModeratedByAppInstanceUserCommandError = async (output, context) => {
2219
2213
  const parsedOutput = {
2220
2214
  ...output,
2221
2215
  body: await parseErrorBody(output.body, context),
@@ -2224,22 +2218,22 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
2224
2218
  switch (errorCode) {
2225
2219
  case "BadRequestException":
2226
2220
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2227
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2221
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2228
2222
  case "ForbiddenException":
2229
2223
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2230
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2224
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2231
2225
  case "ServiceFailureException":
2232
2226
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2233
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2227
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2234
2228
  case "ServiceUnavailableException":
2235
2229
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2236
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2230
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2237
2231
  case "ThrottledClientException":
2238
2232
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2239
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2233
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2240
2234
  case "UnauthorizedClientException":
2241
2235
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2242
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2236
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2243
2237
  default:
2244
2238
  const parsedBody = parsedOutput.body;
2245
2239
  throwDefaultError({
@@ -2250,20 +2244,20 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
2250
2244
  });
2251
2245
  }
2252
2246
  };
2253
- export const deserializeAws_restJson1DescribeChannelModeratorCommand = async (output, context) => {
2247
+ export const de_DescribeChannelModeratorCommand = async (output, context) => {
2254
2248
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2255
- return deserializeAws_restJson1DescribeChannelModeratorCommandError(output, context);
2249
+ return de_DescribeChannelModeratorCommandError(output, context);
2256
2250
  }
2257
2251
  const contents = map({
2258
2252
  $metadata: deserializeMetadata(output),
2259
2253
  });
2260
2254
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2261
2255
  if (data.ChannelModerator != null) {
2262
- contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
2256
+ contents.ChannelModerator = de_ChannelModerator(data.ChannelModerator, context);
2263
2257
  }
2264
2258
  return contents;
2265
2259
  };
2266
- const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (output, context) => {
2260
+ const de_DescribeChannelModeratorCommandError = async (output, context) => {
2267
2261
  const parsedOutput = {
2268
2262
  ...output,
2269
2263
  body: await parseErrorBody(output.body, context),
@@ -2272,25 +2266,25 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
2272
2266
  switch (errorCode) {
2273
2267
  case "BadRequestException":
2274
2268
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2275
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2269
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2276
2270
  case "ForbiddenException":
2277
2271
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2278
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2272
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2279
2273
  case "NotFoundException":
2280
2274
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
2281
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2275
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2282
2276
  case "ServiceFailureException":
2283
2277
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2284
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2278
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2285
2279
  case "ServiceUnavailableException":
2286
2280
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2287
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2281
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2288
2282
  case "ThrottledClientException":
2289
2283
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2290
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2284
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2291
2285
  case "UnauthorizedClientException":
2292
2286
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2293
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2287
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2294
2288
  default:
2295
2289
  const parsedBody = parsedOutput.body;
2296
2290
  throwDefaultError({
@@ -2301,9 +2295,9 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
2301
2295
  });
2302
2296
  }
2303
2297
  };
2304
- export const deserializeAws_restJson1DisassociateChannelFlowCommand = async (output, context) => {
2298
+ export const de_DisassociateChannelFlowCommand = async (output, context) => {
2305
2299
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2306
- return deserializeAws_restJson1DisassociateChannelFlowCommandError(output, context);
2300
+ return de_DisassociateChannelFlowCommandError(output, context);
2307
2301
  }
2308
2302
  const contents = map({
2309
2303
  $metadata: deserializeMetadata(output),
@@ -2311,7 +2305,7 @@ export const deserializeAws_restJson1DisassociateChannelFlowCommand = async (out
2311
2305
  await collectBody(output.body, context);
2312
2306
  return contents;
2313
2307
  };
2314
- const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (output, context) => {
2308
+ const de_DisassociateChannelFlowCommandError = async (output, context) => {
2315
2309
  const parsedOutput = {
2316
2310
  ...output,
2317
2311
  body: await parseErrorBody(output.body, context),
@@ -2320,28 +2314,28 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
2320
2314
  switch (errorCode) {
2321
2315
  case "BadRequestException":
2322
2316
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2323
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2317
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2324
2318
  case "ConflictException":
2325
2319
  case "com.amazonaws.chimesdkmessaging#ConflictException":
2326
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2320
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2327
2321
  case "ForbiddenException":
2328
2322
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2329
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2323
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2330
2324
  case "NotFoundException":
2331
2325
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
2332
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2326
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2333
2327
  case "ServiceFailureException":
2334
2328
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2335
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2329
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2336
2330
  case "ServiceUnavailableException":
2337
2331
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2338
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2332
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2339
2333
  case "ThrottledClientException":
2340
2334
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2341
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2335
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2342
2336
  case "UnauthorizedClientException":
2343
2337
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2344
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2338
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2345
2339
  default:
2346
2340
  const parsedBody = parsedOutput.body;
2347
2341
  throwDefaultError({
@@ -2352,9 +2346,9 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
2352
2346
  });
2353
2347
  }
2354
2348
  };
2355
- export const deserializeAws_restJson1GetChannelMembershipPreferencesCommand = async (output, context) => {
2349
+ export const de_GetChannelMembershipPreferencesCommand = async (output, context) => {
2356
2350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2357
- return deserializeAws_restJson1GetChannelMembershipPreferencesCommandError(output, context);
2351
+ return de_GetChannelMembershipPreferencesCommandError(output, context);
2358
2352
  }
2359
2353
  const contents = map({
2360
2354
  $metadata: deserializeMetadata(output),
@@ -2364,14 +2358,14 @@ export const deserializeAws_restJson1GetChannelMembershipPreferencesCommand = as
2364
2358
  contents.ChannelArn = __expectString(data.ChannelArn);
2365
2359
  }
2366
2360
  if (data.Member != null) {
2367
- contents.Member = deserializeAws_restJson1Identity(data.Member, context);
2361
+ contents.Member = de_Identity(data.Member, context);
2368
2362
  }
2369
2363
  if (data.Preferences != null) {
2370
- contents.Preferences = deserializeAws_restJson1ChannelMembershipPreferences(data.Preferences, context);
2364
+ contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
2371
2365
  }
2372
2366
  return contents;
2373
2367
  };
2374
- const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = async (output, context) => {
2368
+ const de_GetChannelMembershipPreferencesCommandError = async (output, context) => {
2375
2369
  const parsedOutput = {
2376
2370
  ...output,
2377
2371
  body: await parseErrorBody(output.body, context),
@@ -2380,22 +2374,22 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
2380
2374
  switch (errorCode) {
2381
2375
  case "BadRequestException":
2382
2376
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2383
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2377
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2384
2378
  case "ForbiddenException":
2385
2379
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2386
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2380
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2387
2381
  case "ServiceFailureException":
2388
2382
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2389
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2383
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2390
2384
  case "ServiceUnavailableException":
2391
2385
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2392
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2386
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2393
2387
  case "ThrottledClientException":
2394
2388
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2395
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2389
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2396
2390
  case "UnauthorizedClientException":
2397
2391
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2398
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2392
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2399
2393
  default:
2400
2394
  const parsedBody = parsedOutput.body;
2401
2395
  throwDefaultError({
@@ -2406,20 +2400,20 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
2406
2400
  });
2407
2401
  }
2408
2402
  };
2409
- export const deserializeAws_restJson1GetChannelMessageCommand = async (output, context) => {
2403
+ export const de_GetChannelMessageCommand = async (output, context) => {
2410
2404
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2411
- return deserializeAws_restJson1GetChannelMessageCommandError(output, context);
2405
+ return de_GetChannelMessageCommandError(output, context);
2412
2406
  }
2413
2407
  const contents = map({
2414
2408
  $metadata: deserializeMetadata(output),
2415
2409
  });
2416
2410
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2417
2411
  if (data.ChannelMessage != null) {
2418
- contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
2412
+ contents.ChannelMessage = de_ChannelMessage(data.ChannelMessage, context);
2419
2413
  }
2420
2414
  return contents;
2421
2415
  };
2422
- const deserializeAws_restJson1GetChannelMessageCommandError = async (output, context) => {
2416
+ const de_GetChannelMessageCommandError = async (output, context) => {
2423
2417
  const parsedOutput = {
2424
2418
  ...output,
2425
2419
  body: await parseErrorBody(output.body, context),
@@ -2428,25 +2422,25 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
2428
2422
  switch (errorCode) {
2429
2423
  case "BadRequestException":
2430
2424
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2431
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2425
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2432
2426
  case "ForbiddenException":
2433
2427
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2434
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2428
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2435
2429
  case "NotFoundException":
2436
2430
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
2437
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2431
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2438
2432
  case "ServiceFailureException":
2439
2433
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2440
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2434
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2441
2435
  case "ServiceUnavailableException":
2442
2436
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2443
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2437
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2444
2438
  case "ThrottledClientException":
2445
2439
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2446
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2440
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2447
2441
  case "UnauthorizedClientException":
2448
2442
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2449
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2443
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2450
2444
  default:
2451
2445
  const parsedBody = parsedOutput.body;
2452
2446
  throwDefaultError({
@@ -2457,20 +2451,20 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
2457
2451
  });
2458
2452
  }
2459
2453
  };
2460
- export const deserializeAws_restJson1GetChannelMessageStatusCommand = async (output, context) => {
2454
+ export const de_GetChannelMessageStatusCommand = async (output, context) => {
2461
2455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2462
- return deserializeAws_restJson1GetChannelMessageStatusCommandError(output, context);
2456
+ return de_GetChannelMessageStatusCommandError(output, context);
2463
2457
  }
2464
2458
  const contents = map({
2465
2459
  $metadata: deserializeMetadata(output),
2466
2460
  });
2467
2461
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2468
2462
  if (data.Status != null) {
2469
- contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
2463
+ contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
2470
2464
  }
2471
2465
  return contents;
2472
2466
  };
2473
- const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (output, context) => {
2467
+ const de_GetChannelMessageStatusCommandError = async (output, context) => {
2474
2468
  const parsedOutput = {
2475
2469
  ...output,
2476
2470
  body: await parseErrorBody(output.body, context),
@@ -2479,22 +2473,22 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
2479
2473
  switch (errorCode) {
2480
2474
  case "BadRequestException":
2481
2475
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2482
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2476
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2483
2477
  case "ForbiddenException":
2484
2478
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2485
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2479
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2486
2480
  case "ServiceFailureException":
2487
2481
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2488
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2482
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2489
2483
  case "ServiceUnavailableException":
2490
2484
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2491
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2485
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2492
2486
  case "ThrottledClientException":
2493
2487
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2494
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2488
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2495
2489
  case "UnauthorizedClientException":
2496
2490
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2497
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2491
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2498
2492
  default:
2499
2493
  const parsedBody = parsedOutput.body;
2500
2494
  throwDefaultError({
@@ -2505,20 +2499,20 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
2505
2499
  });
2506
2500
  }
2507
2501
  };
2508
- export const deserializeAws_restJson1GetMessagingSessionEndpointCommand = async (output, context) => {
2502
+ export const de_GetMessagingSessionEndpointCommand = async (output, context) => {
2509
2503
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2510
- return deserializeAws_restJson1GetMessagingSessionEndpointCommandError(output, context);
2504
+ return de_GetMessagingSessionEndpointCommandError(output, context);
2511
2505
  }
2512
2506
  const contents = map({
2513
2507
  $metadata: deserializeMetadata(output),
2514
2508
  });
2515
2509
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2516
2510
  if (data.Endpoint != null) {
2517
- contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
2511
+ contents.Endpoint = de_MessagingSessionEndpoint(data.Endpoint, context);
2518
2512
  }
2519
2513
  return contents;
2520
2514
  };
2521
- const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (output, context) => {
2515
+ const de_GetMessagingSessionEndpointCommandError = async (output, context) => {
2522
2516
  const parsedOutput = {
2523
2517
  ...output,
2524
2518
  body: await parseErrorBody(output.body, context),
@@ -2527,19 +2521,19 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
2527
2521
  switch (errorCode) {
2528
2522
  case "ForbiddenException":
2529
2523
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2530
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2524
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2531
2525
  case "ServiceFailureException":
2532
2526
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2533
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2527
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2534
2528
  case "ServiceUnavailableException":
2535
2529
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2536
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2530
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2537
2531
  case "ThrottledClientException":
2538
2532
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2539
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2533
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2540
2534
  case "UnauthorizedClientException":
2541
2535
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2542
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2536
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2543
2537
  default:
2544
2538
  const parsedBody = parsedOutput.body;
2545
2539
  throwDefaultError({
@@ -2550,20 +2544,20 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
2550
2544
  });
2551
2545
  }
2552
2546
  };
2553
- export const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (output, context) => {
2547
+ export const de_GetMessagingStreamingConfigurationsCommand = async (output, context) => {
2554
2548
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2555
- return deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError(output, context);
2549
+ return de_GetMessagingStreamingConfigurationsCommandError(output, context);
2556
2550
  }
2557
2551
  const contents = map({
2558
2552
  $metadata: deserializeMetadata(output),
2559
2553
  });
2560
2554
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2561
2555
  if (data.StreamingConfigurations != null) {
2562
- contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
2556
+ contents.StreamingConfigurations = de_StreamingConfigurationList(data.StreamingConfigurations, context);
2563
2557
  }
2564
2558
  return contents;
2565
2559
  };
2566
- const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
2560
+ const de_GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
2567
2561
  const parsedOutput = {
2568
2562
  ...output,
2569
2563
  body: await parseErrorBody(output.body, context),
@@ -2572,25 +2566,25 @@ const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError =
2572
2566
  switch (errorCode) {
2573
2567
  case "BadRequestException":
2574
2568
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2575
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2569
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2576
2570
  case "ForbiddenException":
2577
2571
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2578
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2572
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2579
2573
  case "NotFoundException":
2580
2574
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
2581
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2575
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2582
2576
  case "ServiceFailureException":
2583
2577
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2584
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2578
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2585
2579
  case "ServiceUnavailableException":
2586
2580
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2587
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2581
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2588
2582
  case "ThrottledClientException":
2589
2583
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2590
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2584
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2591
2585
  case "UnauthorizedClientException":
2592
2586
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2593
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2587
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2594
2588
  default:
2595
2589
  const parsedBody = parsedOutput.body;
2596
2590
  throwDefaultError({
@@ -2601,9 +2595,9 @@ const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError =
2601
2595
  });
2602
2596
  }
2603
2597
  };
2604
- export const deserializeAws_restJson1ListChannelBansCommand = async (output, context) => {
2598
+ export const de_ListChannelBansCommand = async (output, context) => {
2605
2599
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2606
- return deserializeAws_restJson1ListChannelBansCommandError(output, context);
2600
+ return de_ListChannelBansCommandError(output, context);
2607
2601
  }
2608
2602
  const contents = map({
2609
2603
  $metadata: deserializeMetadata(output),
@@ -2613,14 +2607,14 @@ export const deserializeAws_restJson1ListChannelBansCommand = async (output, con
2613
2607
  contents.ChannelArn = __expectString(data.ChannelArn);
2614
2608
  }
2615
2609
  if (data.ChannelBans != null) {
2616
- contents.ChannelBans = deserializeAws_restJson1ChannelBanSummaryList(data.ChannelBans, context);
2610
+ contents.ChannelBans = de_ChannelBanSummaryList(data.ChannelBans, context);
2617
2611
  }
2618
2612
  if (data.NextToken != null) {
2619
2613
  contents.NextToken = __expectString(data.NextToken);
2620
2614
  }
2621
2615
  return contents;
2622
2616
  };
2623
- const deserializeAws_restJson1ListChannelBansCommandError = async (output, context) => {
2617
+ const de_ListChannelBansCommandError = async (output, context) => {
2624
2618
  const parsedOutput = {
2625
2619
  ...output,
2626
2620
  body: await parseErrorBody(output.body, context),
@@ -2629,22 +2623,22 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
2629
2623
  switch (errorCode) {
2630
2624
  case "BadRequestException":
2631
2625
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2632
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2626
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2633
2627
  case "ForbiddenException":
2634
2628
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2635
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2629
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2636
2630
  case "ServiceFailureException":
2637
2631
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2638
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2632
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2639
2633
  case "ServiceUnavailableException":
2640
2634
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2641
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2635
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2642
2636
  case "ThrottledClientException":
2643
2637
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2644
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2638
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2645
2639
  case "UnauthorizedClientException":
2646
2640
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2647
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2641
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2648
2642
  default:
2649
2643
  const parsedBody = parsedOutput.body;
2650
2644
  throwDefaultError({
@@ -2655,23 +2649,23 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
2655
2649
  });
2656
2650
  }
2657
2651
  };
2658
- export const deserializeAws_restJson1ListChannelFlowsCommand = async (output, context) => {
2652
+ export const de_ListChannelFlowsCommand = async (output, context) => {
2659
2653
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2660
- return deserializeAws_restJson1ListChannelFlowsCommandError(output, context);
2654
+ return de_ListChannelFlowsCommandError(output, context);
2661
2655
  }
2662
2656
  const contents = map({
2663
2657
  $metadata: deserializeMetadata(output),
2664
2658
  });
2665
2659
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2666
2660
  if (data.ChannelFlows != null) {
2667
- contents.ChannelFlows = deserializeAws_restJson1ChannelFlowSummaryList(data.ChannelFlows, context);
2661
+ contents.ChannelFlows = de_ChannelFlowSummaryList(data.ChannelFlows, context);
2668
2662
  }
2669
2663
  if (data.NextToken != null) {
2670
2664
  contents.NextToken = __expectString(data.NextToken);
2671
2665
  }
2672
2666
  return contents;
2673
2667
  };
2674
- const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, context) => {
2668
+ const de_ListChannelFlowsCommandError = async (output, context) => {
2675
2669
  const parsedOutput = {
2676
2670
  ...output,
2677
2671
  body: await parseErrorBody(output.body, context),
@@ -2680,22 +2674,22 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
2680
2674
  switch (errorCode) {
2681
2675
  case "BadRequestException":
2682
2676
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2683
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2677
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2684
2678
  case "ForbiddenException":
2685
2679
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2686
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2680
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2687
2681
  case "ServiceFailureException":
2688
2682
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2689
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2683
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2690
2684
  case "ServiceUnavailableException":
2691
2685
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2692
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2686
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2693
2687
  case "ThrottledClientException":
2694
2688
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2695
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2689
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2696
2690
  case "UnauthorizedClientException":
2697
2691
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2698
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2692
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2699
2693
  default:
2700
2694
  const parsedBody = parsedOutput.body;
2701
2695
  throwDefaultError({
@@ -2706,9 +2700,9 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
2706
2700
  });
2707
2701
  }
2708
2702
  };
2709
- export const deserializeAws_restJson1ListChannelMembershipsCommand = async (output, context) => {
2703
+ export const de_ListChannelMembershipsCommand = async (output, context) => {
2710
2704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2711
- return deserializeAws_restJson1ListChannelMembershipsCommandError(output, context);
2705
+ return de_ListChannelMembershipsCommandError(output, context);
2712
2706
  }
2713
2707
  const contents = map({
2714
2708
  $metadata: deserializeMetadata(output),
@@ -2718,14 +2712,14 @@ export const deserializeAws_restJson1ListChannelMembershipsCommand = async (outp
2718
2712
  contents.ChannelArn = __expectString(data.ChannelArn);
2719
2713
  }
2720
2714
  if (data.ChannelMemberships != null) {
2721
- contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipSummaryList(data.ChannelMemberships, context);
2715
+ contents.ChannelMemberships = de_ChannelMembershipSummaryList(data.ChannelMemberships, context);
2722
2716
  }
2723
2717
  if (data.NextToken != null) {
2724
2718
  contents.NextToken = __expectString(data.NextToken);
2725
2719
  }
2726
2720
  return contents;
2727
2721
  };
2728
- const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output, context) => {
2722
+ const de_ListChannelMembershipsCommandError = async (output, context) => {
2729
2723
  const parsedOutput = {
2730
2724
  ...output,
2731
2725
  body: await parseErrorBody(output.body, context),
@@ -2734,22 +2728,22 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
2734
2728
  switch (errorCode) {
2735
2729
  case "BadRequestException":
2736
2730
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2737
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2731
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2738
2732
  case "ForbiddenException":
2739
2733
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2740
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2734
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2741
2735
  case "ServiceFailureException":
2742
2736
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2743
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2737
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2744
2738
  case "ServiceUnavailableException":
2745
2739
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2746
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2740
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2747
2741
  case "ThrottledClientException":
2748
2742
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2749
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2743
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2750
2744
  case "UnauthorizedClientException":
2751
2745
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2752
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2746
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2753
2747
  default:
2754
2748
  const parsedBody = parsedOutput.body;
2755
2749
  throwDefaultError({
@@ -2760,23 +2754,23 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
2760
2754
  });
2761
2755
  }
2762
2756
  };
2763
- export const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = async (output, context) => {
2757
+ export const de_ListChannelMembershipsForAppInstanceUserCommand = async (output, context) => {
2764
2758
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2765
- return deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError(output, context);
2759
+ return de_ListChannelMembershipsForAppInstanceUserCommandError(output, context);
2766
2760
  }
2767
2761
  const contents = map({
2768
2762
  $metadata: deserializeMetadata(output),
2769
2763
  });
2770
2764
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2771
2765
  if (data.ChannelMemberships != null) {
2772
- contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
2766
+ contents.ChannelMemberships = de_ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
2773
2767
  }
2774
2768
  if (data.NextToken != null) {
2775
2769
  contents.NextToken = __expectString(data.NextToken);
2776
2770
  }
2777
2771
  return contents;
2778
2772
  };
2779
- const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError = async (output, context) => {
2773
+ const de_ListChannelMembershipsForAppInstanceUserCommandError = async (output, context) => {
2780
2774
  const parsedOutput = {
2781
2775
  ...output,
2782
2776
  body: await parseErrorBody(output.body, context),
@@ -2785,22 +2779,22 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
2785
2779
  switch (errorCode) {
2786
2780
  case "BadRequestException":
2787
2781
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2788
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2782
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2789
2783
  case "ForbiddenException":
2790
2784
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2791
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2785
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2792
2786
  case "ServiceFailureException":
2793
2787
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2794
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2788
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2795
2789
  case "ServiceUnavailableException":
2796
2790
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2797
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2791
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2798
2792
  case "ThrottledClientException":
2799
2793
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2800
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2794
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2801
2795
  case "UnauthorizedClientException":
2802
2796
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2803
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2797
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2804
2798
  default:
2805
2799
  const parsedBody = parsedOutput.body;
2806
2800
  throwDefaultError({
@@ -2811,9 +2805,9 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
2811
2805
  });
2812
2806
  }
2813
2807
  };
2814
- export const deserializeAws_restJson1ListChannelMessagesCommand = async (output, context) => {
2808
+ export const de_ListChannelMessagesCommand = async (output, context) => {
2815
2809
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2816
- return deserializeAws_restJson1ListChannelMessagesCommandError(output, context);
2810
+ return de_ListChannelMessagesCommandError(output, context);
2817
2811
  }
2818
2812
  const contents = map({
2819
2813
  $metadata: deserializeMetadata(output),
@@ -2823,7 +2817,7 @@ export const deserializeAws_restJson1ListChannelMessagesCommand = async (output,
2823
2817
  contents.ChannelArn = __expectString(data.ChannelArn);
2824
2818
  }
2825
2819
  if (data.ChannelMessages != null) {
2826
- contents.ChannelMessages = deserializeAws_restJson1ChannelMessageSummaryList(data.ChannelMessages, context);
2820
+ contents.ChannelMessages = de_ChannelMessageSummaryList(data.ChannelMessages, context);
2827
2821
  }
2828
2822
  if (data.NextToken != null) {
2829
2823
  contents.NextToken = __expectString(data.NextToken);
@@ -2833,7 +2827,7 @@ export const deserializeAws_restJson1ListChannelMessagesCommand = async (output,
2833
2827
  }
2834
2828
  return contents;
2835
2829
  };
2836
- const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, context) => {
2830
+ const de_ListChannelMessagesCommandError = async (output, context) => {
2837
2831
  const parsedOutput = {
2838
2832
  ...output,
2839
2833
  body: await parseErrorBody(output.body, context),
@@ -2842,22 +2836,22 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
2842
2836
  switch (errorCode) {
2843
2837
  case "BadRequestException":
2844
2838
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2845
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2839
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2846
2840
  case "ForbiddenException":
2847
2841
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2848
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2842
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2849
2843
  case "ServiceFailureException":
2850
2844
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2851
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2845
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2852
2846
  case "ServiceUnavailableException":
2853
2847
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2854
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2848
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2855
2849
  case "ThrottledClientException":
2856
2850
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2857
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2851
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2858
2852
  case "UnauthorizedClientException":
2859
2853
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2860
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2854
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2861
2855
  default:
2862
2856
  const parsedBody = parsedOutput.body;
2863
2857
  throwDefaultError({
@@ -2868,9 +2862,9 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
2868
2862
  });
2869
2863
  }
2870
2864
  };
2871
- export const deserializeAws_restJson1ListChannelModeratorsCommand = async (output, context) => {
2865
+ export const de_ListChannelModeratorsCommand = async (output, context) => {
2872
2866
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2873
- return deserializeAws_restJson1ListChannelModeratorsCommandError(output, context);
2867
+ return de_ListChannelModeratorsCommandError(output, context);
2874
2868
  }
2875
2869
  const contents = map({
2876
2870
  $metadata: deserializeMetadata(output),
@@ -2880,14 +2874,14 @@ export const deserializeAws_restJson1ListChannelModeratorsCommand = async (outpu
2880
2874
  contents.ChannelArn = __expectString(data.ChannelArn);
2881
2875
  }
2882
2876
  if (data.ChannelModerators != null) {
2883
- contents.ChannelModerators = deserializeAws_restJson1ChannelModeratorSummaryList(data.ChannelModerators, context);
2877
+ contents.ChannelModerators = de_ChannelModeratorSummaryList(data.ChannelModerators, context);
2884
2878
  }
2885
2879
  if (data.NextToken != null) {
2886
2880
  contents.NextToken = __expectString(data.NextToken);
2887
2881
  }
2888
2882
  return contents;
2889
2883
  };
2890
- const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output, context) => {
2884
+ const de_ListChannelModeratorsCommandError = async (output, context) => {
2891
2885
  const parsedOutput = {
2892
2886
  ...output,
2893
2887
  body: await parseErrorBody(output.body, context),
@@ -2896,22 +2890,22 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
2896
2890
  switch (errorCode) {
2897
2891
  case "BadRequestException":
2898
2892
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2899
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2893
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2900
2894
  case "ForbiddenException":
2901
2895
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2902
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2896
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2903
2897
  case "ServiceFailureException":
2904
2898
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2905
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2899
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2906
2900
  case "ServiceUnavailableException":
2907
2901
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2908
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2902
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2909
2903
  case "ThrottledClientException":
2910
2904
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2911
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2905
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2912
2906
  case "UnauthorizedClientException":
2913
2907
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2914
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2908
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2915
2909
  default:
2916
2910
  const parsedBody = parsedOutput.body;
2917
2911
  throwDefaultError({
@@ -2922,23 +2916,23 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
2922
2916
  });
2923
2917
  }
2924
2918
  };
2925
- export const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
2919
+ export const de_ListChannelsCommand = async (output, context) => {
2926
2920
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2927
- return deserializeAws_restJson1ListChannelsCommandError(output, context);
2921
+ return de_ListChannelsCommandError(output, context);
2928
2922
  }
2929
2923
  const contents = map({
2930
2924
  $metadata: deserializeMetadata(output),
2931
2925
  });
2932
2926
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2933
2927
  if (data.Channels != null) {
2934
- contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
2928
+ contents.Channels = de_ChannelSummaryList(data.Channels, context);
2935
2929
  }
2936
2930
  if (data.NextToken != null) {
2937
2931
  contents.NextToken = __expectString(data.NextToken);
2938
2932
  }
2939
2933
  return contents;
2940
2934
  };
2941
- const deserializeAws_restJson1ListChannelsCommandError = async (output, context) => {
2935
+ const de_ListChannelsCommandError = async (output, context) => {
2942
2936
  const parsedOutput = {
2943
2937
  ...output,
2944
2938
  body: await parseErrorBody(output.body, context),
@@ -2947,22 +2941,22 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
2947
2941
  switch (errorCode) {
2948
2942
  case "BadRequestException":
2949
2943
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
2950
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2944
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2951
2945
  case "ForbiddenException":
2952
2946
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
2953
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2947
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2954
2948
  case "ServiceFailureException":
2955
2949
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
2956
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
2950
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2957
2951
  case "ServiceUnavailableException":
2958
2952
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
2959
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2953
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2960
2954
  case "ThrottledClientException":
2961
2955
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
2962
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
2956
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
2963
2957
  case "UnauthorizedClientException":
2964
2958
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
2965
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
2959
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
2966
2960
  default:
2967
2961
  const parsedBody = parsedOutput.body;
2968
2962
  throwDefaultError({
@@ -2973,23 +2967,23 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
2973
2967
  });
2974
2968
  }
2975
2969
  };
2976
- export const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = async (output, context) => {
2970
+ export const de_ListChannelsAssociatedWithChannelFlowCommand = async (output, context) => {
2977
2971
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2978
- return deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError(output, context);
2972
+ return de_ListChannelsAssociatedWithChannelFlowCommandError(output, context);
2979
2973
  }
2980
2974
  const contents = map({
2981
2975
  $metadata: deserializeMetadata(output),
2982
2976
  });
2983
2977
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2984
2978
  if (data.Channels != null) {
2985
- contents.Channels = deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList(data.Channels, context);
2979
+ contents.Channels = de_ChannelAssociatedWithFlowSummaryList(data.Channels, context);
2986
2980
  }
2987
2981
  if (data.NextToken != null) {
2988
2982
  contents.NextToken = __expectString(data.NextToken);
2989
2983
  }
2990
2984
  return contents;
2991
2985
  };
2992
- const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError = async (output, context) => {
2986
+ const de_ListChannelsAssociatedWithChannelFlowCommandError = async (output, context) => {
2993
2987
  const parsedOutput = {
2994
2988
  ...output,
2995
2989
  body: await parseErrorBody(output.body, context),
@@ -2998,22 +2992,22 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
2998
2992
  switch (errorCode) {
2999
2993
  case "BadRequestException":
3000
2994
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3001
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2995
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3002
2996
  case "ForbiddenException":
3003
2997
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3004
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2998
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3005
2999
  case "ServiceFailureException":
3006
3000
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3007
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3001
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3008
3002
  case "ServiceUnavailableException":
3009
3003
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3010
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3004
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3011
3005
  case "ThrottledClientException":
3012
3006
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3013
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3007
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3014
3008
  case "UnauthorizedClientException":
3015
3009
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3016
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3010
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3017
3011
  default:
3018
3012
  const parsedBody = parsedOutput.body;
3019
3013
  throwDefaultError({
@@ -3024,23 +3018,23 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
3024
3018
  });
3025
3019
  }
3026
3020
  };
3027
- export const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = async (output, context) => {
3021
+ export const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, context) => {
3028
3022
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3029
- return deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError(output, context);
3023
+ return de_ListChannelsModeratedByAppInstanceUserCommandError(output, context);
3030
3024
  }
3031
3025
  const contents = map({
3032
3026
  $metadata: deserializeMetadata(output),
3033
3027
  });
3034
3028
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3035
3029
  if (data.Channels != null) {
3036
- contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
3030
+ contents.Channels = de_ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
3037
3031
  }
3038
3032
  if (data.NextToken != null) {
3039
3033
  contents.NextToken = __expectString(data.NextToken);
3040
3034
  }
3041
3035
  return contents;
3042
3036
  };
3043
- const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError = async (output, context) => {
3037
+ const de_ListChannelsModeratedByAppInstanceUserCommandError = async (output, context) => {
3044
3038
  const parsedOutput = {
3045
3039
  ...output,
3046
3040
  body: await parseErrorBody(output.body, context),
@@ -3049,22 +3043,22 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
3049
3043
  switch (errorCode) {
3050
3044
  case "BadRequestException":
3051
3045
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3052
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3046
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3053
3047
  case "ForbiddenException":
3054
3048
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3055
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3049
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3056
3050
  case "ServiceFailureException":
3057
3051
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3058
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3052
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3059
3053
  case "ServiceUnavailableException":
3060
3054
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3061
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3055
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3062
3056
  case "ThrottledClientException":
3063
3057
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3064
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3058
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3065
3059
  case "UnauthorizedClientException":
3066
3060
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3067
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3061
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3068
3062
  default:
3069
3063
  const parsedBody = parsedOutput.body;
3070
3064
  throwDefaultError({
@@ -3075,9 +3069,9 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
3075
3069
  });
3076
3070
  }
3077
3071
  };
3078
- export const deserializeAws_restJson1ListSubChannelsCommand = async (output, context) => {
3072
+ export const de_ListSubChannelsCommand = async (output, context) => {
3079
3073
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3080
- return deserializeAws_restJson1ListSubChannelsCommandError(output, context);
3074
+ return de_ListSubChannelsCommandError(output, context);
3081
3075
  }
3082
3076
  const contents = map({
3083
3077
  $metadata: deserializeMetadata(output),
@@ -3090,11 +3084,11 @@ export const deserializeAws_restJson1ListSubChannelsCommand = async (output, con
3090
3084
  contents.NextToken = __expectString(data.NextToken);
3091
3085
  }
3092
3086
  if (data.SubChannels != null) {
3093
- contents.SubChannels = deserializeAws_restJson1SubChannelSummaryList(data.SubChannels, context);
3087
+ contents.SubChannels = de_SubChannelSummaryList(data.SubChannels, context);
3094
3088
  }
3095
3089
  return contents;
3096
3090
  };
3097
- const deserializeAws_restJson1ListSubChannelsCommandError = async (output, context) => {
3091
+ const de_ListSubChannelsCommandError = async (output, context) => {
3098
3092
  const parsedOutput = {
3099
3093
  ...output,
3100
3094
  body: await parseErrorBody(output.body, context),
@@ -3103,22 +3097,22 @@ const deserializeAws_restJson1ListSubChannelsCommandError = async (output, conte
3103
3097
  switch (errorCode) {
3104
3098
  case "BadRequestException":
3105
3099
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3106
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3100
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3107
3101
  case "ForbiddenException":
3108
3102
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3109
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3103
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3110
3104
  case "ServiceFailureException":
3111
3105
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3112
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3106
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3113
3107
  case "ServiceUnavailableException":
3114
3108
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3115
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3109
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3116
3110
  case "ThrottledClientException":
3117
3111
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3118
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3112
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3119
3113
  case "UnauthorizedClientException":
3120
3114
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3121
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3115
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3122
3116
  default:
3123
3117
  const parsedBody = parsedOutput.body;
3124
3118
  throwDefaultError({
@@ -3129,20 +3123,20 @@ const deserializeAws_restJson1ListSubChannelsCommandError = async (output, conte
3129
3123
  });
3130
3124
  }
3131
3125
  };
3132
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3126
+ export const de_ListTagsForResourceCommand = async (output, context) => {
3133
3127
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3134
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
3128
+ return de_ListTagsForResourceCommandError(output, context);
3135
3129
  }
3136
3130
  const contents = map({
3137
3131
  $metadata: deserializeMetadata(output),
3138
3132
  });
3139
3133
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3140
3134
  if (data.Tags != null) {
3141
- contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
3135
+ contents.Tags = de_TagList(data.Tags, context);
3142
3136
  }
3143
3137
  return contents;
3144
3138
  };
3145
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
3139
+ const de_ListTagsForResourceCommandError = async (output, context) => {
3146
3140
  const parsedOutput = {
3147
3141
  ...output,
3148
3142
  body: await parseErrorBody(output.body, context),
@@ -3151,22 +3145,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3151
3145
  switch (errorCode) {
3152
3146
  case "BadRequestException":
3153
3147
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3154
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3148
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3155
3149
  case "ForbiddenException":
3156
3150
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3157
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3151
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3158
3152
  case "ServiceFailureException":
3159
3153
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3160
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3154
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3161
3155
  case "ServiceUnavailableException":
3162
3156
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3163
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3157
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3164
3158
  case "ThrottledClientException":
3165
3159
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3166
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3160
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3167
3161
  case "UnauthorizedClientException":
3168
3162
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3169
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3163
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3170
3164
  default:
3171
3165
  const parsedBody = parsedOutput.body;
3172
3166
  throwDefaultError({
@@ -3177,9 +3171,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3177
3171
  });
3178
3172
  }
3179
3173
  };
3180
- export const deserializeAws_restJson1PutChannelExpirationSettingsCommand = async (output, context) => {
3174
+ export const de_PutChannelExpirationSettingsCommand = async (output, context) => {
3181
3175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3182
- return deserializeAws_restJson1PutChannelExpirationSettingsCommandError(output, context);
3176
+ return de_PutChannelExpirationSettingsCommandError(output, context);
3183
3177
  }
3184
3178
  const contents = map({
3185
3179
  $metadata: deserializeMetadata(output),
@@ -3189,11 +3183,11 @@ export const deserializeAws_restJson1PutChannelExpirationSettingsCommand = async
3189
3183
  contents.ChannelArn = __expectString(data.ChannelArn);
3190
3184
  }
3191
3185
  if (data.ExpirationSettings != null) {
3192
- contents.ExpirationSettings = deserializeAws_restJson1ExpirationSettings(data.ExpirationSettings, context);
3186
+ contents.ExpirationSettings = de_ExpirationSettings(data.ExpirationSettings, context);
3193
3187
  }
3194
3188
  return contents;
3195
3189
  };
3196
- const deserializeAws_restJson1PutChannelExpirationSettingsCommandError = async (output, context) => {
3190
+ const de_PutChannelExpirationSettingsCommandError = async (output, context) => {
3197
3191
  const parsedOutput = {
3198
3192
  ...output,
3199
3193
  body: await parseErrorBody(output.body, context),
@@ -3202,25 +3196,25 @@ const deserializeAws_restJson1PutChannelExpirationSettingsCommandError = async (
3202
3196
  switch (errorCode) {
3203
3197
  case "BadRequestException":
3204
3198
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3205
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3199
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3206
3200
  case "ConflictException":
3207
3201
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3208
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3202
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3209
3203
  case "ForbiddenException":
3210
3204
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3211
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3205
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3212
3206
  case "ServiceFailureException":
3213
3207
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3214
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3208
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3215
3209
  case "ServiceUnavailableException":
3216
3210
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3217
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3211
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3218
3212
  case "ThrottledClientException":
3219
3213
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3220
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3214
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3221
3215
  case "UnauthorizedClientException":
3222
3216
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3223
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3217
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3224
3218
  default:
3225
3219
  const parsedBody = parsedOutput.body;
3226
3220
  throwDefaultError({
@@ -3231,9 +3225,9 @@ const deserializeAws_restJson1PutChannelExpirationSettingsCommandError = async (
3231
3225
  });
3232
3226
  }
3233
3227
  };
3234
- export const deserializeAws_restJson1PutChannelMembershipPreferencesCommand = async (output, context) => {
3228
+ export const de_PutChannelMembershipPreferencesCommand = async (output, context) => {
3235
3229
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3236
- return deserializeAws_restJson1PutChannelMembershipPreferencesCommandError(output, context);
3230
+ return de_PutChannelMembershipPreferencesCommandError(output, context);
3237
3231
  }
3238
3232
  const contents = map({
3239
3233
  $metadata: deserializeMetadata(output),
@@ -3243,14 +3237,14 @@ export const deserializeAws_restJson1PutChannelMembershipPreferencesCommand = as
3243
3237
  contents.ChannelArn = __expectString(data.ChannelArn);
3244
3238
  }
3245
3239
  if (data.Member != null) {
3246
- contents.Member = deserializeAws_restJson1Identity(data.Member, context);
3240
+ contents.Member = de_Identity(data.Member, context);
3247
3241
  }
3248
3242
  if (data.Preferences != null) {
3249
- contents.Preferences = deserializeAws_restJson1ChannelMembershipPreferences(data.Preferences, context);
3243
+ contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
3250
3244
  }
3251
3245
  return contents;
3252
3246
  };
3253
- const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = async (output, context) => {
3247
+ const de_PutChannelMembershipPreferencesCommandError = async (output, context) => {
3254
3248
  const parsedOutput = {
3255
3249
  ...output,
3256
3250
  body: await parseErrorBody(output.body, context),
@@ -3259,25 +3253,25 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
3259
3253
  switch (errorCode) {
3260
3254
  case "BadRequestException":
3261
3255
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3262
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3256
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3263
3257
  case "ConflictException":
3264
3258
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3265
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3259
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3266
3260
  case "ForbiddenException":
3267
3261
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3268
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3262
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3269
3263
  case "ServiceFailureException":
3270
3264
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3271
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3265
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3272
3266
  case "ServiceUnavailableException":
3273
3267
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3274
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3268
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3275
3269
  case "ThrottledClientException":
3276
3270
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3277
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3271
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3278
3272
  case "UnauthorizedClientException":
3279
3273
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3280
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3274
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3281
3275
  default:
3282
3276
  const parsedBody = parsedOutput.body;
3283
3277
  throwDefaultError({
@@ -3288,20 +3282,20 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
3288
3282
  });
3289
3283
  }
3290
3284
  };
3291
- export const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (output, context) => {
3285
+ export const de_PutMessagingStreamingConfigurationsCommand = async (output, context) => {
3292
3286
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3293
- return deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError(output, context);
3287
+ return de_PutMessagingStreamingConfigurationsCommandError(output, context);
3294
3288
  }
3295
3289
  const contents = map({
3296
3290
  $metadata: deserializeMetadata(output),
3297
3291
  });
3298
3292
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3299
3293
  if (data.StreamingConfigurations != null) {
3300
- contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
3294
+ contents.StreamingConfigurations = de_StreamingConfigurationList(data.StreamingConfigurations, context);
3301
3295
  }
3302
3296
  return contents;
3303
3297
  };
3304
- const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
3298
+ const de_PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
3305
3299
  const parsedOutput = {
3306
3300
  ...output,
3307
3301
  body: await parseErrorBody(output.body, context),
@@ -3310,28 +3304,28 @@ const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError =
3310
3304
  switch (errorCode) {
3311
3305
  case "BadRequestException":
3312
3306
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3313
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3307
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3314
3308
  case "ConflictException":
3315
3309
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3316
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3310
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3317
3311
  case "ForbiddenException":
3318
3312
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3319
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3313
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3320
3314
  case "NotFoundException":
3321
3315
  case "com.amazonaws.chimesdkmessaging#NotFoundException":
3322
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
3316
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3323
3317
  case "ServiceFailureException":
3324
3318
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3325
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3319
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3326
3320
  case "ServiceUnavailableException":
3327
3321
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3328
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3322
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3329
3323
  case "ThrottledClientException":
3330
3324
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3331
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3325
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3332
3326
  case "UnauthorizedClientException":
3333
3327
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3334
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3328
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3335
3329
  default:
3336
3330
  const parsedBody = parsedOutput.body;
3337
3331
  throwDefaultError({
@@ -3342,9 +3336,9 @@ const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError =
3342
3336
  });
3343
3337
  }
3344
3338
  };
3345
- export const deserializeAws_restJson1RedactChannelMessageCommand = async (output, context) => {
3339
+ export const de_RedactChannelMessageCommand = async (output, context) => {
3346
3340
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3347
- return deserializeAws_restJson1RedactChannelMessageCommandError(output, context);
3341
+ return de_RedactChannelMessageCommandError(output, context);
3348
3342
  }
3349
3343
  const contents = map({
3350
3344
  $metadata: deserializeMetadata(output),
@@ -3361,7 +3355,7 @@ export const deserializeAws_restJson1RedactChannelMessageCommand = async (output
3361
3355
  }
3362
3356
  return contents;
3363
3357
  };
3364
- const deserializeAws_restJson1RedactChannelMessageCommandError = async (output, context) => {
3358
+ const de_RedactChannelMessageCommandError = async (output, context) => {
3365
3359
  const parsedOutput = {
3366
3360
  ...output,
3367
3361
  body: await parseErrorBody(output.body, context),
@@ -3370,25 +3364,25 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
3370
3364
  switch (errorCode) {
3371
3365
  case "BadRequestException":
3372
3366
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3373
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3367
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3374
3368
  case "ConflictException":
3375
3369
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3376
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3370
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3377
3371
  case "ForbiddenException":
3378
3372
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3379
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3373
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3380
3374
  case "ServiceFailureException":
3381
3375
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3382
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3376
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3383
3377
  case "ServiceUnavailableException":
3384
3378
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3385
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3379
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3386
3380
  case "ThrottledClientException":
3387
3381
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3388
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3382
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3389
3383
  case "UnauthorizedClientException":
3390
3384
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3391
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3385
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3392
3386
  default:
3393
3387
  const parsedBody = parsedOutput.body;
3394
3388
  throwDefaultError({
@@ -3399,23 +3393,23 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
3399
3393
  });
3400
3394
  }
3401
3395
  };
3402
- export const deserializeAws_restJson1SearchChannelsCommand = async (output, context) => {
3396
+ export const de_SearchChannelsCommand = async (output, context) => {
3403
3397
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3404
- return deserializeAws_restJson1SearchChannelsCommandError(output, context);
3398
+ return de_SearchChannelsCommandError(output, context);
3405
3399
  }
3406
3400
  const contents = map({
3407
3401
  $metadata: deserializeMetadata(output),
3408
3402
  });
3409
3403
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3410
3404
  if (data.Channels != null) {
3411
- contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
3405
+ contents.Channels = de_ChannelSummaryList(data.Channels, context);
3412
3406
  }
3413
3407
  if (data.NextToken != null) {
3414
3408
  contents.NextToken = __expectString(data.NextToken);
3415
3409
  }
3416
3410
  return contents;
3417
3411
  };
3418
- const deserializeAws_restJson1SearchChannelsCommandError = async (output, context) => {
3412
+ const de_SearchChannelsCommandError = async (output, context) => {
3419
3413
  const parsedOutput = {
3420
3414
  ...output,
3421
3415
  body: await parseErrorBody(output.body, context),
@@ -3424,22 +3418,22 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
3424
3418
  switch (errorCode) {
3425
3419
  case "BadRequestException":
3426
3420
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3427
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3421
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3428
3422
  case "ForbiddenException":
3429
3423
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3430
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3424
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3431
3425
  case "ServiceFailureException":
3432
3426
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3433
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3427
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3434
3428
  case "ServiceUnavailableException":
3435
3429
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3436
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3430
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3437
3431
  case "ThrottledClientException":
3438
3432
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3439
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3433
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3440
3434
  case "UnauthorizedClientException":
3441
3435
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3442
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3436
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3443
3437
  default:
3444
3438
  const parsedBody = parsedOutput.body;
3445
3439
  throwDefaultError({
@@ -3450,9 +3444,9 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
3450
3444
  });
3451
3445
  }
3452
3446
  };
3453
- export const deserializeAws_restJson1SendChannelMessageCommand = async (output, context) => {
3447
+ export const de_SendChannelMessageCommand = async (output, context) => {
3454
3448
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3455
- return deserializeAws_restJson1SendChannelMessageCommandError(output, context);
3449
+ return de_SendChannelMessageCommandError(output, context);
3456
3450
  }
3457
3451
  const contents = map({
3458
3452
  $metadata: deserializeMetadata(output),
@@ -3465,14 +3459,14 @@ export const deserializeAws_restJson1SendChannelMessageCommand = async (output,
3465
3459
  contents.MessageId = __expectString(data.MessageId);
3466
3460
  }
3467
3461
  if (data.Status != null) {
3468
- contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
3462
+ contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
3469
3463
  }
3470
3464
  if (data.SubChannelId != null) {
3471
3465
  contents.SubChannelId = __expectString(data.SubChannelId);
3472
3466
  }
3473
3467
  return contents;
3474
3468
  };
3475
- const deserializeAws_restJson1SendChannelMessageCommandError = async (output, context) => {
3469
+ const de_SendChannelMessageCommandError = async (output, context) => {
3476
3470
  const parsedOutput = {
3477
3471
  ...output,
3478
3472
  body: await parseErrorBody(output.body, context),
@@ -3481,25 +3475,25 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
3481
3475
  switch (errorCode) {
3482
3476
  case "BadRequestException":
3483
3477
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3484
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3478
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3485
3479
  case "ConflictException":
3486
3480
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3487
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3481
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3488
3482
  case "ForbiddenException":
3489
3483
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3490
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3484
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3491
3485
  case "ServiceFailureException":
3492
3486
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3493
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3487
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3494
3488
  case "ServiceUnavailableException":
3495
3489
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3496
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3490
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3497
3491
  case "ThrottledClientException":
3498
3492
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3499
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3493
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3500
3494
  case "UnauthorizedClientException":
3501
3495
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3502
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3496
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3503
3497
  default:
3504
3498
  const parsedBody = parsedOutput.body;
3505
3499
  throwDefaultError({
@@ -3510,9 +3504,9 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
3510
3504
  });
3511
3505
  }
3512
3506
  };
3513
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
3507
+ export const de_TagResourceCommand = async (output, context) => {
3514
3508
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3515
- return deserializeAws_restJson1TagResourceCommandError(output, context);
3509
+ return de_TagResourceCommandError(output, context);
3516
3510
  }
3517
3511
  const contents = map({
3518
3512
  $metadata: deserializeMetadata(output),
@@ -3520,7 +3514,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
3520
3514
  await collectBody(output.body, context);
3521
3515
  return contents;
3522
3516
  };
3523
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
3517
+ const de_TagResourceCommandError = async (output, context) => {
3524
3518
  const parsedOutput = {
3525
3519
  ...output,
3526
3520
  body: await parseErrorBody(output.body, context),
@@ -3529,25 +3523,25 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
3529
3523
  switch (errorCode) {
3530
3524
  case "BadRequestException":
3531
3525
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3532
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3526
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3533
3527
  case "ForbiddenException":
3534
3528
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3535
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3529
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3536
3530
  case "ResourceLimitExceededException":
3537
3531
  case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
3538
- throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
3532
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
3539
3533
  case "ServiceFailureException":
3540
3534
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3541
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3535
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3542
3536
  case "ServiceUnavailableException":
3543
3537
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3544
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3538
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3545
3539
  case "ThrottledClientException":
3546
3540
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3547
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3541
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3548
3542
  case "UnauthorizedClientException":
3549
3543
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3550
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3544
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3551
3545
  default:
3552
3546
  const parsedBody = parsedOutput.body;
3553
3547
  throwDefaultError({
@@ -3558,9 +3552,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
3558
3552
  });
3559
3553
  }
3560
3554
  };
3561
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
3555
+ export const de_UntagResourceCommand = async (output, context) => {
3562
3556
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3563
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
3557
+ return de_UntagResourceCommandError(output, context);
3564
3558
  }
3565
3559
  const contents = map({
3566
3560
  $metadata: deserializeMetadata(output),
@@ -3568,7 +3562,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
3568
3562
  await collectBody(output.body, context);
3569
3563
  return contents;
3570
3564
  };
3571
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
3565
+ const de_UntagResourceCommandError = async (output, context) => {
3572
3566
  const parsedOutput = {
3573
3567
  ...output,
3574
3568
  body: await parseErrorBody(output.body, context),
@@ -3577,22 +3571,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
3577
3571
  switch (errorCode) {
3578
3572
  case "BadRequestException":
3579
3573
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3580
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3574
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3581
3575
  case "ForbiddenException":
3582
3576
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3583
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3577
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3584
3578
  case "ServiceFailureException":
3585
3579
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3586
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3580
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3587
3581
  case "ServiceUnavailableException":
3588
3582
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3589
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3583
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3590
3584
  case "ThrottledClientException":
3591
3585
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3592
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3586
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3593
3587
  case "UnauthorizedClientException":
3594
3588
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3595
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3589
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3596
3590
  default:
3597
3591
  const parsedBody = parsedOutput.body;
3598
3592
  throwDefaultError({
@@ -3603,9 +3597,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
3603
3597
  });
3604
3598
  }
3605
3599
  };
3606
- export const deserializeAws_restJson1UpdateChannelCommand = async (output, context) => {
3600
+ export const de_UpdateChannelCommand = async (output, context) => {
3607
3601
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3608
- return deserializeAws_restJson1UpdateChannelCommandError(output, context);
3602
+ return de_UpdateChannelCommandError(output, context);
3609
3603
  }
3610
3604
  const contents = map({
3611
3605
  $metadata: deserializeMetadata(output),
@@ -3616,7 +3610,7 @@ export const deserializeAws_restJson1UpdateChannelCommand = async (output, conte
3616
3610
  }
3617
3611
  return contents;
3618
3612
  };
3619
- const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
3613
+ const de_UpdateChannelCommandError = async (output, context) => {
3620
3614
  const parsedOutput = {
3621
3615
  ...output,
3622
3616
  body: await parseErrorBody(output.body, context),
@@ -3625,25 +3619,25 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
3625
3619
  switch (errorCode) {
3626
3620
  case "BadRequestException":
3627
3621
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3628
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3622
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3629
3623
  case "ConflictException":
3630
3624
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3631
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3625
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3632
3626
  case "ForbiddenException":
3633
3627
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3634
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3628
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3635
3629
  case "ServiceFailureException":
3636
3630
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3637
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3631
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3638
3632
  case "ServiceUnavailableException":
3639
3633
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3640
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3634
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3641
3635
  case "ThrottledClientException":
3642
3636
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3643
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3637
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3644
3638
  case "UnauthorizedClientException":
3645
3639
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3646
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3640
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3647
3641
  default:
3648
3642
  const parsedBody = parsedOutput.body;
3649
3643
  throwDefaultError({
@@ -3654,9 +3648,9 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
3654
3648
  });
3655
3649
  }
3656
3650
  };
3657
- export const deserializeAws_restJson1UpdateChannelFlowCommand = async (output, context) => {
3651
+ export const de_UpdateChannelFlowCommand = async (output, context) => {
3658
3652
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3659
- return deserializeAws_restJson1UpdateChannelFlowCommandError(output, context);
3653
+ return de_UpdateChannelFlowCommandError(output, context);
3660
3654
  }
3661
3655
  const contents = map({
3662
3656
  $metadata: deserializeMetadata(output),
@@ -3667,7 +3661,7 @@ export const deserializeAws_restJson1UpdateChannelFlowCommand = async (output, c
3667
3661
  }
3668
3662
  return contents;
3669
3663
  };
3670
- const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, context) => {
3664
+ const de_UpdateChannelFlowCommandError = async (output, context) => {
3671
3665
  const parsedOutput = {
3672
3666
  ...output,
3673
3667
  body: await parseErrorBody(output.body, context),
@@ -3676,25 +3670,25 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
3676
3670
  switch (errorCode) {
3677
3671
  case "BadRequestException":
3678
3672
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3679
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3673
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3680
3674
  case "ConflictException":
3681
3675
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3682
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3676
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3683
3677
  case "ForbiddenException":
3684
3678
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3685
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3679
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3686
3680
  case "ServiceFailureException":
3687
3681
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3688
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3682
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3689
3683
  case "ServiceUnavailableException":
3690
3684
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3691
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3685
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3692
3686
  case "ThrottledClientException":
3693
3687
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3694
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3688
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3695
3689
  case "UnauthorizedClientException":
3696
3690
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3697
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3691
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3698
3692
  default:
3699
3693
  const parsedBody = parsedOutput.body;
3700
3694
  throwDefaultError({
@@ -3705,9 +3699,9 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
3705
3699
  });
3706
3700
  }
3707
3701
  };
3708
- export const deserializeAws_restJson1UpdateChannelMessageCommand = async (output, context) => {
3702
+ export const de_UpdateChannelMessageCommand = async (output, context) => {
3709
3703
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3710
- return deserializeAws_restJson1UpdateChannelMessageCommandError(output, context);
3704
+ return de_UpdateChannelMessageCommandError(output, context);
3711
3705
  }
3712
3706
  const contents = map({
3713
3707
  $metadata: deserializeMetadata(output),
@@ -3720,14 +3714,14 @@ export const deserializeAws_restJson1UpdateChannelMessageCommand = async (output
3720
3714
  contents.MessageId = __expectString(data.MessageId);
3721
3715
  }
3722
3716
  if (data.Status != null) {
3723
- contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
3717
+ contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
3724
3718
  }
3725
3719
  if (data.SubChannelId != null) {
3726
3720
  contents.SubChannelId = __expectString(data.SubChannelId);
3727
3721
  }
3728
3722
  return contents;
3729
3723
  };
3730
- const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output, context) => {
3724
+ const de_UpdateChannelMessageCommandError = async (output, context) => {
3731
3725
  const parsedOutput = {
3732
3726
  ...output,
3733
3727
  body: await parseErrorBody(output.body, context),
@@ -3736,25 +3730,25 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
3736
3730
  switch (errorCode) {
3737
3731
  case "BadRequestException":
3738
3732
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3739
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3733
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3740
3734
  case "ConflictException":
3741
3735
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3742
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3736
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3743
3737
  case "ForbiddenException":
3744
3738
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3745
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3739
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3746
3740
  case "ServiceFailureException":
3747
3741
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3748
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3742
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3749
3743
  case "ServiceUnavailableException":
3750
3744
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3751
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3745
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3752
3746
  case "ThrottledClientException":
3753
3747
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3754
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3748
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3755
3749
  case "UnauthorizedClientException":
3756
3750
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3757
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3751
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3758
3752
  default:
3759
3753
  const parsedBody = parsedOutput.body;
3760
3754
  throwDefaultError({
@@ -3765,9 +3759,9 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
3765
3759
  });
3766
3760
  }
3767
3761
  };
3768
- export const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (output, context) => {
3762
+ export const de_UpdateChannelReadMarkerCommand = async (output, context) => {
3769
3763
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3770
- return deserializeAws_restJson1UpdateChannelReadMarkerCommandError(output, context);
3764
+ return de_UpdateChannelReadMarkerCommandError(output, context);
3771
3765
  }
3772
3766
  const contents = map({
3773
3767
  $metadata: deserializeMetadata(output),
@@ -3781,7 +3775,7 @@ export const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (out
3781
3775
  }
3782
3776
  return contents;
3783
3777
  };
3784
- const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (output, context) => {
3778
+ const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
3785
3779
  const parsedOutput = {
3786
3780
  ...output,
3787
3781
  body: await parseErrorBody(output.body, context),
@@ -3790,25 +3784,25 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
3790
3784
  switch (errorCode) {
3791
3785
  case "BadRequestException":
3792
3786
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
3793
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3787
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3794
3788
  case "ConflictException":
3795
3789
  case "com.amazonaws.chimesdkmessaging#ConflictException":
3796
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3790
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3797
3791
  case "ForbiddenException":
3798
3792
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
3799
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3793
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3800
3794
  case "ServiceFailureException":
3801
3795
  case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
3802
- throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
3796
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3803
3797
  case "ServiceUnavailableException":
3804
3798
  case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
3805
- throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3799
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3806
3800
  case "ThrottledClientException":
3807
3801
  case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
3808
- throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
3802
+ throw await de_ThrottledClientExceptionRes(parsedOutput, context);
3809
3803
  case "UnauthorizedClientException":
3810
3804
  case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
3811
- throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
3805
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
3812
3806
  default:
3813
3807
  const parsedBody = parsedOutput.body;
3814
3808
  throwDefaultError({
@@ -3820,7 +3814,7 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
3820
3814
  }
3821
3815
  };
3822
3816
  const map = __map;
3823
- const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
3817
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3824
3818
  const contents = map({});
3825
3819
  const data = parsedOutput.body;
3826
3820
  if (data.Code != null) {
@@ -3835,7 +3829,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
3835
3829
  });
3836
3830
  return __decorateServiceException(exception, parsedOutput.body);
3837
3831
  };
3838
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
3832
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
3839
3833
  const contents = map({});
3840
3834
  const data = parsedOutput.body;
3841
3835
  if (data.Code != null) {
@@ -3850,7 +3844,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
3850
3844
  });
3851
3845
  return __decorateServiceException(exception, parsedOutput.body);
3852
3846
  };
3853
- const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
3847
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
3854
3848
  const contents = map({});
3855
3849
  const data = parsedOutput.body;
3856
3850
  if (data.Code != null) {
@@ -3865,7 +3859,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
3865
3859
  });
3866
3860
  return __decorateServiceException(exception, parsedOutput.body);
3867
3861
  };
3868
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
3862
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3869
3863
  const contents = map({});
3870
3864
  const data = parsedOutput.body;
3871
3865
  if (data.Code != null) {
@@ -3880,7 +3874,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
3880
3874
  });
3881
3875
  return __decorateServiceException(exception, parsedOutput.body);
3882
3876
  };
3883
- const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
3877
+ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
3884
3878
  const contents = map({});
3885
3879
  const data = parsedOutput.body;
3886
3880
  if (data.Code != null) {
@@ -3895,7 +3889,7 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
3895
3889
  });
3896
3890
  return __decorateServiceException(exception, parsedOutput.body);
3897
3891
  };
3898
- const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
3892
+ const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
3899
3893
  const contents = map({});
3900
3894
  const data = parsedOutput.body;
3901
3895
  if (data.Code != null) {
@@ -3910,7 +3904,7 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
3910
3904
  });
3911
3905
  return __decorateServiceException(exception, parsedOutput.body);
3912
3906
  };
3913
- const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
3907
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3914
3908
  const contents = map({});
3915
3909
  const data = parsedOutput.body;
3916
3910
  if (data.Code != null) {
@@ -3925,7 +3919,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
3925
3919
  });
3926
3920
  return __decorateServiceException(exception, parsedOutput.body);
3927
3921
  };
3928
- const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOutput, context) => {
3922
+ const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
3929
3923
  const contents = map({});
3930
3924
  const data = parsedOutput.body;
3931
3925
  if (data.Code != null) {
@@ -3940,7 +3934,7 @@ const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOu
3940
3934
  });
3941
3935
  return __decorateServiceException(exception, parsedOutput.body);
3942
3936
  };
3943
- const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
3937
+ const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
3944
3938
  const contents = map({});
3945
3939
  const data = parsedOutput.body;
3946
3940
  if (data.Code != null) {
@@ -3955,43 +3949,43 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
3955
3949
  });
3956
3950
  return __decorateServiceException(exception, parsedOutput.body);
3957
3951
  };
3958
- const serializeAws_restJson1ChannelMemberArns = (input, context) => {
3952
+ const se_ChannelMemberArns = (input, context) => {
3959
3953
  return input
3960
3954
  .filter((e) => e != null)
3961
3955
  .map((entry) => {
3962
3956
  return entry;
3963
3957
  });
3964
3958
  };
3965
- const serializeAws_restJson1ChannelMembershipPreferences = (input, context) => {
3959
+ const se_ChannelMembershipPreferences = (input, context) => {
3966
3960
  return {
3967
3961
  ...(input.PushNotifications != null && {
3968
- PushNotifications: serializeAws_restJson1PushNotificationPreferences(input.PushNotifications, context),
3962
+ PushNotifications: se_PushNotificationPreferences(input.PushNotifications, context),
3969
3963
  }),
3970
3964
  };
3971
3965
  };
3972
- const serializeAws_restJson1ChannelMessageCallback = (input, context) => {
3966
+ const se_ChannelMessageCallback = (input, context) => {
3973
3967
  return {
3974
3968
  ...(input.Content != null && { Content: input.Content }),
3975
3969
  ...(input.ContentType != null && { ContentType: input.ContentType }),
3976
3970
  ...(input.MessageAttributes != null && {
3977
- MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
3971
+ MessageAttributes: se_MessageAttributeMap(input.MessageAttributes, context),
3978
3972
  }),
3979
3973
  ...(input.MessageId != null && { MessageId: input.MessageId }),
3980
3974
  ...(input.Metadata != null && { Metadata: input.Metadata }),
3981
3975
  ...(input.PushNotification != null && {
3982
- PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
3976
+ PushNotification: se_PushNotificationConfiguration(input.PushNotification, context),
3983
3977
  }),
3984
3978
  ...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
3985
3979
  };
3986
3980
  };
3987
- const serializeAws_restJson1ChannelModeratorArns = (input, context) => {
3981
+ const se_ChannelModeratorArns = (input, context) => {
3988
3982
  return input
3989
3983
  .filter((e) => e != null)
3990
3984
  .map((entry) => {
3991
3985
  return entry;
3992
3986
  });
3993
3987
  };
3994
- const serializeAws_restJson1ElasticChannelConfiguration = (input, context) => {
3988
+ const se_ElasticChannelConfiguration = (input, context) => {
3995
3989
  return {
3996
3990
  ...(input.MaximumSubChannels != null && { MaximumSubChannels: input.MaximumSubChannels }),
3997
3991
  ...(input.MinimumMembershipPercentage != null && {
@@ -4002,138 +3996,134 @@ const serializeAws_restJson1ElasticChannelConfiguration = (input, context) => {
4002
3996
  }),
4003
3997
  };
4004
3998
  };
4005
- const serializeAws_restJson1ExpirationSettings = (input, context) => {
3999
+ const se_ExpirationSettings = (input, context) => {
4006
4000
  return {
4007
4001
  ...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
4008
4002
  ...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
4009
4003
  };
4010
4004
  };
4011
- const serializeAws_restJson1LambdaConfiguration = (input, context) => {
4005
+ const se_LambdaConfiguration = (input, context) => {
4012
4006
  return {
4013
4007
  ...(input.InvocationType != null && { InvocationType: input.InvocationType }),
4014
4008
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4015
4009
  };
4016
4010
  };
4017
- const serializeAws_restJson1MemberArns = (input, context) => {
4011
+ const se_MemberArns = (input, context) => {
4018
4012
  return input
4019
4013
  .filter((e) => e != null)
4020
4014
  .map((entry) => {
4021
4015
  return entry;
4022
4016
  });
4023
4017
  };
4024
- const serializeAws_restJson1MessageAttributeMap = (input, context) => {
4018
+ const se_MessageAttributeMap = (input, context) => {
4025
4019
  return Object.entries(input).reduce((acc, [key, value]) => {
4026
4020
  if (value === null) {
4027
4021
  return acc;
4028
4022
  }
4029
- acc[key] = serializeAws_restJson1MessageAttributeValue(value, context);
4023
+ acc[key] = se_MessageAttributeValue(value, context);
4030
4024
  return acc;
4031
4025
  }, {});
4032
4026
  };
4033
- const serializeAws_restJson1MessageAttributeStringValues = (input, context) => {
4027
+ const se_MessageAttributeStringValues = (input, context) => {
4034
4028
  return input
4035
4029
  .filter((e) => e != null)
4036
4030
  .map((entry) => {
4037
4031
  return entry;
4038
4032
  });
4039
4033
  };
4040
- const serializeAws_restJson1MessageAttributeValue = (input, context) => {
4034
+ const se_MessageAttributeValue = (input, context) => {
4041
4035
  return {
4042
- ...(input.StringValues != null && {
4043
- StringValues: serializeAws_restJson1MessageAttributeStringValues(input.StringValues, context),
4044
- }),
4036
+ ...(input.StringValues != null && { StringValues: se_MessageAttributeStringValues(input.StringValues, context) }),
4045
4037
  };
4046
4038
  };
4047
- const serializeAws_restJson1Processor = (input, context) => {
4039
+ const se_Processor = (input, context) => {
4048
4040
  return {
4049
- ...(input.Configuration != null && {
4050
- Configuration: serializeAws_restJson1ProcessorConfiguration(input.Configuration, context),
4051
- }),
4041
+ ...(input.Configuration != null && { Configuration: se_ProcessorConfiguration(input.Configuration, context) }),
4052
4042
  ...(input.ExecutionOrder != null && { ExecutionOrder: input.ExecutionOrder }),
4053
4043
  ...(input.FallbackAction != null && { FallbackAction: input.FallbackAction }),
4054
4044
  ...(input.Name != null && { Name: input.Name }),
4055
4045
  };
4056
4046
  };
4057
- const serializeAws_restJson1ProcessorConfiguration = (input, context) => {
4047
+ const se_ProcessorConfiguration = (input, context) => {
4058
4048
  return {
4059
- ...(input.Lambda != null && { Lambda: serializeAws_restJson1LambdaConfiguration(input.Lambda, context) }),
4049
+ ...(input.Lambda != null && { Lambda: se_LambdaConfiguration(input.Lambda, context) }),
4060
4050
  };
4061
4051
  };
4062
- const serializeAws_restJson1ProcessorList = (input, context) => {
4052
+ const se_ProcessorList = (input, context) => {
4063
4053
  return input
4064
4054
  .filter((e) => e != null)
4065
4055
  .map((entry) => {
4066
- return serializeAws_restJson1Processor(entry, context);
4056
+ return se_Processor(entry, context);
4067
4057
  });
4068
4058
  };
4069
- const serializeAws_restJson1PushNotificationConfiguration = (input, context) => {
4059
+ const se_PushNotificationConfiguration = (input, context) => {
4070
4060
  return {
4071
4061
  ...(input.Body != null && { Body: input.Body }),
4072
4062
  ...(input.Title != null && { Title: input.Title }),
4073
4063
  ...(input.Type != null && { Type: input.Type }),
4074
4064
  };
4075
4065
  };
4076
- const serializeAws_restJson1PushNotificationPreferences = (input, context) => {
4066
+ const se_PushNotificationPreferences = (input, context) => {
4077
4067
  return {
4078
4068
  ...(input.AllowNotifications != null && { AllowNotifications: input.AllowNotifications }),
4079
4069
  ...(input.FilterRule != null && { FilterRule: input.FilterRule }),
4080
4070
  };
4081
4071
  };
4082
- const serializeAws_restJson1SearchField = (input, context) => {
4072
+ const se_SearchField = (input, context) => {
4083
4073
  return {
4084
4074
  ...(input.Key != null && { Key: input.Key }),
4085
4075
  ...(input.Operator != null && { Operator: input.Operator }),
4086
- ...(input.Values != null && { Values: serializeAws_restJson1SearchFieldValues(input.Values, context) }),
4076
+ ...(input.Values != null && { Values: se_SearchFieldValues(input.Values, context) }),
4087
4077
  };
4088
4078
  };
4089
- const serializeAws_restJson1SearchFields = (input, context) => {
4079
+ const se_SearchFields = (input, context) => {
4090
4080
  return input
4091
4081
  .filter((e) => e != null)
4092
4082
  .map((entry) => {
4093
- return serializeAws_restJson1SearchField(entry, context);
4083
+ return se_SearchField(entry, context);
4094
4084
  });
4095
4085
  };
4096
- const serializeAws_restJson1SearchFieldValues = (input, context) => {
4086
+ const se_SearchFieldValues = (input, context) => {
4097
4087
  return input
4098
4088
  .filter((e) => e != null)
4099
4089
  .map((entry) => {
4100
4090
  return entry;
4101
4091
  });
4102
4092
  };
4103
- const serializeAws_restJson1StreamingConfiguration = (input, context) => {
4093
+ const se_StreamingConfiguration = (input, context) => {
4104
4094
  return {
4105
4095
  ...(input.DataType != null && { DataType: input.DataType }),
4106
4096
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4107
4097
  };
4108
4098
  };
4109
- const serializeAws_restJson1StreamingConfigurationList = (input, context) => {
4099
+ const se_StreamingConfigurationList = (input, context) => {
4110
4100
  return input
4111
4101
  .filter((e) => e != null)
4112
4102
  .map((entry) => {
4113
- return serializeAws_restJson1StreamingConfiguration(entry, context);
4103
+ return se_StreamingConfiguration(entry, context);
4114
4104
  });
4115
4105
  };
4116
- const serializeAws_restJson1Tag = (input, context) => {
4106
+ const se_Tag = (input, context) => {
4117
4107
  return {
4118
4108
  ...(input.Key != null && { Key: input.Key }),
4119
4109
  ...(input.Value != null && { Value: input.Value }),
4120
4110
  };
4121
4111
  };
4122
- const serializeAws_restJson1TagKeyList = (input, context) => {
4112
+ const se_TagKeyList = (input, context) => {
4123
4113
  return input
4124
4114
  .filter((e) => e != null)
4125
4115
  .map((entry) => {
4126
4116
  return entry;
4127
4117
  });
4128
4118
  };
4129
- const serializeAws_restJson1TagList = (input, context) => {
4119
+ const se_TagList = (input, context) => {
4130
4120
  return input
4131
4121
  .filter((e) => e != null)
4132
4122
  .map((entry) => {
4133
- return serializeAws_restJson1Tag(entry, context);
4123
+ return se_Tag(entry, context);
4134
4124
  });
4135
4125
  };
4136
- const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, context) => {
4126
+ const de_AppInstanceUserMembershipSummary = (output, context) => {
4137
4127
  return {
4138
4128
  ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
4139
4129
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
@@ -4142,47 +4132,45 @@ const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, contex
4142
4132
  Type: __expectString(output.Type),
4143
4133
  };
4144
4134
  };
4145
- const deserializeAws_restJson1BatchChannelMemberships = (output, context) => {
4135
+ const de_BatchChannelMemberships = (output, context) => {
4146
4136
  return {
4147
4137
  ChannelArn: __expectString(output.ChannelArn),
4148
- InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
4149
- Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
4138
+ InvitedBy: output.InvitedBy != null ? de_Identity(output.InvitedBy, context) : undefined,
4139
+ Members: output.Members != null ? de_Members(output.Members, context) : undefined,
4150
4140
  SubChannelId: __expectString(output.SubChannelId),
4151
4141
  Type: __expectString(output.Type),
4152
4142
  };
4153
4143
  };
4154
- const deserializeAws_restJson1BatchCreateChannelMembershipError = (output, context) => {
4144
+ const de_BatchCreateChannelMembershipError = (output, context) => {
4155
4145
  return {
4156
4146
  ErrorCode: __expectString(output.ErrorCode),
4157
4147
  ErrorMessage: __expectString(output.ErrorMessage),
4158
4148
  MemberArn: __expectString(output.MemberArn),
4159
4149
  };
4160
4150
  };
4161
- const deserializeAws_restJson1BatchCreateChannelMembershipErrors = (output, context) => {
4151
+ const de_BatchCreateChannelMembershipErrors = (output, context) => {
4162
4152
  const retVal = (output || [])
4163
4153
  .filter((e) => e != null)
4164
4154
  .map((entry) => {
4165
4155
  if (entry === null) {
4166
4156
  return null;
4167
4157
  }
4168
- return deserializeAws_restJson1BatchCreateChannelMembershipError(entry, context);
4158
+ return de_BatchCreateChannelMembershipError(entry, context);
4169
4159
  });
4170
4160
  return retVal;
4171
4161
  };
4172
- const deserializeAws_restJson1Channel = (output, context) => {
4162
+ const de_Channel = (output, context) => {
4173
4163
  return {
4174
4164
  ChannelArn: __expectString(output.ChannelArn),
4175
4165
  ChannelFlowArn: __expectString(output.ChannelFlowArn),
4176
- CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
4166
+ CreatedBy: output.CreatedBy != null ? de_Identity(output.CreatedBy, context) : undefined,
4177
4167
  CreatedTimestamp: output.CreatedTimestamp != null
4178
4168
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4179
4169
  : undefined,
4180
4170
  ElasticChannelConfiguration: output.ElasticChannelConfiguration != null
4181
- ? deserializeAws_restJson1ElasticChannelConfiguration(output.ElasticChannelConfiguration, context)
4182
- : undefined,
4183
- ExpirationSettings: output.ExpirationSettings != null
4184
- ? deserializeAws_restJson1ExpirationSettings(output.ExpirationSettings, context)
4171
+ ? de_ElasticChannelConfiguration(output.ElasticChannelConfiguration, context)
4185
4172
  : undefined,
4173
+ ExpirationSettings: output.ExpirationSettings != null ? de_ExpirationSettings(output.ExpirationSettings, context) : undefined,
4186
4174
  LastMessageTimestamp: output.LastMessageTimestamp != null
4187
4175
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
4188
4176
  : undefined,
@@ -4195,7 +4183,7 @@ const deserializeAws_restJson1Channel = (output, context) => {
4195
4183
  Privacy: __expectString(output.Privacy),
4196
4184
  };
4197
4185
  };
4198
- const deserializeAws_restJson1ChannelAssociatedWithFlowSummary = (output, context) => {
4186
+ const de_ChannelAssociatedWithFlowSummary = (output, context) => {
4199
4187
  return {
4200
4188
  ChannelArn: __expectString(output.ChannelArn),
4201
4189
  Metadata: __expectString(output.Metadata),
@@ -4204,44 +4192,44 @@ const deserializeAws_restJson1ChannelAssociatedWithFlowSummary = (output, contex
4204
4192
  Privacy: __expectString(output.Privacy),
4205
4193
  };
4206
4194
  };
4207
- const deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList = (output, context) => {
4195
+ const de_ChannelAssociatedWithFlowSummaryList = (output, context) => {
4208
4196
  const retVal = (output || [])
4209
4197
  .filter((e) => e != null)
4210
4198
  .map((entry) => {
4211
4199
  if (entry === null) {
4212
4200
  return null;
4213
4201
  }
4214
- return deserializeAws_restJson1ChannelAssociatedWithFlowSummary(entry, context);
4202
+ return de_ChannelAssociatedWithFlowSummary(entry, context);
4215
4203
  });
4216
4204
  return retVal;
4217
4205
  };
4218
- const deserializeAws_restJson1ChannelBan = (output, context) => {
4206
+ const de_ChannelBan = (output, context) => {
4219
4207
  return {
4220
4208
  ChannelArn: __expectString(output.ChannelArn),
4221
- CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
4209
+ CreatedBy: output.CreatedBy != null ? de_Identity(output.CreatedBy, context) : undefined,
4222
4210
  CreatedTimestamp: output.CreatedTimestamp != null
4223
4211
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4224
4212
  : undefined,
4225
- Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
4213
+ Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
4226
4214
  };
4227
4215
  };
4228
- const deserializeAws_restJson1ChannelBanSummary = (output, context) => {
4216
+ const de_ChannelBanSummary = (output, context) => {
4229
4217
  return {
4230
- Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
4218
+ Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
4231
4219
  };
4232
4220
  };
4233
- const deserializeAws_restJson1ChannelBanSummaryList = (output, context) => {
4221
+ const de_ChannelBanSummaryList = (output, context) => {
4234
4222
  const retVal = (output || [])
4235
4223
  .filter((e) => e != null)
4236
4224
  .map((entry) => {
4237
4225
  if (entry === null) {
4238
4226
  return null;
4239
4227
  }
4240
- return deserializeAws_restJson1ChannelBanSummary(entry, context);
4228
+ return de_ChannelBanSummary(entry, context);
4241
4229
  });
4242
4230
  return retVal;
4243
4231
  };
4244
- const deserializeAws_restJson1ChannelFlow = (output, context) => {
4232
+ const de_ChannelFlow = (output, context) => {
4245
4233
  return {
4246
4234
  ChannelFlowArn: __expectString(output.ChannelFlowArn),
4247
4235
  CreatedTimestamp: output.CreatedTimestamp != null
@@ -4251,87 +4239,83 @@ const deserializeAws_restJson1ChannelFlow = (output, context) => {
4251
4239
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
4252
4240
  : undefined,
4253
4241
  Name: __expectString(output.Name),
4254
- Processors: output.Processors != null ? deserializeAws_restJson1ProcessorList(output.Processors, context) : undefined,
4242
+ Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
4255
4243
  };
4256
4244
  };
4257
- const deserializeAws_restJson1ChannelFlowSummary = (output, context) => {
4245
+ const de_ChannelFlowSummary = (output, context) => {
4258
4246
  return {
4259
4247
  ChannelFlowArn: __expectString(output.ChannelFlowArn),
4260
4248
  Name: __expectString(output.Name),
4261
- Processors: output.Processors != null ? deserializeAws_restJson1ProcessorList(output.Processors, context) : undefined,
4249
+ Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
4262
4250
  };
4263
4251
  };
4264
- const deserializeAws_restJson1ChannelFlowSummaryList = (output, context) => {
4252
+ const de_ChannelFlowSummaryList = (output, context) => {
4265
4253
  const retVal = (output || [])
4266
4254
  .filter((e) => e != null)
4267
4255
  .map((entry) => {
4268
4256
  if (entry === null) {
4269
4257
  return null;
4270
4258
  }
4271
- return deserializeAws_restJson1ChannelFlowSummary(entry, context);
4259
+ return de_ChannelFlowSummary(entry, context);
4272
4260
  });
4273
4261
  return retVal;
4274
4262
  };
4275
- const deserializeAws_restJson1ChannelMembership = (output, context) => {
4263
+ const de_ChannelMembership = (output, context) => {
4276
4264
  return {
4277
4265
  ChannelArn: __expectString(output.ChannelArn),
4278
4266
  CreatedTimestamp: output.CreatedTimestamp != null
4279
4267
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4280
4268
  : undefined,
4281
- InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
4269
+ InvitedBy: output.InvitedBy != null ? de_Identity(output.InvitedBy, context) : undefined,
4282
4270
  LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
4283
4271
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
4284
4272
  : undefined,
4285
- Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
4273
+ Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
4286
4274
  SubChannelId: __expectString(output.SubChannelId),
4287
4275
  Type: __expectString(output.Type),
4288
4276
  };
4289
4277
  };
4290
- const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary = (output, context) => {
4278
+ const de_ChannelMembershipForAppInstanceUserSummary = (output, context) => {
4291
4279
  return {
4292
4280
  AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary != null
4293
- ? deserializeAws_restJson1AppInstanceUserMembershipSummary(output.AppInstanceUserMembershipSummary, context)
4294
- : undefined,
4295
- ChannelSummary: output.ChannelSummary != null
4296
- ? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
4281
+ ? de_AppInstanceUserMembershipSummary(output.AppInstanceUserMembershipSummary, context)
4297
4282
  : undefined,
4283
+ ChannelSummary: output.ChannelSummary != null ? de_ChannelSummary(output.ChannelSummary, context) : undefined,
4298
4284
  };
4299
4285
  };
4300
- const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = (output, context) => {
4286
+ const de_ChannelMembershipForAppInstanceUserSummaryList = (output, context) => {
4301
4287
  const retVal = (output || [])
4302
4288
  .filter((e) => e != null)
4303
4289
  .map((entry) => {
4304
4290
  if (entry === null) {
4305
4291
  return null;
4306
4292
  }
4307
- return deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(entry, context);
4293
+ return de_ChannelMembershipForAppInstanceUserSummary(entry, context);
4308
4294
  });
4309
4295
  return retVal;
4310
4296
  };
4311
- const deserializeAws_restJson1ChannelMembershipPreferences = (output, context) => {
4297
+ const de_ChannelMembershipPreferences = (output, context) => {
4312
4298
  return {
4313
- PushNotifications: output.PushNotifications != null
4314
- ? deserializeAws_restJson1PushNotificationPreferences(output.PushNotifications, context)
4315
- : undefined,
4299
+ PushNotifications: output.PushNotifications != null ? de_PushNotificationPreferences(output.PushNotifications, context) : undefined,
4316
4300
  };
4317
4301
  };
4318
- const deserializeAws_restJson1ChannelMembershipSummary = (output, context) => {
4302
+ const de_ChannelMembershipSummary = (output, context) => {
4319
4303
  return {
4320
- Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
4304
+ Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
4321
4305
  };
4322
4306
  };
4323
- const deserializeAws_restJson1ChannelMembershipSummaryList = (output, context) => {
4307
+ const de_ChannelMembershipSummaryList = (output, context) => {
4324
4308
  const retVal = (output || [])
4325
4309
  .filter((e) => e != null)
4326
4310
  .map((entry) => {
4327
4311
  if (entry === null) {
4328
4312
  return null;
4329
4313
  }
4330
- return deserializeAws_restJson1ChannelMembershipSummary(entry, context);
4314
+ return de_ChannelMembershipSummary(entry, context);
4331
4315
  });
4332
4316
  return retVal;
4333
4317
  };
4334
- const deserializeAws_restJson1ChannelMessage = (output, context) => {
4318
+ const de_ChannelMessage = (output, context) => {
4335
4319
  return {
4336
4320
  ChannelArn: __expectString(output.ChannelArn),
4337
4321
  Content: __expectString(output.Content),
@@ -4345,26 +4329,24 @@ const deserializeAws_restJson1ChannelMessage = (output, context) => {
4345
4329
  LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
4346
4330
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
4347
4331
  : undefined,
4348
- MessageAttributes: output.MessageAttributes != null
4349
- ? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
4350
- : undefined,
4332
+ MessageAttributes: output.MessageAttributes != null ? de_MessageAttributeMap(output.MessageAttributes, context) : undefined,
4351
4333
  MessageId: __expectString(output.MessageId),
4352
4334
  Metadata: __expectString(output.Metadata),
4353
4335
  Persistence: __expectString(output.Persistence),
4354
4336
  Redacted: __expectBoolean(output.Redacted),
4355
- Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
4356
- Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
4337
+ Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
4338
+ Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
4357
4339
  SubChannelId: __expectString(output.SubChannelId),
4358
4340
  Type: __expectString(output.Type),
4359
4341
  };
4360
4342
  };
4361
- const deserializeAws_restJson1ChannelMessageStatusStructure = (output, context) => {
4343
+ const de_ChannelMessageStatusStructure = (output, context) => {
4362
4344
  return {
4363
4345
  Detail: __expectString(output.Detail),
4364
4346
  Value: __expectString(output.Value),
4365
4347
  };
4366
4348
  };
4367
- const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
4349
+ const de_ChannelMessageSummary = (output, context) => {
4368
4350
  return {
4369
4351
  Content: __expectString(output.Content),
4370
4352
  ContentType: __expectString(output.ContentType),
@@ -4377,73 +4359,69 @@ const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
4377
4359
  LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
4378
4360
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
4379
4361
  : undefined,
4380
- MessageAttributes: output.MessageAttributes != null
4381
- ? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
4382
- : undefined,
4362
+ MessageAttributes: output.MessageAttributes != null ? de_MessageAttributeMap(output.MessageAttributes, context) : undefined,
4383
4363
  MessageId: __expectString(output.MessageId),
4384
4364
  Metadata: __expectString(output.Metadata),
4385
4365
  Redacted: __expectBoolean(output.Redacted),
4386
- Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
4387
- Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
4366
+ Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
4367
+ Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
4388
4368
  Type: __expectString(output.Type),
4389
4369
  };
4390
4370
  };
4391
- const deserializeAws_restJson1ChannelMessageSummaryList = (output, context) => {
4371
+ const de_ChannelMessageSummaryList = (output, context) => {
4392
4372
  const retVal = (output || [])
4393
4373
  .filter((e) => e != null)
4394
4374
  .map((entry) => {
4395
4375
  if (entry === null) {
4396
4376
  return null;
4397
4377
  }
4398
- return deserializeAws_restJson1ChannelMessageSummary(entry, context);
4378
+ return de_ChannelMessageSummary(entry, context);
4399
4379
  });
4400
4380
  return retVal;
4401
4381
  };
4402
- const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary = (output, context) => {
4382
+ const de_ChannelModeratedByAppInstanceUserSummary = (output, context) => {
4403
4383
  return {
4404
- ChannelSummary: output.ChannelSummary != null
4405
- ? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
4406
- : undefined,
4384
+ ChannelSummary: output.ChannelSummary != null ? de_ChannelSummary(output.ChannelSummary, context) : undefined,
4407
4385
  };
4408
4386
  };
4409
- const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = (output, context) => {
4387
+ const de_ChannelModeratedByAppInstanceUserSummaryList = (output, context) => {
4410
4388
  const retVal = (output || [])
4411
4389
  .filter((e) => e != null)
4412
4390
  .map((entry) => {
4413
4391
  if (entry === null) {
4414
4392
  return null;
4415
4393
  }
4416
- return deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(entry, context);
4394
+ return de_ChannelModeratedByAppInstanceUserSummary(entry, context);
4417
4395
  });
4418
4396
  return retVal;
4419
4397
  };
4420
- const deserializeAws_restJson1ChannelModerator = (output, context) => {
4398
+ const de_ChannelModerator = (output, context) => {
4421
4399
  return {
4422
4400
  ChannelArn: __expectString(output.ChannelArn),
4423
- CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
4401
+ CreatedBy: output.CreatedBy != null ? de_Identity(output.CreatedBy, context) : undefined,
4424
4402
  CreatedTimestamp: output.CreatedTimestamp != null
4425
4403
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4426
4404
  : undefined,
4427
- Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
4405
+ Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
4428
4406
  };
4429
4407
  };
4430
- const deserializeAws_restJson1ChannelModeratorSummary = (output, context) => {
4408
+ const de_ChannelModeratorSummary = (output, context) => {
4431
4409
  return {
4432
- Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
4410
+ Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
4433
4411
  };
4434
4412
  };
4435
- const deserializeAws_restJson1ChannelModeratorSummaryList = (output, context) => {
4413
+ const de_ChannelModeratorSummaryList = (output, context) => {
4436
4414
  const retVal = (output || [])
4437
4415
  .filter((e) => e != null)
4438
4416
  .map((entry) => {
4439
4417
  if (entry === null) {
4440
4418
  return null;
4441
4419
  }
4442
- return deserializeAws_restJson1ChannelModeratorSummary(entry, context);
4420
+ return de_ChannelModeratorSummary(entry, context);
4443
4421
  });
4444
4422
  return retVal;
4445
4423
  };
4446
- const deserializeAws_restJson1ChannelSummary = (output, context) => {
4424
+ const de_ChannelSummary = (output, context) => {
4447
4425
  return {
4448
4426
  ChannelArn: __expectString(output.ChannelArn),
4449
4427
  LastMessageTimestamp: output.LastMessageTimestamp != null
@@ -4455,63 +4433,63 @@ const deserializeAws_restJson1ChannelSummary = (output, context) => {
4455
4433
  Privacy: __expectString(output.Privacy),
4456
4434
  };
4457
4435
  };
4458
- const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
4436
+ const de_ChannelSummaryList = (output, context) => {
4459
4437
  const retVal = (output || [])
4460
4438
  .filter((e) => e != null)
4461
4439
  .map((entry) => {
4462
4440
  if (entry === null) {
4463
4441
  return null;
4464
4442
  }
4465
- return deserializeAws_restJson1ChannelSummary(entry, context);
4443
+ return de_ChannelSummary(entry, context);
4466
4444
  });
4467
4445
  return retVal;
4468
4446
  };
4469
- const deserializeAws_restJson1ElasticChannelConfiguration = (output, context) => {
4447
+ const de_ElasticChannelConfiguration = (output, context) => {
4470
4448
  return {
4471
4449
  MaximumSubChannels: __expectInt32(output.MaximumSubChannels),
4472
4450
  MinimumMembershipPercentage: __expectInt32(output.MinimumMembershipPercentage),
4473
4451
  TargetMembershipsPerSubChannel: __expectInt32(output.TargetMembershipsPerSubChannel),
4474
4452
  };
4475
4453
  };
4476
- const deserializeAws_restJson1ExpirationSettings = (output, context) => {
4454
+ const de_ExpirationSettings = (output, context) => {
4477
4455
  return {
4478
4456
  ExpirationCriterion: __expectString(output.ExpirationCriterion),
4479
4457
  ExpirationDays: __expectInt32(output.ExpirationDays),
4480
4458
  };
4481
4459
  };
4482
- const deserializeAws_restJson1Identity = (output, context) => {
4460
+ const de_Identity = (output, context) => {
4483
4461
  return {
4484
4462
  Arn: __expectString(output.Arn),
4485
4463
  Name: __expectString(output.Name),
4486
4464
  };
4487
4465
  };
4488
- const deserializeAws_restJson1LambdaConfiguration = (output, context) => {
4466
+ const de_LambdaConfiguration = (output, context) => {
4489
4467
  return {
4490
4468
  InvocationType: __expectString(output.InvocationType),
4491
4469
  ResourceArn: __expectString(output.ResourceArn),
4492
4470
  };
4493
4471
  };
4494
- const deserializeAws_restJson1Members = (output, context) => {
4472
+ const de_Members = (output, context) => {
4495
4473
  const retVal = (output || [])
4496
4474
  .filter((e) => e != null)
4497
4475
  .map((entry) => {
4498
4476
  if (entry === null) {
4499
4477
  return null;
4500
4478
  }
4501
- return deserializeAws_restJson1Identity(entry, context);
4479
+ return de_Identity(entry, context);
4502
4480
  });
4503
4481
  return retVal;
4504
4482
  };
4505
- const deserializeAws_restJson1MessageAttributeMap = (output, context) => {
4483
+ const de_MessageAttributeMap = (output, context) => {
4506
4484
  return Object.entries(output).reduce((acc, [key, value]) => {
4507
4485
  if (value === null) {
4508
4486
  return acc;
4509
4487
  }
4510
- acc[key] = deserializeAws_restJson1MessageAttributeValue(value, context);
4488
+ acc[key] = de_MessageAttributeValue(value, context);
4511
4489
  return acc;
4512
4490
  }, {});
4513
4491
  };
4514
- const deserializeAws_restJson1MessageAttributeStringValues = (output, context) => {
4492
+ const de_MessageAttributeStringValues = (output, context) => {
4515
4493
  const retVal = (output || [])
4516
4494
  .filter((e) => e != null)
4517
4495
  .map((entry) => {
@@ -4522,98 +4500,94 @@ const deserializeAws_restJson1MessageAttributeStringValues = (output, context) =
4522
4500
  });
4523
4501
  return retVal;
4524
4502
  };
4525
- const deserializeAws_restJson1MessageAttributeValue = (output, context) => {
4503
+ const de_MessageAttributeValue = (output, context) => {
4526
4504
  return {
4527
- StringValues: output.StringValues != null
4528
- ? deserializeAws_restJson1MessageAttributeStringValues(output.StringValues, context)
4529
- : undefined,
4505
+ StringValues: output.StringValues != null ? de_MessageAttributeStringValues(output.StringValues, context) : undefined,
4530
4506
  };
4531
4507
  };
4532
- const deserializeAws_restJson1MessagingSessionEndpoint = (output, context) => {
4508
+ const de_MessagingSessionEndpoint = (output, context) => {
4533
4509
  return {
4534
4510
  Url: __expectString(output.Url),
4535
4511
  };
4536
4512
  };
4537
- const deserializeAws_restJson1Processor = (output, context) => {
4513
+ const de_Processor = (output, context) => {
4538
4514
  return {
4539
- Configuration: output.Configuration != null
4540
- ? deserializeAws_restJson1ProcessorConfiguration(output.Configuration, context)
4541
- : undefined,
4515
+ Configuration: output.Configuration != null ? de_ProcessorConfiguration(output.Configuration, context) : undefined,
4542
4516
  ExecutionOrder: __expectInt32(output.ExecutionOrder),
4543
4517
  FallbackAction: __expectString(output.FallbackAction),
4544
4518
  Name: __expectString(output.Name),
4545
4519
  };
4546
4520
  };
4547
- const deserializeAws_restJson1ProcessorConfiguration = (output, context) => {
4521
+ const de_ProcessorConfiguration = (output, context) => {
4548
4522
  return {
4549
- Lambda: output.Lambda != null ? deserializeAws_restJson1LambdaConfiguration(output.Lambda, context) : undefined,
4523
+ Lambda: output.Lambda != null ? de_LambdaConfiguration(output.Lambda, context) : undefined,
4550
4524
  };
4551
4525
  };
4552
- const deserializeAws_restJson1ProcessorList = (output, context) => {
4526
+ const de_ProcessorList = (output, context) => {
4553
4527
  const retVal = (output || [])
4554
4528
  .filter((e) => e != null)
4555
4529
  .map((entry) => {
4556
4530
  if (entry === null) {
4557
4531
  return null;
4558
4532
  }
4559
- return deserializeAws_restJson1Processor(entry, context);
4533
+ return de_Processor(entry, context);
4560
4534
  });
4561
4535
  return retVal;
4562
4536
  };
4563
- const deserializeAws_restJson1PushNotificationPreferences = (output, context) => {
4537
+ const de_PushNotificationPreferences = (output, context) => {
4564
4538
  return {
4565
4539
  AllowNotifications: __expectString(output.AllowNotifications),
4566
4540
  FilterRule: __expectString(output.FilterRule),
4567
4541
  };
4568
4542
  };
4569
- const deserializeAws_restJson1StreamingConfiguration = (output, context) => {
4543
+ const de_StreamingConfiguration = (output, context) => {
4570
4544
  return {
4571
4545
  DataType: __expectString(output.DataType),
4572
4546
  ResourceArn: __expectString(output.ResourceArn),
4573
4547
  };
4574
4548
  };
4575
- const deserializeAws_restJson1StreamingConfigurationList = (output, context) => {
4549
+ const de_StreamingConfigurationList = (output, context) => {
4576
4550
  const retVal = (output || [])
4577
4551
  .filter((e) => e != null)
4578
4552
  .map((entry) => {
4579
4553
  if (entry === null) {
4580
4554
  return null;
4581
4555
  }
4582
- return deserializeAws_restJson1StreamingConfiguration(entry, context);
4556
+ return de_StreamingConfiguration(entry, context);
4583
4557
  });
4584
4558
  return retVal;
4585
4559
  };
4586
- const deserializeAws_restJson1SubChannelSummary = (output, context) => {
4560
+ const de_SubChannelSummary = (output, context) => {
4587
4561
  return {
4588
4562
  MembershipCount: __expectInt32(output.MembershipCount),
4589
4563
  SubChannelId: __expectString(output.SubChannelId),
4590
4564
  };
4591
4565
  };
4592
- const deserializeAws_restJson1SubChannelSummaryList = (output, context) => {
4566
+ const de_SubChannelSummaryList = (output, context) => {
4593
4567
  const retVal = (output || [])
4594
4568
  .filter((e) => e != null)
4595
4569
  .map((entry) => {
4596
4570
  if (entry === null) {
4597
4571
  return null;
4598
4572
  }
4599
- return deserializeAws_restJson1SubChannelSummary(entry, context);
4573
+ return de_SubChannelSummary(entry, context);
4600
4574
  });
4601
4575
  return retVal;
4602
4576
  };
4603
- const deserializeAws_restJson1Tag = (output, context) => {
4577
+ const de_Tag = (output, context) => {
4604
4578
  return {
4605
4579
  Key: __expectString(output.Key),
4606
4580
  Value: __expectString(output.Value),
4607
4581
  };
4608
4582
  };
4609
- const deserializeAws_restJson1TagList = (output, context) => {
4583
+ const de_TagList = (output, context) => {
4610
4584
  const retVal = (output || [])
4611
4585
  .filter((e) => e != null)
4612
4586
  .map((entry) => {
4613
4587
  if (entry === null) {
4614
4588
  return null;
4615
4589
  }
4616
- return deserializeAws_restJson1Tag(entry, context);
4590
+ return de_Tag(entry, context);
4617
4591
  });
4618
4592
  return retVal;
4619
4593
  };