@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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  export var serializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
6
6
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
@@ -1189,8 +1189,9 @@ export var serializeAws_restJson1CreateSipMediaApplicationCallCommand = function
1189
1189
  else {
1190
1190
  throw new Error("No value provided for input HTTP label: SipMediaApplicationId.");
1191
1191
  }
1192
- body = JSON.stringify(__assign(__assign({}, (input.FromPhoneNumber !== undefined &&
1193
- input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber })), (input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber })));
1192
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.FromPhoneNumber !== undefined &&
1193
+ input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber })), (input.SipHeaders !== undefined &&
1194
+ input.SipHeaders !== null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) })), (input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber })));
1194
1195
  return [2 /*return*/, new __HttpRequest({
1195
1196
  protocol: protocol,
1196
1197
  hostname: hostname,
@@ -7094,9 +7095,9 @@ export var serializeAws_restJson1UpdateVoiceConnectorGroupCommand = function (in
7094
7095
  });
7095
7096
  }); };
7096
7097
  export var deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7097
- var contents, data;
7098
- return __generator(this, function (_a) {
7099
- switch (_a.label) {
7098
+ var contents, data, _a, _b;
7099
+ return __generator(this, function (_c) {
7100
+ switch (_c.label) {
7100
7101
  case 0:
7101
7102
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7102
7103
  return [2 /*return*/, deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommandError(output, context)];
@@ -7105,9 +7106,11 @@ export var deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorComman
7105
7106
  $metadata: deserializeMetadata(output),
7106
7107
  PhoneNumberErrors: undefined,
7107
7108
  };
7109
+ _a = __expectNonNull;
7110
+ _b = __expectObject;
7108
7111
  return [4 /*yield*/, parseBody(output.body, context)];
7109
7112
  case 1:
7110
- data = _a.sent();
7113
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7111
7114
  if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
7112
7115
  contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
7113
7116
  }
@@ -7210,9 +7213,9 @@ var deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommandError
7210
7213
  });
7211
7214
  }); };
7212
7215
  export var deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7213
- var contents, data;
7214
- return __generator(this, function (_a) {
7215
- switch (_a.label) {
7216
+ var contents, data, _a, _b;
7217
+ return __generator(this, function (_c) {
7218
+ switch (_c.label) {
7216
7219
  case 0:
7217
7220
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7218
7221
  return [2 /*return*/, deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupCommandError(output, context)];
@@ -7221,9 +7224,11 @@ export var deserializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupC
7221
7224
  $metadata: deserializeMetadata(output),
7222
7225
  PhoneNumberErrors: undefined,
7223
7226
  };
7227
+ _a = __expectNonNull;
7228
+ _b = __expectObject;
7224
7229
  return [4 /*yield*/, parseBody(output.body, context)];
7225
7230
  case 1:
7226
- data = _a.sent();
7231
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7227
7232
  if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
7228
7233
  contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
7229
7234
  }
@@ -7542,9 +7547,9 @@ var deserializeAws_restJson1AssociateSigninDelegateGroupsWithAccountCommandError
7542
7547
  });
7543
7548
  }); };
7544
7549
  export var deserializeAws_restJson1BatchCreateAttendeeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7545
