@aws-sdk/client-connect 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.
@@ -4155,7 +4155,7 @@ const deserializeAws_restJson1AssociateInstanceStorageConfigCommand = async (out
4155
4155
  $metadata: deserializeMetadata(output),
4156
4156
  AssociationId: undefined,
4157
4157
  };
4158
- const data = await parseBody(output.body, context);
4158
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4159
4159
  if (data.AssociationId !== undefined && data.AssociationId !== null) {
4160
4160
  contents.AssociationId = smithy_client_1.expectString(data.AssociationId);
4161
4161
  }
@@ -4587,7 +4587,7 @@ const deserializeAws_restJson1AssociateSecurityKeyCommand = async (output, conte
4587
4587
  $metadata: deserializeMetadata(output),
4588
4588
  AssociationId: undefined,
4589
4589
  };
4590
- const data = await parseBody(output.body, context);
4590
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4591
4591
  if (data.AssociationId !== undefined && data.AssociationId !== null) {
4592
4592
  contents.AssociationId = smithy_client_1.expectString(data.AssociationId);
4593
4593
  }
@@ -4684,7 +4684,7 @@ const deserializeAws_restJson1CreateAgentStatusCommand = async (output, context)
4684
4684
  AgentStatusARN: undefined,
4685
4685
  AgentStatusId: undefined,
4686
4686
  };
4687
- const data = await parseBody(output.body, context);
4687
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4688
4688
  if (data.AgentStatusARN !== undefined && data.AgentStatusARN !== null) {
4689
4689
  contents.AgentStatusARN = smithy_client_1.expectString(data.AgentStatusARN);
4690
4690
  }
@@ -4784,7 +4784,7 @@ const deserializeAws_restJson1CreateContactFlowCommand = async (output, context)
4784
4784
  ContactFlowArn: undefined,
4785
4785
  ContactFlowId: undefined,
4786
4786
  };
4787
- const data = await parseBody(output.body, context);
4787
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4788
4788
  if (data.ContactFlowArn !== undefined && data.ContactFlowArn !== null) {
4789
4789
  contents.ContactFlowArn = smithy_client_1.expectString(data.ContactFlowArn);
4790
4790
  }
@@ -4892,7 +4892,7 @@ const deserializeAws_restJson1CreateHoursOfOperationCommand = async (output, con
4892
4892
  HoursOfOperationArn: undefined,
4893
4893
  HoursOfOperationId: undefined,
4894
4894
  };
4895
- const data = await parseBody(output.body, context);
4895
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4896
4896
  if (data.HoursOfOperationArn !== undefined && data.HoursOfOperationArn !== null) {
4897
4897
  contents.HoursOfOperationArn = smithy_client_1.expectString(data.HoursOfOperationArn);
4898
4898
  }
@@ -4992,7 +4992,7 @@ const deserializeAws_restJson1CreateInstanceCommand = async (output, context) =>
4992
4992
  Arn: undefined,
4993
4993
  Id: undefined,
4994
4994
  };
4995
- const data = await parseBody(output.body, context);
4995
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4996
4996
  if (data.Arn !== undefined && data.Arn !== null) {
4997
4997
  contents.Arn = smithy_client_1.expectString(data.Arn);
4998
4998
  }
@@ -5076,7 +5076,7 @@ const deserializeAws_restJson1CreateIntegrationAssociationCommand = async (outpu
5076
5076
  IntegrationAssociationArn: undefined,
5077
5077
  IntegrationAssociationId: undefined,
5078
5078
  };
5079
- const data = await parseBody(output.body, context);
5079
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5080
5080
  if (data.IntegrationAssociationArn !== undefined && data.IntegrationAssociationArn !== null) {
5081
5081
  contents.IntegrationAssociationArn = smithy_client_1.expectString(data.IntegrationAssociationArn);
5082
5082
  }
@@ -5160,7 +5160,7 @@ const deserializeAws_restJson1CreateQueueCommand = async (output, context) => {
5160
5160
  QueueArn: undefined,
5161
5161
  QueueId: undefined,
5162
5162
  };
5163
- const data = await parseBody(output.body, context);
5163
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5164
5164
  if (data.QueueArn !== undefined && data.QueueArn !== null) {
5165
5165
  contents.QueueArn = smithy_client_1.expectString(data.QueueArn);
5166
5166
  }
@@ -5260,7 +5260,7 @@ const deserializeAws_restJson1CreateQuickConnectCommand = async (output, context
5260
5260
  QuickConnectARN: undefined,
5261
5261
  QuickConnectId: undefined,
5262
5262
  };
5263
- const data = await parseBody(output.body, context);
5263
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5264
5264
  if (data.QuickConnectARN !== undefined && data.QuickConnectARN !== null) {
5265
5265
  contents.QuickConnectARN = smithy_client_1.expectString(data.QuickConnectARN);
5266
5266
  }
