@aws-sdk/client-chime-sdk-messaging 3.30.0 → 3.34.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.
- package/CHANGELOG.md +38 -0
- package/ChimeSDKMessaging.ts +2 -1
- package/ChimeSDKMessagingClient.ts +2 -1
- package/README.md +2 -1
- package/dist/cjs/ChimeSDKMessaging.js +2 -1
- package/dist/cjs/ChimeSDKMessaging.js.map +1 -1
- package/dist/cjs/ChimeSDKMessagingClient.js +15 -14
- package/dist/cjs/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/cjs/commands/BatchCreateChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/BatchCreateChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelBanCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelBanCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelModeratorCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelModeratorCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelBanCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelBanCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelModeratorCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelModeratorCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelBanCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelBanCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelModeratorCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelModeratorCommand.js.map +1 -1
- package/dist/cjs/commands/GetChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/GetChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/GetMessagingSessionEndpointCommand.js +3 -3
- package/dist/cjs/commands/GetMessagingSessionEndpointCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelBansCommand.js +3 -3
- package/dist/cjs/commands/ListChannelBansCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelMembershipsCommand.js +3 -3
- package/dist/cjs/commands/ListChannelMembershipsCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelMessagesCommand.js +3 -3
- package/dist/cjs/commands/ListChannelMessagesCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelModeratorsCommand.js +3 -3
- package/dist/cjs/commands/ListChannelModeratorsCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelsCommand.js +3 -3
- package/dist/cjs/commands/ListChannelsCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/RedactChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/RedactChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/SendChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/SendChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateChannelCommand.js +3 -3
- package/dist/cjs/commands/UpdateChannelCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/UpdateChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateChannelReadMarkerCommand.js +3 -3
- package/dist/cjs/commands/UpdateChannelReadMarkerCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +41 -41
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js +153 -153
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/ChimeSDKMessaging.js +1 -7
- package/dist/es/ChimeSDKMessaging.js.map +1 -1
- package/dist/es/ChimeSDKMessagingClient.js +1 -12
- package/dist/es/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/es/commands/BatchCreateChannelMembershipCommand.js +2 -27
- package/dist/es/commands/BatchCreateChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelBanCommand.js +2 -38
- package/dist/es/commands/CreateChannelBanCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelCommand.js +2 -37
- package/dist/es/commands/CreateChannelCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelMembershipCommand.js +2 -64
- package/dist/es/commands/CreateChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelModeratorCommand.js +2 -51
- package/dist/es/commands/CreateChannelModeratorCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelBanCommand.js +2 -33
- package/dist/es/commands/DeleteChannelBanCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelCommand.js +2 -34
- package/dist/es/commands/DeleteChannelCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelMembershipCommand.js +2 -33
- package/dist/es/commands/DeleteChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelMessageCommand.js +2 -35
- package/dist/es/commands/DeleteChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelModeratorCommand.js +2 -33
- package/dist/es/commands/DeleteChannelModeratorCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelBanCommand.js +2 -34
- package/dist/es/commands/DescribeChannelBanCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelCommand.js +2 -35
- package/dist/es/commands/DescribeChannelCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelMembershipCommand.js +2 -32
- package/dist/es/commands/DescribeChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +2 -34
- package/dist/es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +2 -34
- package/dist/es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelModeratorCommand.js +2 -32
- package/dist/es/commands/DescribeChannelModeratorCommand.js.map +1 -1
- package/dist/es/commands/GetChannelMessageCommand.js +2 -33
- package/dist/es/commands/GetChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/GetMessagingSessionEndpointCommand.js +2 -27
- package/dist/es/commands/GetMessagingSessionEndpointCommand.js.map +1 -1
- package/dist/es/commands/ListChannelBansCommand.js +2 -33
- package/dist/es/commands/ListChannelBansCommand.js.map +1 -1
- package/dist/es/commands/ListChannelMembershipsCommand.js +2 -34
- package/dist/es/commands/ListChannelMembershipsCommand.js.map +1 -1
- package/dist/es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +2 -34
- package/dist/es/commands/ListChannelMembershipsForAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/ListChannelMessagesCommand.js +2 -37
- package/dist/es/commands/ListChannelMessagesCommand.js.map +1 -1
- package/dist/es/commands/ListChannelModeratorsCommand.js +2 -32
- package/dist/es/commands/ListChannelModeratorsCommand.js.map +1 -1
- package/dist/es/commands/ListChannelsCommand.js +2 -48
- package/dist/es/commands/ListChannelsCommand.js.map +1 -1
- package/dist/es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +2 -33
- package/dist/es/commands/ListChannelsModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/RedactChannelMessageCommand.js +2 -34
- package/dist/es/commands/RedactChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/SendChannelMessageCommand.js +2 -36
- package/dist/es/commands/SendChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/UpdateChannelCommand.js +2 -34
- package/dist/es/commands/UpdateChannelCommand.js.map +1 -1
- package/dist/es/commands/UpdateChannelMessageCommand.js +2 -33
- package/dist/es/commands/UpdateChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/UpdateChannelReadMarkerCommand.js +2 -33
- package/dist/es/commands/UpdateChannelReadMarkerCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -246
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListChannelBansPaginator.js +16 -28
- package/dist/es/pagination/ListChannelBansPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +16 -28
- package/dist/es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelMembershipsPaginator.js +16 -28
- package/dist/es/pagination/ListChannelMembershipsPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelMessagesPaginator.js +16 -28
- package/dist/es/pagination/ListChannelMessagesPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelModeratorsPaginator.js +16 -28
- package/dist/es/pagination/ListChannelModeratorsPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +16 -28
- package/dist/es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelsPaginator.js +16 -28
- package/dist/es/pagination/ListChannelsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +1079 -1084
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ChimeSDKMessagingClient.d.ts +2 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ts3.4/ChimeSDKMessagingClient.d.ts +2 -1
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_restJson1.ts +17 -15
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -17,7 +17,7 @@ const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input,
|
|
|
17
17
|
if (labelValue.length <= 0) {
|
|
18
18
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
19
19
|
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
20
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
23
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -55,7 +55,7 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
55
55
|
body = JSON.stringify({
|
|
56
56
|
...(input.AppInstanceArn !== undefined &&
|
|
57
57
|
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn }),
|
|
58
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a :
|
|
58
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
59
59
|
...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
|
|
60
60
|
...(input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode }),
|
|
61
61
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -86,7 +86,7 @@ const serializeAws_restJson1CreateChannelBanCommand = async (input, context) =>
|
|
|
86
86
|
if (labelValue.length <= 0) {
|
|
87
87
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
88
88
|
}
|
|
89
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
89
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
92
92
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -118,7 +118,7 @@ const serializeAws_restJson1CreateChannelMembershipCommand = async (input, conte
|
|
|
118
118
|
if (labelValue.length <= 0) {
|
|
119
119
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
120
120
|
}
|
|
121
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
121
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
122
122
|
}
|
|
123
123
|
else {
|
|
124
124
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -151,7 +151,7 @@ const serializeAws_restJson1CreateChannelModeratorCommand = async (input, contex
|
|
|
151
151
|
if (labelValue.length <= 0) {
|
|
152
152
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
153
153
|
}
|
|
154
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
154
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
155
155
|
}
|
|
156
156
|
else {
|
|
157
157
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -183,7 +183,7 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
|
|
|
183
183
|
if (labelValue.length <= 0) {
|
|
184
184
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
185
185
|
}
|
|
186
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
186
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
189
189
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -211,7 +211,7 @@ const serializeAws_restJson1DeleteChannelBanCommand = async (input, context) =>
|
|
|
211
211
|
if (labelValue.length <= 0) {
|
|
212
212
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
213
213
|
}
|
|
214
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
214
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
217
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -221,7 +221,7 @@ const serializeAws_restJson1DeleteChannelBanCommand = async (input, context) =>
|
|
|
221
221
|
if (labelValue.length <= 0) {
|
|
222
222
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
223
223
|
}
|
|
224
|
-
resolvedPath = resolvedPath.replace("{MemberArn}",
|
|
224
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
225
225
|
}
|
|
226
226
|
else {
|
|
227
227
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -250,7 +250,7 @@ const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, conte
|
|
|
250
250
|
if (labelValue.length <= 0) {
|
|
251
251
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
252
252
|
}
|
|
253
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
253
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -260,7 +260,7 @@ const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, conte
|
|
|
260
260
|
if (labelValue.length <= 0) {
|
|
261
261
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
262
262
|
}
|
|
263
|
-
resolvedPath = resolvedPath.replace("{MemberArn}",
|
|
263
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
264
264
|
}
|
|
265
265
|
else {
|
|
266
266
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -289,7 +289,7 @@ const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context)
|
|
|
289
289
|
if (labelValue.length <= 0) {
|
|
290
290
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
291
291
|
}
|
|
292
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
292
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
293
293
|
}
|
|
294
294
|
else {
|
|
295
295
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -299,7 +299,7 @@ const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context)
|
|
|
299
299
|
if (labelValue.length <= 0) {
|
|
300
300
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
301
301
|
}
|
|
302
|
-
resolvedPath = resolvedPath.replace("{MessageId}",
|
|
302
|
+
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
303
303
|
}
|
|
304
304
|
else {
|
|
305
305
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -328,7 +328,7 @@ const serializeAws_restJson1DeleteChannelModeratorCommand = async (input, contex
|
|
|
328
328
|
if (labelValue.length <= 0) {
|
|
329
329
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
330
330
|
}
|
|
331
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
331
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
332
332
|
}
|
|
333
333
|
else {
|
|
334
334
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -338,7 +338,7 @@ const serializeAws_restJson1DeleteChannelModeratorCommand = async (input, contex
|
|
|
338
338
|
if (labelValue.length <= 0) {
|
|
339
339
|
throw new Error("Empty value provided for input HTTP label: ChannelModeratorArn.");
|
|
340
340
|
}
|
|
341
|
-
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}",
|
|
341
|
+
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
342
342
|
}
|
|
343
343
|
else {
|
|
344
344
|
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
@@ -366,7 +366,7 @@ const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
|
|
|
366
366
|
if (labelValue.length <= 0) {
|
|
367
367
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
368
368
|
}
|
|
369
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
369
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
370
370
|
}
|
|
371
371
|
else {
|
|
372
372
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -394,7 +394,7 @@ const serializeAws_restJson1DescribeChannelBanCommand = async (input, context) =
|
|
|
394
394
|
if (labelValue.length <= 0) {
|
|
395
395
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
396
396
|
}
|
|
397
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
397
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
398
398
|
}
|
|
399
399
|
else {
|
|
400
400
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -404,7 +404,7 @@ const serializeAws_restJson1DescribeChannelBanCommand = async (input, context) =
|
|
|
404
404
|
if (labelValue.length <= 0) {
|
|
405
405
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
406
406
|
}
|
|
407
|
-
resolvedPath = resolvedPath.replace("{MemberArn}",
|
|
407
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
408
408
|
}
|
|
409
409
|
else {
|
|
410
410
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -433,7 +433,7 @@ const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, con
|
|
|
433
433
|
if (labelValue.length <= 0) {
|
|
434
434
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
435
435
|
}
|
|
436
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
436
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
437
437
|
}
|
|
438
438
|
else {
|
|
439
439
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -443,7 +443,7 @@ const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, con
|
|
|
443
443
|
if (labelValue.length <= 0) {
|
|
444
444
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
445
445
|
}
|
|
446
|
-
resolvedPath = resolvedPath.replace("{MemberArn}",
|
|
446
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
447
447
|
}
|
|
448
448
|
else {
|
|
449
449
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -471,7 +471,7 @@ const serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand =
|
|
|
471
471
|
if (labelValue.length <= 0) {
|
|
472
472
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
473
473
|
}
|
|
474
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
474
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
475
475
|
}
|
|
476
476
|
else {
|
|
477
477
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -504,7 +504,7 @@ const serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = a
|
|
|
504
504
|
if (labelValue.length <= 0) {
|
|
505
505
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
506
506
|
}
|
|
507
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
507
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
508
508
|
}
|
|
509
509
|
else {
|
|
510
510
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -538,7 +538,7 @@ const serializeAws_restJson1DescribeChannelModeratorCommand = async (input, cont
|
|
|
538
538
|
if (labelValue.length <= 0) {
|
|
539
539
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
540
540
|
}
|
|
541
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
541
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
542
542
|
}
|
|
543
543
|
else {
|
|
544
544
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -548,7 +548,7 @@ const serializeAws_restJson1DescribeChannelModeratorCommand = async (input, cont
|
|
|
548
548
|
if (labelValue.length <= 0) {
|
|
549
549
|
throw new Error("Empty value provided for input HTTP label: ChannelModeratorArn.");
|
|
550
550
|
}
|
|
551
|
-
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}",
|
|
551
|
+
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
552
552
|
}
|
|
553
553
|
else {
|
|
554
554
|
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
@@ -577,7 +577,7 @@ const serializeAws_restJson1GetChannelMessageCommand = async (input, context) =>
|
|
|
577
577
|
if (labelValue.length <= 0) {
|
|
578
578
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
579
579
|
}
|
|
580
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
580
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
581
581
|
}
|
|
582
582
|
else {
|
|
583
583
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -587,7 +587,7 @@ const serializeAws_restJson1GetChannelMessageCommand = async (input, context) =>
|
|
|
587
587
|
if (labelValue.length <= 0) {
|
|
588
588
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
589
589
|
}
|
|
590
|
-
resolvedPath = resolvedPath.replace("{MessageId}",
|
|
590
|
+
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
591
591
|
}
|
|
592
592
|
else {
|
|
593
593
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -634,7 +634,7 @@ const serializeAws_restJson1ListChannelBansCommand = async (input, context) => {
|
|
|
634
634
|
if (labelValue.length <= 0) {
|
|
635
635
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
636
636
|
}
|
|
637
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
637
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
638
638
|
}
|
|
639
639
|
else {
|
|
640
640
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -667,7 +667,7 @@ const serializeAws_restJson1ListChannelMembershipsCommand = async (input, contex
|
|
|
667
667
|
if (labelValue.length <= 0) {
|
|
668
668
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
669
669
|
}
|
|
670
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
670
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
671
671
|
}
|
|
672
672
|
else {
|
|
673
673
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -726,7 +726,7 @@ const serializeAws_restJson1ListChannelMessagesCommand = async (input, context)
|
|
|
726
726
|
if (labelValue.length <= 0) {
|
|
727
727
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
728
728
|
}
|
|
729
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
729
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
730
730
|
}
|
|
731
731
|
else {
|
|
732
732
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -764,7 +764,7 @@ const serializeAws_restJson1ListChannelModeratorsCommand = async (input, context
|
|
|
764
764
|
if (labelValue.length <= 0) {
|
|
765
765
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
766
766
|
}
|
|
767
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
767
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
768
768
|
}
|
|
769
769
|
else {
|
|
770
770
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -848,7 +848,7 @@ const serializeAws_restJson1RedactChannelMessageCommand = async (input, context)
|
|
|
848
848
|
if (labelValue.length <= 0) {
|
|
849
849
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
850
850
|
}
|
|
851
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
851
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
852
852
|
}
|
|
853
853
|
else {
|
|
854
854
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -858,7 +858,7 @@ const serializeAws_restJson1RedactChannelMessageCommand = async (input, context)
|
|
|
858
858
|
if (labelValue.length <= 0) {
|
|
859
859
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
860
860
|
}
|
|
861
|
-
resolvedPath = resolvedPath.replace("{MessageId}",
|
|
861
|
+
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
862
862
|
}
|
|
863
863
|
else {
|
|
864
864
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -892,14 +892,14 @@ const serializeAws_restJson1SendChannelMessageCommand = async (input, context) =
|
|
|
892
892
|
if (labelValue.length <= 0) {
|
|
893
893
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
894
894
|
}
|
|
895
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
895
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
896
896
|
}
|
|
897
897
|
else {
|
|
898
898
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
899
899
|
}
|
|
900
900
|
let body;
|
|
901
901
|
body = JSON.stringify({
|
|
902
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a :
|
|
902
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
903
903
|
...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
|
|
904
904
|
...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
|
|
905
905
|
...(input.Persistence !== undefined && input.Persistence !== null && { Persistence: input.Persistence }),
|
|
@@ -928,7 +928,7 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
928
928
|
if (labelValue.length <= 0) {
|
|
929
929
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
930
930
|
}
|
|
931
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
931
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
932
932
|
}
|
|
933
933
|
else {
|
|
934
934
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -963,7 +963,7 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
|
|
|
963
963
|
if (labelValue.length <= 0) {
|
|
964
964
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
965
965
|
}
|
|
966
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
966
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
967
967
|
}
|
|
968
968
|
else {
|
|
969
969
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -973,7 +973,7 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
|
|
|
973
973
|
if (labelValue.length <= 0) {
|
|
974
974
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
975
975
|
}
|
|
976
|
-
resolvedPath = resolvedPath.replace("{MessageId}",
|
|
976
|
+
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
977
977
|
}
|
|
978
978
|
else {
|
|
979
979
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -1005,7 +1005,7 @@ const serializeAws_restJson1UpdateChannelReadMarkerCommand = async (input, conte
|
|
|
1005
1005
|
if (labelValue.length <= 0) {
|
|
1006
1006
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1007
1007
|
}
|
|
1008
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}",
|
|
1008
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1009
1009
|
}
|
|
1010
1010
|
else {
|
|
1011
1011
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1031,7 +1031,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommand = async (outpu
|
|
|
1031
1031
|
BatchChannelMemberships: undefined,
|
|
1032
1032
|
Errors: undefined,
|
|
1033
1033
|
};
|
|
1034
|
-
const data =
|
|
1034
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1035
1035
|
if (data.BatchChannelMemberships !== undefined && data.BatchChannelMemberships !== null) {
|
|
1036
1036
|
contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
|
|
1037
1037
|
}
|
|
@@ -1122,9 +1122,9 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
|
|
|
1122
1122
|
$metadata: deserializeMetadata(output),
|
|
1123
1123
|
ChannelArn: undefined,
|
|
1124
1124
|
};
|
|
1125
|
-
const data =
|
|
1125
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1126
1126
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1127
|
-
contents.ChannelArn =
|
|
1127
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1128
1128
|
}
|
|
1129
1129
|
return Promise.resolve(contents);
|
|
1130
1130
|
};
|
|
@@ -1227,9 +1227,9 @@ const deserializeAws_restJson1CreateChannelBanCommand = async (output, context)
|
|
|
1227
1227
|
ChannelArn: undefined,
|
|
1228
1228
|
Member: undefined,
|
|
1229
1229
|
};
|
|
1230
|
-
const data =
|
|
1230
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1231
1231
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1232
|
-
contents.ChannelArn =
|
|
1232
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1233
1233
|
}
|
|
1234
1234
|
if (data.Member !== undefined && data.Member !== null) {
|
|
1235
1235
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
@@ -1335,9 +1335,9 @@ const deserializeAws_restJson1CreateChannelMembershipCommand = async (output, co
|
|
|
1335
1335
|
ChannelArn: undefined,
|
|
1336
1336
|
Member: undefined,
|
|
1337
1337
|
};
|
|
1338
|
-
const data =
|
|
1338
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1339
1339
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1340
|
-
contents.ChannelArn =
|
|
1340
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1341
1341
|
}
|
|
1342
1342
|
if (data.Member !== undefined && data.Member !== null) {
|
|
1343
1343
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
@@ -1443,9 +1443,9 @@ const deserializeAws_restJson1CreateChannelModeratorCommand = async (output, con
|
|
|
1443
1443
|
ChannelArn: undefined,
|
|
1444
1444
|
ChannelModerator: undefined,
|
|
1445
1445
|
};
|
|
1446
|
-
const data =
|
|
1446
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1447
1447
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1448
|
-
contents.ChannelArn =
|
|
1448
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1449
1449
|
}
|
|
1450
1450
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
1451
1451
|
contents.ChannelModerator = deserializeAws_restJson1Identity(data.ChannelModerator, context);
|
|
@@ -1978,7 +1978,7 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
|
|
|
1978
1978
|
$metadata: deserializeMetadata(output),
|
|
1979
1979
|
Channel: undefined,
|
|
1980
1980
|
};
|
|
1981
|
-
const data =
|
|
1981
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1982
1982
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
1983
1983
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
1984
1984
|
}
|
|
@@ -2066,7 +2066,7 @@ const deserializeAws_restJson1DescribeChannelBanCommand = async (output, context
|
|
|
2066
2066
|
$metadata: deserializeMetadata(output),
|
|
2067
2067
|
ChannelBan: undefined,
|
|
2068
2068
|
};
|
|
2069
|
-
const data =
|
|
2069
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2070
2070
|
if (data.ChannelBan !== undefined && data.ChannelBan !== null) {
|
|
2071
2071
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
2072
2072
|
}
|
|
@@ -2162,7 +2162,7 @@ const deserializeAws_restJson1DescribeChannelMembershipCommand = async (output,
|
|
|
2162
2162
|
$metadata: deserializeMetadata(output),
|
|
2163
2163
|
ChannelMembership: undefined,
|
|
2164
2164
|
};
|
|
2165
|
-
const data =
|
|
2165
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2166
2166
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2167
2167
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
2168
2168
|
}
|
|
@@ -2258,7 +2258,7 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2258
2258
|
$metadata: deserializeMetadata(output),
|
|
2259
2259
|
ChannelMembership: undefined,
|
|
2260
2260
|
};
|
|
2261
|
-
const data =
|
|
2261
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2262
2262
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2263
2263
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
2264
2264
|
}
|
|
@@ -2346,7 +2346,7 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand =
|
|
|
2346
2346
|
$metadata: deserializeMetadata(output),
|
|
2347
2347
|
Channel: undefined,
|
|
2348
2348
|
};
|
|
2349
|
-
const data =
|
|
2349
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2350
2350
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2351
2351
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
2352
2352
|
}
|
|
@@ -2434,7 +2434,7 @@ const deserializeAws_restJson1DescribeChannelModeratorCommand = async (output, c
|
|
|
2434
2434
|
$metadata: deserializeMetadata(output),
|
|
2435
2435
|
ChannelModerator: undefined,
|
|
2436
2436
|
};
|
|
2437
|
-
const data =
|
|
2437
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2438
2438
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
2439
2439
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
2440
2440
|
}
|
|
@@ -2530,7 +2530,7 @@ const deserializeAws_restJson1GetChannelMessageCommand = async (output, context)
|
|
|
2530
2530
|
$metadata: deserializeMetadata(output),
|
|
2531
2531
|
ChannelMessage: undefined,
|
|
2532
2532
|
};
|
|
2533
|
-
const data =
|
|
2533
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2534
2534
|
if (data.ChannelMessage !== undefined && data.ChannelMessage !== null) {
|
|
2535
2535
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
2536
2536
|
}
|
|
@@ -2626,7 +2626,7 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommand = async (output
|
|
|
2626
2626
|
$metadata: deserializeMetadata(output),
|
|
2627
2627
|
Endpoint: undefined,
|
|
2628
2628
|
};
|
|
2629
|
-
const data =
|
|
2629
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2630
2630
|
if (data.Endpoint !== undefined && data.Endpoint !== null) {
|
|
2631
2631
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
2632
2632
|
}
|
|
@@ -2708,15 +2708,15 @@ const deserializeAws_restJson1ListChannelBansCommand = async (output, context) =
|
|
|
2708
2708
|
ChannelBans: undefined,
|
|
2709
2709
|
NextToken: undefined,
|
|
2710
2710
|
};
|
|
2711
|
-
const data =
|
|
2711
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2712
2712
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
2713
|
-
contents.ChannelArn =
|
|
2713
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
2714
2714
|
}
|
|
2715
2715
|
if (data.ChannelBans !== undefined && data.ChannelBans !== null) {
|
|
2716
2716
|
contents.ChannelBans = deserializeAws_restJson1ChannelBanSummaryList(data.ChannelBans, context);
|
|
2717
2717
|
}
|
|
2718
2718
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2719
|
-
contents.NextToken =
|
|
2719
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2720
2720
|
}
|
|
2721
2721
|
return Promise.resolve(contents);
|
|
2722
2722
|
};
|
|
@@ -2804,15 +2804,15 @@ const deserializeAws_restJson1ListChannelMembershipsCommand = async (output, con
|
|
|
2804
2804
|
ChannelMemberships: undefined,
|
|
2805
2805
|
NextToken: undefined,
|
|
2806
2806
|
};
|
|
2807
|
-
const data =
|
|
2807
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2808
2808
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
2809
|
-
contents.ChannelArn =
|
|
2809
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
2810
2810
|
}
|
|
2811
2811
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
2812
2812
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipSummaryList(data.ChannelMemberships, context);
|
|
2813
2813
|
}
|
|
2814
2814
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2815
|
-
contents.NextToken =
|
|
2815
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2816
2816
|
}
|
|
2817
2817
|
return Promise.resolve(contents);
|
|
2818
2818
|
};
|
|
@@ -2899,12 +2899,12 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand =
|
|
|
2899
2899
|
ChannelMemberships: undefined,
|
|
2900
2900
|
NextToken: undefined,
|
|
2901
2901
|
};
|
|
2902
|
-
const data =
|
|
2902
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2903
2903
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
2904
2904
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
|
|
2905
2905
|
}
|
|
2906
2906
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2907
|
-
contents.NextToken =
|
|
2907
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2908
2908
|
}
|
|
2909
2909
|
return Promise.resolve(contents);
|
|
2910
2910
|
};
|
|
@@ -2992,15 +2992,15 @@ const deserializeAws_restJson1ListChannelMessagesCommand = async (output, contex
|
|
|
2992
2992
|
ChannelMessages: undefined,
|
|
2993
2993
|
NextToken: undefined,
|
|
2994
2994
|
};
|
|
2995
|
-
const data =
|
|
2995
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2996
2996
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
2997
|
-
contents.ChannelArn =
|
|
2997
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
2998
2998
|
}
|
|
2999
2999
|
if (data.ChannelMessages !== undefined && data.ChannelMessages !== null) {
|
|
3000
3000
|
contents.ChannelMessages = deserializeAws_restJson1ChannelMessageSummaryList(data.ChannelMessages, context);
|
|
3001
3001
|
}
|
|
3002
3002
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3003
|
-
contents.NextToken =
|
|
3003
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3004
3004
|
}
|
|
3005
3005
|
return Promise.resolve(contents);
|
|
3006
3006
|
};
|
|
@@ -3088,15 +3088,15 @@ const deserializeAws_restJson1ListChannelModeratorsCommand = async (output, cont
|
|
|
3088
3088
|
ChannelModerators: undefined,
|
|
3089
3089
|
NextToken: undefined,
|
|
3090
3090
|
};
|
|
3091
|
-
const data =
|
|
3091
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3092
3092
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3093
|
-
contents.ChannelArn =
|
|
3093
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3094
3094
|
}
|
|
3095
3095
|
if (data.ChannelModerators !== undefined && data.ChannelModerators !== null) {
|
|
3096
3096
|
contents.ChannelModerators = deserializeAws_restJson1ChannelModeratorSummaryList(data.ChannelModerators, context);
|
|
3097
3097
|
}
|
|
3098
3098
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3099
|
-
contents.NextToken =
|
|
3099
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3100
3100
|
}
|
|
3101
3101
|
return Promise.resolve(contents);
|
|
3102
3102
|
};
|
|
@@ -3183,12 +3183,12 @@ const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
|
|
|
3183
3183
|
Channels: undefined,
|
|
3184
3184
|
NextToken: undefined,
|
|
3185
3185
|
};
|
|
3186
|
-
const data =
|
|
3186
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3187
3187
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3188
3188
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
3189
3189
|
}
|
|
3190
3190
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3191
|
-
contents.NextToken =
|
|
3191
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3192
3192
|
}
|
|
3193
3193
|
return Promise.resolve(contents);
|
|
3194
3194
|
};
|
|
@@ -3275,12 +3275,12 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = as
|
|
|
3275
3275
|
Channels: undefined,
|
|
3276
3276
|
NextToken: undefined,
|
|
3277
3277
|
};
|
|
3278
|
-
const data =
|
|
3278
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3279
3279
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3280
3280
|
contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
3281
3281
|
}
|
|
3282
3282
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3283
|
-
contents.NextToken =
|
|
3283
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3284
3284
|
}
|
|
3285
3285
|
return Promise.resolve(contents);
|
|
3286
3286
|
};
|
|
@@ -3367,12 +3367,12 @@ const deserializeAws_restJson1RedactChannelMessageCommand = async (output, conte
|
|
|
3367
3367
|
ChannelArn: undefined,
|
|
3368
3368
|
MessageId: undefined,
|
|
3369
3369
|
};
|
|
3370
|
-
const data =
|
|
3370
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3371
3371
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3372
|
-
contents.ChannelArn =
|
|
3372
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3373
3373
|
}
|
|
3374
3374
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3375
|
-
contents.MessageId =
|
|
3375
|
+
contents.MessageId = smithy_client_1.expectString(data.MessageId);
|
|
3376
3376
|
}
|
|
3377
3377
|
return Promise.resolve(contents);
|
|
3378
3378
|
};
|
|
@@ -3459,12 +3459,12 @@ const deserializeAws_restJson1SendChannelMessageCommand = async (output, context
|
|
|
3459
3459
|
ChannelArn: undefined,
|
|
3460
3460
|
MessageId: undefined,
|
|
3461
3461
|
};
|
|
3462
|
-
const data =
|
|
3462
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3463
3463
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3464
|
-
contents.ChannelArn =
|
|
3464
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3465
3465
|
}
|
|
3466
3466
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3467
|
-
contents.MessageId =
|
|
3467
|
+
contents.MessageId = smithy_client_1.expectString(data.MessageId);
|
|
3468
3468
|
}
|
|
3469
3469
|
return Promise.resolve(contents);
|
|
3470
3470
|
};
|
|
@@ -3558,9 +3558,9 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
|
|
|
3558
3558
|
$metadata: deserializeMetadata(output),
|
|
3559
3559
|
ChannelArn: undefined,
|
|
3560
3560
|
};
|
|
3561
|
-
const data =
|
|
3561
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3562
3562
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3563
|
-
contents.ChannelArn =
|
|
3563
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3564
3564
|
}
|
|
3565
3565
|
return Promise.resolve(contents);
|
|
3566
3566
|
};
|
|
@@ -3655,12 +3655,12 @@ const deserializeAws_restJson1UpdateChannelMessageCommand = async (output, conte
|
|
|
3655
3655
|
ChannelArn: undefined,
|
|
3656
3656
|
MessageId: undefined,
|
|
3657
3657
|
};
|
|
3658
|
-
const data =
|
|
3658
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3659
3659
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3660
|
-
contents.ChannelArn =
|
|
3660
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3661
3661
|
}
|
|
3662
3662
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3663
|
-
contents.MessageId =
|
|
3663
|
+
contents.MessageId = smithy_client_1.expectString(data.MessageId);
|
|
3664
3664
|
}
|
|
3665
3665
|
return Promise.resolve(contents);
|
|
3666
3666
|
};
|
|
@@ -3754,9 +3754,9 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (output, co
|
|
|
3754
3754
|
$metadata: deserializeMetadata(output),
|
|
3755
3755
|
ChannelArn: undefined,
|
|
3756
3756
|
};
|
|
3757
|
-
const data =
|
|
3757
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3758
3758
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3759
|
-
contents.ChannelArn =
|
|
3759
|
+
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3760
3760
|
}
|
|
3761
3761
|
return Promise.resolve(contents);
|
|
3762
3762
|
};
|
|
@@ -3852,10 +3852,10 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3852
3852
|
};
|
|
3853
3853
|
const data = parsedOutput.body;
|
|
3854
3854
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3855
|
-
contents.Code =
|
|
3855
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3856
3856
|
}
|
|
3857
3857
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3858
|
-
contents.Message =
|
|
3858
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3859
3859
|
}
|
|
3860
3860
|
return contents;
|
|
3861
3861
|
};
|
|
@@ -3869,10 +3869,10 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3869
3869
|
};
|
|
3870
3870
|
const data = parsedOutput.body;
|
|
3871
3871
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3872
|
-
contents.Code =
|
|
3872
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3873
3873
|
}
|
|
3874
3874
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3875
|
-
contents.Message =
|
|
3875
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3876
3876
|
}
|
|
3877
3877
|
return contents;
|
|
3878
3878
|
};
|
|
@@ -3886,10 +3886,10 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
3886
3886
|
};
|
|
3887
3887
|
const data = parsedOutput.body;
|
|
3888
3888
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3889
|
-
contents.Code =
|
|
3889
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3890
3890
|
}
|
|
3891
3891
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3892
|
-
contents.Message =
|
|
3892
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3893
3893
|
}
|
|
3894
3894
|
return contents;
|
|
3895
3895
|
};
|
|
@@ -3903,10 +3903,10 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
3903
3903
|
};
|
|
3904
3904
|
const data = parsedOutput.body;
|
|
3905
3905
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3906
|
-
contents.Code =
|
|
3906
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3907
3907
|
}
|
|
3908
3908
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3909
|
-
contents.Message =
|
|
3909
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3910
3910
|
}
|
|
3911
3911
|
return contents;
|
|
3912
3912
|
};
|
|
@@ -3920,10 +3920,10 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
3920
3920
|
};
|
|
3921
3921
|
const data = parsedOutput.body;
|
|
3922
3922
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3923
|
-
contents.Code =
|
|
3923
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3924
3924
|
}
|
|
3925
3925
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3926
|
-
contents.Message =
|
|
3926
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3927
3927
|
}
|
|
3928
3928
|
return contents;
|
|
3929
3929
|
};
|
|
@@ -3937,10 +3937,10 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
3937
3937
|
};
|
|
3938
3938
|
const data = parsedOutput.body;
|
|
3939
3939
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3940
|
-
contents.Code =
|
|
3940
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3941
3941
|
}
|
|
3942
3942
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3943
|
-
contents.Message =
|
|
3943
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3944
3944
|
}
|
|
3945
3945
|
return contents;
|
|
3946
3946
|
};
|
|
@@ -3954,10 +3954,10 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
3954
3954
|
};
|
|
3955
3955
|
const data = parsedOutput.body;
|
|
3956
3956
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3957
|
-
contents.Code =
|
|
3957
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3958
3958
|
}
|
|
3959
3959
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3960
|
-
contents.Message =
|
|
3960
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3961
3961
|
}
|
|
3962
3962
|
return contents;
|
|
3963
3963
|
};
|
|
@@ -3971,10 +3971,10 @@ const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOu
|
|
|
3971
3971
|
};
|
|
3972
3972
|
const data = parsedOutput.body;
|
|
3973
3973
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3974
|
-
contents.Code =
|
|
3974
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3975
3975
|
}
|
|
3976
3976
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3977
|
-
contents.Message =
|
|
3977
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3978
3978
|
}
|
|
3979
3979
|
return contents;
|
|
3980
3980
|
};
|
|
@@ -3988,10 +3988,10 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
3988
3988
|
};
|
|
3989
3989
|
const data = parsedOutput.body;
|
|
3990
3990
|
if (data.Code !== undefined && data.Code !== null) {
|
|
3991
|
-
contents.Code =
|
|
3991
|
+
contents.Code = smithy_client_1.expectString(data.Code);
|
|
3992
3992
|
}
|
|
3993
3993
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3994
|
-
contents.Message =
|
|
3994
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3995
3995
|
}
|
|
3996
3996
|
return contents;
|
|
3997
3997
|
};
|
|
@@ -4024,28 +4024,28 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
4024
4024
|
const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, context) => {
|
|
4025
4025
|
return {
|
|
4026
4026
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
|
|
4027
|
-
?
|
|
4027
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReadMarkerTimestamp)))
|
|
4028
4028
|
: undefined,
|
|
4029
|
-
Type:
|
|
4029
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
4030
4030
|
};
|
|
4031
4031
|
};
|
|
4032
4032
|
const deserializeAws_restJson1BatchChannelMemberships = (output, context) => {
|
|
4033
4033
|
return {
|
|
4034
|
-
ChannelArn:
|
|
4034
|
+
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4035
4035
|
InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
4036
4036
|
? deserializeAws_restJson1Identity(output.InvitedBy, context)
|
|
4037
4037
|
: undefined,
|
|
4038
4038
|
Members: output.Members !== undefined && output.Members !== null
|
|
4039
4039
|
? deserializeAws_restJson1Members(output.Members, context)
|
|
4040
4040
|
: undefined,
|
|
4041
|
-
Type:
|
|
4041
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
4042
4042
|
};
|
|
4043
4043
|
};
|
|
4044
4044
|
const deserializeAws_restJson1BatchCreateChannelMembershipError = (output, context) => {
|
|
4045
4045
|
return {
|
|
4046
|
-
ErrorCode:
|
|
4047
|
-
ErrorMessage:
|
|
4048
|
-
MemberArn:
|
|
4046
|
+
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
4047
|
+
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
4048
|
+
MemberArn: smithy_client_1.expectString(output.MemberArn),
|
|
4049
4049
|
};
|
|
4050
4050
|
};
|
|
4051
4051
|
const deserializeAws_restJson1BatchCreateChannelMembershipErrors = (output, context) => {
|
|
@@ -4060,33 +4060,33 @@ const deserializeAws_restJson1BatchCreateChannelMembershipErrors = (output, cont
|
|
|
4060
4060
|
};
|
|
4061
4061
|
const deserializeAws_restJson1Channel = (output, context) => {
|
|
4062
4062
|
return {
|
|
4063
|
-
ChannelArn:
|
|
4063
|
+
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4064
4064
|
CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
|
|
4065
4065
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4066
4066
|
: undefined,
|
|
4067
4067
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4068
|
-
?
|
|
4068
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4069
4069
|
: undefined,
|
|
4070
4070
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4071
|
-
?
|
|
4071
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastMessageTimestamp)))
|
|
4072
4072
|
: undefined,
|
|
4073
4073
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4074
|
-
?
|
|
4074
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4075
4075
|
: undefined,
|
|
4076
|
-
Metadata:
|
|
4077
|
-
Mode:
|
|
4078
|
-
Name:
|
|
4079
|
-
Privacy:
|
|
4076
|
+
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4077
|
+
Mode: smithy_client_1.expectString(output.Mode),
|
|
4078
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4079
|
+
Privacy: smithy_client_1.expectString(output.Privacy),
|
|
4080
4080
|
};
|
|
4081
4081
|
};
|
|
4082
4082
|
const deserializeAws_restJson1ChannelBan = (output, context) => {
|
|
4083
4083
|
return {
|
|
4084
|
-
ChannelArn:
|
|
4084
|
+
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4085
4085
|
CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
|
|
4086
4086
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4087
4087
|
: undefined,
|
|
4088
4088
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4089
|
-
?
|
|
4089
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4090
4090
|
: undefined,
|
|
4091
4091
|
Member: output.Member !== undefined && output.Member !== null
|
|
4092
4092
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -4112,20 +4112,20 @@ const deserializeAws_restJson1ChannelBanSummaryList = (output, context) => {
|
|
|
4112
4112
|
};
|
|
4113
4113
|
const deserializeAws_restJson1ChannelMembership = (output, context) => {
|
|
4114
4114
|
return {
|
|
4115
|
-
ChannelArn:
|
|
4115
|
+
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4116
4116
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4117
|
-
?
|
|
4117
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4118
4118
|
: undefined,
|
|
4119
4119
|
InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
4120
4120
|
? deserializeAws_restJson1Identity(output.InvitedBy, context)
|
|
4121
4121
|
: undefined,
|
|
4122
4122
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4123
|
-
?
|
|
4123
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4124
4124
|
: undefined,
|
|
4125
4125
|
Member: output.Member !== undefined && output.Member !== null
|
|
4126
4126
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
4127
4127
|
: undefined,
|
|
4128
|
-
Type:
|
|
4128
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
4129
4129
|
};
|
|
4130
4130
|
};
|
|
4131
4131
|
const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
@@ -4167,46 +4167,46 @@ const deserializeAws_restJson1ChannelMembershipSummaryList = (output, context) =
|
|
|
4167
4167
|
};
|
|
4168
4168
|
const deserializeAws_restJson1ChannelMessage = (output, context) => {
|
|
4169
4169
|
return {
|
|
4170
|
-
ChannelArn:
|
|
4171
|
-
Content:
|
|
4170
|
+
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4171
|
+
Content: smithy_client_1.expectString(output.Content),
|
|
4172
4172
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4173
|
-
?
|
|
4173
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4174
4174
|
: undefined,
|
|
4175
4175
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4176
|
-
?
|
|
4176
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastEditedTimestamp)))
|
|
4177
4177
|
: undefined,
|
|
4178
4178
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4179
|
-
?
|
|
4179
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4180
4180
|
: undefined,
|
|
4181
|
-
MessageId:
|
|
4182
|
-
Metadata:
|
|
4183
|
-
Persistence:
|
|
4184
|
-
Redacted:
|
|
4181
|
+
MessageId: smithy_client_1.expectString(output.MessageId),
|
|
4182
|
+
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4183
|
+
Persistence: smithy_client_1.expectString(output.Persistence),
|
|
4184
|
+
Redacted: smithy_client_1.expectBoolean(output.Redacted),
|
|
4185
4185
|
Sender: output.Sender !== undefined && output.Sender !== null
|
|
4186
4186
|
? deserializeAws_restJson1Identity(output.Sender, context)
|
|
4187
4187
|
: undefined,
|
|
4188
|
-
Type:
|
|
4188
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
4189
4189
|
};
|
|
4190
4190
|
};
|
|
4191
4191
|
const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
|
|
4192
4192
|
return {
|
|
4193
|
-
Content:
|
|
4193
|
+
Content: smithy_client_1.expectString(output.Content),
|
|
4194
4194
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4195
|
-
?
|
|
4195
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4196
4196
|
: undefined,
|
|
4197
4197
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4198
|
-
?
|
|
4198
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastEditedTimestamp)))
|
|
4199
4199
|
: undefined,
|
|
4200
4200
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4201
|
-
?
|
|
4201
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4202
4202
|
: undefined,
|
|
4203
|
-
MessageId:
|
|
4204
|
-
Metadata:
|
|
4205
|
-
Redacted:
|
|
4203
|
+
MessageId: smithy_client_1.expectString(output.MessageId),
|
|
4204
|
+
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4205
|
+
Redacted: smithy_client_1.expectBoolean(output.Redacted),
|
|
4206
4206
|
Sender: output.Sender !== undefined && output.Sender !== null
|
|
4207
4207
|
? deserializeAws_restJson1Identity(output.Sender, context)
|
|
4208
4208
|
: undefined,
|
|
4209
|
-
Type:
|
|
4209
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
4210
4210
|
};
|
|
4211
4211
|
};
|
|
4212
4212
|
const deserializeAws_restJson1ChannelMessageSummaryList = (output, context) => {
|
|
@@ -4238,12 +4238,12 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = (ou
|
|
|
4238
4238
|
};
|
|
4239
4239
|
const deserializeAws_restJson1ChannelModerator = (output, context) => {
|
|
4240
4240
|
return {
|
|
4241
|
-
ChannelArn:
|
|
4241
|
+
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4242
4242
|
CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
|
|
4243
4243
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4244
4244
|
: undefined,
|
|
4245
4245
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4246
|
-
?
|
|
4246
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4247
4247
|
: undefined,
|
|
4248
4248
|
Moderator: output.Moderator !== undefined && output.Moderator !== null
|
|
4249
4249
|
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
@@ -4269,14 +4269,14 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = (output, context) =>
|
|
|
4269
4269
|
};
|
|
4270
4270
|
const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
4271
4271
|
return {
|
|
4272
|
-
ChannelArn:
|
|
4272
|
+
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4273
4273
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4274
|
-
?
|
|
4274
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastMessageTimestamp)))
|
|
4275
4275
|
: undefined,
|
|
4276
|
-
Metadata:
|
|
4277
|
-
Mode:
|
|
4278
|
-
Name:
|
|
4279
|
-
Privacy:
|
|
4276
|
+
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4277
|
+
Mode: smithy_client_1.expectString(output.Mode),
|
|
4278
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4279
|
+
Privacy: smithy_client_1.expectString(output.Privacy),
|
|
4280
4280
|
};
|
|
4281
4281
|
};
|
|
4282
4282
|
const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
|
|
@@ -4291,8 +4291,8 @@ const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
|
|
|
4291
4291
|
};
|
|
4292
4292
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
4293
4293
|
return {
|
|
4294
|
-
Arn:
|
|
4295
|
-
Name:
|
|
4294
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
4295
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4296
4296
|
};
|
|
4297
4297
|
};
|
|
4298
4298
|
const deserializeAws_restJson1Members = (output, context) => {
|
|
@@ -4307,7 +4307,7 @@ const deserializeAws_restJson1Members = (output, context) => {
|
|
|
4307
4307
|
};
|
|
4308
4308
|
const deserializeAws_restJson1MessagingSessionEndpoint = (output, context) => {
|
|
4309
4309
|
return {
|
|
4310
|
-
Url:
|
|
4310
|
+
Url: smithy_client_1.expectString(output.Url),
|
|
4311
4311
|
};
|
|
4312
4312
|
};
|
|
4313
4313
|
const deserializeMetadata = (output) => {
|