@aws-sdk/client-workdocs 3.28.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-workdocs
9
+
10
+
11
+
12
+
13
+
14
+ # [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-workdocs
17
+
18
+
19
+
20
+
21
+
22
+ # [3.30.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.29.0...v3.30.0) (2021-09-07)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-workdocs
25
+
26
+
27
+
28
+
29
+
30
+ # [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
31
+
32
+ **Note:** Version bump only for package @aws-sdk/client-workdocs
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.28.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.27.0...v3.28.0) (2021-08-27)
7
39
 
8
40
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workdocs",
3
3
  "description": "AWS SDK for JavaScript Workdocs Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,45 +27,45 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.23.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.3.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -1479,7 +1479,7 @@ const deserializeAws_restJson1ActivateUserCommand = async (output, context) => {
1479
1479
  $metadata: deserializeMetadata(output),
1480
1480
  User: undefined,
1481
1481
  };
1482
- const data = await parseBody(output.body, context);
1482
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1483
1483
  if (data.User !== undefined && data.User !== null) {
1484
1484
  contents.User = deserializeAws_restJson1User(data.User, context);
1485
1485
  }
@@ -1559,7 +1559,7 @@ const deserializeAws_restJson1AddResourcePermissionsCommand = async (output, con
1559
1559
  $metadata: deserializeMetadata(output),
1560
1560
  ShareResults: undefined,
1561
1561
  };
1562
- const data = await parseBody(output.body, context);
1562
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1563
1563
  if (data.ShareResults !== undefined && data.ShareResults !== null) {
1564
1564
  contents.ShareResults = deserializeAws_restJson1ShareResultsList(data.ShareResults, context);
1565
1565
  }
@@ -1631,7 +1631,7 @@ const deserializeAws_restJson1CreateCommentCommand = async (output, context) =>
1631
1631
  $metadata: deserializeMetadata(output),
1632
1632
  Comment: undefined,
1633
1633
  };
1634
- const data = await parseBody(output.body, context);
1634
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1635
1635
  if (data.Comment !== undefined && data.Comment !== null) {
1636
1636
  contents.Comment = deserializeAws_restJson1Comment(data.Comment, context);
1637
1637
  }
@@ -1827,7 +1827,7 @@ const deserializeAws_restJson1CreateFolderCommand = async (output, context) => {
1827
1827
  $metadata: deserializeMetadata(output),
1828
1828
  Metadata: undefined,
1829
1829
  };
1830
- const data = await parseBody(output.body, context);
1830
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1831
1831
  if (data.Metadata !== undefined && data.Metadata !== null) {
1832
1832
  contents.Metadata = deserializeAws_restJson1FolderMetadata(data.Metadata, context);
1833
1833
  }
@@ -2023,7 +2023,7 @@ const deserializeAws_restJson1CreateNotificationSubscriptionCommand = async (out
2023
2023
  $metadata: deserializeMetadata(output),
2024
2024
  Subscription: undefined,
2025
2025
  };
2026
- const data = await parseBody(output.body, context);
2026
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2027
2027
  if (data.Subscription !== undefined && data.Subscription !== null) {
2028
2028
  contents.Subscription = deserializeAws_restJson1Subscription(data.Subscription, context);
2029
2029
  }
@@ -2087,7 +2087,7 @@ const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
2087
2087
  $metadata: deserializeMetadata(output),
2088
2088
  User: undefined,
2089
2089
  };
2090
- const data = await parseBody(output.body, context);
2090
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2091
2091
  if (data.User !== undefined && data.User !== null) {
2092
2092
  contents.User = deserializeAws_restJson1User(data.User, context);
2093
2093
  }
@@ -2932,7 +2932,7 @@ const deserializeAws_restJson1DescribeActivitiesCommand = async (output, context
2932
2932
  Marker: undefined,
2933
2933
  UserActivities: undefined,
2934
2934
  };
2935
- const data = await parseBody(output.body, context);
2935
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2936
2936
  if (data.Marker !== undefined && data.Marker !== null) {
2937
2937
  contents.Marker = smithy_client_1.expectString(data.Marker);
2938
2938
  }