@@ -5360,7 +5360,7 @@ const deserializeAws_restJson1CreateRoutingProfileCommand = async (output, conte
5360
5360
  RoutingProfileArn: undefined,
5361
5361
  RoutingProfileId: undefined,
5362
5362
  };
5363
- const data = await parseBody(output.body, context);
5363
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5364
5364
  if (data.RoutingProfileArn !== undefined && data.RoutingProfileArn !== null) {
5365
5365
  contents.RoutingProfileArn = smithy_client_1.expectString(data.RoutingProfileArn);
5366
5366
  }
@@ -5460,7 +5460,7 @@ const deserializeAws_restJson1CreateUseCaseCommand = async (output, context) =>
5460
5460
  UseCaseArn: undefined,
5461
5461
  UseCaseId: undefined,
5462
5462
  };
5463
- const data = await parseBody(output.body, context);
5463
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5464
5464
  if (data.UseCaseArn !== undefined && data.UseCaseArn !== null) {
5465
5465
  contents.UseCaseArn = smithy_client_1.expectString(data.UseCaseArn);
5466
5466
  }
@@ -5544,7 +5544,7 @@ const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
5544
5544
  UserArn: undefined,
5545
5545
  UserId: undefined,
5546
5546
  };
5547
- const data = await parseBody(output.body, context);
5547
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5548
5548
  if (data.UserArn !== undefined && data.UserArn !== null) {
5549
5549
  contents.UserArn = smithy_client_1.expectString(data.UserArn);
5550
5550
  }
@@ -5644,7 +5644,7 @@ const deserializeAws_restJson1CreateUserHierarchyGroupCommand = async (output, c
5644
5644
  HierarchyGroupArn: undefined,
5645
5645
  HierarchyGroupId: undefined,
5646
5646
  };
5647
- const data = await parseBody(output.body, context);
5647
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5648
5648
  if (data.HierarchyGroupArn !== undefined && data.HierarchyGroupArn !== null) {
5649
5649
  contents.HierarchyGroupArn = smithy_client_1.expectString(data.HierarchyGroupArn);
5650
5650
  }
@@ -6251,7 +6251,7 @@ const deserializeAws_restJson1DescribeAgentStatusCommand = async (output, contex
6251
6251
  $metadata: deserializeMetadata(output),
6252
6252
  AgentStatus: undefined,
6253
6253
  };
6254
- const data = await parseBody(output.body, context);
6254
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6255
6255
  if (data.AgentStatus !== undefined && data.AgentStatus !== null) {
6256
6256
  contents.AgentStatus = deserializeAws_restJson1AgentStatus(data.AgentStatus, context);
6257
6257
  }
@@ -6331,7 +6331,7 @@ const deserializeAws_restJson1DescribeContactFlowCommand = async (output, contex
6331
6331
  $metadata: deserializeMetadata(output),
6332
6332
  ContactFlow: undefined,
6333
6333
  };
6334
- const data = await parseBody(output.body, context);
6334
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6335
6335
  if (data.ContactFlow !== undefined && data.ContactFlow !== null) {
6336
6336
  contents.ContactFlow = deserializeAws_restJson1ContactFlow(data.ContactFlow, context);
6337
6337
  }
@@ -6419,7 +6419,7 @@ const deserializeAws_restJson1DescribeHoursOfOperationCommand = async (output, c
6419
6419
  $metadata: deserializeMetadata(output),
6420
6420
  HoursOfOperation: undefined,
6421
6421
  };
6422
- const data = await parseBody(output.body, context);
6422
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6423
6423
  if (data.HoursOfOperation !== undefined && data.HoursOfOperation !== null) {
6424
6424
  contents.HoursOfOperation = deserializeAws_restJson1HoursOfOperation(data.HoursOfOperation, context);
6425
6425
  }
@@ -6499,7 +6499,7 @@ const deserializeAws_restJson1DescribeInstanceCommand = async (output, context)
6499
6499
  $metadata: deserializeMetadata(output),
6500
6500
  Instance: undefined,
6501
6501
  };
6502
- const data = await parseBody(output.body, context);
6502
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6503
6503
  if (data.Instance !== undefined && data.Instance !== null) {
6504
6504
  contents.Instance = deserializeAws_restJson1Instance(data.Instance, context);
6505
6505
  }
@@ -6563,7 +6563,7 @@ const deserializeAws_restJson1DescribeInstanceAttributeCommand = async (output,
6563
6563
  $metadata: deserializeMetadata(output),
6564
6564
  Attribute: undefined,
6565
6565
  };
6566
- const data = await parseBody(output.body, context);
6566
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6567
6567
  if (data.Attribute !== undefined && data.Attribute !== null) {
6568
6568
  contents.Attribute = deserializeAws_restJson1Attribute(data.Attribute, context);
6569
6569
  }
