@aws-sdk/client-chime 3.28.0 → 3.32.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 +35 -0
- package/Chime.ts +1 -1
- package/commands/StartMeetingTranscriptionCommand.ts +1 -1
- package/dist/cjs/commands/StartMeetingTranscriptionCommand.js +1 -1
- package/dist/cjs/models/models_0.js +1 -0
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/models/models_1.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +234 -207
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/commands/StartMeetingTranscriptionCommand.js +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +1 -1
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/models/models_1.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +992 -683
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/Chime.d.ts +1 -1
- package/dist/types/commands/StartMeetingTranscriptionCommand.d.ts +1 -1
- package/dist/types/models/models_0.d.ts +6 -0
- package/dist/types/models/models_1.d.ts +9 -3
- package/dist/types/ts3.4/Chime.d.ts +1 -1
- package/dist/types/ts3.4/commands/StartMeetingTranscriptionCommand.d.ts +1 -1
- package/dist/types/ts3.4/models/models_0.d.ts +6 -0
- package/dist/types/ts3.4/models/models_1.d.ts +9 -3
- package/models/models_0.ts +6 -0
- package/models/models_1.ts +9 -3
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +247 -208
|
@@ -1151,6 +1151,8 @@ const serializeAws_restJson1CreateSipMediaApplicationCallCommand = async (input,
|
|
|
1151
1151
|
body = JSON.stringify({
|
|
1152
1152
|
...(input.FromPhoneNumber !== undefined &&
|
|
1153
1153
|
input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber }),
|
|
1154
|
+
...(input.SipHeaders !== undefined &&
|
|
1155
|
+
input.SipHeaders !== null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) }),
|
|
1154
1156
|
...(input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber }),
|
|
1155
1157
|
});
|
|
1156
1158
|
return new protocol_http_1.HttpRequest({
|
|
@@ -6498,7 +6500,7 @@ const deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommand = a
|
|
|
6498
6500
|
$metadata: deserializeMetadata(output),
|
|
6499
6501
|
PhoneNumberErrors: undefined,
|
|
6500
6502
|
};
|
|
6501
|
-
const data = await parseBody(output.body, context);
|
|
6503
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6502
6504
|
if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
|
|
6503
6505
|
contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
|
|
6504
6506
|
}
|
|
@@ -6602,7 +6604,7 @@ const deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupComman
|
|
|
6602
6604
|
$metadata: deserializeMetadata(output),
|
|
6603
6605
|
PhoneNumberErrors: undefined,
|
|
6604
6606
|
};
|
|
6605
|
-
const data = await parseBody(output.body, context);
|
|
6607
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6606
6608
|
if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
|
|
6607
6609
|
contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
|
|
6608
6610
|
}
|
|
@@ -6899,7 +6901,7 @@ const deserializeAws_restJson1BatchCreateAttendeeCommand = async (output, contex
|
|
|
6899
6901
|
Attendees: undefined,
|
|
6900
6902
|
Errors: undefined,
|
|
6901
6903
|
};
|
|
6902
|
-
const data = await parseBody(output.body, context);
|
|
6904
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6903
6905
|
if (data.Attendees !== undefined && data.Attendees !== null) {
|
|
6904
6906
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
6905
6907
|
}
|
|
@@ -7007,7 +7009,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommand = async (outpu
|
|
|
7007
7009
|
BatchChannelMemberships: undefined,
|
|
7008
7010
|
Errors: undefined,
|
|
7009
7011
|
};
|
|
7010
|
-
const data = await parseBody(output.body, context);
|
|
7012
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7011
7013
|
if (data.BatchChannelMemberships !== undefined && data.BatchChannelMemberships !== null) {
|
|
7012
7014
|
contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
|
|
7013
7015
|
}
|
|
@@ -7098,7 +7100,7 @@ const deserializeAws_restJson1BatchCreateRoomMembershipCommand = async (output,
|
|
|
7098
7100
|
$metadata: deserializeMetadata(output),
|
|
7099
7101
|
Errors: undefined,
|
|
7100
7102
|
};
|
|
7101
|
-
const data = await parseBody(output.body, context);
|
|
7103
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7102
7104
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
7103
7105
|
contents.Errors = deserializeAws_restJson1MemberErrorList(data.Errors, context);
|
|
7104
7106
|
}
|
|
@@ -7194,7 +7196,7 @@ const deserializeAws_restJson1BatchDeletePhoneNumberCommand = async (output, con
|
|
|
7194
7196
|
$metadata: deserializeMetadata(output),
|
|
7195
7197
|
PhoneNumberErrors: undefined,
|
|
7196
7198
|
};
|
|
7197
|
-
const data = await parseBody(output.body, context);
|
|
7199
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7198
7200
|
if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
|
|
7199
7201
|
contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
|
|
7200
7202
|
}
|
|
@@ -7290,7 +7292,7 @@ const deserializeAws_restJson1BatchSuspendUserCommand = async (output, context)
|
|
|
7290
7292
|
$metadata: deserializeMetadata(output),
|
|
7291
7293
|
UserErrors: undefined,
|
|
7292
7294
|
};
|
|
7293
|
-
const data = await parseBody(output.body, context);
|
|
7295
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7294
7296
|
if (data.UserErrors !== undefined && data.UserErrors !== null) {
|
|
7295
7297
|
contents.UserErrors = deserializeAws_restJson1UserErrorList(data.UserErrors, context);
|
|
7296
7298
|
}
|
|
@@ -7386,7 +7388,7 @@ const deserializeAws_restJson1BatchUnsuspendUserCommand = async (output, context
|
|
|
7386
7388
|
$metadata: deserializeMetadata(output),
|
|
7387
7389
|
UserErrors: undefined,
|
|
7388
7390
|
};
|
|
7389
|
-
const data = await parseBody(output.body, context);
|
|
7391
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7390
7392
|
if (data.UserErrors !== undefined && data.UserErrors !== null) {
|
|
7391
7393
|
contents.UserErrors = deserializeAws_restJson1UserErrorList(data.UserErrors, context);
|
|
7392
7394
|
}
|
|
@@ -7482,7 +7484,7 @@ const deserializeAws_restJson1BatchUpdatePhoneNumberCommand = async (output, con
|
|
|
7482
7484
|
$metadata: deserializeMetadata(output),
|
|
7483
7485
|
PhoneNumberErrors: undefined,
|
|
7484
7486
|
};
|
|
7485
|
-
const data = await parseBody(output.body, context);
|
|
7487
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7486
7488
|
if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
|
|
7487
7489
|
contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
|
|
7488
7490
|
}
|
|
@@ -7578,7 +7580,7 @@ const deserializeAws_restJson1BatchUpdateUserCommand = async (output, context) =
|
|
|
7578
7580
|
$metadata: deserializeMetadata(output),
|
|
7579
7581
|
UserErrors: undefined,
|
|
7580
7582
|
};
|
|
7581
|
-
const data = await parseBody(output.body, context);
|
|
7583
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7582
7584
|
if (data.UserErrors !== undefined && data.UserErrors !== null) {
|
|
7583
7585
|
contents.UserErrors = deserializeAws_restJson1UserErrorList(data.UserErrors, context);
|
|
7584
7586
|
}
|
|
@@ -7674,7 +7676,7 @@ const deserializeAws_restJson1CreateAccountCommand = async (output, context) =>
|
|
|
7674
7676
|
$metadata: deserializeMetadata(output),
|
|
7675
7677
|
Account: undefined,
|
|
7676
7678
|
};
|
|
7677
|
-
const data = await parseBody(output.body, context);
|
|
7679
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7678
7680
|
if (data.Account !== undefined && data.Account !== null) {
|
|
7679
7681
|
contents.Account = deserializeAws_restJson1Account(data.Account, context);
|
|
7680
7682
|
}
|
|
@@ -7770,7 +7772,7 @@ const deserializeAws_restJson1CreateAppInstanceCommand = async (output, context)
|
|
|
7770
7772
|
$metadata: deserializeMetadata(output),
|
|
7771
7773
|
AppInstanceArn: undefined,
|
|
7772
7774
|
};
|
|
7773
|
-
const data = await parseBody(output.body, context);
|
|
7775
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7774
7776
|
if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
|
|
7775
7777
|
contents.AppInstanceArn = smithy_client_1.expectString(data.AppInstanceArn);
|
|
7776
7778
|
}
|
|
@@ -7875,7 +7877,7 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommand = async (output, con
|
|
|
7875
7877
|
AppInstanceAdmin: undefined,
|
|
7876
7878
|
AppInstanceArn: undefined,
|
|
7877
7879
|
};
|
|
7878
|
-
const data = await parseBody(output.body, context);
|
|
7880
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7879
7881
|
if (data.AppInstanceAdmin !== undefined && data.AppInstanceAdmin !== null) {
|
|
7880
7882
|
contents.AppInstanceAdmin = deserializeAws_restJson1Identity(data.AppInstanceAdmin, context);
|
|
7881
7883
|
}
|
|
@@ -7982,7 +7984,7 @@ const deserializeAws_restJson1CreateAppInstanceUserCommand = async (output, cont
|
|
|
7982
7984
|
$metadata: deserializeMetadata(output),
|
|
7983
7985
|
AppInstanceUserArn: undefined,
|
|
7984
7986
|
};
|
|
7985
|
-
const data = await parseBody(output.body, context);
|
|
7987
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7986
7988
|
if (data.AppInstanceUserArn !== undefined && data.AppInstanceUserArn !== null) {
|
|
7987
7989
|
contents.AppInstanceUserArn = smithy_client_1.expectString(data.AppInstanceUserArn);
|
|
7988
7990
|
}
|
|
@@ -8086,7 +8088,7 @@ const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) =>
|
|
|
8086
8088
|
$metadata: deserializeMetadata(output),
|
|
8087
8089
|
Attendee: undefined,
|
|
8088
8090
|
};
|
|
8089
|
-
const data = await parseBody(output.body, context);
|
|
8091
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8090
8092
|
if (data.Attendee !== undefined && data.Attendee !== null) {
|
|
8091
8093
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
8092
8094
|
}
|
|
@@ -8190,7 +8192,7 @@ const deserializeAws_restJson1CreateBotCommand = async (output, context) => {
|
|
|
8190
8192
|
$metadata: deserializeMetadata(output),
|
|
8191
8193
|
Bot: undefined,
|
|
8192
8194
|
};
|
|
8193
|
-
const data = await parseBody(output.body, context);
|
|
8195
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8194
8196
|
if (data.Bot !== undefined && data.Bot !== null) {
|
|
8195
8197
|
contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
|
|
8196
8198
|
}
|
|
@@ -8294,7 +8296,7 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
|
|
|
8294
8296
|
$metadata: deserializeMetadata(output),
|
|
8295
8297
|
ChannelArn: undefined,
|
|
8296
8298
|
};
|
|
8297
|
-
const data = await parseBody(output.body, context);
|
|
8299
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8298
8300
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
8299
8301
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
8300
8302
|
}
|
|
@@ -8399,7 +8401,7 @@ const deserializeAws_restJson1CreateChannelBanCommand = async (output, context)
|
|
|
8399
8401
|
ChannelArn: undefined,
|
|
8400
8402
|
Member: undefined,
|
|
8401
8403
|
};
|
|
8402
|
-
const data = await parseBody(output.body, context);
|
|
8404
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8403
8405
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
8404
8406
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
8405
8407
|
}
|
|
@@ -8507,7 +8509,7 @@ const deserializeAws_restJson1CreateChannelMembershipCommand = async (output, co
|
|
|
8507
8509
|
ChannelArn: undefined,
|
|
8508
8510
|
Member: undefined,
|
|
8509
8511
|
};
|
|
8510
|
-
const data = await parseBody(output.body, context);
|
|
8512
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8511
8513
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
8512
8514
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
8513
8515
|
}
|
|
@@ -8615,7 +8617,7 @@ const deserializeAws_restJson1CreateChannelModeratorCommand = async (output, con
|
|
|
8615
8617
|
ChannelArn: undefined,
|
|
8616
8618
|
ChannelModerator: undefined,
|
|
8617
8619
|
};
|
|
8618
|
-
const data = await parseBody(output.body, context);
|
|
8620
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8619
8621
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
8620
8622
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
8621
8623
|
}
|
|
@@ -8722,7 +8724,7 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommand = async (output,
|
|
|
8722
8724
|
$metadata: deserializeMetadata(output),
|
|
8723
8725
|
MediaCapturePipeline: undefined,
|
|
8724
8726
|
};
|
|
8725
|
-
const data = await parseBody(output.body, context);
|
|
8727
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8726
8728
|
if (data.MediaCapturePipeline !== undefined && data.MediaCapturePipeline !== null) {
|
|
8727
8729
|
contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
|
|
8728
8730
|
}
|
|
@@ -8818,7 +8820,7 @@ const deserializeAws_restJson1CreateMeetingCommand = async (output, context) =>
|
|
|
8818
8820
|
$metadata: deserializeMetadata(output),
|
|
8819
8821
|
Meeting: undefined,
|
|
8820
8822
|
};
|
|
8821
|
-
const data = await parseBody(output.body, context);
|
|
8823
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8822
8824
|
if (data.Meeting !== undefined && data.Meeting !== null) {
|
|
8823
8825
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
8824
8826
|
}
|
|
@@ -8914,7 +8916,7 @@ const deserializeAws_restJson1CreateMeetingDialOutCommand = async (output, conte
|
|
|
8914
8916
|
$metadata: deserializeMetadata(output),
|
|
8915
8917
|
TransactionId: undefined,
|
|
8916
8918
|
};
|
|
8917
|
-
const data = await parseBody(output.body, context);
|
|
8919
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8918
8920
|
if (data.TransactionId !== undefined && data.TransactionId !== null) {
|
|
8919
8921
|
contents.TransactionId = smithy_client_1.expectString(data.TransactionId);
|
|
8920
8922
|
}
|
|
@@ -9012,7 +9014,7 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommand = async (output,
|
|
|
9012
9014
|
Errors: undefined,
|
|
9013
9015
|
Meeting: undefined,
|
|
9014
9016
|
};
|
|
9015
|
-
const data = await parseBody(output.body, context);
|
|
9017
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9016
9018
|
if (data.Attendees !== undefined && data.Attendees !== null) {
|
|
9017
9019
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
9018
9020
|
}
|
|
@@ -9114,7 +9116,7 @@ const deserializeAws_restJson1CreatePhoneNumberOrderCommand = async (output, con
|
|
|
9114
9116
|
$metadata: deserializeMetadata(output),
|
|
9115
9117
|
PhoneNumberOrder: undefined,
|
|
9116
9118
|
};
|
|
9117
|
-
const data = await parseBody(output.body, context);
|
|
9119
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9118
9120
|
if (data.PhoneNumberOrder !== undefined && data.PhoneNumberOrder !== null) {
|
|
9119
9121
|
contents.PhoneNumberOrder = deserializeAws_restJson1PhoneNumberOrder(data.PhoneNumberOrder, context);
|
|
9120
9122
|
}
|
|
@@ -9218,7 +9220,7 @@ const deserializeAws_restJson1CreateProxySessionCommand = async (output, context
|
|
|
9218
9220
|
$metadata: deserializeMetadata(output),
|
|
9219
9221
|
ProxySession: undefined,
|
|
9220
9222
|
};
|
|
9221
|
-
const data = await parseBody(output.body, context);
|
|
9223
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9222
9224
|
if (data.ProxySession !== undefined && data.ProxySession !== null) {
|
|
9223
9225
|
contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
|
|
9224
9226
|
}
|
|
@@ -9314,7 +9316,7 @@ const deserializeAws_restJson1CreateRoomCommand = async (output, context) => {
|
|
|
9314
9316
|
$metadata: deserializeMetadata(output),
|
|
9315
9317
|
Room: undefined,
|
|
9316
9318
|
};
|
|
9317
|
-
const data = await parseBody(output.body, context);
|
|
9319
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9318
9320
|
if (data.Room !== undefined && data.Room !== null) {
|
|
9319
9321
|
contents.Room = deserializeAws_restJson1Room(data.Room, context);
|
|
9320
9322
|
}
|
|
@@ -9418,7 +9420,7 @@ const deserializeAws_restJson1CreateRoomMembershipCommand = async (output, conte
|
|
|
9418
9420
|
$metadata: deserializeMetadata(output),
|
|
9419
9421
|
RoomMembership: undefined,
|
|
9420
9422
|
};
|
|
9421
|
-
const data = await parseBody(output.body, context);
|
|
9423
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9422
9424
|
if (data.RoomMembership !== undefined && data.RoomMembership !== null) {
|
|
9423
9425
|
contents.RoomMembership = deserializeAws_restJson1RoomMembership(data.RoomMembership, context);
|
|
9424
9426
|
}
|
|
@@ -9530,7 +9532,7 @@ const deserializeAws_restJson1CreateSipMediaApplicationCommand = async (output,
|
|
|
9530
9532
|
$metadata: deserializeMetadata(output),
|
|
9531
9533
|
SipMediaApplication: undefined,
|
|
9532
9534
|
};
|
|
9533
|
-
const data = await parseBody(output.body, context);
|
|
9535
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9534
9536
|
if (data.SipMediaApplication !== undefined && data.SipMediaApplication !== null) {
|
|
9535
9537
|
contents.SipMediaApplication = deserializeAws_restJson1SipMediaApplication(data.SipMediaApplication, context);
|
|
9536
9538
|
}
|
|
@@ -9642,7 +9644,7 @@ const deserializeAws_restJson1CreateSipMediaApplicationCallCommand = async (outp
|
|
|
9642
9644
|
$metadata: deserializeMetadata(output),
|
|
9643
9645
|
SipMediaApplicationCall: undefined,
|
|
9644
9646
|
};
|
|
9645
|
-
const data = await parseBody(output.body, context);
|
|
9647
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9646
9648
|
if (data.SipMediaApplicationCall !== undefined && data.SipMediaApplicationCall !== null) {
|
|
9647
9649
|
contents.SipMediaApplicationCall = deserializeAws_restJson1SipMediaApplicationCall(data.SipMediaApplicationCall, context);
|
|
9648
9650
|
}
|
|
@@ -9658,6 +9660,14 @@ const deserializeAws_restJson1CreateSipMediaApplicationCallCommandError = async
|
|
|
9658
9660
|
let errorCode = "UnknownError";
|
|
9659
9661
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9660
9662
|
switch (errorCode) {
|
|
9663
|
+
case "AccessDeniedException":
|
|
9664
|
+
case "com.amazonaws.chime#AccessDeniedException":
|
|
9665
|
+
response = {
|
|
9666
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
9667
|
+
name: errorCode,
|
|
9668
|
+
$metadata: deserializeMetadata(output),
|
|
9669
|
+
};
|
|
9670
|
+
break;
|
|
9661
9671
|
case "BadRequestException":
|
|
9662
9672
|
case "com.amazonaws.chime#BadRequestException":
|
|
9663
9673
|
response = {
|
|
@@ -9738,7 +9748,7 @@ const deserializeAws_restJson1CreateSipRuleCommand = async (output, context) =>
|
|
|
9738
9748
|
$metadata: deserializeMetadata(output),
|
|
9739
9749
|
SipRule: undefined,
|
|
9740
9750
|
};
|
|
9741
|
-
const data = await parseBody(output.body, context);
|
|
9751
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9742
9752
|
if (data.SipRule !== undefined && data.SipRule !== null) {
|
|
9743
9753
|
contents.SipRule = deserializeAws_restJson1SipRule(data.SipRule, context);
|
|
9744
9754
|
}
|
|
@@ -9850,7 +9860,7 @@ const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
|
|
|
9850
9860
|
$metadata: deserializeMetadata(output),
|
|
9851
9861
|
User: undefined,
|
|
9852
9862
|
};
|
|
9853
|
-
const data = await parseBody(output.body, context);
|
|
9863
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9854
9864
|
if (data.User !== undefined && data.User !== null) {
|
|
9855
9865
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
9856
9866
|
}
|
|
@@ -9954,7 +9964,7 @@ const deserializeAws_restJson1CreateVoiceConnectorCommand = async (output, conte
|
|
|
9954
9964
|
$metadata: deserializeMetadata(output),
|
|
9955
9965
|
VoiceConnector: undefined,
|
|
9956
9966
|
};
|
|
9957
|
-
const data = await parseBody(output.body, context);
|
|
9967
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
9958
9968
|
if (data.VoiceConnector !== undefined && data.VoiceConnector !== null) {
|
|
9959
9969
|
contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
|
|
9960
9970
|
}
|
|
@@ -10058,7 +10068,7 @@ const deserializeAws_restJson1CreateVoiceConnectorGroupCommand = async (output,
|
|
|
10058
10068
|
$metadata: deserializeMetadata(output),
|
|
10059
10069
|
VoiceConnectorGroup: undefined,
|
|
10060
10070
|
};
|
|
10061
|
-
const data = await parseBody(output.body, context);
|
|
10071
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
10062
10072
|
if (data.VoiceConnectorGroup !== undefined && data.VoiceConnectorGroup !== null) {
|
|
10063
10073
|
contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
|
|
10064
10074
|
}
|
|
@@ -12722,7 +12732,7 @@ const deserializeAws_restJson1DescribeAppInstanceCommand = async (output, contex
|
|
|
12722
12732
|
$metadata: deserializeMetadata(output),
|
|
12723
12733
|
AppInstance: undefined,
|
|
12724
12734
|
};
|
|
12725
|
-
const data = await parseBody(output.body, context);
|
|
12735
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
12726
12736
|
if (data.AppInstance !== undefined && data.AppInstance !== null) {
|
|
12727
12737
|
contents.AppInstance = deserializeAws_restJson1AppInstance(data.AppInstance, context);
|
|
12728
12738
|
}
|
|
@@ -12810,7 +12820,7 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommand = async (output, c
|
|
|
12810
12820
|
$metadata: deserializeMetadata(output),
|
|
12811
12821
|
AppInstanceAdmin: undefined,
|
|
12812
12822
|
};
|
|
12813
|
-
const data = await parseBody(output.body, context);
|
|
12823
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
12814
12824
|
if (data.AppInstanceAdmin !== undefined && data.AppInstanceAdmin !== null) {
|
|
12815
12825
|
contents.AppInstanceAdmin = deserializeAws_restJson1AppInstanceAdmin(data.AppInstanceAdmin, context);
|
|
12816
12826
|
}
|
|
@@ -12898,7 +12908,7 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommand = async (output, co
|
|
|
12898
12908
|
$metadata: deserializeMetadata(output),
|
|
12899
12909
|
AppInstanceUser: undefined,
|
|
12900
12910
|
};
|
|
12901
|
-
const data = await parseBody(output.body, context);
|
|
12911
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
12902
12912
|
if (data.AppInstanceUser !== undefined && data.AppInstanceUser !== null) {
|
|
12903
12913
|
contents.AppInstanceUser = deserializeAws_restJson1AppInstanceUser(data.AppInstanceUser, context);
|
|
12904
12914
|
}
|
|
@@ -12986,7 +12996,7 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
|
|
|
12986
12996
|
$metadata: deserializeMetadata(output),
|
|
12987
12997
|
Channel: undefined,
|
|
12988
12998
|
};
|
|
12989
|
-
const data = await parseBody(output.body, context);
|
|
12999
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
12990
13000
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
12991
13001
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
12992
13002
|
}
|
|
@@ -13074,7 +13084,7 @@ const deserializeAws_restJson1DescribeChannelBanCommand = async (output, context
|
|
|
13074
13084
|
$metadata: deserializeMetadata(output),
|
|
13075
13085
|
ChannelBan: undefined,
|
|
13076
13086
|
};
|
|
13077
|
-
const data = await parseBody(output.body, context);
|
|
13087
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13078
13088
|
if (data.ChannelBan !== undefined && data.ChannelBan !== null) {
|
|
13079
13089
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
13080
13090
|
}
|
|
@@ -13170,7 +13180,7 @@ const deserializeAws_restJson1DescribeChannelMembershipCommand = async (output,
|
|
|
13170
13180
|
$metadata: deserializeMetadata(output),
|
|
13171
13181
|
ChannelMembership: undefined,
|
|
13172
13182
|
};
|
|
13173
|
-
const data = await parseBody(output.body, context);
|
|
13183
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13174
13184
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
13175
13185
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
13176
13186
|
}
|
|
@@ -13266,7 +13276,7 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
13266
13276
|
$metadata: deserializeMetadata(output),
|
|
13267
13277
|
ChannelMembership: undefined,
|
|
13268
13278
|
};
|
|
13269
|
-
const data = await parseBody(output.body, context);
|
|
13279
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13270
13280
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
13271
13281
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
13272
13282
|
}
|
|
@@ -13354,7 +13364,7 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand =
|
|
|
13354
13364
|
$metadata: deserializeMetadata(output),
|
|
13355
13365
|
Channel: undefined,
|
|
13356
13366
|
};
|
|
13357
|
-
const data = await parseBody(output.body, context);
|
|
13367
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13358
13368
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
13359
13369
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
13360
13370
|
}
|
|
@@ -13442,7 +13452,7 @@ const deserializeAws_restJson1DescribeChannelModeratorCommand = async (output, c
|
|
|
13442
13452
|
$metadata: deserializeMetadata(output),
|
|
13443
13453
|
ChannelModerator: undefined,
|
|
13444
13454
|
};
|
|
13445
|
-
const data = await parseBody(output.body, context);
|
|
13455
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13446
13456
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
13447
13457
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
13448
13458
|
}
|
|
@@ -13630,7 +13640,7 @@ const deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommand
|
|
|
13630
13640
|
$metadata: deserializeMetadata(output),
|
|
13631
13641
|
PhoneNumberErrors: undefined,
|
|
13632
13642
|
};
|
|
13633
|
-
const data = await parseBody(output.body, context);
|
|
13643
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13634
13644
|
if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
|
|
13635
13645
|
contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
|
|
13636
13646
|
}
|
|
@@ -13726,7 +13736,7 @@ const deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupCom
|
|
|
13726
13736
|
$metadata: deserializeMetadata(output),
|
|
13727
13737
|
PhoneNumberErrors: undefined,
|
|
13728
13738
|
};
|
|
13729
|
-
const data = await parseBody(output.body, context);
|
|
13739
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13730
13740
|
if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
|
|
13731
13741
|
contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
|
|
13732
13742
|
}
|
|
@@ -13914,7 +13924,7 @@ const deserializeAws_restJson1GetAccountCommand = async (output, context) => {
|
|
|
13914
13924
|
$metadata: deserializeMetadata(output),
|
|
13915
13925
|
Account: undefined,
|
|
13916
13926
|
};
|
|
13917
|
-
const data = await parseBody(output.body, context);
|
|
13927
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
13918
13928
|
if (data.Account !== undefined && data.Account !== null) {
|
|
13919
13929
|
contents.Account = deserializeAws_restJson1Account(data.Account, context);
|
|
13920
13930
|
}
|
|
@@ -14010,7 +14020,7 @@ const deserializeAws_restJson1GetAccountSettingsCommand = async (output, context
|
|
|
14010
14020
|
$metadata: deserializeMetadata(output),
|
|
14011
14021
|
AccountSettings: undefined,
|
|
14012
14022
|
};
|
|
14013
|
-
const data = await parseBody(output.body, context);
|
|
14023
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14014
14024
|
if (data.AccountSettings !== undefined && data.AccountSettings !== null) {
|
|
14015
14025
|
contents.AccountSettings = deserializeAws_restJson1AccountSettings(data.AccountSettings, context);
|
|
14016
14026
|
}
|
|
@@ -14107,12 +14117,12 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = async (ou
|
|
|
14107
14117
|
AppInstanceRetentionSettings: undefined,
|
|
14108
14118
|
InitiateDeletionTimestamp: undefined,
|
|
14109
14119
|
};
|
|
14110
|
-
const data = await parseBody(output.body, context);
|
|
14120
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14111
14121
|
if (data.AppInstanceRetentionSettings !== undefined && data.AppInstanceRetentionSettings !== null) {
|
|
14112
14122
|
contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
14113
14123
|
}
|
|
14114
14124
|
if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
|
|
14115
|
-
contents.InitiateDeletionTimestamp =
|
|
14125
|
+
contents.InitiateDeletionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.InitiateDeletionTimestamp)));
|
|
14116
14126
|
}
|
|
14117
14127
|
return Promise.resolve(contents);
|
|
14118
14128
|
};
|
|
@@ -14206,7 +14216,7 @@ const deserializeAws_restJson1GetAppInstanceStreamingConfigurationsCommand = asy
|
|
|
14206
14216
|
$metadata: deserializeMetadata(output),
|
|
14207
14217
|
AppInstanceStreamingConfigurations: undefined,
|
|
14208
14218
|
};
|
|
14209
|
-
const data = await parseBody(output.body, context);
|
|
14219
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14210
14220
|
if (data.AppInstanceStreamingConfigurations !== undefined && data.AppInstanceStreamingConfigurations !== null) {
|
|
14211
14221
|
contents.AppInstanceStreamingConfigurations = deserializeAws_restJson1AppInstanceStreamingConfigurationList(data.AppInstanceStreamingConfigurations, context);
|
|
14212
14222
|
}
|
|
@@ -14302,7 +14312,7 @@ const deserializeAws_restJson1GetAttendeeCommand = async (output, context) => {
|
|
|
14302
14312
|
$metadata: deserializeMetadata(output),
|
|
14303
14313
|
Attendee: undefined,
|
|
14304
14314
|
};
|
|
14305
|
-
const data = await parseBody(output.body, context);
|
|
14315
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14306
14316
|
if (data.Attendee !== undefined && data.Attendee !== null) {
|
|
14307
14317
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
14308
14318
|
}
|
|
@@ -14398,7 +14408,7 @@ const deserializeAws_restJson1GetBotCommand = async (output, context) => {
|
|
|
14398
14408
|
$metadata: deserializeMetadata(output),
|
|
14399
14409
|
Bot: undefined,
|
|
14400
14410
|
};
|
|
14401
|
-
const data = await parseBody(output.body, context);
|
|
14411
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14402
14412
|
if (data.Bot !== undefined && data.Bot !== null) {
|
|
14403
14413
|
contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
|
|
14404
14414
|
}
|
|
@@ -14494,7 +14504,7 @@ const deserializeAws_restJson1GetChannelMessageCommand = async (output, context)
|
|
|
14494
14504
|
$metadata: deserializeMetadata(output),
|
|
14495
14505
|
ChannelMessage: undefined,
|
|
14496
14506
|
};
|
|
14497
|
-
const data = await parseBody(output.body, context);
|
|
14507
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14498
14508
|
if (data.ChannelMessage !== undefined && data.ChannelMessage !== null) {
|
|
14499
14509
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
14500
14510
|
}
|
|
@@ -14590,7 +14600,7 @@ const deserializeAws_restJson1GetEventsConfigurationCommand = async (output, con
|
|
|
14590
14600
|
$metadata: deserializeMetadata(output),
|
|
14591
14601
|
EventsConfiguration: undefined,
|
|
14592
14602
|
};
|
|
14593
|
-
const data = await parseBody(output.body, context);
|
|
14603
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14594
14604
|
if (data.EventsConfiguration !== undefined && data.EventsConfiguration !== null) {
|
|
14595
14605
|
contents.EventsConfiguration = deserializeAws_restJson1EventsConfiguration(data.EventsConfiguration, context);
|
|
14596
14606
|
}
|
|
@@ -14687,7 +14697,7 @@ const deserializeAws_restJson1GetGlobalSettingsCommand = async (output, context)
|
|
|
14687
14697
|
BusinessCalling: undefined,
|
|
14688
14698
|
VoiceConnector: undefined,
|
|
14689
14699
|
};
|
|
14690
|
-
const data = await parseBody(output.body, context);
|
|
14700
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14691
14701
|
if (data.BusinessCalling !== undefined && data.BusinessCalling !== null) {
|
|
14692
14702
|
contents.BusinessCalling = deserializeAws_restJson1BusinessCallingSettings(data.BusinessCalling, context);
|
|
14693
14703
|
}
|
|
@@ -14778,7 +14788,7 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommand = async (output, co
|
|
|
14778
14788
|
$metadata: deserializeMetadata(output),
|
|
14779
14789
|
MediaCapturePipeline: undefined,
|
|
14780
14790
|
};
|
|
14781
|
-
const data = await parseBody(output.body, context);
|
|
14791
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14782
14792
|
if (data.MediaCapturePipeline !== undefined && data.MediaCapturePipeline !== null) {
|
|
14783
14793
|
contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
|
|
14784
14794
|
}
|
|
@@ -14874,7 +14884,7 @@ const deserializeAws_restJson1GetMeetingCommand = async (output, context) => {
|
|
|
14874
14884
|
$metadata: deserializeMetadata(output),
|
|
14875
14885
|
Meeting: undefined,
|
|
14876
14886
|
};
|
|
14877
|
-
const data = await parseBody(output.body, context);
|
|
14887
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14878
14888
|
if (data.Meeting !== undefined && data.Meeting !== null) {
|
|
14879
14889
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
14880
14890
|
}
|
|
@@ -14970,7 +14980,7 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommand = async (output
|
|
|
14970
14980
|
$metadata: deserializeMetadata(output),
|
|
14971
14981
|
Endpoint: undefined,
|
|
14972
14982
|
};
|
|
14973
|
-
const data = await parseBody(output.body, context);
|
|
14983
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
14974
14984
|
if (data.Endpoint !== undefined && data.Endpoint !== null) {
|
|
14975
14985
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
14976
14986
|
}
|
|
@@ -15050,7 +15060,7 @@ const deserializeAws_restJson1GetPhoneNumberCommand = async (output, context) =>
|
|
|
15050
15060
|
$metadata: deserializeMetadata(output),
|
|
15051
15061
|
PhoneNumber: undefined,
|
|
15052
15062
|
};
|
|
15053
|
-
const data = await parseBody(output.body, context);
|
|
15063
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15054
15064
|
if (data.PhoneNumber !== undefined && data.PhoneNumber !== null) {
|
|
15055
15065
|
contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
|
|
15056
15066
|
}
|
|
@@ -15146,7 +15156,7 @@ const deserializeAws_restJson1GetPhoneNumberOrderCommand = async (output, contex
|
|
|
15146
15156
|
$metadata: deserializeMetadata(output),
|
|
15147
15157
|
PhoneNumberOrder: undefined,
|
|
15148
15158
|
};
|
|
15149
|
-
const data = await parseBody(output.body, context);
|
|
15159
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15150
15160
|
if (data.PhoneNumberOrder !== undefined && data.PhoneNumberOrder !== null) {
|
|
15151
15161
|
contents.PhoneNumberOrder = deserializeAws_restJson1PhoneNumberOrder(data.PhoneNumberOrder, context);
|
|
15152
15162
|
}
|
|
@@ -15243,12 +15253,12 @@ const deserializeAws_restJson1GetPhoneNumberSettingsCommand = async (output, con
|
|
|
15243
15253
|
CallingName: undefined,
|
|
15244
15254
|
CallingNameUpdatedTimestamp: undefined,
|
|
15245
15255
|
};
|
|
15246
|
-
const data = await parseBody(output.body, context);
|
|
15256
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15247
15257
|
if (data.CallingName !== undefined && data.CallingName !== null) {
|
|
15248
15258
|
contents.CallingName = smithy_client_1.expectString(data.CallingName);
|
|
15249
15259
|
}
|
|
15250
15260
|
if (data.CallingNameUpdatedTimestamp !== undefined && data.CallingNameUpdatedTimestamp !== null) {
|
|
15251
|
-
contents.CallingNameUpdatedTimestamp =
|
|
15261
|
+
contents.CallingNameUpdatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CallingNameUpdatedTimestamp));
|
|
15252
15262
|
}
|
|
15253
15263
|
return Promise.resolve(contents);
|
|
15254
15264
|
};
|
|
@@ -15334,7 +15344,7 @@ const deserializeAws_restJson1GetProxySessionCommand = async (output, context) =
|
|
|
15334
15344
|
$metadata: deserializeMetadata(output),
|
|
15335
15345
|
ProxySession: undefined,
|
|
15336
15346
|
};
|
|
15337
|
-
const data = await parseBody(output.body, context);
|
|
15347
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15338
15348
|
if (data.ProxySession !== undefined && data.ProxySession !== null) {
|
|
15339
15349
|
contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
|
|
15340
15350
|
}
|
|
@@ -15431,9 +15441,9 @@ const deserializeAws_restJson1GetRetentionSettingsCommand = async (output, conte
|
|
|
15431
15441
|
InitiateDeletionTimestamp: undefined,
|
|
15432
15442
|
RetentionSettings: undefined,
|
|
15433
15443
|
};
|
|
15434
|
-
const data = await parseBody(output.body, context);
|
|
15444
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15435
15445
|
if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
|
|
15436
|
-
contents.InitiateDeletionTimestamp =
|
|
15446
|
+
contents.InitiateDeletionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.InitiateDeletionTimestamp));
|
|
15437
15447
|
}
|
|
15438
15448
|
if (data.RetentionSettings !== undefined && data.RetentionSettings !== null) {
|
|
15439
15449
|
contents.RetentionSettings = deserializeAws_restJson1RetentionSettings(data.RetentionSettings, context);
|
|
@@ -15530,7 +15540,7 @@ const deserializeAws_restJson1GetRoomCommand = async (output, context) => {
|
|
|
15530
15540
|
$metadata: deserializeMetadata(output),
|
|
15531
15541
|
Room: undefined,
|
|
15532
15542
|
};
|
|
15533
|
-
const data = await parseBody(output.body, context);
|
|
15543
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15534
15544
|
if (data.Room !== undefined && data.Room !== null) {
|
|
15535
15545
|
contents.Room = deserializeAws_restJson1Room(data.Room, context);
|
|
15536
15546
|
}
|
|
@@ -15626,7 +15636,7 @@ const deserializeAws_restJson1GetSipMediaApplicationCommand = async (output, con
|
|
|
15626
15636
|
$metadata: deserializeMetadata(output),
|
|
15627
15637
|
SipMediaApplication: undefined,
|
|
15628
15638
|
};
|
|
15629
|
-
const data = await parseBody(output.body, context);
|
|
15639
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15630
15640
|
if (data.SipMediaApplication !== undefined && data.SipMediaApplication !== null) {
|
|
15631
15641
|
contents.SipMediaApplication = deserializeAws_restJson1SipMediaApplication(data.SipMediaApplication, context);
|
|
15632
15642
|
}
|
|
@@ -15722,7 +15732,7 @@ const deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommand
|
|
|
15722
15732
|
$metadata: deserializeMetadata(output),
|
|
15723
15733
|
SipMediaApplicationLoggingConfiguration: undefined,
|
|
15724
15734
|
};
|
|
15725
|
-
const data = await parseBody(output.body, context);
|
|
15735
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15726
15736
|
if (data.SipMediaApplicationLoggingConfiguration !== undefined &&
|
|
15727
15737
|
data.SipMediaApplicationLoggingConfiguration !== null) {
|
|
15728
15738
|
contents.SipMediaApplicationLoggingConfiguration = deserializeAws_restJson1SipMediaApplicationLoggingConfiguration(data.SipMediaApplicationLoggingConfiguration, context);
|
|
@@ -15819,7 +15829,7 @@ const deserializeAws_restJson1GetSipRuleCommand = async (output, context) => {
|
|
|
15819
15829
|
$metadata: deserializeMetadata(output),
|
|
15820
15830
|
SipRule: undefined,
|
|
15821
15831
|
};
|
|
15822
|
-
const data = await parseBody(output.body, context);
|
|
15832
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15823
15833
|
if (data.SipRule !== undefined && data.SipRule !== null) {
|
|
15824
15834
|
contents.SipRule = deserializeAws_restJson1SipRule(data.SipRule, context);
|
|
15825
15835
|
}
|
|
@@ -15915,7 +15925,7 @@ const deserializeAws_restJson1GetUserCommand = async (output, context) => {
|
|
|
15915
15925
|
$metadata: deserializeMetadata(output),
|
|
15916
15926
|
User: undefined,
|
|
15917
15927
|
};
|
|
15918
|
-
const data = await parseBody(output.body, context);
|
|
15928
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15919
15929
|
if (data.User !== undefined && data.User !== null) {
|
|
15920
15930
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
15921
15931
|
}
|
|
@@ -16011,7 +16021,7 @@ const deserializeAws_restJson1GetUserSettingsCommand = async (output, context) =
|
|
|
16011
16021
|
$metadata: deserializeMetadata(output),
|
|
16012
16022
|
UserSettings: undefined,
|
|
16013
16023
|
};
|
|
16014
|
-
const data = await parseBody(output.body, context);
|
|
16024
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16015
16025
|
if (data.UserSettings !== undefined && data.UserSettings !== null) {
|
|
16016
16026
|
contents.UserSettings = deserializeAws_restJson1UserSettings(data.UserSettings, context);
|
|
16017
16027
|
}
|
|
@@ -16107,7 +16117,7 @@ const deserializeAws_restJson1GetVoiceConnectorCommand = async (output, context)
|
|
|
16107
16117
|
$metadata: deserializeMetadata(output),
|
|
16108
16118
|
VoiceConnector: undefined,
|
|
16109
16119
|
};
|
|
16110
|
-
const data = await parseBody(output.body, context);
|
|
16120
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16111
16121
|
if (data.VoiceConnector !== undefined && data.VoiceConnector !== null) {
|
|
16112
16122
|
contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
|
|
16113
16123
|
}
|
|
@@ -16203,7 +16213,7 @@ const deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
16203
16213
|
$metadata: deserializeMetadata(output),
|
|
16204
16214
|
EmergencyCallingConfiguration: undefined,
|
|
16205
16215
|
};
|
|
16206
|
-
const data = await parseBody(output.body, context);
|
|
16216
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16207
16217
|
if (data.EmergencyCallingConfiguration !== undefined && data.EmergencyCallingConfiguration !== null) {
|
|
16208
16218
|
contents.EmergencyCallingConfiguration = deserializeAws_restJson1EmergencyCallingConfiguration(data.EmergencyCallingConfiguration, context);
|
|
16209
16219
|
}
|
|
@@ -16299,7 +16309,7 @@ const deserializeAws_restJson1GetVoiceConnectorGroupCommand = async (output, con
|
|
|
16299
16309
|
$metadata: deserializeMetadata(output),
|
|
16300
16310
|
VoiceConnectorGroup: undefined,
|
|
16301
16311
|
};
|
|
16302
|
-
const data = await parseBody(output.body, context);
|
|
16312
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16303
16313
|
if (data.VoiceConnectorGroup !== undefined && data.VoiceConnectorGroup !== null) {
|
|
16304
16314
|
contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
|
|
16305
16315
|
}
|
|
@@ -16395,7 +16405,7 @@ const deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand = asy
|
|
|
16395
16405
|
$metadata: deserializeMetadata(output),
|
|
16396
16406
|
LoggingConfiguration: undefined,
|
|
16397
16407
|
};
|
|
16398
|
-
const data = await parseBody(output.body, context);
|
|
16408
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16399
16409
|
if (data.LoggingConfiguration !== undefined && data.LoggingConfiguration !== null) {
|
|
16400
16410
|
contents.LoggingConfiguration = deserializeAws_restJson1LoggingConfiguration(data.LoggingConfiguration, context);
|
|
16401
16411
|
}
|
|
@@ -16491,7 +16501,7 @@ const deserializeAws_restJson1GetVoiceConnectorOriginationCommand = async (outpu
|
|
|
16491
16501
|
$metadata: deserializeMetadata(output),
|
|
16492
16502
|
Origination: undefined,
|
|
16493
16503
|
};
|
|
16494
|
-
const data = await parseBody(output.body, context);
|
|
16504
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16495
16505
|
if (data.Origination !== undefined && data.Origination !== null) {
|
|
16496
16506
|
contents.Origination = deserializeAws_restJson1Origination(data.Origination, context);
|
|
16497
16507
|
}
|
|
@@ -16587,7 +16597,7 @@ const deserializeAws_restJson1GetVoiceConnectorProxyCommand = async (output, con
|
|
|
16587
16597
|
$metadata: deserializeMetadata(output),
|
|
16588
16598
|
Proxy: undefined,
|
|
16589
16599
|
};
|
|
16590
|
-
const data = await parseBody(output.body, context);
|
|
16600
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16591
16601
|
if (data.Proxy !== undefined && data.Proxy !== null) {
|
|
16592
16602
|
contents.Proxy = deserializeAws_restJson1Proxy(data.Proxy, context);
|
|
16593
16603
|
}
|
|
@@ -16683,7 +16693,7 @@ const deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommand = a
|
|
|
16683
16693
|
$metadata: deserializeMetadata(output),
|
|
16684
16694
|
StreamingConfiguration: undefined,
|
|
16685
16695
|
};
|
|
16686
|
-
const data = await parseBody(output.body, context);
|
|
16696
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16687
16697
|
if (data.StreamingConfiguration !== undefined && data.StreamingConfiguration !== null) {
|
|
16688
16698
|
contents.StreamingConfiguration = deserializeAws_restJson1StreamingConfiguration(data.StreamingConfiguration, context);
|
|
16689
16699
|
}
|
|
@@ -16779,7 +16789,7 @@ const deserializeAws_restJson1GetVoiceConnectorTerminationCommand = async (outpu
|
|
|
16779
16789
|
$metadata: deserializeMetadata(output),
|
|
16780
16790
|
Termination: undefined,
|
|
16781
16791
|
};
|
|
16782
|
-
const data = await parseBody(output.body, context);
|
|
16792
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16783
16793
|
if (data.Termination !== undefined && data.Termination !== null) {
|
|
16784
16794
|
contents.Termination = deserializeAws_restJson1Termination(data.Termination, context);
|
|
16785
16795
|
}
|
|
@@ -16875,7 +16885,7 @@ const deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommand = async
|
|
|
16875
16885
|
$metadata: deserializeMetadata(output),
|
|
16876
16886
|
TerminationHealth: undefined,
|
|
16877
16887
|
};
|
|
16878
|
-
const data = await parseBody(output.body, context);
|
|
16888
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16879
16889
|
if (data.TerminationHealth !== undefined && data.TerminationHealth !== null) {
|
|
16880
16890
|
contents.TerminationHealth = deserializeAws_restJson1TerminationHealth(data.TerminationHealth, context);
|
|
16881
16891
|
}
|
|
@@ -16971,7 +16981,7 @@ const deserializeAws_restJson1InviteUsersCommand = async (output, context) => {
|
|
|
16971
16981
|
$metadata: deserializeMetadata(output),
|
|
16972
16982
|
Invites: undefined,
|
|
16973
16983
|
};
|
|
16974
|
-
const data = await parseBody(output.body, context);
|
|
16984
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
16975
16985
|
if (data.Invites !== undefined && data.Invites !== null) {
|
|
16976
16986
|
contents.Invites = deserializeAws_restJson1InviteList(data.Invites, context);
|
|
16977
16987
|
}
|
|
@@ -17068,7 +17078,7 @@ const deserializeAws_restJson1ListAccountsCommand = async (output, context) => {
|
|
|
17068
17078
|
Accounts: undefined,
|
|
17069
17079
|
NextToken: undefined,
|
|
17070
17080
|
};
|
|
17071
|
-
const data = await parseBody(output.body, context);
|
|
17081
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17072
17082
|
if (data.Accounts !== undefined && data.Accounts !== null) {
|
|
17073
17083
|
contents.Accounts = deserializeAws_restJson1AccountList(data.Accounts, context);
|
|
17074
17084
|
}
|
|
@@ -17169,7 +17179,7 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommand = async (output, cont
|
|
|
17169
17179
|
AppInstanceArn: undefined,
|
|
17170
17180
|
NextToken: undefined,
|
|
17171
17181
|
};
|
|
17172
|
-
const data = await parseBody(output.body, context);
|
|
17182
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17173
17183
|
if (data.AppInstanceAdmins !== undefined && data.AppInstanceAdmins !== null) {
|
|
17174
17184
|
contents.AppInstanceAdmins = deserializeAws_restJson1AppInstanceAdminList(data.AppInstanceAdmins, context);
|
|
17175
17185
|
}
|
|
@@ -17264,7 +17274,7 @@ const deserializeAws_restJson1ListAppInstancesCommand = async (output, context)
|
|
|
17264
17274
|
AppInstances: undefined,
|
|
17265
17275
|
NextToken: undefined,
|
|
17266
17276
|
};
|
|
17267
|
-
const data = await parseBody(output.body, context);
|
|
17277
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17268
17278
|
if (data.AppInstances !== undefined && data.AppInstances !== null) {
|
|
17269
17279
|
contents.AppInstances = deserializeAws_restJson1AppInstanceList(data.AppInstances, context);
|
|
17270
17280
|
}
|
|
@@ -17357,7 +17367,7 @@ const deserializeAws_restJson1ListAppInstanceUsersCommand = async (output, conte
|
|
|
17357
17367
|
AppInstanceUsers: undefined,
|
|
17358
17368
|
NextToken: undefined,
|
|
17359
17369
|
};
|
|
17360
|
-
const data = await parseBody(output.body, context);
|
|
17370
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17361
17371
|
if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
|
|
17362
17372
|
contents.AppInstanceArn = smithy_client_1.expectString(data.AppInstanceArn);
|
|
17363
17373
|
}
|
|
@@ -17452,7 +17462,7 @@ const deserializeAws_restJson1ListAttendeesCommand = async (output, context) =>
|
|
|
17452
17462
|
Attendees: undefined,
|
|
17453
17463
|
NextToken: undefined,
|
|
17454
17464
|
};
|
|
17455
|
-
const data = await parseBody(output.body, context);
|
|
17465
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17456
17466
|
if (data.Attendees !== undefined && data.Attendees !== null) {
|
|
17457
17467
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
17458
17468
|
}
|
|
@@ -17551,7 +17561,7 @@ const deserializeAws_restJson1ListAttendeeTagsCommand = async (output, context)
|
|
|
17551
17561
|
$metadata: deserializeMetadata(output),
|
|
17552
17562
|
Tags: undefined,
|
|
17553
17563
|
};
|
|
17554
|
-
const data = await parseBody(output.body, context);
|
|
17564
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17555
17565
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
17556
17566
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
17557
17567
|
}
|
|
@@ -17648,7 +17658,7 @@ const deserializeAws_restJson1ListBotsCommand = async (output, context) => {
|
|
|
17648
17658
|
Bots: undefined,
|
|
17649
17659
|
NextToken: undefined,
|
|
17650
17660
|
};
|
|
17651
|
-
const data = await parseBody(output.body, context);
|
|
17661
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17652
17662
|
if (data.Bots !== undefined && data.Bots !== null) {
|
|
17653
17663
|
contents.Bots = deserializeAws_restJson1BotList(data.Bots, context);
|
|
17654
17664
|
}
|
|
@@ -17749,7 +17759,7 @@ const deserializeAws_restJson1ListChannelBansCommand = async (output, context) =
|
|
|
17749
17759
|
ChannelBans: undefined,
|
|
17750
17760
|
NextToken: undefined,
|
|
17751
17761
|
};
|
|
17752
|
-
const data = await parseBody(output.body, context);
|
|
17762
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17753
17763
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
17754
17764
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
17755
17765
|
}
|
|
@@ -17845,7 +17855,7 @@ const deserializeAws_restJson1ListChannelMembershipsCommand = async (output, con
|
|
|
17845
17855
|
ChannelMemberships: undefined,
|
|
17846
17856
|
NextToken: undefined,
|
|
17847
17857
|
};
|
|
17848
|
-
const data = await parseBody(output.body, context);
|
|
17858
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17849
17859
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
17850
17860
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
17851
17861
|
}
|
|
@@ -17940,7 +17950,7 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand =
|
|
|
17940
17950
|
ChannelMemberships: undefined,
|
|
17941
17951
|
NextToken: undefined,
|
|
17942
17952
|
};
|
|
17943
|
-
const data = await parseBody(output.body, context);
|
|
17953
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
17944
17954
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
17945
17955
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
|
|
17946
17956
|
}
|
|
@@ -18033,7 +18043,7 @@ const deserializeAws_restJson1ListChannelMessagesCommand = async (output, contex
|
|
|
18033
18043
|
ChannelMessages: undefined,
|
|
18034
18044
|
NextToken: undefined,
|
|
18035
18045
|
};
|
|
18036
|
-
const data = await parseBody(output.body, context);
|
|
18046
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18037
18047
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
18038
18048
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
18039
18049
|
}
|
|
@@ -18129,7 +18139,7 @@ const deserializeAws_restJson1ListChannelModeratorsCommand = async (output, cont
|
|
|
18129
18139
|
ChannelModerators: undefined,
|
|
18130
18140
|
NextToken: undefined,
|
|
18131
18141
|
};
|
|
18132
|
-
const data = await parseBody(output.body, context);
|
|
18142
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18133
18143
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
18134
18144
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
18135
18145
|
}
|
|
@@ -18224,7 +18234,7 @@ const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
|
|
|
18224
18234
|
Channels: undefined,
|
|
18225
18235
|
NextToken: undefined,
|
|
18226
18236
|
};
|
|
18227
|
-
const data = await parseBody(output.body, context);
|
|
18237
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18228
18238
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
18229
18239
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
18230
18240
|
}
|
|
@@ -18316,7 +18326,7 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = as
|
|
|
18316
18326
|
Channels: undefined,
|
|
18317
18327
|
NextToken: undefined,
|
|
18318
18328
|
};
|
|
18319
|
-
const data = await parseBody(output.body, context);
|
|
18329
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18320
18330
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
18321
18331
|
contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
18322
18332
|
}
|
|
@@ -18408,7 +18418,7 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommand = async (output,
|
|
|
18408
18418
|
MediaCapturePipelines: undefined,
|
|
18409
18419
|
NextToken: undefined,
|
|
18410
18420
|
};
|
|
18411
|
-
const data = await parseBody(output.body, context);
|
|
18421
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18412
18422
|
if (data.MediaCapturePipelines !== undefined && data.MediaCapturePipelines !== null) {
|
|
18413
18423
|
contents.MediaCapturePipelines = deserializeAws_restJson1MediaCapturePipelineList(data.MediaCapturePipelines, context);
|
|
18414
18424
|
}
|
|
@@ -18500,7 +18510,7 @@ const deserializeAws_restJson1ListMeetingsCommand = async (output, context) => {
|
|
|
18500
18510
|
Meetings: undefined,
|
|
18501
18511
|
NextToken: undefined,
|
|
18502
18512
|
};
|
|
18503
|
-
const data = await parseBody(output.body, context);
|
|
18513
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18504
18514
|
if (data.Meetings !== undefined && data.Meetings !== null) {
|
|
18505
18515
|
contents.Meetings = deserializeAws_restJson1MeetingList(data.Meetings, context);
|
|
18506
18516
|
}
|
|
@@ -18591,7 +18601,7 @@ const deserializeAws_restJson1ListMeetingTagsCommand = async (output, context) =
|
|
|
18591
18601
|
$metadata: deserializeMetadata(output),
|
|
18592
18602
|
Tags: undefined,
|
|
18593
18603
|
};
|
|
18594
|
-
const data = await parseBody(output.body, context);
|
|
18604
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18595
18605
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
18596
18606
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
18597
18607
|
}
|
|
@@ -18688,7 +18698,7 @@ const deserializeAws_restJson1ListPhoneNumberOrdersCommand = async (output, cont
|
|
|
18688
18698
|
NextToken: undefined,
|
|
18689
18699
|
PhoneNumberOrders: undefined,
|
|
18690
18700
|
};
|
|
18691
|
-
const data = await parseBody(output.body, context);
|
|
18701
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18692
18702
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
18693
18703
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
18694
18704
|
}
|
|
@@ -18780,7 +18790,7 @@ const deserializeAws_restJson1ListPhoneNumbersCommand = async (output, context)
|
|
|
18780
18790
|
NextToken: undefined,
|
|
18781
18791
|
PhoneNumbers: undefined,
|
|
18782
18792
|
};
|
|
18783
|
-
const data = await parseBody(output.body, context);
|
|
18793
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18784
18794
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
18785
18795
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
18786
18796
|
}
|
|
@@ -18880,7 +18890,7 @@ const deserializeAws_restJson1ListProxySessionsCommand = async (output, context)
|
|
|
18880
18890
|
NextToken: undefined,
|
|
18881
18891
|
ProxySessions: undefined,
|
|
18882
18892
|
};
|
|
18883
|
-
const data = await parseBody(output.body, context);
|
|
18893
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18884
18894
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
18885
18895
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
18886
18896
|
}
|
|
@@ -18980,7 +18990,7 @@ const deserializeAws_restJson1ListRoomMembershipsCommand = async (output, contex
|
|
|
18980
18990
|
NextToken: undefined,
|
|
18981
18991
|
RoomMemberships: undefined,
|
|
18982
18992
|
};
|
|
18983
|
-
const data = await parseBody(output.body, context);
|
|
18993
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
18984
18994
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
18985
18995
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
18986
18996
|
}
|
|
@@ -19080,7 +19090,7 @@ const deserializeAws_restJson1ListRoomsCommand = async (output, context) => {
|
|
|
19080
19090
|
NextToken: undefined,
|
|
19081
19091
|
Rooms: undefined,
|
|
19082
19092
|
};
|
|
19083
|
-
const data = await parseBody(output.body, context);
|
|
19093
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19084
19094
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
19085
19095
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
19086
19096
|
}
|
|
@@ -19180,7 +19190,7 @@ const deserializeAws_restJson1ListSipMediaApplicationsCommand = async (output, c
|
|
|
19180
19190
|
NextToken: undefined,
|
|
19181
19191
|
SipMediaApplications: undefined,
|
|
19182
19192
|
};
|
|
19183
|
-
const data = await parseBody(output.body, context);
|
|
19193
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19184
19194
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
19185
19195
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
19186
19196
|
}
|
|
@@ -19272,7 +19282,7 @@ const deserializeAws_restJson1ListSipRulesCommand = async (output, context) => {
|
|
|
19272
19282
|
NextToken: undefined,
|
|
19273
19283
|
SipRules: undefined,
|
|
19274
19284
|
};
|
|
19275
|
-
const data = await parseBody(output.body, context);
|
|
19285
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19276
19286
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
19277
19287
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
19278
19288
|
}
|
|
@@ -19363,7 +19373,7 @@ const deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = async (
|
|
|
19363
19373
|
$metadata: deserializeMetadata(output),
|
|
19364
19374
|
PhoneNumberCountries: undefined,
|
|
19365
19375
|
};
|
|
19366
|
-
const data = await parseBody(output.body, context);
|
|
19376
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19367
19377
|
if (data.PhoneNumberCountries !== undefined && data.PhoneNumberCountries !== null) {
|
|
19368
19378
|
contents.PhoneNumberCountries = deserializeAws_restJson1PhoneNumberCountriesList(data.PhoneNumberCountries, context);
|
|
19369
19379
|
}
|
|
@@ -19459,7 +19469,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
19459
19469
|
$metadata: deserializeMetadata(output),
|
|
19460
19470
|
Tags: undefined,
|
|
19461
19471
|
};
|
|
19462
|
-
const data = await parseBody(output.body, context);
|
|
19472
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19463
19473
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
19464
19474
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
19465
19475
|
}
|
|
@@ -19548,7 +19558,7 @@ const deserializeAws_restJson1ListUsersCommand = async (output, context) => {
|
|
|
19548
19558
|
NextToken: undefined,
|
|
19549
19559
|
Users: undefined,
|
|
19550
19560
|
};
|
|
19551
|
-
const data = await parseBody(output.body, context);
|
|
19561
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19552
19562
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
19553
19563
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
19554
19564
|
}
|
|
@@ -19648,7 +19658,7 @@ const deserializeAws_restJson1ListVoiceConnectorGroupsCommand = async (output, c
|
|
|
19648
19658
|
NextToken: undefined,
|
|
19649
19659
|
VoiceConnectorGroups: undefined,
|
|
19650
19660
|
};
|
|
19651
|
-
const data = await parseBody(output.body, context);
|
|
19661
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19652
19662
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
19653
19663
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
19654
19664
|
}
|
|
@@ -19740,7 +19750,7 @@ const deserializeAws_restJson1ListVoiceConnectorsCommand = async (output, contex
|
|
|
19740
19750
|
NextToken: undefined,
|
|
19741
19751
|
VoiceConnectors: undefined,
|
|
19742
19752
|
};
|
|
19743
|
-
const data = await parseBody(output.body, context);
|
|
19753
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19744
19754
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
19745
19755
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
19746
19756
|
}
|
|
@@ -19831,7 +19841,7 @@ const deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand =
|
|
|
19831
19841
|
$metadata: deserializeMetadata(output),
|
|
19832
19842
|
Usernames: undefined,
|
|
19833
19843
|
};
|
|
19834
|
-
const data = await parseBody(output.body, context);
|
|
19844
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
19835
19845
|
if (data.Usernames !== undefined && data.Usernames !== null) {
|
|
19836
19846
|
contents.Usernames = deserializeAws_restJson1SensitiveStringList(data.Usernames, context);
|
|
19837
19847
|
}
|
|
@@ -20020,12 +20030,12 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = async (ou
|
|
|
20020
20030
|
AppInstanceRetentionSettings: undefined,
|
|
20021
20031
|
InitiateDeletionTimestamp: undefined,
|
|
20022
20032
|
};
|
|
20023
|
-
const data = await parseBody(output.body, context);
|
|
20033
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20024
20034
|
if (data.AppInstanceRetentionSettings !== undefined && data.AppInstanceRetentionSettings !== null) {
|
|
20025
20035
|
contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
20026
20036
|
}
|
|
20027
20037
|
if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
|
|
20028
|
-
contents.InitiateDeletionTimestamp =
|
|
20038
|
+
contents.InitiateDeletionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.InitiateDeletionTimestamp)));
|
|
20029
20039
|
}
|
|
20030
20040
|
return Promise.resolve(contents);
|
|
20031
20041
|
};
|
|
@@ -20127,7 +20137,7 @@ const deserializeAws_restJson1PutAppInstanceStreamingConfigurationsCommand = asy
|
|
|
20127
20137
|
$metadata: deserializeMetadata(output),
|
|
20128
20138
|
AppInstanceStreamingConfigurations: undefined,
|
|
20129
20139
|
};
|
|
20130
|
-
const data = await parseBody(output.body, context);
|
|
20140
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20131
20141
|
if (data.AppInstanceStreamingConfigurations !== undefined && data.AppInstanceStreamingConfigurations !== null) {
|
|
20132
20142
|
contents.AppInstanceStreamingConfigurations = deserializeAws_restJson1AppInstanceStreamingConfigurationList(data.AppInstanceStreamingConfigurations, context);
|
|
20133
20143
|
}
|
|
@@ -20223,7 +20233,7 @@ const deserializeAws_restJson1PutEventsConfigurationCommand = async (output, con
|
|
|
20223
20233
|
$metadata: deserializeMetadata(output),
|
|
20224
20234
|
EventsConfiguration: undefined,
|
|
20225
20235
|
};
|
|
20226
|
-
const data = await parseBody(output.body, context);
|
|
20236
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20227
20237
|
if (data.EventsConfiguration !== undefined && data.EventsConfiguration !== null) {
|
|
20228
20238
|
contents.EventsConfiguration = deserializeAws_restJson1EventsConfiguration(data.EventsConfiguration, context);
|
|
20229
20239
|
}
|
|
@@ -20320,9 +20330,9 @@ const deserializeAws_restJson1PutRetentionSettingsCommand = async (output, conte
|
|
|
20320
20330
|
InitiateDeletionTimestamp: undefined,
|
|
20321
20331
|
RetentionSettings: undefined,
|
|
20322
20332
|
};
|
|
20323
|
-
const data = await parseBody(output.body, context);
|
|
20333
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20324
20334
|
if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
|
|
20325
|
-
contents.InitiateDeletionTimestamp =
|
|
20335
|
+
contents.InitiateDeletionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.InitiateDeletionTimestamp));
|
|
20326
20336
|
}
|
|
20327
20337
|
if (data.RetentionSettings !== undefined && data.RetentionSettings !== null) {
|
|
20328
20338
|
contents.RetentionSettings = deserializeAws_restJson1RetentionSettings(data.RetentionSettings, context);
|
|
@@ -20427,7 +20437,7 @@ const deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand
|
|
|
20427
20437
|
$metadata: deserializeMetadata(output),
|
|
20428
20438
|
SipMediaApplicationLoggingConfiguration: undefined,
|
|
20429
20439
|
};
|
|
20430
|
-
const data = await parseBody(output.body, context);
|
|
20440
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20431
20441
|
if (data.SipMediaApplicationLoggingConfiguration !== undefined &&
|
|
20432
20442
|
data.SipMediaApplicationLoggingConfiguration !== null) {
|
|
20433
20443
|
contents.SipMediaApplicationLoggingConfiguration = deserializeAws_restJson1SipMediaApplicationLoggingConfiguration(data.SipMediaApplicationLoggingConfiguration, context);
|
|
@@ -20524,7 +20534,7 @@ const deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationComm
|
|
|
20524
20534
|
$metadata: deserializeMetadata(output),
|
|
20525
20535
|
EmergencyCallingConfiguration: undefined,
|
|
20526
20536
|
};
|
|
20527
|
-
const data = await parseBody(output.body, context);
|
|
20537
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20528
20538
|
if (data.EmergencyCallingConfiguration !== undefined && data.EmergencyCallingConfiguration !== null) {
|
|
20529
20539
|
contents.EmergencyCallingConfiguration = deserializeAws_restJson1EmergencyCallingConfiguration(data.EmergencyCallingConfiguration, context);
|
|
20530
20540
|
}
|
|
@@ -20620,7 +20630,7 @@ const deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand = asy
|
|
|
20620
20630
|
$metadata: deserializeMetadata(output),
|
|
20621
20631
|
LoggingConfiguration: undefined,
|
|
20622
20632
|
};
|
|
20623
|
-
const data = await parseBody(output.body, context);
|
|
20633
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20624
20634
|
if (data.LoggingConfiguration !== undefined && data.LoggingConfiguration !== null) {
|
|
20625
20635
|
contents.LoggingConfiguration = deserializeAws_restJson1LoggingConfiguration(data.LoggingConfiguration, context);
|
|
20626
20636
|
}
|
|
@@ -20716,7 +20726,7 @@ const deserializeAws_restJson1PutVoiceConnectorOriginationCommand = async (outpu
|
|
|
20716
20726
|
$metadata: deserializeMetadata(output),
|
|
20717
20727
|
Origination: undefined,
|
|
20718
20728
|
};
|
|
20719
|
-
const data = await parseBody(output.body, context);
|
|
20729
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20720
20730
|
if (data.Origination !== undefined && data.Origination !== null) {
|
|
20721
20731
|
contents.Origination = deserializeAws_restJson1Origination(data.Origination, context);
|
|
20722
20732
|
}
|
|
@@ -20812,7 +20822,7 @@ const deserializeAws_restJson1PutVoiceConnectorProxyCommand = async (output, con
|
|
|
20812
20822
|
$metadata: deserializeMetadata(output),
|
|
20813
20823
|
Proxy: undefined,
|
|
20814
20824
|
};
|
|
20815
|
-
const data = await parseBody(output.body, context);
|
|
20825
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20816
20826
|
if (data.Proxy !== undefined && data.Proxy !== null) {
|
|
20817
20827
|
contents.Proxy = deserializeAws_restJson1Proxy(data.Proxy, context);
|
|
20818
20828
|
}
|
|
@@ -20916,7 +20926,7 @@ const deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand = a
|
|
|
20916
20926
|
$metadata: deserializeMetadata(output),
|
|
20917
20927
|
StreamingConfiguration: undefined,
|
|
20918
20928
|
};
|
|
20919
|
-
const data = await parseBody(output.body, context);
|
|
20929
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20920
20930
|
if (data.StreamingConfiguration !== undefined && data.StreamingConfiguration !== null) {
|
|
20921
20931
|
contents.StreamingConfiguration = deserializeAws_restJson1StreamingConfiguration(data.StreamingConfiguration, context);
|
|
20922
20932
|
}
|
|
@@ -21012,7 +21022,7 @@ const deserializeAws_restJson1PutVoiceConnectorTerminationCommand = async (outpu
|
|
|
21012
21022
|
$metadata: deserializeMetadata(output),
|
|
21013
21023
|
Termination: undefined,
|
|
21014
21024
|
};
|
|
21015
|
-
const data = await parseBody(output.body, context);
|
|
21025
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
21016
21026
|
if (data.Termination !== undefined && data.Termination !== null) {
|
|
21017
21027
|
contents.Termination = deserializeAws_restJson1Termination(data.Termination, context);
|
|
21018
21028
|
}
|
|
@@ -21209,7 +21219,7 @@ const deserializeAws_restJson1RedactChannelMessageCommand = async (output, conte
|
|
|
21209
21219
|
ChannelArn: undefined,
|
|
21210
21220
|
MessageId: undefined,
|
|
21211
21221
|
};
|
|
21212
|
-
const data = await parseBody(output.body, context);
|
|
21222
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
21213
21223
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
21214
21224
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
21215
21225
|
}
|
|
@@ -21484,7 +21494,7 @@ const deserializeAws_restJson1RegenerateSecurityTokenCommand = async (output, co
|
|
|
21484
21494
|
$metadata: deserializeMetadata(output),
|
|
21485
21495
|
Bot: undefined,
|
|
21486
21496
|
};
|
|
21487
|
-
const data = await parseBody(output.body, context);
|
|
21497
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
21488
21498
|
if (data.Bot !== undefined && data.Bot !== null) {
|
|
21489
21499
|
contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
|
|
21490
21500
|
}
|
|
@@ -21580,7 +21590,7 @@ const deserializeAws_restJson1ResetPersonalPINCommand = async (output, context)
|
|
|
21580
21590
|
$metadata: deserializeMetadata(output),
|
|
21581
21591
|
User: undefined,
|
|
21582
21592
|
};
|
|
21583
|
-
const data = await parseBody(output.body, context);
|
|
21593
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
21584
21594
|
if (data.User !== undefined && data.User !== null) {
|
|
21585
21595
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
21586
21596
|
}
|
|
@@ -21676,7 +21686,7 @@ const deserializeAws_restJson1RestorePhoneNumberCommand = async (output, context
|
|
|
21676
21686
|
$metadata: deserializeMetadata(output),
|
|
21677
21687
|
PhoneNumber: undefined,
|
|
21678
21688
|
};
|
|
21679
|
-
const data = await parseBody(output.body, context);
|
|
21689
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
21680
21690
|
if (data.PhoneNumber !== undefined && data.PhoneNumber !== null) {
|
|
21681
21691
|
contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
|
|
21682
21692
|
}
|
|
@@ -21781,7 +21791,7 @@ const deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (output
|
|
|
21781
21791
|
E164PhoneNumbers: undefined,
|
|
21782
21792
|
NextToken: undefined,
|
|
21783
21793
|
};
|
|
21784
|
-
const data = await parseBody(output.body, context);
|
|
21794
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
21785
21795
|
if (data.E164PhoneNumbers !== undefined && data.E164PhoneNumbers !== null) {
|
|
21786
21796
|
contents.E164PhoneNumbers = deserializeAws_restJson1E164PhoneNumberList(data.E164PhoneNumbers, context);
|
|
21787
21797
|
}
|
|
@@ -21881,7 +21891,7 @@ const deserializeAws_restJson1SendChannelMessageCommand = async (output, context
|
|
|
21881
21891
|
ChannelArn: undefined,
|
|
21882
21892
|
MessageId: undefined,
|
|
21883
21893
|
};
|
|
21884
|
-
const data = await parseBody(output.body, context);
|
|
21894
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
21885
21895
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
21886
21896
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
21887
21897
|
}
|
|
@@ -22740,7 +22750,7 @@ const deserializeAws_restJson1UpdateAccountCommand = async (output, context) =>
|
|
|
22740
22750
|
$metadata: deserializeMetadata(output),
|
|
22741
22751
|
Account: undefined,
|
|
22742
22752
|
};
|
|
22743
|
-
const data = await parseBody(output.body, context);
|
|
22753
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
22744
22754
|
if (data.Account !== undefined && data.Account !== null) {
|
|
22745
22755
|
contents.Account = deserializeAws_restJson1Account(data.Account, context);
|
|
22746
22756
|
}
|
|
@@ -22936,7 +22946,7 @@ const deserializeAws_restJson1UpdateAppInstanceCommand = async (output, context)
|
|
|
22936
22946
|
$metadata: deserializeMetadata(output),
|
|
22937
22947
|
AppInstanceArn: undefined,
|
|
22938
22948
|
};
|
|
22939
|
-
const data = await parseBody(output.body, context);
|
|
22949
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
22940
22950
|
if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
|
|
22941
22951
|
contents.AppInstanceArn = smithy_client_1.expectString(data.AppInstanceArn);
|
|
22942
22952
|
}
|
|
@@ -23032,7 +23042,7 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommand = async (output, cont
|
|
|
23032
23042
|
$metadata: deserializeMetadata(output),
|
|
23033
23043
|
AppInstanceUserArn: undefined,
|
|
23034
23044
|
};
|
|
23035
|
-
const data = await parseBody(output.body, context);
|
|
23045
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23036
23046
|
if (data.AppInstanceUserArn !== undefined && data.AppInstanceUserArn !== null) {
|
|
23037
23047
|
contents.AppInstanceUserArn = smithy_client_1.expectString(data.AppInstanceUserArn);
|
|
23038
23048
|
}
|
|
@@ -23128,7 +23138,7 @@ const deserializeAws_restJson1UpdateBotCommand = async (output, context) => {
|
|
|
23128
23138
|
$metadata: deserializeMetadata(output),
|
|
23129
23139
|
Bot: undefined,
|
|
23130
23140
|
};
|
|
23131
|
-
const data = await parseBody(output.body, context);
|
|
23141
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23132
23142
|
if (data.Bot !== undefined && data.Bot !== null) {
|
|
23133
23143
|
contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
|
|
23134
23144
|
}
|
|
@@ -23224,7 +23234,7 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
|
|
|
23224
23234
|
$metadata: deserializeMetadata(output),
|
|
23225
23235
|
ChannelArn: undefined,
|
|
23226
23236
|
};
|
|
23227
|
-
const data = await parseBody(output.body, context);
|
|
23237
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23228
23238
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
23229
23239
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
23230
23240
|
}
|
|
@@ -23321,7 +23331,7 @@ const deserializeAws_restJson1UpdateChannelMessageCommand = async (output, conte
|
|
|
23321
23331
|
ChannelArn: undefined,
|
|
23322
23332
|
MessageId: undefined,
|
|
23323
23333
|
};
|
|
23324
|
-
const data = await parseBody(output.body, context);
|
|
23334
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23325
23335
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
23326
23336
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
23327
23337
|
}
|
|
@@ -23420,7 +23430,7 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (output, co
|
|
|
23420
23430
|
$metadata: deserializeMetadata(output),
|
|
23421
23431
|
ChannelArn: undefined,
|
|
23422
23432
|
};
|
|
23423
|
-
const data = await parseBody(output.body, context);
|
|
23433
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23424
23434
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
23425
23435
|
contents.ChannelArn = smithy_client_1.expectString(data.ChannelArn);
|
|
23426
23436
|
}
|
|
@@ -23600,7 +23610,7 @@ const deserializeAws_restJson1UpdatePhoneNumberCommand = async (output, context)
|
|
|
23600
23610
|
$metadata: deserializeMetadata(output),
|
|
23601
23611
|
PhoneNumber: undefined,
|
|
23602
23612
|
};
|
|
23603
|
-
const data = await parseBody(output.body, context);
|
|
23613
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23604
23614
|
if (data.PhoneNumber !== undefined && data.PhoneNumber !== null) {
|
|
23605
23615
|
contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
|
|
23606
23616
|
}
|
|
@@ -23780,7 +23790,7 @@ const deserializeAws_restJson1UpdateProxySessionCommand = async (output, context
|
|
|
23780
23790
|
$metadata: deserializeMetadata(output),
|
|
23781
23791
|
ProxySession: undefined,
|
|
23782
23792
|
};
|
|
23783
|
-
const data = await parseBody(output.body, context);
|
|
23793
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23784
23794
|
if (data.ProxySession !== undefined && data.ProxySession !== null) {
|
|
23785
23795
|
contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
|
|
23786
23796
|
}
|
|
@@ -23876,7 +23886,7 @@ const deserializeAws_restJson1UpdateRoomCommand = async (output, context) => {
|
|
|
23876
23886
|
$metadata: deserializeMetadata(output),
|
|
23877
23887
|
Room: undefined,
|
|
23878
23888
|
};
|
|
23879
|
-
const data = await parseBody(output.body, context);
|
|
23889
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23880
23890
|
if (data.Room !== undefined && data.Room !== null) {
|
|
23881
23891
|
contents.Room = deserializeAws_restJson1Room(data.Room, context);
|
|
23882
23892
|
}
|
|
@@ -23972,7 +23982,7 @@ const deserializeAws_restJson1UpdateRoomMembershipCommand = async (output, conte
|
|
|
23972
23982
|
$metadata: deserializeMetadata(output),
|
|
23973
23983
|
RoomMembership: undefined,
|
|
23974
23984
|
};
|
|
23975
|
-
const data = await parseBody(output.body, context);
|
|
23985
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
23976
23986
|
if (data.RoomMembership !== undefined && data.RoomMembership !== null) {
|
|
23977
23987
|
contents.RoomMembership = deserializeAws_restJson1RoomMembership(data.RoomMembership, context);
|
|
23978
23988
|
}
|
|
@@ -24068,7 +24078,7 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCommand = async (output,
|
|
|
24068
24078
|
$metadata: deserializeMetadata(output),
|
|
24069
24079
|
SipMediaApplication: undefined,
|
|
24070
24080
|
};
|
|
24071
|
-
const data = await parseBody(output.body, context);
|
|
24081
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
24072
24082
|
if (data.SipMediaApplication !== undefined && data.SipMediaApplication !== null) {
|
|
24073
24083
|
contents.SipMediaApplication = deserializeAws_restJson1SipMediaApplication(data.SipMediaApplication, context);
|
|
24074
24084
|
}
|
|
@@ -24172,7 +24182,7 @@ const deserializeAws_restJson1UpdateSipMediaApplicationCallCommand = async (outp
|
|
|
24172
24182
|
$metadata: deserializeMetadata(output),
|
|
24173
24183
|
SipMediaApplicationCall: undefined,
|
|
24174
24184
|
};
|
|
24175
|
-
const data = await parseBody(output.body, context);
|
|
24185
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
24176
24186
|
if (data.SipMediaApplicationCall !== undefined && data.SipMediaApplicationCall !== null) {
|
|
24177
24187
|
contents.SipMediaApplicationCall = deserializeAws_restJson1SipMediaApplicationCall(data.SipMediaApplicationCall, context);
|
|
24178
24188
|
}
|
|
@@ -24276,7 +24286,7 @@ const deserializeAws_restJson1UpdateSipRuleCommand = async (output, context) =>
|
|
|
24276
24286
|
$metadata: deserializeMetadata(output),
|
|
24277
24287
|
SipRule: undefined,
|
|
24278
24288
|
};
|
|
24279
|
-
const data = await parseBody(output.body, context);
|
|
24289
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
24280
24290
|
if (data.SipRule !== undefined && data.SipRule !== null) {
|
|
24281
24291
|
contents.SipRule = deserializeAws_restJson1SipRule(data.SipRule, context);
|
|
24282
24292
|
}
|
|
@@ -24388,7 +24398,7 @@ const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
|
|
|
24388
24398
|
$metadata: deserializeMetadata(output),
|
|
24389
24399
|
User: undefined,
|
|
24390
24400
|
};
|
|
24391
|
-
const data = await parseBody(output.body, context);
|
|
24401
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
24392
24402
|
if (data.User !== undefined && data.User !== null) {
|
|
24393
24403
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
24394
24404
|
}
|
|
@@ -24576,7 +24586,7 @@ const deserializeAws_restJson1UpdateVoiceConnectorCommand = async (output, conte
|
|
|
24576
24586
|
$metadata: deserializeMetadata(output),
|
|
24577
24587
|
VoiceConnector: undefined,
|
|
24578
24588
|
};
|
|
24579
|
-
const data = await parseBody(output.body, context);
|
|
24589
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
24580
24590
|
if (data.VoiceConnector !== undefined && data.VoiceConnector !== null) {
|
|
24581
24591
|
contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
|
|
24582
24592
|
}
|
|
@@ -24672,7 +24682,7 @@ const deserializeAws_restJson1UpdateVoiceConnectorGroupCommand = async (output,
|
|
|
24672
24682
|
$metadata: deserializeMetadata(output),
|
|
24673
24683
|
VoiceConnectorGroup: undefined,
|
|
24674
24684
|
};
|
|
24675
|
-
const data = await parseBody(output.body, context);
|
|
24685
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
24676
24686
|
if (data.VoiceConnectorGroup !== undefined && data.VoiceConnectorGroup !== null) {
|
|
24677
24687
|
contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
|
|
24678
24688
|
}
|
|
@@ -25315,6 +25325,17 @@ const serializeAws_restJson1SigninDelegateGroupList = (input, context) => {
|
|
|
25315
25325
|
return serializeAws_restJson1SigninDelegateGroup(entry, context);
|
|
25316
25326
|
});
|
|
25317
25327
|
};
|
|
25328
|
+
const serializeAws_restJson1SipHeadersMap = (input, context) => {
|
|
25329
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
25330
|
+
if (value === null) {
|
|
25331
|
+
return acc;
|
|
25332
|
+
}
|
|
25333
|
+
return {
|
|
25334
|
+
...acc,
|
|
25335
|
+
[key]: value,
|
|
25336
|
+
};
|
|
25337
|
+
}, {});
|
|
25338
|
+
};
|
|
25318
25339
|
const serializeAws_restJson1SipMediaApplicationEndpoint = (input, context) => {
|
|
25319
25340
|
return {
|
|
25320
25341
|
...(input.LambdaArn !== undefined && input.LambdaArn !== null && { LambdaArn: input.LambdaArn }),
|
|
@@ -25560,7 +25581,7 @@ const deserializeAws_restJson1Account = (output, context) => {
|
|
|
25560
25581
|
AccountType: smithy_client_1.expectString(output.AccountType),
|
|
25561
25582
|
AwsAccountId: smithy_client_1.expectString(output.AwsAccountId),
|
|
25562
25583
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25563
|
-
?
|
|
25584
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
25564
25585
|
: undefined,
|
|
25565
25586
|
DefaultLicense: smithy_client_1.expectString(output.DefaultLicense),
|
|
25566
25587
|
Name: smithy_client_1.expectString(output.Name),
|
|
@@ -25598,10 +25619,10 @@ const deserializeAws_restJson1AppInstance = (output, context) => {
|
|
|
25598
25619
|
return {
|
|
25599
25620
|
AppInstanceArn: smithy_client_1.expectString(output.AppInstanceArn),
|
|
25600
25621
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25601
|
-
?
|
|
25622
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25602
25623
|
: undefined,
|
|
25603
25624
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
25604
|
-
?
|
|
25625
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
25605
25626
|
: undefined,
|
|
25606
25627
|
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
25607
25628
|
Name: smithy_client_1.expectString(output.Name),
|
|
@@ -25614,7 +25635,7 @@ const deserializeAws_restJson1AppInstanceAdmin = (output, context) => {
|
|
|
25614
25635
|
: undefined,
|
|
25615
25636
|
AppInstanceArn: smithy_client_1.expectString(output.AppInstanceArn),
|
|
25616
25637
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25617
|
-
?
|
|
25638
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25618
25639
|
: undefined,
|
|
25619
25640
|
};
|
|
25620
25641
|
};
|
|
@@ -25679,10 +25700,10 @@ const deserializeAws_restJson1AppInstanceUser = (output, context) => {
|
|
|
25679
25700
|
return {
|
|
25680
25701
|
AppInstanceUserArn: smithy_client_1.expectString(output.AppInstanceUserArn),
|
|
25681
25702
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25682
|
-
?
|
|
25703
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25683
25704
|
: undefined,
|
|
25684
25705
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
25685
|
-
?
|
|
25706
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
25686
25707
|
: undefined,
|
|
25687
25708
|
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
25688
25709
|
Name: smithy_client_1.expectString(output.Name),
|
|
@@ -25701,7 +25722,7 @@ const deserializeAws_restJson1AppInstanceUserList = (output, context) => {
|
|
|
25701
25722
|
const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, context) => {
|
|
25702
25723
|
return {
|
|
25703
25724
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
|
|
25704
|
-
?
|
|
25725
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReadMarkerTimestamp)))
|
|
25705
25726
|
: undefined,
|
|
25706
25727
|
Type: smithy_client_1.expectString(output.Type),
|
|
25707
25728
|
};
|
|
@@ -25775,13 +25796,13 @@ const deserializeAws_restJson1Bot = (output, context) => {
|
|
|
25775
25796
|
BotId: smithy_client_1.expectString(output.BotId),
|
|
25776
25797
|
BotType: smithy_client_1.expectString(output.BotType),
|
|
25777
25798
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25778
|
-
?
|
|
25799
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
25779
25800
|
: undefined,
|
|
25780
25801
|
Disabled: smithy_client_1.expectBoolean(output.Disabled),
|
|
25781
25802
|
DisplayName: smithy_client_1.expectString(output.DisplayName),
|
|
25782
25803
|
SecurityToken: smithy_client_1.expectString(output.SecurityToken),
|
|
25783
25804
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
25784
|
-
?
|
|
25805
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
25785
25806
|
: undefined,
|
|
25786
25807
|
UserId: smithy_client_1.expectString(output.UserId),
|
|
25787
25808
|
};
|
|
@@ -25828,13 +25849,13 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
25828
25849
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
25829
25850
|
: undefined,
|
|
25830
25851
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25831
|
-
?
|
|
25852
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25832
25853
|
: undefined,
|
|
25833
25854
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
25834
|
-
?
|
|
25855
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastMessageTimestamp)))
|
|
25835
25856
|
: undefined,
|
|
25836
25857
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
25837
|
-
?
|
|
25858
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
25838
25859
|
: undefined,
|
|
25839
25860
|
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
25840
25861
|
Mode: smithy_client_1.expectString(output.Mode),
|
|
@@ -25849,7 +25870,7 @@ const deserializeAws_restJson1ChannelBan = (output, context) => {
|
|
|
25849
25870
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
25850
25871
|
: undefined,
|
|
25851
25872
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25852
|
-
?
|
|
25873
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25853
25874
|
: undefined,
|
|
25854
25875
|
Member: output.Member !== undefined && output.Member !== null
|
|
25855
25876
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -25877,13 +25898,13 @@ const deserializeAws_restJson1ChannelMembership = (output, context) => {
|
|
|
25877
25898
|
return {
|
|
25878
25899
|
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
25879
25900
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25880
|
-
?
|
|
25901
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25881
25902
|
: undefined,
|
|
25882
25903
|
InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
25883
25904
|
? deserializeAws_restJson1Identity(output.InvitedBy, context)
|
|
25884
25905
|
: undefined,
|
|
25885
25906
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
25886
|
-
?
|
|
25907
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
25887
25908
|
: undefined,
|
|
25888
25909
|
Member: output.Member !== undefined && output.Member !== null
|
|
25889
25910
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -25933,13 +25954,13 @@ const deserializeAws_restJson1ChannelMessage = (output, context) => {
|
|
|
25933
25954
|
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
25934
25955
|
Content: smithy_client_1.expectString(output.Content),
|
|
25935
25956
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25936
|
-
?
|
|
25957
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25937
25958
|
: undefined,
|
|
25938
25959
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
25939
|
-
?
|
|
25960
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastEditedTimestamp)))
|
|
25940
25961
|
: undefined,
|
|
25941
25962
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
25942
|
-
?
|
|
25963
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
25943
25964
|
: undefined,
|
|
25944
25965
|
MessageId: smithy_client_1.expectString(output.MessageId),
|
|
25945
25966
|
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
@@ -25955,13 +25976,13 @@ const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
|
|
|
25955
25976
|
return {
|
|
25956
25977
|
Content: smithy_client_1.expectString(output.Content),
|
|
25957
25978
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
25958
|
-
?
|
|
25979
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
25959
25980
|
: undefined,
|
|
25960
25981
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
25961
|
-
?
|
|
25982
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastEditedTimestamp)))
|
|
25962
25983
|
: undefined,
|
|
25963
25984
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
25964
|
-
?
|
|
25985
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
|
|
25965
25986
|
: undefined,
|
|
25966
25987
|
MessageId: smithy_client_1.expectString(output.MessageId),
|
|
25967
25988
|
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
@@ -26006,7 +26027,7 @@ const deserializeAws_restJson1ChannelModerator = (output, context) => {
|
|
|
26006
26027
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
26007
26028
|
: undefined,
|
|
26008
26029
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26009
|
-
?
|
|
26030
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
26010
26031
|
: undefined,
|
|
26011
26032
|
Moderator: output.Moderator !== undefined && output.Moderator !== null
|
|
26012
26033
|
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
@@ -26032,14 +26053,14 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = (output, context) =>
|
|
|
26032
26053
|
};
|
|
26033
26054
|
const deserializeAws_restJson1ChannelRetentionSettings = (output, context) => {
|
|
26034
26055
|
return {
|
|
26035
|
-
RetentionDays: smithy_client_1.
|
|
26056
|
+
RetentionDays: smithy_client_1.expectInt32(output.RetentionDays),
|
|
26036
26057
|
};
|
|
26037
26058
|
};
|
|
26038
26059
|
const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
26039
26060
|
return {
|
|
26040
26061
|
ChannelArn: smithy_client_1.expectString(output.ChannelArn),
|
|
26041
26062
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
26042
|
-
?
|
|
26063
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastMessageTimestamp)))
|
|
26043
26064
|
: undefined,
|
|
26044
26065
|
Metadata: smithy_client_1.expectString(output.Metadata),
|
|
26045
26066
|
Mode: smithy_client_1.expectString(output.Mode),
|
|
@@ -26059,7 +26080,7 @@ const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
|
|
|
26059
26080
|
};
|
|
26060
26081
|
const deserializeAws_restJson1ConversationRetentionSettings = (output, context) => {
|
|
26061
26082
|
return {
|
|
26062
|
-
RetentionDays: smithy_client_1.
|
|
26083
|
+
RetentionDays: smithy_client_1.expectInt32(output.RetentionDays),
|
|
26063
26084
|
};
|
|
26064
26085
|
};
|
|
26065
26086
|
const deserializeAws_restJson1CreateAttendeeError = (output, context) => {
|
|
@@ -26158,7 +26179,7 @@ const deserializeAws_restJson1LoggingConfiguration = (output, context) => {
|
|
|
26158
26179
|
const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
|
|
26159
26180
|
return {
|
|
26160
26181
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26161
|
-
?
|
|
26182
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26162
26183
|
: undefined,
|
|
26163
26184
|
MediaPipelineId: smithy_client_1.expectString(output.MediaPipelineId),
|
|
26164
26185
|
SinkArn: smithy_client_1.expectString(output.SinkArn),
|
|
@@ -26167,7 +26188,7 @@ const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
|
|
|
26167
26188
|
SourceType: smithy_client_1.expectString(output.SourceType),
|
|
26168
26189
|
Status: smithy_client_1.expectString(output.Status),
|
|
26169
26190
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26170
|
-
?
|
|
26191
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26171
26192
|
: undefined,
|
|
26172
26193
|
};
|
|
26173
26194
|
};
|
|
@@ -26281,10 +26302,10 @@ const deserializeAws_restJson1Origination = (output, context) => {
|
|
|
26281
26302
|
const deserializeAws_restJson1OriginationRoute = (output, context) => {
|
|
26282
26303
|
return {
|
|
26283
26304
|
Host: smithy_client_1.expectString(output.Host),
|
|
26284
|
-
Port: smithy_client_1.
|
|
26285
|
-
Priority: smithy_client_1.
|
|
26305
|
+
Port: smithy_client_1.expectInt32(output.Port),
|
|
26306
|
+
Priority: smithy_client_1.expectInt32(output.Priority),
|
|
26286
26307
|
Protocol: smithy_client_1.expectString(output.Protocol),
|
|
26287
|
-
Weight: smithy_client_1.
|
|
26308
|
+
Weight: smithy_client_1.expectInt32(output.Weight),
|
|
26288
26309
|
};
|
|
26289
26310
|
};
|
|
26290
26311
|
const deserializeAws_restJson1OriginationRouteList = (output, context) => {
|
|
@@ -26325,10 +26346,10 @@ const deserializeAws_restJson1PhoneNumber = (output, context) => {
|
|
|
26325
26346
|
: undefined,
|
|
26326
26347
|
Country: smithy_client_1.expectString(output.Country),
|
|
26327
26348
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26328
|
-
?
|
|
26349
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26329
26350
|
: undefined,
|
|
26330
26351
|
DeletionTimestamp: output.DeletionTimestamp !== undefined && output.DeletionTimestamp !== null
|
|
26331
|
-
?
|
|
26352
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.DeletionTimestamp))
|
|
26332
26353
|
: undefined,
|
|
26333
26354
|
E164PhoneNumber: smithy_client_1.expectString(output.E164PhoneNumber),
|
|
26334
26355
|
PhoneNumberId: smithy_client_1.expectString(output.PhoneNumberId),
|
|
@@ -26336,14 +26357,14 @@ const deserializeAws_restJson1PhoneNumber = (output, context) => {
|
|
|
26336
26357
|
Status: smithy_client_1.expectString(output.Status),
|
|
26337
26358
|
Type: smithy_client_1.expectString(output.Type),
|
|
26338
26359
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26339
|
-
?
|
|
26360
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26340
26361
|
: undefined,
|
|
26341
26362
|
};
|
|
26342
26363
|
};
|
|
26343
26364
|
const deserializeAws_restJson1PhoneNumberAssociation = (output, context) => {
|
|
26344
26365
|
return {
|
|
26345
26366
|
AssociatedTimestamp: output.AssociatedTimestamp !== undefined && output.AssociatedTimestamp !== null
|
|
26346
|
-
?
|
|
26367
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.AssociatedTimestamp))
|
|
26347
26368
|
: undefined,
|
|
26348
26369
|
Name: smithy_client_1.expectString(output.Name),
|
|
26349
26370
|
Value: smithy_client_1.expectString(output.Value),
|
|
@@ -26417,7 +26438,7 @@ const deserializeAws_restJson1PhoneNumberList = (output, context) => {
|
|
|
26417
26438
|
const deserializeAws_restJson1PhoneNumberOrder = (output, context) => {
|
|
26418
26439
|
return {
|
|
26419
26440
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26420
|
-
?
|
|
26441
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26421
26442
|
: undefined,
|
|
26422
26443
|
OrderedPhoneNumbers: output.OrderedPhoneNumbers !== undefined && output.OrderedPhoneNumbers !== null
|
|
26423
26444
|
? deserializeAws_restJson1OrderedPhoneNumberList(output.OrderedPhoneNumbers, context)
|
|
@@ -26426,7 +26447,7 @@ const deserializeAws_restJson1PhoneNumberOrder = (output, context) => {
|
|
|
26426
26447
|
ProductType: smithy_client_1.expectString(output.ProductType),
|
|
26427
26448
|
Status: smithy_client_1.expectString(output.Status),
|
|
26428
26449
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26429
|
-
?
|
|
26450
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26430
26451
|
: undefined,
|
|
26431
26452
|
};
|
|
26432
26453
|
};
|
|
@@ -26452,7 +26473,7 @@ const deserializeAws_restJson1PhoneNumberTypeList = (output, context) => {
|
|
|
26452
26473
|
};
|
|
26453
26474
|
const deserializeAws_restJson1Proxy = (output, context) => {
|
|
26454
26475
|
return {
|
|
26455
|
-
DefaultSessionExpiryMinutes: smithy_client_1.
|
|
26476
|
+
DefaultSessionExpiryMinutes: smithy_client_1.expectInt32(output.DefaultSessionExpiryMinutes),
|
|
26456
26477
|
Disabled: smithy_client_1.expectBoolean(output.Disabled),
|
|
26457
26478
|
FallBackPhoneNumber: smithy_client_1.expectString(output.FallBackPhoneNumber),
|
|
26458
26479
|
PhoneNumberCountries: output.PhoneNumberCountries !== undefined && output.PhoneNumberCountries !== null
|
|
@@ -26466,12 +26487,12 @@ const deserializeAws_restJson1ProxySession = (output, context) => {
|
|
|
26466
26487
|
? deserializeAws_restJson1CapabilityList(output.Capabilities, context)
|
|
26467
26488
|
: undefined,
|
|
26468
26489
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26469
|
-
?
|
|
26490
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26470
26491
|
: undefined,
|
|
26471
26492
|
EndedTimestamp: output.EndedTimestamp !== undefined && output.EndedTimestamp !== null
|
|
26472
|
-
?
|
|
26493
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.EndedTimestamp))
|
|
26473
26494
|
: undefined,
|
|
26474
|
-
ExpiryMinutes: smithy_client_1.
|
|
26495
|
+
ExpiryMinutes: smithy_client_1.expectInt32(output.ExpiryMinutes),
|
|
26475
26496
|
GeoMatchLevel: smithy_client_1.expectString(output.GeoMatchLevel),
|
|
26476
26497
|
GeoMatchParams: output.GeoMatchParams !== undefined && output.GeoMatchParams !== null
|
|
26477
26498
|
? deserializeAws_restJson1GeoMatchParams(output.GeoMatchParams, context)
|
|
@@ -26484,7 +26505,7 @@ const deserializeAws_restJson1ProxySession = (output, context) => {
|
|
|
26484
26505
|
ProxySessionId: smithy_client_1.expectString(output.ProxySessionId),
|
|
26485
26506
|
Status: smithy_client_1.expectString(output.Status),
|
|
26486
26507
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26487
|
-
?
|
|
26508
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26488
26509
|
: undefined,
|
|
26489
26510
|
VoiceConnectorId: smithy_client_1.expectString(output.VoiceConnectorId),
|
|
26490
26511
|
};
|
|
@@ -26514,12 +26535,12 @@ const deserializeAws_restJson1Room = (output, context) => {
|
|
|
26514
26535
|
AccountId: smithy_client_1.expectString(output.AccountId),
|
|
26515
26536
|
CreatedBy: smithy_client_1.expectString(output.CreatedBy),
|
|
26516
26537
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26517
|
-
?
|
|
26538
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26518
26539
|
: undefined,
|
|
26519
26540
|
Name: smithy_client_1.expectString(output.Name),
|
|
26520
26541
|
RoomId: smithy_client_1.expectString(output.RoomId),
|
|
26521
26542
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26522
|
-
?
|
|
26543
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26523
26544
|
: undefined,
|
|
26524
26545
|
};
|
|
26525
26546
|
};
|
|
@@ -26542,7 +26563,7 @@ const deserializeAws_restJson1RoomMembership = (output, context) => {
|
|
|
26542
26563
|
Role: smithy_client_1.expectString(output.Role),
|
|
26543
26564
|
RoomId: smithy_client_1.expectString(output.RoomId),
|
|
26544
26565
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26545
|
-
?
|
|
26566
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26546
26567
|
: undefined,
|
|
26547
26568
|
};
|
|
26548
26569
|
};
|
|
@@ -26558,7 +26579,7 @@ const deserializeAws_restJson1RoomMembershipList = (output, context) => {
|
|
|
26558
26579
|
};
|
|
26559
26580
|
const deserializeAws_restJson1RoomRetentionSettings = (output, context) => {
|
|
26560
26581
|
return {
|
|
26561
|
-
RetentionDays: smithy_client_1.
|
|
26582
|
+
RetentionDays: smithy_client_1.expectInt32(output.RetentionDays),
|
|
26562
26583
|
};
|
|
26563
26584
|
};
|
|
26564
26585
|
const deserializeAws_restJson1SensitiveStringList = (output, context) => {
|
|
@@ -26590,7 +26611,7 @@ const deserializeAws_restJson1SipMediaApplication = (output, context) => {
|
|
|
26590
26611
|
return {
|
|
26591
26612
|
AwsRegion: smithy_client_1.expectString(output.AwsRegion),
|
|
26592
26613
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26593
|
-
?
|
|
26614
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26594
26615
|
: undefined,
|
|
26595
26616
|
Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
|
|
26596
26617
|
? deserializeAws_restJson1SipMediaApplicationEndpointList(output.Endpoints, context)
|
|
@@ -26598,7 +26619,7 @@ const deserializeAws_restJson1SipMediaApplication = (output, context) => {
|
|
|
26598
26619
|
Name: smithy_client_1.expectString(output.Name),
|
|
26599
26620
|
SipMediaApplicationId: smithy_client_1.expectString(output.SipMediaApplicationId),
|
|
26600
26621
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26601
|
-
?
|
|
26622
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26602
26623
|
: undefined,
|
|
26603
26624
|
};
|
|
26604
26625
|
};
|
|
@@ -26640,7 +26661,7 @@ const deserializeAws_restJson1SipMediaApplicationLoggingConfiguration = (output,
|
|
|
26640
26661
|
const deserializeAws_restJson1SipRule = (output, context) => {
|
|
26641
26662
|
return {
|
|
26642
26663
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26643
|
-
?
|
|
26664
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26644
26665
|
: undefined,
|
|
26645
26666
|
Disabled: smithy_client_1.expectBoolean(output.Disabled),
|
|
26646
26667
|
Name: smithy_client_1.expectString(output.Name),
|
|
@@ -26651,7 +26672,7 @@ const deserializeAws_restJson1SipRule = (output, context) => {
|
|
|
26651
26672
|
TriggerType: smithy_client_1.expectString(output.TriggerType),
|
|
26652
26673
|
TriggerValue: smithy_client_1.expectString(output.TriggerValue),
|
|
26653
26674
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26654
|
-
?
|
|
26675
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26655
26676
|
: undefined,
|
|
26656
26677
|
};
|
|
26657
26678
|
};
|
|
@@ -26668,7 +26689,7 @@ const deserializeAws_restJson1SipRuleList = (output, context) => {
|
|
|
26668
26689
|
const deserializeAws_restJson1SipRuleTargetApplication = (output, context) => {
|
|
26669
26690
|
return {
|
|
26670
26691
|
AwsRegion: smithy_client_1.expectString(output.AwsRegion),
|
|
26671
|
-
Priority: smithy_client_1.
|
|
26692
|
+
Priority: smithy_client_1.expectInt32(output.Priority),
|
|
26672
26693
|
SipMediaApplicationId: smithy_client_1.expectString(output.SipMediaApplicationId),
|
|
26673
26694
|
};
|
|
26674
26695
|
};
|
|
@@ -26684,7 +26705,7 @@ const deserializeAws_restJson1SipRuleTargetApplicationList = (output, context) =
|
|
|
26684
26705
|
};
|
|
26685
26706
|
const deserializeAws_restJson1StreamingConfiguration = (output, context) => {
|
|
26686
26707
|
return {
|
|
26687
|
-
DataRetentionInHours: smithy_client_1.
|
|
26708
|
+
DataRetentionInHours: smithy_client_1.expectInt32(output.DataRetentionInHours),
|
|
26688
26709
|
Disabled: smithy_client_1.expectBoolean(output.Disabled),
|
|
26689
26710
|
StreamingNotificationTargets: output.StreamingNotificationTargets !== undefined && output.StreamingNotificationTargets !== null
|
|
26690
26711
|
? deserializeAws_restJson1StreamingNotificationTargetList(output.StreamingNotificationTargets, context)
|
|
@@ -26747,7 +26768,7 @@ const deserializeAws_restJson1Termination = (output, context) => {
|
|
|
26747
26768
|
CidrAllowedList: output.CidrAllowedList !== undefined && output.CidrAllowedList !== null
|
|
26748
26769
|
? deserializeAws_restJson1StringList(output.CidrAllowedList, context)
|
|
26749
26770
|
: undefined,
|
|
26750
|
-
CpsLimit: smithy_client_1.
|
|
26771
|
+
CpsLimit: smithy_client_1.expectInt32(output.CpsLimit),
|
|
26751
26772
|
DefaultPhoneNumber: smithy_client_1.expectString(output.DefaultPhoneNumber),
|
|
26752
26773
|
Disabled: smithy_client_1.expectBoolean(output.Disabled),
|
|
26753
26774
|
};
|
|
@@ -26755,7 +26776,9 @@ const deserializeAws_restJson1Termination = (output, context) => {
|
|
|
26755
26776
|
const deserializeAws_restJson1TerminationHealth = (output, context) => {
|
|
26756
26777
|
return {
|
|
26757
26778
|
Source: smithy_client_1.expectString(output.Source),
|
|
26758
|
-
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
26779
|
+
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
26780
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.Timestamp))
|
|
26781
|
+
: undefined,
|
|
26759
26782
|
};
|
|
26760
26783
|
};
|
|
26761
26784
|
const deserializeAws_restJson1User = (output, context) => {
|
|
@@ -26765,12 +26788,16 @@ const deserializeAws_restJson1User = (output, context) => {
|
|
|
26765
26788
|
? deserializeAws_restJson1AlexaForBusinessMetadata(output.AlexaForBusinessMetadata, context)
|
|
26766
26789
|
: undefined,
|
|
26767
26790
|
DisplayName: smithy_client_1.expectString(output.DisplayName),
|
|
26768
|
-
InvitedOn: output.InvitedOn !== undefined && output.InvitedOn !== null
|
|
26791
|
+
InvitedOn: output.InvitedOn !== undefined && output.InvitedOn !== null
|
|
26792
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.InvitedOn))
|
|
26793
|
+
: undefined,
|
|
26769
26794
|
LicenseType: smithy_client_1.expectString(output.LicenseType),
|
|
26770
26795
|
PersonalPIN: smithy_client_1.expectString(output.PersonalPIN),
|
|
26771
26796
|
PrimaryEmail: smithy_client_1.expectString(output.PrimaryEmail),
|
|
26772
26797
|
PrimaryProvisionedNumber: smithy_client_1.expectString(output.PrimaryProvisionedNumber),
|
|
26773
|
-
RegisteredOn: output.RegisteredOn !== undefined && output.RegisteredOn !== null
|
|
26798
|
+
RegisteredOn: output.RegisteredOn !== undefined && output.RegisteredOn !== null
|
|
26799
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.RegisteredOn))
|
|
26800
|
+
: undefined,
|
|
26774
26801
|
UserId: smithy_client_1.expectString(output.UserId),
|
|
26775
26802
|
UserInvitationStatus: smithy_client_1.expectString(output.UserInvitationStatus),
|
|
26776
26803
|
UserRegistrationStatus: smithy_client_1.expectString(output.UserRegistrationStatus),
|
|
@@ -26815,13 +26842,13 @@ const deserializeAws_restJson1VoiceConnector = (output, context) => {
|
|
|
26815
26842
|
return {
|
|
26816
26843
|
AwsRegion: smithy_client_1.expectString(output.AwsRegion),
|
|
26817
26844
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26818
|
-
?
|
|
26845
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26819
26846
|
: undefined,
|
|
26820
26847
|
Name: smithy_client_1.expectString(output.Name),
|
|
26821
26848
|
OutboundHostName: smithy_client_1.expectString(output.OutboundHostName),
|
|
26822
26849
|
RequireEncryption: smithy_client_1.expectBoolean(output.RequireEncryption),
|
|
26823
26850
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26824
|
-
?
|
|
26851
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26825
26852
|
: undefined,
|
|
26826
26853
|
VoiceConnectorId: smithy_client_1.expectString(output.VoiceConnectorId),
|
|
26827
26854
|
};
|
|
@@ -26829,11 +26856,11 @@ const deserializeAws_restJson1VoiceConnector = (output, context) => {
|
|
|
26829
26856
|
const deserializeAws_restJson1VoiceConnectorGroup = (output, context) => {
|
|
26830
26857
|
return {
|
|
26831
26858
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
26832
|
-
?
|
|
26859
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTimestamp))
|
|
26833
26860
|
: undefined,
|
|
26834
26861
|
Name: smithy_client_1.expectString(output.Name),
|
|
26835
26862
|
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
26836
|
-
?
|
|
26863
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
26837
26864
|
: undefined,
|
|
26838
26865
|
VoiceConnectorGroupId: smithy_client_1.expectString(output.VoiceConnectorGroupId),
|
|
26839
26866
|
VoiceConnectorItems: output.VoiceConnectorItems !== undefined && output.VoiceConnectorItems !== null
|
|
@@ -26853,7 +26880,7 @@ const deserializeAws_restJson1VoiceConnectorGroupList = (output, context) => {
|
|
|
26853
26880
|
};
|
|
26854
26881
|
const deserializeAws_restJson1VoiceConnectorItem = (output, context) => {
|
|
26855
26882
|
return {
|
|
26856
|
-
Priority: smithy_client_1.
|
|
26883
|
+
Priority: smithy_client_1.expectInt32(output.Priority),
|
|
26857
26884
|
VoiceConnectorId: smithy_client_1.expectString(output.VoiceConnectorId),
|
|
26858
26885
|
};
|
|
26859
26886
|
};
|