@aws-sdk/client-clouddirectory 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-clouddirectory
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-clouddirectory
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-clouddirectory
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-clouddirectory
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-clouddirectory",
3
3
  "description": "AWS SDK for JavaScript Clouddirectory 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"
@@ -1881,7 +1881,7 @@ const deserializeAws_restJson1ApplySchemaCommand = async (output, context) => {
1881
1881
  AppliedSchemaArn: undefined,
1882
1882
  DirectoryArn: undefined,
1883
1883
  };
1884
- const data = await parseBody(output.body, context);
1884
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1885
1885
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
1886
1886
  contents.AppliedSchemaArn = smithy_client_1.expectString(data.AppliedSchemaArn);
1887
1887
  }
@@ -1996,7 +1996,7 @@ const deserializeAws_restJson1AttachObjectCommand = async (output, context) => {
1996
1996
  $metadata: deserializeMetadata(output),
1997
1997
  AttachedObjectIdentifier: undefined,
1998
1998
  };
1999
- const data = await parseBody(output.body, context);
1999
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2000
2000
  if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
2001
2001
  contents.AttachedObjectIdentifier = smithy_client_1.expectString(data.AttachedObjectIdentifier);
2002
2002
  }
@@ -2232,7 +2232,7 @@ const deserializeAws_restJson1AttachToIndexCommand = async (output, context) =>
2232
2232
  $metadata: deserializeMetadata(output),
2233
2233
  AttachedObjectIdentifier: undefined,
2234
2234
  };
2235
- const data = await parseBody(output.body, context);
2235
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2236
2236
  if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
2237
2237
  contents.AttachedObjectIdentifier = smithy_client_1.expectString(data.AttachedObjectIdentifier);
2238
2238
  }
@@ -2368,7 +2368,7 @@ const deserializeAws_restJson1AttachTypedLinkCommand = async (output, context) =
2368
2368
  $metadata: deserializeMetadata(output),
2369
2369
  TypedLinkSpecifier: undefined,
2370
2370
  };
2371
- const data = await parseBody(output.body, context);
2371
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2372
2372
  if (data.TypedLinkSpecifier !== undefined && data.TypedLinkSpecifier !== null) {
2373
2373
  contents.TypedLinkSpecifier = deserializeAws_restJson1TypedLinkSpecifier(data.TypedLinkSpecifier, context);
2374
2374
  }
@@ -2488,7 +2488,7 @@ const deserializeAws_restJson1BatchReadCommand = async (output, context) => {
2488
2488
  $metadata: deserializeMetadata(output),
2489
2489
  Responses: undefined,
2490
2490
  };
2491
- const data = await parseBody(output.body, context);
2491
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2492
2492
  if (data.Responses !== undefined && data.Responses !== null) {
2493
2493
  contents.Responses = deserializeAws_restJson1BatchReadOperationResponseList(data.Responses, context);
2494
2494
  }
@@ -2584,7 +2584,7 @@ const deserializeAws_restJson1BatchWriteCommand = async (output, context) => {
2584
2584
  $metadata: deserializeMetadata(output),
2585
2585
  Responses: undefined,
2586
2586
  };
2587
- const data = await parseBody(output.body, context);
2587
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2588
2588
  if (data.Responses !== undefined && data.Responses !== null) {
2589
2589
  contents.Responses = deserializeAws_restJson1BatchWriteOperationResponseList(data.Responses, context);
2590
2590
  }
@@ -2691,7 +2691,7 @@ const deserializeAws_restJson1CreateDirectoryCommand = async (output, context) =
2691
2691
  Name: undefined,
2692
2692
  ObjectIdentifier: undefined,
2693
2693
  };
2694
- const data = await parseBody(output.body, context);
2694
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2695
2695
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
2696
2696
  contents.AppliedSchemaArn = smithy_client_1.expectString(data.AppliedSchemaArn);
2697
2697
  }
