@aws-sdk/client-chime-sdk-meetings 3.118.1 → 3.127.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 +30 -0
- package/dist-cjs/protocols/Aws_restJson1.js +146 -148
- package/dist-es/protocols/Aws_restJson1.js +117 -121
- package/dist-types/ChimeSDKMeetings.d.ts +43 -0
- package/dist-types/commands/BatchUpdateAttendeeCapabilitiesExceptCommand.d.ts +22 -0
- package/dist-types/commands/UpdateAttendeeCapabilitiesCommand.d.ts +21 -0
- package/dist-types/models/models_0.d.ts +82 -18
- package/dist-types/ts3.4/models/models_0.d.ts +6 -0
- package/package.json +26 -26
|
@@ -27,8 +27,7 @@ const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context)
|
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
29
|
body = JSON.stringify({
|
|
30
|
-
...(input.Attendees
|
|
31
|
-
input.Attendees !== null && {
|
|
30
|
+
...(input.Attendees != null && {
|
|
32
31
|
Attendees: serializeAws_restJson1CreateAttendeeRequestItemList(input.Attendees, context),
|
|
33
32
|
}),
|
|
34
33
|
});
|
|
@@ -66,12 +65,10 @@ const serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async
|
|
|
66
65
|
};
|
|
67
66
|
let body;
|
|
68
67
|
body = JSON.stringify({
|
|
69
|
-
...(input.Capabilities
|
|
70
|
-
input.Capabilities !== null && {
|
|
68
|
+
...(input.Capabilities != null && {
|
|
71
69
|
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
72
70
|
}),
|
|
73
|
-
...(input.ExcludedAttendeeIds
|
|
74
|
-
input.ExcludedAttendeeIds !== null && {
|
|
71
|
+
...(input.ExcludedAttendeeIds != null && {
|
|
75
72
|
ExcludedAttendeeIds: serializeAws_restJson1AttendeeIdsList(input.ExcludedAttendeeIds, context),
|
|
76
73
|
}),
|
|
77
74
|
});
|
|
@@ -105,12 +102,10 @@ const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
|
|
|
105
102
|
}
|
|
106
103
|
let body;
|
|
107
104
|
body = JSON.stringify({
|
|
108
|
-
...(input.Capabilities
|
|
109
|
-
input.Capabilities !== null && {
|
|
105
|
+
...(input.Capabilities != null && {
|
|
110
106
|
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
111
107
|
}),
|
|
112
|
-
...(input.ExternalUserId
|
|
113
|
-
input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId }),
|
|
108
|
+
...(input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId }),
|
|
114
109
|
});
|
|
115
110
|
return new protocol_http_1.HttpRequest({
|
|
116
111
|
protocol,
|
|
@@ -133,20 +128,17 @@ const serializeAws_restJson1CreateMeetingCommand = async (input, context) => {
|
|
|
133
128
|
let body;
|
|
134
129
|
body = JSON.stringify({
|
|
135
130
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
136
|
-
...(input.ExternalMeetingId
|
|
137
|
-
|
|
138
|
-
...(input.
|
|
139
|
-
...(input.MeetingFeatures !== undefined &&
|
|
140
|
-
input.MeetingFeatures !== null && {
|
|
131
|
+
...(input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId }),
|
|
132
|
+
...(input.MediaRegion != null && { MediaRegion: input.MediaRegion }),
|
|
133
|
+
...(input.MeetingFeatures != null && {
|
|
141
134
|
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
142
135
|
}),
|
|
143
|
-
...(input.MeetingHostId
|
|
144
|
-
...(input.NotificationsConfiguration
|
|
145
|
-
input.NotificationsConfiguration !== null && {
|
|
136
|
+
...(input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId }),
|
|
137
|
+
...(input.NotificationsConfiguration != null && {
|
|
146
138
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
147
139
|
}),
|
|
148
|
-
...(input.PrimaryMeetingId
|
|
149
|
-
|
|
140
|
+
...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
141
|
+
...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
|
|
150
142
|
});
|
|
151
143
|
return new protocol_http_1.HttpRequest({
|
|
152
144
|
protocol,
|
|
@@ -171,25 +163,21 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
|
|
|
171
163
|
};
|
|
172
164
|
let body;
|
|
173
165
|
body = JSON.stringify({
|
|
174
|
-
...(input.Attendees
|
|
175
|
-
input.Attendees !== null && {
|
|
166
|
+
...(input.Attendees != null && {
|
|
176
167
|
Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
|
|
177
168
|
}),
|
|
178
169
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
179
|
-
...(input.ExternalMeetingId
|
|
180
|
-
|
|
181
|
-
...(input.
|
|
182
|
-
...(input.MeetingFeatures !== undefined &&
|
|
183
|
-
input.MeetingFeatures !== null && {
|
|
170
|
+
...(input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId }),
|
|
171
|
+
...(input.MediaRegion != null && { MediaRegion: input.MediaRegion }),
|
|
172
|
+
...(input.MeetingFeatures != null && {
|
|
184
173
|
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
185
174
|
}),
|
|
186
|
-
...(input.MeetingHostId
|
|
187
|
-
...(input.NotificationsConfiguration
|
|
188
|
-
input.NotificationsConfiguration !== null && {
|
|
175
|
+
...(input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId }),
|
|
176
|
+
...(input.NotificationsConfiguration != null && {
|
|
189
177
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
190
178
|
}),
|
|
191
|
-
...(input.PrimaryMeetingId
|
|
192
|
-
|
|
179
|
+
...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
180
|
+
...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
|
|
193
181
|
});
|
|
194
182
|
return new protocol_http_1.HttpRequest({
|
|
195
183
|
protocol,
|
|
@@ -381,8 +369,7 @@ const serializeAws_restJson1StartMeetingTranscriptionCommand = async (input, con
|
|
|
381
369
|
};
|
|
382
370
|
let body;
|
|
383
371
|
body = JSON.stringify({
|
|
384
|
-
...(input.TranscriptionConfiguration
|
|
385
|
-
input.TranscriptionConfiguration !== null && {
|
|
372
|
+
...(input.TranscriptionConfiguration != null && {
|
|
386
373
|
TranscriptionConfiguration: serializeAws_restJson1TranscriptionConfiguration(input.TranscriptionConfiguration, context),
|
|
387
374
|
}),
|
|
388
375
|
});
|
|
@@ -457,8 +444,7 @@ const serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (input, co
|
|
|
457
444
|
}
|
|
458
445
|
let body;
|
|
459
446
|
body = JSON.stringify({
|
|
460
|
-
...(input.Capabilities
|
|
461
|
-
input.Capabilities !== null && {
|
|
447
|
+
...(input.Capabilities != null && {
|
|
462
448
|
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
463
449
|
}),
|
|
464
450
|
});
|
|
@@ -498,8 +484,7 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
498
484
|
body: await parseBody(output.body, context),
|
|
499
485
|
};
|
|
500
486
|
let response;
|
|
501
|
-
|
|
502
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
488
|
switch (errorCode) {
|
|
504
489
|
case "BadRequestException":
|
|
505
490
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -530,10 +515,12 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
530
515
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
531
516
|
default:
|
|
532
517
|
const parsedBody = parsedOutput.body;
|
|
518
|
+
const $metadata = deserializeMetadata(output);
|
|
519
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
533
520
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
534
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
521
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
535
522
|
$fault: "client",
|
|
536
|
-
$metadata
|
|
523
|
+
$metadata,
|
|
537
524
|
});
|
|
538
525
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
539
526
|
}
|
|
@@ -555,8 +542,7 @@ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError
|
|
|
555
542
|
body: await parseBody(output.body, context),
|
|
556
543
|
};
|
|
557
544
|
let response;
|
|
558
|
-
|
|
559
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
546
|
switch (errorCode) {
|
|
561
547
|
case "BadRequestException":
|
|
562
548
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -578,10 +564,12 @@ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError
|
|
|
578
564
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
579
565
|
default:
|
|
580
566
|
const parsedBody = parsedOutput.body;
|
|
567
|
+
const $metadata = deserializeMetadata(output);
|
|
568
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
581
569
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
570
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
583
571
|
$fault: "client",
|
|
584
|
-
$metadata
|
|
572
|
+
$metadata,
|
|
585
573
|
});
|
|
586
574
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
587
575
|
}
|
|
@@ -607,8 +595,7 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
607
595
|
body: await parseBody(output.body, context),
|
|
608
596
|
};
|
|
609
597
|
let response;
|
|
610
|
-
|
|
611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
598
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
599
|
switch (errorCode) {
|
|
613
600
|
case "BadRequestException":
|
|
614
601
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -639,10 +626,12 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
639
626
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
640
627
|
default:
|
|
641
628
|
const parsedBody = parsedOutput.body;
|
|
629
|
+
const $metadata = deserializeMetadata(output);
|
|
630
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
642
631
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
644
633
|
$fault: "client",
|
|
645
|
-
$metadata
|
|
634
|
+
$metadata,
|
|
646
635
|
});
|
|
647
636
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
648
637
|
}
|
|
@@ -668,8 +657,7 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
668
657
|
body: await parseBody(output.body, context),
|
|
669
658
|
};
|
|
670
659
|
let response;
|
|
671
|
-
|
|
672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
660
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
661
|
switch (errorCode) {
|
|
674
662
|
case "BadRequestException":
|
|
675
663
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -694,10 +682,12 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
694
682
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
695
683
|
default:
|
|
696
684
|
const parsedBody = parsedOutput.body;
|
|
685
|
+
const $metadata = deserializeMetadata(output);
|
|
686
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
697
687
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
699
689
|
$fault: "client",
|
|
700
|
-
$metadata
|
|
690
|
+
$metadata,
|
|
701
691
|
});
|
|
702
692
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
703
693
|
}
|
|
@@ -731,8 +721,7 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
731
721
|
body: await parseBody(output.body, context),
|
|
732
722
|
};
|
|
733
723
|
let response;
|
|
734
|
-
|
|
735
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
725
|
switch (errorCode) {
|
|
737
726
|
case "BadRequestException":
|
|
738
727
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -757,10 +746,12 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
757
746
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
758
747
|
default:
|
|
759
748
|
const parsedBody = parsedOutput.body;
|
|
749
|
+
const $metadata = deserializeMetadata(output);
|
|
750
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
760
751
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
752
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
762
753
|
$fault: "client",
|
|
763
|
-
$metadata
|
|
754
|
+
$metadata,
|
|
764
755
|
});
|
|
765
756
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
766
757
|
}
|
|
@@ -782,8 +773,7 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
782
773
|
body: await parseBody(output.body, context),
|
|
783
774
|
};
|
|
784
775
|
let response;
|
|
785
|
-
|
|
786
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
777
|
switch (errorCode) {
|
|
788
778
|
case "BadRequestException":
|
|
789
779
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -808,10 +798,12 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
808
798
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
809
799
|
default:
|
|
810
800
|
const parsedBody = parsedOutput.body;
|
|
801
|
+
const $metadata = deserializeMetadata(output);
|
|
802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
811
803
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
812
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
813
805
|
$fault: "client",
|
|
814
|
-
$metadata
|
|
806
|
+
$metadata,
|
|
815
807
|
});
|
|
816
808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
817
809
|
}
|
|
@@ -833,8 +825,7 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
833
825
|
body: await parseBody(output.body, context),
|
|
834
826
|
};
|
|
835
827
|
let response;
|
|
836
|
-
|
|
837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
829
|
switch (errorCode) {
|
|
839
830
|
case "BadRequestException":
|
|
840
831
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -859,10 +850,12 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
859
850
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
860
851
|
default:
|
|
861
852
|
const parsedBody = parsedOutput.body;
|
|
853
|
+
const $metadata = deserializeMetadata(output);
|
|
854
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
862
855
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
864
857
|
$fault: "client",
|
|
865
|
-
$metadata
|
|
858
|
+
$metadata,
|
|
866
859
|
});
|
|
867
860
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
868
861
|
}
|
|
@@ -888,8 +881,7 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
888
881
|
body: await parseBody(output.body, context),
|
|
889
882
|
};
|
|
890
883
|
let response;
|
|
891
|
-
|
|
892
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
885
|
switch (errorCode) {
|
|
894
886
|
case "BadRequestException":
|
|
895
887
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -914,10 +906,12 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
914
906
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
915
907
|
default:
|
|
916
908
|
const parsedBody = parsedOutput.body;
|
|
909
|
+
const $metadata = deserializeMetadata(output);
|
|
910
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
917
911
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
918
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
912
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
919
913
|
$fault: "client",
|
|
920
|
-
$metadata
|
|
914
|
+
$metadata,
|
|
921
915
|
});
|
|
922
916
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
923
917
|
}
|
|
@@ -943,8 +937,7 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
943
937
|
body: await parseBody(output.body, context),
|
|
944
938
|
};
|
|
945
939
|
let response;
|
|
946
|
-
|
|
947
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
941
|
switch (errorCode) {
|
|
949
942
|
case "BadRequestException":
|
|
950
943
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -969,10 +962,12 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
969
962
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
970
963
|
default:
|
|
971
964
|
const parsedBody = parsedOutput.body;
|
|
965
|
+
const $metadata = deserializeMetadata(output);
|
|
966
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
972
967
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
968
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
974
969
|
$fault: "client",
|
|
975
|
-
$metadata
|
|
970
|
+
$metadata,
|
|
976
971
|
});
|
|
977
972
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
978
973
|
}
|
|
@@ -1002,8 +997,7 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
1002
997
|
body: await parseBody(output.body, context),
|
|
1003
998
|
};
|
|
1004
999
|
let response;
|
|
1005
|
-
|
|
1006
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
1001
|
switch (errorCode) {
|
|
1008
1002
|
case "BadRequestException":
|
|
1009
1003
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -1028,10 +1022,12 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
1028
1022
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1029
1023
|
default:
|
|
1030
1024
|
const parsedBody = parsedOutput.body;
|
|
1025
|
+
const $metadata = deserializeMetadata(output);
|
|
1026
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1031
1027
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
1032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1033
1029
|
$fault: "client",
|
|
1034
|
-
$metadata
|
|
1030
|
+
$metadata,
|
|
1035
1031
|
});
|
|
1036
1032
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1037
1033
|
}
|
|
@@ -1053,8 +1049,7 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
1053
1049
|
body: await parseBody(output.body, context),
|
|
1054
1050
|
};
|
|
1055
1051
|
let response;
|
|
1056
|
-
|
|
1057
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
1053
|
switch (errorCode) {
|
|
1059
1054
|
case "BadRequestException":
|
|
1060
1055
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -1085,10 +1080,12 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
1085
1080
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1086
1081
|
default:
|
|
1087
1082
|
const parsedBody = parsedOutput.body;
|
|
1083
|
+
const $metadata = deserializeMetadata(output);
|
|
1084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1088
1085
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
1089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1090
1087
|
$fault: "client",
|
|
1091
|
-
$metadata
|
|
1088
|
+
$metadata,
|
|
1092
1089
|
});
|
|
1093
1090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1094
1091
|
}
|
|
@@ -1110,8 +1107,7 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
1110
1107
|
body: await parseBody(output.body, context),
|
|
1111
1108
|
};
|
|
1112
1109
|
let response;
|
|
1113
|
-
|
|
1114
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
1111
|
switch (errorCode) {
|
|
1116
1112
|
case "BadRequestException":
|
|
1117
1113
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -1139,10 +1135,12 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
1139
1135
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1140
1136
|
default:
|
|
1141
1137
|
const parsedBody = parsedOutput.body;
|
|
1138
|
+
const $metadata = deserializeMetadata(output);
|
|
1139
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1142
1140
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
1143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1144
1142
|
$fault: "client",
|
|
1145
|
-
$metadata
|
|
1143
|
+
$metadata,
|
|
1146
1144
|
});
|
|
1147
1145
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1148
1146
|
}
|
|
@@ -1168,8 +1166,7 @@ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (ou
|
|
|
1168
1166
|
body: await parseBody(output.body, context),
|
|
1169
1167
|
};
|
|
1170
1168
|
let response;
|
|
1171
|
-
|
|
1172
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
1170
|
switch (errorCode) {
|
|
1174
1171
|
case "BadRequestException":
|
|
1175
1172
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
@@ -1191,10 +1188,12 @@ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (ou
|
|
|
1191
1188
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1192
1189
|
default:
|
|
1193
1190
|
const parsedBody = parsedOutput.body;
|
|
1191
|
+
const $metadata = deserializeMetadata(output);
|
|
1192
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1194
1193
|
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
1195
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1194
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1196
1195
|
$fault: "client",
|
|
1197
|
-
$metadata
|
|
1196
|
+
$metadata,
|
|
1198
1197
|
});
|
|
1199
1198
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1200
1199
|
}
|
|
@@ -1384,14 +1383,14 @@ const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (pars
|
|
|
1384
1383
|
};
|
|
1385
1384
|
const serializeAws_restJson1AttendeeCapabilities = (input, context) => {
|
|
1386
1385
|
return {
|
|
1387
|
-
...(input.Audio
|
|
1388
|
-
...(input.Content
|
|
1389
|
-
...(input.Video
|
|
1386
|
+
...(input.Audio != null && { Audio: input.Audio }),
|
|
1387
|
+
...(input.Content != null && { Content: input.Content }),
|
|
1388
|
+
...(input.Video != null && { Video: input.Video }),
|
|
1390
1389
|
};
|
|
1391
1390
|
};
|
|
1392
1391
|
const serializeAws_restJson1AttendeeIdItem = (input, context) => {
|
|
1393
1392
|
return {
|
|
1394
|
-
...(input.AttendeeId
|
|
1393
|
+
...(input.AttendeeId != null && { AttendeeId: input.AttendeeId }),
|
|
1395
1394
|
};
|
|
1396
1395
|
};
|
|
1397
1396
|
const serializeAws_restJson1AttendeeIdsList = (input, context) => {
|
|
@@ -1406,17 +1405,15 @@ const serializeAws_restJson1AttendeeIdsList = (input, context) => {
|
|
|
1406
1405
|
};
|
|
1407
1406
|
const serializeAws_restJson1AudioFeatures = (input, context) => {
|
|
1408
1407
|
return {
|
|
1409
|
-
...(input.EchoReduction
|
|
1408
|
+
...(input.EchoReduction != null && { EchoReduction: input.EchoReduction }),
|
|
1410
1409
|
};
|
|
1411
1410
|
};
|
|
1412
1411
|
const serializeAws_restJson1CreateAttendeeRequestItem = (input, context) => {
|
|
1413
1412
|
return {
|
|
1414
|
-
...(input.Capabilities
|
|
1415
|
-
input.Capabilities !== null && {
|
|
1413
|
+
...(input.Capabilities != null && {
|
|
1416
1414
|
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
1417
1415
|
}),
|
|
1418
|
-
...(input.ExternalUserId
|
|
1419
|
-
input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId }),
|
|
1416
|
+
...(input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId }),
|
|
1420
1417
|
};
|
|
1421
1418
|
};
|
|
1422
1419
|
const serializeAws_restJson1CreateAttendeeRequestItemList = (input, context) => {
|
|
@@ -1441,70 +1438,62 @@ const serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList = (input,
|
|
|
1441
1438
|
};
|
|
1442
1439
|
const serializeAws_restJson1EngineTranscribeMedicalSettings = (input, context) => {
|
|
1443
1440
|
return {
|
|
1444
|
-
...(input.ContentIdentificationType
|
|
1445
|
-
|
|
1446
|
-
...(input.
|
|
1447
|
-
...(input.
|
|
1448
|
-
...(input.
|
|
1449
|
-
...(input.
|
|
1450
|
-
...(input.VocabularyName !== undefined &&
|
|
1451
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
1441
|
+
...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
|
|
1442
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1443
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1444
|
+
...(input.Specialty != null && { Specialty: input.Specialty }),
|
|
1445
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1446
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
1452
1447
|
};
|
|
1453
1448
|
};
|
|
1454
1449
|
const serializeAws_restJson1EngineTranscribeSettings = (input, context) => {
|
|
1455
1450
|
return {
|
|
1456
|
-
...(input.ContentIdentificationType
|
|
1457
|
-
|
|
1458
|
-
...(input.
|
|
1459
|
-
input.ContentRedactionType !== null && { ContentRedactionType: input.ContentRedactionType }),
|
|
1460
|
-
...(input.EnablePartialResultsStabilization !== undefined &&
|
|
1461
|
-
input.EnablePartialResultsStabilization !== null && {
|
|
1451
|
+
...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
|
|
1452
|
+
...(input.ContentRedactionType != null && { ContentRedactionType: input.ContentRedactionType }),
|
|
1453
|
+
...(input.EnablePartialResultsStabilization != null && {
|
|
1462
1454
|
EnablePartialResultsStabilization: input.EnablePartialResultsStabilization,
|
|
1463
1455
|
}),
|
|
1464
|
-
...(input.IdentifyLanguage
|
|
1465
|
-
|
|
1466
|
-
...(input.
|
|
1467
|
-
...(input.
|
|
1468
|
-
|
|
1469
|
-
...(input.
|
|
1470
|
-
|
|
1471
|
-
...(input.
|
|
1472
|
-
|
|
1473
|
-
...(input.
|
|
1474
|
-
|
|
1475
|
-
...(input.PreferredLanguage !== undefined &&
|
|
1476
|
-
input.PreferredLanguage !== null && { PreferredLanguage: input.PreferredLanguage }),
|
|
1477
|
-
...(input.Region !== undefined && input.Region !== null && { Region: input.Region }),
|
|
1478
|
-
...(input.VocabularyFilterMethod !== undefined &&
|
|
1479
|
-
input.VocabularyFilterMethod !== null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
1480
|
-
...(input.VocabularyFilterName !== undefined &&
|
|
1481
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
1482
|
-
...(input.VocabularyName !== undefined &&
|
|
1483
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
1456
|
+
...(input.IdentifyLanguage != null && { IdentifyLanguage: input.IdentifyLanguage }),
|
|
1457
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1458
|
+
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
1459
|
+
...(input.LanguageOptions != null && { LanguageOptions: input.LanguageOptions }),
|
|
1460
|
+
...(input.PartialResultsStability != null && { PartialResultsStability: input.PartialResultsStability }),
|
|
1461
|
+
...(input.PiiEntityTypes != null && { PiiEntityTypes: input.PiiEntityTypes }),
|
|
1462
|
+
...(input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage }),
|
|
1463
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1464
|
+
...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
1465
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
1466
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
1484
1467
|
};
|
|
1485
1468
|
};
|
|
1486
1469
|
const serializeAws_restJson1MeetingFeaturesConfiguration = (input, context) => {
|
|
1487
1470
|
return {
|
|
1488
|
-
...(input.Audio
|
|
1489
|
-
input.Audio !== null && { Audio: serializeAws_restJson1AudioFeatures(input.Audio, context) }),
|
|
1471
|
+
...(input.Audio != null && { Audio: serializeAws_restJson1AudioFeatures(input.Audio, context) }),
|
|
1490
1472
|
};
|
|
1491
1473
|
};
|
|
1492
1474
|
const serializeAws_restJson1NotificationsConfiguration = (input, context) => {
|
|
1493
1475
|
return {
|
|
1494
|
-
...(input.LambdaFunctionArn
|
|
1495
|
-
|
|
1496
|
-
...(input.
|
|
1497
|
-
...(input.SqsQueueArn !== undefined && input.SqsQueueArn !== null && { SqsQueueArn: input.SqsQueueArn }),
|
|
1476
|
+
...(input.LambdaFunctionArn != null && { LambdaFunctionArn: input.LambdaFunctionArn }),
|
|
1477
|
+
...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
|
|
1478
|
+
...(input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }),
|
|
1498
1479
|
};
|
|
1499
1480
|
};
|
|
1481
|
+
const serializeAws_restJson1TenantIdList = (input, context) => {
|
|
1482
|
+
return input
|
|
1483
|
+
.filter((e) => e != null)
|
|
1484
|
+
.map((entry) => {
|
|
1485
|
+
if (entry === null) {
|
|
1486
|
+
return null;
|
|
1487
|
+
}
|
|
1488
|
+
return entry;
|
|
1489
|
+
});
|
|
1490
|
+
};
|
|
1500
1491
|
const serializeAws_restJson1TranscriptionConfiguration = (input, context) => {
|
|
1501
1492
|
return {
|
|
1502
|
-
...(input.EngineTranscribeMedicalSettings
|
|
1503
|
-
input.EngineTranscribeMedicalSettings !== null && {
|
|
1493
|
+
...(input.EngineTranscribeMedicalSettings != null && {
|
|
1504
1494
|
EngineTranscribeMedicalSettings: serializeAws_restJson1EngineTranscribeMedicalSettings(input.EngineTranscribeMedicalSettings, context),
|
|
1505
1495
|
}),
|
|
1506
|
-
...(input.EngineTranscribeSettings
|
|
1507
|
-
input.EngineTranscribeSettings !== null && {
|
|
1496
|
+
...(input.EngineTranscribeSettings != null && {
|
|
1508
1497
|
EngineTranscribeSettings: serializeAws_restJson1EngineTranscribeSettings(input.EngineTranscribeSettings, context),
|
|
1509
1498
|
}),
|
|
1510
1499
|
};
|
|
@@ -1512,7 +1501,7 @@ const serializeAws_restJson1TranscriptionConfiguration = (input, context) => {
|
|
|
1512
1501
|
const deserializeAws_restJson1Attendee = (output, context) => {
|
|
1513
1502
|
return {
|
|
1514
1503
|
AttendeeId: (0, smithy_client_1.expectString)(output.AttendeeId),
|
|
1515
|
-
Capabilities: output.Capabilities
|
|
1504
|
+
Capabilities: output.Capabilities != null
|
|
1516
1505
|
? deserializeAws_restJson1AttendeeCapabilities(output.Capabilities, context)
|
|
1517
1506
|
: undefined,
|
|
1518
1507
|
ExternalUserId: (0, smithy_client_1.expectString)(output.ExternalUserId),
|
|
@@ -1575,25 +1564,35 @@ const deserializeAws_restJson1MediaPlacement = (output, context) => {
|
|
|
1575
1564
|
const deserializeAws_restJson1Meeting = (output, context) => {
|
|
1576
1565
|
return {
|
|
1577
1566
|
ExternalMeetingId: (0, smithy_client_1.expectString)(output.ExternalMeetingId),
|
|
1578
|
-
MediaPlacement: output.MediaPlacement
|
|
1567
|
+
MediaPlacement: output.MediaPlacement != null
|
|
1579
1568
|
? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
|
|
1580
1569
|
: undefined,
|
|
1581
1570
|
MediaRegion: (0, smithy_client_1.expectString)(output.MediaRegion),
|
|
1582
|
-
MeetingFeatures: output.MeetingFeatures
|
|
1571
|
+
MeetingFeatures: output.MeetingFeatures != null
|
|
1583
1572
|
? deserializeAws_restJson1MeetingFeaturesConfiguration(output.MeetingFeatures, context)
|
|
1584
1573
|
: undefined,
|
|
1585
1574
|
MeetingHostId: (0, smithy_client_1.expectString)(output.MeetingHostId),
|
|
1586
1575
|
MeetingId: (0, smithy_client_1.expectString)(output.MeetingId),
|
|
1587
1576
|
PrimaryMeetingId: (0, smithy_client_1.expectString)(output.PrimaryMeetingId),
|
|
1577
|
+
TenantIds: output.TenantIds != null ? deserializeAws_restJson1TenantIdList(output.TenantIds, context) : undefined,
|
|
1588
1578
|
};
|
|
1589
1579
|
};
|
|
1590
1580
|
const deserializeAws_restJson1MeetingFeaturesConfiguration = (output, context) => {
|
|
1591
1581
|
return {
|
|
1592
|
-
Audio: output.Audio
|
|
1593
|
-
? deserializeAws_restJson1AudioFeatures(output.Audio, context)
|
|
1594
|
-
: undefined,
|
|
1582
|
+
Audio: output.Audio != null ? deserializeAws_restJson1AudioFeatures(output.Audio, context) : undefined,
|
|
1595
1583
|
};
|
|
1596
1584
|
};
|
|
1585
|
+
const deserializeAws_restJson1TenantIdList = (output, context) => {
|
|
1586
|
+
const retVal = (output || [])
|
|
1587
|
+
.filter((e) => e != null)
|
|
1588
|
+
.map((entry) => {
|
|
1589
|
+
if (entry === null) {
|
|
1590
|
+
return null;
|
|
1591
|
+
}
|
|
1592
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1593
|
+
});
|
|
1594
|
+
return retVal;
|
|
1595
|
+
};
|
|
1597
1596
|
const deserializeMetadata = (output) => {
|
|
1598
1597
|
var _a;
|
|
1599
1598
|
return ({
|
|
@@ -1643,5 +1642,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1643
1642
|
if (data["__type"] !== undefined) {
|
|
1644
1643
|
return sanitizeErrorCode(data["__type"]);
|
|
1645
1644
|
}
|
|
1646
|
-
return "";
|
|
1647
1645
|
};
|