@@ -6643,7 +6643,7 @@ const deserializeAws_restJson1DescribeInstanceStorageConfigCommand = async (outp
6643
6643
  $metadata: deserializeMetadata(output),
6644
6644
  StorageConfig: undefined,
6645
6645
  };
6646
- const data = await parseBody(output.body, context);
6646
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6647
6647
  if (data.StorageConfig !== undefined && data.StorageConfig !== null) {
6648
6648
  contents.StorageConfig = deserializeAws_restJson1InstanceStorageConfig(data.StorageConfig, context);
6649
6649
  }
@@ -6723,7 +6723,7 @@ const deserializeAws_restJson1DescribeQueueCommand = async (output, context) =>
6723
6723
  $metadata: deserializeMetadata(output),
6724
6724
  Queue: undefined,
6725
6725
  };
6726
- const data = await parseBody(output.body, context);
6726
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6727
6727
  if (data.Queue !== undefined && data.Queue !== null) {
6728
6728
  contents.Queue = deserializeAws_restJson1Queue(data.Queue, context);
6729
6729
  }
@@ -6803,7 +6803,7 @@ const deserializeAws_restJson1DescribeQuickConnectCommand = async (output, conte
6803
6803
  $metadata: deserializeMetadata(output),
6804
6804
  QuickConnect: undefined,
6805
6805
  };
6806
- const data = await parseBody(output.body, context);
6806
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6807
6807
  if (data.QuickConnect !== undefined && data.QuickConnect !== null) {
6808
6808
  contents.QuickConnect = deserializeAws_restJson1QuickConnect(data.QuickConnect, context);
6809
6809
  }
@@ -6883,7 +6883,7 @@ const deserializeAws_restJson1DescribeRoutingProfileCommand = async (output, con
6883
6883
  $metadata: deserializeMetadata(output),
6884
6884
  RoutingProfile: undefined,
6885
6885
  };
6886
- const data = await parseBody(output.body, context);
6886
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6887
6887
  if (data.RoutingProfile !== undefined && data.RoutingProfile !== null) {
6888
6888
  contents.RoutingProfile = deserializeAws_restJson1RoutingProfile(data.RoutingProfile, context);
6889
6889
  }
@@ -6963,7 +6963,7 @@ const deserializeAws_restJson1DescribeUserCommand = async (output, context) => {
6963
6963
  $metadata: deserializeMetadata(output),
6964
6964
  User: undefined,
6965
6965
  };
6966
- const data = await parseBody(output.body, context);
6966
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6967
6967
  if (data.User !== undefined && data.User !== null) {
6968
6968
  contents.User = deserializeAws_restJson1User(data.User, context);
6969
6969
  }
@@ -7043,7 +7043,7 @@ const deserializeAws_restJson1DescribeUserHierarchyGroupCommand = async (output,
7043
7043
  $metadata: deserializeMetadata(output),
7044
7044
  HierarchyGroup: undefined,
7045
7045
  };
7046
- const data = await parseBody(output.body, context);
7046
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7047
7047
  if (data.HierarchyGroup !== undefined && data.HierarchyGroup !== null) {
7048
7048
  contents.HierarchyGroup = deserializeAws_restJson1HierarchyGroup(data.HierarchyGroup, context);
7049
7049
  }
@@ -7123,7 +7123,7 @@ const deserializeAws_restJson1DescribeUserHierarchyStructureCommand = async (out
7123
7123
  $metadata: deserializeMetadata(output),
7124
7124
  HierarchyStructure: undefined,
7125
7125
  };
7126
- const data = await parseBody(output.body, context);
7126
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7127
7127
  if (data.HierarchyStructure !== undefined && data.HierarchyStructure !== null) {
7128
7128
  contents.HierarchyStructure = deserializeAws_restJson1HierarchyStructure(data.HierarchyStructure, context);
7129
7129
  }
@@ -7803,7 +7803,7 @@ const deserializeAws_restJson1GetContactAttributesCommand = async (output, conte
7803
7803
  $metadata: deserializeMetadata(output),
7804
7804
  Attributes: undefined,
7805
7805
  };
7806
- const data = await parseBody(output.body, context);
7806
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7807
7807
  if (data.Attributes !== undefined && data.Attributes !== null) {
7808
7808
  contents.Attributes = deserializeAws_restJson1Attributes(data.Attributes, context);
7809
7809
  }
@@ -7869,9 +7869,9 @@ const deserializeAws_restJson1GetCurrentMetricDataCommand = async (output, conte
7869
7869
  MetricResults: undefined,
7870
7870
  NextToken: undefined,
7871
7871
  };