@@ -2920,7 +2920,7 @@ const deserializeAws_restJson1CreateIndexCommand = async (output, context) => {
2920
2920
  $metadata: deserializeMetadata(output),
2921
2921
  ObjectIdentifier: undefined,
2922
2922
  };
2923
- const data = await parseBody(output.body, context);
2923
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2924
2924
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
2925
2925
  contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
2926
2926
  }
@@ -3048,7 +3048,7 @@ const deserializeAws_restJson1CreateObjectCommand = async (output, context) => {
3048
3048
  $metadata: deserializeMetadata(output),
3049
3049
  ObjectIdentifier: undefined,
3050
3050
  };
3051
- const data = await parseBody(output.body, context);
3051
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3052
3052
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
3053
3053
  contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
3054
3054
  }
@@ -3176,7 +3176,7 @@ const deserializeAws_restJson1CreateSchemaCommand = async (output, context) => {
3176
3176
  $metadata: deserializeMetadata(output),
3177
3177
  SchemaArn: undefined,
3178
3178
  };
3179
- const data = await parseBody(output.body, context);
3179
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3180
3180
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
3181
3181
  contents.SchemaArn = smithy_client_1.expectString(data.SchemaArn);
3182
3182
  }
@@ -3388,7 +3388,7 @@ const deserializeAws_restJson1DeleteDirectoryCommand = async (output, context) =
3388
3388
  $metadata: deserializeMetadata(output),
3389
3389
  DirectoryArn: undefined,
3390
3390
  };
3391
- const data = await parseBody(output.body, context);
3391
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3392
3392
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
3393
3393
  contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
3394
3394
  }
@@ -3716,7 +3716,7 @@ const deserializeAws_restJson1DeleteSchemaCommand = async (output, context) => {
3716
3716
  $metadata: deserializeMetadata(output),
3717
3717
  SchemaArn: undefined,
3718
3718
  };
3719
- const data = await parseBody(output.body, context);
3719
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3720
3720
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
3721
3721
  contents.SchemaArn = smithy_client_1.expectString(data.SchemaArn);
3722
3722
  }
@@ -3920,7 +3920,7 @@ const deserializeAws_restJson1DetachFromIndexCommand = async (output, context) =
3920
3920
  $metadata: deserializeMetadata(output),
3921
3921
  DetachedObjectIdentifier: undefined,
3922
3922
  };
3923
- const data = await parseBody(output.body, context);
3923
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3924
3924
  if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
3925
3925
  contents.DetachedObjectIdentifier = smithy_client_1.expectString(data.DetachedObjectIdentifier);
3926
3926
  }
@@ -4040,7 +4040,7 @@ const deserializeAws_restJson1DetachObjectCommand = async (output, context) => {
4040
4040
  $metadata: deserializeMetadata(output),
4041
4041
  DetachedObjectIdentifier: undefined,
4042
4042
  };
4043
- const data = await parseBody(output.body, context);
4043
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4044
4044
  if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
4045
4045
  contents.DetachedObjectIdentifier = smithy_client_1.expectString(data.DetachedObjectIdentifier);
4046
4046
  }
@@ -4368,7 +4368,7 @@ const deserializeAws_restJson1DisableDirectoryCommand = async (output, context)
4368
4368
  $metadata: deserializeMetadata(output),
4369
4369
  DirectoryArn: undefined,
4370
4370
  };
4371
- const data = await parseBody(output.body, context);
4371
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4372
4372
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
4373
4373
  contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
4374
4374
  }
@@ -4472,7 +4472,7 @@ const deserializeAws_restJson1EnableDirectoryCommand = async (output, context) =
4472
4472
  $metadata: deserializeMetadata(output),
4473
4473
  DirectoryArn: undefined,
4474
4474
  };
4475
- const data = await parseBody(output.body, context);
4475
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4476
4476
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
4477
4477
  contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
4478
4478
  }
@@ -4576,7 +4576,7 @@ const deserializeAws_restJson1GetAppliedSchemaVersionCommand = async (output, co
4576
4576
  $metadata: deserializeMetadata(output),
4577
4577
  AppliedSchemaArn: undefined,
4578
4578
  };