@@ -3016,7 +3016,7 @@ const deserializeAws_restJson1DescribeCommentsCommand = async (output, context)
3016
3016
  Comments: undefined,
3017
3017
  Marker: undefined,
3018
3018
  };
3019
- const data = await parseBody(output.body, context);
3019
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3020
3020
  if (data.Comments !== undefined && data.Comments !== null) {
3021
3021
  contents.Comments = deserializeAws_restJson1CommentList(data.Comments, context);
3022
3022
  }
@@ -3108,7 +3108,7 @@ const deserializeAws_restJson1DescribeDocumentVersionsCommand = async (output, c
3108
3108
  DocumentVersions: undefined,
3109
3109
  Marker: undefined,
3110
3110
  };
3111
- const data = await parseBody(output.body, context);
3111
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3112
3112
  if (data.DocumentVersions !== undefined && data.DocumentVersions !== null) {
3113
3113
  contents.DocumentVersions = deserializeAws_restJson1DocumentVersionMetadataList(data.DocumentVersions, context);
3114
3114
  }
@@ -3209,7 +3209,7 @@ const deserializeAws_restJson1DescribeFolderContentsCommand = async (output, con
3209
3209
  Folders: undefined,
3210
3210
  Marker: undefined,
3211
3211
  };
3212
- const data = await parseBody(output.body, context);
3212
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3213
3213
  if (data.Documents !== undefined && data.Documents !== null) {
3214
3214
  contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
3215
3215
  }
@@ -3304,7 +3304,7 @@ const deserializeAws_restJson1DescribeGroupsCommand = async (output, context) =>
3304
3304
  Groups: undefined,
3305
3305
  Marker: undefined,
3306
3306
  };
3307
- const data = await parseBody(output.body, context);
3307
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3308
3308
  if (data.Groups !== undefined && data.Groups !== null) {
3309
3309
  contents.Groups = deserializeAws_restJson1GroupMetadataList(data.Groups, context);
3310
3310
  }
@@ -3380,7 +3380,7 @@ const deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = async (
3380
3380
  Marker: undefined,
3381
3381
  Subscriptions: undefined,
3382
3382
  };
3383
- const data = await parseBody(output.body, context);
3383
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3384
3384
  if (data.Marker !== undefined && data.Marker !== null) {
3385
3385
  contents.Marker = smithy_client_1.expectString(data.Marker);
3386
3386
  }
@@ -3448,7 +3448,7 @@ const deserializeAws_restJson1DescribeResourcePermissionsCommand = async (output
3448
3448
  Marker: undefined,
3449
3449
  Principals: undefined,
3450
3450
  };
3451
- const data = await parseBody(output.body, context);
3451
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3452
3452
  if (data.Marker !== undefined && data.Marker !== null) {
3453
3453
  contents.Marker = smithy_client_1.expectString(data.Marker);
3454
3454
  }
@@ -3524,7 +3524,7 @@ const deserializeAws_restJson1DescribeRootFoldersCommand = async (output, contex
3524
3524
  Folders: undefined,
3525
3525
  Marker: undefined,
3526
3526
  };
3527
- const data = await parseBody(output.body, context);
3527
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3528
3528
  if (data.Folders !== undefined && data.Folders !== null) {
3529
3529
  contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
3530
3530
  }
@@ -3609,12 +3609,12 @@ const deserializeAws_restJson1DescribeUsersCommand = async (output, context) =>
3609
3609
  TotalNumberOfUsers: undefined,
3610
3610
  Users: undefined,
3611
3611
  };
3612
- const data = await parseBody(output.body, context);
3612
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3613
3613
  if (data.Marker !== undefined && data.Marker !== null) {
3614
3614
  contents.Marker = smithy_client_1.expectString(data.Marker);
3615
3615
  }
3616
3616
  if (data.TotalNumberOfUsers !== undefined && data.TotalNumberOfUsers !== null) {
3617
- contents.TotalNumberOfUsers = smithy_client_1.expectInt(data.TotalNumberOfUsers);
3617
+ contents.TotalNumberOfUsers = smithy_client_1.expectLong(data.TotalNumberOfUsers);
3618
3618
  }