7872
- const data = await parseBody(output.body, context);
7872
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7873
7873
  if (data.DataSnapshotTime !== undefined && data.DataSnapshotTime !== null) {
7874
- contents.DataSnapshotTime = new Date(Math.round(data.DataSnapshotTime * 1000));
7874
+ contents.DataSnapshotTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.DataSnapshotTime)));
7875
7875
  }
7876
7876
  if (data.MetricResults !== undefined && data.MetricResults !== null) {
7877
7877
  contents.MetricResults = deserializeAws_restJson1CurrentMetricResults(data.MetricResults, context);
@@ -7955,7 +7955,7 @@ const deserializeAws_restJson1GetFederationTokenCommand = async (output, context
7955
7955
  $metadata: deserializeMetadata(output),
7956
7956
  Credentials: undefined,
7957
7957
  };
7958
- const data = await parseBody(output.body, context);
7958
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7959
7959
  if (data.Credentials !== undefined && data.Credentials !== null) {
7960
7960
  contents.Credentials = deserializeAws_restJson1Credentials(data.Credentials, context);
7961
7961
  }
@@ -8044,7 +8044,7 @@ const deserializeAws_restJson1GetMetricDataCommand = async (output, context) =>
8044
8044
  MetricResults: undefined,
8045
8045
  NextToken: undefined,
8046
8046
  };
8047
- const data = await parseBody(output.body, context);
8047
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8048
8048
  if (data.MetricResults !== undefined && data.MetricResults !== null) {
8049
8049
  contents.MetricResults = deserializeAws_restJson1HistoricalMetricResults(data.MetricResults, context);
8050
8050
  }
@@ -8128,7 +8128,7 @@ const deserializeAws_restJson1ListAgentStatusesCommand = async (output, context)
8128
8128
  AgentStatusSummaryList: undefined,
8129
8129
  NextToken: undefined,
8130
8130
  };
8131
- const data = await parseBody(output.body, context);
8131
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8132
8132
  if (data.AgentStatusSummaryList !== undefined && data.AgentStatusSummaryList !== null) {
8133
8133
  contents.AgentStatusSummaryList = deserializeAws_restJson1AgentStatusSummaryList(data.AgentStatusSummaryList, context);
8134
8134
  }
@@ -8212,7 +8212,7 @@ const deserializeAws_restJson1ListApprovedOriginsCommand = async (output, contex
8212
8212
  NextToken: undefined,
8213
8213
  Origins: undefined,
8214
8214
  };
8215
- const data = await parseBody(output.body, context);
8215
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8216
8216
  if (data.NextToken !== undefined && data.NextToken !== null) {
8217
8217
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
8218
8218
  }
@@ -8296,7 +8296,7 @@ const deserializeAws_restJson1ListBotsCommand = async (output, context) => {
8296
8296
  LexBots: undefined,
8297
8297
  NextToken: undefined,
8298
8298
  };
8299
- const data = await parseBody(output.body, context);
8299
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8300
8300
  if (data.LexBots !== undefined && data.LexBots !== null) {
8301
8301
  contents.LexBots = deserializeAws_restJson1LexBotConfigList(data.LexBots, context);
8302
8302
  }
@@ -8372,7 +8372,7 @@ const deserializeAws_restJson1ListContactFlowsCommand = async (output, context)
8372
8372
  ContactFlowSummaryList: undefined,
8373
8373
  NextToken: undefined,
8374
8374
  };
8375
- const data = await parseBody(output.body, context);
8375
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8376
8376
  if (data.ContactFlowSummaryList !== undefined && data.ContactFlowSummaryList !== null) {
8377
8377
  contents.ContactFlowSummaryList = deserializeAws_restJson1ContactFlowSummaryList(data.ContactFlowSummaryList, context);
8378
8378
  }
@@ -8456,7 +8456,7 @@ const deserializeAws_restJson1ListHoursOfOperationsCommand = async (output, cont
8456
8456
  HoursOfOperationSummaryList: undefined,
8457
8457
  NextToken: undefined,
8458
8458
  };
8459
- const data = await parseBody(output.body, context);
8459
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8460
8460
  if (data.HoursOfOperationSummaryList !== undefined && data.HoursOfOperationSummaryList !== null) {
8461
8461
  contents.HoursOfOperationSummaryList = deserializeAws_restJson1HoursOfOperationSummaryList(data.HoursOfOperationSummaryList, context);
8462
8462
  }
@@ -8540,7 +8540,7 @@ const deserializeAws_restJson1ListInstanceAttributesCommand = async (output, con
8540
8540
  Attributes: undefined,
8541
8541
  NextToken: undefined,
8542
8542
  };
8543
- const data = await parseBody(output.body, context);
8543
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8544
8544
  if (data.Attributes !== undefined && data.Attributes !== null) {
8545
8545
  contents.Attributes = deserializeAws_restJson1AttributesList(data.Attributes, context);
8546
8546
  }
