@aws-sdk/client-signer 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 } 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, } from "@aws-sdk/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  export var serializeAws_restJson1AddProfilePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
6
6
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
@@ -557,9 +557,9 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
557
557
  });
558
558
  }); };
559
559
  export var deserializeAws_restJson1AddProfilePermissionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
560
- var contents, data;
561
- return __generator(this, function (_a) {
562
- switch (_a.label) {
560
+ var contents, data, _a, _b;
561
+ return __generator(this, function (_c) {
562
+ switch (_c.label) {
563
563
  case 0:
564
564
  if (output.statusCode !== 200 && output.statusCode >= 300) {
565
565
  return [2 /*return*/, deserializeAws_restJson1AddProfilePermissionCommandError(output, context)];
@@ -568,9 +568,11 @@ export var deserializeAws_restJson1AddProfilePermissionCommand = function (outpu
568
568
  $metadata: deserializeMetadata(output),
569
569
  revisionId: undefined,
570
570
  };
571
+ _a = __expectNonNull;
572
+ _b = __expectObject;
571
573
  return [4 /*yield*/, parseBody(output.body, context)];
572
574
  case 1:
573
- data = _a.sent();
575
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
574
576
  if (data.revisionId !== undefined && data.revisionId !== null) {
575
577
  contents.revisionId = __expectString(data.revisionId);
576
578
  }
@@ -745,9 +747,9 @@ var deserializeAws_restJson1CancelSigningProfileCommandError = function (output,
745
747
  });
746
748
  }); };
747
749
  export var deserializeAws_restJson1DescribeSigningJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
748
- var contents, data;
749
- return __generator(this, function (_a) {
750
- switch (_a.label) {
750
+ var contents, data, _a, _b;
751
+ return __generator(this, function (_c) {
752
+ switch (_c.label) {
751
753
  case 0:
752
754
  if (output.statusCode !== 200 && output.statusCode >= 300) {
753
755
  return [2 /*return*/, deserializeAws_restJson1DescribeSigningJobCommandError(output, context)];
@@ -774,14 +776,16 @@ export var deserializeAws_restJson1DescribeSigningJobCommand = function (output,
774
776
  status: undefined,
775
777
  statusReason: undefined,
776
778
  };
779
+ _a = __expectNonNull;
780
+ _b = __expectObject;
777
781
  return [4 /*yield*/, parseBody(output.body, context)];
778
782
  case 1:
779
- data = _a.sent();
783
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
780
784
  if (data.completedAt !== undefined && data.completedAt !== null) {
781
- contents.completedAt = new Date(Math.round(data.completedAt * 1000));
785
+ contents.completedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.completedAt)));
782
786
  }
783
787
  if (data.createdAt !== undefined && data.createdAt !== null) {
784
- contents.createdAt = new Date(Math.round(data.createdAt * 1000));
788
+ contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
785
789
  }
786
790
  if (data.jobId !== undefined && data.jobId !== null) {
787
791
  contents.jobId = __expectString(data.jobId);
@@ -814,7 +818,7 @@ export var deserializeAws_restJson1DescribeSigningJobCommand = function (output,
814
818
  contents.revocationRecord = deserializeAws_restJson1SigningJobRevocationRecord(data.revocationRecord, context);
815
819
  }
816
820
  if (data.signatureExpiresAt !== undefined && data.signatureExpiresAt !== null) {
817
- contents.signatureExpiresAt = new Date(Math.round(data.signatureExpiresAt * 1000));
821
+ contents.signatureExpiresAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.signatureExpiresAt)));
818
822
  }
819
823
  if (data.signedObject !== undefined && data.signedObject !== null) {
820
824
  contents.signedObject = deserializeAws_restJson1SignedObject(data.signedObject, context);
@@ -901,9 +905,9 @@ var deserializeAws_restJson1DescribeSigningJobCommandError = function (output, c
901
905
  });
902
906
  }); };
903
907
  export var deserializeAws_restJson1GetSigningPlatformCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
904
- var contents, data;
905
- return __generator(this, function (_a) {
906
- switch (_a.label) {
908
+ var contents, data, _a, _b;
909
+ return __generator(this, function (_c) {
910
+ switch (_c.label) {
907
911
  case 0:
908
912
  if (output.statusCode !== 200 && output.statusCode >= 300) {
909
913
  return [2 /*return*/, deserializeAws_restJson1GetSigningPlatformCommandError(output, context)];
@@ -920,9 +924,11 @@ export var deserializeAws_restJson1GetSigningPlatformCommand = function (output,
920
924
  signingImageFormat: undefined,
921
925
  target: undefined,
922
926
  };
927
+ _a = __expectNonNull;
928
+ _b = __expectObject;
923
929
  return [4 /*yield*/, parseBody(output.body, context)];
924
930
  case 1:
925
- data = _a.sent();
931
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
926
932
  if (data.category !== undefined && data.category !== null) {
927
933
  contents.category = __expectString(data.category);
928
934
  }
@@ -930,7 +936,7 @@ export var deserializeAws_restJson1GetSigningPlatformCommand = function (output,
930
936
  contents.displayName = __expectString(data.displayName);
931
937
  }
932
938
  if (data.maxSizeInMB !== undefined && data.maxSizeInMB !== null) {
933
- contents.maxSizeInMB = __expectInt(data.maxSizeInMB);
939
+ contents.maxSizeInMB = __expectInt32(data.maxSizeInMB);
934
940
  }
935
941
  if (data.partner !== undefined && data.partner !== null) {
936
942
  contents.partner = __expectString(data.partner);
@@ -1017,9 +1023,9 @@ var deserializeAws_restJson1GetSigningPlatformCommandError = function (output, c
1017
1023
  });
1018
1024
  }); };
1019
1025
  export var deserializeAws_restJson1GetSigningProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1020
- var contents, data;
1021
- return __generator(this, function (_a) {
1022
- switch (_a.label) {
1026
+ var contents, data, _a, _b;
1027
+ return __generator(this, function (_c) {
1028
+ switch (_c.label) {
1023
1029
  case 0:
1024
1030
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1025
1031
  return [2 /*return*/, deserializeAws_restJson1GetSigningProfileCommandError(output, context)];
@@ -1041,9 +1047,11 @@ export var deserializeAws_restJson1GetSigningProfileCommand = function (output,
1041
1047
  statusReason: undefined,
1042
1048
  tags: undefined,
1043
1049
  };
1050
+ _a = __expectNonNull;
1051
+ _b = __expectObject;
1044
1052
  return [4 /*yield*/, parseBody(output.body, context)];
1045
1053
  case 1:
1046
- data = _a.sent();
1054
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1047
1055
  if (data.arn !== undefined && data.arn !== null) {
1048
1056
  contents.arn = __expectString(data.arn);
1049
1057
  }
@@ -1153,9 +1161,9 @@ var deserializeAws_restJson1GetSigningProfileCommandError = function (output, co
1153
1161
  });
1154
1162
  }); };
1155
1163
  export var deserializeAws_restJson1ListProfilePermissionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1156
- var contents, data;
1157
- return __generator(this, function (_a) {
1158
- switch (_a.label) {
1164
+ var contents, data, _a, _b;
1165
+ return __generator(this, function (_c) {
1166
+ switch (_c.label) {
1159
1167
  case 0:
1160
1168
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1161
1169
  return [2 /*return*/, deserializeAws_restJson1ListProfilePermissionsCommandError(output, context)];
@@ -1167,9 +1175,11 @@ export var deserializeAws_restJson1ListProfilePermissionsCommand = function (out
1167
1175
  policySizeBytes: undefined,
1168
1176
  revisionId: undefined,
1169
1177
  };
1178
+ _a = __expectNonNull;
1179
+ _b = __expectObject;
1170
1180
  return [4 /*yield*/, parseBody(output.body, context)];
1171
1181
  case 1:
1172
- data = _a.sent();
1182
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1173
1183
  if (data.nextToken !== undefined && data.nextToken !== null) {
1174
1184
  contents.nextToken = __expectString(data.nextToken);
1175
1185
  }
@@ -1177,7 +1187,7 @@ export var deserializeAws_restJson1ListProfilePermissionsCommand = function (out
1177
1187
  contents.permissions = deserializeAws_restJson1Permissions(data.permissions, context);
1178
1188
  }
1179
1189
  if (data.policySizeBytes !== undefined && data.policySizeBytes !== null) {
1180
- contents.policySizeBytes = __expectInt(data.policySizeBytes);
1190
+ contents.policySizeBytes = __expectInt32(data.policySizeBytes);
1181
1191
  }
1182
1192
  if (data.revisionId !== undefined && data.revisionId !== null) {
1183
1193
  contents.revisionId = __expectString(data.revisionId);
@@ -1257,9 +1267,9 @@ var deserializeAws_restJson1ListProfilePermissionsCommandError = function (outpu
1257
1267
  });
1258
1268
  }); };
1259
1269
  export var deserializeAws_restJson1ListSigningJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1260
- var contents, data;
1261
- return __generator(this, function (_a) {
1262
- switch (_a.label) {
1270
+ var contents, data, _a, _b;
1271
+ return __generator(this, function (_c) {
1272
+ switch (_c.label) {
1263
1273
  case 0:
1264
1274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1265
1275
  return [2 /*return*/, deserializeAws_restJson1ListSigningJobsCommandError(output, context)];
@@ -1269,9 +1279,11 @@ export var deserializeAws_restJson1ListSigningJobsCommand = function (output, co
1269
1279
  jobs: undefined,
1270
1280
  nextToken: undefined,
1271
1281
  };
1282
+ _a = __expectNonNull;
1283
+ _b = __expectObject;
1272
1284
  return [4 /*yield*/, parseBody(output.body, context)];
1273
1285
  case 1:
1274
- data = _a.sent();
1286
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1275
1287
  if (data.jobs !== undefined && data.jobs !== null) {
1276
1288
  contents.jobs = deserializeAws_restJson1SigningJobs(data.jobs, context);
1277
1289
  }
@@ -1345,9 +1357,9 @@ var deserializeAws_restJson1ListSigningJobsCommandError = function (output, cont
1345
1357
  });
1346
1358
  }); };
1347
1359
  export var deserializeAws_restJson1ListSigningPlatformsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1348
- var contents, data;
1349
- return __generator(this, function (_a) {
1350
- switch (_a.label) {
1360
+ var contents, data, _a, _b;
1361
+ return __generator(this, function (_c) {
1362
+ switch (_c.label) {
1351
1363
  case 0:
1352
1364
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1353
1365
  return [2 /*return*/, deserializeAws_restJson1ListSigningPlatformsCommandError(output, context)];
@@ -1357,9 +1369,11 @@ export var deserializeAws_restJson1ListSigningPlatformsCommand = function (outpu
1357
1369
  nextToken: undefined,
1358
1370
  platforms: undefined,
1359
1371
  };
1372
+ _a = __expectNonNull;
1373
+ _b = __expectObject;
1360
1374
  return [4 /*yield*/, parseBody(output.body, context)];
1361
1375
  case 1:
1362
- data = _a.sent();
1376
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1363
1377
  if (data.nextToken !== undefined && data.nextToken !== null) {
1364
1378
  contents.nextToken = __expectString(data.nextToken);
1365
1379
  }
@@ -1433,9 +1447,9 @@ var deserializeAws_restJson1ListSigningPlatformsCommandError = function (output,
1433
1447
  });
1434
1448
  }); };
1435
1449
  export var deserializeAws_restJson1ListSigningProfilesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1436
- var contents, data;
1437
- return __generator(this, function (_a) {
1438
- switch (_a.label) {
1450
+ var contents, data, _a, _b;
1451
+ return __generator(this, function (_c) {
1452
+ switch (_c.label) {
1439
1453
  case 0:
1440
1454
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1441
1455
  return [2 /*return*/, deserializeAws_restJson1ListSigningProfilesCommandError(output, context)];
@@ -1445,9 +1459,11 @@ export var deserializeAws_restJson1ListSigningProfilesCommand = function (output
1445
1459
  nextToken: undefined,
1446
1460
  profiles: undefined,
1447
1461
  };
1462
+ _a = __expectNonNull;
1463
+ _b = __expectObject;
1448
1464
  return [4 /*yield*/, parseBody(output.body, context)];
1449
1465
  case 1:
1450
- data = _a.sent();
1466
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1451
1467
  if (data.nextToken !== undefined && data.nextToken !== null) {
1452
1468
  contents.nextToken = __expectString(data.nextToken);
1453
1469
  }
@@ -1513,9 +1529,9 @@ var deserializeAws_restJson1ListSigningProfilesCommandError = function (output,
1513
1529
  });
1514
1530
  }); };
1515
1531
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1516
- var contents, data;
1517
- return __generator(this, function (_a) {
1518
- switch (_a.label) {
1532
+ var contents, data, _a, _b;
1533
+ return __generator(this, function (_c) {
1534
+ switch (_c.label) {
1519
1535
  case 0:
1520
1536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1521
1537
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -1524,9 +1540,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
1524
1540
  $metadata: deserializeMetadata(output),
1525
1541
  tags: undefined,
1526
1542
  };
1543
+ _a = __expectNonNull;
1544
+ _b = __expectObject;
1527
1545
  return [4 /*yield*/, parseBody(output.body, context)];
1528
1546
  case 1:
1529
- data = _a.sent();
1547
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1530
1548
  if (data.tags !== undefined && data.tags !== null) {
1531
1549
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
1532
1550
  }
@@ -1597,9 +1615,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
1597
1615
  });
1598
1616
  }); };
1599
1617
  export var deserializeAws_restJson1PutSigningProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1600
- var contents, data;
1601
- return __generator(this, function (_a) {
1602
- switch (_a.label) {
1618
+ var contents, data, _a, _b;
1619
+ return __generator(this, function (_c) {
1620
+ switch (_c.label) {
1603
1621
  case 0:
1604
1622
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1605
1623
  return [2 /*return*/, deserializeAws_restJson1PutSigningProfileCommandError(output, context)];
@@ -1610,9 +1628,11 @@ export var deserializeAws_restJson1PutSigningProfileCommand = function (output,
1610
1628
  profileVersion: undefined,
1611
1629
  profileVersionArn: undefined,
1612
1630
  };
1631
+ _a = __expectNonNull;
1632
+ _b = __expectObject;
1613
1633
  return [4 /*yield*/, parseBody(output.body, context)];
1614
1634
  case 1:
1615
- data = _a.sent();
1635
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1616
1636
  if (data.arn !== undefined && data.arn !== null) {
1617
1637
  contents.arn = __expectString(data.arn);
1618
1638
  }
@@ -1697,9 +1717,9 @@ var deserializeAws_restJson1PutSigningProfileCommandError = function (output, co
1697
1717
  });
1698
1718
  }); };
1699
1719
  export var deserializeAws_restJson1RemoveProfilePermissionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1700
- var contents, data;
1701
- return __generator(this, function (_a) {
1702
- switch (_a.label) {
1720
+ var contents, data, _a, _b;
1721
+ return __generator(this, function (_c) {
1722
+ switch (_c.label) {
1703
1723
  case 0:
1704
1724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
1725
  return [2 /*return*/, deserializeAws_restJson1RemoveProfilePermissionCommandError(output, context)];
@@ -1708,9 +1728,11 @@ export var deserializeAws_restJson1RemoveProfilePermissionCommand = function (ou
1708
1728
  $metadata: deserializeMetadata(output),
1709
1729
  revisionId: undefined,
1710
1730
  };
1731
+ _a = __expectNonNull;
1732
+ _b = __expectObject;
1711
1733
  return [4 /*yield*/, parseBody(output.body, context)];
1712
1734
  case 1:
1713
- data = _a.sent();
1735
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1714
1736
  if (data.revisionId !== undefined && data.revisionId !== null) {
1715
1737
  contents.revisionId = __expectString(data.revisionId);
1716
1738
  }
@@ -1973,9 +1995,9 @@ var deserializeAws_restJson1RevokeSigningProfileCommandError = function (output,
1973
1995
  });
1974
1996
  }); };
1975
1997
  export var deserializeAws_restJson1StartSigningJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1976
- var contents, data;
1977
- return __generator(this, function (_a) {
1978
- switch (_a.label) {
1998
+ var contents, data, _a, _b;
1999
+ return __generator(this, function (_c) {
2000
+ switch (_c.label) {
1979
2001
  case 0:
1980
2002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1981
2003
  return [2 /*return*/, deserializeAws_restJson1StartSigningJobCommandError(output, context)];
@@ -1985,9 +2007,11 @@ export var deserializeAws_restJson1StartSigningJobCommand = function (output, co
1985
2007
  jobId: undefined,
1986
2008
  jobOwner: undefined,
1987
2009
  };
2010
+ _a = __expectNonNull;
2011
+ _b = __expectObject;
1988
2012
  return [4 /*yield*/, parseBody(output.body, context)];
1989
2013
  case 1:
1990
- data = _a.sent();
2014
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1991
2015
  if (data.jobId !== undefined && data.jobId !== null) {
1992
2016
  contents.jobId = __expectString(data.jobId);
1993
2017
  }
@@ -2566,7 +2590,7 @@ var deserializeAws_restJson1S3Source = function (output, context) {
2566
2590
  var deserializeAws_restJson1SignatureValidityPeriod = function (output, context) {
2567
2591
  return {
2568
2592
  type: __expectString(output.type),
2569
- value: __expectInt(output.value),
2593
+ value: __expectInt32(output.value),
2570
2594
  };
2571
2595
  };
2572
2596
  var deserializeAws_restJson1SignedObject = function (output, context) {
@@ -2603,7 +2627,7 @@ var deserializeAws_restJson1SigningImageFormat = function (output, context) {
2603
2627
  var deserializeAws_restJson1SigningJob = function (output, context) {
2604
2628
  return {
2605
2629
  createdAt: output.createdAt !== undefined && output.createdAt !== null
2606
- ? new Date(Math.round(output.createdAt * 1000))
2630
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
2607
2631
  : undefined,
2608
2632
  isRevoked: __expectBoolean(output.isRevoked),
2609
2633
  jobId: __expectString(output.jobId),
@@ -2614,7 +2638,7 @@ var deserializeAws_restJson1SigningJob = function (output, context) {
2614
2638
  profileName: __expectString(output.profileName),
2615
2639
  profileVersion: __expectString(output.profileVersion),
2616
2640
  signatureExpiresAt: output.signatureExpiresAt !== undefined && output.signatureExpiresAt !== null
2617
- ? new Date(Math.round(output.signatureExpiresAt * 1000))
2641
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.signatureExpiresAt)))
2618
2642
  : undefined,
2619
2643
  signedObject: output.signedObject !== undefined && output.signedObject !== null
2620
2644
  ? deserializeAws_restJson1SignedObject(output.signedObject, context)
@@ -2632,7 +2656,7 @@ var deserializeAws_restJson1SigningJobRevocationRecord = function (output, conte
2632
2656
  return {
2633
2657
  reason: __expectString(output.reason),
2634
2658
  revokedAt: output.revokedAt !== undefined && output.revokedAt !== null
2635
- ? new Date(Math.round(output.revokedAt * 1000))
2659
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revokedAt)))
2636
2660
  : undefined,
2637
2661
  revokedBy: __expectString(output.revokedBy),
2638
2662
  };
@@ -2666,7 +2690,7 @@ var deserializeAws_restJson1SigningPlatform = function (output, context) {
2666
2690
  return {
2667
2691
  category: __expectString(output.category),
2668
2692
  displayName: __expectString(output.displayName),
2669
- maxSizeInMB: __expectInt(output.maxSizeInMB),
2693
+ maxSizeInMB: __expectInt32(output.maxSizeInMB),
2670
2694
  partner: __expectString(output.partner),
2671
2695
  platformId: __expectString(output.platformId),
2672
2696
  revocationSupported: __expectBoolean(output.revocationSupported),
@@ -2723,10 +2747,10 @@ var deserializeAws_restJson1SigningProfile = function (output, context) {
2723
2747
  var deserializeAws_restJson1SigningProfileRevocationRecord = function (output, context) {
2724
2748
  return {
2725
2749
  revocationEffectiveFrom: output.revocationEffectiveFrom !== undefined && output.revocationEffectiveFrom !== null
2726
- ? new Date(Math.round(output.revocationEffectiveFrom * 1000))
2750
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revocationEffectiveFrom)))
2727
2751
  : undefined,
2728
2752
  revokedAt: output.revokedAt !== undefined && output.revokedAt !== null
2729
- ? new Date(Math.round(output.revokedAt * 1000))
2753
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revokedAt)))
2730
2754
  : undefined,
2731
2755
  revokedBy: __expectString(output.revokedBy),
2732
2756
  };