@aws-sdk/client-chime-sdk-messaging 3.54.0 → 3.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist-cjs/ChimeSDKMessagingClient.js +13 -13
- package/dist-cjs/commands/AssociateChannelFlowCommand.js +3 -3
- package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +3 -3
- package/dist-cjs/commands/ChannelFlowCallbackCommand.js +3 -3
- package/dist-cjs/commands/CreateChannelBanCommand.js +3 -3
- package/dist-cjs/commands/CreateChannelCommand.js +3 -3
- package/dist-cjs/commands/CreateChannelFlowCommand.js +3 -3
- package/dist-cjs/commands/CreateChannelMembershipCommand.js +3 -3
- package/dist-cjs/commands/CreateChannelModeratorCommand.js +3 -3
- package/dist-cjs/commands/DeleteChannelBanCommand.js +3 -3
- package/dist-cjs/commands/DeleteChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteChannelFlowCommand.js +3 -3
- package/dist-cjs/commands/DeleteChannelMembershipCommand.js +3 -3
- package/dist-cjs/commands/DeleteChannelMessageCommand.js +3 -3
- package/dist-cjs/commands/DeleteChannelModeratorCommand.js +3 -3
- package/dist-cjs/commands/DescribeChannelBanCommand.js +3 -3
- package/dist-cjs/commands/DescribeChannelCommand.js +3 -3
- package/dist-cjs/commands/DescribeChannelFlowCommand.js +3 -3
- package/dist-cjs/commands/DescribeChannelMembershipCommand.js +3 -3
- package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -3
- package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -3
- package/dist-cjs/commands/DescribeChannelModeratorCommand.js +3 -3
- package/dist-cjs/commands/DisassociateChannelFlowCommand.js +3 -3
- package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +3 -3
- package/dist-cjs/commands/GetChannelMessageCommand.js +3 -3
- package/dist-cjs/commands/GetChannelMessageStatusCommand.js +3 -3
- package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +3 -3
- package/dist-cjs/commands/ListChannelBansCommand.js +3 -3
- package/dist-cjs/commands/ListChannelFlowsCommand.js +3 -3
- package/dist-cjs/commands/ListChannelMembershipsCommand.js +3 -3
- package/dist-cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -3
- package/dist-cjs/commands/ListChannelMessagesCommand.js +3 -3
- package/dist-cjs/commands/ListChannelModeratorsCommand.js +3 -3
- package/dist-cjs/commands/ListChannelsAssociatedWithChannelFlowCommand.js +3 -3
- package/dist-cjs/commands/ListChannelsCommand.js +3 -3
- package/dist-cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/PutChannelMembershipPreferencesCommand.js +3 -3
- package/dist-cjs/commands/RedactChannelMessageCommand.js +3 -3
- package/dist-cjs/commands/SendChannelMessageCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateChannelFlowCommand.js +3 -3
- package/dist-cjs/commands/UpdateChannelMessageCommand.js +3 -3
- package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +263 -263
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/ChimeSDKMessaging.js +45 -45
- package/dist-es/pagination/ListChannelBansPaginator.js +4 -4
- package/dist-es/pagination/ListChannelFlowsPaginator.js +4 -4
- package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +4 -4
- package/dist-es/pagination/ListChannelMembershipsPaginator.js +4 -4
- package/dist-es/pagination/ListChannelMessagesPaginator.js +4 -4
- package/dist-es/pagination/ListChannelModeratorsPaginator.js +4 -4
- package/dist-es/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +4 -4
- package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +4 -4
- package/dist-es/pagination/ListChannelsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +45 -45
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -19,7 +19,7 @@ const serializeAws_restJson1AssociateChannelFlowCommand = async (input, context)
|
|
|
19
19
|
if (labelValue.length <= 0) {
|
|
20
20
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
21
21
|
}
|
|
22
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
22
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
25
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -52,7 +52,7 @@ const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input,
|
|
|
52
52
|
if (labelValue.length <= 0) {
|
|
53
53
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
54
54
|
}
|
|
55
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
55
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
58
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -90,7 +90,7 @@ const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, context)
|
|
|
90
90
|
if (labelValue.length <= 0) {
|
|
91
91
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
92
92
|
}
|
|
93
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
93
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -100,7 +100,7 @@ const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, context)
|
|
|
100
100
|
};
|
|
101
101
|
let body;
|
|
102
102
|
body = JSON.stringify({
|
|
103
|
-
CallbackId: (_a = input.CallbackId) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
103
|
+
CallbackId: (_a = input.CallbackId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
104
104
|
...(input.ChannelMessage !== undefined &&
|
|
105
105
|
input.ChannelMessage !== null && {
|
|
106
106
|
ChannelMessage: serializeAws_restJson1ChannelMessageCallback(input.ChannelMessage, context),
|
|
@@ -132,7 +132,7 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
132
132
|
body = JSON.stringify({
|
|
133
133
|
...(input.AppInstanceArn !== undefined &&
|
|
134
134
|
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn }),
|
|
135
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
135
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
136
136
|
...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
|
|
137
137
|
...(input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode }),
|
|
138
138
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -163,7 +163,7 @@ const serializeAws_restJson1CreateChannelBanCommand = async (input, context) =>
|
|
|
163
163
|
if (labelValue.length <= 0) {
|
|
164
164
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
165
165
|
}
|
|
166
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
166
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
167
167
|
}
|
|
168
168
|
else {
|
|
169
169
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -224,7 +224,7 @@ const serializeAws_restJson1CreateChannelMembershipCommand = async (input, conte
|
|
|
224
224
|
if (labelValue.length <= 0) {
|
|
225
225
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
226
226
|
}
|
|
227
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
227
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
228
228
|
}
|
|
229
229
|
else {
|
|
230
230
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -257,7 +257,7 @@ const serializeAws_restJson1CreateChannelModeratorCommand = async (input, contex
|
|
|
257
257
|
if (labelValue.length <= 0) {
|
|
258
258
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
259
259
|
}
|
|
260
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
260
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
261
261
|
}
|
|
262
262
|
else {
|
|
263
263
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -289,7 +289,7 @@ const serializeAws_restJson1DeleteChannelCommand = 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}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
292
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
293
293
|
}
|
|
294
294
|
else {
|
|
295
295
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -317,7 +317,7 @@ const serializeAws_restJson1DeleteChannelBanCommand = async (input, context) =>
|
|
|
317
317
|
if (labelValue.length <= 0) {
|
|
318
318
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
319
319
|
}
|
|
320
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
320
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
321
321
|
}
|
|
322
322
|
else {
|
|
323
323
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -327,7 +327,7 @@ const serializeAws_restJson1DeleteChannelBanCommand = async (input, context) =>
|
|
|
327
327
|
if (labelValue.length <= 0) {
|
|
328
328
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
329
329
|
}
|
|
330
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
330
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
331
331
|
}
|
|
332
332
|
else {
|
|
333
333
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -353,7 +353,7 @@ const serializeAws_restJson1DeleteChannelFlowCommand = async (input, context) =>
|
|
|
353
353
|
if (labelValue.length <= 0) {
|
|
354
354
|
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
355
355
|
}
|
|
356
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
356
|
+
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
357
357
|
}
|
|
358
358
|
else {
|
|
359
359
|
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
@@ -382,7 +382,7 @@ const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, conte
|
|
|
382
382
|
if (labelValue.length <= 0) {
|
|
383
383
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
384
384
|
}
|
|
385
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
385
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
386
386
|
}
|
|
387
387
|
else {
|
|
388
388
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -392,7 +392,7 @@ const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, conte
|
|
|
392
392
|
if (labelValue.length <= 0) {
|
|
393
393
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
394
394
|
}
|
|
395
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
395
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
396
396
|
}
|
|
397
397
|
else {
|
|
398
398
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -421,7 +421,7 @@ const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context)
|
|
|
421
421
|
if (labelValue.length <= 0) {
|
|
422
422
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
423
423
|
}
|
|
424
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
424
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
425
425
|
}
|
|
426
426
|
else {
|
|
427
427
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -431,7 +431,7 @@ const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context)
|
|
|
431
431
|
if (labelValue.length <= 0) {
|
|
432
432
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
433
433
|
}
|
|
434
|
-
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
434
|
+
resolvedPath = resolvedPath.replace("{MessageId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
435
435
|
}
|
|
436
436
|
else {
|
|
437
437
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -460,7 +460,7 @@ const serializeAws_restJson1DeleteChannelModeratorCommand = async (input, contex
|
|
|
460
460
|
if (labelValue.length <= 0) {
|
|
461
461
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
462
462
|
}
|
|
463
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
463
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
464
464
|
}
|
|
465
465
|
else {
|
|
466
466
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -470,7 +470,7 @@ const serializeAws_restJson1DeleteChannelModeratorCommand = async (input, contex
|
|
|
470
470
|
if (labelValue.length <= 0) {
|
|
471
471
|
throw new Error("Empty value provided for input HTTP label: ChannelModeratorArn.");
|
|
472
472
|
}
|
|
473
|
-
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
473
|
+
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
474
474
|
}
|
|
475
475
|
else {
|
|
476
476
|
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
@@ -498,7 +498,7 @@ const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
|
|
|
498
498
|
if (labelValue.length <= 0) {
|
|
499
499
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
500
500
|
}
|
|
501
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
501
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
502
502
|
}
|
|
503
503
|
else {
|
|
504
504
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -526,7 +526,7 @@ const serializeAws_restJson1DescribeChannelBanCommand = async (input, context) =
|
|
|
526
526
|
if (labelValue.length <= 0) {
|
|
527
527
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
528
528
|
}
|
|
529
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
529
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
530
530
|
}
|
|
531
531
|
else {
|
|
532
532
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -536,7 +536,7 @@ const serializeAws_restJson1DescribeChannelBanCommand = async (input, context) =
|
|
|
536
536
|
if (labelValue.length <= 0) {
|
|
537
537
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
538
538
|
}
|
|
539
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
539
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
540
540
|
}
|
|
541
541
|
else {
|
|
542
542
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -562,7 +562,7 @@ const serializeAws_restJson1DescribeChannelFlowCommand = async (input, context)
|
|
|
562
562
|
if (labelValue.length <= 0) {
|
|
563
563
|
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
564
564
|
}
|
|
565
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
565
|
+
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
566
566
|
}
|
|
567
567
|
else {
|
|
568
568
|
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
@@ -591,7 +591,7 @@ const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, con
|
|
|
591
591
|
if (labelValue.length <= 0) {
|
|
592
592
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
593
593
|
}
|
|
594
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
594
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
595
595
|
}
|
|
596
596
|
else {
|
|
597
597
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -601,7 +601,7 @@ const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, con
|
|
|
601
601
|
if (labelValue.length <= 0) {
|
|
602
602
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
603
603
|
}
|
|
604
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
604
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
605
605
|
}
|
|
606
606
|
else {
|
|
607
607
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -629,7 +629,7 @@ const serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand =
|
|
|
629
629
|
if (labelValue.length <= 0) {
|
|
630
630
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
631
631
|
}
|
|
632
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
632
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
633
633
|
}
|
|
634
634
|
else {
|
|
635
635
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -662,7 +662,7 @@ const serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = a
|
|
|
662
662
|
if (labelValue.length <= 0) {
|
|
663
663
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
664
664
|
}
|
|
665
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
665
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
666
666
|
}
|
|
667
667
|
else {
|
|
668
668
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -696,7 +696,7 @@ const serializeAws_restJson1DescribeChannelModeratorCommand = async (input, cont
|
|
|
696
696
|
if (labelValue.length <= 0) {
|
|
697
697
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
698
698
|
}
|
|
699
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
699
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
700
700
|
}
|
|
701
701
|
else {
|
|
702
702
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -706,7 +706,7 @@ const serializeAws_restJson1DescribeChannelModeratorCommand = async (input, cont
|
|
|
706
706
|
if (labelValue.length <= 0) {
|
|
707
707
|
throw new Error("Empty value provided for input HTTP label: ChannelModeratorArn.");
|
|
708
708
|
}
|
|
709
|
-
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
709
|
+
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
710
710
|
}
|
|
711
711
|
else {
|
|
712
712
|
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
@@ -735,7 +735,7 @@ const serializeAws_restJson1DisassociateChannelFlowCommand = async (input, conte
|
|
|
735
735
|
if (labelValue.length <= 0) {
|
|
736
736
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
737
737
|
}
|
|
738
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
738
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
739
739
|
}
|
|
740
740
|
else {
|
|
741
741
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -745,7 +745,7 @@ const serializeAws_restJson1DisassociateChannelFlowCommand = async (input, conte
|
|
|
745
745
|
if (labelValue.length <= 0) {
|
|
746
746
|
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
747
747
|
}
|
|
748
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
748
|
+
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
749
749
|
}
|
|
750
750
|
else {
|
|
751
751
|
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
@@ -774,7 +774,7 @@ const serializeAws_restJson1GetChannelMembershipPreferencesCommand = async (inpu
|
|
|
774
774
|
if (labelValue.length <= 0) {
|
|
775
775
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
776
776
|
}
|
|
777
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
777
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
778
778
|
}
|
|
779
779
|
else {
|
|
780
780
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -784,7 +784,7 @@ const serializeAws_restJson1GetChannelMembershipPreferencesCommand = async (inpu
|
|
|
784
784
|
if (labelValue.length <= 0) {
|
|
785
785
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
786
786
|
}
|
|
787
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
787
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
788
788
|
}
|
|
789
789
|
else {
|
|
790
790
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -813,7 +813,7 @@ const serializeAws_restJson1GetChannelMessageCommand = async (input, context) =>
|
|
|
813
813
|
if (labelValue.length <= 0) {
|
|
814
814
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
815
815
|
}
|
|
816
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
816
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
817
817
|
}
|
|
818
818
|
else {
|
|
819
819
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -823,7 +823,7 @@ const serializeAws_restJson1GetChannelMessageCommand = async (input, context) =>
|
|
|
823
823
|
if (labelValue.length <= 0) {
|
|
824
824
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
825
825
|
}
|
|
826
|
-
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
826
|
+
resolvedPath = resolvedPath.replace("{MessageId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
827
827
|
}
|
|
828
828
|
else {
|
|
829
829
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -852,7 +852,7 @@ const serializeAws_restJson1GetChannelMessageStatusCommand = async (input, conte
|
|
|
852
852
|
if (labelValue.length <= 0) {
|
|
853
853
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
854
854
|
}
|
|
855
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
855
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
856
856
|
}
|
|
857
857
|
else {
|
|
858
858
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -862,7 +862,7 @@ const serializeAws_restJson1GetChannelMessageStatusCommand = async (input, conte
|
|
|
862
862
|
if (labelValue.length <= 0) {
|
|
863
863
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
864
864
|
}
|
|
865
|
-
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
865
|
+
resolvedPath = resolvedPath.replace("{MessageId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
866
866
|
}
|
|
867
867
|
else {
|
|
868
868
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -913,7 +913,7 @@ const serializeAws_restJson1ListChannelBansCommand = async (input, context) => {
|
|
|
913
913
|
if (labelValue.length <= 0) {
|
|
914
914
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
915
915
|
}
|
|
916
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
916
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
917
917
|
}
|
|
918
918
|
else {
|
|
919
919
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -968,7 +968,7 @@ const serializeAws_restJson1ListChannelMembershipsCommand = async (input, contex
|
|
|
968
968
|
if (labelValue.length <= 0) {
|
|
969
969
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
970
970
|
}
|
|
971
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
971
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
972
972
|
}
|
|
973
973
|
else {
|
|
974
974
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1027,7 +1027,7 @@ const serializeAws_restJson1ListChannelMessagesCommand = async (input, context)
|
|
|
1027
1027
|
if (labelValue.length <= 0) {
|
|
1028
1028
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1029
1029
|
}
|
|
1030
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1030
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1031
1031
|
}
|
|
1032
1032
|
else {
|
|
1033
1033
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1065,7 +1065,7 @@ const serializeAws_restJson1ListChannelModeratorsCommand = async (input, context
|
|
|
1065
1065
|
if (labelValue.length <= 0) {
|
|
1066
1066
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1067
1067
|
}
|
|
1068
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1068
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1069
1069
|
}
|
|
1070
1070
|
else {
|
|
1071
1071
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1193,7 +1193,7 @@ const serializeAws_restJson1PutChannelMembershipPreferencesCommand = async (inpu
|
|
|
1193
1193
|
if (labelValue.length <= 0) {
|
|
1194
1194
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1195
1195
|
}
|
|
1196
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1196
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1197
1197
|
}
|
|
1198
1198
|
else {
|
|
1199
1199
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1203,7 +1203,7 @@ const serializeAws_restJson1PutChannelMembershipPreferencesCommand = async (inpu
|
|
|
1203
1203
|
if (labelValue.length <= 0) {
|
|
1204
1204
|
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
1205
1205
|
}
|
|
1206
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1206
|
+
resolvedPath = resolvedPath.replace("{MemberArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1207
1207
|
}
|
|
1208
1208
|
else {
|
|
1209
1209
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
@@ -1238,7 +1238,7 @@ const serializeAws_restJson1RedactChannelMessageCommand = async (input, context)
|
|
|
1238
1238
|
if (labelValue.length <= 0) {
|
|
1239
1239
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1240
1240
|
}
|
|
1241
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1241
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1242
1242
|
}
|
|
1243
1243
|
else {
|
|
1244
1244
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1248,7 +1248,7 @@ const serializeAws_restJson1RedactChannelMessageCommand = async (input, context)
|
|
|
1248
1248
|
if (labelValue.length <= 0) {
|
|
1249
1249
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
1250
1250
|
}
|
|
1251
|
-
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1251
|
+
resolvedPath = resolvedPath.replace("{MessageId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1252
1252
|
}
|
|
1253
1253
|
else {
|
|
1254
1254
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -1282,14 +1282,14 @@ const serializeAws_restJson1SendChannelMessageCommand = async (input, context) =
|
|
|
1282
1282
|
if (labelValue.length <= 0) {
|
|
1283
1283
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1284
1284
|
}
|
|
1285
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1285
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1286
1286
|
}
|
|
1287
1287
|
else {
|
|
1288
1288
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1289
1289
|
}
|
|
1290
1290
|
let body;
|
|
1291
1291
|
body = JSON.stringify({
|
|
1292
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1292
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1293
1293
|
...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
|
|
1294
1294
|
...(input.MessageAttributes !== undefined &&
|
|
1295
1295
|
input.MessageAttributes !== null && {
|
|
@@ -1380,7 +1380,7 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
1380
1380
|
if (labelValue.length <= 0) {
|
|
1381
1381
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1382
1382
|
}
|
|
1383
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1383
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1384
1384
|
}
|
|
1385
1385
|
else {
|
|
1386
1386
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1413,7 +1413,7 @@ const serializeAws_restJson1UpdateChannelFlowCommand = async (input, context) =>
|
|
|
1413
1413
|
if (labelValue.length <= 0) {
|
|
1414
1414
|
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
1415
1415
|
}
|
|
1416
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1416
|
+
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1417
1417
|
}
|
|
1418
1418
|
else {
|
|
1419
1419
|
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
@@ -1448,7 +1448,7 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
|
|
|
1448
1448
|
if (labelValue.length <= 0) {
|
|
1449
1449
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1450
1450
|
}
|
|
1451
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1451
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1452
1452
|
}
|
|
1453
1453
|
else {
|
|
1454
1454
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1458,7 +1458,7 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
|
|
|
1458
1458
|
if (labelValue.length <= 0) {
|
|
1459
1459
|
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
1460
1460
|
}
|
|
1461
|
-
resolvedPath = resolvedPath.replace("{MessageId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1461
|
+
resolvedPath = resolvedPath.replace("{MessageId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1462
1462
|
}
|
|
1463
1463
|
else {
|
|
1464
1464
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
@@ -1490,7 +1490,7 @@ const serializeAws_restJson1UpdateChannelReadMarkerCommand = async (input, conte
|
|
|
1490
1490
|
if (labelValue.length <= 0) {
|
|
1491
1491
|
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1492
1492
|
}
|
|
1493
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1493
|
+
resolvedPath = resolvedPath.replace("{ChannelArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1494
1494
|
}
|
|
1495
1495
|
else {
|
|
1496
1496
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
@@ -1558,7 +1558,7 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
|
|
|
1558
1558
|
$fault: "client",
|
|
1559
1559
|
$metadata: deserializeMetadata(output),
|
|
1560
1560
|
});
|
|
1561
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1561
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1562
1562
|
}
|
|
1563
1563
|
};
|
|
1564
1564
|
const deserializeAws_restJson1BatchCreateChannelMembershipCommand = async (output, context) => {
|
|
@@ -1570,7 +1570,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommand = async (outpu
|
|
|
1570
1570
|
BatchChannelMemberships: undefined,
|
|
1571
1571
|
Errors: undefined,
|
|
1572
1572
|
};
|
|
1573
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1573
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1574
1574
|
if (data.BatchChannelMemberships !== undefined && data.BatchChannelMemberships !== null) {
|
|
1575
1575
|
contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
|
|
1576
1576
|
}
|
|
@@ -1614,7 +1614,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1614
1614
|
$fault: "client",
|
|
1615
1615
|
$metadata: deserializeMetadata(output),
|
|
1616
1616
|
});
|
|
1617
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1617
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1618
1618
|
}
|
|
1619
1619
|
};
|
|
1620
1620
|
const deserializeAws_restJson1ChannelFlowCallbackCommand = async (output, context) => {
|
|
@@ -1626,12 +1626,12 @@ const deserializeAws_restJson1ChannelFlowCallbackCommand = async (output, contex
|
|
|
1626
1626
|
CallbackId: undefined,
|
|
1627
1627
|
ChannelArn: undefined,
|
|
1628
1628
|
};
|
|
1629
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1629
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1630
1630
|
if (data.CallbackId !== undefined && data.CallbackId !== null) {
|
|
1631
|
-
contents.CallbackId = smithy_client_1.expectString(data.CallbackId);
|
|
1631
|
+
contents.CallbackId = (0, smithy_client_1.expectString)(data.CallbackId);
|
|
1632
1632
|
}
|
|
1633
1633
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1634
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1634
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1635
1635
|
}
|
|
1636
1636
|
return Promise.resolve(contents);
|
|
1637
1637
|
};
|
|
@@ -1673,7 +1673,7 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
|
|
|
1673
1673
|
$fault: "client",
|
|
1674
1674
|
$metadata: deserializeMetadata(output),
|
|
1675
1675
|
});
|
|
1676
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1676
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1677
1677
|
}
|
|
1678
1678
|
};
|
|
1679
1679
|
const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
|
|
@@ -1684,9 +1684,9 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
|
|
|
1684
1684
|
$metadata: deserializeMetadata(output),
|
|
1685
1685
|
ChannelArn: undefined,
|
|
1686
1686
|
};
|
|
1687
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1687
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1688
1688
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1689
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1689
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1690
1690
|
}
|
|
1691
1691
|
return Promise.resolve(contents);
|
|
1692
1692
|
};
|
|
@@ -1731,7 +1731,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1731
1731
|
$fault: "client",
|
|
1732
1732
|
$metadata: deserializeMetadata(output),
|
|
1733
1733
|
});
|
|
1734
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1734
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1735
|
}
|
|
1736
1736
|
};
|
|
1737
1737
|
const deserializeAws_restJson1CreateChannelBanCommand = async (output, context) => {
|
|
@@ -1743,9 +1743,9 @@ const deserializeAws_restJson1CreateChannelBanCommand = async (output, context)
|
|
|
1743
1743
|
ChannelArn: undefined,
|
|
1744
1744
|
Member: undefined,
|
|
1745
1745
|
};
|
|
1746
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1746
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1747
1747
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1748
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1748
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1749
1749
|
}
|
|
1750
1750
|
if (data.Member !== undefined && data.Member !== null) {
|
|
1751
1751
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
@@ -1793,7 +1793,7 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
1793
1793
|
$fault: "client",
|
|
1794
1794
|
$metadata: deserializeMetadata(output),
|
|
1795
1795
|
});
|
|
1796
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1796
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1797
1797
|
}
|
|
1798
1798
|
};
|
|
1799
1799
|
const deserializeAws_restJson1CreateChannelFlowCommand = async (output, context) => {
|
|
@@ -1804,9 +1804,9 @@ const deserializeAws_restJson1CreateChannelFlowCommand = async (output, context)
|
|
|
1804
1804
|
$metadata: deserializeMetadata(output),
|
|
1805
1805
|
ChannelFlowArn: undefined,
|
|
1806
1806
|
};
|
|
1807
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1807
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1808
1808
|
if (data.ChannelFlowArn !== undefined && data.ChannelFlowArn !== null) {
|
|
1809
|
-
contents.ChannelFlowArn = smithy_client_1.expectString(data.ChannelFlowArn);
|
|
1809
|
+
contents.ChannelFlowArn = (0, smithy_client_1.expectString)(data.ChannelFlowArn);
|
|
1810
1810
|
}
|
|
1811
1811
|
return Promise.resolve(contents);
|
|
1812
1812
|
};
|
|
@@ -1851,7 +1851,7 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
|
|
|
1851
1851
|
$fault: "client",
|
|
1852
1852
|
$metadata: deserializeMetadata(output),
|
|
1853
1853
|
});
|
|
1854
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1854
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1855
1855
|
}
|
|
1856
1856
|
};
|
|
1857
1857
|
const deserializeAws_restJson1CreateChannelMembershipCommand = async (output, context) => {
|
|
@@ -1863,9 +1863,9 @@ const deserializeAws_restJson1CreateChannelMembershipCommand = async (output, co
|
|
|
1863
1863
|
ChannelArn: undefined,
|
|
1864
1864
|
Member: undefined,
|
|
1865
1865
|
};
|
|
1866
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1866
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1867
1867
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1868
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1868
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1869
1869
|
}
|
|
1870
1870
|
if (data.Member !== undefined && data.Member !== null) {
|
|
1871
1871
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
@@ -1913,7 +1913,7 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1913
1913
|
$fault: "client",
|
|
1914
1914
|
$metadata: deserializeMetadata(output),
|
|
1915
1915
|
});
|
|
1916
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1916
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1917
1917
|
}
|
|
1918
1918
|
};
|
|
1919
1919
|
const deserializeAws_restJson1CreateChannelModeratorCommand = async (output, context) => {
|
|
@@ -1925,9 +1925,9 @@ const deserializeAws_restJson1CreateChannelModeratorCommand = async (output, con
|
|
|
1925
1925
|
ChannelArn: undefined,
|
|
1926
1926
|
ChannelModerator: undefined,
|
|
1927
1927
|
};
|
|
1928
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1928
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1929
1929
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1930
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
1930
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1931
1931
|
}
|
|
1932
1932
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
1933
1933
|
contents.ChannelModerator = deserializeAws_restJson1Identity(data.ChannelModerator, context);
|
|
@@ -1975,7 +1975,7 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
1975
1975
|
$fault: "client",
|
|
1976
1976
|
$metadata: deserializeMetadata(output),
|
|
1977
1977
|
});
|
|
1978
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1978
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1979
1979
|
}
|
|
1980
1980
|
};
|
|
1981
1981
|
const deserializeAws_restJson1DeleteChannelCommand = async (output, context) => {
|
|
@@ -2023,7 +2023,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2023
2023
|
$fault: "client",
|
|
2024
2024
|
$metadata: deserializeMetadata(output),
|
|
2025
2025
|
});
|
|
2026
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2026
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2027
2027
|
}
|
|
2028
2028
|
};
|
|
2029
2029
|
const deserializeAws_restJson1DeleteChannelBanCommand = async (output, context) => {
|
|
@@ -2071,7 +2071,7 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
2071
2071
|
$fault: "client",
|
|
2072
2072
|
$metadata: deserializeMetadata(output),
|
|
2073
2073
|
});
|
|
2074
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2074
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2075
2075
|
}
|
|
2076
2076
|
};
|
|
2077
2077
|
const deserializeAws_restJson1DeleteChannelFlowCommand = async (output, context) => {
|
|
@@ -2122,7 +2122,7 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
|
|
|
2122
2122
|
$fault: "client",
|
|
2123
2123
|
$metadata: deserializeMetadata(output),
|
|
2124
2124
|
});
|
|
2125
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2125
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2126
2126
|
}
|
|
2127
2127
|
};
|
|
2128
2128
|
const deserializeAws_restJson1DeleteChannelMembershipCommand = async (output, context) => {
|
|
@@ -2173,7 +2173,7 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
2173
2173
|
$fault: "client",
|
|
2174
2174
|
$metadata: deserializeMetadata(output),
|
|
2175
2175
|
});
|
|
2176
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2176
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2177
2177
|
}
|
|
2178
2178
|
};
|
|
2179
2179
|
const deserializeAws_restJson1DeleteChannelMessageCommand = async (output, context) => {
|
|
@@ -2221,7 +2221,7 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
2221
2221
|
$fault: "client",
|
|
2222
2222
|
$metadata: deserializeMetadata(output),
|
|
2223
2223
|
});
|
|
2224
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2224
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2225
2225
|
}
|
|
2226
2226
|
};
|
|
2227
2227
|
const deserializeAws_restJson1DeleteChannelModeratorCommand = async (output, context) => {
|
|
@@ -2269,7 +2269,7 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
2269
2269
|
$fault: "client",
|
|
2270
2270
|
$metadata: deserializeMetadata(output),
|
|
2271
2271
|
});
|
|
2272
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2272
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
2275
|
const deserializeAws_restJson1DescribeChannelCommand = async (output, context) => {
|
|
@@ -2280,7 +2280,7 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
|
|
|
2280
2280
|
$metadata: deserializeMetadata(output),
|
|
2281
2281
|
Channel: undefined,
|
|
2282
2282
|
};
|
|
2283
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2283
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2284
2284
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2285
2285
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
2286
2286
|
}
|
|
@@ -2321,7 +2321,7 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2321
2321
|
$fault: "client",
|
|
2322
2322
|
$metadata: deserializeMetadata(output),
|
|
2323
2323
|
});
|
|
2324
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2324
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2325
2325
|
}
|
|
2326
2326
|
};
|
|
2327
2327
|
const deserializeAws_restJson1DescribeChannelBanCommand = async (output, context) => {
|
|
@@ -2332,7 +2332,7 @@ const deserializeAws_restJson1DescribeChannelBanCommand = async (output, context
|
|
|
2332
2332
|
$metadata: deserializeMetadata(output),
|
|
2333
2333
|
ChannelBan: undefined,
|
|
2334
2334
|
};
|
|
2335
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2335
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2336
2336
|
if (data.ChannelBan !== undefined && data.ChannelBan !== null) {
|
|
2337
2337
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
2338
2338
|
}
|
|
@@ -2376,7 +2376,7 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
2376
2376
|
$fault: "client",
|
|
2377
2377
|
$metadata: deserializeMetadata(output),
|
|
2378
2378
|
});
|
|
2379
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2379
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2380
2380
|
}
|
|
2381
2381
|
};
|
|
2382
2382
|
const deserializeAws_restJson1DescribeChannelFlowCommand = async (output, context) => {
|
|
@@ -2387,7 +2387,7 @@ const deserializeAws_restJson1DescribeChannelFlowCommand = async (output, contex
|
|
|
2387
2387
|
$metadata: deserializeMetadata(output),
|
|
2388
2388
|
ChannelFlow: undefined,
|
|
2389
2389
|
};
|
|
2390
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2390
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2391
2391
|
if (data.ChannelFlow !== undefined && data.ChannelFlow !== null) {
|
|
2392
2392
|
contents.ChannelFlow = deserializeAws_restJson1ChannelFlow(data.ChannelFlow, context);
|
|
2393
2393
|
}
|
|
@@ -2428,7 +2428,7 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
|
|
|
2428
2428
|
$fault: "client",
|
|
2429
2429
|
$metadata: deserializeMetadata(output),
|
|
2430
2430
|
});
|
|
2431
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2431
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2432
2432
|
}
|
|
2433
2433
|
};
|
|
2434
2434
|
const deserializeAws_restJson1DescribeChannelMembershipCommand = async (output, context) => {
|
|
@@ -2439,7 +2439,7 @@ const deserializeAws_restJson1DescribeChannelMembershipCommand = async (output,
|
|
|
2439
2439
|
$metadata: deserializeMetadata(output),
|
|
2440
2440
|
ChannelMembership: undefined,
|
|
2441
2441
|
};
|
|
2442
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2442
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2443
2443
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2444
2444
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
2445
2445
|
}
|
|
@@ -2483,7 +2483,7 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
2483
2483
|
$fault: "client",
|
|
2484
2484
|
$metadata: deserializeMetadata(output),
|
|
2485
2485
|
});
|
|
2486
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2486
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
2489
|
const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
|
|
@@ -2494,7 +2494,7 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2494
2494
|
$metadata: deserializeMetadata(output),
|
|
2495
2495
|
ChannelMembership: undefined,
|
|
2496
2496
|
};
|
|
2497
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2497
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2498
2498
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2499
2499
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
2500
2500
|
}
|
|
@@ -2535,7 +2535,7 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2535
2535
|
$fault: "client",
|
|
2536
2536
|
$metadata: deserializeMetadata(output),
|
|
2537
2537
|
});
|
|
2538
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2538
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2539
2539
|
}
|
|
2540
2540
|
};
|
|
2541
2541
|
const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
@@ -2546,7 +2546,7 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand =
|
|
|
2546
2546
|
$metadata: deserializeMetadata(output),
|
|
2547
2547
|
Channel: undefined,
|
|
2548
2548
|
};
|
|
2549
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2549
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2550
2550
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2551
2551
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
2552
2552
|
}
|
|
@@ -2587,7 +2587,7 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
2587
2587
|
$fault: "client",
|
|
2588
2588
|
$metadata: deserializeMetadata(output),
|
|
2589
2589
|
});
|
|
2590
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2590
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2591
2591
|
}
|
|
2592
2592
|
};
|
|
2593
2593
|
const deserializeAws_restJson1DescribeChannelModeratorCommand = async (output, context) => {
|
|
@@ -2598,7 +2598,7 @@ const deserializeAws_restJson1DescribeChannelModeratorCommand = async (output, c
|
|
|
2598
2598
|
$metadata: deserializeMetadata(output),
|
|
2599
2599
|
ChannelModerator: undefined,
|
|
2600
2600
|
};
|
|
2601
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2601
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2602
2602
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
2603
2603
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
2604
2604
|
}
|
|
@@ -2642,7 +2642,7 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
2642
2642
|
$fault: "client",
|
|
2643
2643
|
$metadata: deserializeMetadata(output),
|
|
2644
2644
|
});
|
|
2645
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2645
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2646
2646
|
}
|
|
2647
2647
|
};
|
|
2648
2648
|
const deserializeAws_restJson1DisassociateChannelFlowCommand = async (output, context) => {
|
|
@@ -2696,7 +2696,7 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
|
|
|
2696
2696
|
$fault: "client",
|
|
2697
2697
|
$metadata: deserializeMetadata(output),
|
|
2698
2698
|
});
|
|
2699
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2699
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2700
2700
|
}
|
|
2701
2701
|
};
|
|
2702
2702
|
const deserializeAws_restJson1GetChannelMembershipPreferencesCommand = async (output, context) => {
|
|
@@ -2709,9 +2709,9 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommand = async (ou
|
|
|
2709
2709
|
Member: undefined,
|
|
2710
2710
|
Preferences: undefined,
|
|
2711
2711
|
};
|
|
2712
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2712
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2713
2713
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
2714
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
2714
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2715
2715
|
}
|
|
2716
2716
|
if (data.Member !== undefined && data.Member !== null) {
|
|
2717
2717
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
@@ -2756,7 +2756,7 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
|
|
|
2756
2756
|
$fault: "client",
|
|
2757
2757
|
$metadata: deserializeMetadata(output),
|
|
2758
2758
|
});
|
|
2759
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2759
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2760
2760
|
}
|
|
2761
2761
|
};
|
|
2762
2762
|
const deserializeAws_restJson1GetChannelMessageCommand = async (output, context) => {
|
|
@@ -2767,7 +2767,7 @@ const deserializeAws_restJson1GetChannelMessageCommand = async (output, context)
|
|
|
2767
2767
|
$metadata: deserializeMetadata(output),
|
|
2768
2768
|
ChannelMessage: undefined,
|
|
2769
2769
|
};
|
|
2770
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2770
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2771
2771
|
if (data.ChannelMessage !== undefined && data.ChannelMessage !== null) {
|
|
2772
2772
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
2773
2773
|
}
|
|
@@ -2811,7 +2811,7 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
2811
2811
|
$fault: "client",
|
|
2812
2812
|
$metadata: deserializeMetadata(output),
|
|
2813
2813
|
});
|
|
2814
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2814
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2815
2815
|
}
|
|
2816
2816
|
};
|
|
2817
2817
|
const deserializeAws_restJson1GetChannelMessageStatusCommand = async (output, context) => {
|
|
@@ -2822,7 +2822,7 @@ const deserializeAws_restJson1GetChannelMessageStatusCommand = async (output, co
|
|
|
2822
2822
|
$metadata: deserializeMetadata(output),
|
|
2823
2823
|
Status: undefined,
|
|
2824
2824
|
};
|
|
2825
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2825
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2826
2826
|
if (data.Status !== undefined && data.Status !== null) {
|
|
2827
2827
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
2828
2828
|
}
|
|
@@ -2863,7 +2863,7 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
|
|
|
2863
2863
|
$fault: "client",
|
|
2864
2864
|
$metadata: deserializeMetadata(output),
|
|
2865
2865
|
});
|
|
2866
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2866
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2867
2867
|
}
|
|
2868
2868
|
};
|
|
2869
2869
|
const deserializeAws_restJson1GetMessagingSessionEndpointCommand = async (output, context) => {
|
|
@@ -2874,7 +2874,7 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommand = async (output
|
|
|
2874
2874
|
$metadata: deserializeMetadata(output),
|
|
2875
2875
|
Endpoint: undefined,
|
|
2876
2876
|
};
|
|
2877
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2877
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2878
2878
|
if (data.Endpoint !== undefined && data.Endpoint !== null) {
|
|
2879
2879
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
2880
2880
|
}
|
|
@@ -2912,7 +2912,7 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2912
2912
|
$fault: "client",
|
|
2913
2913
|
$metadata: deserializeMetadata(output),
|
|
2914
2914
|
});
|
|
2915
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2915
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2916
2916
|
}
|
|
2917
2917
|
};
|
|
2918
2918
|
const deserializeAws_restJson1ListChannelBansCommand = async (output, context) => {
|
|
@@ -2925,15 +2925,15 @@ const deserializeAws_restJson1ListChannelBansCommand = async (output, context) =
|
|
|
2925
2925
|
ChannelBans: undefined,
|
|
2926
2926
|
NextToken: undefined,
|
|
2927
2927
|
};
|
|
2928
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2928
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2929
2929
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
2930
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
2930
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2931
2931
|
}
|
|
2932
2932
|
if (data.ChannelBans !== undefined && data.ChannelBans !== null) {
|
|
2933
2933
|
contents.ChannelBans = deserializeAws_restJson1ChannelBanSummaryList(data.ChannelBans, context);
|
|
2934
2934
|
}
|
|
2935
2935
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2936
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2936
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2937
2937
|
}
|
|
2938
2938
|
return Promise.resolve(contents);
|
|
2939
2939
|
};
|
|
@@ -2972,7 +2972,7 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
2972
2972
|
$fault: "client",
|
|
2973
2973
|
$metadata: deserializeMetadata(output),
|
|
2974
2974
|
});
|
|
2975
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2975
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2976
2976
|
}
|
|
2977
2977
|
};
|
|
2978
2978
|
const deserializeAws_restJson1ListChannelFlowsCommand = async (output, context) => {
|
|
@@ -2984,12 +2984,12 @@ const deserializeAws_restJson1ListChannelFlowsCommand = async (output, context)
|
|
|
2984
2984
|
ChannelFlows: undefined,
|
|
2985
2985
|
NextToken: undefined,
|
|
2986
2986
|
};
|
|
2987
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2987
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2988
2988
|
if (data.ChannelFlows !== undefined && data.ChannelFlows !== null) {
|
|
2989
2989
|
contents.ChannelFlows = deserializeAws_restJson1ChannelFlowSummaryList(data.ChannelFlows, context);
|
|
2990
2990
|
}
|
|
2991
2991
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2992
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2992
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2993
2993
|
}
|
|
2994
2994
|
return Promise.resolve(contents);
|
|
2995
2995
|
};
|
|
@@ -3028,7 +3028,7 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
|
|
|
3028
3028
|
$fault: "client",
|
|
3029
3029
|
$metadata: deserializeMetadata(output),
|
|
3030
3030
|
});
|
|
3031
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3031
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3032
3032
|
}
|
|
3033
3033
|
};
|
|
3034
3034
|
const deserializeAws_restJson1ListChannelMembershipsCommand = async (output, context) => {
|
|
@@ -3041,15 +3041,15 @@ const deserializeAws_restJson1ListChannelMembershipsCommand = async (output, con
|
|
|
3041
3041
|
ChannelMemberships: undefined,
|
|
3042
3042
|
NextToken: undefined,
|
|
3043
3043
|
};
|
|
3044
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3044
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3045
3045
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3046
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3046
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3047
3047
|
}
|
|
3048
3048
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
3049
3049
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipSummaryList(data.ChannelMemberships, context);
|
|
3050
3050
|
}
|
|
3051
3051
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3052
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3052
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3053
3053
|
}
|
|
3054
3054
|
return Promise.resolve(contents);
|
|
3055
3055
|
};
|
|
@@ -3088,7 +3088,7 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
3088
3088
|
$fault: "client",
|
|
3089
3089
|
$metadata: deserializeMetadata(output),
|
|
3090
3090
|
});
|
|
3091
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3091
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3092
3092
|
}
|
|
3093
3093
|
};
|
|
3094
3094
|
const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = async (output, context) => {
|
|
@@ -3100,12 +3100,12 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand =
|
|
|
3100
3100
|
ChannelMemberships: undefined,
|
|
3101
3101
|
NextToken: undefined,
|
|
3102
3102
|
};
|
|
3103
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3103
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3104
3104
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
3105
3105
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
|
|
3106
3106
|
}
|
|
3107
3107
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3108
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3108
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3109
3109
|
}
|
|
3110
3110
|
return Promise.resolve(contents);
|
|
3111
3111
|
};
|
|
@@ -3144,7 +3144,7 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
3144
3144
|
$fault: "client",
|
|
3145
3145
|
$metadata: deserializeMetadata(output),
|
|
3146
3146
|
});
|
|
3147
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3147
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3148
3148
|
}
|
|
3149
3149
|
};
|
|
3150
3150
|
const deserializeAws_restJson1ListChannelMessagesCommand = async (output, context) => {
|
|
@@ -3157,15 +3157,15 @@ const deserializeAws_restJson1ListChannelMessagesCommand = async (output, contex
|
|
|
3157
3157
|
ChannelMessages: undefined,
|
|
3158
3158
|
NextToken: undefined,
|
|
3159
3159
|
};
|
|
3160
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3160
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3161
3161
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3162
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3162
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3163
3163
|
}
|
|
3164
3164
|
if (data.ChannelMessages !== undefined && data.ChannelMessages !== null) {
|
|
3165
3165
|
contents.ChannelMessages = deserializeAws_restJson1ChannelMessageSummaryList(data.ChannelMessages, context);
|
|
3166
3166
|
}
|
|
3167
3167
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3168
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3168
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3169
3169
|
}
|
|
3170
3170
|
return Promise.resolve(contents);
|
|
3171
3171
|
};
|
|
@@ -3204,7 +3204,7 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
3204
3204
|
$fault: "client",
|
|
3205
3205
|
$metadata: deserializeMetadata(output),
|
|
3206
3206
|
});
|
|
3207
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3207
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3208
3208
|
}
|
|
3209
3209
|
};
|
|
3210
3210
|
const deserializeAws_restJson1ListChannelModeratorsCommand = async (output, context) => {
|
|
@@ -3217,15 +3217,15 @@ const deserializeAws_restJson1ListChannelModeratorsCommand = async (output, cont
|
|
|
3217
3217
|
ChannelModerators: undefined,
|
|
3218
3218
|
NextToken: undefined,
|
|
3219
3219
|
};
|
|
3220
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3220
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3221
3221
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3222
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3222
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3223
3223
|
}
|
|
3224
3224
|
if (data.ChannelModerators !== undefined && data.ChannelModerators !== null) {
|
|
3225
3225
|
contents.ChannelModerators = deserializeAws_restJson1ChannelModeratorSummaryList(data.ChannelModerators, context);
|
|
3226
3226
|
}
|
|
3227
3227
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3228
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3228
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3229
3229
|
}
|
|
3230
3230
|
return Promise.resolve(contents);
|
|
3231
3231
|
};
|
|
@@ -3264,7 +3264,7 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
3264
3264
|
$fault: "client",
|
|
3265
3265
|
$metadata: deserializeMetadata(output),
|
|
3266
3266
|
});
|
|
3267
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3267
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3268
3268
|
}
|
|
3269
3269
|
};
|
|
3270
3270
|
const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
|
|
@@ -3276,12 +3276,12 @@ const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
|
|
|
3276
3276
|
Channels: undefined,
|
|
3277
3277
|
NextToken: undefined,
|
|
3278
3278
|
};
|
|
3279
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3279
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3280
3280
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3281
3281
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
3282
3282
|
}
|
|
3283
3283
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3284
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3284
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3285
3285
|
}
|
|
3286
3286
|
return Promise.resolve(contents);
|
|
3287
3287
|
};
|
|
@@ -3320,7 +3320,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
3320
3320
|
$fault: "client",
|
|
3321
3321
|
$metadata: deserializeMetadata(output),
|
|
3322
3322
|
});
|
|
3323
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3323
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3324
3324
|
}
|
|
3325
3325
|
};
|
|
3326
3326
|
const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = async (output, context) => {
|
|
@@ -3332,12 +3332,12 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = asy
|
|
|
3332
3332
|
Channels: undefined,
|
|
3333
3333
|
NextToken: undefined,
|
|
3334
3334
|
};
|
|
3335
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3335
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3336
3336
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3337
3337
|
contents.Channels = deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList(data.Channels, context);
|
|
3338
3338
|
}
|
|
3339
3339
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3340
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3340
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3341
3341
|
}
|
|
3342
3342
|
return Promise.resolve(contents);
|
|
3343
3343
|
};
|
|
@@ -3376,7 +3376,7 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
|
|
|
3376
3376
|
$fault: "client",
|
|
3377
3377
|
$metadata: deserializeMetadata(output),
|
|
3378
3378
|
});
|
|
3379
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3379
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3380
3380
|
}
|
|
3381
3381
|
};
|
|
3382
3382
|
const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
@@ -3388,12 +3388,12 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = as
|
|
|
3388
3388
|
Channels: undefined,
|
|
3389
3389
|
NextToken: undefined,
|
|
3390
3390
|
};
|
|
3391
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3391
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3392
3392
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3393
3393
|
contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
3394
3394
|
}
|
|
3395
3395
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3396
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3396
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3397
3397
|
}
|
|
3398
3398
|
return Promise.resolve(contents);
|
|
3399
3399
|
};
|
|
@@ -3432,7 +3432,7 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
3432
3432
|
$fault: "client",
|
|
3433
3433
|
$metadata: deserializeMetadata(output),
|
|
3434
3434
|
});
|
|
3435
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3435
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3436
3436
|
}
|
|
3437
3437
|
};
|
|
3438
3438
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -3443,7 +3443,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
3443
3443
|
$metadata: deserializeMetadata(output),
|
|
3444
3444
|
Tags: undefined,
|
|
3445
3445
|
};
|
|
3446
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3446
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3447
3447
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3448
3448
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
3449
3449
|
}
|
|
@@ -3484,7 +3484,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3484
3484
|
$fault: "client",
|
|
3485
3485
|
$metadata: deserializeMetadata(output),
|
|
3486
3486
|
});
|
|
3487
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3487
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3488
3488
|
}
|
|
3489
3489
|
};
|
|
3490
3490
|
const deserializeAws_restJson1PutChannelMembershipPreferencesCommand = async (output, context) => {
|
|
@@ -3497,9 +3497,9 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommand = async (ou
|
|
|
3497
3497
|
Member: undefined,
|
|
3498
3498
|
Preferences: undefined,
|
|
3499
3499
|
};
|
|
3500
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3500
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3501
3501
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3502
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3502
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3503
3503
|
}
|
|
3504
3504
|
if (data.Member !== undefined && data.Member !== null) {
|
|
3505
3505
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
@@ -3547,7 +3547,7 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3547
3547
|
$fault: "client",
|
|
3548
3548
|
$metadata: deserializeMetadata(output),
|
|
3549
3549
|
});
|
|
3550
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3550
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3551
3551
|
}
|
|
3552
3552
|
};
|
|
3553
3553
|
const deserializeAws_restJson1RedactChannelMessageCommand = async (output, context) => {
|
|
@@ -3559,12 +3559,12 @@ const deserializeAws_restJson1RedactChannelMessageCommand = async (output, conte
|
|
|
3559
3559
|
ChannelArn: undefined,
|
|
3560
3560
|
MessageId: undefined,
|
|
3561
3561
|
};
|
|
3562
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3562
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3563
3563
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3564
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3564
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3565
3565
|
}
|
|
3566
3566
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3567
|
-
contents.MessageId = smithy_client_1.expectString(data.MessageId);
|
|
3567
|
+
contents.MessageId = (0, smithy_client_1.expectString)(data.MessageId);
|
|
3568
3568
|
}
|
|
3569
3569
|
return Promise.resolve(contents);
|
|
3570
3570
|
};
|
|
@@ -3603,7 +3603,7 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
3603
3603
|
$fault: "client",
|
|
3604
3604
|
$metadata: deserializeMetadata(output),
|
|
3605
3605
|
});
|
|
3606
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3606
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3607
3607
|
}
|
|
3608
3608
|
};
|
|
3609
3609
|
const deserializeAws_restJson1SendChannelMessageCommand = async (output, context) => {
|
|
@@ -3616,12 +3616,12 @@ const deserializeAws_restJson1SendChannelMessageCommand = async (output, context
|
|
|
3616
3616
|
MessageId: undefined,
|
|
3617
3617
|
Status: undefined,
|
|
3618
3618
|
};
|
|
3619
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3619
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3620
3620
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3621
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3621
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3622
3622
|
}
|
|
3623
3623
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3624
|
-
contents.MessageId = smithy_client_1.expectString(data.MessageId);
|
|
3624
|
+
contents.MessageId = (0, smithy_client_1.expectString)(data.MessageId);
|
|
3625
3625
|
}
|
|
3626
3626
|
if (data.Status !== undefined && data.Status !== null) {
|
|
3627
3627
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
@@ -3666,7 +3666,7 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
3666
3666
|
$fault: "client",
|
|
3667
3667
|
$metadata: deserializeMetadata(output),
|
|
3668
3668
|
});
|
|
3669
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3669
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3670
3670
|
}
|
|
3671
3671
|
};
|
|
3672
3672
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -3717,7 +3717,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3717
3717
|
$fault: "client",
|
|
3718
3718
|
$metadata: deserializeMetadata(output),
|
|
3719
3719
|
});
|
|
3720
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3720
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3721
3721
|
}
|
|
3722
3722
|
};
|
|
3723
3723
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -3765,7 +3765,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3765
3765
|
$fault: "client",
|
|
3766
3766
|
$metadata: deserializeMetadata(output),
|
|
3767
3767
|
});
|
|
3768
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3768
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3769
3769
|
}
|
|
3770
3770
|
};
|
|
3771
3771
|
const deserializeAws_restJson1UpdateChannelCommand = async (output, context) => {
|
|
@@ -3776,9 +3776,9 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
|
|
|
3776
3776
|
$metadata: deserializeMetadata(output),
|
|
3777
3777
|
ChannelArn: undefined,
|
|
3778
3778
|
};
|
|
3779
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3779
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3780
3780
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3781
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3781
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3782
3782
|
}
|
|
3783
3783
|
return Promise.resolve(contents);
|
|
3784
3784
|
};
|
|
@@ -3820,7 +3820,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3820
3820
|
$fault: "client",
|
|
3821
3821
|
$metadata: deserializeMetadata(output),
|
|
3822
3822
|
});
|
|
3823
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3823
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3824
3824
|
}
|
|
3825
3825
|
};
|
|
3826
3826
|
const deserializeAws_restJson1UpdateChannelFlowCommand = async (output, context) => {
|
|
@@ -3831,9 +3831,9 @@ const deserializeAws_restJson1UpdateChannelFlowCommand = async (output, context)
|
|
|
3831
3831
|
$metadata: deserializeMetadata(output),
|
|
3832
3832
|
ChannelFlowArn: undefined,
|
|
3833
3833
|
};
|
|
3834
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3834
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3835
3835
|
if (data.ChannelFlowArn !== undefined && data.ChannelFlowArn !== null) {
|
|
3836
|
-
contents.ChannelFlowArn = smithy_client_1.expectString(data.ChannelFlowArn);
|
|
3836
|
+
contents.ChannelFlowArn = (0, smithy_client_1.expectString)(data.ChannelFlowArn);
|
|
3837
3837
|
}
|
|
3838
3838
|
return Promise.resolve(contents);
|
|
3839
3839
|
};
|
|
@@ -3875,7 +3875,7 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
|
|
|
3875
3875
|
$fault: "client",
|
|
3876
3876
|
$metadata: deserializeMetadata(output),
|
|
3877
3877
|
});
|
|
3878
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3878
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3879
3879
|
}
|
|
3880
3880
|
};
|
|
3881
3881
|
const deserializeAws_restJson1UpdateChannelMessageCommand = async (output, context) => {
|
|
@@ -3888,12 +3888,12 @@ const deserializeAws_restJson1UpdateChannelMessageCommand = async (output, conte
|
|
|
3888
3888
|
MessageId: undefined,
|
|
3889
3889
|
Status: undefined,
|
|
3890
3890
|
};
|
|
3891
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3891
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3892
3892
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3893
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3893
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3894
3894
|
}
|
|
3895
3895
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3896
|
-
contents.MessageId = smithy_client_1.expectString(data.MessageId);
|
|
3896
|
+
contents.MessageId = (0, smithy_client_1.expectString)(data.MessageId);
|
|
3897
3897
|
}
|
|
3898
3898
|
if (data.Status !== undefined && data.Status !== null) {
|
|
3899
3899
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
@@ -3938,7 +3938,7 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
3938
3938
|
$fault: "client",
|
|
3939
3939
|
$metadata: deserializeMetadata(output),
|
|
3940
3940
|
});
|
|
3941
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3941
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3942
3942
|
}
|
|
3943
3943
|
};
|
|
3944
3944
|
const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
@@ -3949,9 +3949,9 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (output, co
|
|
|
3949
3949
|
$metadata: deserializeMetadata(output),
|
|
3950
3950
|
ChannelArn: undefined,
|
|
3951
3951
|
};
|
|
3952
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3952
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3953
3953
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3954
|
-
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
3954
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3955
3955
|
}
|
|
3956
3956
|
return Promise.resolve(contents);
|
|
3957
3957
|
};
|
|
@@ -3993,143 +3993,143 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
3993
3993
|
$fault: "client",
|
|
3994
3994
|
$metadata: deserializeMetadata(output),
|
|
3995
3995
|
});
|
|
3996
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3996
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3997
3997
|
}
|
|
3998
3998
|
};
|
|
3999
3999
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
4000
4000
|
const contents = {};
|
|
4001
4001
|
const data = parsedOutput.body;
|
|
4002
4002
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4003
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4003
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4004
4004
|
}
|
|
4005
4005
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4006
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4006
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4007
4007
|
}
|
|
4008
4008
|
const exception = new models_0_1.BadRequestException({
|
|
4009
4009
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4010
4010
|
...contents,
|
|
4011
4011
|
});
|
|
4012
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4012
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4013
4013
|
};
|
|
4014
4014
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4015
4015
|
const contents = {};
|
|
4016
4016
|
const data = parsedOutput.body;
|
|
4017
4017
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4018
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4018
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4019
4019
|
}
|
|
4020
4020
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4021
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4021
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4022
4022
|
}
|
|
4023
4023
|
const exception = new models_0_1.ConflictException({
|
|
4024
4024
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4025
4025
|
...contents,
|
|
4026
4026
|
});
|
|
4027
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4027
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4028
4028
|
};
|
|
4029
4029
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
4030
4030
|
const contents = {};
|
|
4031
4031
|
const data = parsedOutput.body;
|
|
4032
4032
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4033
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4033
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4034
4034
|
}
|
|
4035
4035
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4036
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4036
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4037
4037
|
}
|
|
4038
4038
|
const exception = new models_0_1.ForbiddenException({
|
|
4039
4039
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4040
4040
|
...contents,
|
|
4041
4041
|
});
|
|
4042
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4042
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4043
4043
|
};
|
|
4044
4044
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4045
4045
|
const contents = {};
|
|
4046
4046
|
const data = parsedOutput.body;
|
|
4047
4047
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4048
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4048
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4049
4049
|
}
|
|
4050
4050
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4051
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4051
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4052
4052
|
}
|
|
4053
4053
|
const exception = new models_0_1.NotFoundException({
|
|
4054
4054
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4055
4055
|
...contents,
|
|
4056
4056
|
});
|
|
4057
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4057
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4058
4058
|
};
|
|
4059
4059
|
const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4060
4060
|
const contents = {};
|
|
4061
4061
|
const data = parsedOutput.body;
|
|
4062
4062
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4063
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4063
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4064
4064
|
}
|
|
4065
4065
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4066
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4066
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4067
4067
|
}
|
|
4068
4068
|
const exception = new models_0_1.ResourceLimitExceededException({
|
|
4069
4069
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4070
4070
|
...contents,
|
|
4071
4071
|
});
|
|
4072
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4072
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4073
4073
|
};
|
|
4074
4074
|
const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
|
|
4075
4075
|
const contents = {};
|
|
4076
4076
|
const data = parsedOutput.body;
|
|
4077
4077
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4078
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4078
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4079
4079
|
}
|
|
4080
4080
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4081
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4081
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4082
4082
|
}
|
|
4083
4083
|
const exception = new models_0_1.ServiceFailureException({
|
|
4084
4084
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4085
4085
|
...contents,
|
|
4086
4086
|
});
|
|
4087
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4087
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4088
4088
|
};
|
|
4089
4089
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
4090
4090
|
const contents = {};
|
|
4091
4091
|
const data = parsedOutput.body;
|
|
4092
4092
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4093
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4093
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4094
4094
|
}
|
|
4095
4095
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4096
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4096
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4097
4097
|
}
|
|
4098
4098
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
4099
4099
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4100
4100
|
...contents,
|
|
4101
4101
|
});
|
|
4102
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4102
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4103
4103
|
};
|
|
4104
4104
|
const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOutput, context) => {
|
|
4105
4105
|
const contents = {};
|
|
4106
4106
|
const data = parsedOutput.body;
|
|
4107
4107
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4108
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4108
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4109
4109
|
}
|
|
4110
4110
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4111
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4111
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4112
4112
|
}
|
|
4113
4113
|
const exception = new models_0_1.ThrottledClientException({
|
|
4114
4114
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4115
4115
|
...contents,
|
|
4116
4116
|
});
|
|
4117
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4117
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4118
4118
|
};
|
|
4119
4119
|
const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
|
|
4120
4120
|
const contents = {};
|
|
4121
4121
|
const data = parsedOutput.body;
|
|
4122
4122
|
if (data.Code !== undefined && data.Code !== null) {
|
|
4123
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
4123
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
4124
4124
|
}
|
|
4125
4125
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4126
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4126
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
4127
4127
|
}
|
|
4128
4128
|
const exception = new models_0_1.UnauthorizedClientException({
|
|
4129
4129
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4130
4130
|
...contents,
|
|
4131
4131
|
});
|
|
4132
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4132
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4133
4133
|
};
|
|
4134
4134
|
const serializeAws_restJson1ChannelMembershipPreferences = (input, context) => {
|
|
4135
4135
|
return {
|
|
@@ -4272,28 +4272,28 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
4272
4272
|
const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, context) => {
|
|
4273
4273
|
return {
|
|
4274
4274
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
|
|
4275
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReadMarkerTimestamp)))
|
|
4275
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadMarkerTimestamp)))
|
|
4276
4276
|
: undefined,
|
|
4277
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
4277
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4278
4278
|
};
|
|
4279
4279
|
};
|
|
4280
4280
|
const deserializeAws_restJson1BatchChannelMemberships = (output, context) => {
|
|
4281
4281
|
return {
|
|
4282
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4282
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4283
4283
|
InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
4284
4284
|
? deserializeAws_restJson1Identity(output.InvitedBy, context)
|
|
4285
4285
|
: undefined,
|
|
4286
4286
|
Members: output.Members !== undefined && output.Members !== null
|
|
4287
4287
|
? deserializeAws_restJson1Members(output.Members, context)
|
|
4288
4288
|
: undefined,
|
|
4289
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
4289
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4290
4290
|
};
|
|
4291
4291
|
};
|
|
4292
4292
|
const deserializeAws_restJson1BatchCreateChannelMembershipError = (output, context) => {
|
|
4293
4293
|
return {
|
|
4294
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
4295
|
-
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
4296
|
-
MemberArn: smithy_client_1.expectString(output.MemberArn),
|
|
4294
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4295
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4296
|
+
MemberArn: (0, smithy_client_1.expectString)(output.MemberArn),
|
|
4297
4297
|
};
|
|
4298
4298
|
};
|
|
4299
4299
|
const deserializeAws_restJson1BatchCreateChannelMembershipErrors = (output, context) => {
|
|
@@ -4309,33 +4309,33 @@ const deserializeAws_restJson1BatchCreateChannelMembershipErrors = (output, cont
|
|
|
4309
4309
|
};
|
|
4310
4310
|
const deserializeAws_restJson1Channel = (output, context) => {
|
|
4311
4311
|
return {
|
|
4312
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4313
|
-
ChannelFlowArn: smithy_client_1.expectString(output.ChannelFlowArn),
|
|
4312
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4313
|
+
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4314
4314
|
CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
|
|
4315
4315
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4316
4316
|
: undefined,
|
|
4317
4317
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4318
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4318
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4319
4319
|
: undefined,
|
|
4320
4320
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4321
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastMessageTimestamp)))
|
|
4321
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
|
|
4322
4322
|
: undefined,
|
|
4323
4323
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4324
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4324
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4325
4325
|
: undefined,
|
|
4326
|
-
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4327
|
-
Mode: smithy_client_1.expectString(output.Mode),
|
|
4328
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
4329
|
-
Privacy: smithy_client_1.expectString(output.Privacy),
|
|
4326
|
+
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4327
|
+
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
4328
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4329
|
+
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4330
4330
|
};
|
|
4331
4331
|
};
|
|
4332
4332
|
const deserializeAws_restJson1ChannelAssociatedWithFlowSummary = (output, context) => {
|
|
4333
4333
|
return {
|
|
4334
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4335
|
-
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4336
|
-
Mode: smithy_client_1.expectString(output.Mode),
|
|
4337
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
4338
|
-
Privacy: smithy_client_1.expectString(output.Privacy),
|
|
4334
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4335
|
+
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4336
|
+
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
4337
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4338
|
+
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4339
4339
|
};
|
|
4340
4340
|
};
|
|
4341
4341
|
const deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList = (output, context) => {
|
|
@@ -4351,12 +4351,12 @@ const deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList = (output, co
|
|
|
4351
4351
|
};
|
|
4352
4352
|
const deserializeAws_restJson1ChannelBan = (output, context) => {
|
|
4353
4353
|
return {
|
|
4354
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4354
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4355
4355
|
CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
|
|
4356
4356
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4357
4357
|
: undefined,
|
|
4358
4358
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4359
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4359
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4360
4360
|
: undefined,
|
|
4361
4361
|
Member: output.Member !== undefined && output.Member !== null
|
|
4362
4362
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -4383,14 +4383,14 @@ const deserializeAws_restJson1ChannelBanSummaryList = (output, context) => {
|
|
|
4383
4383
|
};
|
|
4384
4384
|
const deserializeAws_restJson1ChannelFlow = (output, context) => {
|
|
4385
4385
|
return {
|
|
4386
|
-
ChannelFlowArn: smithy_client_1.expectString(output.ChannelFlowArn),
|
|
4386
|
+
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4387
4387
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4388
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4388
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4389
4389
|
: undefined,
|
|
4390
4390
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4391
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4391
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4392
4392
|
: undefined,
|
|
4393
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
4393
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4394
4394
|
Processors: output.Processors !== undefined && output.Processors !== null
|
|
4395
4395
|
? deserializeAws_restJson1ProcessorList(output.Processors, context)
|
|
4396
4396
|
: undefined,
|
|
@@ -4398,8 +4398,8 @@ const deserializeAws_restJson1ChannelFlow = (output, context) => {
|
|
|
4398
4398
|
};
|
|
4399
4399
|
const deserializeAws_restJson1ChannelFlowSummary = (output, context) => {
|
|
4400
4400
|
return {
|
|
4401
|
-
ChannelFlowArn: smithy_client_1.expectString(output.ChannelFlowArn),
|
|
4402
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
4401
|
+
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4402
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4403
4403
|
Processors: output.Processors !== undefined && output.Processors !== null
|
|
4404
4404
|
? deserializeAws_restJson1ProcessorList(output.Processors, context)
|
|
4405
4405
|
: undefined,
|
|
@@ -4418,20 +4418,20 @@ const deserializeAws_restJson1ChannelFlowSummaryList = (output, context) => {
|
|
|
4418
4418
|
};
|
|
4419
4419
|
const deserializeAws_restJson1ChannelMembership = (output, context) => {
|
|
4420
4420
|
return {
|
|
4421
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4421
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4422
4422
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4423
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4423
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4424
4424
|
: undefined,
|
|
4425
4425
|
InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
4426
4426
|
? deserializeAws_restJson1Identity(output.InvitedBy, context)
|
|
4427
4427
|
: undefined,
|
|
4428
4428
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4429
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4429
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4430
4430
|
: undefined,
|
|
4431
4431
|
Member: output.Member !== undefined && output.Member !== null
|
|
4432
4432
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
4433
4433
|
: undefined,
|
|
4434
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
4434
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4435
4435
|
};
|
|
4436
4436
|
};
|
|
4437
4437
|
const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
@@ -4482,64 +4482,64 @@ const deserializeAws_restJson1ChannelMembershipSummaryList = (output, context) =
|
|
|
4482
4482
|
};
|
|
4483
4483
|
const deserializeAws_restJson1ChannelMessage = (output, context) => {
|
|
4484
4484
|
return {
|
|
4485
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4486
|
-
Content: smithy_client_1.expectString(output.Content),
|
|
4485
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4486
|
+
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
4487
4487
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4488
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4488
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4489
4489
|
: undefined,
|
|
4490
4490
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4491
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastEditedTimestamp)))
|
|
4491
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEditedTimestamp)))
|
|
4492
4492
|
: undefined,
|
|
4493
4493
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4494
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4494
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4495
4495
|
: undefined,
|
|
4496
4496
|
MessageAttributes: output.MessageAttributes !== undefined && output.MessageAttributes !== null
|
|
4497
4497
|
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
4498
4498
|
: undefined,
|
|
4499
|
-
MessageId: smithy_client_1.expectString(output.MessageId),
|
|
4500
|
-
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4501
|
-
Persistence: smithy_client_1.expectString(output.Persistence),
|
|
4502
|
-
Redacted: smithy_client_1.expectBoolean(output.Redacted),
|
|
4499
|
+
MessageId: (0, smithy_client_1.expectString)(output.MessageId),
|
|
4500
|
+
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4501
|
+
Persistence: (0, smithy_client_1.expectString)(output.Persistence),
|
|
4502
|
+
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4503
4503
|
Sender: output.Sender !== undefined && output.Sender !== null
|
|
4504
4504
|
? deserializeAws_restJson1Identity(output.Sender, context)
|
|
4505
4505
|
: undefined,
|
|
4506
4506
|
Status: output.Status !== undefined && output.Status !== null
|
|
4507
4507
|
? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context)
|
|
4508
4508
|
: undefined,
|
|
4509
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
4509
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4510
4510
|
};
|
|
4511
4511
|
};
|
|
4512
4512
|
const deserializeAws_restJson1ChannelMessageStatusStructure = (output, context) => {
|
|
4513
4513
|
return {
|
|
4514
|
-
Detail: smithy_client_1.expectString(output.Detail),
|
|
4515
|
-
Value: smithy_client_1.expectString(output.Value),
|
|
4514
|
+
Detail: (0, smithy_client_1.expectString)(output.Detail),
|
|
4515
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4516
4516
|
};
|
|
4517
4517
|
};
|
|
4518
4518
|
const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
|
|
4519
4519
|
return {
|
|
4520
|
-
Content: smithy_client_1.expectString(output.Content),
|
|
4520
|
+
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
4521
4521
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4522
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4522
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4523
4523
|
: undefined,
|
|
4524
4524
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4525
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastEditedTimestamp)))
|
|
4525
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEditedTimestamp)))
|
|
4526
4526
|
: undefined,
|
|
4527
4527
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4528
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
4528
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4529
4529
|
: undefined,
|
|
4530
4530
|
MessageAttributes: output.MessageAttributes !== undefined && output.MessageAttributes !== null
|
|
4531
4531
|
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
4532
4532
|
: undefined,
|
|
4533
|
-
MessageId: smithy_client_1.expectString(output.MessageId),
|
|
4534
|
-
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4535
|
-
Redacted: smithy_client_1.expectBoolean(output.Redacted),
|
|
4533
|
+
MessageId: (0, smithy_client_1.expectString)(output.MessageId),
|
|
4534
|
+
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4535
|
+
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4536
4536
|
Sender: output.Sender !== undefined && output.Sender !== null
|
|
4537
4537
|
? deserializeAws_restJson1Identity(output.Sender, context)
|
|
4538
4538
|
: undefined,
|
|
4539
4539
|
Status: output.Status !== undefined && output.Status !== null
|
|
4540
4540
|
? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context)
|
|
4541
4541
|
: undefined,
|
|
4542
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
4542
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4543
4543
|
};
|
|
4544
4544
|
};
|
|
4545
4545
|
const deserializeAws_restJson1ChannelMessageSummaryList = (output, context) => {
|
|
@@ -4573,12 +4573,12 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = (ou
|
|
|
4573
4573
|
};
|
|
4574
4574
|
const deserializeAws_restJson1ChannelModerator = (output, context) => {
|
|
4575
4575
|
return {
|
|
4576
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4576
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4577
4577
|
CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
|
|
4578
4578
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4579
4579
|
: undefined,
|
|
4580
4580
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4581
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4581
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4582
4582
|
: undefined,
|
|
4583
4583
|
Moderator: output.Moderator !== undefined && output.Moderator !== null
|
|
4584
4584
|
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
@@ -4605,14 +4605,14 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = (output, context) =>
|
|
|
4605
4605
|
};
|
|
4606
4606
|
const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
4607
4607
|
return {
|
|
4608
|
-
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
4608
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4609
4609
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4610
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastMessageTimestamp)))
|
|
4610
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
|
|
4611
4611
|
: undefined,
|
|
4612
|
-
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
4613
|
-
Mode: smithy_client_1.expectString(output.Mode),
|
|
4614
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
4615
|
-
Privacy: smithy_client_1.expectString(output.Privacy),
|
|
4612
|
+
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4613
|
+
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
4614
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4615
|
+
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4616
4616
|
};
|
|
4617
4617
|
};
|
|
4618
4618
|
const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
|
|
@@ -4628,14 +4628,14 @@ const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
|
|
|
4628
4628
|
};
|
|
4629
4629
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
4630
4630
|
return {
|
|
4631
|
-
Arn: smithy_client_1.expectString(output.Arn),
|
|
4632
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
4631
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4632
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4633
4633
|
};
|
|
4634
4634
|
};
|
|
4635
4635
|
const deserializeAws_restJson1LambdaConfiguration = (output, context) => {
|
|
4636
4636
|
return {
|
|
4637
|
-
InvocationType: smithy_client_1.expectString(output.InvocationType),
|
|
4638
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
4637
|
+
InvocationType: (0, smithy_client_1.expectString)(output.InvocationType),
|
|
4638
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4639
4639
|
};
|
|
4640
4640
|
};
|
|
4641
4641
|
const deserializeAws_restJson1Members = (output, context) => {
|
|
@@ -4667,7 +4667,7 @@ const deserializeAws_restJson1MessageAttributeStringValues = (output, context) =
|
|
|
4667
4667
|
if (entry === null) {
|
|
4668
4668
|
return null;
|
|
4669
4669
|
}
|
|
4670
|
-
return smithy_client_1.expectString(entry);
|
|
4670
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
4671
4671
|
});
|
|
4672
4672
|
return retVal;
|
|
4673
4673
|
};
|
|
@@ -4680,7 +4680,7 @@ const deserializeAws_restJson1MessageAttributeValue = (output, context) => {
|
|
|
4680
4680
|
};
|
|
4681
4681
|
const deserializeAws_restJson1MessagingSessionEndpoint = (output, context) => {
|
|
4682
4682
|
return {
|
|
4683
|
-
Url: smithy_client_1.expectString(output.Url),
|
|
4683
|
+
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
4684
4684
|
};
|
|
4685
4685
|
};
|
|
4686
4686
|
const deserializeAws_restJson1Processor = (output, context) => {
|
|
@@ -4688,9 +4688,9 @@ const deserializeAws_restJson1Processor = (output, context) => {
|
|
|
4688
4688
|
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
4689
4689
|
? deserializeAws_restJson1ProcessorConfiguration(output.Configuration, context)
|
|
4690
4690
|
: undefined,
|
|
4691
|
-
ExecutionOrder: smithy_client_1.expectInt32(output.ExecutionOrder),
|
|
4692
|
-
FallbackAction: smithy_client_1.expectString(output.FallbackAction),
|
|
4693
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
4691
|
+
ExecutionOrder: (0, smithy_client_1.expectInt32)(output.ExecutionOrder),
|
|
4692
|
+
FallbackAction: (0, smithy_client_1.expectString)(output.FallbackAction),
|
|
4693
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4694
4694
|
};
|
|
4695
4695
|
};
|
|
4696
4696
|
const deserializeAws_restJson1ProcessorConfiguration = (output, context) => {
|
|
@@ -4713,14 +4713,14 @@ const deserializeAws_restJson1ProcessorList = (output, context) => {
|
|
|
4713
4713
|
};
|
|
4714
4714
|
const deserializeAws_restJson1PushNotificationPreferences = (output, context) => {
|
|
4715
4715
|
return {
|
|
4716
|
-
AllowNotifications: smithy_client_1.expectString(output.AllowNotifications),
|
|
4717
|
-
FilterRule: smithy_client_1.expectString(output.FilterRule),
|
|
4716
|
+
AllowNotifications: (0, smithy_client_1.expectString)(output.AllowNotifications),
|
|
4717
|
+
FilterRule: (0, smithy_client_1.expectString)(output.FilterRule),
|
|
4718
4718
|
};
|
|
4719
4719
|
};
|
|
4720
4720
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
4721
4721
|
return {
|
|
4722
|
-
Key: smithy_client_1.expectString(output.Key),
|
|
4723
|
-
Value: smithy_client_1.expectString(output.Value),
|
|
4722
|
+
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4723
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4724
4724
|
};
|
|
4725
4725
|
};
|
|
4726
4726
|
const deserializeAws_restJson1TagList = (output, context) => {
|