4579
- const data = await parseBody(output.body, context);
4579
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4580
4580
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
4581
4581
  contents.AppliedSchemaArn = smithy_client_1.expectString(data.AppliedSchemaArn);
4582
4582
  }
@@ -4672,7 +4672,7 @@ const deserializeAws_restJson1GetDirectoryCommand = async (output, context) => {
4672
4672
  $metadata: deserializeMetadata(output),
4673
4673
  Directory: undefined,
4674
4674
  };
4675
- const data = await parseBody(output.body, context);
4675
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4676
4676
  if (data.Directory !== undefined && data.Directory !== null) {
4677
4677
  contents.Directory = deserializeAws_restJson1Directory(data.Directory, context);
4678
4678
  }
@@ -4760,7 +4760,7 @@ const deserializeAws_restJson1GetFacetCommand = async (output, context) => {
4760
4760
  $metadata: deserializeMetadata(output),
4761
4761
  Facet: undefined,
4762
4762
  };
4763
- const data = await parseBody(output.body, context);
4763
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4764
4764
  if (data.Facet !== undefined && data.Facet !== null) {
4765
4765
  contents.Facet = deserializeAws_restJson1Facet(data.Facet, context);
4766
4766
  }
@@ -4864,7 +4864,7 @@ const deserializeAws_restJson1GetLinkAttributesCommand = async (output, context)
4864
4864
  $metadata: deserializeMetadata(output),
4865
4865
  Attributes: undefined,
4866
4866
  };
4867
- const data = await parseBody(output.body, context);
4867
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4868
4868
  if (data.Attributes !== undefined && data.Attributes !== null) {
4869
4869
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
4870
4870
  }
@@ -4976,7 +4976,7 @@ const deserializeAws_restJson1GetObjectAttributesCommand = async (output, contex
4976
4976
  $metadata: deserializeMetadata(output),
4977
4977
  Attributes: undefined,
4978
4978
  };
4979
- const data = await parseBody(output.body, context);
4979
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4980
4980
  if (data.Attributes !== undefined && data.Attributes !== null) {
4981
4981
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
4982
4982
  }
@@ -5089,7 +5089,7 @@ const deserializeAws_restJson1GetObjectInformationCommand = async (output, conte
5089
5089
  ObjectIdentifier: undefined,
5090
5090
  SchemaFacets: undefined,
5091
5091
  };
5092
- const data = await parseBody(output.body, context);
5092
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5093
5093
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
5094
5094
  contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
5095
5095
  }
@@ -5197,7 +5197,7 @@ const deserializeAws_restJson1GetSchemaAsJsonCommand = async (output, context) =
5197
5197
  Document: undefined,
5198
5198
  Name: undefined,
5199
5199
  };
5200
- const data = await parseBody(output.body, context);
5200
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5201
5201
  if (data.Document !== undefined && data.Document !== null) {
5202
5202
  contents.Document = smithy_client_1.expectString(data.Document);
5203
5203
  }
@@ -5296,7 +5296,7 @@ const deserializeAws_restJson1GetTypedLinkFacetInformationCommand = async (outpu
5296
5296
  $metadata: deserializeMetadata(output),
5297
5297
  IdentityAttributeOrder: undefined,
5298
5298
  };
5299
- const data = await parseBody(output.body, context);
5299
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5300
5300
  if (data.IdentityAttributeOrder !== undefined && data.IdentityAttributeOrder !== null) {
5301
5301
  contents.IdentityAttributeOrder = deserializeAws_restJson1AttributeNameList(data.IdentityAttributeOrder, context);
5302
5302
  }
@@ -5409,7 +5409,7 @@ const deserializeAws_restJson1ListAppliedSchemaArnsCommand = async (output, cont
5409
5409
  NextToken: undefined,
5410
5410
  SchemaArns: undefined,
5411
5411
  };