- var contents, data;
7546
- return __generator(this, function (_a) {
7547
- switch (_a.label) {
7550
+ var contents, data, _a, _b;
7551
+ return __generator(this, function (_c) {
7552
+ switch (_c.label) {
7548
7553
  case 0:
7549
7554
  if (output.statusCode !== 201 && output.statusCode >= 300) {
7550
7555
  return [2 /*return*/, deserializeAws_restJson1BatchCreateAttendeeCommandError(output, context)];
@@ -7554,9 +7559,11 @@ export var deserializeAws_restJson1BatchCreateAttendeeCommand = function (output
7554
7559
  Attendees: undefined,
7555
7560
  Errors: undefined,
7556
7561
  };
7562
+ _a = __expectNonNull;
7563
+ _b = __expectObject;
7557
7564
  return [4 /*yield*/, parseBody(output.body, context)];
7558
7565
  case 1:
7559
- data = _a.sent();
7566
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7560
7567
  if (data.Attendees !== undefined && data.Attendees !== null) {
7561
7568
  contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
7562
7569
  }
@@ -7662,9 +7669,9 @@ var deserializeAws_restJson1BatchCreateAttendeeCommandError = function (output,
7662
7669
  });
7663
7670
  }); };
7664
7671
  export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7665
- var contents, data;
7666
- return __generator(this, function (_a) {
7667
- switch (_a.label) {
7672
+ var contents, data, _a, _b;
7673
+ return __generator(this, function (_c) {
7674
+ switch (_c.label) {
7668
7675
  case 0:
7669
7676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7670
7677
  return [2 /*return*/, deserializeAws_restJson1BatchCreateChannelMembershipCommandError(output, context)];
@@ -7674,9 +7681,11 @@ export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = functio
7674
7681
  BatchChannelMemberships: undefined,
7675
7682
  Errors: undefined,
7676
7683
  };
7684
+ _a = __expectNonNull;
7685
+ _b = __expectObject;
7677
7686
  return [4 /*yield*/, parseBody(output.body, context)];
7678
7687
  case 1:
7679
- data = _a.sent();
7688
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7680
7689
  if (data.BatchChannelMemberships !== undefined && data.BatchChannelMemberships !== null) {
7681
7690
  contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
7682
7691
  }
@@ -7766,9 +7775,9 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
7766
7775
  });
7767
7776
  }); };
7768
7777
  export var deserializeAws_restJson1BatchCreateRoomMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7769
- var contents, data;
7770
- return __generator(this, function (_a) {
7771
- switch (_a.label) {
7778
+ var contents, data, _a, _b;
7779
+ return __generator(this, function (_c) {
7780
+ switch (_c.label) {
7772
7781
  case 0:
7773
7782
  if (output.statusCode !== 201 && output.statusCode >= 300) {
7774
7783
  return [2 /*return*/, deserializeAws_restJson1BatchCreateRoomMembershipCommandError(output, context)];
@@ -7777,9 +7786,11 @@ export var deserializeAws_restJson1BatchCreateRoomMembershipCommand = function (
7777
7786
  $metadata: deserializeMetadata(output),
7778
7787
  Errors: undefined,
7779
7788
  };
7789
+ _a = __expectNonNull;
7790
+ _b = __expectObject;
7780
7791
  return [4 /*yield*/, parseBody(output.body, context)];
7781
7792
  case 1:
7782
- data = _a.sent();
7793
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7783
7794
  if (data.Errors !== undefined && data.Errors !== null) {
7784
7795
  contents.Errors = deserializeAws_restJson1MemberErrorList(data.Errors, context);
7785
7796
  }
@@ -7874,9 +7885,9 @@ var deserializeAws_restJson1BatchCreateRoomMembershipCommandError = function (ou
7874
7885
  });
7875
7886
  }); };
7876
7887
  export var deserializeAws_restJson1BatchDeletePhoneNumberCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7877
- var contents, data;
7878
- return __generator(this, function (_a) {
7879
- switch (_a.label) {
7888
+ var contents, data, _a, _b;
7889
+ return __generator(this, function (_c) {
7890
+ switch (_c.label) {
7880
7891
  case 0:
7881
7892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7882
7893
  return [2 /*return*/, deserializeAws_restJson1BatchDeletePhoneNumberCommandError(output, context)];
@@ -7885,9 +7896,11 @@ export var deserializeAws_restJson1BatchDeletePhoneNumberCommand = function (out
7885
7896
  $metadata: deserializeMetadata(output),
7886
7897
  PhoneNumberErrors: undefined,
7887
7898
  };
7899
+ _a = __expectNonNull;
7900
+ _b = __expectObject;
7888
7901
  return [4 /*yield*/, parseBody(output.body, context)];
7889
7902
  case 1:
7890
- data = _a.sent();
7903
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7891
7904
  if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
7892
7905
  contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
7893
7906
  }
@@ -7982,9 +7995,9 @@ var deserializeAws_restJson1BatchDeletePhoneNumberCommandError = function (outpu
7982
7995
  });
7983
7996
  }); };
7984
7997
  export var deserializeAws_restJson1BatchSuspendUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7985
- var contents, data;
7986
- return __generator(this, function (_a) {
7987
- switch (_a.label) {
7998
+ var contents, data, _a, _b;
7999
+ return __generator(this, function (_c) {
8000
+ switch (_c.label) {
7988
8001
  case 0:
7989
8002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7990
8003
  return [2 /*return*/, deserializeAws_restJson1BatchSuspendUserCommandError(output, context)];
@@ -7993,9 +8006,11 @@ export var deserializeAws_restJson1BatchSuspendUserCommand = function (output, c
7993
8006
  $metadata: deserializeMetadata(output),
7994
8007
  UserErrors: undefined,
7995
8008
  };
8009
+ _a = __expectNonNull;
8010
+ _b = __expectObject;
7996
8011
  return [4 /*yield*/, parseBody(output.body, context)];
7997
8012
  case 1:
7998
- data = _a.sent();
8013
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7999
8014
  if (data.UserErrors !== undefined && data.UserErrors !== null) {
8000
8015
  contents.UserErrors = deserializeAws_restJson1UserErrorList(data.UserErrors, context);
8001
8016
  }
@@ -8090,9 +8105,9 @@ var deserializeAws_restJson1BatchSuspendUserCommandError = function (output, con
8090
8105
  });
8091
8106
  }); };
8092
8107
  export var deserializeAws_restJson1BatchUnsuspendUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8093
- var contents, data;
8094
- return __generator(this, function (_a) {
8095
- switch (_a.label) {
8108
+ var contents, data, _a, _b;
8109
+ return __generator(this, function (_c) {
8110
+ switch (_c.label) {
8096
8111
  case 0:
8097
8112
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8098
8113
  return [2 /*return*/, deserializeAws_restJson1BatchUnsuspendUserCommandError(output, context)];
@@ -8101,9 +8116,11 @@ export var deserializeAws_restJson1BatchUnsuspendUserCommand = function (output,
8101
8116
  $metadata: deserializeMetadata(output),
8102
8117
  UserErrors: undefined,
8103
8118
  };
8119
+ _a = __expectNonNull;
8120
+ _b = __expectObject;
8104
8121
  return [4 /*yield*/, parseBody(output.body, context)];
8105
8122
  case 1:
8106
- data = _a.sent();
8123
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8107
8124
  if (data.UserErrors !== undefined && data.UserErrors !== null) {
8108
8125
  contents.UserErrors = deserializeAws_restJson1UserErrorList(data.UserErrors, context);
8109
8126
  }
@@ -8198,9 +8215,9 @@ var deserializeAws_restJson1BatchUnsuspendUserCommandError = function (output, c
8198
8215
  });
8199
8216
  }); };
8200
8217
  export var deserializeAws_restJson1BatchUpdatePhoneNumberCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8201
- var contents, data;
8202
- return __generator(this, function (_a) {
8203
- switch (_a.label) {
8218
+ var contents, data, _a, _b;
8219
+ return __generator(this, function (_c) {
8220
+ switch (_c.label) {
8204
8221
  case 0:
8205
8222
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8206
8223
  return [2 /*return*/, deserializeAws_restJson1BatchUpdatePhoneNumberCommandError(output, context)];
@@ -8209,9 +8226,11 @@ export var deserializeAws_restJson1BatchUpdatePhoneNumberCommand = function (out
8209
8226
  $metadata: deserializeMetadata(output),
8210
8227
  PhoneNumberErrors: undefined,
8211
8228
  };
8229
+ _a = __expectNonNull;
8230
+ _b = __expectObject;
8212
8231
  return [4 /*yield*/, parseBody(output.body, context)];
8213
8232
  case 1:
8214
- data = _a.sent();
8233
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8215
8234
  if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
8216
8235
  contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
8217
8236
  }
@@ -8306,9 +8325,9 @@ var deserializeAws_restJson1BatchUpdatePhoneNumberCommandError = function (outpu
8306
8325
  });
8307
8326
  }); };
8308
8327
  export var deserializeAws_restJson1BatchUpdateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8309
- var contents, data;
8310
- return __generator(this, function (_a) {
8311
- switch (_a.label) {
8328
+ var contents, data, _a, _b;
8329
+ return __generator(this, function (_c) {
8330
+ switch (_c.label) {
8312
8331
  case 0:
8313
8332
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8314
8333
  return [2 /*return*/, deserializeAws_restJson1BatchUpdateUserCommandError(output, context)];
@@ -8317,9 +8336,11 @@ export var deserializeAws_restJson1BatchUpdateUserCommand = function (output, co
8317
8336
  $metadata: deserializeMetadata(output),
8318
8337
  UserErrors: undefined,
8319
8338
  };
8339
+ _a = __expectNonNull;
8340
+ _b = __expectObject;
8320
8341
  return [4 /*yield*/, parseBody(output.body, context)];
8321
8342
  case 1:
8322
- data = _a.sent();
8343
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8323
8344
  if (data.UserErrors !== undefined && data.UserErrors !== null) {
8324
8345
  contents.UserErrors = deserializeAws_restJson1UserErrorList(data.UserErrors, context);
8325
8346
  }
@@ -8414,9 +8435,9 @@ var deserializeAws_restJson1BatchUpdateUserCommandError = function (output, cont
8414
8435
  });
8415
8436
  }); };
8416
8437
  export var deserializeAws_restJson1CreateAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8417
- var contents, data;
8418
- return __generator(this, function (_a) {
8419
- switch (_a.label) {
8438
+ var contents, data, _a, _b;
8439
+ return __generator(this, function (_c) {
8440
+ switch (_c.label) {
8420
8441
  case 0:
8421
8442
  if (output.statusCode !== 201 && output.statusCode >= 300) {
8422
8443
  return [2 /*return*/, deserializeAws_restJson1CreateAccountCommandError(output, context)];
@@ -8425,9 +8446,11 @@ export var deserializeAws_restJson1CreateAccountCommand = function (output, cont
8425
8446
  $metadata: deserializeMetadata(output),
8426
8447
  Account: undefined,
8427
8448
  };
8449
+ _a = __expectNonNull;
8450
+ _b = __expectObject;
8428
8451
  return [4 /*yield*/, parseBody(output.body, context)];
8429
8452
  case 1:
8430
- data = _a.sent();
8453
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8431
8454
  if (data.Account !== undefined && data.Account !== null) {
8432
8455
  contents.Account = deserializeAws_restJson1Account(data.Account, context);
8433
8456
  }
@@ -8522,9 +8545,9 @@ var deserializeAws_restJson1CreateAccountCommandError = function (output, contex
8522
8545
  });
8523
8546
  }); };
8524
8547
  export var deserializeAws_restJson1CreateAppInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8525
- var contents, data;
8526
- return __generator(this, function (_a) {
8527
- switch (_a.label) {
8548
+ var contents, data, _a, _b;
8549
+ return __generator(this, function (_c) {
8550
+ switch (_c.label) {
8528
8551
  case 0:
8529
8552
  if (output.statusCode !== 201 && output.statusCode >= 300) {
8530
8553
  return [2 /*return*/, deserializeAws_restJson1CreateAppInstanceCommandError(output, context)];
@@ -8533,9 +8556,11 @@ export var deserializeAws_restJson1CreateAppInstanceCommand = function (output,
8533
8556
  $metadata: deserializeMetadata(output),
8534
8557
  AppInstanceArn: undefined,
8535
8558
  };
8559
+ _a = __expectNonNull;
8560
+ _b = __expectObject;
8536
8561
  return [4 /*yield*/, parseBody(output.body, context)];
8537
8562
  case 1:
8538
- data = _a.sent();
8563
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8539
8564
  if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
8540
8565
  contents.AppInstanceArn = __expectString(data.AppInstanceArn);
8541
8566
  }
@@ -8638,9 +8663,9 @@ var deserializeAws_restJson1CreateAppInstanceCommandError = function (output, co
8638
8663
  });
8639
8664
  }); };
8640
8665
  export var deserializeAws_restJson1CreateAppInstanceAdminCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8641
- var contents, data;
8642
- return __generator(this, function (_a) {
8643
- switch (_a.label) {
8666
+ var contents, data, _a, _b;
8667
+ return __generator(this, function (_c) {
8668
+ switch (_c.label) {
8644
8669
  case 0:
8645
8670
  if (output.statusCode !== 201 && output.statusCode >= 300) {
8646
8671
  return [2 /*return*/, deserializeAws_restJson1CreateAppInstanceAdminCommandError(output, context)];
@@ -8650,9 +8675,11 @@ export var deserializeAws_restJson1CreateAppInstanceAdminCommand = function (out
8650
8675
  AppInstanceAdmin: undefined,
8651
8676
  AppInstanceArn: undefined,
8652
8677
  };
8678
+ _a = __expectNonNull;
8679
+ _b = __expectObject;
8653
8680
  return [4 /*yield*/, parseBody(output.body, context)];
8654
8681
  case 1:
8655
- data = _a.sent();
8682
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8656
8683
  if (data.AppInstanceAdmin !== undefined && data.AppInstanceAdmin !== null) {
8657
8684
  contents.AppInstanceAdmin = deserializeAws_restJson1Identity(data.AppInstanceAdmin, context);
8658
8685
  }
@@ -8758,9 +8785,9 @@ var deserializeAws_restJson1CreateAppInstanceAdminCommandError = function (outpu
8758
8785
  });
8759
8786
  }); };
8760
8787
  export var deserializeAws_restJson1CreateAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8761
- var contents, data;
8762
- return __generator(this, function (_a) {
8763
- switch (_a.label) {
8788
+ var contents, data, _a, _b;
8789
+ return __generator(this, function (_c) {
8790
+ switch (_c.label) {
8764
8791
  case 0:
8765
8792
  if (output.statusCode !== 201 && output.statusCode >= 300) {
8766
8793
  return [2 /*return*/, deserializeAws_restJson1CreateAppInstanceUserCommandError(output, context)];
@@ -8769,9 +8796,11 @@ export var deserializeAws_restJson1CreateAppInstanceUserCommand = function (outp
8769
8796
  $metadata: deserializeMetadata(output),
8770
8797
  AppInstanceUserArn: undefined,
8771
8798
  };
8799
+ _a = __expectNonNull;
8800
+ _b = __expectObject;
8772
8801
  return [4 /*yield*/, parseBody(output.body, context)];
8773
8802
  case 1:
8774
- data = _a.sent();
8803
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8775
8804
  if (data.AppInstanceUserArn !== undefined && data.AppInstanceUserArn !== null) {
8776
8805
  contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
8777
8806
  }
@@ -8874,9 +8903,9 @@ var deserializeAws_restJson1CreateAppInstanceUserCommandError = function (output
8874
8903
  });
8875
8904
  }); };
8876
8905
  export var deserializeAws_restJson1CreateAttendeeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8877
- var contents, data;
8878
- return __generator(this, function (_a) {
8879
- switch (_a.label) {
8906
+ var contents, data, _a, _b;
8907
+ return __generator(this, function (_c) {
8908
+ switch (_c.label) {
8880
8909
  case 0:
8881
8910
  if (output.statusCode !== 201 && output.statusCode >= 300) {
8882
8911
  return [2 /*return*/, deserializeAws_restJson1CreateAttendeeCommandError(output, context)];
@@ -8885,9 +8914,11 @@ export var deserializeAws_restJson1CreateAttendeeCommand = function (output, con
8885
8914
  $metadata: deserializeMetadata(output),
8886
8915
  Attendee: undefined,
8887
8916
  };
8917
+ _a = __expectNonNull;
8918
+ _b = __expectObject;
8888
8919
  return [4 /*yield*/, parseBody(output.body, context)];
8889
8920
  case 1:
8890
- data = _a.sent();
8921
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8891
8922
  if (data.Attendee !== undefined && data.Attendee !== null) {
8892
8923
  contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
8893
8924
  }
@@ -8990,9 +9021,9 @@ var deserializeAws_restJson1CreateAttendeeCommandError = function (output, conte
8990
9021
  });
8991
9022
  }); };
8992
9023
  export var deserializeAws_restJson1CreateBotCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8993
- var contents, data;
8994
- return __generator(this, function (_a) {
8995
- switch (_a.label) {
9024
+ var contents, data, _a, _b;
9025
+ return __generator(this, function (_c) {
9026
+ switch (_c.label) {
8996
9027
  case 0:
8997
9028
  if (output.statusCode !== 201 && output.statusCode >= 300) {
8998
9029
  return [2 /*return*/, deserializeAws_restJson1CreateBotCommandError(output, context)];
@@ -9001,9 +9032,11 @@ export var deserializeAws_restJson1CreateBotCommand = function (output, context)
9001
9032
  $metadata: deserializeMetadata(output),
9002
9033
  Bot: undefined,
9003
9034
  };
9035
+ _a = __expectNonNull;
9036
+ _b = __expectObject;
9004
9037
  return [4 /*yield*/, parseBody(output.body, context)];
9005
9038
  case 1:
9006
- data = _a.sent();
9039
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9007
9040
  if (data.Bot !== undefined && data.Bot !== null) {
9008
9041
  contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
9009
9042
  }
@@ -9106,9 +9139,9 @@ var deserializeAws_restJson1CreateBotCommandError = function (output, context) {
9106
9139
  });
9107
9140
  }); };
9108
9141
  export var deserializeAws_restJson1CreateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9109
- var contents, data;
9110
- return __generator(this, function (_a) {
9111
- switch (_a.label) {
9142
+ var contents, data, _a, _b;
9143
+ return __generator(this, function (_c) {
9144
+ switch (_c.label) {
9112
9145
  case 0:
9113
9146
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9114
9147
  return [2 /*return*/, deserializeAws_restJson1CreateChannelCommandError(output, context)];
@@ -9117,9 +9150,11 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
9117
9150
  $metadata: deserializeMetadata(output),
9118
9151
  ChannelArn: undefined,
9119
9152
  };
9153
+ _a = __expectNonNull;
9154
+ _b = __expectObject;
9120
9155
  return [4 /*yield*/, parseBody(output.body, context)];
9121
9156
  case 1:
9122
- data = _a.sent();
9157
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9123
9158
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
9124
9159
  contents.ChannelArn = __expectString(data.ChannelArn);
9125
9160
  }
@@ -9222,9 +9257,9 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
9222
9257
  });
9223
9258
  }); };
9224
9259
  export var deserializeAws_restJson1CreateChannelBanCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9225
- var contents, data;
9226
- return __generator(this, function (_a) {
9227
- switch (_a.label) {
9260
+ var contents, data, _a, _b;
9261
+ return __generator(this, function (_c) {
9262
+ switch (_c.label) {
9228
9263
  case 0:
9229
9264
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9230
9265
  return [2 /*return*/, deserializeAws_restJson1CreateChannelBanCommandError(output, context)];
@@ -9234,9 +9269,11 @@ export var deserializeAws_restJson1CreateChannelBanCommand = function (output, c
9234
9269
  ChannelArn: undefined,
9235
9270
  Member: undefined,
9236
9271
  };
9272
+ _a = __expectNonNull;
9273
+ _b = __expectObject;
9237
9274
  return [4 /*yield*/, parseBody(output.body, context)];
9238
9275
  case 1:
9239
- data = _a.sent();
9276
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9240
9277
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
9241
9278
  contents.ChannelArn = __expectString(data.ChannelArn);
9242
9279
  }
@@ -9342,9 +9379,9 @@ var deserializeAws_restJson1CreateChannelBanCommandError = function (output, con
9342
9379
  });
9343
9380
  }); };
9344
9381
  export var deserializeAws_restJson1CreateChannelMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9345
- var contents, data;
9346
- return __generator(this, function (_a) {
9347
- switch (_a.label) {
9382
+ var contents, data, _a, _b;
9383
+ return __generator(this, function (_c) {
9384
+ switch (_c.label) {
9348
9385
  case 0:
9349
9386
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9350
9387
  return [2 /*return*/, deserializeAws_restJson1CreateChannelMembershipCommandError(output, context)];
@@ -9354,9 +9391,11 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
9354
9391
  ChannelArn: undefined,
9355
9392
  Member: undefined,
9356
9393
  };
9394
+ _a = __expectNonNull;
9395
+ _b = __expectObject;
9357
9396
  return [4 /*yield*/, parseBody(output.body, context)];
9358
9397
  case 1:
9359
- data = _a.sent();
9398
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9360
9399
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
9361
9400
  contents.ChannelArn = __expectString(data.ChannelArn);
9362
9401
  }
@@ -9462,9 +9501,9 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
9462
9501
  });
9463
9502
  }); };
9464
9503
  export var deserializeAws_restJson1CreateChannelModeratorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9465
- var contents, data;
9466
- return __generator(this, function (_a) {
9467
- switch (_a.label) {
9504
+ var contents, data, _a, _b;
9505
+ return __generator(this, function (_c) {
9506
+ switch (_c.label) {
9468
9507
  case 0:
9469
9508
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9470
9509
  return [2 /*return*/, deserializeAws_restJson1CreateChannelModeratorCommandError(output, context)];
@@ -9474,9 +9513,11 @@ export var deserializeAws_restJson1CreateChannelModeratorCommand = function (out
9474
9513
  ChannelArn: undefined,
9475
9514
  ChannelModerator: undefined,
9476
9515
  };
9516
+ _a = __expectNonNull;
9517
+ _b = __expectObject;
9477
9518
  return [4 /*yield*/, parseBody(output.body, context)];
9478
9519
  case 1:
9479
- data = _a.sent();
9520
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9480
9521
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
9481
9522
  contents.ChannelArn = __expectString(data.ChannelArn);
9482
9523
  }
@@ -9582,9 +9623,9 @@ var deserializeAws_restJson1CreateChannelModeratorCommandError = function (outpu
9582
9623
  });
9583
9624
  }); };
9584
9625
  export var deserializeAws_restJson1CreateMediaCapturePipelineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9585
- var contents, data;
9586
- return __generator(this, function (_a) {
9587
- switch (_a.label) {
9626
+ var contents, data, _a, _b;
9627
+ return __generator(this, function (_c) {
9628
+ switch (_c.label) {
9588
9629
  case 0:
9589
9630
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9590
9631
  return [2 /*return*/, deserializeAws_restJson1CreateMediaCapturePipelineCommandError(output, context)];
@@ -9593,9 +9634,11 @@ export var deserializeAws_restJson1CreateMediaCapturePipelineCommand = function
9593
9634
  $metadata: deserializeMetadata(output),
9594
9635
  MediaCapturePipeline: undefined,
9595
9636
  };
9637
+ _a = __expectNonNull;
9638
+ _b = __expectObject;
9596
9639
  return [4 /*yield*/, parseBody(output.body, context)];
9597
9640
  case 1:
9598
- data = _a.sent();
9641
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9599
9642
  if (data.MediaCapturePipeline !== undefined && data.MediaCapturePipeline !== null) {
9600
9643
  contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
9601
9644
  }
@@ -9690,9 +9733,9 @@ var deserializeAws_restJson1CreateMediaCapturePipelineCommandError = function (o
9690
9733
  });
9691
9734
  }); };
9692
9735
  export var deserializeAws_restJson1CreateMeetingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9693
- var contents, data;
9694
- return __generator(this, function (_a) {
9695
- switch (_a.label) {
9736
+ var contents, data, _a, _b;
9737
+ return __generator(this, function (_c) {
9738
+ switch (_c.label) {
9696
9739
  case 0:
9697
9740
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9698
9741
  return [2 /*return*/, deserializeAws_restJson1CreateMeetingCommandError(output, context)];
@@ -9701,9 +9744,11 @@ export var deserializeAws_restJson1CreateMeetingCommand = function (output, cont
9701
9744
  $metadata: deserializeMetadata(output),
9702
9745
  Meeting: undefined,
9703
9746
  };
9747
+ _a = __expectNonNull;
9748
+ _b = __expectObject;
9704
9749
  return [4 /*yield*/, parseBody(output.body, context)];
9705
9750
  case 1:
9706
- data = _a.sent();
9751
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9707
9752
  if (data.Meeting !== undefined && data.Meeting !== null) {
9708
9753
  contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
9709
9754
  }
@@ -9798,9 +9843,9 @@ var deserializeAws_restJson1CreateMeetingCommandError = function (output, contex
9798
9843
  });
9799
9844
  }); };
9800
9845
  export var deserializeAws_restJson1CreateMeetingDialOutCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9801
- var contents, data;
9802
- return __generator(this, function (_a) {
9803
- switch (_a.label) {
9846
+ var contents, data, _a, _b;
9847
+ return __generator(this, function (_c) {
9848
+ switch (_c.label) {
9804
9849
  case 0:
9805
9850
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9806
9851
  return [2 /*return*/, deserializeAws_restJson1CreateMeetingDialOutCommandError(output, context)];
@@ -9809,9 +9854,11 @@ export var deserializeAws_restJson1CreateMeetingDialOutCommand = function (outpu
9809
9854
  $metadata: deserializeMetadata(output),
9810
9855
  TransactionId: undefined,
9811
9856
  };
9857
+ _a = __expectNonNull;
9858
+ _b = __expectObject;
9812
9859
  return [4 /*yield*/, parseBody(output.body, context)];
9813
9860
  case 1:
9814
- data = _a.sent();
9861
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9815
9862
  if (data.TransactionId !== undefined && data.TransactionId !== null) {
9816
9863
  contents.TransactionId = __expectString(data.TransactionId);
9817
9864
  }
@@ -9906,9 +9953,9 @@ var deserializeAws_restJson1CreateMeetingDialOutCommandError = function (output,
9906
9953
  });
9907
9954
  }); };
9908
9955
  export var deserializeAws_restJson1CreateMeetingWithAttendeesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9909
- var contents, data;
9910
- return __generator(this, function (_a) {
9911
- switch (_a.label) {
9956
+ var contents, data, _a, _b;
9957
+ return __generator(this, function (_c) {
9958
+ switch (_c.label) {
9912
9959
  case 0:
9913
9960
  if (output.statusCode !== 201 && output.statusCode >= 300) {
9914
9961
  return [2 /*return*/, deserializeAws_restJson1CreateMeetingWithAttendeesCommandError(output, context)];
@@ -9919,9 +9966,11 @@ export var deserializeAws_restJson1CreateMeetingWithAttendeesCommand = function
9919
9966
  Errors: undefined,
9920
9967
  Meeting: undefined,
9921
9968
  };
9969
+ _a = __expectNonNull;
9970
+ _b = __expectObject;
9922
9971
  return [4 /*yield*/, parseBody(output.body, context)];
9923
9972
  case 1:
9924
- data = _a.sent();
9973
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9925
9974
  if (data.Attendees !== undefined && data.Attendees !== null) {
9926
9975
  contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
9927
9976
  }
@@ -10022,9 +10071,9 @@ var deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = function (o
10022
10071
  });
10023
10072
  }); };
10024
10073
  export var deserializeAws_restJson1CreatePhoneNumberOrderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10025
- var contents, data;
10026
- return __generator(this, function (_a) {
10027
- switch (_a.label) {
10074
+ var contents, data, _a, _b;
10075
+ return __generator(this, function (_c) {
10076
+ switch (_c.label) {
10028
10077
  case 0:
10029
10078
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10030
10079
  return [2 /*return*/, deserializeAws_restJson1CreatePhoneNumberOrderCommandError(output, context)];
@@ -10033,9 +10082,11 @@ export var deserializeAws_restJson1CreatePhoneNumberOrderCommand = function (out
10033
10082
  $metadata: deserializeMetadata(output),
10034
10083
  PhoneNumberOrder: undefined,
10035
10084
  };
10085
+ _a = __expectNonNull;
10086
+ _b = __expectObject;
10036
10087
  return [4 /*yield*/, parseBody(output.body, context)];
10037
10088
  case 1:
10038
- data = _a.sent();
10089
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10039
10090
  if (data.PhoneNumberOrder !== undefined && data.PhoneNumberOrder !== null) {
10040
10091
  contents.PhoneNumberOrder = deserializeAws_restJson1PhoneNumberOrder(data.PhoneNumberOrder, context);
10041
10092
  }
@@ -10138,9 +10189,9 @@ var deserializeAws_restJson1CreatePhoneNumberOrderCommandError = function (outpu
10138
10189
  });
10139
10190
  }); };
10140
10191
  export var deserializeAws_restJson1CreateProxySessionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10141
- var contents, data;
10142
- return __generator(this, function (_a) {
10143
- switch (_a.label) {
10192
+ var contents, data, _a, _b;
10193
+ return __generator(this, function (_c) {
10194
+ switch (_c.label) {
10144
10195
  case 0:
10145
10196
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10146
10197
  return [2 /*return*/, deserializeAws_restJson1CreateProxySessionCommandError(output, context)];
@@ -10149,9 +10200,11 @@ export var deserializeAws_restJson1CreateProxySessionCommand = function (output,
10149
10200
  $metadata: deserializeMetadata(output),
10150
10201
  ProxySession: undefined,
10151
10202
  };
10203
+ _a = __expectNonNull;
10204
+ _b = __expectObject;
10152
10205
  return [4 /*yield*/, parseBody(output.body, context)];
10153
10206
  case 1:
10154
- data = _a.sent();
10207
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10155
10208
  if (data.ProxySession !== undefined && data.ProxySession !== null) {
10156
10209
  contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
10157
10210
  }
@@ -10246,9 +10299,9 @@ var deserializeAws_restJson1CreateProxySessionCommandError = function (output, c
10246
10299
  });
10247
10300
  }); };
10248
10301
  export var deserializeAws_restJson1CreateRoomCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10249
- var contents, data;
10250
- return __generator(this, function (_a) {
10251
- switch (_a.label) {
10302
+ var contents, data, _a, _b;
10303
+ return __generator(this, function (_c) {
10304
+ switch (_c.label) {
10252
10305
  case 0:
10253
10306
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10254
10307
  return [2 /*return*/, deserializeAws_restJson1CreateRoomCommandError(output, context)];
@@ -10257,9 +10310,11 @@ export var deserializeAws_restJson1CreateRoomCommand = function (output, context
10257
10310
  $metadata: deserializeMetadata(output),
10258
10311
  Room: undefined,
10259
10312
  };
10313
+ _a = __expectNonNull;
10314
+ _b = __expectObject;
10260
10315
  return [4 /*yield*/, parseBody(output.body, context)];
10261
10316
  case 1:
10262
- data = _a.sent();
10317
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10263
10318
  if (data.Room !== undefined && data.Room !== null) {
10264
10319
  contents.Room = deserializeAws_restJson1Room(data.Room, context);
10265
10320
  }
@@ -10362,9 +10417,9 @@ var deserializeAws_restJson1CreateRoomCommandError = function (output, context)
10362
10417
  });
10363
10418
  }); };
10364
10419
  export var deserializeAws_restJson1CreateRoomMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10365
- var contents, data;
10366
- return __generator(this, function (_a) {
10367
- switch (_a.label) {
10420
+ var contents, data, _a, _b;
10421
+ return __generator(this, function (_c) {
10422
+ switch (_c.label) {
10368
10423
  case 0:
10369
10424
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10370
10425
  return [2 /*return*/, deserializeAws_restJson1CreateRoomMembershipCommandError(output, context)];
@@ -10373,9 +10428,11 @@ export var deserializeAws_restJson1CreateRoomMembershipCommand = function (outpu
10373
10428
  $metadata: deserializeMetadata(output),
10374
10429
  RoomMembership: undefined,
10375
10430
  };
10431
+ _a = __expectNonNull;
10432
+ _b = __expectObject;
10376
10433
  return [4 /*yield*/, parseBody(output.body, context)];
10377
10434
  case 1:
10378
- data = _a.sent();
10435
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10379
10436
  if (data.RoomMembership !== undefined && data.RoomMembership !== null) {
10380
10437
  contents.RoomMembership = deserializeAws_restJson1RoomMembership(data.RoomMembership, context);
10381
10438
  }
@@ -10486,9 +10543,9 @@ var deserializeAws_restJson1CreateRoomMembershipCommandError = function (output,
10486
10543
  });
10487
10544
  }); };
10488
10545
  export var deserializeAws_restJson1CreateSipMediaApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10489
- var contents, data;
10490
- return __generator(this, function (_a) {
10491
- switch (_a.label) {
10546
+ var contents, data, _a, _b;
10547
+ return __generator(this, function (_c) {
10548
+ switch (_c.label) {
10492
10549
  case 0:
10493
10550
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10494
10551
  return [2 /*return*/, deserializeAws_restJson1CreateSipMediaApplicationCommandError(output, context)];
@@ -10497,9 +10554,11 @@ export var deserializeAws_restJson1CreateSipMediaApplicationCommand = function (
10497
10554
  $metadata: deserializeMetadata(output),
10498
10555
  SipMediaApplication: undefined,
10499
10556
  };
10557
+ _a = __expectNonNull;
10558
+ _b = __expectObject;
10500
10559
  return [4 /*yield*/, parseBody(output.body, context)];
10501
10560
  case 1:
10502
- data = _a.sent();
10561
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10503
10562
  if (data.SipMediaApplication !== undefined && data.SipMediaApplication !== null) {
10504
10563
  contents.SipMediaApplication = deserializeAws_restJson1SipMediaApplication(data.SipMediaApplication, context);
10505
10564
  }
@@ -10610,9 +10669,9 @@ var deserializeAws_restJson1CreateSipMediaApplicationCommandError = function (ou
10610
10669
  });
10611
10670
  }); };
10612
10671
  export var deserializeAws_restJson1CreateSipMediaApplicationCallCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10613
- var contents, data;
10614
- return __generator(this, function (_a) {
10615
- switch (_a.label) {
10672
+ var contents, data, _a, _b;
10673
+ return __generator(this, function (_c) {
10674
+ switch (_c.label) {
10616
10675
  case 0:
10617
10676
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10618
10677
  return [2 /*return*/, deserializeAws_restJson1CreateSipMediaApplicationCallCommandError(output, context)];
@@ -10621,9 +10680,11 @@ export var deserializeAws_restJson1CreateSipMediaApplicationCallCommand = functi
10621
10680
  $metadata: deserializeMetadata(output),
10622
10681
  SipMediaApplicationCall: undefined,
10623
10682
  };
10683
+ _a = __expectNonNull;
10684
+ _b = __expectObject;
10624
10685
  return [4 /*yield*/, parseBody(output.body, context)];
10625
10686
  case 1:
10626
- data = _a.sent();
10687
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10627
10688
  if (data.SipMediaApplicationCall !== undefined && data.SipMediaApplicationCall !== null) {
10628
10689
  contents.SipMediaApplicationCall = deserializeAws_restJson1SipMediaApplicationCall(data.SipMediaApplicationCall, context);
10629
10690
  }
@@ -10632,84 +10693,92 @@ export var deserializeAws_restJson1CreateSipMediaApplicationCallCommand = functi
10632
10693
  });
10633
10694
  }); };
10634
10695
  var deserializeAws_restJson1CreateSipMediaApplicationCallCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10635
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
10636
- var _k;
10637
- return __generator(this, function (_l) {
10638
- switch (_l.label) {
10696
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message;
10697
+ var _l;
10698
+ return __generator(this, function (_m) {
10699
+ switch (_m.label) {
10639
10700
  case 0:
10640
10701
  _a = [__assign({}, output)];
10641
- _k = {};
10702
+ _l = {};
10642
10703
  return [4 /*yield*/, parseBody(output.body, context)];
10643
10704
  case 1:
10644
- parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
10705
+ parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
10645
10706
  errorCode = "UnknownError";
10646
10707
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10647
10708
  _b = errorCode;
10648
10709
  switch (_b) {
10649
- case "BadRequestException": return [3 /*break*/, 2];
10650
- case "com.amazonaws.chime#BadRequestException": return [3 /*break*/, 2];
10651
- case "ForbiddenException": return [3 /*break*/, 4];
10652
- case "com.amazonaws.chime#ForbiddenException": return [3 /*break*/, 4];
10653
- case "ResourceLimitExceededException": return [3 /*break*/, 6];
10654
- case "com.amazonaws.chime#ResourceLimitExceededException": return [3 /*break*/, 6];
10655
- case "ServiceFailureException": return [3 /*break*/, 8];
10656
- case "com.amazonaws.chime#ServiceFailureException": return [3 /*break*/, 8];
10657
- case "ServiceUnavailableException": return [3 /*break*/, 10];
10658
- case "com.amazonaws.chime#ServiceUnavailableException": return [3 /*break*/, 10];
10659
- case "ThrottledClientException": return [3 /*break*/, 12];
10660
- case "com.amazonaws.chime#ThrottledClientException": return [3 /*break*/, 12];
10661
- case "UnauthorizedClientException": return [3 /*break*/, 14];
10662
- case "com.amazonaws.chime#UnauthorizedClientException": return [3 /*break*/, 14];
10710
+ case "AccessDeniedException": return [3 /*break*/, 2];
10711
+ case "com.amazonaws.chime#AccessDeniedException": return [3 /*break*/, 2];
10712
+ case "BadRequestException": return [3 /*break*/, 4];
10713
+ case "com.amazonaws.chime#BadRequestException": return [3 /*break*/, 4];
10714
+ case "ForbiddenException": return [3 /*break*/, 6];
10715
+ case "com.amazonaws.chime#ForbiddenException": return [3 /*break*/, 6];
10716
+ case "ResourceLimitExceededException": return [3 /*break*/, 8];
10717
+ case "com.amazonaws.chime#ResourceLimitExceededException": return [3 /*break*/, 8];
10718
+ case "ServiceFailureException": return [3 /*break*/, 10];
10719
+ case "com.amazonaws.chime#ServiceFailureException": return [3 /*break*/, 10];
10720
+ case "ServiceUnavailableException": return [3 /*break*/, 12];
10721
+ case "com.amazonaws.chime#ServiceUnavailableException": return [3 /*break*/, 12];
10722
+ case "ThrottledClientException": return [3 /*break*/, 14];
10723
+ case "com.amazonaws.chime#ThrottledClientException": return [3 /*break*/, 14];
10724
+ case "UnauthorizedClientException": return [3 /*break*/, 16];
10725
+ case "com.amazonaws.chime#UnauthorizedClientException": return [3 /*break*/, 16];
10663
10726
  }
10664
- return [3 /*break*/, 16];
10727
+ return [3 /*break*/, 18];
10665
10728
  case 2:
10666
10729
  _c = [{}];
10667
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
10730
+ return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
10668
10731
  case 3:
10669
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10670
- return [3 /*break*/, 17];
10732
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10733
+ return [3 /*break*/, 19];
10671
10734
  case 4:
10672
10735
  _d = [{}];
10673
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
10736
+ return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
10674
10737
  case 5:
10675
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10676
- return [3 /*break*/, 17];
10738
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10739
+ return [3 /*break*/, 19];
10677
10740
  case 6:
10678
10741
  _e = [{}];
10679
- return [4 /*yield*/, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
10742
+ return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
10680
10743
  case 7:
10681
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10682
- return [3 /*break*/, 17];
10744
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10745
+ return [3 /*break*/, 19];
10683
10746
  case 8:
10684
10747
  _f = [{}];
10685
- return [4 /*yield*/, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
10748
+ return [4 /*yield*/, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
10686
10749
  case 9:
10687
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10688
- return [3 /*break*/, 17];
10750
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10751
+ return [3 /*break*/, 19];
10689
10752
  case 10:
10690
10753
  _g = [{}];
10691
- return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
10754
+ return [4 /*yield*/, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
10692
10755
  case 11:
10693
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10694
- return [3 /*break*/, 17];
10756
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10757
+ return [3 /*break*/, 19];
10695
10758
  case 12:
10696
10759
  _h = [{}];
10697
- return [4 /*yield*/, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
10760
+ return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
10698
10761
  case 13:
10699
- response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10700
- return [3 /*break*/, 17];
10762
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10763
+ return [3 /*break*/, 19];
10701
10764
  case 14:
10702
10765
  _j = [{}];
10703
- return [4 /*yield*/, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
10766
+ return [4 /*yield*/, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
10704
10767
  case 15:
10705
- response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10706
- return [3 /*break*/, 17];
10768
+ response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10769
+ return [3 /*break*/, 19];
10707
10770
  case 16:
10771
+ _k = [{}];
10772
+ return [4 /*yield*/, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
10773
+ case 17:
10774
+ response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10775
+ return [3 /*break*/, 19];
10776
+ case 18:
10708
10777
  parsedBody = parsedOutput.body;
10709
10778
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
10710
10779
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
10711
- _l.label = 17;
10712
- case 17:
10780
+ _m.label = 19;
10781
+ case 19:
10713
10782
  message = response.message || response.Message || errorCode;
10714
10783
  response.message = message;
10715
10784
  delete response.Message;
@@ -10718,9 +10787,9 @@ var deserializeAws_restJson1CreateSipMediaApplicationCallCommandError = function
10718
10787
  });
10719
10788
  }); };
10720
10789
  export var deserializeAws_restJson1CreateSipRuleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10721
- var contents, data;
10722
- return __generator(this, function (_a) {
10723
- switch (_a.label) {
10790
+ var contents, data, _a, _b;
10791
+ return __generator(this, function (_c) {
10792
+ switch (_c.label) {
10724
10793
  case 0:
10725
10794
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10726
10795
  return [2 /*return*/, deserializeAws_restJson1CreateSipRuleCommandError(output, context)];
@@ -10729,9 +10798,11 @@ export var deserializeAws_restJson1CreateSipRuleCommand = function (output, cont
10729
10798
  $metadata: deserializeMetadata(output),
10730
10799
  SipRule: undefined,
10731
10800
  };
10801
+ _a = __expectNonNull;
10802
+ _b = __expectObject;
10732
10803
  return [4 /*yield*/, parseBody(output.body, context)];
10733
10804
  case 1:
10734
- data = _a.sent();
10805
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10735
10806
  if (data.SipRule !== undefined && data.SipRule !== null) {
10736
10807
  contents.SipRule = deserializeAws_restJson1SipRule(data.SipRule, context);
10737
10808
  }
@@ -10842,10 +10913,10 @@ var deserializeAws_restJson1CreateSipRuleCommandError = function (output, contex
10842
10913
  });
10843
10914
  }); };
10844
10915
  export var deserializeAws_restJson1CreateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10845
- var contents, data;
10846
- return __generator(this, function (_a) {
10847
- switch (_a.label) {
10848
- case 0:
10916
+ var contents, data, _a, _b;
10917
+ return __generator(this, function (_c) {
10918
+ switch (_c.label) {
10919
+ case 0:
10849
10920
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10850
10921
  return [2 /*return*/, deserializeAws_restJson1CreateUserCommandError(output, context)];
10851
10922
  }
@@ -10853,9 +10924,11 @@ export var deserializeAws_restJson1CreateUserCommand = function (output, context
10853
10924
  $metadata: deserializeMetadata(output),
10854
10925
  User: undefined,
10855
10926
  };
10927
+ _a = __expectNonNull;
10928
+ _b = __expectObject;
10856
10929
  return [4 /*yield*/, parseBody(output.body, context)];
10857
10930
  case 1:
10858
- data = _a.sent();
10931
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10859
10932
  if (data.User !== undefined && data.User !== null) {
10860
10933
  contents.User = deserializeAws_restJson1User(data.User, context);
10861
10934
  }
@@ -10958,9 +11031,9 @@ var deserializeAws_restJson1CreateUserCommandError = function (output, context)
10958
11031
  });
10959
11032
  }); };
10960
11033
  export var deserializeAws_restJson1CreateVoiceConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10961
- var contents, data;
10962
- return __generator(this, function (_a) {
10963
- switch (_a.label) {
11034
+ var contents, data, _a, _b;
11035
+ return __generator(this, function (_c) {
11036
+ switch (_c.label) {
10964
11037
  case 0:
10965
11038
  if (output.statusCode !== 201 && output.statusCode >= 300) {
10966
11039
  return [2 /*return*/, deserializeAws_restJson1CreateVoiceConnectorCommandError(output, context)];
@@ -10969,9 +11042,11 @@ export var deserializeAws_restJson1CreateVoiceConnectorCommand = function (outpu
10969
11042
  $metadata: deserializeMetadata(output),
10970
11043
  VoiceConnector: undefined,
10971
11044
  };
11045
+ _a = __expectNonNull;
11046
+ _b = __expectObject;
10972
11047
  return [4 /*yield*/, parseBody(output.body, context)];
10973
11048
  case 1:
10974
- data = _a.sent();
11049
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
10975
11050
  if (data.VoiceConnector !== undefined && data.VoiceConnector !== null) {
10976
11051
  contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
10977
11052
  }
@@ -11074,9 +11149,9 @@ var deserializeAws_restJson1CreateVoiceConnectorCommandError = function (output,
11074
11149
  });
11075
11150
  }); };
11076
11151
  export var deserializeAws_restJson1CreateVoiceConnectorGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
11077
- var contents, data;
11078
- return __generator(this, function (_a) {
11079
- switch (_a.label) {
11152
+ var contents, data, _a, _b;
11153
+ return __generator(this, function (_c) {
11154
+ switch (_c.label) {
11080
11155
  case 0:
11081
11156
  if (output.statusCode !== 201 && output.statusCode >= 300) {
11082
11157
  return [2 /*return*/, deserializeAws_restJson1CreateVoiceConnectorGroupCommandError(output, context)];
@@ -11085,9 +11160,11 @@ export var deserializeAws_restJson1CreateVoiceConnectorGroupCommand = function (
11085
11160
  $metadata: deserializeMetadata(output),
11086
11161
  VoiceConnectorGroup: undefined,
11087
11162
  };
11163
+ _a = __expectNonNull;
11164
+ _b = __expectObject;
11088
11165
  return [4 /*yield*/, parseBody(output.body, context)];
11089
11166
  case 1:
11090
- data = _a.sent();
11167
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
11091
11168
  if (data.VoiceConnectorGroup !== undefined && data.VoiceConnectorGroup !== null) {
11092
11169
  contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
11093
11170
  }
@@ -14086,9 +14163,9 @@ var deserializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommandErr
14086
14163
  });
14087
14164
  }); };
14088
14165
  export var deserializeAws_restJson1DescribeAppInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14089
- var contents, data;
14090
- return __generator(this, function (_a) {
14091
- switch (_a.label) {
14166
+ var contents, data, _a, _b;
14167
+ return __generator(this, function (_c) {
14168
+ switch (_c.label) {
14092
14169
  case 0:
14093
14170
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14094
14171
  return [2 /*return*/, deserializeAws_restJson1DescribeAppInstanceCommandError(output, context)];
@@ -14097,9 +14174,11 @@ export var deserializeAws_restJson1DescribeAppInstanceCommand = function (output
14097
14174
  $metadata: deserializeMetadata(output),
14098
14175
  AppInstance: undefined,
14099
14176
  };
14177
+ _a = __expectNonNull;
14178
+ _b = __expectObject;
14100
14179
  return [4 /*yield*/, parseBody(output.body, context)];
14101
14180
  case 1:
14102
- data = _a.sent();
14181
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14103
14182
  if (data.AppInstance !== undefined && data.AppInstance !== null) {
14104
14183
  contents.AppInstance = deserializeAws_restJson1AppInstance(data.AppInstance, context);
14105
14184
  }
@@ -14186,9 +14265,9 @@ var deserializeAws_restJson1DescribeAppInstanceCommandError = function (output,
14186
14265
  });
14187
14266
  }); };
14188
14267
  export var deserializeAws_restJson1DescribeAppInstanceAdminCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14189
- var contents, data;
14190
- return __generator(this, function (_a) {
14191
- switch (_a.label) {
14268
+ var contents, data, _a, _b;
14269
+ return __generator(this, function (_c) {
14270
+ switch (_c.label) {
14192
14271
  case 0:
14193
14272
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14194
14273
  return [2 /*return*/, deserializeAws_restJson1DescribeAppInstanceAdminCommandError(output, context)];
@@ -14197,9 +14276,11 @@ export var deserializeAws_restJson1DescribeAppInstanceAdminCommand = function (o
14197
14276
  $metadata: deserializeMetadata(output),
14198
14277
  AppInstanceAdmin: undefined,
14199
14278
  };
14279
+ _a = __expectNonNull;
14280
+ _b = __expectObject;
14200
14281
  return [4 /*yield*/, parseBody(output.body, context)];
14201
14282
  case 1:
14202
- data = _a.sent();
14283
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14203
14284
  if (data.AppInstanceAdmin !== undefined && data.AppInstanceAdmin !== null) {
14204
14285
  contents.AppInstanceAdmin = deserializeAws_restJson1AppInstanceAdmin(data.AppInstanceAdmin, context);
14205
14286
  }
@@ -14286,9 +14367,9 @@ var deserializeAws_restJson1DescribeAppInstanceAdminCommandError = function (out
14286
14367
  });
14287
14368
  }); };
14288
14369
  export var deserializeAws_restJson1DescribeAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14289
- var contents, data;
14290
- return __generator(this, function (_a) {
14291
- switch (_a.label) {
14370
+ var contents, data, _a, _b;
14371
+ return __generator(this, function (_c) {
14372
+ switch (_c.label) {
14292
14373
  case 0:
14293
14374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14294
14375
  return [2 /*return*/, deserializeAws_restJson1DescribeAppInstanceUserCommandError(output, context)];
@@ -14297,9 +14378,11 @@ export var deserializeAws_restJson1DescribeAppInstanceUserCommand = function (ou
14297
14378
  $metadata: deserializeMetadata(output),
14298
14379
  AppInstanceUser: undefined,
14299
14380
  };
14381
+ _a = __expectNonNull;
14382
+ _b = __expectObject;
14300
14383
  return [4 /*yield*/, parseBody(output.body, context)];
14301
14384
  case 1:
14302
- data = _a.sent();
14385
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14303
14386
  if (data.AppInstanceUser !== undefined && data.AppInstanceUser !== null) {
14304
14387
  contents.AppInstanceUser = deserializeAws_restJson1AppInstanceUser(data.AppInstanceUser, context);
14305
14388
  }
@@ -14386,9 +14469,9 @@ var deserializeAws_restJson1DescribeAppInstanceUserCommandError = function (outp
14386
14469
  });
14387
14470
  }); };
14388
14471
  export var deserializeAws_restJson1DescribeChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14389
- var contents, data;
14390
- return __generator(this, function (_a) {
14391
- switch (_a.label) {
14472
+ var contents, data, _a, _b;
14473
+ return __generator(this, function (_c) {
14474
+ switch (_c.label) {
14392
14475
  case 0:
14393
14476
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14394
14477
  return [2 /*return*/, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
@@ -14397,9 +14480,11 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
14397
14480
  $metadata: deserializeMetadata(output),
14398
14481
  Channel: undefined,
14399
14482
  };
14483
+ _a = __expectNonNull;
14484
+ _b = __expectObject;
14400
14485
  return [4 /*yield*/, parseBody(output.body, context)];
14401
14486
  case 1:
14402
- data = _a.sent();
14487
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14403
14488
  if (data.Channel !== undefined && data.Channel !== null) {
14404
14489
  contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
14405
14490
  }
@@ -14486,9 +14571,9 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
14486
14571
  });
14487
14572
  }); };
14488
14573
  export var deserializeAws_restJson1DescribeChannelBanCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14489
- var contents, data;
14490
- return __generator(this, function (_a) {
14491
- switch (_a.label) {
14574
+ var contents, data, _a, _b;
14575
+ return __generator(this, function (_c) {
14576
+ switch (_c.label) {
14492
14577
  case 0:
14493
14578
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14494
14579
  return [2 /*return*/, deserializeAws_restJson1DescribeChannelBanCommandError(output, context)];
@@ -14497,9 +14582,11 @@ export var deserializeAws_restJson1DescribeChannelBanCommand = function (output,
14497
14582
  $metadata: deserializeMetadata(output),
14498
14583
  ChannelBan: undefined,
14499
14584
  };
14585
+ _a = __expectNonNull;
14586
+ _b = __expectObject;
14500
14587
  return [4 /*yield*/, parseBody(output.body, context)];
14501
14588
  case 1:
14502
- data = _a.sent();
14589
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14503
14590
  if (data.ChannelBan !== undefined && data.ChannelBan !== null) {
14504
14591
  contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
14505
14592
  }
@@ -14594,9 +14681,9 @@ var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, c
14594
14681
  });
14595
14682
  }); };
14596
14683
  export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14597
- var contents, data;
14598
- return __generator(this, function (_a) {
14599
- switch (_a.label) {
14684
+ var contents, data, _a, _b;
14685
+ return __generator(this, function (_c) {
14686
+ switch (_c.label) {
14600
14687
  case 0:
14601
14688
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14602
14689
  return [2 /*return*/, deserializeAws_restJson1DescribeChannelMembershipCommandError(output, context)];
@@ -14605,9 +14692,11 @@ export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (
14605
14692
  $metadata: deserializeMetadata(output),
14606
14693
  ChannelMembership: undefined,
14607
14694
  };
14695
+ _a = __expectNonNull;
14696
+ _b = __expectObject;
14608
14697
  return [4 /*yield*/, parseBody(output.body, context)];
14609
14698
  case 1:
14610
- data = _a.sent();
14699
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14611
14700
  if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
14612
14701
  contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
14613
14702
  }
@@ -14702,9 +14791,9 @@ var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (ou
14702
14791
  });
14703
14792
  }); };
14704
14793
  export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14705
- var contents, data;
14706
- return __generator(this, function (_a) {
14707
- switch (_a.label) {
14794
+ var contents, data, _a, _b;
14795
+ return __generator(this, function (_c) {
14796
+ switch (_c.label) {
14708
14797
  case 0:
14709
14798
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14710
14799
  return [2 /*return*/, deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError(output, context)];
@@ -14713,9 +14802,11 @@ export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCo
14713
14802
  $metadata: deserializeMetadata(output),
14714
14803
  ChannelMembership: undefined,
14715
14804
  };
14805
+ _a = __expectNonNull;
14806
+ _b = __expectObject;
14716
14807
  return [4 /*yield*/, parseBody(output.body, context)];
14717
14808
  case 1:
14718
- data = _a.sent();
14809
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14719
14810
  if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
14720
14811
  contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
14721
14812
  }
@@ -14802,9 +14893,9 @@ var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandEr
14802
14893
  });
14803
14894
  }); };
14804
14895
  export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14805
- var contents, data;
14806
- return __generator(this, function (_a) {
14807
- switch (_a.label) {
14896
+ var contents, data, _a, _b;
14897
+ return __generator(this, function (_c) {
14898
+ switch (_c.label) {
14808
14899
  case 0:
14809
14900
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14810
14901
  return [2 /*return*/, deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError(output, context)];
@@ -14813,9 +14904,11 @@ export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComm
14813
14904
  $metadata: deserializeMetadata(output),
14814
14905
  Channel: undefined,
14815
14906
  };
14907
+ _a = __expectNonNull;
14908
+ _b = __expectObject;
14816
14909
  return [4 /*yield*/, parseBody(output.body, context)];
14817
14910
  case 1:
14818
- data = _a.sent();
14911
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14819
14912
  if (data.Channel !== undefined && data.Channel !== null) {
14820
14913
  contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
14821
14914
  }
@@ -14902,9 +14995,9 @@ var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandErro
14902
14995
  });
14903
14996
  }); };
14904
14997
  export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14905
- var contents, data;
14906
- return __generator(this, function (_a) {
14907
- switch (_a.label) {
14998
+ var contents, data, _a, _b;
14999
+ return __generator(this, function (_c) {
15000
+ switch (_c.label) {
14908
15001
  case 0:
14909
15002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
14910
15003
  return [2 /*return*/, deserializeAws_restJson1DescribeChannelModeratorCommandError(output, context)];
@@ -14913,9 +15006,11 @@ export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (o
14913
15006
  $metadata: deserializeMetadata(output),
14914
15007
  ChannelModerator: undefined,
14915
15008
  };
15009
+ _a = __expectNonNull;
15010
+ _b = __expectObject;
14916
15011
  return [4 /*yield*/, parseBody(output.body, context)];
14917
15012
  case 1:
14918
- data = _a.sent();
15013
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
14919
15014
  if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
14920
15015
  contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
14921
15016
  }
@@ -15114,9 +15209,9 @@ var deserializeAws_restJson1DisassociatePhoneNumberFromUserCommandError = functi
15114
15209
  });
15115
15210
  }); };
15116
15211
  export var deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15117
- var contents, data;
15118
- return __generator(this, function (_a) {
15119
- switch (_a.label) {
15212
+ var contents, data, _a, _b;
15213
+ return __generator(this, function (_c) {
15214
+ switch (_c.label) {
15120
15215
  case 0:
15121
15216
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15122
15217
  return [2 /*return*/, deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommandError(output, context)];
@@ -15125,9 +15220,11 @@ export var deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCom
15125
15220
  $metadata: deserializeMetadata(output),
15126
15221
  PhoneNumberErrors: undefined,
15127
15222
  };
15223
+ _a = __expectNonNull;
15224
+ _b = __expectObject;
15128
15225
  return [4 /*yield*/, parseBody(output.body, context)];
15129
15226
  case 1:
15130
- data = _a.sent();
15227
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15131
15228
  if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
15132
15229
  contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
15133
15230
  }
@@ -15222,9 +15319,9 @@ var deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommandErr
15222
15319
  });
15223
15320
  }); };
15224
15321
  export var deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15225
- var contents, data;
15226
- return __generator(this, function (_a) {
15227
- switch (_a.label) {
15322
+ var contents, data, _a, _b;
15323
+ return __generator(this, function (_c) {
15324
+ switch (_c.label) {
15228
15325
  case 0:
15229
15326
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15230
15327
  return [2 /*return*/, deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupCommandError(output, context)];
@@ -15233,9 +15330,11 @@ export var deserializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGro
15233
15330
  $metadata: deserializeMetadata(output),
15234
15331
  PhoneNumberErrors: undefined,
15235
15332
  };
15333
+ _a = __expectNonNull;
15334
+ _b = __expectObject;
15236
15335
  return [4 /*yield*/, parseBody(output.body, context)];
15237
15336
  case 1:
15238
- data = _a.sent();
15337
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15239
15338
  if (data.PhoneNumberErrors !== undefined && data.PhoneNumberErrors !== null) {
15240
15339
  contents.PhoneNumberErrors = deserializeAws_restJson1PhoneNumberErrorList(data.PhoneNumberErrors, context);
15241
15340
  }
@@ -15434,9 +15533,9 @@ var deserializeAws_restJson1DisassociateSigninDelegateGroupsFromAccountCommandEr
15434
15533
  });
15435
15534
  }); };
15436
15535
  export var deserializeAws_restJson1GetAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15437
- var contents, data;
15438
- return __generator(this, function (_a) {
15439
- switch (_a.label) {
15536
+ var contents, data, _a, _b;
15537
+ return __generator(this, function (_c) {
15538
+ switch (_c.label) {
15440
15539
  case 0:
15441
15540
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15442
15541
  return [2 /*return*/, deserializeAws_restJson1GetAccountCommandError(output, context)];
@@ -15445,9 +15544,11 @@ export var deserializeAws_restJson1GetAccountCommand = function (output, context
15445
15544
  $metadata: deserializeMetadata(output),
15446
15545
  Account: undefined,
15447
15546
  };
15547
+ _a = __expectNonNull;
15548
+ _b = __expectObject;
15448
15549
  return [4 /*yield*/, parseBody(output.body, context)];
15449
15550
  case 1:
15450
- data = _a.sent();
15551
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15451
15552
  if (data.Account !== undefined && data.Account !== null) {
15452
15553
  contents.Account = deserializeAws_restJson1Account(data.Account, context);
15453
15554
  }
@@ -15542,9 +15643,9 @@ var deserializeAws_restJson1GetAccountCommandError = function (output, context)
15542
15643
  });
15543
15644
  }); };
15544
15645
  export var deserializeAws_restJson1GetAccountSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15545
- var contents, data;
15546
- return __generator(this, function (_a) {
15547
- switch (_a.label) {
15646
+ var contents, data, _a, _b;
15647
+ return __generator(this, function (_c) {
15648
+ switch (_c.label) {
15548
15649
  case 0:
15549
15650
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15550
15651
  return [2 /*return*/, deserializeAws_restJson1GetAccountSettingsCommandError(output, context)];
@@ -15553,9 +15654,11 @@ export var deserializeAws_restJson1GetAccountSettingsCommand = function (output,
15553
15654
  $metadata: deserializeMetadata(output),
15554
15655
  AccountSettings: undefined,
15555
15656
  };
15657
+ _a = __expectNonNull;
15658
+ _b = __expectObject;
15556
15659
  return [4 /*yield*/, parseBody(output.body, context)];
15557
15660
  case 1:
15558
- data = _a.sent();
15661
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15559
15662
  if (data.AccountSettings !== undefined && data.AccountSettings !== null) {
15560
15663
  contents.AccountSettings = deserializeAws_restJson1AccountSettings(data.AccountSettings, context);
15561
15664
  }
@@ -15650,9 +15753,9 @@ var deserializeAws_restJson1GetAccountSettingsCommandError = function (output, c
15650
15753
  });
15651
15754
  }); };
15652
15755
  export var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15653
- var contents, data;
15654
- return __generator(this, function (_a) {
15655
- switch (_a.label) {
15756
+ var contents, data, _a, _b;
15757
+ return __generator(this, function (_c) {
15758
+ switch (_c.label) {
15656
15759
  case 0:
15657
15760
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15658
15761
  return [2 /*return*/, deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError(output, context)];
@@ -15662,14 +15765,16 @@ export var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = func
15662
15765
  AppInstanceRetentionSettings: undefined,
15663
15766
  InitiateDeletionTimestamp: undefined,
15664
15767
  };
15768
+ _a = __expectNonNull;
15769
+ _b = __expectObject;
15665
15770
  return [4 /*yield*/, parseBody(output.body, context)];
15666
15771
  case 1:
15667
- data = _a.sent();
15772
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15668
15773
  if (data.AppInstanceRetentionSettings !== undefined && data.AppInstanceRetentionSettings !== null) {
15669
15774
  contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
15670
15775
  }
15671
15776
  if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
15672
- contents.InitiateDeletionTimestamp = new Date(Math.round(data.InitiateDeletionTimestamp * 1000));
15777
+ contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
15673
15778
  }
15674
15779
  return [2 /*return*/, Promise.resolve(contents)];
15675
15780
  }
@@ -15762,9 +15867,9 @@ var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = functi
15762
15867
  });
15763
15868
  }); };
15764
15869
  export var deserializeAws_restJson1GetAppInstanceStreamingConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15765
- var contents, data;
15766
- return __generator(this, function (_a) {
15767
- switch (_a.label) {
15870
+ var contents, data, _a, _b;
15871
+ return __generator(this, function (_c) {
15872
+ switch (_c.label) {
15768
15873
  case 0:
15769
15874
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15770
15875
  return [2 /*return*/, deserializeAws_restJson1GetAppInstanceStreamingConfigurationsCommandError(output, context)];
@@ -15773,9 +15878,11 @@ export var deserializeAws_restJson1GetAppInstanceStreamingConfigurationsCommand
15773
15878
  $metadata: deserializeMetadata(output),
15774
15879
  AppInstanceStreamingConfigurations: undefined,
15775
15880
  };
15881
+ _a = __expectNonNull;
15882
+ _b = __expectObject;
15776
15883
  return [4 /*yield*/, parseBody(output.body, context)];
15777
15884
  case 1:
15778
- data = _a.sent();
15885
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15779
15886
  if (data.AppInstanceStreamingConfigurations !== undefined && data.AppInstanceStreamingConfigurations !== null) {
15780
15887
  contents.AppInstanceStreamingConfigurations = deserializeAws_restJson1AppInstanceStreamingConfigurationList(data.AppInstanceStreamingConfigurations, context);
15781
15888
  }
@@ -15870,9 +15977,9 @@ var deserializeAws_restJson1GetAppInstanceStreamingConfigurationsCommandError =
15870
15977
  });
15871
15978
  }); };
15872
15979
  export var deserializeAws_restJson1GetAttendeeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15873
- var contents, data;
15874
- return __generator(this, function (_a) {
15875
- switch (_a.label) {
15980
+ var contents, data, _a, _b;
15981
+ return __generator(this, function (_c) {
15982
+ switch (_c.label) {
15876
15983
  case 0:
15877
15984
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15878
15985
  return [2 /*return*/, deserializeAws_restJson1GetAttendeeCommandError(output, context)];
@@ -15881,9 +15988,11 @@ export var deserializeAws_restJson1GetAttendeeCommand = function (output, contex
15881
15988
  $metadata: deserializeMetadata(output),
15882
15989
  Attendee: undefined,
15883
15990
  };
15991
+ _a = __expectNonNull;
15992
+ _b = __expectObject;
15884
15993
  return [4 /*yield*/, parseBody(output.body, context)];
15885
15994
  case 1:
15886
- data = _a.sent();
15995
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15887
15996
  if (data.Attendee !== undefined && data.Attendee !== null) {
15888
15997
  contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
15889
15998
  }
@@ -15978,9 +16087,9 @@ var deserializeAws_restJson1GetAttendeeCommandError = function (output, context)
15978
16087
  });
15979
16088
  }); };
15980
16089
  export var deserializeAws_restJson1GetBotCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
15981
- var contents, data;
15982
- return __generator(this, function (_a) {
15983
- switch (_a.label) {
16090
+ var contents, data, _a, _b;
16091
+ return __generator(this, function (_c) {
16092
+ switch (_c.label) {
15984
16093
  case 0:
15985
16094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15986
16095
  return [2 /*return*/, deserializeAws_restJson1GetBotCommandError(output, context)];
@@ -15989,9 +16098,11 @@ export var deserializeAws_restJson1GetBotCommand = function (output, context) {
15989
16098
  $metadata: deserializeMetadata(output),
15990
16099
  Bot: undefined,
15991
16100
  };
16101
+ _a = __expectNonNull;
16102
+ _b = __expectObject;
15992
16103
  return [4 /*yield*/, parseBody(output.body, context)];
15993
16104
  case 1:
15994
- data = _a.sent();
16105
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
15995
16106
  if (data.Bot !== undefined && data.Bot !== null) {
15996
16107
  contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
15997
16108
  }
@@ -16086,9 +16197,9 @@ var deserializeAws_restJson1GetBotCommandError = function (output, context) { re
16086
16197
  });
16087
16198
  }); };
16088
16199
  export var deserializeAws_restJson1GetChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16089
- var contents, data;
16090
- return __generator(this, function (_a) {
16091
- switch (_a.label) {
16200
+ var contents, data, _a, _b;
16201
+ return __generator(this, function (_c) {
16202
+ switch (_c.label) {
16092
16203
  case 0:
16093
16204
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16094
16205
  return [2 /*return*/, deserializeAws_restJson1GetChannelMessageCommandError(output, context)];
@@ -16097,9 +16208,11 @@ export var deserializeAws_restJson1GetChannelMessageCommand = function (output,
16097
16208
  $metadata: deserializeMetadata(output),
16098
16209
  ChannelMessage: undefined,
16099
16210
  };
16211
+ _a = __expectNonNull;
16212
+ _b = __expectObject;
16100
16213
  return [4 /*yield*/, parseBody(output.body, context)];
16101
16214
  case 1:
16102
- data = _a.sent();
16215
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16103
16216
  if (data.ChannelMessage !== undefined && data.ChannelMessage !== null) {
16104
16217
  contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
16105
16218
  }
@@ -16194,9 +16307,9 @@ var deserializeAws_restJson1GetChannelMessageCommandError = function (output, co
16194
16307
  });
16195
16308
  }); };
16196
16309
  export var deserializeAws_restJson1GetEventsConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16197
- var contents, data;
16198
- return __generator(this, function (_a) {
16199
- switch (_a.label) {
16310
+ var contents, data, _a, _b;
16311
+ return __generator(this, function (_c) {
16312
+ switch (_c.label) {
16200
16313
  case 0:
16201
16314
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16202
16315
  return [2 /*return*/, deserializeAws_restJson1GetEventsConfigurationCommandError(output, context)];
@@ -16205,9 +16318,11 @@ export var deserializeAws_restJson1GetEventsConfigurationCommand = function (out
16205
16318
  $metadata: deserializeMetadata(output),
16206
16319
  EventsConfiguration: undefined,
16207
16320
  };
16321
+ _a = __expectNonNull;
16322
+ _b = __expectObject;
16208
16323
  return [4 /*yield*/, parseBody(output.body, context)];
16209
16324
  case 1:
16210
- data = _a.sent();
16325
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16211
16326
  if (data.EventsConfiguration !== undefined && data.EventsConfiguration !== null) {
16212
16327
  contents.EventsConfiguration = deserializeAws_restJson1EventsConfiguration(data.EventsConfiguration, context);
16213
16328
  }
@@ -16302,9 +16417,9 @@ var deserializeAws_restJson1GetEventsConfigurationCommandError = function (outpu
16302
16417
  });
16303
16418
  }); };
16304
16419
  export var deserializeAws_restJson1GetGlobalSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16305
- var contents, data;
16306
- return __generator(this, function (_a) {
16307
- switch (_a.label) {
16420
+ var contents, data, _a, _b;
16421
+ return __generator(this, function (_c) {
16422
+ switch (_c.label) {
16308
16423
  case 0:
16309
16424
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16310
16425
  return [2 /*return*/, deserializeAws_restJson1GetGlobalSettingsCommandError(output, context)];
@@ -16314,9 +16429,11 @@ export var deserializeAws_restJson1GetGlobalSettingsCommand = function (output,
16314
16429
  BusinessCalling: undefined,
16315
16430
  VoiceConnector: undefined,
16316
16431
  };
16432
+ _a = __expectNonNull;
16433
+ _b = __expectObject;
16317
16434
  return [4 /*yield*/, parseBody(output.body, context)];
16318
16435
  case 1:
16319
- data = _a.sent();
16436
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16320
16437
  if (data.BusinessCalling !== undefined && data.BusinessCalling !== null) {
16321
16438
  contents.BusinessCalling = deserializeAws_restJson1BusinessCallingSettings(data.BusinessCalling, context);
16322
16439
  }
@@ -16406,9 +16523,9 @@ var deserializeAws_restJson1GetGlobalSettingsCommandError = function (output, co
16406
16523
  });
16407
16524
  }); };
16408
16525
  export var deserializeAws_restJson1GetMediaCapturePipelineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16409
- var contents, data;
16410
- return __generator(this, function (_a) {
16411
- switch (_a.label) {
16526
+ var contents, data, _a, _b;
16527
+ return __generator(this, function (_c) {
16528
+ switch (_c.label) {
16412
16529
  case 0:
16413
16530
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16414
16531
  return [2 /*return*/, deserializeAws_restJson1GetMediaCapturePipelineCommandError(output, context)];
@@ -16417,9 +16534,11 @@ export var deserializeAws_restJson1GetMediaCapturePipelineCommand = function (ou
16417
16534
  $metadata: deserializeMetadata(output),
16418
16535
  MediaCapturePipeline: undefined,
16419
16536
  };
16537
+ _a = __expectNonNull;
16538
+ _b = __expectObject;
16420
16539
  return [4 /*yield*/, parseBody(output.body, context)];
16421
16540
  case 1:
16422
- data = _a.sent();
16541
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16423
16542
  if (data.MediaCapturePipeline !== undefined && data.MediaCapturePipeline !== null) {
16424
16543
  contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
16425
16544
  }
@@ -16514,9 +16633,9 @@ var deserializeAws_restJson1GetMediaCapturePipelineCommandError = function (outp
16514
16633
  });
16515
16634
  }); };
16516
16635
  export var deserializeAws_restJson1GetMeetingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16517
- var contents, data;
16518
- return __generator(this, function (_a) {
16519
- switch (_a.label) {
16636
+ var contents, data, _a, _b;
16637
+ return __generator(this, function (_c) {
16638
+ switch (_c.label) {
16520
16639
  case 0:
16521
16640
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16522
16641
  return [2 /*return*/, deserializeAws_restJson1GetMeetingCommandError(output, context)];
@@ -16525,9 +16644,11 @@ export var deserializeAws_restJson1GetMeetingCommand = function (output, context
16525
16644
  $metadata: deserializeMetadata(output),
16526
16645
  Meeting: undefined,
16527
16646
  };
16647
+ _a = __expectNonNull;
16648
+ _b = __expectObject;
16528
16649
  return [4 /*yield*/, parseBody(output.body, context)];
16529
16650
  case 1:
16530
- data = _a.sent();
16651
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16531
16652
  if (data.Meeting !== undefined && data.Meeting !== null) {
16532
16653
  contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
16533
16654
  }
@@ -16622,9 +16743,9 @@ var deserializeAws_restJson1GetMeetingCommandError = function (output, context)
16622
16743
  });
16623
16744
  }); };
16624
16745
  export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16625
- var contents, data;
16626
- return __generator(this, function (_a) {
16627
- switch (_a.label) {
16746
+ var contents, data, _a, _b;
16747
+ return __generator(this, function (_c) {
16748
+ switch (_c.label) {
16628
16749
  case 0:
16629
16750
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16630
16751
  return [2 /*return*/, deserializeAws_restJson1GetMessagingSessionEndpointCommandError(output, context)];
@@ -16633,9 +16754,11 @@ export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function
16633
16754
  $metadata: deserializeMetadata(output),
16634
16755
  Endpoint: undefined,
16635
16756
  };
16757
+ _a = __expectNonNull;
16758
+ _b = __expectObject;
16636
16759
  return [4 /*yield*/, parseBody(output.body, context)];
16637
16760
  case 1:
16638
- data = _a.sent();
16761
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16639
16762
  if (data.Endpoint !== undefined && data.Endpoint !== null) {
16640
16763
  contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
16641
16764
  }
@@ -16714,9 +16837,9 @@ var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (
16714
16837
  });
16715
16838
  }); };
16716
16839
  export var deserializeAws_restJson1GetPhoneNumberCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16717
- var contents, data;
16718
- return __generator(this, function (_a) {
16719
- switch (_a.label) {
16840
+ var contents, data, _a, _b;
16841
+ return __generator(this, function (_c) {
16842
+ switch (_c.label) {
16720
16843
  case 0:
16721
16844
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16722
16845
  return [2 /*return*/, deserializeAws_restJson1GetPhoneNumberCommandError(output, context)];
@@ -16725,9 +16848,11 @@ export var deserializeAws_restJson1GetPhoneNumberCommand = function (output, con
16725
16848
  $metadata: deserializeMetadata(output),
16726
16849
  PhoneNumber: undefined,
16727
16850
  };
16851
+ _a = __expectNonNull;
16852
+ _b = __expectObject;
16728
16853
  return [4 /*yield*/, parseBody(output.body, context)];
16729
16854
  case 1:
16730
- data = _a.sent();
16855
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16731
16856
  if (data.PhoneNumber !== undefined && data.PhoneNumber !== null) {
16732
16857
  contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
16733
16858
  }
@@ -16822,9 +16947,9 @@ var deserializeAws_restJson1GetPhoneNumberCommandError = function (output, conte
16822
16947
  });
16823
16948
  }); };
16824
16949
  export var deserializeAws_restJson1GetPhoneNumberOrderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16825
- var contents, data;
16826
- return __generator(this, function (_a) {
16827
- switch (_a.label) {
16950
+ var contents, data, _a, _b;
16951
+ return __generator(this, function (_c) {
16952
+ switch (_c.label) {
16828
16953
  case 0:
16829
16954
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16830
16955
  return [2 /*return*/, deserializeAws_restJson1GetPhoneNumberOrderCommandError(output, context)];
@@ -16833,9 +16958,11 @@ export var deserializeAws_restJson1GetPhoneNumberOrderCommand = function (output
16833
16958
  $metadata: deserializeMetadata(output),
16834
16959
  PhoneNumberOrder: undefined,
16835
16960
  };
16961
+ _a = __expectNonNull;
16962
+ _b = __expectObject;
16836
16963
  return [4 /*yield*/, parseBody(output.body, context)];
16837
16964
  case 1:
16838
- data = _a.sent();
16965
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16839
16966
  if (data.PhoneNumberOrder !== undefined && data.PhoneNumberOrder !== null) {
16840
16967
  contents.PhoneNumberOrder = deserializeAws_restJson1PhoneNumberOrder(data.PhoneNumberOrder, context);
16841
16968
  }
@@ -16930,9 +17057,9 @@ var deserializeAws_restJson1GetPhoneNumberOrderCommandError = function (output,
16930
17057
  });
16931
17058
  }); };
16932
17059
  export var deserializeAws_restJson1GetPhoneNumberSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16933
- var contents, data;
16934
- return __generator(this, function (_a) {
16935
- switch (_a.label) {
17060
+ var contents, data, _a, _b;
17061
+ return __generator(this, function (_c) {
17062
+ switch (_c.label) {
16936
17063
  case 0:
16937
17064
  if (output.statusCode !== 200 && output.statusCode >= 300) {
16938
17065
  return [2 /*return*/, deserializeAws_restJson1GetPhoneNumberSettingsCommandError(output, context)];
@@ -16942,14 +17069,16 @@ export var deserializeAws_restJson1GetPhoneNumberSettingsCommand = function (out
16942
17069
  CallingName: undefined,
16943
17070
  CallingNameUpdatedTimestamp: undefined,
16944
17071
  };
17072
+ _a = __expectNonNull;
17073
+ _b = __expectObject;
16945
17074
  return [4 /*yield*/, parseBody(output.body, context)];
16946
17075
  case 1:
16947
- data = _a.sent();
17076
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
16948
17077
  if (data.CallingName !== undefined && data.CallingName !== null) {
16949
17078
  contents.CallingName = __expectString(data.CallingName);
16950
17079
  }
16951
17080
  if (data.CallingNameUpdatedTimestamp !== undefined && data.CallingNameUpdatedTimestamp !== null) {
16952
- contents.CallingNameUpdatedTimestamp = new Date(data.CallingNameUpdatedTimestamp);
17081
+ contents.CallingNameUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTime(data.CallingNameUpdatedTimestamp));
16953
17082
  }
16954
17083
  return [2 /*return*/, Promise.resolve(contents)];
16955
17084
  }
@@ -17034,9 +17163,9 @@ var deserializeAws_restJson1GetPhoneNumberSettingsCommandError = function (outpu
17034
17163
  });
17035
17164
  }); };
17036
17165
  export var deserializeAws_restJson1GetProxySessionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17037
- var contents, data;
17038
- return __generator(this, function (_a) {
17039
- switch (_a.label) {
17166
+ var contents, data, _a, _b;
17167
+ return __generator(this, function (_c) {
17168
+ switch (_c.label) {
17040
17169
  case 0:
17041
17170
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17042
17171
  return [2 /*return*/, deserializeAws_restJson1GetProxySessionCommandError(output, context)];
@@ -17045,9 +17174,11 @@ export var deserializeAws_restJson1GetProxySessionCommand = function (output, co
17045
17174
  $metadata: deserializeMetadata(output),
17046
17175
  ProxySession: undefined,
17047
17176
  };
17177
+ _a = __expectNonNull;
17178
+ _b = __expectObject;
17048
17179
  return [4 /*yield*/, parseBody(output.body, context)];
17049
17180
  case 1:
17050
- data = _a.sent();
17181
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17051
17182
  if (data.ProxySession !== undefined && data.ProxySession !== null) {
17052
17183
  contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
17053
17184
  }
@@ -17142,9 +17273,9 @@ var deserializeAws_restJson1GetProxySessionCommandError = function (output, cont
17142
17273
  });
17143
17274
  }); };
17144
17275
  export var deserializeAws_restJson1GetRetentionSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17145
- var contents, data;
17146
- return __generator(this, function (_a) {
17147
- switch (_a.label) {
17276
+ var contents, data, _a, _b;
17277
+ return __generator(this, function (_c) {
17278
+ switch (_c.label) {
17148
17279
  case 0:
17149
17280
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17150
17281
  return [2 /*return*/, deserializeAws_restJson1GetRetentionSettingsCommandError(output, context)];
@@ -17154,11 +17285,13 @@ export var deserializeAws_restJson1GetRetentionSettingsCommand = function (outpu
17154
17285
  InitiateDeletionTimestamp: undefined,
17155
17286
  RetentionSettings: undefined,
17156
17287
  };
17288
+ _a = __expectNonNull;
17289
+ _b = __expectObject;
17157
17290
  return [4 /*yield*/, parseBody(output.body, context)];
17158
17291
  case 1:
17159
- data = _a.sent();
17292
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17160
17293
  if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
17161
- contents.InitiateDeletionTimestamp = new Date(data.InitiateDeletionTimestamp);
17294
+ contents.InitiateDeletionTimestamp = __expectNonNull(__parseRfc3339DateTime(data.InitiateDeletionTimestamp));
17162
17295
  }
17163
17296
  if (data.RetentionSettings !== undefined && data.RetentionSettings !== null) {
17164
17297
  contents.RetentionSettings = deserializeAws_restJson1RetentionSettings(data.RetentionSettings, context);
@@ -17254,9 +17387,9 @@ var deserializeAws_restJson1GetRetentionSettingsCommandError = function (output,
17254
17387
  });
17255
17388
  }); };
17256
17389
  export var deserializeAws_restJson1GetRoomCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17257
- var contents, data;
17258
- return __generator(this, function (_a) {
17259
- switch (_a.label) {
17390
+ var contents, data, _a, _b;
17391
+ return __generator(this, function (_c) {
17392
+ switch (_c.label) {
17260
17393
  case 0:
17261
17394
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17262
17395
  return [2 /*return*/, deserializeAws_restJson1GetRoomCommandError(output, context)];
@@ -17265,9 +17398,11 @@ export var deserializeAws_restJson1GetRoomCommand = function (output, context) {
17265
17398
  $metadata: deserializeMetadata(output),
17266
17399
  Room: undefined,
17267
17400
  };
17401
+ _a = __expectNonNull;
17402
+ _b = __expectObject;
17268
17403
  return [4 /*yield*/, parseBody(output.body, context)];
17269
17404
  case 1:
17270
- data = _a.sent();
17405
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17271
17406
  if (data.Room !== undefined && data.Room !== null) {
17272
17407
  contents.Room = deserializeAws_restJson1Room(data.Room, context);
17273
17408
  }
@@ -17362,9 +17497,9 @@ var deserializeAws_restJson1GetRoomCommandError = function (output, context) { r
17362
17497
  });
17363
17498
  }); };
17364
17499
  export var deserializeAws_restJson1GetSipMediaApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17365
- var contents, data;
17366
- return __generator(this, function (_a) {
17367
- switch (_a.label) {
17500
+ var contents, data, _a, _b;
17501
+ return __generator(this, function (_c) {
17502
+ switch (_c.label) {
17368
17503
  case 0:
17369
17504
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17370
17505
  return [2 /*return*/, deserializeAws_restJson1GetSipMediaApplicationCommandError(output, context)];
@@ -17373,9 +17508,11 @@ export var deserializeAws_restJson1GetSipMediaApplicationCommand = function (out
17373
17508
  $metadata: deserializeMetadata(output),
17374
17509
  SipMediaApplication: undefined,
17375
17510
  };
17511
+ _a = __expectNonNull;
17512
+ _b = __expectObject;
17376
17513
  return [4 /*yield*/, parseBody(output.body, context)];
17377
17514
  case 1:
17378
- data = _a.sent();
17515
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17379
17516
  if (data.SipMediaApplication !== undefined && data.SipMediaApplication !== null) {
17380
17517
  contents.SipMediaApplication = deserializeAws_restJson1SipMediaApplication(data.SipMediaApplication, context);
17381
17518
  }
@@ -17470,9 +17607,9 @@ var deserializeAws_restJson1GetSipMediaApplicationCommandError = function (outpu
17470
17607
  });
17471
17608
  }); };
17472
17609
  export var deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17473
- var contents, data;
17474
- return __generator(this, function (_a) {
17475
- switch (_a.label) {
17610
+ var contents, data, _a, _b;
17611
+ return __generator(this, function (_c) {
17612
+ switch (_c.label) {
17476
17613
  case 0:
17477
17614
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17478
17615
  return [2 /*return*/, deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommandError(output, context)];
@@ -17481,9 +17618,11 @@ export var deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCom
17481
17618
  $metadata: deserializeMetadata(output),
17482
17619
  SipMediaApplicationLoggingConfiguration: undefined,
17483
17620
  };
17621
+ _a = __expectNonNull;
17622
+ _b = __expectObject;
17484
17623
  return [4 /*yield*/, parseBody(output.body, context)];
17485
17624
  case 1:
17486
- data = _a.sent();
17625
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17487
17626
  if (data.SipMediaApplicationLoggingConfiguration !== undefined &&
17488
17627
  data.SipMediaApplicationLoggingConfiguration !== null) {
17489
17628
  contents.SipMediaApplicationLoggingConfiguration = deserializeAws_restJson1SipMediaApplicationLoggingConfiguration(data.SipMediaApplicationLoggingConfiguration, context);
@@ -17579,9 +17718,9 @@ var deserializeAws_restJson1GetSipMediaApplicationLoggingConfigurationCommandErr
17579
17718
  });
17580
17719
  }); };
17581
17720
  export var deserializeAws_restJson1GetSipRuleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17582
- var contents, data;
17583
- return __generator(this, function (_a) {
17584
- switch (_a.label) {
17721
+ var contents, data, _a, _b;
17722
+ return __generator(this, function (_c) {
17723
+ switch (_c.label) {
17585
17724
  case 0:
17586
17725
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17587
17726
  return [2 /*return*/, deserializeAws_restJson1GetSipRuleCommandError(output, context)];
@@ -17590,9 +17729,11 @@ export var deserializeAws_restJson1GetSipRuleCommand = function (output, context
17590
17729
  $metadata: deserializeMetadata(output),
17591
17730
  SipRule: undefined,
17592
17731
  };
17732
+ _a = __expectNonNull;
17733
+ _b = __expectObject;
17593
17734
  return [4 /*yield*/, parseBody(output.body, context)];
17594
17735
  case 1:
17595
- data = _a.sent();
17736
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17596
17737
  if (data.SipRule !== undefined && data.SipRule !== null) {
17597
17738
  contents.SipRule = deserializeAws_restJson1SipRule(data.SipRule, context);
17598
17739
  }
@@ -17687,9 +17828,9 @@ var deserializeAws_restJson1GetSipRuleCommandError = function (output, context)
17687
17828
  });
17688
17829
  }); };
17689
17830
  export var deserializeAws_restJson1GetUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17690
- var contents, data;
17691
- return __generator(this, function (_a) {
17692
- switch (_a.label) {
17831
+ var contents, data, _a, _b;
17832
+ return __generator(this, function (_c) {
17833
+ switch (_c.label) {
17693
17834
  case 0:
17694
17835
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17695
17836
  return [2 /*return*/, deserializeAws_restJson1GetUserCommandError(output, context)];
@@ -17698,9 +17839,11 @@ export var deserializeAws_restJson1GetUserCommand = function (output, context) {
17698
17839
  $metadata: deserializeMetadata(output),
17699
17840
  User: undefined,
17700
17841
  };
17842
+ _a = __expectNonNull;
17843
+ _b = __expectObject;
17701
17844
  return [4 /*yield*/, parseBody(output.body, context)];
17702
17845
  case 1:
17703
- data = _a.sent();
17846
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17704
17847
  if (data.User !== undefined && data.User !== null) {
17705
17848
  contents.User = deserializeAws_restJson1User(data.User, context);
17706
17849
  }
@@ -17795,9 +17938,9 @@ var deserializeAws_restJson1GetUserCommandError = function (output, context) { r
17795
17938
  });
17796
17939
  }); };
17797
17940
  export var deserializeAws_restJson1GetUserSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17798
- var contents, data;
17799
- return __generator(this, function (_a) {
17800
- switch (_a.label) {
17941
+ var contents, data, _a, _b;
17942
+ return __generator(this, function (_c) {
17943
+ switch (_c.label) {
17801
17944
  case 0:
17802
17945
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17803
17946
  return [2 /*return*/, deserializeAws_restJson1GetUserSettingsCommandError(output, context)];
@@ -17806,9 +17949,11 @@ export var deserializeAws_restJson1GetUserSettingsCommand = function (output, co
17806
17949
  $metadata: deserializeMetadata(output),
17807
17950
  UserSettings: undefined,
17808
17951
  };
17952
+ _a = __expectNonNull;
17953
+ _b = __expectObject;
17809
17954
  return [4 /*yield*/, parseBody(output.body, context)];
17810
17955
  case 1:
17811
- data = _a.sent();
17956
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17812
17957
  if (data.UserSettings !== undefined && data.UserSettings !== null) {
17813
17958
  contents.UserSettings = deserializeAws_restJson1UserSettings(data.UserSettings, context);
17814
17959
  }
@@ -17903,9 +18048,9 @@ var deserializeAws_restJson1GetUserSettingsCommandError = function (output, cont
17903
18048
  });
17904
18049
  }); };
17905
18050
  export var deserializeAws_restJson1GetVoiceConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
17906
- var contents, data;
17907
- return __generator(this, function (_a) {
17908
- switch (_a.label) {
18051
+ var contents, data, _a, _b;
18052
+ return __generator(this, function (_c) {
18053
+ switch (_c.label) {
17909
18054
  case 0:
17910
18055
  if (output.statusCode !== 200 && output.statusCode >= 300) {
17911
18056
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorCommandError(output, context)];
@@ -17914,9 +18059,11 @@ export var deserializeAws_restJson1GetVoiceConnectorCommand = function (output,
17914
18059
  $metadata: deserializeMetadata(output),
17915
18060
  VoiceConnector: undefined,
17916
18061
  };
18062
+ _a = __expectNonNull;
18063
+ _b = __expectObject;
17917
18064
  return [4 /*yield*/, parseBody(output.body, context)];
17918
18065
  case 1:
17919
- data = _a.sent();
18066
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
17920
18067
  if (data.VoiceConnector !== undefined && data.VoiceConnector !== null) {
17921
18068
  contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
17922
18069
  }
@@ -18011,9 +18158,9 @@ var deserializeAws_restJson1GetVoiceConnectorCommandError = function (output, co
18011
18158
  });
18012
18159
  }); };
18013
18160
  export var deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18014
- var contents, data;
18015
- return __generator(this, function (_a) {
18016
- switch (_a.label) {
18161
+ var contents, data, _a, _b;
18162
+ return __generator(this, function (_c) {
18163
+ switch (_c.label) {
18017
18164
  case 0:
18018
18165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18019
18166
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationCommandError(output, context)];
@@ -18022,9 +18169,11 @@ export var deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfiguratio
18022
18169
  $metadata: deserializeMetadata(output),
18023
18170
  EmergencyCallingConfiguration: undefined,
18024
18171
  };
18172
+ _a = __expectNonNull;
18173
+ _b = __expectObject;
18025
18174
  return [4 /*yield*/, parseBody(output.body, context)];
18026
18175
  case 1:
18027
- data = _a.sent();
18176
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18028
18177
  if (data.EmergencyCallingConfiguration !== undefined && data.EmergencyCallingConfiguration !== null) {
18029
18178
  contents.EmergencyCallingConfiguration = deserializeAws_restJson1EmergencyCallingConfiguration(data.EmergencyCallingConfiguration, context);
18030
18179
  }
@@ -18119,9 +18268,9 @@ var deserializeAws_restJson1GetVoiceConnectorEmergencyCallingConfigurationComman
18119
18268
  });
18120
18269
  }); };
18121
18270
  export var deserializeAws_restJson1GetVoiceConnectorGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18122
- var contents, data;
18123
- return __generator(this, function (_a) {
18124
- switch (_a.label) {
18271
+ var contents, data, _a, _b;
18272
+ return __generator(this, function (_c) {
18273
+ switch (_c.label) {
18125
18274
  case 0:
18126
18275
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18127
18276
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorGroupCommandError(output, context)];
@@ -18130,9 +18279,11 @@ export var deserializeAws_restJson1GetVoiceConnectorGroupCommand = function (out
18130
18279
  $metadata: deserializeMetadata(output),
18131
18280
  VoiceConnectorGroup: undefined,
18132
18281
  };
18282
+ _a = __expectNonNull;
18283
+ _b = __expectObject;
18133
18284
  return [4 /*yield*/, parseBody(output.body, context)];
18134
18285
  case 1:
18135
- data = _a.sent();
18286
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18136
18287
  if (data.VoiceConnectorGroup !== undefined && data.VoiceConnectorGroup !== null) {
18137
18288
  contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
18138
18289
  }
@@ -18227,9 +18378,9 @@ var deserializeAws_restJson1GetVoiceConnectorGroupCommandError = function (outpu
18227
18378
  });
18228
18379
  }); };
18229
18380
  export var deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18230
- var contents, data;
18231
- return __generator(this, function (_a) {
18232
- switch (_a.label) {
18381
+ var contents, data, _a, _b;
18382
+ return __generator(this, function (_c) {
18383
+ switch (_c.label) {
18233
18384
  case 0:
18234
18385
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18235
18386
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommandError(output, context)];
@@ -18238,9 +18389,11 @@ export var deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommand
18238
18389
  $metadata: deserializeMetadata(output),
18239
18390
  LoggingConfiguration: undefined,
18240
18391
  };
18392
+ _a = __expectNonNull;
18393
+ _b = __expectObject;
18241
18394
  return [4 /*yield*/, parseBody(output.body, context)];
18242
18395
  case 1:
18243
- data = _a.sent();
18396
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18244
18397
  if (data.LoggingConfiguration !== undefined && data.LoggingConfiguration !== null) {
18245
18398
  contents.LoggingConfiguration = deserializeAws_restJson1LoggingConfiguration(data.LoggingConfiguration, context);
18246
18399
  }
@@ -18335,9 +18488,9 @@ var deserializeAws_restJson1GetVoiceConnectorLoggingConfigurationCommandError =
18335
18488
  });
18336
18489
  }); };
18337
18490
  export var deserializeAws_restJson1GetVoiceConnectorOriginationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18338
- var contents, data;
18339
- return __generator(this, function (_a) {
18340
- switch (_a.label) {
18491
+ var contents, data, _a, _b;
18492
+ return __generator(this, function (_c) {
18493
+ switch (_c.label) {
18341
18494
  case 0:
18342
18495
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18343
18496
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorOriginationCommandError(output, context)];
@@ -18346,9 +18499,11 @@ export var deserializeAws_restJson1GetVoiceConnectorOriginationCommand = functio
18346
18499
  $metadata: deserializeMetadata(output),
18347
18500
  Origination: undefined,
18348
18501
  };
18502
+ _a = __expectNonNull;
18503
+ _b = __expectObject;
18349
18504
  return [4 /*yield*/, parseBody(output.body, context)];
18350
18505
  case 1:
18351
- data = _a.sent();
18506
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18352
18507
  if (data.Origination !== undefined && data.Origination !== null) {
18353
18508
  contents.Origination = deserializeAws_restJson1Origination(data.Origination, context);
18354
18509
  }
@@ -18443,9 +18598,9 @@ var deserializeAws_restJson1GetVoiceConnectorOriginationCommandError = function
18443
18598
  });
18444
18599
  }); };
18445
18600
  export var deserializeAws_restJson1GetVoiceConnectorProxyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18446
- var contents, data;
18447
- return __generator(this, function (_a) {
18448
- switch (_a.label) {
18601
+ var contents, data, _a, _b;
18602
+ return __generator(this, function (_c) {
18603
+ switch (_c.label) {
18449
18604
  case 0:
18450
18605
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18451
18606
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorProxyCommandError(output, context)];
@@ -18454,9 +18609,11 @@ export var deserializeAws_restJson1GetVoiceConnectorProxyCommand = function (out
18454
18609
  $metadata: deserializeMetadata(output),
18455
18610
  Proxy: undefined,
18456
18611
  };
18612
+ _a = __expectNonNull;
18613
+ _b = __expectObject;
18457
18614
  return [4 /*yield*/, parseBody(output.body, context)];
18458
18615
  case 1:
18459
- data = _a.sent();
18616
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18460
18617
  if (data.Proxy !== undefined && data.Proxy !== null) {
18461
18618
  contents.Proxy = deserializeAws_restJson1Proxy(data.Proxy, context);
18462
18619
  }
@@ -18551,9 +18708,9 @@ var deserializeAws_restJson1GetVoiceConnectorProxyCommandError = function (outpu
18551
18708
  });
18552
18709
  }); };
18553
18710
  export var deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18554
- var contents, data;
18555
- return __generator(this, function (_a) {
18556
- switch (_a.label) {
18711
+ var contents, data, _a, _b;
18712
+ return __generator(this, function (_c) {
18713
+ switch (_c.label) {
18557
18714
  case 0:
18558
18715
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18559
18716
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommandError(output, context)];
@@ -18562,9 +18719,11 @@ export var deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationComman
18562
18719
  $metadata: deserializeMetadata(output),
18563
18720
  StreamingConfiguration: undefined,
18564
18721
  };
18722
+ _a = __expectNonNull;
18723
+ _b = __expectObject;
18565
18724
  return [4 /*yield*/, parseBody(output.body, context)];
18566
18725
  case 1:
18567
- data = _a.sent();
18726
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18568
18727
  if (data.StreamingConfiguration !== undefined && data.StreamingConfiguration !== null) {
18569
18728
  contents.StreamingConfiguration = deserializeAws_restJson1StreamingConfiguration(data.StreamingConfiguration, context);
18570
18729
  }
@@ -18659,9 +18818,9 @@ var deserializeAws_restJson1GetVoiceConnectorStreamingConfigurationCommandError
18659
18818
  });
18660
18819
  }); };
18661
18820
  export var deserializeAws_restJson1GetVoiceConnectorTerminationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18662
- var contents, data;
18663
- return __generator(this, function (_a) {
18664
- switch (_a.label) {
18821
+ var contents, data, _a, _b;
18822
+ return __generator(this, function (_c) {
18823
+ switch (_c.label) {
18665
18824
  case 0:
18666
18825
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18667
18826
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorTerminationCommandError(output, context)];
@@ -18670,9 +18829,11 @@ export var deserializeAws_restJson1GetVoiceConnectorTerminationCommand = functio
18670
18829
  $metadata: deserializeMetadata(output),
18671
18830
  Termination: undefined,
18672
18831
  };
18832
+ _a = __expectNonNull;
18833
+ _b = __expectObject;
18673
18834
  return [4 /*yield*/, parseBody(output.body, context)];
18674
18835
  case 1:
18675
- data = _a.sent();
18836
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18676
18837
  if (data.Termination !== undefined && data.Termination !== null) {
18677
18838
  contents.Termination = deserializeAws_restJson1Termination(data.Termination, context);
18678
18839
  }
@@ -18767,9 +18928,9 @@ var deserializeAws_restJson1GetVoiceConnectorTerminationCommandError = function
18767
18928
  });
18768
18929
  }); };
18769
18930
  export var deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18770
- var contents, data;
18771
- return __generator(this, function (_a) {
18772
- switch (_a.label) {
18931
+ var contents, data, _a, _b;
18932
+ return __generator(this, function (_c) {
18933
+ switch (_c.label) {
18773
18934
  case 0:
18774
18935
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18775
18936
  return [2 /*return*/, deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommandError(output, context)];
@@ -18778,9 +18939,11 @@ export var deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommand = f
18778
18939
  $metadata: deserializeMetadata(output),
18779
18940
  TerminationHealth: undefined,
18780
18941
  };
18942
+ _a = __expectNonNull;
18943
+ _b = __expectObject;
18781
18944
  return [4 /*yield*/, parseBody(output.body, context)];
18782
18945
  case 1:
18783
- data = _a.sent();
18946
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18784
18947
  if (data.TerminationHealth !== undefined && data.TerminationHealth !== null) {
18785
18948
  contents.TerminationHealth = deserializeAws_restJson1TerminationHealth(data.TerminationHealth, context);
18786
18949
  }
@@ -18875,9 +19038,9 @@ var deserializeAws_restJson1GetVoiceConnectorTerminationHealthCommandError = fun
18875
19038
  });
18876
19039
  }); };
18877
19040
  export var deserializeAws_restJson1InviteUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18878
- var contents, data;
18879
- return __generator(this, function (_a) {
18880
- switch (_a.label) {
19041
+ var contents, data, _a, _b;
19042
+ return __generator(this, function (_c) {
19043
+ switch (_c.label) {
18881
19044
  case 0:
18882
19045
  if (output.statusCode !== 201 && output.statusCode >= 300) {
18883
19046
  return [2 /*return*/, deserializeAws_restJson1InviteUsersCommandError(output, context)];
@@ -18886,9 +19049,11 @@ export var deserializeAws_restJson1InviteUsersCommand = function (output, contex
18886
19049
  $metadata: deserializeMetadata(output),
18887
19050
  Invites: undefined,
18888
19051
  };
19052
+ _a = __expectNonNull;
19053
+ _b = __expectObject;
18889
19054
  return [4 /*yield*/, parseBody(output.body, context)];
18890
19055
  case 1:
18891
- data = _a.sent();
19056
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
18892
19057
  if (data.Invites !== undefined && data.Invites !== null) {
18893
19058
  contents.Invites = deserializeAws_restJson1InviteList(data.Invites, context);
18894
19059
  }
@@ -18983,9 +19148,9 @@ var deserializeAws_restJson1InviteUsersCommandError = function (output, context)
18983
19148
  });
18984
19149
  }); };
18985
19150
  export var deserializeAws_restJson1ListAccountsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18986
- var contents, data;
18987
- return __generator(this, function (_a) {
18988
- switch (_a.label) {
19151
+ var contents, data, _a, _b;
19152
+ return __generator(this, function (_c) {
19153
+ switch (_c.label) {
18989
19154
  case 0:
18990
19155
  if (output.statusCode !== 200 && output.statusCode >= 300) {
18991
19156
  return [2 /*return*/, deserializeAws_restJson1ListAccountsCommandError(output, context)];
@@ -18995,9 +19160,11 @@ export var deserializeAws_restJson1ListAccountsCommand = function (output, conte
18995
19160
  Accounts: undefined,
18996
19161
  NextToken: undefined,
18997
19162
  };
19163
+ _a = __expectNonNull;
19164
+ _b = __expectObject;
18998
19165
  return [4 /*yield*/, parseBody(output.body, context)];
18999
19166
  case 1:
19000
- data = _a.sent();
19167
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19001
19168
  if (data.Accounts !== undefined && data.Accounts !== null) {
19002
19169
  contents.Accounts = deserializeAws_restJson1AccountList(data.Accounts, context);
19003
19170
  }
@@ -19095,9 +19262,9 @@ var deserializeAws_restJson1ListAccountsCommandError = function (output, context
19095
19262
  });
19096
19263
  }); };
19097
19264
  export var deserializeAws_restJson1ListAppInstanceAdminsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19098
- var contents, data;
19099
- return __generator(this, function (_a) {
19100
- switch (_a.label) {
19265
+ var contents, data, _a, _b;
19266
+ return __generator(this, function (_c) {
19267
+ switch (_c.label) {
19101
19268
  case 0:
19102
19269
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19103
19270
  return [2 /*return*/, deserializeAws_restJson1ListAppInstanceAdminsCommandError(output, context)];
@@ -19108,9 +19275,11 @@ export var deserializeAws_restJson1ListAppInstanceAdminsCommand = function (outp
19108
19275
  AppInstanceArn: undefined,
19109
19276
  NextToken: undefined,
19110
19277
  };
19278
+ _a = __expectNonNull;
19279
+ _b = __expectObject;
19111
19280
  return [4 /*yield*/, parseBody(output.body, context)];
19112
19281
  case 1:
19113
- data = _a.sent();
19282
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19114
19283
  if (data.AppInstanceAdmins !== undefined && data.AppInstanceAdmins !== null) {
19115
19284
  contents.AppInstanceAdmins = deserializeAws_restJson1AppInstanceAdminList(data.AppInstanceAdmins, context);
19116
19285
  }
@@ -19203,9 +19372,9 @@ var deserializeAws_restJson1ListAppInstanceAdminsCommandError = function (output
19203
19372
  });
19204
19373
  }); };
19205
19374
  export var deserializeAws_restJson1ListAppInstancesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19206
- var contents, data;
19207
- return __generator(this, function (_a) {
19208
- switch (_a.label) {
19375
+ var contents, data, _a, _b;
19376
+ return __generator(this, function (_c) {
19377
+ switch (_c.label) {
19209
19378
  case 0:
19210
19379
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19211
19380
  return [2 /*return*/, deserializeAws_restJson1ListAppInstancesCommandError(output, context)];
@@ -19215,9 +19384,11 @@ export var deserializeAws_restJson1ListAppInstancesCommand = function (output, c
19215
19384
  AppInstances: undefined,
19216
19385
  NextToken: undefined,
19217
19386
  };
19387
+ _a = __expectNonNull;
19388
+ _b = __expectObject;
19218
19389
  return [4 /*yield*/, parseBody(output.body, context)];
19219
19390
  case 1:
19220
- data = _a.sent();
19391
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19221
19392
  if (data.AppInstances !== undefined && data.AppInstances !== null) {
19222
19393
  contents.AppInstances = deserializeAws_restJson1AppInstanceList(data.AppInstances, context);
19223
19394
  }
@@ -19307,9 +19478,9 @@ var deserializeAws_restJson1ListAppInstancesCommandError = function (output, con
19307
19478
  });
19308
19479
  }); };
19309
19480
  export var deserializeAws_restJson1ListAppInstanceUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19310
- var contents, data;
19311
- return __generator(this, function (_a) {
19312
- switch (_a.label) {
19481
+ var contents, data, _a, _b;
19482
+ return __generator(this, function (_c) {
19483
+ switch (_c.label) {
19313
19484
  case 0:
19314
19485
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19315
19486
  return [2 /*return*/, deserializeAws_restJson1ListAppInstanceUsersCommandError(output, context)];
@@ -19320,9 +19491,11 @@ export var deserializeAws_restJson1ListAppInstanceUsersCommand = function (outpu
19320
19491
  AppInstanceUsers: undefined,
19321
19492
  NextToken: undefined,
19322
19493
  };
19494
+ _a = __expectNonNull;
19495
+ _b = __expectObject;
19323
19496
  return [4 /*yield*/, parseBody(output.body, context)];
19324
19497
  case 1:
19325
- data = _a.sent();
19498
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19326
19499
  if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
19327
19500
  contents.AppInstanceArn = __expectString(data.AppInstanceArn);
19328
19501
  }
@@ -19415,9 +19588,9 @@ var deserializeAws_restJson1ListAppInstanceUsersCommandError = function (output,
19415
19588
  });
19416
19589
  }); };
19417
19590
  export var deserializeAws_restJson1ListAttendeesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19418
- var contents, data;
19419
- return __generator(this, function (_a) {
19420
- switch (_a.label) {
19591
+ var contents, data, _a, _b;
19592
+ return __generator(this, function (_c) {
19593
+ switch (_c.label) {
19421
19594
  case 0:
19422
19595
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19423
19596
  return [2 /*return*/, deserializeAws_restJson1ListAttendeesCommandError(output, context)];
@@ -19427,9 +19600,11 @@ export var deserializeAws_restJson1ListAttendeesCommand = function (output, cont
19427
19600
  Attendees: undefined,
19428
19601
  NextToken: undefined,
19429
19602
  };
19603
+ _a = __expectNonNull;
19604
+ _b = __expectObject;
19430
19605
  return [4 /*yield*/, parseBody(output.body, context)];
19431
19606
  case 1:
19432
- data = _a.sent();
19607
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19433
19608
  if (data.Attendees !== undefined && data.Attendees !== null) {
19434
19609
  contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
19435
19610
  }
@@ -19527,9 +19702,9 @@ var deserializeAws_restJson1ListAttendeesCommandError = function (output, contex
19527
19702
  });
19528
19703
  }); };
19529
19704
  export var deserializeAws_restJson1ListAttendeeTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19530
- var contents, data;
19531
- return __generator(this, function (_a) {
19532
- switch (_a.label) {
19705
+ var contents, data, _a, _b;
19706
+ return __generator(this, function (_c) {
19707
+ switch (_c.label) {
19533
19708
  case 0:
19534
19709
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19535
19710
  return [2 /*return*/, deserializeAws_restJson1ListAttendeeTagsCommandError(output, context)];
@@ -19538,9 +19713,11 @@ export var deserializeAws_restJson1ListAttendeeTagsCommand = function (output, c
19538
19713
  $metadata: deserializeMetadata(output),
19539
19714
  Tags: undefined,
19540
19715
  };
19716
+ _a = __expectNonNull;
19717
+ _b = __expectObject;
19541
19718
  return [4 /*yield*/, parseBody(output.body, context)];
19542
19719
  case 1:
19543
- data = _a.sent();
19720
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19544
19721
  if (data.Tags !== undefined && data.Tags !== null) {
19545
19722
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
19546
19723
  }
@@ -19635,9 +19812,9 @@ var deserializeAws_restJson1ListAttendeeTagsCommandError = function (output, con
19635
19812
  });
19636
19813
  }); };
19637
19814
  export var deserializeAws_restJson1ListBotsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19638
- var contents, data;
19639
- return __generator(this, function (_a) {
19640
- switch (_a.label) {
19815
+ var contents, data, _a, _b;
19816
+ return __generator(this, function (_c) {
19817
+ switch (_c.label) {
19641
19818
  case 0:
19642
19819
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19643
19820
  return [2 /*return*/, deserializeAws_restJson1ListBotsCommandError(output, context)];
@@ -19647,9 +19824,11 @@ export var deserializeAws_restJson1ListBotsCommand = function (output, context)
19647
19824
  Bots: undefined,
19648
19825
  NextToken: undefined,
19649
19826
  };
19827
+ _a = __expectNonNull;
19828
+ _b = __expectObject;
19650
19829
  return [4 /*yield*/, parseBody(output.body, context)];
19651
19830
  case 1:
19652
- data = _a.sent();
19831
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19653
19832
  if (data.Bots !== undefined && data.Bots !== null) {
19654
19833
  contents.Bots = deserializeAws_restJson1BotList(data.Bots, context);
19655
19834
  }
@@ -19747,9 +19926,9 @@ var deserializeAws_restJson1ListBotsCommandError = function (output, context) {
19747
19926
  });
19748
19927
  }); };
19749
19928
  export var deserializeAws_restJson1ListChannelBansCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19750
- var contents, data;
19751
- return __generator(this, function (_a) {
19752
- switch (_a.label) {
19929
+ var contents, data, _a, _b;
19930
+ return __generator(this, function (_c) {
19931
+ switch (_c.label) {
19753
19932
  case 0:
19754
19933
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19755
19934
  return [2 /*return*/, deserializeAws_restJson1ListChannelBansCommandError(output, context)];
@@ -19760,9 +19939,11 @@ export var deserializeAws_restJson1ListChannelBansCommand = function (output, co
19760
19939
  ChannelBans: undefined,
19761
19940
  NextToken: undefined,
19762
19941
  };
19942
+ _a = __expectNonNull;
19943
+ _b = __expectObject;
19763
19944
  return [4 /*yield*/, parseBody(output.body, context)];
19764
19945
  case 1:
19765
- data = _a.sent();
19946
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19766
19947
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
19767
19948
  contents.ChannelArn = __expectString(data.ChannelArn);
19768
19949
  }
@@ -19855,9 +20036,9 @@ var deserializeAws_restJson1ListChannelBansCommandError = function (output, cont
19855
20036
  });
19856
20037
  }); };
19857
20038
  export var deserializeAws_restJson1ListChannelMembershipsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19858
- var contents, data;
19859
- return __generator(this, function (_a) {
19860
- switch (_a.label) {
20039
+ var contents, data, _a, _b;
20040
+ return __generator(this, function (_c) {
20041
+ switch (_c.label) {
19861
20042
  case 0:
19862
20043
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19863
20044
  return [2 /*return*/, deserializeAws_restJson1ListChannelMembershipsCommandError(output, context)];
@@ -19868,9 +20049,11 @@ export var deserializeAws_restJson1ListChannelMembershipsCommand = function (out
19868
20049
  ChannelMemberships: undefined,
19869
20050
  NextToken: undefined,
19870
20051
  };
20052
+ _a = __expectNonNull;
20053
+ _b = __expectObject;
19871
20054
  return [4 /*yield*/, parseBody(output.body, context)];
19872
20055
  case 1:
19873
- data = _a.sent();
20056
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19874
20057
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
19875
20058
  contents.ChannelArn = __expectString(data.ChannelArn);
19876
20059
  }
@@ -19963,9 +20146,9 @@ var deserializeAws_restJson1ListChannelMembershipsCommandError = function (outpu
19963
20146
  });
19964
20147
  }); };
19965
20148
  export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19966
- var contents, data;
19967
- return __generator(this, function (_a) {
19968
- switch (_a.label) {
20149
+ var contents, data, _a, _b;
20150
+ return __generator(this, function (_c) {
20151
+ switch (_c.label) {
19969
20152
  case 0:
19970
20153
  if (output.statusCode !== 200 && output.statusCode >= 300) {
19971
20154
  return [2 /*return*/, deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError(output, context)];
@@ -19975,9 +20158,11 @@ export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
19975
20158
  ChannelMemberships: undefined,
19976
20159
  NextToken: undefined,
19977
20160
  };
20161
+ _a = __expectNonNull;
20162
+ _b = __expectObject;
19978
20163
  return [4 /*yield*/, parseBody(output.body, context)];
19979
20164
  case 1:
19980
- data = _a.sent();
20165
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
19981
20166
  if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
19982
20167
  contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
19983
20168
  }
@@ -20067,9 +20252,9 @@ var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError
20067
20252
  });
20068
20253
  }); };
20069
20254
  export var deserializeAws_restJson1ListChannelMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20070
- var contents, data;
20071
- return __generator(this, function (_a) {
20072
- switch (_a.label) {
20255
+ var contents, data, _a, _b;
20256
+ return __generator(this, function (_c) {
20257
+ switch (_c.label) {
20073
20258
  case 0:
20074
20259
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20075
20260
  return [2 /*return*/, deserializeAws_restJson1ListChannelMessagesCommandError(output, context)];
@@ -20080,9 +20265,11 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
20080
20265
  ChannelMessages: undefined,
20081
20266
  NextToken: undefined,
20082
20267
  };
20268
+ _a = __expectNonNull;
20269
+ _b = __expectObject;
20083
20270
  return [4 /*yield*/, parseBody(output.body, context)];
20084
20271
  case 1:
20085
- data = _a.sent();
20272
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20086
20273
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
20087
20274
  contents.ChannelArn = __expectString(data.ChannelArn);
20088
20275
  }
@@ -20175,9 +20362,9 @@ var deserializeAws_restJson1ListChannelMessagesCommandError = function (output,
20175
20362
  });
20176
20363
  }); };
20177
20364
  export var deserializeAws_restJson1ListChannelModeratorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20178
- var contents, data;
20179
- return __generator(this, function (_a) {
20180
- switch (_a.label) {
20365
+ var contents, data, _a, _b;
20366
+ return __generator(this, function (_c) {
20367
+ switch (_c.label) {
20181
20368
  case 0:
20182
20369
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20183
20370
  return [2 /*return*/, deserializeAws_restJson1ListChannelModeratorsCommandError(output, context)];
@@ -20188,9 +20375,11 @@ export var deserializeAws_restJson1ListChannelModeratorsCommand = function (outp
20188
20375
  ChannelModerators: undefined,
20189
20376
  NextToken: undefined,
20190
20377
  };
20378
+ _a = __expectNonNull;
20379
+ _b = __expectObject;
20191
20380
  return [4 /*yield*/, parseBody(output.body, context)];
20192
20381
  case 1:
20193
- data = _a.sent();
20382
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20194
20383
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
20195
20384
  contents.ChannelArn = __expectString(data.ChannelArn);
20196
20385
  }
@@ -20283,9 +20472,9 @@ var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output
20283
20472
  });
20284
20473
  }); };
20285
20474
  export var deserializeAws_restJson1ListChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20286
- var contents, data;
20287
- return __generator(this, function (_a) {
20288
- switch (_a.label) {
20475
+ var contents, data, _a, _b;
20476
+ return __generator(this, function (_c) {
20477
+ switch (_c.label) {
20289
20478
  case 0:
20290
20479
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20291
20480
  return [2 /*return*/, deserializeAws_restJson1ListChannelsCommandError(output, context)];
@@ -20295,9 +20484,11 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
20295
20484
  Channels: undefined,
20296
20485
  NextToken: undefined,
20297
20486
  };
20487
+ _a = __expectNonNull;
20488
+ _b = __expectObject;
20298
20489
  return [4 /*yield*/, parseBody(output.body, context)];
20299
20490
  case 1:
20300
- data = _a.sent();
20491
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20301
20492
  if (data.Channels !== undefined && data.Channels !== null) {
20302
20493
  contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
20303
20494
  }
@@ -20387,9 +20578,9 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
20387
20578
  });
20388
20579
  }); };
20389
20580
  export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20390
- var contents, data;
20391
- return __generator(this, function (_a) {
20392
- switch (_a.label) {
20581
+ var contents, data, _a, _b;
20582
+ return __generator(this, function (_c) {
20583
+ switch (_c.label) {
20393
20584
  case 0:
20394
20585
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20395
20586
  return [2 /*return*/, deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError(output, context)];
@@ -20399,9 +20590,11 @@ export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
20399
20590
  Channels: undefined,
20400
20591
  NextToken: undefined,
20401
20592
  };
20593
+ _a = __expectNonNull;
20594
+ _b = __expectObject;
20402
20595
  return [4 /*yield*/, parseBody(output.body, context)];
20403
20596
  case 1:
20404
- data = _a.sent();
20597
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20405
20598
  if (data.Channels !== undefined && data.Channels !== null) {
20406
20599
  contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
20407
20600
  }
@@ -20491,9 +20684,9 @@ var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError =
20491
20684
  });
20492
20685
  }); };
20493
20686
  export var deserializeAws_restJson1ListMediaCapturePipelinesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20494
- var contents, data;
20495
- return __generator(this, function (_a) {
20496
- switch (_a.label) {
20687
+ var contents, data, _a, _b;
20688
+ return __generator(this, function (_c) {
20689
+ switch (_c.label) {
20497
20690
  case 0:
20498
20691
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20499
20692
  return [2 /*return*/, deserializeAws_restJson1ListMediaCapturePipelinesCommandError(output, context)];
@@ -20503,9 +20696,11 @@ export var deserializeAws_restJson1ListMediaCapturePipelinesCommand = function (
20503
20696
  MediaCapturePipelines: undefined,
20504
20697
  NextToken: undefined,
20505
20698
  };
20699
+ _a = __expectNonNull;
20700
+ _b = __expectObject;
20506
20701
  return [4 /*yield*/, parseBody(output.body, context)];
20507
20702
  case 1:
20508
- data = _a.sent();
20703
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20509
20704
  if (data.MediaCapturePipelines !== undefined && data.MediaCapturePipelines !== null) {
20510
20705
  contents.MediaCapturePipelines = deserializeAws_restJson1MediaCapturePipelineList(data.MediaCapturePipelines, context);
20511
20706
  }
@@ -20593,11 +20788,11 @@ var deserializeAws_restJson1ListMediaCapturePipelinesCommandError = function (ou
20593
20788
  return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
20594
20789
  }
20595
20790
  });
20596
- }); };
20597
- export var deserializeAws_restJson1ListMeetingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20598
- var contents, data;
20599
- return __generator(this, function (_a) {
20600
- switch (_a.label) {
20791
+ }); };
20792
+ export var deserializeAws_restJson1ListMeetingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20793
+ var contents, data, _a, _b;
20794
+ return __generator(this, function (_c) {
20795
+ switch (_c.label) {
20601
20796
  case 0:
20602
20797
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20603
20798
  return [2 /*return*/, deserializeAws_restJson1ListMeetingsCommandError(output, context)];
@@ -20607,9 +20802,11 @@ export var deserializeAws_restJson1ListMeetingsCommand = function (output, conte
20607
20802
  Meetings: undefined,
20608
20803
  NextToken: undefined,
20609
20804
  };
20805
+ _a = __expectNonNull;
20806
+ _b = __expectObject;
20610
20807
  return [4 /*yield*/, parseBody(output.body, context)];
20611
20808
  case 1:
20612
- data = _a.sent();
20809
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20613
20810
  if (data.Meetings !== undefined && data.Meetings !== null) {
20614
20811
  contents.Meetings = deserializeAws_restJson1MeetingList(data.Meetings, context);
20615
20812
  }
@@ -20699,9 +20896,9 @@ var deserializeAws_restJson1ListMeetingsCommandError = function (output, context
20699
20896
  });
20700
20897
  }); };
20701
20898
  export var deserializeAws_restJson1ListMeetingTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20702
- var contents, data;
20703
- return __generator(this, function (_a) {
20704
- switch (_a.label) {
20899
+ var contents, data, _a, _b;
20900
+ return __generator(this, function (_c) {
20901
+ switch (_c.label) {
20705
20902
  case 0:
20706
20903
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20707
20904
  return [2 /*return*/, deserializeAws_restJson1ListMeetingTagsCommandError(output, context)];
@@ -20710,9 +20907,11 @@ export var deserializeAws_restJson1ListMeetingTagsCommand = function (output, co
20710
20907
  $metadata: deserializeMetadata(output),
20711
20908
  Tags: undefined,
20712
20909
  };
20910
+ _a = __expectNonNull;
20911
+ _b = __expectObject;
20713
20912
  return [4 /*yield*/, parseBody(output.body, context)];
20714
20913
  case 1:
20715
- data = _a.sent();
20914
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20716
20915
  if (data.Tags !== undefined && data.Tags !== null) {
20717
20916
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
20718
20917
  }
@@ -20807,9 +21006,9 @@ var deserializeAws_restJson1ListMeetingTagsCommandError = function (output, cont
20807
21006
  });
20808
21007
  }); };
20809
21008
  export var deserializeAws_restJson1ListPhoneNumberOrdersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20810
- var contents, data;
20811
- return __generator(this, function (_a) {
20812
- switch (_a.label) {
21009
+ var contents, data, _a, _b;
21010
+ return __generator(this, function (_c) {
21011
+ switch (_c.label) {
20813
21012
  case 0:
20814
21013
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20815
21014
  return [2 /*return*/, deserializeAws_restJson1ListPhoneNumberOrdersCommandError(output, context)];
@@ -20819,9 +21018,11 @@ export var deserializeAws_restJson1ListPhoneNumberOrdersCommand = function (outp
20819
21018
  NextToken: undefined,
20820
21019
  PhoneNumberOrders: undefined,
20821
21020
  };
21021
+ _a = __expectNonNull;
21022
+ _b = __expectObject;
20822
21023
  return [4 /*yield*/, parseBody(output.body, context)];
20823
21024
  case 1:
20824
- data = _a.sent();
21025
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20825
21026
  if (data.NextToken !== undefined && data.NextToken !== null) {
20826
21027
  contents.NextToken = __expectString(data.NextToken);
20827
21028
  }
@@ -20911,9 +21112,9 @@ var deserializeAws_restJson1ListPhoneNumberOrdersCommandError = function (output
20911
21112
  });
20912
21113
  }); };
20913
21114
  export var deserializeAws_restJson1ListPhoneNumbersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20914
- var contents, data;
20915
- return __generator(this, function (_a) {
20916
- switch (_a.label) {
21115
+ var contents, data, _a, _b;
21116
+ return __generator(this, function (_c) {
21117
+ switch (_c.label) {
20917
21118
  case 0:
20918
21119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20919
21120
  return [2 /*return*/, deserializeAws_restJson1ListPhoneNumbersCommandError(output, context)];
@@ -20923,9 +21124,11 @@ export var deserializeAws_restJson1ListPhoneNumbersCommand = function (output, c
20923
21124
  NextToken: undefined,
20924
21125
  PhoneNumbers: undefined,
20925
21126
  };
21127
+ _a = __expectNonNull;
21128
+ _b = __expectObject;
20926
21129
  return [4 /*yield*/, parseBody(output.body, context)];
20927
21130
  case 1:
20928
- data = _a.sent();
21131
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
20929
21132
  if (data.NextToken !== undefined && data.NextToken !== null) {
20930
21133
  contents.NextToken = __expectString(data.NextToken);
20931
21134
  }
@@ -21023,9 +21226,9 @@ var deserializeAws_restJson1ListPhoneNumbersCommandError = function (output, con
21023
21226
  });
21024
21227
  }); };
21025
21228
  export var deserializeAws_restJson1ListProxySessionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21026
- var contents, data;
21027
- return __generator(this, function (_a) {
21028
- switch (_a.label) {
21229
+ var contents, data, _a, _b;
21230
+ return __generator(this, function (_c) {
21231
+ switch (_c.label) {
21029
21232
  case 0:
21030
21233
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21031
21234
  return [2 /*return*/, deserializeAws_restJson1ListProxySessionsCommandError(output, context)];
@@ -21035,9 +21238,11 @@ export var deserializeAws_restJson1ListProxySessionsCommand = function (output,
21035
21238
  NextToken: undefined,
21036
21239
  ProxySessions: undefined,
21037
21240
  };
21241
+ _a = __expectNonNull;
21242
+ _b = __expectObject;
21038
21243
  return [4 /*yield*/, parseBody(output.body, context)];
21039
21244
  case 1:
21040
- data = _a.sent();
21245
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21041
21246
  if (data.NextToken !== undefined && data.NextToken !== null) {
21042
21247
  contents.NextToken = __expectString(data.NextToken);
21043
21248
  }
@@ -21135,9 +21340,9 @@ var deserializeAws_restJson1ListProxySessionsCommandError = function (output, co
21135
21340
  });
21136
21341
  }); };
21137
21342
  export var deserializeAws_restJson1ListRoomMembershipsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21138
- var contents, data;
21139
- return __generator(this, function (_a) {
21140
- switch (_a.label) {
21343
+ var contents, data, _a, _b;
21344
+ return __generator(this, function (_c) {
21345
+ switch (_c.label) {
21141
21346
  case 0:
21142
21347
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21143
21348
  return [2 /*return*/, deserializeAws_restJson1ListRoomMembershipsCommandError(output, context)];
@@ -21147,9 +21352,11 @@ export var deserializeAws_restJson1ListRoomMembershipsCommand = function (output
21147
21352
  NextToken: undefined,
21148
21353
  RoomMemberships: undefined,
21149
21354
  };
21355
+ _a = __expectNonNull;
21356
+ _b = __expectObject;
21150
21357
  return [4 /*yield*/, parseBody(output.body, context)];
21151
21358
  case 1:
21152
- data = _a.sent();
21359
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21153
21360
  if (data.NextToken !== undefined && data.NextToken !== null) {
21154
21361
  contents.NextToken = __expectString(data.NextToken);
21155
21362
  }
@@ -21247,9 +21454,9 @@ var deserializeAws_restJson1ListRoomMembershipsCommandError = function (output,
21247
21454
  });
21248
21455
  }); };
21249
21456
  export var deserializeAws_restJson1ListRoomsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21250
- var contents, data;
21251
- return __generator(this, function (_a) {
21252
- switch (_a.label) {
21457
+ var contents, data, _a, _b;
21458
+ return __generator(this, function (_c) {
21459
+ switch (_c.label) {
21253
21460
  case 0:
21254
21461
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21255
21462
  return [2 /*return*/, deserializeAws_restJson1ListRoomsCommandError(output, context)];
@@ -21259,9 +21466,11 @@ export var deserializeAws_restJson1ListRoomsCommand = function (output, context)
21259
21466
  NextToken: undefined,
21260
21467
  Rooms: undefined,
21261
21468
  };
21469
+ _a = __expectNonNull;
21470
+ _b = __expectObject;
21262
21471
  return [4 /*yield*/, parseBody(output.body, context)];
21263
21472
  case 1:
21264
- data = _a.sent();
21473
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21265
21474
  if (data.NextToken !== undefined && data.NextToken !== null) {
21266
21475
  contents.NextToken = __expectString(data.NextToken);
21267
21476
  }
@@ -21359,9 +21568,9 @@ var deserializeAws_restJson1ListRoomsCommandError = function (output, context) {
21359
21568
  });
21360
21569
  }); };
21361
21570
  export var deserializeAws_restJson1ListSipMediaApplicationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21362
- var contents, data;
21363
- return __generator(this, function (_a) {
21364
- switch (_a.label) {
21571
+ var contents, data, _a, _b;
21572
+ return __generator(this, function (_c) {
21573
+ switch (_c.label) {
21365
21574
  case 0:
21366
21575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21367
21576
  return [2 /*return*/, deserializeAws_restJson1ListSipMediaApplicationsCommandError(output, context)];
@@ -21371,9 +21580,11 @@ export var deserializeAws_restJson1ListSipMediaApplicationsCommand = function (o
21371
21580
  NextToken: undefined,
21372
21581
  SipMediaApplications: undefined,
21373
21582
  };
21583
+ _a = __expectNonNull;
21584
+ _b = __expectObject;
21374
21585
  return [4 /*yield*/, parseBody(output.body, context)];
21375
21586
  case 1:
21376
- data = _a.sent();
21587
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21377
21588
  if (data.NextToken !== undefined && data.NextToken !== null) {
21378
21589
  contents.NextToken = __expectString(data.NextToken);
21379
21590
  }
@@ -21463,9 +21674,9 @@ var deserializeAws_restJson1ListSipMediaApplicationsCommandError = function (out
21463
21674
  });
21464
21675
  }); };
21465
21676
  export var deserializeAws_restJson1ListSipRulesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21466
- var contents, data;
21467
- return __generator(this, function (_a) {
21468
- switch (_a.label) {
21677
+ var contents, data, _a, _b;
21678
+ return __generator(this, function (_c) {
21679
+ switch (_c.label) {
21469
21680
  case 0:
21470
21681
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21471
21682
  return [2 /*return*/, deserializeAws_restJson1ListSipRulesCommandError(output, context)];
@@ -21475,9 +21686,11 @@ export var deserializeAws_restJson1ListSipRulesCommand = function (output, conte
21475
21686
  NextToken: undefined,
21476
21687
  SipRules: undefined,
21477
21688
  };
21689
+ _a = __expectNonNull;
21690
+ _b = __expectObject;
21478
21691
  return [4 /*yield*/, parseBody(output.body, context)];
21479
21692
  case 1:
21480
- data = _a.sent();
21693
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21481
21694
  if (data.NextToken !== undefined && data.NextToken !== null) {
21482
21695
  contents.NextToken = __expectString(data.NextToken);
21483
21696
  }
@@ -21567,9 +21780,9 @@ var deserializeAws_restJson1ListSipRulesCommandError = function (output, context
21567
21780
  });
21568
21781
  }); };
21569
21782
  export var deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21570
- var contents, data;
21571
- return __generator(this, function (_a) {
21572
- switch (_a.label) {
21783
+ var contents, data, _a, _b;
21784
+ return __generator(this, function (_c) {
21785
+ switch (_c.label) {
21573
21786
  case 0:
21574
21787
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21575
21788
  return [2 /*return*/, deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommandError(output, context)];
@@ -21578,9 +21791,11 @@ export var deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommand = fu
21578
21791
  $metadata: deserializeMetadata(output),
21579
21792
  PhoneNumberCountries: undefined,
21580
21793
  };
21794
+ _a = __expectNonNull;
21795
+ _b = __expectObject;
21581
21796
  return [4 /*yield*/, parseBody(output.body, context)];
21582
21797
  case 1:
21583
- data = _a.sent();
21798
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21584
21799
  if (data.PhoneNumberCountries !== undefined && data.PhoneNumberCountries !== null) {
21585
21800
  contents.PhoneNumberCountries = deserializeAws_restJson1PhoneNumberCountriesList(data.PhoneNumberCountries, context);
21586
21801
  }
@@ -21675,9 +21890,9 @@ var deserializeAws_restJson1ListSupportedPhoneNumberCountriesCommandError = func
21675
21890
  });
21676
21891
  }); };
21677
21892
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21678
- var contents, data;
21679
- return __generator(this, function (_a) {
21680
- switch (_a.label) {
21893
+ var contents, data, _a, _b;
21894
+ return __generator(this, function (_c) {
21895
+ switch (_c.label) {
21681
21896
  case 0:
21682
21897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21683
21898
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -21686,9 +21901,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
21686
21901
  $metadata: deserializeMetadata(output),
21687
21902
  Tags: undefined,
21688
21903
  };
21904
+ _a = __expectNonNull;
21905
+ _b = __expectObject;
21689
21906
  return [4 /*yield*/, parseBody(output.body, context)];
21690
21907
  case 1:
21691
- data = _a.sent();
21908
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21692
21909
  if (data.Tags !== undefined && data.Tags !== null) {
21693
21910
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
21694
21911
  }
@@ -21775,9 +21992,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
21775
21992
  });
21776
21993
  }); };
21777
21994
  export var deserializeAws_restJson1ListUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21778
- var contents, data;
21779
- return __generator(this, function (_a) {
21780
- switch (_a.label) {
21995
+ var contents, data, _a, _b;
21996
+ return __generator(this, function (_c) {
21997
+ switch (_c.label) {
21781
21998
  case 0:
21782
21999
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21783
22000
  return [2 /*return*/, deserializeAws_restJson1ListUsersCommandError(output, context)];
@@ -21787,9 +22004,11 @@ export var deserializeAws_restJson1ListUsersCommand = function (output, context)
21787
22004
  NextToken: undefined,
21788
22005
  Users: undefined,
21789
22006
  };
22007
+ _a = __expectNonNull;
22008
+ _b = __expectObject;
21790
22009
  return [4 /*yield*/, parseBody(output.body, context)];
21791
22010
  case 1:
21792
- data = _a.sent();
22011
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21793
22012
  if (data.NextToken !== undefined && data.NextToken !== null) {
21794
22013
  contents.NextToken = __expectString(data.NextToken);
21795
22014
  }
@@ -21887,9 +22106,9 @@ var deserializeAws_restJson1ListUsersCommandError = function (output, context) {
21887
22106
  });
21888
22107
  }); };
21889
22108
  export var deserializeAws_restJson1ListVoiceConnectorGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21890
- var contents, data;
21891
- return __generator(this, function (_a) {
21892
- switch (_a.label) {
22109
+ var contents, data, _a, _b;
22110
+ return __generator(this, function (_c) {
22111
+ switch (_c.label) {
21893
22112
  case 0:
21894
22113
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21895
22114
  return [2 /*return*/, deserializeAws_restJson1ListVoiceConnectorGroupsCommandError(output, context)];
@@ -21899,9 +22118,11 @@ export var deserializeAws_restJson1ListVoiceConnectorGroupsCommand = function (o
21899
22118
  NextToken: undefined,
21900
22119
  VoiceConnectorGroups: undefined,
21901
22120
  };
22121
+ _a = __expectNonNull;
22122
+ _b = __expectObject;
21902
22123
  return [4 /*yield*/, parseBody(output.body, context)];
21903
22124
  case 1:
21904
- data = _a.sent();
22125
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
21905
22126
  if (data.NextToken !== undefined && data.NextToken !== null) {
21906
22127
  contents.NextToken = __expectString(data.NextToken);
21907
22128
  }
@@ -21991,9 +22212,9 @@ var deserializeAws_restJson1ListVoiceConnectorGroupsCommandError = function (out
21991
22212
  });
21992
22213
  }); };
21993
22214
  export var deserializeAws_restJson1ListVoiceConnectorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21994
- var contents, data;
21995
- return __generator(this, function (_a) {
21996
- switch (_a.label) {
22215
+ var contents, data, _a, _b;
22216
+ return __generator(this, function (_c) {
22217
+ switch (_c.label) {
21997
22218
  case 0:
21998
22219
  if (output.statusCode !== 200 && output.statusCode >= 300) {
21999
22220
  return [2 /*return*/, deserializeAws_restJson1ListVoiceConnectorsCommandError(output, context)];
@@ -22003,9 +22224,11 @@ export var deserializeAws_restJson1ListVoiceConnectorsCommand = function (output
22003
22224
  NextToken: undefined,
22004
22225
  VoiceConnectors: undefined,
22005
22226
  };
22227
+ _a = __expectNonNull;
22228
+ _b = __expectObject;
22006
22229
  return [4 /*yield*/, parseBody(output.body, context)];
22007
22230
  case 1:
22008
- data = _a.sent();
22231
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22009
22232
  if (data.NextToken !== undefined && data.NextToken !== null) {
22010
22233
  contents.NextToken = __expectString(data.NextToken);
22011
22234
  }
@@ -22095,9 +22318,9 @@ var deserializeAws_restJson1ListVoiceConnectorsCommandError = function (output,
22095
22318
  });
22096
22319
  }); };
22097
22320
  export var deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22098
- var contents, data;
22099
- return __generator(this, function (_a) {
22100
- switch (_a.label) {
22321
+ var contents, data, _a, _b;
22322
+ return __generator(this, function (_c) {
22323
+ switch (_c.label) {
22101
22324
  case 0:
22102
22325
  if (output.statusCode !== 200 && output.statusCode >= 300) {
22103
22326
  return [2 /*return*/, deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsCommandError(output, context)];
@@ -22106,9 +22329,11 @@ export var deserializeAws_restJson1ListVoiceConnectorTerminationCredentialsComma
22106
22329
  $metadata: deserializeMetadata(output),
22107
22330
  Usernames: undefined,
22108
22331
  };
22332
+ _a = __expectNonNull;
22333
+ _b = __expectObject;
22109
22334
  return [4 /*yield*/, parseBody(output.body, context)];
22110
22335
  case 1:
22111
- data = _a.sent();
22336
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22112
22337
  if (data.Usernames !== undefined && data.Usernames !== null) {
22113
22338
  contents.Usernames = deserializeAws_restJson1SensitiveStringList(data.Usernames, context);
22114
22339
  }
@@ -22307,9 +22532,9 @@ var deserializeAws_restJson1LogoutUserCommandError = function (output, context)
22307
22532
  });
22308
22533
  }); };
22309
22534
  export var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22310
- var contents, data;
22311
- return __generator(this, function (_a) {
22312
- switch (_a.label) {
22535
+ var contents, data, _a, _b;
22536
+ return __generator(this, function (_c) {
22537
+ switch (_c.label) {
22313
22538
  case 0:
22314
22539
  if (output.statusCode !== 200 && output.statusCode >= 300) {
22315
22540
  return [2 /*return*/, deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError(output, context)];
@@ -22319,14 +22544,16 @@ export var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = func
22319
22544
  AppInstanceRetentionSettings: undefined,
22320
22545
  InitiateDeletionTimestamp: undefined,
22321
22546
  };
22547
+ _a = __expectNonNull;
22548
+ _b = __expectObject;
22322
22549
  return [4 /*yield*/, parseBody(output.body, context)];
22323
22550
  case 1:
22324
- data = _a.sent();
22551
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22325
22552
  if (data.AppInstanceRetentionSettings !== undefined && data.AppInstanceRetentionSettings !== null) {
22326
22553
  contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
22327
22554
  }
22328
22555
  if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
22329
- contents.InitiateDeletionTimestamp = new Date(Math.round(data.InitiateDeletionTimestamp * 1000));
22556
+ contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
22330
22557
  }
22331
22558
  return [2 /*return*/, Promise.resolve(contents)];
22332
22559
  }
@@ -22427,9 +22654,9 @@ var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = functi
22427
22654
  });
22428
22655
  }); };
22429
22656
  export var deserializeAws_restJson1PutAppInstanceStreamingConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22430
- var contents, data;
22431
- return __generator(this, function (_a) {
22432
- switch (_a.label) {
22657
+ var contents, data, _a, _b;
22658
+ return __generator(this, function (_c) {
22659
+ switch (_c.label) {
22433
22660
  case 0:
22434
22661
  if (output.statusCode !== 200 && output.statusCode >= 300) {
22435
22662
  return [2 /*return*/, deserializeAws_restJson1PutAppInstanceStreamingConfigurationsCommandError(output, context)];
@@ -22438,9 +22665,11 @@ export var deserializeAws_restJson1PutAppInstanceStreamingConfigurationsCommand
22438
22665
  $metadata: deserializeMetadata(output),
22439
22666
  AppInstanceStreamingConfigurations: undefined,
22440
22667
  };
22668
+ _a = __expectNonNull;
22669
+ _b = __expectObject;
22441
22670
  return [4 /*yield*/, parseBody(output.body, context)];
22442
22671
  case 1:
22443
- data = _a.sent();
22672
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22444
22673
  if (data.AppInstanceStreamingConfigurations !== undefined && data.AppInstanceStreamingConfigurations !== null) {
22445
22674
  contents.AppInstanceStreamingConfigurations = deserializeAws_restJson1AppInstanceStreamingConfigurationList(data.AppInstanceStreamingConfigurations, context);
22446
22675
  }
@@ -22535,9 +22764,9 @@ var deserializeAws_restJson1PutAppInstanceStreamingConfigurationsCommandError =
22535
22764
  });
22536
22765
  }); };
22537
22766
  export var deserializeAws_restJson1PutEventsConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22538
- var contents, data;
22539
- return __generator(this, function (_a) {
22540
- switch (_a.label) {
22767
+ var contents, data, _a, _b;
22768
+ return __generator(this, function (_c) {
22769
+ switch (_c.label) {
22541
22770
  case 0:
22542
22771
  if (output.statusCode !== 201 && output.statusCode >= 300) {
22543
22772
  return [2 /*return*/, deserializeAws_restJson1PutEventsConfigurationCommandError(output, context)];
@@ -22546,9 +22775,11 @@ export var deserializeAws_restJson1PutEventsConfigurationCommand = function (out
22546
22775
  $metadata: deserializeMetadata(output),
22547
22776
  EventsConfiguration: undefined,
22548
22777
  };
22778
+ _a = __expectNonNull;
22779
+ _b = __expectObject;
22549
22780
  return [4 /*yield*/, parseBody(output.body, context)];
22550
22781
  case 1:
22551
- data = _a.sent();
22782
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22552
22783
  if (data.EventsConfiguration !== undefined && data.EventsConfiguration !== null) {
22553
22784
  contents.EventsConfiguration = deserializeAws_restJson1EventsConfiguration(data.EventsConfiguration, context);
22554
22785
  }
@@ -22643,9 +22874,9 @@ var deserializeAws_restJson1PutEventsConfigurationCommandError = function (outpu
22643
22874
  });
22644
22875
  }); };
22645
22876
  export var deserializeAws_restJson1PutRetentionSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22646
- var contents, data;
22647
- return __generator(this, function (_a) {
22648
- switch (_a.label) {
22877
+ var contents, data, _a, _b;
22878
+ return __generator(this, function (_c) {
22879
+ switch (_c.label) {
22649
22880
  case 0:
22650
22881
  if (output.statusCode !== 204 && output.statusCode >= 300) {
22651
22882
  return [2 /*return*/, deserializeAws_restJson1PutRetentionSettingsCommandError(output, context)];
@@ -22655,11 +22886,13 @@ export var deserializeAws_restJson1PutRetentionSettingsCommand = function (outpu
22655
22886
  InitiateDeletionTimestamp: undefined,
22656
22887
  RetentionSettings: undefined,
22657
22888
  };
22889
+ _a = __expectNonNull;
22890
+ _b = __expectObject;
22658
22891
  return [4 /*yield*/, parseBody(output.body, context)];
22659
22892
  case 1:
22660
- data = _a.sent();
22893
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22661
22894
  if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
22662
- contents.InitiateDeletionTimestamp = new Date(data.InitiateDeletionTimestamp);
22895
+ contents.InitiateDeletionTimestamp = __expectNonNull(__parseRfc3339DateTime(data.InitiateDeletionTimestamp));
22663
22896
  }
22664
22897
  if (data.RetentionSettings !== undefined && data.RetentionSettings !== null) {
22665
22898
  contents.RetentionSettings = deserializeAws_restJson1RetentionSettings(data.RetentionSettings, context);
@@ -22763,9 +22996,9 @@ var deserializeAws_restJson1PutRetentionSettingsCommandError = function (output,
22763
22996
  });
22764
22997
  }); };
22765
22998
  export var deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22766
- var contents, data;
22767
- return __generator(this, function (_a) {
22768
- switch (_a.label) {
22999
+ var contents, data, _a, _b;
23000
+ return __generator(this, function (_c) {
23001
+ switch (_c.label) {
22769
23002
  case 0:
22770
23003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
22771
23004
  return [2 /*return*/, deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandError(output, context)];
@@ -22774,9 +23007,11 @@ export var deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCom
22774
23007
  $metadata: deserializeMetadata(output),
22775
23008
  SipMediaApplicationLoggingConfiguration: undefined,
22776
23009
  };
23010
+ _a = __expectNonNull;
23011
+ _b = __expectObject;
22777
23012
  return [4 /*yield*/, parseBody(output.body, context)];
22778
23013
  case 1:
22779
- data = _a.sent();
23014
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22780
23015
  if (data.SipMediaApplicationLoggingConfiguration !== undefined &&
22781
23016
  data.SipMediaApplicationLoggingConfiguration !== null) {
22782
23017
  contents.SipMediaApplicationLoggingConfiguration = deserializeAws_restJson1SipMediaApplicationLoggingConfiguration(data.SipMediaApplicationLoggingConfiguration, context);
@@ -22872,9 +23107,9 @@ var deserializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommandErr
22872
23107
  });
22873
23108
  }); };
22874
23109
  export var deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22875
- var contents, data;
22876
- return __generator(this, function (_a) {
22877
- switch (_a.label) {
23110
+ var contents, data, _a, _b;
23111
+ return __generator(this, function (_c) {
23112
+ switch (_c.label) {
22878
23113
  case 0:
22879
23114
  if (output.statusCode !== 200 && output.statusCode >= 300) {
22880
23115
  return [2 /*return*/, deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationCommandError(output, context)];
@@ -22883,9 +23118,11 @@ export var deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfiguratio
22883
23118
  $metadata: deserializeMetadata(output),
22884
23119
  EmergencyCallingConfiguration: undefined,
22885
23120
  };
23121
+ _a = __expectNonNull;
23122
+ _b = __expectObject;
22886
23123
  return [4 /*yield*/, parseBody(output.body, context)];
22887
23124
  case 1:
22888
- data = _a.sent();
23125
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22889
23126
  if (data.EmergencyCallingConfiguration !== undefined && data.EmergencyCallingConfiguration !== null) {
22890
23127
  contents.EmergencyCallingConfiguration = deserializeAws_restJson1EmergencyCallingConfiguration(data.EmergencyCallingConfiguration, context);
22891
23128
  }
@@ -22980,9 +23217,9 @@ var deserializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationComman
22980
23217
  });
22981
23218
  }); };
22982
23219
  export var deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22983
- var contents, data;
22984
- return __generator(this, function (_a) {
22985
- switch (_a.label) {
23220
+ var contents, data, _a, _b;
23221
+ return __generator(this, function (_c) {
23222
+ switch (_c.label) {
22986
23223
  case 0:
22987
23224
  if (output.statusCode !== 200 && output.statusCode >= 300) {
22988
23225
  return [2 /*return*/, deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommandError(output, context)];
@@ -22991,9 +23228,11 @@ export var deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand
22991
23228
  $metadata: deserializeMetadata(output),
22992
23229
  LoggingConfiguration: undefined,
22993
23230
  };
23231
+ _a = __expectNonNull;
23232
+ _b = __expectObject;
22994
23233
  return [4 /*yield*/, parseBody(output.body, context)];
22995
23234
  case 1:
22996
- data = _a.sent();
23235
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
22997
23236
  if (data.LoggingConfiguration !== undefined && data.LoggingConfiguration !== null) {
22998
23237
  contents.LoggingConfiguration = deserializeAws_restJson1LoggingConfiguration(data.LoggingConfiguration, context);
22999
23238
  }
@@ -23088,9 +23327,9 @@ var deserializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommandError =
23088
23327
  });
23089
23328
  }); };
23090
23329
  export var deserializeAws_restJson1PutVoiceConnectorOriginationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23091
- var contents, data;
23092
- return __generator(this, function (_a) {
23093
- switch (_a.label) {
23330
+ var contents, data, _a, _b;
23331
+ return __generator(this, function (_c) {
23332
+ switch (_c.label) {
23094
23333
  case 0:
23095
23334
  if (output.statusCode !== 200 && output.statusCode >= 300) {
23096
23335
  return [2 /*return*/, deserializeAws_restJson1PutVoiceConnectorOriginationCommandError(output, context)];
@@ -23099,9 +23338,11 @@ export var deserializeAws_restJson1PutVoiceConnectorOriginationCommand = functio
23099
23338
  $metadata: deserializeMetadata(output),
23100
23339
  Origination: undefined,
23101
23340
  };
23341
+ _a = __expectNonNull;
23342
+ _b = __expectObject;
23102
23343
  return [4 /*yield*/, parseBody(output.body, context)];
23103
23344
  case 1:
23104
- data = _a.sent();
23345
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
23105
23346
  if (data.Origination !== undefined && data.Origination !== null) {
23106
23347
  contents.Origination = deserializeAws_restJson1Origination(data.Origination, context);
23107
23348
  }
@@ -23196,9 +23437,9 @@ var deserializeAws_restJson1PutVoiceConnectorOriginationCommandError = function
23196
23437
  });
23197
23438
  }); };
23198
23439
  export var deserializeAws_restJson1PutVoiceConnectorProxyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23199
- var contents, data;
23200
- return __generator(this, function (_a) {
23201
- switch (_a.label) {
23440
+ var contents, data, _a, _b;
23441
+ return __generator(this, function (_c) {
23442
+ switch (_c.label) {
23202
23443
  case 0:
23203
23444
  if (output.statusCode !== 200 && output.statusCode >= 300) {
23204
23445
  return [2 /*return*/, deserializeAws_restJson1PutVoiceConnectorProxyCommandError(output, context)];
@@ -23207,9 +23448,11 @@ export var deserializeAws_restJson1PutVoiceConnectorProxyCommand = function (out
23207
23448
  $metadata: deserializeMetadata(output),
23208
23449
  Proxy: undefined,
23209
23450
  };
23451
+ _a = __expectNonNull;
23452
+ _b = __expectObject;
23210
23453
  return [4 /*yield*/, parseBody(output.body, context)];
23211
23454
  case 1:
23212
- data = _a.sent();
23455
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
23213
23456
  if (data.Proxy !== undefined && data.Proxy !== null) {
23214
23457
  contents.Proxy = deserializeAws_restJson1Proxy(data.Proxy, context);
23215
23458
  }
@@ -23312,9 +23555,9 @@ var deserializeAws_restJson1PutVoiceConnectorProxyCommandError = function (outpu
23312
23555
  });
23313
23556
  }); };
23314
23557
  export var deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23315
- var contents, data;
23316
- return __generator(this, function (_a) {
23317
- switch (_a.label) {
23558
+ var contents, data, _a, _b;
23559
+ return __generator(this, function (_c) {
23560
+ switch (_c.label) {
23318
23561
  case 0:
23319
23562
  if (output.statusCode !== 200 && output.statusCode >= 300) {
23320
23563
  return [2 /*return*/, deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandError(output, context)];
@@ -23323,9 +23566,11 @@ export var deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationComman
23323
23566
  $metadata: deserializeMetadata(output),
23324
23567
  StreamingConfiguration: undefined,
23325
23568
  };
23569
+ _a = __expectNonNull;
23570
+ _b = __expectObject;
23326
23571
  return [4 /*yield*/, parseBody(output.body, context)];
23327
23572
  case 1:
23328
- data = _a.sent();
23573
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
23329
23574
  if (data.StreamingConfiguration !== undefined && data.StreamingConfiguration !== null) {
23330
23575
  contents.StreamingConfiguration = deserializeAws_restJson1StreamingConfiguration(data.StreamingConfiguration, context);
23331
23576
  }
@@ -23420,9 +23665,9 @@ var deserializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommandError
23420
23665
  });
23421
23666
  }); };
23422
23667
  export var deserializeAws_restJson1PutVoiceConnectorTerminationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23423
- var contents, data;
23424
- return __generator(this, function (_a) {
23425
- switch (_a.label) {
23668
+ var contents, data, _a, _b;
23669
+ return __generator(this, function (_c) {
23670
+ switch (_c.label) {
23426
23671
  case 0:
23427
23672
  if (output.statusCode !== 200 && output.statusCode >= 300) {
23428
23673
  return [2 /*return*/, deserializeAws_restJson1PutVoiceConnectorTerminationCommandError(output, context)];
@@ -23431,9 +23676,11 @@ export var deserializeAws_restJson1PutVoiceConnectorTerminationCommand = functio
23431
23676
  $metadata: deserializeMetadata(output),
23432
23677
  Termination: undefined,
23433
23678
  };
23679
+ _a = __expectNonNull;
23680
+ _b = __expectObject;
23434
23681
  return [4 /*yield*/, parseBody(output.body, context)];
23435
23682
  case 1:
23436
- data = _a.sent();
23683
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
23437
23684
  if (data.Termination !== undefined && data.Termination !== null) {
23438
23685
  contents.Termination = deserializeAws_restJson1Termination(data.Termination, context);
23439
23686
  }
@@ -23640,9 +23887,9 @@ var deserializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommandError
23640
23887
  });
23641
23888
  }); };
23642
23889
  export var deserializeAws_restJson1RedactChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23643
- var contents, data;
23644
- return __generator(this, function (_a) {
23645
- switch (_a.label) {
23890
+ var contents, data, _a, _b;
23891
+ return __generator(this, function (_c) {
23892
+ switch (_c.label) {
23646
23893
  case 0:
23647
23894
  if (output.statusCode !== 200 && output.statusCode >= 300) {
23648
23895
  return [2 /*return*/, deserializeAws_restJson1RedactChannelMessageCommandError(output, context)];
@@ -23652,9 +23899,11 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
23652
23899
  ChannelArn: undefined,
23653
23900
  MessageId: undefined,
23654
23901
  };
23902
+ _a = __expectNonNull;
23903
+ _b = __expectObject;
23655
23904
  return [4 /*yield*/, parseBody(output.body, context)];
23656
23905
  case 1:
23657
- data = _a.sent();
23906
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
23658
23907
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
23659
23908
  contents.ChannelArn = __expectString(data.ChannelArn);
23660
23909
  }
@@ -23952,9 +24201,9 @@ var deserializeAws_restJson1RedactRoomMessageCommandError = function (output, co
23952
24201
  });
23953
24202
  }); };
23954
24203
  export var deserializeAws_restJson1RegenerateSecurityTokenCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23955
- var contents, data;
23956
- return __generator(this, function (_a) {
23957
- switch (_a.label) {
24204
+ var contents, data, _a, _b;
24205
+ return __generator(this, function (_c) {
24206
+ switch (_c.label) {
23958
24207
  case 0:
23959
24208
  if (output.statusCode !== 200 && output.statusCode >= 300) {
23960
24209
  return [2 /*return*/, deserializeAws_restJson1RegenerateSecurityTokenCommandError(output, context)];
@@ -23963,9 +24212,11 @@ export var deserializeAws_restJson1RegenerateSecurityTokenCommand = function (ou
23963
24212
  $metadata: deserializeMetadata(output),
23964
24213
  Bot: undefined,
23965
24214
  };
24215
+ _a = __expectNonNull;
24216
+ _b = __expectObject;
23966
24217
  return [4 /*yield*/, parseBody(output.body, context)];
23967
24218
  case 1:
23968
- data = _a.sent();
24219
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
23969
24220
  if (data.Bot !== undefined && data.Bot !== null) {
23970
24221
  contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
23971
24222
  }
@@ -24060,9 +24311,9 @@ var deserializeAws_restJson1RegenerateSecurityTokenCommandError = function (outp
24060
24311
  });
24061
24312
  }); };
24062
24313
  export var deserializeAws_restJson1ResetPersonalPINCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
24063
- var contents, data;
24064
- return __generator(this, function (_a) {
24065
- switch (_a.label) {
24314
+ var contents, data, _a, _b;
24315
+ return __generator(this, function (_c) {
24316
+ switch (_c.label) {
24066
24317
  case 0:
24067
24318
  if (output.statusCode !== 200 && output.statusCode >= 300) {
24068
24319
  return [2 /*return*/, deserializeAws_restJson1ResetPersonalPINCommandError(output, context)];
@@ -24071,9 +24322,11 @@ export var deserializeAws_restJson1ResetPersonalPINCommand = function (output, c
24071
24322
  $metadata: deserializeMetadata(output),
24072
24323
  User: undefined,
24073
24324
  };
24325
+ _a = __expectNonNull;
24326
+ _b = __expectObject;
24074
24327
  return [4 /*yield*/, parseBody(output.body, context)];
24075
24328
  case 1:
24076
- data = _a.sent();
24329
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
24077
24330
  if (data.User !== undefined && data.User !== null) {
24078
24331
  contents.User = deserializeAws_restJson1User(data.User, context);
24079
24332
  }
@@ -24168,9 +24421,9 @@ var deserializeAws_restJson1ResetPersonalPINCommandError = function (output, con
24168
24421
  });
24169
24422
  }); };
24170
24423
  export var deserializeAws_restJson1RestorePhoneNumberCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
24171
- var contents, data;
24172
- return __generator(this, function (_a) {
24173
- switch (_a.label) {
24424
+ var contents, data, _a, _b;
24425
+ return __generator(this, function (_c) {
24426
+ switch (_c.label) {
24174
24427
  case 0:
24175
24428
  if (output.statusCode !== 200 && output.statusCode >= 300) {
24176
24429
  return [2 /*return*/, deserializeAws_restJson1RestorePhoneNumberCommandError(output, context)];
@@ -24179,9 +24432,11 @@ export var deserializeAws_restJson1RestorePhoneNumberCommand = function (output,
24179
24432
  $metadata: deserializeMetadata(output),
24180
24433
  PhoneNumber: undefined,
24181
24434
  };
24435
+ _a = __expectNonNull;
24436
+ _b = __expectObject;
24182
24437
  return [4 /*yield*/, parseBody(output.body, context)];
24183
24438
  case 1:
24184
- data = _a.sent();
24439
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
24185
24440
  if (data.PhoneNumber !== undefined && data.PhoneNumber !== null) {
24186
24441
  contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
24187
24442
  }
@@ -24284,9 +24539,9 @@ var deserializeAws_restJson1RestorePhoneNumberCommandError = function (output, c
24284
24539
  });
24285
24540
  }); };
24286
24541
  export var deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
24287
- var contents, data;
24288
- return __generator(this, function (_a) {
24289
- switch (_a.label) {
24542
+ var contents, data, _a, _b;
24543
+ return __generator(this, function (_c) {
24544
+ switch (_c.label) {
24290
24545
  case 0:
24291
24546
  if (output.statusCode !== 200 && output.statusCode >= 300) {
24292
24547
  return [2 /*return*/, deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError(output, context)];
@@ -24296,9 +24551,11 @@ export var deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = function
24296
24551
  E164PhoneNumbers: undefined,
24297
24552
  NextToken: undefined,
24298
24553
  };
24554
+ _a = __expectNonNull;
24555
+ _b = __expectObject;
24299
24556
  return [4 /*yield*/, parseBody(output.body, context)];
24300
24557
  case 1:
24301
- data = _a.sent();
24558
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
24302
24559
  if (data.E164PhoneNumbers !== undefined && data.E164PhoneNumbers !== null) {
24303
24560
  contents.E164PhoneNumbers = deserializeAws_restJson1E164PhoneNumberList(data.E164PhoneNumbers, context);
24304
24561
  }
@@ -24396,9 +24653,9 @@ var deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = function (
24396
24653
  });
24397
24654
  }); };
24398
24655
  export var deserializeAws_restJson1SendChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
24399
- var contents, data;
24400
- return __generator(this, function (_a) {
24401
- switch (_a.label) {
24656
+ var contents, data, _a, _b;
24657
+ return __generator(this, function (_c) {
24658
+ switch (_c.label) {
24402
24659
  case 0:
24403
24660
  if (output.statusCode !== 201 && output.statusCode >= 300) {
24404
24661
  return [2 /*return*/, deserializeAws_restJson1SendChannelMessageCommandError(output, context)];
@@ -24408,9 +24665,11 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
24408
24665
  ChannelArn: undefined,
24409
24666
  MessageId: undefined,
24410
24667
  };
24668
+ _a = __expectNonNull;
24669
+ _b = __expectObject;
24411
24670
  return [4 /*yield*/, parseBody(output.body, context)];
24412
24671
  case 1:
24413
- data = _a.sent();
24672
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
24414
24673
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
24415
24674
  contents.ChannelArn = __expectString(data.ChannelArn);
24416
24675
  }
@@ -25364,9 +25623,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
25364
25623
  });
25365
25624
  }); };
25366
25625
  export var deserializeAws_restJson1UpdateAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
25367
- var contents, data;
25368
- return __generator(this, function (_a) {
25369
- switch (_a.label) {
25626
+ var contents, data, _a, _b;
25627
+ return __generator(this, function (_c) {
25628
+ switch (_c.label) {
25370
25629
  case 0:
25371
25630
  if (output.statusCode !== 200 && output.statusCode >= 300) {
25372
25631
  return [2 /*return*/, deserializeAws_restJson1UpdateAccountCommandError(output, context)];
@@ -25375,9 +25634,11 @@ export var deserializeAws_restJson1UpdateAccountCommand = function (output, cont
25375
25634
  $metadata: deserializeMetadata(output),
25376
25635
  Account: undefined,
25377
25636
  };
25637
+ _a = __expectNonNull;
25638
+ _b = __expectObject;
25378
25639
  return [4 /*yield*/, parseBody(output.body, context)];
25379
25640
  case 1:
25380
- data = _a.sent();
25641
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
25381
25642
  if (data.Account !== undefined && data.Account !== null) {
25382
25643
  contents.Account = deserializeAws_restJson1Account(data.Account, context);
25383
25644
  }
@@ -25584,9 +25845,9 @@ var deserializeAws_restJson1UpdateAccountSettingsCommandError = function (output
25584
25845
  });
25585
25846
  }); };
25586
25847
  export var deserializeAws_restJson1UpdateAppInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
25587
- var contents, data;
25588
- return __generator(this, function (_a) {
25589
- switch (_a.label) {
25848
+ var contents, data, _a, _b;
25849
+ return __generator(this, function (_c) {
25850
+ switch (_c.label) {
25590
25851
  case 0:
25591
25852
  if (output.statusCode !== 200 && output.statusCode >= 300) {
25592
25853
  return [2 /*return*/, deserializeAws_restJson1UpdateAppInstanceCommandError(output, context)];
@@ -25595,9 +25856,11 @@ export var deserializeAws_restJson1UpdateAppInstanceCommand = function (output,
25595
25856
  $metadata: deserializeMetadata(output),
25596
25857
  AppInstanceArn: undefined,
25597
25858
  };
25859
+ _a = __expectNonNull;
25860
+ _b = __expectObject;
25598
25861
  return [4 /*yield*/, parseBody(output.body, context)];
25599
25862
  case 1:
25600
- data = _a.sent();
25863
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
25601
25864
  if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
25602
25865
  contents.AppInstanceArn = __expectString(data.AppInstanceArn);
25603
25866
  }
@@ -25692,9 +25955,9 @@ var deserializeAws_restJson1UpdateAppInstanceCommandError = function (output, co
25692
25955
  });
25693
25956
  }); };
25694
25957
  export var deserializeAws_restJson1UpdateAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
25695
- var contents, data;
25696
- return __generator(this, function (_a) {
25697
- switch (_a.label) {
25958
+ var contents, data, _a, _b;
25959
+ return __generator(this, function (_c) {
25960
+ switch (_c.label) {
25698
25961
  case 0:
25699
25962
  if (output.statusCode !== 200 && output.statusCode >= 300) {
25700
25963
  return [2 /*return*/, deserializeAws_restJson1UpdateAppInstanceUserCommandError(output, context)];
@@ -25703,9 +25966,11 @@ export var deserializeAws_restJson1UpdateAppInstanceUserCommand = function (outp
25703
25966
  $metadata: deserializeMetadata(output),
25704
25967
  AppInstanceUserArn: undefined,
25705
25968
  };
25969
+ _a = __expectNonNull;
25970
+ _b = __expectObject;
25706
25971
  return [4 /*yield*/, parseBody(output.body, context)];
25707
25972
  case 1:
25708
- data = _a.sent();
25973
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
25709
25974
  if (data.AppInstanceUserArn !== undefined && data.AppInstanceUserArn !== null) {
25710
25975
  contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
25711
25976
  }
@@ -25800,9 +26065,9 @@ var deserializeAws_restJson1UpdateAppInstanceUserCommandError = function (output
25800
26065
  });
25801
26066
  }); };
25802
26067
  export var deserializeAws_restJson1UpdateBotCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
25803
- var contents, data;
25804
- return __generator(this, function (_a) {
25805
- switch (_a.label) {
26068
+ var contents, data, _a, _b;
26069
+ return __generator(this, function (_c) {
26070
+ switch (_c.label) {
25806
26071
  case 0:
25807
26072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
25808
26073
  return [2 /*return*/, deserializeAws_restJson1UpdateBotCommandError(output, context)];
@@ -25811,9 +26076,11 @@ export var deserializeAws_restJson1UpdateBotCommand = function (output, context)
25811
26076
  $metadata: deserializeMetadata(output),
25812
26077
  Bot: undefined,
25813
26078
  };
26079
+ _a = __expectNonNull;
26080
+ _b = __expectObject;
25814
26081
  return [4 /*yield*/, parseBody(output.body, context)];
25815
26082
  case 1:
25816
- data = _a.sent();
26083
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
25817
26084
  if (data.Bot !== undefined && data.Bot !== null) {
25818
26085
  contents.Bot = deserializeAws_restJson1Bot(data.Bot, context);
25819
26086
  }
@@ -25908,9 +26175,9 @@ var deserializeAws_restJson1UpdateBotCommandError = function (output, context) {
25908
26175
  });
25909
26176
  }); };
25910
26177
  export var deserializeAws_restJson1UpdateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
25911
- var contents, data;
25912
- return __generator(this, function (_a) {
25913
- switch (_a.label) {
26178
+ var contents, data, _a, _b;
26179
+ return __generator(this, function (_c) {
26180
+ switch (_c.label) {
25914
26181
  case 0:
25915
26182
  if (output.statusCode !== 200 && output.statusCode >= 300) {
25916
26183
  return [2 /*return*/, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
@@ -25919,9 +26186,11 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
25919
26186
  $metadata: deserializeMetadata(output),
25920
26187
  ChannelArn: undefined,
25921
26188
  };
26189
+ _a = __expectNonNull;
26190
+ _b = __expectObject;
25922
26191
  return [4 /*yield*/, parseBody(output.body, context)];
25923
26192
  case 1:
25924
- data = _a.sent();
26193
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
25925
26194
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
25926
26195
  contents.ChannelArn = __expectString(data.ChannelArn);
25927
26196
  }
@@ -26016,9 +26285,9 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
26016
26285
  });
26017
26286
  }); };
26018
26287
  export var deserializeAws_restJson1UpdateChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26019
- var contents, data;
26020
- return __generator(this, function (_a) {
26021
- switch (_a.label) {
26288
+ var contents, data, _a, _b;
26289
+ return __generator(this, function (_c) {
26290
+ switch (_c.label) {
26022
26291
  case 0:
26023
26292
  if (output.statusCode !== 200 && output.statusCode >= 300) {
26024
26293
  return [2 /*return*/, deserializeAws_restJson1UpdateChannelMessageCommandError(output, context)];
@@ -26028,9 +26297,11 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
26028
26297
  ChannelArn: undefined,
26029
26298
  MessageId: undefined,
26030
26299
  };
26300
+ _a = __expectNonNull;
26301
+ _b = __expectObject;
26031
26302
  return [4 /*yield*/, parseBody(output.body, context)];
26032
26303
  case 1:
26033
- data = _a.sent();
26304
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26034
26305
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
26035
26306
  contents.ChannelArn = __expectString(data.ChannelArn);
26036
26307
  }
@@ -26128,9 +26399,9 @@ var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output,
26128
26399
  });
26129
26400
  }); };
26130
26401
  export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26131
- var contents, data;
26132
- return __generator(this, function (_a) {
26133
- switch (_a.label) {
26402
+ var contents, data, _a, _b;
26403
+ return __generator(this, function (_c) {
26404
+ switch (_c.label) {
26134
26405
  case 0:
26135
26406
  if (output.statusCode !== 200 && output.statusCode >= 300) {
26136
26407
  return [2 /*return*/, deserializeAws_restJson1UpdateChannelReadMarkerCommandError(output, context)];
@@ -26139,9 +26410,11 @@ export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (ou
26139
26410
  $metadata: deserializeMetadata(output),
26140
26411
  ChannelArn: undefined,
26141
26412
  };
26413
+ _a = __expectNonNull;
26414
+ _b = __expectObject;
26142
26415
  return [4 /*yield*/, parseBody(output.body, context)];
26143
26416
  case 1:
26144
- data = _a.sent();
26417
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26145
26418
  if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
26146
26419
  contents.ChannelArn = __expectString(data.ChannelArn);
26147
26420
  }
@@ -26332,9 +26605,9 @@ var deserializeAws_restJson1UpdateGlobalSettingsCommandError = function (output,
26332
26605
  });
26333
26606
  }); };
26334
26607
  export var deserializeAws_restJson1UpdatePhoneNumberCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26335
- var contents, data;
26336
- return __generator(this, function (_a) {
26337
- switch (_a.label) {
26608
+ var contents, data, _a, _b;
26609
+ return __generator(this, function (_c) {
26610
+ switch (_c.label) {
26338
26611
  case 0:
26339
26612
  if (output.statusCode !== 200 && output.statusCode >= 300) {
26340
26613
  return [2 /*return*/, deserializeAws_restJson1UpdatePhoneNumberCommandError(output, context)];
@@ -26343,9 +26616,11 @@ export var deserializeAws_restJson1UpdatePhoneNumberCommand = function (output,
26343
26616
  $metadata: deserializeMetadata(output),
26344
26617
  PhoneNumber: undefined,
26345
26618
  };
26619
+ _a = __expectNonNull;
26620
+ _b = __expectObject;
26346
26621
  return [4 /*yield*/, parseBody(output.body, context)];
26347
26622
  case 1:
26348
- data = _a.sent();
26623
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26349
26624
  if (data.PhoneNumber !== undefined && data.PhoneNumber !== null) {
26350
26625
  contents.PhoneNumber = deserializeAws_restJson1PhoneNumber(data.PhoneNumber, context);
26351
26626
  }
@@ -26536,9 +26811,9 @@ var deserializeAws_restJson1UpdatePhoneNumberSettingsCommandError = function (ou
26536
26811
  });
26537
26812
  }); };
26538
26813
  export var deserializeAws_restJson1UpdateProxySessionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26539
- var contents, data;
26540
- return __generator(this, function (_a) {
26541
- switch (_a.label) {
26814
+ var contents, data, _a, _b;
26815
+ return __generator(this, function (_c) {
26816
+ switch (_c.label) {
26542
26817
  case 0:
26543
26818
  if (output.statusCode !== 201 && output.statusCode >= 300) {
26544
26819
  return [2 /*return*/, deserializeAws_restJson1UpdateProxySessionCommandError(output, context)];
@@ -26547,9 +26822,11 @@ export var deserializeAws_restJson1UpdateProxySessionCommand = function (output,
26547
26822
  $metadata: deserializeMetadata(output),
26548
26823
  ProxySession: undefined,
26549
26824
  };
26825
+ _a = __expectNonNull;
26826
+ _b = __expectObject;
26550
26827
  return [4 /*yield*/, parseBody(output.body, context)];
26551
26828
  case 1:
26552
- data = _a.sent();
26829
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26553
26830
  if (data.ProxySession !== undefined && data.ProxySession !== null) {
26554
26831
  contents.ProxySession = deserializeAws_restJson1ProxySession(data.ProxySession, context);
26555
26832
  }
@@ -26644,9 +26921,9 @@ var deserializeAws_restJson1UpdateProxySessionCommandError = function (output, c
26644
26921
  });
26645
26922
  }); };
26646
26923
  export var deserializeAws_restJson1UpdateRoomCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26647
- var contents, data;
26648
- return __generator(this, function (_a) {
26649
- switch (_a.label) {
26924
+ var contents, data, _a, _b;
26925
+ return __generator(this, function (_c) {
26926
+ switch (_c.label) {
26650
26927
  case 0:
26651
26928
  if (output.statusCode !== 200 && output.statusCode >= 300) {
26652
26929
  return [2 /*return*/, deserializeAws_restJson1UpdateRoomCommandError(output, context)];
@@ -26655,9 +26932,11 @@ export var deserializeAws_restJson1UpdateRoomCommand = function (output, context
26655
26932
  $metadata: deserializeMetadata(output),
26656
26933
  Room: undefined,
26657
26934
  };
26935
+ _a = __expectNonNull;
26936
+ _b = __expectObject;
26658
26937
  return [4 /*yield*/, parseBody(output.body, context)];
26659
26938
  case 1:
26660
- data = _a.sent();
26939
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26661
26940
  if (data.Room !== undefined && data.Room !== null) {
26662
26941
  contents.Room = deserializeAws_restJson1Room(data.Room, context);
26663
26942
  }
@@ -26752,9 +27031,9 @@ var deserializeAws_restJson1UpdateRoomCommandError = function (output, context)
26752
27031
  });
26753
27032
  }); };
26754
27033
  export var deserializeAws_restJson1UpdateRoomMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26755
- var contents, data;
26756
- return __generator(this, function (_a) {
26757
- switch (_a.label) {
27034
+ var contents, data, _a, _b;
27035
+ return __generator(this, function (_c) {
27036
+ switch (_c.label) {
26758
27037
  case 0:
26759
27038
  if (output.statusCode !== 200 && output.statusCode >= 300) {
26760
27039
  return [2 /*return*/, deserializeAws_restJson1UpdateRoomMembershipCommandError(output, context)];
@@ -26763,9 +27042,11 @@ export var deserializeAws_restJson1UpdateRoomMembershipCommand = function (outpu
26763
27042
  $metadata: deserializeMetadata(output),
26764
27043
  RoomMembership: undefined,
26765
27044
  };
27045
+ _a = __expectNonNull;
27046
+ _b = __expectObject;
26766
27047
  return [4 /*yield*/, parseBody(output.body, context)];
26767
27048
  case 1:
26768
- data = _a.sent();
27049
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26769
27050
  if (data.RoomMembership !== undefined && data.RoomMembership !== null) {
26770
27051
  contents.RoomMembership = deserializeAws_restJson1RoomMembership(data.RoomMembership, context);
26771
27052
  }
@@ -26860,9 +27141,9 @@ var deserializeAws_restJson1UpdateRoomMembershipCommandError = function (output,
26860
27141
  });
26861
27142
  }); };
26862
27143
  export var deserializeAws_restJson1UpdateSipMediaApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26863
- var contents, data;
26864
- return __generator(this, function (_a) {
26865
- switch (_a.label) {
27144
+ var contents, data, _a, _b;
27145
+ return __generator(this, function (_c) {
27146
+ switch (_c.label) {
26866
27147
  case 0:
26867
27148
  if (output.statusCode !== 200 && output.statusCode >= 300) {
26868
27149
  return [2 /*return*/, deserializeAws_restJson1UpdateSipMediaApplicationCommandError(output, context)];
@@ -26871,9 +27152,11 @@ export var deserializeAws_restJson1UpdateSipMediaApplicationCommand = function (
26871
27152
  $metadata: deserializeMetadata(output),
26872
27153
  SipMediaApplication: undefined,
26873
27154
  };
27155
+ _a = __expectNonNull;
27156
+ _b = __expectObject;
26874
27157
  return [4 /*yield*/, parseBody(output.body, context)];
26875
27158
  case 1:
26876
- data = _a.sent();
27159
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26877
27160
  if (data.SipMediaApplication !== undefined && data.SipMediaApplication !== null) {
26878
27161
  contents.SipMediaApplication = deserializeAws_restJson1SipMediaApplication(data.SipMediaApplication, context);
26879
27162
  }
@@ -26976,9 +27259,9 @@ var deserializeAws_restJson1UpdateSipMediaApplicationCommandError = function (ou
26976
27259
  });
26977
27260
  }); };
26978
27261
  export var deserializeAws_restJson1UpdateSipMediaApplicationCallCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
26979
- var contents, data;
26980
- return __generator(this, function (_a) {
26981
- switch (_a.label) {
27262
+ var contents, data, _a, _b;
27263
+ return __generator(this, function (_c) {
27264
+ switch (_c.label) {
26982
27265
  case 0:
26983
27266
  if (output.statusCode !== 202 && output.statusCode >= 300) {
26984
27267
  return [2 /*return*/, deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError(output, context)];
@@ -26987,9 +27270,11 @@ export var deserializeAws_restJson1UpdateSipMediaApplicationCallCommand = functi
26987
27270
  $metadata: deserializeMetadata(output),
26988
27271
  SipMediaApplicationCall: undefined,
26989
27272
  };
27273
+ _a = __expectNonNull;
27274
+ _b = __expectObject;
26990
27275
  return [4 /*yield*/, parseBody(output.body, context)];
26991
27276
  case 1:
26992
- data = _a.sent();
27277
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
26993
27278
  if (data.SipMediaApplicationCall !== undefined && data.SipMediaApplicationCall !== null) {
26994
27279
  contents.SipMediaApplicationCall = deserializeAws_restJson1SipMediaApplicationCall(data.SipMediaApplicationCall, context);
26995
27280
  }
@@ -27092,9 +27377,9 @@ var deserializeAws_restJson1UpdateSipMediaApplicationCallCommandError = function
27092
27377
  });
27093
27378
  }); };
27094
27379
  export var deserializeAws_restJson1UpdateSipRuleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
27095
- var contents, data;
27096
- return __generator(this, function (_a) {
27097
- switch (_a.label) {
27380
+ var contents, data, _a, _b;
27381
+ return __generator(this, function (_c) {
27382
+ switch (_c.label) {
27098
27383
  case 0:
27099
27384
  if (output.statusCode !== 202 && output.statusCode >= 300) {
27100
27385
  return [2 /*return*/, deserializeAws_restJson1UpdateSipRuleCommandError(output, context)];
@@ -27103,9 +27388,11 @@ export var deserializeAws_restJson1UpdateSipRuleCommand = function (output, cont
27103
27388
  $metadata: deserializeMetadata(output),
27104
27389
  SipRule: undefined,
27105
27390
  };
27391
+ _a = __expectNonNull;
27392
+ _b = __expectObject;
27106
27393
  return [4 /*yield*/, parseBody(output.body, context)];
27107
27394
  case 1:
27108
- data = _a.sent();
27395
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
27109
27396
  if (data.SipRule !== undefined && data.SipRule !== null) {
27110
27397
  contents.SipRule = deserializeAws_restJson1SipRule(data.SipRule, context);
27111
27398
  }
@@ -27216,9 +27503,9 @@ var deserializeAws_restJson1UpdateSipRuleCommandError = function (output, contex
27216
27503
  });
27217
27504
  }); };
27218
27505
  export var deserializeAws_restJson1UpdateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
27219
- var contents, data;
27220
- return __generator(this, function (_a) {
27221
- switch (_a.label) {
27506
+ var contents, data, _a, _b;
27507
+ return __generator(this, function (_c) {
27508
+ switch (_c.label) {
27222
27509
  case 0:
27223
27510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
27224
27511
  return [2 /*return*/, deserializeAws_restJson1UpdateUserCommandError(output, context)];
@@ -27227,9 +27514,11 @@ export var deserializeAws_restJson1UpdateUserCommand = function (output, context
27227
27514
  $metadata: deserializeMetadata(output),
27228
27515
  User: undefined,
27229
27516
  };
27517
+ _a = __expectNonNull;
27518
+ _b = __expectObject;
27230
27519
  return [4 /*yield*/, parseBody(output.body, context)];
27231
27520
  case 1:
27232
- data = _a.sent();
27521
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
27233
27522
  if (data.User !== undefined && data.User !== null) {
27234
27523
  contents.User = deserializeAws_restJson1User(data.User, context);
27235
27524
  }
@@ -27428,9 +27717,9 @@ var deserializeAws_restJson1UpdateUserSettingsCommandError = function (output, c
27428
27717
  });
27429
27718
  }); };
27430
27719
  export var deserializeAws_restJson1UpdateVoiceConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
27431
- var contents, data;
27432
- return __generator(this, function (_a) {
27433
- switch (_a.label) {
27720
+ var contents, data, _a, _b;
27721
+ return __generator(this, function (_c) {
27722
+ switch (_c.label) {
27434
27723
  case 0:
27435
27724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
27436
27725
  return [2 /*return*/, deserializeAws_restJson1UpdateVoiceConnectorCommandError(output, context)];
@@ -27439,9 +27728,11 @@ export var deserializeAws_restJson1UpdateVoiceConnectorCommand = function (outpu
27439
27728
  $metadata: deserializeMetadata(output),
27440
27729
  VoiceConnector: undefined,
27441
27730
  };
27731
+ _a = __expectNonNull;
27732
+ _b = __expectObject;
27442
27733
  return [4 /*yield*/, parseBody(output.body, context)];
27443
27734
  case 1:
27444
- data = _a.sent();
27735
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
27445
27736
  if (data.VoiceConnector !== undefined && data.VoiceConnector !== null) {
27446
27737
  contents.VoiceConnector = deserializeAws_restJson1VoiceConnector(data.VoiceConnector, context);
27447
27738
  }
@@ -27536,9 +27827,9 @@ var deserializeAws_restJson1UpdateVoiceConnectorCommandError = function (output,
27536
27827
  });
27537
27828
  }); };
27538
27829
  export var deserializeAws_restJson1UpdateVoiceConnectorGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
27539
- var contents, data;
27540
- return __generator(this, function (_a) {
27541
- switch (_a.label) {
27830
+ var contents, data, _a, _b;
27831
+ return __generator(this, function (_c) {
27832
+ switch (_c.label) {
27542
27833
  case 0:
27543
27834
  if (output.statusCode !== 202 && output.statusCode >= 300) {
27544
27835
  return [2 /*return*/, deserializeAws_restJson1UpdateVoiceConnectorGroupCommandError(output, context)];
@@ -27547,9 +27838,11 @@ export var deserializeAws_restJson1UpdateVoiceConnectorGroupCommand = function (
27547
27838
  $metadata: deserializeMetadata(output),
27548
27839
  VoiceConnectorGroup: undefined,
27549
27840
  };
27841
+ _a = __expectNonNull;
27842
+ _b = __expectObject;
27550
27843
  return [4 /*yield*/, parseBody(output.body, context)];
27551
27844
  case 1:
27552
- data = _a.sent();
27845
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
27553
27846
  if (data.VoiceConnectorGroup !== undefined && data.VoiceConnectorGroup !== null) {
27554
27847
  contents.VoiceConnectorGroup = deserializeAws_restJson1VoiceConnectorGroup(data.VoiceConnectorGroup, context);
27555
27848
  }
@@ -28163,6 +28456,16 @@ var serializeAws_restJson1SigninDelegateGroupList = function (input, context) {
28163
28456
  return serializeAws_restJson1SigninDelegateGroup(entry, context);
28164
28457
  });
28165
28458
  };
28459
+ var serializeAws_restJson1SipHeadersMap = function (input, context) {
28460
+ return Object.entries(input).reduce(function (acc, _a) {
28461
+ var _b;
28462
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
28463
+ if (value === null) {
28464
+ return acc;
28465
+ }
28466
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
28467
+ }, {});
28468
+ };
28166
28469
  var serializeAws_restJson1SipMediaApplicationEndpoint = function (input, context) {
28167
28470
  return __assign({}, (input.LambdaArn !== undefined && input.LambdaArn !== null && { LambdaArn: input.LambdaArn }));
28168
28471
  };
@@ -28361,7 +28664,7 @@ var deserializeAws_restJson1Account = function (output, context) {
28361
28664
  AccountType: __expectString(output.AccountType),
28362
28665
  AwsAccountId: __expectString(output.AwsAccountId),
28363
28666
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28364
- ? new Date(output.CreatedTimestamp)
28667
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
28365
28668
  : undefined,
28366
28669
  DefaultLicense: __expectString(output.DefaultLicense),
28367
28670
  Name: __expectString(output.Name),
@@ -28399,10 +28702,10 @@ var deserializeAws_restJson1AppInstance = function (output, context) {
28399
28702
  return {
28400
28703
  AppInstanceArn: __expectString(output.AppInstanceArn),
28401
28704
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28402
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
28705
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28403
28706
  : undefined,
28404
28707
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
28405
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
28708
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
28406
28709
  : undefined,
28407
28710
  Metadata: __expectString(output.Metadata),
28408
28711
  Name: __expectString(output.Name),
@@ -28415,7 +28718,7 @@ var deserializeAws_restJson1AppInstanceAdmin = function (output, context) {
28415
28718
  : undefined,
28416
28719
  AppInstanceArn: __expectString(output.AppInstanceArn),
28417
28720
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28418
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
28721
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28419
28722
  : undefined,
28420
28723
  };
28421
28724
  };
@@ -28480,10 +28783,10 @@ var deserializeAws_restJson1AppInstanceUser = function (output, context) {
28480
28783
  return {
28481
28784
  AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
28482
28785
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28483
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
28786
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28484
28787
  : undefined,
28485
28788
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
28486
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
28789
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
28487
28790
  : undefined,
28488
28791
  Metadata: __expectString(output.Metadata),
28489
28792
  Name: __expectString(output.Name),
@@ -28502,7 +28805,7 @@ var deserializeAws_restJson1AppInstanceUserList = function (output, context) {
28502
28805
  var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output, context) {
28503
28806
  return {
28504
28807
  ReadMarkerTimestamp: output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
28505
- ? new Date(Math.round(output.ReadMarkerTimestamp * 1000))
28808
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
28506
28809
  : undefined,
28507
28810
  Type: __expectString(output.Type),
28508
28811
  };
@@ -28576,13 +28879,13 @@ var deserializeAws_restJson1Bot = function (output, context) {
28576
28879
  BotId: __expectString(output.BotId),
28577
28880
  BotType: __expectString(output.BotType),
28578
28881
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28579
- ? new Date(output.CreatedTimestamp)
28882
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
28580
28883
  : undefined,
28581
28884
  Disabled: __expectBoolean(output.Disabled),
28582
28885
  DisplayName: __expectString(output.DisplayName),
28583
28886
  SecurityToken: __expectString(output.SecurityToken),
28584
28887
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
28585
- ? new Date(output.UpdatedTimestamp)
28888
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
28586
28889
  : undefined,
28587
28890
  UserId: __expectString(output.UserId),
28588
28891
  };
@@ -28629,13 +28932,13 @@ var deserializeAws_restJson1Channel = function (output, context) {
28629
28932
  ? deserializeAws_restJson1Identity(output.CreatedBy, context)
28630
28933
  : undefined,
28631
28934
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28632
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
28935
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28633
28936
  : undefined,
28634
28937
  LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
28635
- ? new Date(Math.round(output.LastMessageTimestamp * 1000))
28938
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
28636
28939
  : undefined,
28637
28940
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
28638
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
28941
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
28639
28942
  : undefined,
28640
28943
  Metadata: __expectString(output.Metadata),
28641
28944
  Mode: __expectString(output.Mode),
@@ -28650,7 +28953,7 @@ var deserializeAws_restJson1ChannelBan = function (output, context) {
28650
28953
  ? deserializeAws_restJson1Identity(output.CreatedBy, context)
28651
28954
  : undefined,
28652
28955
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28653
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
28956
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28654
28957
  : undefined,
28655
28958
  Member: output.Member !== undefined && output.Member !== null
28656
28959
  ? deserializeAws_restJson1Identity(output.Member, context)
@@ -28678,13 +28981,13 @@ var deserializeAws_restJson1ChannelMembership = function (output, context) {
28678
28981
  return {
28679
28982
  ChannelArn: __expectString(output.ChannelArn),
28680
28983
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28681
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
28984
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28682
28985
  : undefined,
28683
28986
  InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
28684
28987
  ? deserializeAws_restJson1Identity(output.InvitedBy, context)
28685
28988
  : undefined,
28686
28989
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
28687
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
28990
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
28688
28991
  : undefined,
28689
28992
  Member: output.Member !== undefined && output.Member !== null
28690
28993
  ? deserializeAws_restJson1Identity(output.Member, context)
@@ -28734,13 +29037,13 @@ var deserializeAws_restJson1ChannelMessage = function (output, context) {
28734
29037
  ChannelArn: __expectString(output.ChannelArn),
28735
29038
  Content: __expectString(output.Content),
28736
29039
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28737
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
29040
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28738
29041
  : undefined,
28739
29042
  LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
28740
- ? new Date(Math.round(output.LastEditedTimestamp * 1000))
29043
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
28741
29044
  : undefined,
28742
29045
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
28743
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
29046
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
28744
29047
  : undefined,
28745
29048
  MessageId: __expectString(output.MessageId),
28746
29049
  Metadata: __expectString(output.Metadata),
@@ -28756,13 +29059,13 @@ var deserializeAws_restJson1ChannelMessageSummary = function (output, context) {
28756
29059
  return {
28757
29060
  Content: __expectString(output.Content),
28758
29061
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28759
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
29062
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28760
29063
  : undefined,
28761
29064
  LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
28762
- ? new Date(Math.round(output.LastEditedTimestamp * 1000))
29065
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
28763
29066
  : undefined,
28764
29067
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
28765
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
29068
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
28766
29069
  : undefined,
28767
29070
  MessageId: __expectString(output.MessageId),
28768
29071
  Metadata: __expectString(output.Metadata),
@@ -28807,7 +29110,7 @@ var deserializeAws_restJson1ChannelModerator = function (output, context) {
28807
29110
  ? deserializeAws_restJson1Identity(output.CreatedBy, context)
28808
29111
  : undefined,
28809
29112
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28810
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
29113
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
28811
29114
  : undefined,
28812
29115
  Moderator: output.Moderator !== undefined && output.Moderator !== null
28813
29116
  ? deserializeAws_restJson1Identity(output.Moderator, context)
@@ -28833,14 +29136,14 @@ var deserializeAws_restJson1ChannelModeratorSummaryList = function (output, cont
28833
29136
  };
28834
29137
  var deserializeAws_restJson1ChannelRetentionSettings = function (output, context) {
28835
29138
  return {
28836
- RetentionDays: __expectInt(output.RetentionDays),
29139
+ RetentionDays: __expectInt32(output.RetentionDays),
28837
29140
  };
28838
29141
  };
28839
29142
  var deserializeAws_restJson1ChannelSummary = function (output, context) {
28840
29143
  return {
28841
29144
  ChannelArn: __expectString(output.ChannelArn),
28842
29145
  LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
28843
- ? new Date(Math.round(output.LastMessageTimestamp * 1000))
29146
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
28844
29147
  : undefined,
28845
29148
  Metadata: __expectString(output.Metadata),
28846
29149
  Mode: __expectString(output.Mode),
@@ -28860,7 +29163,7 @@ var deserializeAws_restJson1ChannelSummaryList = function (output, context) {
28860
29163
  };
28861
29164
  var deserializeAws_restJson1ConversationRetentionSettings = function (output, context) {
28862
29165
  return {
28863
- RetentionDays: __expectInt(output.RetentionDays),
29166
+ RetentionDays: __expectInt32(output.RetentionDays),
28864
29167
  };
28865
29168
  };
28866
29169
  var deserializeAws_restJson1CreateAttendeeError = function (output, context) {
@@ -28959,7 +29262,7 @@ var deserializeAws_restJson1LoggingConfiguration = function (output, context) {
28959
29262
  var deserializeAws_restJson1MediaCapturePipeline = function (output, context) {
28960
29263
  return {
28961
29264
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
28962
- ? new Date(output.CreatedTimestamp)
29265
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
28963
29266
  : undefined,
28964
29267
  MediaPipelineId: __expectString(output.MediaPipelineId),
28965
29268
  SinkArn: __expectString(output.SinkArn),
@@ -28968,7 +29271,7 @@ var deserializeAws_restJson1MediaCapturePipeline = function (output, context) {
28968
29271
  SourceType: __expectString(output.SourceType),
28969
29272
  Status: __expectString(output.Status),
28970
29273
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
28971
- ? new Date(output.UpdatedTimestamp)
29274
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
28972
29275
  : undefined,
28973
29276
  };
28974
29277
  };
@@ -29082,10 +29385,10 @@ var deserializeAws_restJson1Origination = function (output, context) {
29082
29385
  var deserializeAws_restJson1OriginationRoute = function (output, context) {
29083
29386
  return {
29084
29387
  Host: __expectString(output.Host),
29085
- Port: __expectInt(output.Port),
29086
- Priority: __expectInt(output.Priority),
29388
+ Port: __expectInt32(output.Port),
29389
+ Priority: __expectInt32(output.Priority),
29087
29390
  Protocol: __expectString(output.Protocol),
29088
- Weight: __expectInt(output.Weight),
29391
+ Weight: __expectInt32(output.Weight),
29089
29392
  };
29090
29393
  };
29091
29394
  var deserializeAws_restJson1OriginationRouteList = function (output, context) {
@@ -29126,10 +29429,10 @@ var deserializeAws_restJson1PhoneNumber = function (output, context) {
29126
29429
  : undefined,
29127
29430
  Country: __expectString(output.Country),
29128
29431
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29129
- ? new Date(output.CreatedTimestamp)
29432
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29130
29433
  : undefined,
29131
29434
  DeletionTimestamp: output.DeletionTimestamp !== undefined && output.DeletionTimestamp !== null
29132
- ? new Date(output.DeletionTimestamp)
29435
+ ? __expectNonNull(__parseRfc3339DateTime(output.DeletionTimestamp))
29133
29436
  : undefined,
29134
29437
  E164PhoneNumber: __expectString(output.E164PhoneNumber),
29135
29438
  PhoneNumberId: __expectString(output.PhoneNumberId),
@@ -29137,14 +29440,14 @@ var deserializeAws_restJson1PhoneNumber = function (output, context) {
29137
29440
  Status: __expectString(output.Status),
29138
29441
  Type: __expectString(output.Type),
29139
29442
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29140
- ? new Date(output.UpdatedTimestamp)
29443
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29141
29444
  : undefined,
29142
29445
  };
29143
29446
  };
29144
29447
  var deserializeAws_restJson1PhoneNumberAssociation = function (output, context) {
29145
29448
  return {
29146
29449
  AssociatedTimestamp: output.AssociatedTimestamp !== undefined && output.AssociatedTimestamp !== null
29147
- ? new Date(output.AssociatedTimestamp)
29450
+ ? __expectNonNull(__parseRfc3339DateTime(output.AssociatedTimestamp))
29148
29451
  : undefined,
29149
29452
  Name: __expectString(output.Name),
29150
29453
  Value: __expectString(output.Value),
@@ -29218,7 +29521,7 @@ var deserializeAws_restJson1PhoneNumberList = function (output, context) {
29218
29521
  var deserializeAws_restJson1PhoneNumberOrder = function (output, context) {
29219
29522
  return {
29220
29523
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29221
- ? new Date(output.CreatedTimestamp)
29524
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29222
29525
  : undefined,
29223
29526
  OrderedPhoneNumbers: output.OrderedPhoneNumbers !== undefined && output.OrderedPhoneNumbers !== null
29224
29527
  ? deserializeAws_restJson1OrderedPhoneNumberList(output.OrderedPhoneNumbers, context)
@@ -29227,7 +29530,7 @@ var deserializeAws_restJson1PhoneNumberOrder = function (output, context) {
29227
29530
  ProductType: __expectString(output.ProductType),
29228
29531
  Status: __expectString(output.Status),
29229
29532
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29230
- ? new Date(output.UpdatedTimestamp)
29533
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29231
29534
  : undefined,
29232
29535
  };
29233
29536
  };
@@ -29253,7 +29556,7 @@ var deserializeAws_restJson1PhoneNumberTypeList = function (output, context) {
29253
29556
  };
29254
29557
  var deserializeAws_restJson1Proxy = function (output, context) {
29255
29558
  return {
29256
- DefaultSessionExpiryMinutes: __expectInt(output.DefaultSessionExpiryMinutes),
29559
+ DefaultSessionExpiryMinutes: __expectInt32(output.DefaultSessionExpiryMinutes),
29257
29560
  Disabled: __expectBoolean(output.Disabled),
29258
29561
  FallBackPhoneNumber: __expectString(output.FallBackPhoneNumber),
29259
29562
  PhoneNumberCountries: output.PhoneNumberCountries !== undefined && output.PhoneNumberCountries !== null
@@ -29267,12 +29570,12 @@ var deserializeAws_restJson1ProxySession = function (output, context) {
29267
29570
  ? deserializeAws_restJson1CapabilityList(output.Capabilities, context)
29268
29571
  : undefined,
29269
29572
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29270
- ? new Date(output.CreatedTimestamp)
29573
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29271
29574
  : undefined,
29272
29575
  EndedTimestamp: output.EndedTimestamp !== undefined && output.EndedTimestamp !== null
29273
- ? new Date(output.EndedTimestamp)
29576
+ ? __expectNonNull(__parseRfc3339DateTime(output.EndedTimestamp))
29274
29577
  : undefined,
29275
- ExpiryMinutes: __expectInt(output.ExpiryMinutes),
29578
+ ExpiryMinutes: __expectInt32(output.ExpiryMinutes),
29276
29579
  GeoMatchLevel: __expectString(output.GeoMatchLevel),
29277
29580
  GeoMatchParams: output.GeoMatchParams !== undefined && output.GeoMatchParams !== null
29278
29581
  ? deserializeAws_restJson1GeoMatchParams(output.GeoMatchParams, context)
@@ -29285,7 +29588,7 @@ var deserializeAws_restJson1ProxySession = function (output, context) {
29285
29588
  ProxySessionId: __expectString(output.ProxySessionId),
29286
29589
  Status: __expectString(output.Status),
29287
29590
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29288
- ? new Date(output.UpdatedTimestamp)
29591
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29289
29592
  : undefined,
29290
29593
  VoiceConnectorId: __expectString(output.VoiceConnectorId),
29291
29594
  };
@@ -29315,12 +29618,12 @@ var deserializeAws_restJson1Room = function (output, context) {
29315
29618
  AccountId: __expectString(output.AccountId),
29316
29619
  CreatedBy: __expectString(output.CreatedBy),
29317
29620
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29318
- ? new Date(output.CreatedTimestamp)
29621
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29319
29622
  : undefined,
29320
29623
  Name: __expectString(output.Name),
29321
29624
  RoomId: __expectString(output.RoomId),
29322
29625
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29323
- ? new Date(output.UpdatedTimestamp)
29626
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29324
29627
  : undefined,
29325
29628
  };
29326
29629
  };
@@ -29343,7 +29646,7 @@ var deserializeAws_restJson1RoomMembership = function (output, context) {
29343
29646
  Role: __expectString(output.Role),
29344
29647
  RoomId: __expectString(output.RoomId),
29345
29648
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29346
- ? new Date(output.UpdatedTimestamp)
29649
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29347
29650
  : undefined,
29348
29651
  };
29349
29652
  };
@@ -29359,7 +29662,7 @@ var deserializeAws_restJson1RoomMembershipList = function (output, context) {
29359
29662
  };
29360
29663
  var deserializeAws_restJson1RoomRetentionSettings = function (output, context) {
29361
29664
  return {
29362
- RetentionDays: __expectInt(output.RetentionDays),
29665
+ RetentionDays: __expectInt32(output.RetentionDays),
29363
29666
  };
29364
29667
  };
29365
29668
  var deserializeAws_restJson1SensitiveStringList = function (output, context) {
@@ -29391,7 +29694,7 @@ var deserializeAws_restJson1SipMediaApplication = function (output, context) {
29391
29694
  return {
29392
29695
  AwsRegion: __expectString(output.AwsRegion),
29393
29696
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29394
- ? new Date(output.CreatedTimestamp)
29697
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29395
29698
  : undefined,
29396
29699
  Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
29397
29700
  ? deserializeAws_restJson1SipMediaApplicationEndpointList(output.Endpoints, context)
@@ -29399,7 +29702,7 @@ var deserializeAws_restJson1SipMediaApplication = function (output, context) {
29399
29702
  Name: __expectString(output.Name),
29400
29703
  SipMediaApplicationId: __expectString(output.SipMediaApplicationId),
29401
29704
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29402
- ? new Date(output.UpdatedTimestamp)
29705
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29403
29706
  : undefined,
29404
29707
  };
29405
29708
  };
@@ -29441,7 +29744,7 @@ var deserializeAws_restJson1SipMediaApplicationLoggingConfiguration = function (
29441
29744
  var deserializeAws_restJson1SipRule = function (output, context) {
29442
29745
  return {
29443
29746
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29444
- ? new Date(output.CreatedTimestamp)
29747
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29445
29748
  : undefined,
29446
29749
  Disabled: __expectBoolean(output.Disabled),
29447
29750
  Name: __expectString(output.Name),
@@ -29452,7 +29755,7 @@ var deserializeAws_restJson1SipRule = function (output, context) {
29452
29755
  TriggerType: __expectString(output.TriggerType),
29453
29756
  TriggerValue: __expectString(output.TriggerValue),
29454
29757
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29455
- ? new Date(output.UpdatedTimestamp)
29758
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29456
29759
  : undefined,
29457
29760
  };
29458
29761
  };
@@ -29469,7 +29772,7 @@ var deserializeAws_restJson1SipRuleList = function (output, context) {
29469
29772
  var deserializeAws_restJson1SipRuleTargetApplication = function (output, context) {
29470
29773
  return {
29471
29774
  AwsRegion: __expectString(output.AwsRegion),
29472
- Priority: __expectInt(output.Priority),
29775
+ Priority: __expectInt32(output.Priority),
29473
29776
  SipMediaApplicationId: __expectString(output.SipMediaApplicationId),
29474
29777
  };
29475
29778
  };
@@ -29485,7 +29788,7 @@ var deserializeAws_restJson1SipRuleTargetApplicationList = function (output, con
29485
29788
  };
29486
29789
  var deserializeAws_restJson1StreamingConfiguration = function (output, context) {
29487
29790
  return {
29488
- DataRetentionInHours: __expectInt(output.DataRetentionInHours),
29791
+ DataRetentionInHours: __expectInt32(output.DataRetentionInHours),
29489
29792
  Disabled: __expectBoolean(output.Disabled),
29490
29793
  StreamingNotificationTargets: output.StreamingNotificationTargets !== undefined && output.StreamingNotificationTargets !== null
29491
29794
  ? deserializeAws_restJson1StreamingNotificationTargetList(output.StreamingNotificationTargets, context)
@@ -29548,7 +29851,7 @@ var deserializeAws_restJson1Termination = function (output, context) {
29548
29851
  CidrAllowedList: output.CidrAllowedList !== undefined && output.CidrAllowedList !== null
29549
29852
  ? deserializeAws_restJson1StringList(output.CidrAllowedList, context)
29550
29853
  : undefined,
29551
- CpsLimit: __expectInt(output.CpsLimit),
29854
+ CpsLimit: __expectInt32(output.CpsLimit),
29552
29855
  DefaultPhoneNumber: __expectString(output.DefaultPhoneNumber),
29553
29856
  Disabled: __expectBoolean(output.Disabled),
29554
29857
  };
@@ -29556,7 +29859,9 @@ var deserializeAws_restJson1Termination = function (output, context) {
29556
29859
  var deserializeAws_restJson1TerminationHealth = function (output, context) {
29557
29860
  return {
29558
29861
  Source: __expectString(output.Source),
29559
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? new Date(output.Timestamp) : undefined,
29862
+ Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
29863
+ ? __expectNonNull(__parseRfc3339DateTime(output.Timestamp))
29864
+ : undefined,
29560
29865
  };
29561
29866
  };
29562
29867
  var deserializeAws_restJson1User = function (output, context) {
@@ -29566,12 +29871,16 @@ var deserializeAws_restJson1User = function (output, context) {
29566
29871
  ? deserializeAws_restJson1AlexaForBusinessMetadata(output.AlexaForBusinessMetadata, context)
29567
29872
  : undefined,
29568
29873
  DisplayName: __expectString(output.DisplayName),
29569
- InvitedOn: output.InvitedOn !== undefined && output.InvitedOn !== null ? new Date(output.InvitedOn) : undefined,
29874
+ InvitedOn: output.InvitedOn !== undefined && output.InvitedOn !== null
29875
+ ? __expectNonNull(__parseRfc3339DateTime(output.InvitedOn))
29876
+ : undefined,
29570
29877
  LicenseType: __expectString(output.LicenseType),
29571
29878
  PersonalPIN: __expectString(output.PersonalPIN),
29572
29879
  PrimaryEmail: __expectString(output.PrimaryEmail),
29573
29880
  PrimaryProvisionedNumber: __expectString(output.PrimaryProvisionedNumber),
29574
- RegisteredOn: output.RegisteredOn !== undefined && output.RegisteredOn !== null ? new Date(output.RegisteredOn) : undefined,
29881
+ RegisteredOn: output.RegisteredOn !== undefined && output.RegisteredOn !== null
29882
+ ? __expectNonNull(__parseRfc3339DateTime(output.RegisteredOn))
29883
+ : undefined,
29575
29884
  UserId: __expectString(output.UserId),
29576
29885
  UserInvitationStatus: __expectString(output.UserInvitationStatus),
29577
29886
  UserRegistrationStatus: __expectString(output.UserRegistrationStatus),
@@ -29616,13 +29925,13 @@ var deserializeAws_restJson1VoiceConnector = function (output, context) {
29616
29925
  return {
29617
29926
  AwsRegion: __expectString(output.AwsRegion),
29618
29927
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29619
- ? new Date(output.CreatedTimestamp)
29928
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29620
29929
  : undefined,
29621
29930
  Name: __expectString(output.Name),
29622
29931
  OutboundHostName: __expectString(output.OutboundHostName),
29623
29932
  RequireEncryption: __expectBoolean(output.RequireEncryption),
29624
29933
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29625
- ? new Date(output.UpdatedTimestamp)
29934
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29626
29935
  : undefined,
29627
29936
  VoiceConnectorId: __expectString(output.VoiceConnectorId),
29628
29937
  };
@@ -29630,11 +29939,11 @@ var deserializeAws_restJson1VoiceConnector = function (output, context) {
29630
29939
  var deserializeAws_restJson1VoiceConnectorGroup = function (output, context) {
29631
29940
  return {
29632
29941
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
29633
- ? new Date(output.CreatedTimestamp)
29942
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
29634
29943
  : undefined,
29635
29944
  Name: __expectString(output.Name),
29636
29945
  UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
29637
- ? new Date(output.UpdatedTimestamp)
29946
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
29638
29947
  : undefined,
29639
29948
  VoiceConnectorGroupId: __expectString(output.VoiceConnectorGroupId),
29640
29949
  VoiceConnectorItems: output.VoiceConnectorItems !== undefined && output.VoiceConnectorItems !== null
@@ -29654,7 +29963,7 @@ var deserializeAws_restJson1VoiceConnectorGroupList = function (output, context)
29654
29963
  };
29655
29964
  var deserializeAws_restJson1VoiceConnectorItem = function (output, context) {
29656
29965
  return {
29657
- Priority: __expectInt(output.Priority),
29966
+ Priority: __expectInt32(output.Priority),
29658
29967
  VoiceConnectorId: __expectString(output.VoiceConnectorId),
29659
29968
  };
29660
29969
  };