3619
3619
  if (data.Users !== undefined && data.Users !== null) {
3620
3620
  contents.Users = deserializeAws_restJson1OrganizationUserList(data.Users, context);
@@ -3711,7 +3711,7 @@ const deserializeAws_restJson1GetCurrentUserCommand = async (output, context) =>
3711
3711
  $metadata: deserializeMetadata(output),
3712
3712
  User: undefined,
3713
3713
  };
3714
- const data = await parseBody(output.body, context);
3714
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3715
3715
  if (data.User !== undefined && data.User !== null) {
3716
3716
  contents.User = deserializeAws_restJson1User(data.User, context);
3717
3717
  }
@@ -3792,7 +3792,7 @@ const deserializeAws_restJson1GetDocumentCommand = async (output, context) => {
3792
3792
  CustomMetadata: undefined,
3793
3793
  Metadata: undefined,
3794
3794
  };
3795
- const data = await parseBody(output.body, context);
3795
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3796
3796
  if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
3797
3797
  contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
3798
3798
  }
@@ -3891,7 +3891,7 @@ const deserializeAws_restJson1GetDocumentPathCommand = async (output, context) =
3891
3891
  $metadata: deserializeMetadata(output),
3892
3892
  Path: undefined,
3893
3893
  };
3894
- const data = await parseBody(output.body, context);
3894
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3895
3895
  if (data.Path !== undefined && data.Path !== null) {
3896
3896
  contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
3897
3897
  }
@@ -3972,7 +3972,7 @@ const deserializeAws_restJson1GetDocumentVersionCommand = async (output, context
3972
3972
  CustomMetadata: undefined,
3973
3973
  Metadata: undefined,
3974
3974
  };
3975
- const data = await parseBody(output.body, context);
3975
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3976
3976
  if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
3977
3977
  contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
3978
3978
  }
@@ -4072,7 +4072,7 @@ const deserializeAws_restJson1GetFolderCommand = async (output, context) => {
4072
4072
  CustomMetadata: undefined,
4073
4073
  Metadata: undefined,
4074
4074
  };
4075
- const data = await parseBody(output.body, context);
4075
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4076
4076
  if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
4077
4077
  contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
4078
4078
  }
@@ -4171,7 +4171,7 @@ const deserializeAws_restJson1GetFolderPathCommand = async (output, context) =>
4171
4171
  $metadata: deserializeMetadata(output),
4172
4172
  Path: undefined,
4173
4173
  };
4174
- const data = await parseBody(output.body, context);
4174
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4175
4175
  if (data.Path !== undefined && data.Path !== null) {
4176
4176
  contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
4177
4177
  }
@@ -4253,7 +4253,7 @@ const deserializeAws_restJson1GetResourcesCommand = async (output, context) => {
4253
4253
  Folders: undefined,
4254
4254
  Marker: undefined,
4255
4255
  };
4256
- const data = await parseBody(output.body, context);
4256
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4257
4257
  if (data.Documents !== undefined && data.Documents !== null) {
4258
4258
  contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
4259
4259
  }
@@ -4340,7 +4340,7 @@ const deserializeAws_restJson1InitiateDocumentVersionUploadCommand = async (outp
4340
4340
  Metadata: undefined,
4341
4341
  UploadMetadata: undefined,
4342
4342
  };
4343
- const data = await parseBody(output.body, context);
4343
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4344
4344
  if (data.Metadata !== undefined && data.Metadata !== null) {
4345
4345
  contents.Metadata = deserializeAws_restJson1DocumentMetadata(data.Metadata, context);
4346
4346
  }
@@ -4939,7 +4939,7 @@ const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
4939
4939
  $metadata: deserializeMetadata(output),
4940
4940
  User: undefined,
4941
4941
  };
4942
- const data = await parseBody(output.body, context);
4942
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4943
4943
  if (data.User !== undefined && data.User !== null) {
4944
4944
  contents.User = deserializeAws_restJson1User(data.User, context);
4945
4945
  }