5412
- const data = await parseBody(output.body, context);
5412
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5413
5413
  if (data.NextToken !== undefined && data.NextToken !== null) {
5414
5414
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
5415
5415
  }
@@ -5517,7 +5517,7 @@ const deserializeAws_restJson1ListAttachedIndicesCommand = async (output, contex
5517
5517
  IndexAttachments: undefined,
5518
5518
  NextToken: undefined,
5519
5519
  };
5520
- const data = await parseBody(output.body, context);
5520
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5521
5521
  if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
5522
5522
  contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
5523
5523
  }
@@ -5625,7 +5625,7 @@ const deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = async (output,
5625
5625
  NextToken: undefined,
5626
5626
  SchemaArns: undefined,
5627
5627
  };
5628
- const data = await parseBody(output.body, context);
5628
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5629
5629
  if (data.NextToken !== undefined && data.NextToken !== null) {
5630
5630
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
5631
5631
  }
@@ -5733,7 +5733,7 @@ const deserializeAws_restJson1ListDirectoriesCommand = async (output, context) =
5733
5733
  Directories: undefined,
5734
5734
  NextToken: undefined,
5735
5735
  };
5736
- const data = await parseBody(output.body, context);
5736
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5737
5737
  if (data.Directories !== undefined && data.Directories !== null) {
5738
5738
  contents.Directories = deserializeAws_restJson1DirectoryList(data.Directories, context);
5739
5739
  }
@@ -5833,7 +5833,7 @@ const deserializeAws_restJson1ListFacetAttributesCommand = async (output, contex
5833
5833
  Attributes: undefined,
5834
5834
  NextToken: undefined,
5835
5835
  };
5836
- const data = await parseBody(output.body, context);
5836
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5837
5837
  if (data.Attributes !== undefined && data.Attributes !== null) {
5838
5838
  contents.Attributes = deserializeAws_restJson1FacetAttributeList(data.Attributes, context);
5839
5839
  }
@@ -5949,7 +5949,7 @@ const deserializeAws_restJson1ListFacetNamesCommand = async (output, context) =>
5949
5949
  FacetNames: undefined,
5950
5950
  NextToken: undefined,
5951
5951
  };
5952
- const data = await parseBody(output.body, context);
5952
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5953
5953
  if (data.FacetNames !== undefined && data.FacetNames !== null) {
5954
5954
  contents.FacetNames = deserializeAws_restJson1FacetNameList(data.FacetNames, context);
5955
5955
  }
@@ -6057,7 +6057,7 @@ const deserializeAws_restJson1ListIncomingTypedLinksCommand = async (output, con
6057
6057
  LinkSpecifiers: undefined,
6058
6058
  NextToken: undefined,
6059
6059
  };
6060
- const data = await parseBody(output.body, context);
6060
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6061
6061
  if (data.LinkSpecifiers !== undefined && data.LinkSpecifiers !== null) {
6062
6062
  contents.LinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.LinkSpecifiers, context);
6063
6063
  }
@@ -6181,7 +6181,7 @@ const deserializeAws_restJson1ListIndexCommand = async (output, context) => {
6181
6181
  IndexAttachments: undefined,
6182
6182
  NextToken: undefined,
6183
6183
  };
6184
- const data = await parseBody(output.body, context);
6184
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6185
6185
  if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
6186
6186
  contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
6187
6187
  }
@@ -6313,7 +6313,7 @@ const deserializeAws_restJson1ListManagedSchemaArnsCommand = async (output, cont
6313
6313
  NextToken: undefined,
6314
6314
  SchemaArns: undefined,
6315
6315
  };
6316
- const data = await parseBody(output.body, context);
6316
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6317
6317
  if (data.NextToken !== undefined && data.NextToken !== null) {
6318
6318
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
6319
6319
  }
@@ -6405,7 +6405,7 @@ const deserializeAws_restJson1ListObjectAttributesCommand = async (output, conte
6405
6405
  Attributes: undefined,
6406
6406
  NextToken: undefined,
6407
6407
  };