@@ -8624,7 +8624,7 @@ const deserializeAws_restJson1ListInstancesCommand = async (output, context) =>
8624
8624
  InstanceSummaryList: undefined,
8625
8625
  NextToken: undefined,
8626
8626
  };
8627
- const data = await parseBody(output.body, context);
8627
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8628
8628
  if (data.InstanceSummaryList !== undefined && data.InstanceSummaryList !== null) {
8629
8629
  contents.InstanceSummaryList = deserializeAws_restJson1InstanceSummaryList(data.InstanceSummaryList, context);
8630
8630
  }
@@ -8684,7 +8684,7 @@ const deserializeAws_restJson1ListInstanceStorageConfigsCommand = async (output,
8684
8684
  NextToken: undefined,
8685
8685
  StorageConfigs: undefined,
8686
8686
  };
8687
- const data = await parseBody(output.body, context);
8687
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8688
8688
  if (data.NextToken !== undefined && data.NextToken !== null) {
8689
8689
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
8690
8690
  }
@@ -8768,7 +8768,7 @@ const deserializeAws_restJson1ListIntegrationAssociationsCommand = async (output
8768
8768
  IntegrationAssociationSummaryList: undefined,
8769
8769
  NextToken: undefined,
8770
8770
  };
8771
- const data = await parseBody(output.body, context);
8771
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8772
8772
  if (data.IntegrationAssociationSummaryList !== undefined && data.IntegrationAssociationSummaryList !== null) {
8773
8773
  contents.IntegrationAssociationSummaryList = deserializeAws_restJson1IntegrationAssociationSummaryList(data.IntegrationAssociationSummaryList, context);
8774
8774
  }
@@ -8844,7 +8844,7 @@ const deserializeAws_restJson1ListLambdaFunctionsCommand = async (output, contex
8844
8844
  LambdaFunctions: undefined,
8845
8845
  NextToken: undefined,
8846
8846
  };
8847
- const data = await parseBody(output.body, context);
8847
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8848
8848
  if (data.LambdaFunctions !== undefined && data.LambdaFunctions !== null) {
8849
8849
  contents.LambdaFunctions = deserializeAws_restJson1FunctionArnsList(data.LambdaFunctions, context);
8850
8850
  }
@@ -8928,7 +8928,7 @@ const deserializeAws_restJson1ListLexBotsCommand = async (output, context) => {
8928
8928
  LexBots: undefined,
8929
8929
  NextToken: undefined,
8930
8930
  };
8931
- const data = await parseBody(output.body, context);
8931
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8932
8932
  if (data.LexBots !== undefined && data.LexBots !== null) {
8933
8933
  contents.LexBots = deserializeAws_restJson1LexBotsList(data.LexBots, context);
8934
8934
  }
@@ -9012,7 +9012,7 @@ const deserializeAws_restJson1ListPhoneNumbersCommand = async (output, context)
9012
9012
  NextToken: undefined,
9013
9013
  PhoneNumberSummaryList: undefined,
9014
9014
  };
9015
- const data = await parseBody(output.body, context);
9015
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9016
9016
  if (data.NextToken !== undefined && data.NextToken !== null) {
9017
9017
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9018
9018
  }
@@ -9096,7 +9096,7 @@ const deserializeAws_restJson1ListPromptsCommand = async (output, context) => {
9096
9096
  NextToken: undefined,
9097
9097
  PromptSummaryList: undefined,
9098
9098
  };
9099
- const data = await parseBody(output.body, context);
9099
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9100
9100
  if (data.NextToken !== undefined && data.NextToken !== null) {
9101
9101
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9102
9102
  }
@@ -9180,7 +9180,7 @@ const deserializeAws_restJson1ListQueueQuickConnectsCommand = async (output, con
9180
9180
  NextToken: undefined,
9181
9181
  QuickConnectSummaryList: undefined,
9182
9182
  };
9183
- const data = await parseBody(output.body, context);
9183
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9184
9184
  if (data.NextToken !== undefined && data.NextToken !== null) {
9185
9185
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9186
9186
  }
@@ -9264,7 +9264,7 @@ const deserializeAws_restJson1ListQueuesCommand = async (output, context) => {
9264
9264
  NextToken: undefined,
9265
9265
  QueueSummaryList: undefined,
9266
9266
  };
9267
- const data = await parseBody(output.body, context);
9267
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9268
9268
  if (data.NextToken !== undefined && data.NextToken !== null) {
9269
9269
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9270
9270
  }
@@ -9348,7 +9348,7 @@ const deserializeAws_restJson1ListQuickConnectsCommand = async (output, context)
9348
9348
  NextToken: undefined,
9349
9349
  QuickConnectSummaryList: undefined,
9350
9350
  };
9351
- const data = await parseBody(output.body, context);
9351
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9352
9352
  if (data.NextToken !== undefined && data.NextToken !== null) {
9353
9353
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9354
9354
  }
