@aws-sdk/client-swf 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.
@@ -3325,7 +3325,7 @@ const deserializeAws_json1_0ActivityTask = (output, context) => {
3325
3325
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
3326
3326
  : undefined,
3327
3327
  input: smithy_client_1.expectString(output.input),
3328
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3328
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3329
3329
  taskToken: smithy_client_1.expectString(output.taskToken),
3330
3330
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3331
3331
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
@@ -3335,30 +3335,30 @@ const deserializeAws_json1_0ActivityTask = (output, context) => {
3335
3335
  const deserializeAws_json1_0ActivityTaskCanceledEventAttributes = (output, context) => {
3336
3336
  return {
3337
3337
  details: smithy_client_1.expectString(output.details),
3338
- latestCancelRequestedEventId: smithy_client_1.expectInt(output.latestCancelRequestedEventId),
3339
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3340
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3338
+ latestCancelRequestedEventId: smithy_client_1.expectLong(output.latestCancelRequestedEventId),
3339
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3340
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3341
3341
  };
3342
3342
  };
3343
3343
  const deserializeAws_json1_0ActivityTaskCancelRequestedEventAttributes = (output, context) => {
3344
3344
  return {
3345
3345
  activityId: smithy_client_1.expectString(output.activityId),
3346
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3346
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3347
3347
  };
3348
3348
  };
3349
3349
  const deserializeAws_json1_0ActivityTaskCompletedEventAttributes = (output, context) => {
3350
3350
  return {
3351
3351
  result: smithy_client_1.expectString(output.result),
3352
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3353
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3352
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3353
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3354
3354
  };
3355
3355
  };
3356
3356
  const deserializeAws_json1_0ActivityTaskFailedEventAttributes = (output, context) => {
3357
3357
  return {
3358
3358
  details: smithy_client_1.expectString(output.details),
3359
3359
  reason: smithy_client_1.expectString(output.reason),
3360
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3361
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3360
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3361
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3362
3362
  };
3363
3363
  };
3364
3364
  const deserializeAws_json1_0ActivityTaskScheduledEventAttributes = (output, context) => {
@@ -3368,7 +3368,7 @@ const deserializeAws_json1_0ActivityTaskScheduledEventAttributes = (output, cont
3368
3368
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
3369
3369
  : undefined,
3370
3370
  control: smithy_client_1.expectString(output.control),
3371
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3371
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3372
3372
  heartbeatTimeout: smithy_client_1.expectString(output.heartbeatTimeout),
3373
3373
  input: smithy_client_1.expectString(output.input),
3374
3374
  scheduleToCloseTimeout: smithy_client_1.expectString(output.scheduleToCloseTimeout),
@@ -3383,7 +3383,7 @@ const deserializeAws_json1_0ActivityTaskScheduledEventAttributes = (output, cont
3383
3383
  const deserializeAws_json1_0ActivityTaskStartedEventAttributes = (output, context) => {
3384
3384
  return {
3385
3385
  identity: smithy_client_1.expectString(output.identity),
3386
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3386
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3387
3387
  };
3388
3388
  };
3389
3389
  const deserializeAws_json1_0ActivityTaskStatus = (output, context) => {
@@ -3394,8 +3394,8 @@ const deserializeAws_json1_0ActivityTaskStatus = (output, context) => {
3394
3394
  const deserializeAws_json1_0ActivityTaskTimedOutEventAttributes = (output, context) => {
3395
3395
  return {
3396
3396
  details: smithy_client_1.expectString(output.details),
3397
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3398
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3397
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3398
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3399
3399
  timeoutType: smithy_client_1.expectString(output.timeoutType),
3400
3400
  };
3401
3401
  };
@@ -3433,10 +3433,10 @@ const deserializeAws_json1_0ActivityTypeInfo = (output, context) => {
3433
3433
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
3434
3434
  : undefined,
3435
3435
  creationDate: output.creationDate !== undefined && output.creationDate !== null
3436
- ? new Date(Math.round(output.creationDate * 1000))
3436
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
3437
3437
  : undefined,
3438
3438
  deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
3439
- ? new Date(Math.round(output.deprecationDate * 1000))
3439
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.deprecationDate)))
3440
3440
  : undefined,
3441
3441
  description: smithy_client_1.expectString(output.description),
3442
3442
  status: smithy_client_1.expectString(output.status),
@@ -3463,21 +3463,21 @@ const deserializeAws_json1_0ActivityTypeInfos = (output, context) => {
3463
3463
  const deserializeAws_json1_0CancelTimerFailedEventAttributes = (output, context) => {
3464
3464
  return {
3465
3465
  cause: smithy_client_1.expectString(output.cause),
3466
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3466
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3467
3467
  timerId: smithy_client_1.expectString(output.timerId),
3468
3468
  };
3469
3469
  };
3470
3470
  const deserializeAws_json1_0CancelWorkflowExecutionFailedEventAttributes = (output, context) => {
3471
3471
  return {
3472
3472
  cause: smithy_client_1.expectString(output.cause),
3473
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3473
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3474
3474
  };
3475
3475
  };
3476
3476
  const deserializeAws_json1_0ChildWorkflowExecutionCanceledEventAttributes = (output, context) => {
3477
3477
  return {
3478
3478
  details: smithy_client_1.expectString(output.details),
3479
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3480
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3479
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3480
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3481
3481
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3482
3482
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3483
3483
  : undefined,
@@ -3488,9 +3488,9 @@ const deserializeAws_json1_0ChildWorkflowExecutionCanceledEventAttributes = (out
3488
3488
  };
3489
3489
  const deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes = (output, context) => {
3490
3490
  return {
3491
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3491
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3492
3492
  result: smithy_client_1.expectString(output.result),
3493
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3493
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3494
3494
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3495
3495
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3496
3496
  : undefined,
@@ -3502,9 +3502,9 @@ const deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes = (ou
3502
3502
  const deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes = (output, context) => {
3503
3503
  return {
3504
3504
  details: smithy_client_1.expectString(output.details),
3505
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3505
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3506
3506
  reason: smithy_client_1.expectString(output.reason),
3507
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3507
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3508
3508
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3509
3509
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3510
3510
  : undefined,
@@ -3515,7 +3515,7 @@ const deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes = (outpu
3515
3515
  };
3516
3516
  const deserializeAws_json1_0ChildWorkflowExecutionStartedEventAttributes = (output, context) => {
3517
3517
  return {
3518
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3518
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3519
3519
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3520
3520
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3521
3521
  : undefined,
@@ -3526,8 +3526,8 @@ const deserializeAws_json1_0ChildWorkflowExecutionStartedEventAttributes = (outp
3526
3526
  };
3527
3527
  const deserializeAws_json1_0ChildWorkflowExecutionTerminatedEventAttributes = (output, context) => {
3528
3528
  return {
3529
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3530
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3529
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3530
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3531
3531
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3532
3532
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3533
3533
  : undefined,
@@ -3538,8 +3538,8 @@ const deserializeAws_json1_0ChildWorkflowExecutionTerminatedEventAttributes = (o
3538
3538
  };
3539
3539
  const deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes = (output, context) => {
3540
3540
  return {
3541
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3542
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3541
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3542
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3543
3543
  timeoutType: smithy_client_1.expectString(output.timeoutType),
3544
3544
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3545
3545
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
@@ -3552,13 +3552,13 @@ const deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes = (out
3552
3552
  const deserializeAws_json1_0CompleteWorkflowExecutionFailedEventAttributes = (output, context) => {
3553
3553
  return {
3554
3554
  cause: smithy_client_1.expectString(output.cause),
3555
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3555
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3556
3556
  };
3557
3557
  };
3558
3558
  const deserializeAws_json1_0ContinueAsNewWorkflowExecutionFailedEventAttributes = (output, context) => {
3559
3559
  return {
3560
3560
  cause: smithy_client_1.expectString(output.cause),
3561
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3561
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3562
3562
  };
3563
3563
  };
3564
3564
  const deserializeAws_json1_0DecisionTask = (output, context) => {
@@ -3567,8 +3567,8 @@ const deserializeAws_json1_0DecisionTask = (output, context) => {
3567
3567
  ? deserializeAws_json1_0HistoryEventList(output.events, context)
3568
3568
  : undefined,
3569
3569
  nextPageToken: smithy_client_1.expectString(output.nextPageToken),
3570
- previousStartedEventId: smithy_client_1.expectInt(output.previousStartedEventId),
3571
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3570
+ previousStartedEventId: smithy_client_1.expectLong(output.previousStartedEventId),
3571
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3572
3572
  taskToken: smithy_client_1.expectString(output.taskToken),
3573
3573
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3574
3574
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
@@ -3581,8 +3581,8 @@ const deserializeAws_json1_0DecisionTask = (output, context) => {
3581
3581
  const deserializeAws_json1_0DecisionTaskCompletedEventAttributes = (output, context) => {
3582
3582
  return {
3583
3583
  executionContext: smithy_client_1.expectString(output.executionContext),
3584
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3585
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3584
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3585
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3586
3586
  };
3587
3587
  };
3588
3588
  const deserializeAws_json1_0DecisionTaskScheduledEventAttributes = (output, context) => {
@@ -3597,13 +3597,13 @@ const deserializeAws_json1_0DecisionTaskScheduledEventAttributes = (output, cont
3597
3597
  const deserializeAws_json1_0DecisionTaskStartedEventAttributes = (output, context) => {
3598
3598
  return {
3599
3599
  identity: smithy_client_1.expectString(output.identity),
3600
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3600
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3601
3601
  };
3602
3602
  };
3603
3603
  const deserializeAws_json1_0DecisionTaskTimedOutEventAttributes = (output, context) => {
3604
3604
  return {
3605
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3606
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3605
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3606
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3607
3607
  timeoutType: smithy_client_1.expectString(output.timeoutType),
3608
3608
  };
3609
3609
  };
@@ -3665,7 +3665,7 @@ const deserializeAws_json1_0DomainInfos = (output, context) => {
3665
3665
  };
3666
3666
  const deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttributes = (output, context) => {
3667
3667
  return {
3668
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3668
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3669
3669
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3670
3670
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3671
3671
  : undefined,
@@ -3673,7 +3673,7 @@ const deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttribu
3673
3673
  };
3674
3674
  const deserializeAws_json1_0ExternalWorkflowExecutionSignaledEventAttributes = (output, context) => {
3675
3675
  return {
3676
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3676
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3677
3677
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3678
3678
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3679
3679
  : undefined,
@@ -3682,7 +3682,7 @@ const deserializeAws_json1_0ExternalWorkflowExecutionSignaledEventAttributes = (
3682
3682
  const deserializeAws_json1_0FailWorkflowExecutionFailedEventAttributes = (output, context) => {
3683
3683
  return {
3684
3684
  cause: smithy_client_1.expectString(output.cause),
3685
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3685
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3686
3686
  };
3687
3687
  };
3688
3688
  const deserializeAws_json1_0History = (output, context) => {
@@ -3768,9 +3768,9 @@ const deserializeAws_json1_0HistoryEvent = (output, context) => {
3768
3768
  decisionTaskTimedOutEventAttributes: output.decisionTaskTimedOutEventAttributes !== undefined && output.decisionTaskTimedOutEventAttributes !== null
3769
3769
  ? deserializeAws_json1_0DecisionTaskTimedOutEventAttributes(output.decisionTaskTimedOutEventAttributes, context)
3770
3770
  : undefined,
3771
- eventId: smithy_client_1.expectInt(output.eventId),
3771
+ eventId: smithy_client_1.expectLong(output.eventId),
3772
3772
  eventTimestamp: output.eventTimestamp !== undefined && output.eventTimestamp !== null
3773
- ? new Date(Math.round(output.eventTimestamp * 1000))
3773
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventTimestamp)))
3774
3774
  : undefined,
3775
3775
  eventType: smithy_client_1.expectString(output.eventType),
3776
3776
  externalWorkflowExecutionCancelRequestedEventAttributes: output.externalWorkflowExecutionCancelRequestedEventAttributes !== undefined &&
@@ -3912,22 +3912,22 @@ const deserializeAws_json1_0HistoryEventList = (output, context) => {
3912
3912
  const deserializeAws_json1_0LambdaFunctionCompletedEventAttributes = (output, context) => {
3913
3913
  return {
3914
3914
  result: smithy_client_1.expectString(output.result),
3915
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3916
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3915
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3916
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3917
3917
  };
3918
3918
  };
3919
3919
  const deserializeAws_json1_0LambdaFunctionFailedEventAttributes = (output, context) => {
3920
3920
  return {
3921
3921
  details: smithy_client_1.expectString(output.details),
3922
3922
  reason: smithy_client_1.expectString(output.reason),
3923
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3924
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3923
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3924
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3925
3925
  };
3926
3926
  };
3927
3927
  const deserializeAws_json1_0LambdaFunctionScheduledEventAttributes = (output, context) => {
3928
3928
  return {
3929
3929
  control: smithy_client_1.expectString(output.control),
3930
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3930
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3931
3931
  id: smithy_client_1.expectString(output.id),
3932
3932
  input: smithy_client_1.expectString(output.input),
3933
3933
  name: smithy_client_1.expectString(output.name),
@@ -3936,13 +3936,13 @@ const deserializeAws_json1_0LambdaFunctionScheduledEventAttributes = (output, co
3936
3936
  };
3937
3937
  const deserializeAws_json1_0LambdaFunctionStartedEventAttributes = (output, context) => {
3938
3938
  return {
3939
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3939
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3940
3940
  };
3941
3941
  };
3942
3942
  const deserializeAws_json1_0LambdaFunctionTimedOutEventAttributes = (output, context) => {
3943
3943
  return {
3944
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
3945
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
3944
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
3945
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
3946
3946
  timeoutType: smithy_client_1.expectString(output.timeoutType),
3947
3947
  };
3948
3948
  };
@@ -3960,7 +3960,7 @@ const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
3960
3960
  };
3961
3961
  const deserializeAws_json1_0MarkerRecordedEventAttributes = (output, context) => {
3962
3962
  return {
3963
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3963
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3964
3964
  details: smithy_client_1.expectString(output.details),
3965
3965
  markerName: smithy_client_1.expectString(output.markerName),
3966
3966
  };
@@ -3972,14 +3972,14 @@ const deserializeAws_json1_0OperationNotPermittedFault = (output, context) => {
3972
3972
  };
3973
3973
  const deserializeAws_json1_0PendingTaskCount = (output, context) => {
3974
3974
  return {
3975
- count: smithy_client_1.expectInt(output.count),
3975
+ count: smithy_client_1.expectInt32(output.count),
3976
3976
  truncated: smithy_client_1.expectBoolean(output.truncated),
3977
3977
  };
3978
3978
  };
3979
3979
  const deserializeAws_json1_0RecordMarkerFailedEventAttributes = (output, context) => {
3980
3980
  return {
3981
3981
  cause: smithy_client_1.expectString(output.cause),
3982
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3982
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3983
3983
  markerName: smithy_client_1.expectString(output.markerName),
3984
3984
  };
3985
3985
  };
@@ -3987,15 +3987,15 @@ const deserializeAws_json1_0RequestCancelActivityTaskFailedEventAttributes = (ou
3987
3987
  return {
3988
3988
  activityId: smithy_client_1.expectString(output.activityId),
3989
3989
  cause: smithy_client_1.expectString(output.cause),
3990
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3990
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3991
3991
  };
3992
3992
  };
3993
3993
  const deserializeAws_json1_0RequestCancelExternalWorkflowExecutionFailedEventAttributes = (output, context) => {
3994
3994
  return {
3995
3995
  cause: smithy_client_1.expectString(output.cause),
3996
3996
  control: smithy_client_1.expectString(output.control),
3997
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
3998
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
3997
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
3998
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
3999
3999
  runId: smithy_client_1.expectString(output.runId),
4000
4000
  workflowId: smithy_client_1.expectString(output.workflowId),
4001
4001
  };
@@ -4003,7 +4003,7 @@ const deserializeAws_json1_0RequestCancelExternalWorkflowExecutionFailedEventAtt
4003
4003
  const deserializeAws_json1_0RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = (output, context) => {
4004
4004
  return {
4005
4005
  control: smithy_client_1.expectString(output.control),
4006
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4006
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4007
4007
  runId: smithy_client_1.expectString(output.runId),
4008
4008
  workflowId: smithy_client_1.expectString(output.workflowId),
4009
4009
  };
@@ -4036,13 +4036,13 @@ const deserializeAws_json1_0ScheduleActivityTaskFailedEventAttributes = (output,
4036
4036
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
4037
4037
  : undefined,
4038
4038
  cause: smithy_client_1.expectString(output.cause),
4039
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4039
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4040
4040
  };
4041
4041
  };
4042
4042
  const deserializeAws_json1_0ScheduleLambdaFunctionFailedEventAttributes = (output, context) => {
4043
4043
  return {
4044
4044
  cause: smithy_client_1.expectString(output.cause),
4045
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4045
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4046
4046
  id: smithy_client_1.expectString(output.id),
4047
4047
  name: smithy_client_1.expectString(output.name),
4048
4048
  };
@@ -4051,8 +4051,8 @@ const deserializeAws_json1_0SignalExternalWorkflowExecutionFailedEventAttributes
4051
4051
  return {
4052
4052
  cause: smithy_client_1.expectString(output.cause),
4053
4053
  control: smithy_client_1.expectString(output.control),
4054
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4055
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
4054
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4055
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
4056
4056
  runId: smithy_client_1.expectString(output.runId),
4057
4057
  workflowId: smithy_client_1.expectString(output.workflowId),
4058
4058
  };
@@ -4060,7 +4060,7 @@ const deserializeAws_json1_0SignalExternalWorkflowExecutionFailedEventAttributes
4060
4060
  const deserializeAws_json1_0SignalExternalWorkflowExecutionInitiatedEventAttributes = (output, context) => {
4061
4061
  return {
4062
4062
  control: smithy_client_1.expectString(output.control),
4063
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4063
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4064
4064
  input: smithy_client_1.expectString(output.input),
4065
4065
  runId: smithy_client_1.expectString(output.runId),
4066
4066
  signalName: smithy_client_1.expectString(output.signalName),
@@ -4071,8 +4071,8 @@ const deserializeAws_json1_0StartChildWorkflowExecutionFailedEventAttributes = (
4071
4071
  return {
4072
4072
  cause: smithy_client_1.expectString(output.cause),
4073
4073
  control: smithy_client_1.expectString(output.control),
4074
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4075
- initiatedEventId: smithy_client_1.expectInt(output.initiatedEventId),
4074
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4075
+ initiatedEventId: smithy_client_1.expectLong(output.initiatedEventId),
4076
4076
  workflowId: smithy_client_1.expectString(output.workflowId),
4077
4077
  workflowType: output.workflowType !== undefined && output.workflowType !== null
4078
4078
  ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
@@ -4083,7 +4083,7 @@ const deserializeAws_json1_0StartChildWorkflowExecutionInitiatedEventAttributes
4083
4083
  return {
4084
4084
  childPolicy: smithy_client_1.expectString(output.childPolicy),
4085
4085
  control: smithy_client_1.expectString(output.control),
4086
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4086
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4087
4087
  executionStartToCloseTimeout: smithy_client_1.expectString(output.executionStartToCloseTimeout),
4088
4088
  input: smithy_client_1.expectString(output.input),
4089
4089
  lambdaRole: smithy_client_1.expectString(output.lambdaRole),
@@ -4105,13 +4105,13 @@ const deserializeAws_json1_0StartLambdaFunctionFailedEventAttributes = (output,
4105
4105
  return {
4106
4106
  cause: smithy_client_1.expectString(output.cause),
4107
4107
  message: smithy_client_1.expectString(output.message),
4108
- scheduledEventId: smithy_client_1.expectInt(output.scheduledEventId),
4108
+ scheduledEventId: smithy_client_1.expectLong(output.scheduledEventId),
4109
4109
  };
4110
4110
  };
4111
4111
  const deserializeAws_json1_0StartTimerFailedEventAttributes = (output, context) => {
4112
4112
  return {
4113
4113
  cause: smithy_client_1.expectString(output.cause),
4114
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4114
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4115
4115
  timerId: smithy_client_1.expectString(output.timerId),
4116
4116
  };
4117
4117
  };
@@ -4132,21 +4132,21 @@ const deserializeAws_json1_0TaskList = (output, context) => {
4132
4132
  };
4133
4133
  const deserializeAws_json1_0TimerCanceledEventAttributes = (output, context) => {
4134
4134
  return {
4135
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4136
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
4135
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4136
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
4137
4137
  timerId: smithy_client_1.expectString(output.timerId),
4138
4138
  };
4139
4139
  };
4140
4140
  const deserializeAws_json1_0TimerFiredEventAttributes = (output, context) => {
4141
4141
  return {
4142
- startedEventId: smithy_client_1.expectInt(output.startedEventId),
4142
+ startedEventId: smithy_client_1.expectLong(output.startedEventId),
4143
4143
  timerId: smithy_client_1.expectString(output.timerId),
4144
4144
  };
4145
4145
  };
4146
4146
  const deserializeAws_json1_0TimerStartedEventAttributes = (output, context) => {
4147
4147
  return {
4148
4148
  control: smithy_client_1.expectString(output.control),
4149
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4149
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4150
4150
  startToFireTimeout: smithy_client_1.expectString(output.startToFireTimeout),
4151
4151
  timerId: smithy_client_1.expectString(output.timerId),
4152
4152
  };
@@ -4184,14 +4184,14 @@ const deserializeAws_json1_0WorkflowExecutionAlreadyStartedFault = (output, cont
4184
4184
  };
4185
4185
  const deserializeAws_json1_0WorkflowExecutionCanceledEventAttributes = (output, context) => {
4186
4186
  return {
4187
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4187
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4188
4188
  details: smithy_client_1.expectString(output.details),
4189
4189
  };
4190
4190
  };
4191
4191
  const deserializeAws_json1_0WorkflowExecutionCancelRequestedEventAttributes = (output, context) => {
4192
4192
  return {
4193
4193
  cause: smithy_client_1.expectString(output.cause),
4194
- externalInitiatedEventId: smithy_client_1.expectInt(output.externalInitiatedEventId),
4194
+ externalInitiatedEventId: smithy_client_1.expectLong(output.externalInitiatedEventId),
4195
4195
  externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null
4196
4196
  ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context)
4197
4197
  : undefined,
@@ -4199,7 +4199,7 @@ const deserializeAws_json1_0WorkflowExecutionCancelRequestedEventAttributes = (o
4199
4199
  };
4200
4200
  const deserializeAws_json1_0WorkflowExecutionCompletedEventAttributes = (output, context) => {
4201
4201
  return {
4202
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4202
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4203
4203
  result: smithy_client_1.expectString(output.result),
4204
4204
  };
4205
4205
  };
@@ -4218,7 +4218,7 @@ const deserializeAws_json1_0WorkflowExecutionConfiguration = (output, context) =
4218
4218
  const deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes = (output, context) => {
4219
4219
  return {
4220
4220
  childPolicy: smithy_client_1.expectString(output.childPolicy),
4221
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4221
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4222
4222
  executionStartToCloseTimeout: smithy_client_1.expectString(output.executionStartToCloseTimeout),
4223
4223
  input: smithy_client_1.expectString(output.input),
4224
4224
  lambdaRole: smithy_client_1.expectString(output.lambdaRole),
@@ -4238,7 +4238,7 @@ const deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes = (ou
4238
4238
  };
4239
4239
  const deserializeAws_json1_0WorkflowExecutionCount = (output, context) => {
4240
4240
  return {
4241
- count: smithy_client_1.expectInt(output.count),
4241
+ count: smithy_client_1.expectInt32(output.count),
4242
4242
  truncated: smithy_client_1.expectBoolean(output.truncated),
4243
4243
  };
4244
4244
  };
@@ -4251,7 +4251,7 @@ const deserializeAws_json1_0WorkflowExecutionDetail = (output, context) => {
4251
4251
  ? deserializeAws_json1_0WorkflowExecutionInfo(output.executionInfo, context)
4252
4252
  : undefined,
4253
4253
  latestActivityTaskTimestamp: output.latestActivityTaskTimestamp !== undefined && output.latestActivityTaskTimestamp !== null
4254
- ? new Date(Math.round(output.latestActivityTaskTimestamp * 1000))
4254
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.latestActivityTaskTimestamp)))
4255
4255
  : undefined,
4256
4256
  latestExecutionContext: smithy_client_1.expectString(output.latestExecutionContext),
4257
4257
  openCounts: output.openCounts !== undefined && output.openCounts !== null
@@ -4261,7 +4261,7 @@ const deserializeAws_json1_0WorkflowExecutionDetail = (output, context) => {
4261
4261
  };
4262
4262
  const deserializeAws_json1_0WorkflowExecutionFailedEventAttributes = (output, context) => {
4263
4263
  return {
4264
- decisionTaskCompletedEventId: smithy_client_1.expectInt(output.decisionTaskCompletedEventId),
4264
+ decisionTaskCompletedEventId: smithy_client_1.expectLong(output.decisionTaskCompletedEventId),
4265
4265
  details: smithy_client_1.expectString(output.details),
4266
4266
  reason: smithy_client_1.expectString(output.reason),
4267
4267
  };
@@ -4271,7 +4271,7 @@ const deserializeAws_json1_0WorkflowExecutionInfo = (output, context) => {
4271
4271
  cancelRequested: smithy_client_1.expectBoolean(output.cancelRequested),
4272
4272
  closeStatus: smithy_client_1.expectString(output.closeStatus),
4273
4273
  closeTimestamp: output.closeTimestamp !== undefined && output.closeTimestamp !== null
4274
- ? new Date(Math.round(output.closeTimestamp * 1000))
4274
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.closeTimestamp)))
4275
4275
  : undefined,
4276
4276
  execution: output.execution !== undefined && output.execution !== null
4277
4277
  ? deserializeAws_json1_0WorkflowExecution(output.execution, context)
@@ -4281,7 +4281,7 @@ const deserializeAws_json1_0WorkflowExecutionInfo = (output, context) => {
4281
4281
  ? deserializeAws_json1_0WorkflowExecution(output.parent, context)
4282
4282
  : undefined,
4283
4283
  startTimestamp: output.startTimestamp !== undefined && output.startTimestamp !== null
4284
- ? new Date(Math.round(output.startTimestamp * 1000))
4284
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTimestamp)))
4285
4285
  : undefined,
4286
4286
  tagList: output.tagList !== undefined && output.tagList !== null
4287
4287
  ? deserializeAws_json1_0TagList(output.tagList, context)
@@ -4311,16 +4311,16 @@ const deserializeAws_json1_0WorkflowExecutionInfos = (output, context) => {
4311
4311
  };
4312
4312
  const deserializeAws_json1_0WorkflowExecutionOpenCounts = (output, context) => {
4313
4313
  return {
4314
- openActivityTasks: smithy_client_1.expectInt(output.openActivityTasks),
4315
- openChildWorkflowExecutions: smithy_client_1.expectInt(output.openChildWorkflowExecutions),
4316
- openDecisionTasks: smithy_client_1.expectInt(output.openDecisionTasks),
4317
- openLambdaFunctions: smithy_client_1.expectInt(output.openLambdaFunctions),
4318
- openTimers: smithy_client_1.expectInt(output.openTimers),
4314
+ openActivityTasks: smithy_client_1.expectInt32(output.openActivityTasks),
4315
+ openChildWorkflowExecutions: smithy_client_1.expectInt32(output.openChildWorkflowExecutions),
4316
+ openDecisionTasks: smithy_client_1.expectInt32(output.openDecisionTasks),
4317
+ openLambdaFunctions: smithy_client_1.expectInt32(output.openLambdaFunctions),
4318
+ openTimers: smithy_client_1.expectInt32(output.openTimers),
4319
4319
  };
4320
4320
  };
4321
4321
  const deserializeAws_json1_0WorkflowExecutionSignaledEventAttributes = (output, context) => {
4322
4322
  return {
4323
- externalInitiatedEventId: smithy_client_1.expectInt(output.externalInitiatedEventId),
4323
+ externalInitiatedEventId: smithy_client_1.expectLong(output.externalInitiatedEventId),
4324
4324
  externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null
4325
4325
  ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context)
4326
4326
  : undefined,
@@ -4335,7 +4335,7 @@ const deserializeAws_json1_0WorkflowExecutionStartedEventAttributes = (output, c
4335
4335
  executionStartToCloseTimeout: smithy_client_1.expectString(output.executionStartToCloseTimeout),
4336
4336
  input: smithy_client_1.expectString(output.input),
4337
4337
  lambdaRole: smithy_client_1.expectString(output.lambdaRole),
4338
- parentInitiatedEventId: smithy_client_1.expectInt(output.parentInitiatedEventId),
4338
+ parentInitiatedEventId: smithy_client_1.expectLong(output.parentInitiatedEventId),
4339
4339
  parentWorkflowExecution: output.parentWorkflowExecution !== undefined && output.parentWorkflowExecution !== null
4340
4340
  ? deserializeAws_json1_0WorkflowExecution(output.parentWorkflowExecution, context)
4341
4341
  : undefined,
@@ -4397,10 +4397,10 @@ const deserializeAws_json1_0WorkflowTypeDetail = (output, context) => {
4397
4397
  const deserializeAws_json1_0WorkflowTypeInfo = (output, context) => {
4398
4398
  return {
4399
4399
  creationDate: output.creationDate !== undefined && output.creationDate !== null
4400
- ? new Date(Math.round(output.creationDate * 1000))
4400
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
4401
4401
  : undefined,
4402
4402
  deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
4403
- ? new Date(Math.round(output.deprecationDate * 1000))
4403
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.deprecationDate)))
4404
4404
  : undefined,
4405
4405
  description: smithy_client_1.expectString(output.description),
4406
4406
  status: smithy_client_1.expectString(output.status),