6408
- const data = await parseBody(output.body, context);
6408
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6409
6409
  if (data.Attributes !== undefined && data.Attributes !== null) {
6410
6410
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
6411
6411
  }
@@ -6529,7 +6529,7 @@ const deserializeAws_restJson1ListObjectChildrenCommand = async (output, context
6529
6529
  Children: undefined,
6530
6530
  NextToken: undefined,
6531
6531
  };
6532
- const data = await parseBody(output.body, context);
6532
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6533
6533
  if (data.Children !== undefined && data.Children !== null) {
6534
6534
  contents.Children = deserializeAws_restJson1LinkNameToObjectIdentifierMap(data.Children, context);
6535
6535
  }
@@ -6653,7 +6653,7 @@ const deserializeAws_restJson1ListObjectParentPathsCommand = async (output, cont
6653
6653
  NextToken: undefined,
6654
6654
  PathToObjectIdentifiersList: undefined,
6655
6655
  };
6656
- const data = await parseBody(output.body, context);
6656
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6657
6657
  if (data.NextToken !== undefined && data.NextToken !== null) {
6658
6658
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
6659
6659
  }
@@ -6770,7 +6770,7 @@ const deserializeAws_restJson1ListObjectParentsCommand = async (output, context)
6770
6770
  ParentLinks: undefined,
6771
6771
  Parents: undefined,
6772
6772
  };
6773
- const data = await parseBody(output.body, context);
6773
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6774
6774
  if (data.NextToken !== undefined && data.NextToken !== null) {
6775
6775
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
6776
6776
  }
@@ -6897,7 +6897,7 @@ const deserializeAws_restJson1ListObjectPoliciesCommand = async (output, context
6897
6897
  AttachedPolicyIds: undefined,
6898
6898
  NextToken: undefined,
6899
6899
  };
6900
- const data = await parseBody(output.body, context);
6900
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6901
6901
  if (data.AttachedPolicyIds !== undefined && data.AttachedPolicyIds !== null) {
6902
6902
  contents.AttachedPolicyIds = deserializeAws_restJson1ObjectIdentifierList(data.AttachedPolicyIds, context);
6903
6903
  }
@@ -7013,7 +7013,7 @@ const deserializeAws_restJson1ListOutgoingTypedLinksCommand = async (output, con
7013
7013
  NextToken: undefined,
7014
7014
  TypedLinkSpecifiers: undefined,
7015
7015
  };
7016
- const data = await parseBody(output.body, context);
7016
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7017
7017
  if (data.NextToken !== undefined && data.NextToken !== null) {
7018
7018
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
7019
7019
  }
@@ -7137,7 +7137,7 @@ const deserializeAws_restJson1ListPolicyAttachmentsCommand = async (output, cont
7137
7137
  NextToken: undefined,
7138
7138
  ObjectIdentifiers: undefined,
7139
7139
  };
7140
- const data = await parseBody(output.body, context);
7140
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7141
7141
  if (data.NextToken !== undefined && data.NextToken !== null) {
7142
7142
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
7143
7143
  }
@@ -7261,7 +7261,7 @@ const deserializeAws_restJson1ListPublishedSchemaArnsCommand = async (output, co
7261
7261
  NextToken: undefined,
7262
7262
  SchemaArns: undefined,
7263
7263
  };
7264
- const data = await parseBody(output.body, context);
7264
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7265
7265
  if (data.NextToken !== undefined && data.NextToken !== null) {
7266
7266
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
7267
7267
  }
@@ -7369,7 +7369,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
7369
7369
  NextToken: undefined,
7370
7370
  Tags: undefined,
7371
7371
  };
7372
- const data = await parseBody(output.body, context);
7372
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7373
7373
  if (data.NextToken !== undefined && data.NextToken !== null) {
7374
7374
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
7375
7375
  }
@@ -7477,7 +7477,7 @@ const deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = async (outpu
7477
7477
  Attributes: undefined,
7478
7478
  NextToken: undefined,
7479
7479
  };