@@ -9432,7 +9432,7 @@ const deserializeAws_restJson1ListRoutingProfileQueuesCommand = async (output, c
9432
9432
  NextToken: undefined,
9433
9433
  RoutingProfileQueueConfigSummaryList: undefined,
9434
9434
  };
9435
- const data = await parseBody(output.body, context);
9435
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9436
9436
  if (data.NextToken !== undefined && data.NextToken !== null) {
9437
9437
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9438
9438
  }
@@ -9516,7 +9516,7 @@ const deserializeAws_restJson1ListRoutingProfilesCommand = async (output, contex
9516
9516
  NextToken: undefined,
9517
9517
  RoutingProfileSummaryList: undefined,
9518
9518
  };
9519
- const data = await parseBody(output.body, context);
9519
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9520
9520
  if (data.NextToken !== undefined && data.NextToken !== null) {
9521
9521
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9522
9522
  }
@@ -9600,7 +9600,7 @@ const deserializeAws_restJson1ListSecurityKeysCommand = async (output, context)
9600
9600
  NextToken: undefined,
9601
9601
  SecurityKeys: undefined,
9602
9602
  };
9603
- const data = await parseBody(output.body, context);
9603
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9604
9604
  if (data.NextToken !== undefined && data.NextToken !== null) {
9605
9605
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9606
9606
  }
@@ -9684,7 +9684,7 @@ const deserializeAws_restJson1ListSecurityProfilesCommand = async (output, conte
9684
9684
  NextToken: undefined,
9685
9685
  SecurityProfileSummaryList: undefined,
9686
9686
  };
9687
- const data = await parseBody(output.body, context);
9687
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9688
9688
  if (data.NextToken !== undefined && data.NextToken !== null) {
9689
9689
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9690
9690
  }
@@ -9767,7 +9767,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
9767
9767
  $metadata: deserializeMetadata(output),
9768
9768
  tags: undefined,
9769
9769
  };
9770
- const data = await parseBody(output.body, context);
9770
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9771
9771
  if (data.tags !== undefined && data.tags !== null) {
9772
9772
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
9773
9773
  }
@@ -9848,7 +9848,7 @@ const deserializeAws_restJson1ListUseCasesCommand = async (output, context) => {
9848
9848
  NextToken: undefined,
9849
9849
  UseCaseSummaryList: undefined,
9850
9850
  };
9851
- const data = await parseBody(output.body, context);
9851
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9852
9852
  if (data.NextToken !== undefined && data.NextToken !== null) {
9853
9853
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9854
9854
  }
@@ -9924,7 +9924,7 @@ const deserializeAws_restJson1ListUserHierarchyGroupsCommand = async (output, co
9924
9924
  NextToken: undefined,
9925
9925
  UserHierarchyGroupSummaryList: undefined,
9926
9926
  };
9927
- const data = await parseBody(output.body, context);
9927
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9928
9928
  if (data.NextToken !== undefined && data.NextToken !== null) {
9929
9929
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9930
9930
  }
@@ -10008,7 +10008,7 @@ const deserializeAws_restJson1ListUsersCommand = async (output, context) => {
10008
10008
  NextToken: undefined,
10009
10009
  UserSummaryList: undefined,
10010
10010
  };
10011
- const data = await parseBody(output.body, context);
10011
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10012
10012
  if (data.NextToken !== undefined && data.NextToken !== null) {
10013
10013
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
10014
10014
  }
@@ -10153,7 +10153,7 @@ const deserializeAws_restJson1StartChatContactCommand = async (output, context)
10153
10153
  ParticipantId: undefined,
10154
10154
  ParticipantToken: undefined,
10155
10155
  };
10156
- const data = await parseBody(output.body, context);
10156
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10157
10157
  if (data.ContactId !== undefined && data.ContactId !== null) {
10158
10158
  contents.ContactId = smithy_client_1.expectString(data.ContactId);
10159
10159
  }
@@ -10307,7 +10307,7 @@ const deserializeAws_restJson1StartOutboundVoiceContactCommand = async (output,
10307
10307
  $metadata: deserializeMetadata(output),
10308
10308
  ContactId: undefined,
10309
10309
  };
10310
- const data = await parseBody(output.body, context);
10310
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10311
10311
  if (data.ContactId !== undefined && data.ContactId !== null) {
10312
10312
  contents.ContactId = smithy_client_1.expectString(data.ContactId);
10313
10313
  }
@@ -10403,7 +10403,7 @@ const deserializeAws_restJson1StartTaskContactCommand = async (output, context)
10403
10403
  $metadata: deserializeMetadata(output),
10404
10404
  ContactId: undefined,
10405
10405
  };