@@ -5443,7 +5443,7 @@ const deserializeAws_restJson1Activity = (output, context) => {
5443
5443
  ? deserializeAws_restJson1ResourceMetadata(output.ResourceMetadata, context)
5444
5444
  : undefined,
5445
5445
  TimeStamp: output.TimeStamp !== undefined && output.TimeStamp !== null
5446
- ? new Date(Math.round(output.TimeStamp * 1000))
5446
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TimeStamp)))
5447
5447
  : undefined,
5448
5448
  Type: smithy_client_1.expectString(output.Type),
5449
5449
  };
@@ -5455,7 +5455,7 @@ const deserializeAws_restJson1Comment = (output, context) => {
5455
5455
  ? deserializeAws_restJson1User(output.Contributor, context)
5456
5456
  : undefined,
5457
5457
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
5458
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
5458
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
5459
5459
  : undefined,
5460
5460
  ParentId: smithy_client_1.expectString(output.ParentId),
5461
5461
  RecipientId: smithy_client_1.expectString(output.RecipientId),
@@ -5483,7 +5483,7 @@ const deserializeAws_restJson1CommentMetadata = (output, context) => {
5483
5483
  ? deserializeAws_restJson1User(output.Contributor, context)
5484
5484
  : undefined,
5485
5485
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
5486
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
5486
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
5487
5487
  : undefined,
5488
5488
  RecipientId: smithy_client_1.expectString(output.RecipientId),
5489
5489
  };
@@ -5502,7 +5502,7 @@ const deserializeAws_restJson1CustomMetadataMap = (output, context) => {
5502
5502
  const deserializeAws_restJson1DocumentMetadata = (output, context) => {
5503
5503
  return {
5504
5504
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
5505
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
5505
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
5506
5506
  : undefined,
5507
5507
  CreatorId: smithy_client_1.expectString(output.CreatorId),
5508
5508
  Id: smithy_client_1.expectString(output.Id),
@@ -5513,7 +5513,7 @@ const deserializeAws_restJson1DocumentMetadata = (output, context) => {
5513
5513
  ? deserializeAws_restJson1DocumentVersionMetadata(output.LatestVersionMetadata, context)
5514
5514
  : undefined,
5515
5515
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
5516
- ? new Date(Math.round(output.ModifiedTimestamp * 1000))
5516
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
5517
5517
  : undefined,
5518
5518
  ParentFolderId: smithy_client_1.expectString(output.ParentFolderId),
5519
5519
  ResourceState: smithy_client_1.expectString(output.ResourceState),
@@ -5554,23 +5554,23 @@ const deserializeAws_restJson1DocumentThumbnailUrlMap = (output, context) => {
5554
5554
  const deserializeAws_restJson1DocumentVersionMetadata = (output, context) => {
5555
5555
  return {
5556
5556
  ContentCreatedTimestamp: output.ContentCreatedTimestamp !== undefined && output.ContentCreatedTimestamp !== null
5557
- ? new Date(Math.round(output.ContentCreatedTimestamp * 1000))
5557
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ContentCreatedTimestamp)))
5558
5558
  : undefined,
5559
5559
  ContentModifiedTimestamp: output.ContentModifiedTimestamp !== undefined && output.ContentModifiedTimestamp !== null
5560
- ? new Date(Math.round(output.ContentModifiedTimestamp * 1000))
5560
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ContentModifiedTimestamp)))
5561
5561
  : undefined,
5562
5562
  ContentType: smithy_client_1.expectString(output.ContentType),
5563
5563
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
5564
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
5564
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
5565
5565
  : undefined,
5566
5566
  CreatorId: smithy_client_1.expectString(output.CreatorId),
5567
5567
  Id: smithy_client_1.expectString(output.Id),
5568
5568
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
5569
- ? new Date(Math.round(output.ModifiedTimestamp * 1000))
5569
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
5570
5570
  : undefined,
5571
5571
  Name: smithy_client_1.expectString(output.Name),
5572
5572
  Signature: smithy_client_1.expectString(output.Signature),
5573
- Size: smithy_client_1.expectInt(output.Size),
5573
+ Size: smithy_client_1.expectLong(output.Size),
5574
5574
  Source: output.Source !== undefined && output.Source !== null
5575
5575
  ? deserializeAws_restJson1DocumentSourceUrlMap(output.Source, context)
5576
5576
  : undefined,
@@ -5603,22 +5603,22 @@ const deserializeAws_restJson1EntityIdList = (output, context) => {
5603
5603
  const deserializeAws_restJson1FolderMetadata = (output, context) => {
5604
5604
  return {
5605
5605
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
5606
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
5606
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
5607
5607
  : undefined,
5608
5608
  CreatorId: smithy_client_1.expectString(output.CreatorId),
5609
5609
  Id: smithy_client_1.expectString(output.Id),
5610
5610
  Labels: output.Labels !== undefined && output.Labels !== null
5611
5611
  ? deserializeAws_restJson1SharedLabels(output.Labels, context)
5612
5612
  : undefined,
5613
- LatestVersionSize: smithy_client_1.expectInt(output.LatestVersionSize),
5613
+ LatestVersionSize: smithy_client_1.expectLong(output.LatestVersionSize),
5614
5614
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
5615
- ? new Date(Math.round(output.ModifiedTimestamp * 1000))
5615
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
5616
5616
  : undefined,
5617
5617
  Name: smithy_client_1.expectString(output.Name),
5618
5618
  ParentFolderId: smithy_client_1.expectString(output.ParentFolderId),
5619
5619
  ResourceState: smithy_client_1.expectString(output.ResourceState),
5620
5620
  Signature: smithy_client_1.expectString(output.Signature),
5621
- Size: smithy_client_1.expectInt(output.Size),
5621
+ Size: smithy_client_1.expectLong(output.Size),
5622
5622
  };
5623
5623
  };
5624
5624
  const deserializeAws_restJson1FolderMetadataList = (output, context) => {
@@ -5781,7 +5781,7 @@ const deserializeAws_restJson1SignedHeaderMap = (output, context) => {
5781
5781
  };
5782
5782
  const deserializeAws_restJson1StorageRuleType = (output, context) => {
5783
5783
  return {
5784
- StorageAllocatedInBytes: smithy_client_1.expectInt(output.StorageAllocatedInBytes),
5784
+ StorageAllocatedInBytes: smithy_client_1.expectLong(output.StorageAllocatedInBytes),
5785
5785
  StorageType: smithy_client_1.expectString(output.StorageType),
5786
5786
  };
5787
5787
  };
@@ -5813,14 +5813,14 @@ const deserializeAws_restJson1UploadMetadata = (output, context) => {
5813
5813
  const deserializeAws_restJson1User = (output, context) => {
5814
5814
  return {
5815
5815
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
5816
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
5816
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
5817
5817
  : undefined,
5818
5818
  EmailAddress: smithy_client_1.expectString(output.EmailAddress),
5819
5819
  GivenName: smithy_client_1.expectString(output.GivenName),
5820
5820
  Id: smithy_client_1.expectString(output.Id),
5821
5821
  Locale: smithy_client_1.expectString(output.Locale),
5822
5822
  ModifiedTimestamp: output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
5823
- ? new Date(Math.round(output.ModifiedTimestamp * 1000))
5823
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ModifiedTimestamp)))
5824
5824
  : undefined,
5825
5825
  OrganizationId: smithy_client_1.expectString(output.OrganizationId),
5826
5826
  RecycleBinFolderId: smithy_client_1.expectString(output.RecycleBinFolderId),
@@ -5869,7 +5869,7 @@ const deserializeAws_restJson1UserStorageMetadata = (output, context) => {
5869
5869
  StorageRule: output.StorageRule !== undefined && output.StorageRule !== null
5870
5870
  ? deserializeAws_restJson1StorageRuleType(output.StorageRule, context)
5871
5871
  : undefined,
5872
- StorageUtilizedInBytes: smithy_client_1.expectInt(output.StorageUtilizedInBytes),
5872
+ StorageUtilizedInBytes: smithy_client_1.expectLong(output.StorageUtilizedInBytes),
5873
5873
  };
5874
5874
  };
5875
5875
  const deserializeMetadata = (output) => {