7480
- const data = await parseBody(output.body, context);
7480
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7481
7481
  if (data.Attributes !== undefined && data.Attributes !== null) {
7482
7482
  contents.Attributes = deserializeAws_restJson1TypedLinkAttributeDefinitionList(data.Attributes, context);
7483
7483
  }
@@ -7593,7 +7593,7 @@ const deserializeAws_restJson1ListTypedLinkFacetNamesCommand = async (output, co
7593
7593
  FacetNames: undefined,
7594
7594
  NextToken: undefined,
7595
7595
  };
7596
- const data = await parseBody(output.body, context);
7596
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7597
7597
  if (data.FacetNames !== undefined && data.FacetNames !== null) {
7598
7598
  contents.FacetNames = deserializeAws_restJson1TypedLinkNameList(data.FacetNames, context);
7599
7599
  }
@@ -7701,7 +7701,7 @@ const deserializeAws_restJson1LookupPolicyCommand = async (output, context) => {
7701
7701
  NextToken: undefined,
7702
7702
  PolicyToPathList: undefined,
7703
7703
  };
7704
- const data = await parseBody(output.body, context);
7704
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7705
7705
  if (data.NextToken !== undefined && data.NextToken !== null) {
7706
7706
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
7707
7707
  }
@@ -7816,7 +7816,7 @@ const deserializeAws_restJson1PublishSchemaCommand = async (output, context) =>
7816
7816
  $metadata: deserializeMetadata(output),
7817
7817
  PublishedSchemaArn: undefined,
7818
7818
  };
7819
- const data = await parseBody(output.body, context);
7819
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7820
7820
  if (data.PublishedSchemaArn !== undefined && data.PublishedSchemaArn !== null) {
7821
7821
  contents.PublishedSchemaArn = smithy_client_1.expectString(data.PublishedSchemaArn);
7822
7822
  }
@@ -7920,7 +7920,7 @@ const deserializeAws_restJson1PutSchemaFromJsonCommand = async (output, context)
7920
7920
  $metadata: deserializeMetadata(output),
7921
7921
  Arn: undefined,
7922
7922
  };
7923
- const data = await parseBody(output.body, context);
7923
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7924
7924
  if (data.Arn !== undefined && data.Arn !== null) {
7925
7925
  contents.Arn = smithy_client_1.expectString(data.Arn);
7926
7926
  }
@@ -8564,7 +8564,7 @@ const deserializeAws_restJson1UpdateObjectAttributesCommand = async (output, con
8564
8564
  $metadata: deserializeMetadata(output),
8565
8565
  ObjectIdentifier: undefined,
8566
8566
  };
8567
- const data = await parseBody(output.body, context);
8567
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8568
8568
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
8569
8569
  contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
8570
8570
  }
@@ -8684,7 +8684,7 @@ const deserializeAws_restJson1UpdateSchemaCommand = async (output, context) => {
8684
8684
  $metadata: deserializeMetadata(output),
8685
8685
  SchemaArn: 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.SchemaArn !== undefined && data.SchemaArn !== null) {
8689
8689
  contents.SchemaArn = smithy_client_1.expectString(data.SchemaArn);
8690
8690
  }
@@ -8905,7 +8905,7 @@ const deserializeAws_restJson1UpgradeAppliedSchemaCommand = async (output, conte
8905
8905
  DirectoryArn: undefined,
8906
8906
  UpgradedSchemaArn: undefined,
8907
8907
  };
8908
- const data = await parseBody(output.body, context);
8908
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8909
8909
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
8910
8910
  contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
8911
8911
  }
@@ -9020,7 +9020,7 @@ const deserializeAws_restJson1UpgradePublishedSchemaCommand = async (output, con
9020
9020
  $metadata: deserializeMetadata(output),
9021
9021
  UpgradedSchemaArn: undefined,
9022
9022
  };