10406
- const data = await parseBody(output.body, context);
10406
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10407
10407
  if (data.ContactId !== undefined && data.ContactId !== null) {
10408
10408
  contents.ContactId = smithy_client_1.expectString(data.ContactId);
10409
10409
  }
@@ -13403,7 +13403,7 @@ const deserializeAws_restJson1AgentStatus = (output, context) => {
13403
13403
  AgentStatusARN: smithy_client_1.expectString(output.AgentStatusARN),
13404
13404
  AgentStatusId: smithy_client_1.expectString(output.AgentStatusId),
13405
13405
  Description: smithy_client_1.expectString(output.Description),
13406
- DisplayOrder: smithy_client_1.expectInt(output.DisplayOrder),
13406
+ DisplayOrder: smithy_client_1.expectInt32(output.DisplayOrder),
13407
13407
  Name: smithy_client_1.expectString(output.Name),
13408
13408
  State: smithy_client_1.expectString(output.State),
13409
13409
  Tags: output.Tags !== undefined && output.Tags !== null
@@ -13492,11 +13492,11 @@ const deserializeAws_restJson1Credentials = (output, context) => {
13492
13492
  return {
13493
13493
  AccessToken: smithy_client_1.expectString(output.AccessToken),
13494
13494
  AccessTokenExpiration: output.AccessTokenExpiration !== undefined && output.AccessTokenExpiration !== null
13495
- ? new Date(Math.round(output.AccessTokenExpiration * 1000))
13495
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AccessTokenExpiration)))
13496
13496
  : undefined,
13497
13497
  RefreshToken: smithy_client_1.expectString(output.RefreshToken),
13498
13498
  RefreshTokenExpiration: output.RefreshTokenExpiration !== undefined && output.RefreshTokenExpiration !== null
13499
- ? new Date(Math.round(output.RefreshTokenExpiration * 1000))
13499
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.RefreshTokenExpiration)))
13500
13500
  : undefined,
13501
13501
  };
13502
13502
  };
@@ -13511,7 +13511,7 @@ const deserializeAws_restJson1CurrentMetricData = (output, context) => {
13511
13511
  Metric: output.Metric !== undefined && output.Metric !== null
13512
13512
  ? deserializeAws_restJson1CurrentMetric(output.Metric, context)
13513
13513
  : undefined,
13514
- Value: smithy_client_1.limitedParseFloat(output.Value),
13514
+ Value: smithy_client_1.limitedParseDouble(output.Value),
13515
13515
  };
13516
13516
  };
13517
13517
  const deserializeAws_restJson1CurrentMetricDataCollections = (output, context) => {
@@ -13656,7 +13656,7 @@ const deserializeAws_restJson1HistoricalMetricData = (output, context) => {
13656
13656
  Metric: output.Metric !== undefined && output.Metric !== null
13657
13657
  ? deserializeAws_restJson1HistoricalMetric(output.Metric, context)
13658
13658
  : undefined,
13659
- Value: smithy_client_1.limitedParseFloat(output.Value),
13659
+ Value: smithy_client_1.limitedParseDouble(output.Value),
13660
13660
  };
13661
13661
  };
13662
13662
  const deserializeAws_restJson1HistoricalMetricDataCollections = (output, context) => {
@@ -13744,15 +13744,15 @@ const deserializeAws_restJson1HoursOfOperationSummaryList = (output, context) =>
13744
13744
  };
13745
13745
  const deserializeAws_restJson1HoursOfOperationTimeSlice = (output, context) => {
13746
13746
  return {
13747
- Hours: smithy_client_1.expectInt(output.Hours),
13748
- Minutes: smithy_client_1.expectInt(output.Minutes),
13747
+ Hours: smithy_client_1.expectInt32(output.Hours),
13748
+ Minutes: smithy_client_1.expectInt32(output.Minutes),
13749
13749
  };
13750
13750
  };
13751
13751
  const deserializeAws_restJson1Instance = (output, context) => {
13752
13752
  return {
13753
13753
  Arn: smithy_client_1.expectString(output.Arn),
13754
13754
  CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
13755
- ? new Date(Math.round(output.CreatedTime * 1000))
13755
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTime)))
13756
13756
  : undefined,
13757
13757
  Id: smithy_client_1.expectString(output.Id),
13758
13758
  IdentityManagementType: smithy_client_1.expectString(output.IdentityManagementType),
@@ -13803,7 +13803,7 @@ const deserializeAws_restJson1InstanceSummary = (output, context) => {
13803
13803
  return {
13804
13804
  Arn: smithy_client_1.expectString(output.Arn),
13805
13805
  CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
13806
- ? new Date(Math.round(output.CreatedTime * 1000))
13806
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTime)))
13807
13807
  : undefined,
13808
13808
  Id: smithy_client_1.expectString(output.Id),
13809
13809
  IdentityManagementType: smithy_client_1.expectString(output.IdentityManagementType),