9023
- const data = await parseBody(output.body, context);
9023
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9024
9024
  if (data.UpgradedSchemaArn !== undefined && data.UpgradedSchemaArn !== null) {
9025
9025
  contents.UpgradedSchemaArn = smithy_client_1.expectString(data.UpgradedSchemaArn);
9026
9026
  }
@@ -9148,7 +9148,7 @@ const deserializeAws_restJson1BatchWriteExceptionResponse = async (parsedOutput,
9148
9148
  };
9149
9149
  const data = parsedOutput.body;
9150
9150
  if (data.Index !== undefined && data.Index !== null) {
9151
- contents.Index = smithy_client_1.expectInt(data.Index);
9151
+ contents.Index = smithy_client_1.expectInt32(data.Index);
9152
9152
  }
9153
9153
  if (data.Message !== undefined && data.Message !== null) {
9154
9154
  contents.Message = smithy_client_1.expectString(data.Message);
@@ -10509,7 +10509,7 @@ const deserializeAws_restJson1AttributeKeyAndValue = (output, context) => {
10509
10509
  ? deserializeAws_restJson1AttributeKey(output.Key, context)
10510
10510
  : undefined,
10511
10511
  Value: output.Value !== undefined && output.Value !== null
10512
- ? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
10512
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.Value), context)
10513
10513
  : undefined,
10514
10514
  };
10515
10515
  };
@@ -10527,7 +10527,7 @@ const deserializeAws_restJson1AttributeNameAndValue = (output, context) => {
10527
10527
  return {
10528
10528
  AttributeName: smithy_client_1.expectString(output.AttributeName),
10529
10529
  Value: output.Value !== undefined && output.Value !== null
10530
- ? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
10530
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.Value), context)
10531
10531
  : undefined,
10532
10532
  };
10533
10533
  };
@@ -10858,7 +10858,7 @@ const deserializeAws_restJson1BatchWriteOperationResponseList = (output, context
10858
10858
  const deserializeAws_restJson1Directory = (output, context) => {
10859
10859
  return {
10860
10860
  CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
10861
- ? new Date(Math.round(output.CreationDateTime * 1000))
10861
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDateTime)))
10862
10862
  : undefined,
10863
10863
  DirectoryArn: smithy_client_1.expectString(output.DirectoryArn),
10864
10864
  Name: smithy_client_1.expectString(output.Name),
@@ -10897,7 +10897,7 @@ const deserializeAws_restJson1FacetAttribute = (output, context) => {
10897
10897
  const deserializeAws_restJson1FacetAttributeDefinition = (output, context) => {
10898
10898
  return {
10899
10899
  DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
10900
- ? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
10900
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.DefaultValue), context)
10901
10901
  : undefined,
10902
10902
  IsImmutable: smithy_client_1.expectBoolean(output.IsImmutable),
10903
10903
  Rules: output.Rules !== undefined && output.Rules !== null
@@ -11129,7 +11129,7 @@ const deserializeAws_restJson1TypedAttributeValue = (output, context) => {
11129
11129
  }
11130
11130
  if (output.DatetimeValue !== undefined && output.DatetimeValue !== null) {
11131
11131
  return {
11132
- DatetimeValue: new Date(Math.round(output.DatetimeValue * 1000)),
11132
+ DatetimeValue: smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DatetimeValue))),
11133
11133
  };
11134
11134
  }
11135
11135
  if (smithy_client_1.expectString(output.NumberValue) !== undefined) {
@@ -11143,7 +11143,7 @@ const deserializeAws_restJson1TypedAttributeValue = (output, context) => {
11143
11143
  const deserializeAws_restJson1TypedLinkAttributeDefinition = (output, context) => {
11144
11144
  return {
11145
11145
  DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
11146
- ? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
11146
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.DefaultValue), context)
11147
11147
  : undefined,
11148
11148
  IsImmutable: smithy_client_1.expectBoolean(output.IsImmutable),
11149
11149
  Name: smithy_client_1.expectString(output.Name),