@@ -13862,7 +13862,7 @@ const deserializeAws_restJson1KinesisVideoStreamConfig = (output, context) => {
13862
13862
  ? deserializeAws_restJson1EncryptionConfig(output.EncryptionConfig, context)
13863
13863
  : undefined,
13864
13864
  Prefix: smithy_client_1.expectString(output.Prefix),
13865
- RetentionPeriodHours: smithy_client_1.expectInt(output.RetentionPeriodHours),
13865
+ RetentionPeriodHours: smithy_client_1.expectInt32(output.RetentionPeriodHours),
13866
13866
  };
13867
13867
  };
13868
13868
  const deserializeAws_restJson1LexBot = (output, context) => {
@@ -13919,7 +13919,7 @@ const deserializeAws_restJson1MediaConcurrencies = (output, context) => {
13919
13919
  const deserializeAws_restJson1MediaConcurrency = (output, context) => {
13920
13920
  return {
13921
13921
  Channel: smithy_client_1.expectString(output.Channel),
13922
- Concurrency: smithy_client_1.expectInt(output.Concurrency),
13922
+ Concurrency: smithy_client_1.expectInt32(output.Concurrency),
13923
13923
  };
13924
13924
  };
13925
13925
  const deserializeAws_restJson1OriginsList = (output, context) => {
@@ -13999,7 +13999,7 @@ const deserializeAws_restJson1Queue = (output, context) => {
13999
13999
  return {
14000
14000
  Description: smithy_client_1.expectString(output.Description),
14001
14001
  HoursOfOperationId: smithy_client_1.expectString(output.HoursOfOperationId),
14002
- MaxContacts: smithy_client_1.expectInt(output.MaxContacts),
14002
+ MaxContacts: smithy_client_1.expectInt32(output.MaxContacts),
14003
14003
  Name: smithy_client_1.expectString(output.Name),
14004
14004
  OutboundCallerConfig: output.OutboundCallerConfig !== undefined && output.OutboundCallerConfig !== null
14005
14005
  ? deserializeAws_restJson1OutboundCallerConfig(output.OutboundCallerConfig, context)
@@ -14107,8 +14107,8 @@ const deserializeAws_restJson1RoutingProfile = (output, context) => {
14107
14107
  const deserializeAws_restJson1RoutingProfileQueueConfigSummary = (output, context) => {
14108
14108
  return {
14109
14109
  Channel: smithy_client_1.expectString(output.Channel),
14110
- Delay: smithy_client_1.expectInt(output.Delay),
14111
- Priority: smithy_client_1.expectInt(output.Priority),
14110
+ Delay: smithy_client_1.expectInt32(output.Delay),
14111
+ Priority: smithy_client_1.expectInt32(output.Priority),
14112
14112
  QueueArn: smithy_client_1.expectString(output.QueueArn),
14113
14113
  QueueId: smithy_client_1.expectString(output.QueueId),
14114
14114
  QueueName: smithy_client_1.expectString(output.QueueName),
@@ -14154,7 +14154,7 @@ const deserializeAws_restJson1SecurityKey = (output, context) => {
14154
14154
  return {
14155
14155
  AssociationId: smithy_client_1.expectString(output.AssociationId),
14156
14156
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
14157
- ? new Date(Math.round(output.CreationTime * 1000))
14157
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
14158
14158
  : undefined,
14159
14159
  Key: smithy_client_1.expectString(output.Key),
14160
14160
  };
@@ -14210,7 +14210,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
14210
14210
  const deserializeAws_restJson1Threshold = (output, context) => {
14211
14211
  return {
14212
14212
  Comparison: smithy_client_1.expectString(output.Comparison),
14213
- ThresholdValue: smithy_client_1.limitedParseFloat(output.ThresholdValue),
14213
+ ThresholdValue: smithy_client_1.limitedParseDouble(output.ThresholdValue),
14214
14214
  };
14215
14215
  };
14216
14216
  const deserializeAws_restJson1UseCase = (output, context) => {
@@ -14261,7 +14261,7 @@ const deserializeAws_restJson1UserIdentityInfo = (output, context) => {
14261
14261
  };
14262
14262
  const deserializeAws_restJson1UserPhoneConfig = (output, context) => {
14263
14263
  return {
14264
- AfterContactWorkTimeLimit: smithy_client_1.expectInt(output.AfterContactWorkTimeLimit),
14264
+ AfterContactWorkTimeLimit: smithy_client_1.expectInt32(output.AfterContactWorkTimeLimit),
14265
14265
  AutoAccept: smithy_client_1.expectBoolean(output.AutoAccept),
14266
14266
  DeskPhoneNumber: smithy_client_1.expectString(output.DeskPhoneNumber),
14267
14267
  PhoneType: smithy_client_1.expectString(output.PhoneType),