@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/package.json CHANGED
@@ -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"
@@ -277,8 +277,13 @@ import {
277
277
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
278
278
  import {
279
279
  expectBoolean as __expectBoolean,
280
- expectInt as __expectInt,
280
+ expectInt32 as __expectInt32,
281
+ expectNonNull as __expectNonNull,
282
+ expectNumber as __expectNumber,
283
+ expectObject as __expectObject,
281
284
  expectString as __expectString,
285
+ expectUnion as __expectUnion,
286
+ parseEpochTimestamp as __parseEpochTimestamp,
282
287
  } from "@aws-sdk/smithy-client";
283
288
  import {
284
289
  Endpoint as __Endpoint,
@@ -2437,7 +2442,7 @@ export const deserializeAws_restJson1ApplySchemaCommand = async (
2437
2442
  AppliedSchemaArn: undefined,
2438
2443
  DirectoryArn: undefined,
2439
2444
  };
2440
- const data: any = await parseBody(output.body, context);
2445
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2441
2446
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
2442
2447
  contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
2443
2448
  }
@@ -2559,7 +2564,7 @@ export const deserializeAws_restJson1AttachObjectCommand = async (
2559
2564
  $metadata: deserializeMetadata(output),
2560
2565
  AttachedObjectIdentifier: undefined,
2561
2566
  };
2562
- const data: any = await parseBody(output.body, context);
2567
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2563
2568
  if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
2564
2569
  contents.AttachedObjectIdentifier = __expectString(data.AttachedObjectIdentifier);
2565
2570
  }
@@ -2809,7 +2814,7 @@ export const deserializeAws_restJson1AttachToIndexCommand = async (
2809
2814
  $metadata: deserializeMetadata(output),
2810
2815
  AttachedObjectIdentifier: undefined,
2811
2816
  };
2812
- const data: any = await parseBody(output.body, context);
2817
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2813
2818
  if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
2814
2819
  contents.AttachedObjectIdentifier = __expectString(data.AttachedObjectIdentifier);
2815
2820
  }
@@ -2952,7 +2957,7 @@ export const deserializeAws_restJson1AttachTypedLinkCommand = async (
2952
2957
  $metadata: deserializeMetadata(output),
2953
2958
  TypedLinkSpecifier: undefined,
2954
2959
  };
2955
- const data: any = await parseBody(output.body, context);
2960
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2956
2961
  if (data.TypedLinkSpecifier !== undefined && data.TypedLinkSpecifier !== null) {
2957
2962
  contents.TypedLinkSpecifier = deserializeAws_restJson1TypedLinkSpecifier(data.TypedLinkSpecifier, context);
2958
2963
  }
@@ -3079,7 +3084,7 @@ export const deserializeAws_restJson1BatchReadCommand = async (
3079
3084
  $metadata: deserializeMetadata(output),
3080
3085
  Responses: undefined,
3081
3086
  };
3082
- const data: any = await parseBody(output.body, context);
3087
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3083
3088
  if (data.Responses !== undefined && data.Responses !== null) {
3084
3089
  contents.Responses = deserializeAws_restJson1BatchReadOperationResponseList(data.Responses, context);
3085
3090
  }
@@ -3182,7 +3187,7 @@ export const deserializeAws_restJson1BatchWriteCommand = async (
3182
3187
  $metadata: deserializeMetadata(output),
3183
3188
  Responses: undefined,
3184
3189
  };
3185
- const data: any = await parseBody(output.body, context);
3190
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3186
3191
  if (data.Responses !== undefined && data.Responses !== null) {
3187
3192
  contents.Responses = deserializeAws_restJson1BatchWriteOperationResponseList(data.Responses, context);
3188
3193
  }
@@ -3296,7 +3301,7 @@ export const deserializeAws_restJson1CreateDirectoryCommand = async (
3296
3301
  Name: undefined,
3297
3302
  ObjectIdentifier: undefined,
3298
3303
  };
3299
- const data: any = await parseBody(output.body, context);
3304
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3300
3305
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
3301
3306
  contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
3302
3307
  }
@@ -3539,7 +3544,7 @@ export const deserializeAws_restJson1CreateIndexCommand = async (
3539
3544
  $metadata: deserializeMetadata(output),
3540
3545
  ObjectIdentifier: undefined,
3541
3546
  };
3542
- const data: any = await parseBody(output.body, context);
3547
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3543
3548
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
3544
3549
  contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
3545
3550
  }
@@ -3674,7 +3679,7 @@ export const deserializeAws_restJson1CreateObjectCommand = async (
3674
3679
  $metadata: deserializeMetadata(output),
3675
3680
  ObjectIdentifier: undefined,
3676
3681
  };
3677
- const data: any = await parseBody(output.body, context);
3682
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3678
3683
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
3679
3684
  contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
3680
3685
  }
@@ -3809,7 +3814,7 @@ export const deserializeAws_restJson1CreateSchemaCommand = async (
3809
3814
  $metadata: deserializeMetadata(output),
3810
3815
  SchemaArn: undefined,
3811
3816
  };
3812
- const data: any = await parseBody(output.body, context);
3817
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3813
3818
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
3814
3819
  contents.SchemaArn = __expectString(data.SchemaArn);
3815
3820
  }
@@ -4035,7 +4040,7 @@ export const deserializeAws_restJson1DeleteDirectoryCommand = async (
4035
4040
  $metadata: deserializeMetadata(output),
4036
4041
  DirectoryArn: undefined,
4037
4042
  };
4038
- const data: any = await parseBody(output.body, context);
4043
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4039
4044
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
4040
4045
  contents.DirectoryArn = __expectString(data.DirectoryArn);
4041
4046
  }
@@ -4384,7 +4389,7 @@ export const deserializeAws_restJson1DeleteSchemaCommand = async (
4384
4389
  $metadata: deserializeMetadata(output),
4385
4390
  SchemaArn: undefined,
4386
4391
  };
4387
- const data: any = await parseBody(output.body, context);
4392
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4388
4393
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
4389
4394
  contents.SchemaArn = __expectString(data.SchemaArn);
4390
4395
  }
@@ -4602,7 +4607,7 @@ export const deserializeAws_restJson1DetachFromIndexCommand = async (
4602
4607
  $metadata: deserializeMetadata(output),
4603
4608
  DetachedObjectIdentifier: undefined,
4604
4609
  };
4605
- const data: any = await parseBody(output.body, context);
4610
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4606
4611
  if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
4607
4612
  contents.DetachedObjectIdentifier = __expectString(data.DetachedObjectIdentifier);
4608
4613
  }
@@ -4729,7 +4734,7 @@ export const deserializeAws_restJson1DetachObjectCommand = async (
4729
4734
  $metadata: deserializeMetadata(output),
4730
4735
  DetachedObjectIdentifier: undefined,
4731
4736
  };
4732
- const data: any = await parseBody(output.body, context);
4737
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4733
4738
  if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
4734
4739
  contents.DetachedObjectIdentifier = __expectString(data.DetachedObjectIdentifier);
4735
4740
  }
@@ -5078,7 +5083,7 @@ export const deserializeAws_restJson1DisableDirectoryCommand = async (
5078
5083
  $metadata: deserializeMetadata(output),
5079
5084
  DirectoryArn: undefined,
5080
5085
  };
5081
- const data: any = await parseBody(output.body, context);
5086
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5082
5087
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
5083
5088
  contents.DirectoryArn = __expectString(data.DirectoryArn);
5084
5089
  }
@@ -5189,7 +5194,7 @@ export const deserializeAws_restJson1EnableDirectoryCommand = async (
5189
5194
  $metadata: deserializeMetadata(output),
5190
5195
  DirectoryArn: undefined,
5191
5196
  };
5192
- const data: any = await parseBody(output.body, context);
5197
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5193
5198
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
5194
5199
  contents.DirectoryArn = __expectString(data.DirectoryArn);
5195
5200
  }
@@ -5300,7 +5305,7 @@ export const deserializeAws_restJson1GetAppliedSchemaVersionCommand = async (
5300
5305
  $metadata: deserializeMetadata(output),
5301
5306
  AppliedSchemaArn: undefined,
5302
5307
  };
5303
- const data: any = await parseBody(output.body, context);
5308
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5304
5309
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
5305
5310
  contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
5306
5311
  }
@@ -5403,7 +5408,7 @@ export const deserializeAws_restJson1GetDirectoryCommand = async (
5403
5408
  $metadata: deserializeMetadata(output),
5404
5409
  Directory: undefined,
5405
5410
  };
5406
- const data: any = await parseBody(output.body, context);
5411
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5407
5412
  if (data.Directory !== undefined && data.Directory !== null) {
5408
5413
  contents.Directory = deserializeAws_restJson1Directory(data.Directory, context);
5409
5414
  }
@@ -5498,7 +5503,7 @@ export const deserializeAws_restJson1GetFacetCommand = async (
5498
5503
  $metadata: deserializeMetadata(output),
5499
5504
  Facet: undefined,
5500
5505
  };
5501
- const data: any = await parseBody(output.body, context);
5506
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5502
5507
  if (data.Facet !== undefined && data.Facet !== null) {
5503
5508
  contents.Facet = deserializeAws_restJson1Facet(data.Facet, context);
5504
5509
  }
@@ -5609,7 +5614,7 @@ export const deserializeAws_restJson1GetLinkAttributesCommand = async (
5609
5614
  $metadata: deserializeMetadata(output),
5610
5615
  Attributes: undefined,
5611
5616
  };
5612
- const data: any = await parseBody(output.body, context);
5617
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5613
5618
  if (data.Attributes !== undefined && data.Attributes !== null) {
5614
5619
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
5615
5620
  }
@@ -5728,7 +5733,7 @@ export const deserializeAws_restJson1GetObjectAttributesCommand = async (
5728
5733
  $metadata: deserializeMetadata(output),
5729
5734
  Attributes: undefined,
5730
5735
  };
5731
- const data: any = await parseBody(output.body, context);
5736
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5732
5737
  if (data.Attributes !== undefined && data.Attributes !== null) {
5733
5738
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
5734
5739
  }
@@ -5848,7 +5853,7 @@ export const deserializeAws_restJson1GetObjectInformationCommand = async (
5848
5853
  ObjectIdentifier: undefined,
5849
5854
  SchemaFacets: undefined,
5850
5855
  };
5851
- const data: any = await parseBody(output.body, context);
5856
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5852
5857
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
5853
5858
  contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
5854
5859
  }
@@ -5963,7 +5968,7 @@ export const deserializeAws_restJson1GetSchemaAsJsonCommand = async (
5963
5968
  Document: undefined,
5964
5969
  Name: undefined,
5965
5970
  };
5966
- const data: any = await parseBody(output.body, context);
5971
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5967
5972
  if (data.Document !== undefined && data.Document !== null) {
5968
5973
  contents.Document = __expectString(data.Document);
5969
5974
  }
@@ -6069,7 +6074,7 @@ export const deserializeAws_restJson1GetTypedLinkFacetInformationCommand = async
6069
6074
  $metadata: deserializeMetadata(output),
6070
6075
  IdentityAttributeOrder: undefined,
6071
6076
  };
6072
- const data: any = await parseBody(output.body, context);
6077
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6073
6078
  if (data.IdentityAttributeOrder !== undefined && data.IdentityAttributeOrder !== null) {
6074
6079
  contents.IdentityAttributeOrder = deserializeAws_restJson1AttributeNameList(data.IdentityAttributeOrder, context);
6075
6080
  }
@@ -6189,7 +6194,7 @@ export const deserializeAws_restJson1ListAppliedSchemaArnsCommand = async (
6189
6194
  NextToken: undefined,
6190
6195
  SchemaArns: undefined,
6191
6196
  };
6192
- const data: any = await parseBody(output.body, context);
6197
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6193
6198
  if (data.NextToken !== undefined && data.NextToken !== null) {
6194
6199
  contents.NextToken = __expectString(data.NextToken);
6195
6200
  }
@@ -6304,7 +6309,7 @@ export const deserializeAws_restJson1ListAttachedIndicesCommand = async (
6304
6309
  IndexAttachments: undefined,
6305
6310
  NextToken: undefined,
6306
6311
  };
6307
- const data: any = await parseBody(output.body, context);
6312
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6308
6313
  if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
6309
6314
  contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
6310
6315
  }
@@ -6419,7 +6424,7 @@ export const deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = async (
6419
6424
  NextToken: undefined,
6420
6425
  SchemaArns: undefined,
6421
6426
  };
6422
- const data: any = await parseBody(output.body, context);
6427
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6423
6428
  if (data.NextToken !== undefined && data.NextToken !== null) {
6424
6429
  contents.NextToken = __expectString(data.NextToken);
6425
6430
  }
@@ -6534,7 +6539,7 @@ export const deserializeAws_restJson1ListDirectoriesCommand = async (
6534
6539
  Directories: undefined,
6535
6540
  NextToken: undefined,
6536
6541
  };
6537
- const data: any = await parseBody(output.body, context);
6542
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6538
6543
  if (data.Directories !== undefined && data.Directories !== null) {
6539
6544
  contents.Directories = deserializeAws_restJson1DirectoryList(data.Directories, context);
6540
6545
  }
@@ -6641,7 +6646,7 @@ export const deserializeAws_restJson1ListFacetAttributesCommand = async (
6641
6646
  Attributes: undefined,
6642
6647
  NextToken: undefined,
6643
6648
  };
6644
- const data: any = await parseBody(output.body, context);
6649
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6645
6650
  if (data.Attributes !== undefined && data.Attributes !== null) {
6646
6651
  contents.Attributes = deserializeAws_restJson1FacetAttributeList(data.Attributes, context);
6647
6652
  }
@@ -6764,7 +6769,7 @@ export const deserializeAws_restJson1ListFacetNamesCommand = async (
6764
6769
  FacetNames: undefined,
6765
6770
  NextToken: undefined,
6766
6771
  };
6767
- const data: any = await parseBody(output.body, context);
6772
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6768
6773
  if (data.FacetNames !== undefined && data.FacetNames !== null) {
6769
6774
  contents.FacetNames = deserializeAws_restJson1FacetNameList(data.FacetNames, context);
6770
6775
  }
@@ -6879,7 +6884,7 @@ export const deserializeAws_restJson1ListIncomingTypedLinksCommand = async (
6879
6884
  LinkSpecifiers: undefined,
6880
6885
  NextToken: undefined,
6881
6886
  };
6882
- const data: any = await parseBody(output.body, context);
6887
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6883
6888
  if (data.LinkSpecifiers !== undefined && data.LinkSpecifiers !== null) {
6884
6889
  contents.LinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.LinkSpecifiers, context);
6885
6890
  }
@@ -7010,7 +7015,7 @@ export const deserializeAws_restJson1ListIndexCommand = async (
7010
7015
  IndexAttachments: undefined,
7011
7016
  NextToken: undefined,
7012
7017
  };
7013
- const data: any = await parseBody(output.body, context);
7018
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7014
7019
  if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
7015
7020
  contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
7016
7021
  }
@@ -7149,7 +7154,7 @@ export const deserializeAws_restJson1ListManagedSchemaArnsCommand = async (
7149
7154
  NextToken: undefined,
7150
7155
  SchemaArns: undefined,
7151
7156
  };
7152
- const data: any = await parseBody(output.body, context);
7157
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7153
7158
  if (data.NextToken !== undefined && data.NextToken !== null) {
7154
7159
  contents.NextToken = __expectString(data.NextToken);
7155
7160
  }
@@ -7248,7 +7253,7 @@ export const deserializeAws_restJson1ListObjectAttributesCommand = async (
7248
7253
  Attributes: undefined,
7249
7254
  NextToken: undefined,
7250
7255
  };
7251
- const data: any = await parseBody(output.body, context);
7256
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7252
7257
  if (data.Attributes !== undefined && data.Attributes !== null) {
7253
7258
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
7254
7259
  }
@@ -7379,7 +7384,7 @@ export const deserializeAws_restJson1ListObjectChildrenCommand = async (
7379
7384
  Children: undefined,
7380
7385
  NextToken: undefined,
7381
7386
  };
7382
- const data: any = await parseBody(output.body, context);
7387
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7383
7388
  if (data.Children !== undefined && data.Children !== null) {
7384
7389
  contents.Children = deserializeAws_restJson1LinkNameToObjectIdentifierMap(data.Children, context);
7385
7390
  }
@@ -7510,7 +7515,7 @@ export const deserializeAws_restJson1ListObjectParentPathsCommand = async (
7510
7515
  NextToken: undefined,
7511
7516
  PathToObjectIdentifiersList: undefined,
7512
7517
  };
7513
- const data: any = await parseBody(output.body, context);
7518
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7514
7519
  if (data.NextToken !== undefined && data.NextToken !== null) {
7515
7520
  contents.NextToken = __expectString(data.NextToken);
7516
7521
  }
@@ -7637,7 +7642,7 @@ export const deserializeAws_restJson1ListObjectParentsCommand = async (
7637
7642
  ParentLinks: undefined,
7638
7643
  Parents: undefined,
7639
7644
  };
7640
- const data: any = await parseBody(output.body, context);
7645
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7641
7646
  if (data.NextToken !== undefined && data.NextToken !== null) {
7642
7647
  contents.NextToken = __expectString(data.NextToken);
7643
7648
  }
@@ -7771,7 +7776,7 @@ export const deserializeAws_restJson1ListObjectPoliciesCommand = async (
7771
7776
  AttachedPolicyIds: undefined,
7772
7777
  NextToken: undefined,
7773
7778
  };
7774
- const data: any = await parseBody(output.body, context);
7779
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7775
7780
  if (data.AttachedPolicyIds !== undefined && data.AttachedPolicyIds !== null) {
7776
7781
  contents.AttachedPolicyIds = deserializeAws_restJson1ObjectIdentifierList(data.AttachedPolicyIds, context);
7777
7782
  }
@@ -7894,7 +7899,7 @@ export const deserializeAws_restJson1ListOutgoingTypedLinksCommand = async (
7894
7899
  NextToken: undefined,
7895
7900
  TypedLinkSpecifiers: undefined,
7896
7901
  };
7897
- const data: any = await parseBody(output.body, context);
7902
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7898
7903
  if (data.NextToken !== undefined && data.NextToken !== null) {
7899
7904
  contents.NextToken = __expectString(data.NextToken);
7900
7905
  }
@@ -8025,7 +8030,7 @@ export const deserializeAws_restJson1ListPolicyAttachmentsCommand = async (
8025
8030
  NextToken: undefined,
8026
8031
  ObjectIdentifiers: undefined,
8027
8032
  };
8028
- const data: any = await parseBody(output.body, context);
8033
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8029
8034
  if (data.NextToken !== undefined && data.NextToken !== null) {
8030
8035
  contents.NextToken = __expectString(data.NextToken);
8031
8036
  }
@@ -8156,7 +8161,7 @@ export const deserializeAws_restJson1ListPublishedSchemaArnsCommand = async (
8156
8161
  NextToken: undefined,
8157
8162
  SchemaArns: undefined,
8158
8163
  };
8159
- const data: any = await parseBody(output.body, context);
8164
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8160
8165
  if (data.NextToken !== undefined && data.NextToken !== null) {
8161
8166
  contents.NextToken = __expectString(data.NextToken);
8162
8167
  }
@@ -8271,7 +8276,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
8271
8276
  NextToken: undefined,
8272
8277
  Tags: undefined,
8273
8278
  };
8274
- const data: any = await parseBody(output.body, context);
8279
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8275
8280
  if (data.NextToken !== undefined && data.NextToken !== null) {
8276
8281
  contents.NextToken = __expectString(data.NextToken);
8277
8282
  }
@@ -8386,7 +8391,7 @@ export const deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = async
8386
8391
  Attributes: undefined,
8387
8392
  NextToken: undefined,
8388
8393
  };
8389
- const data: any = await parseBody(output.body, context);
8394
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8390
8395
  if (data.Attributes !== undefined && data.Attributes !== null) {
8391
8396
  contents.Attributes = deserializeAws_restJson1TypedLinkAttributeDefinitionList(data.Attributes, context);
8392
8397
  }
@@ -8509,7 +8514,7 @@ export const deserializeAws_restJson1ListTypedLinkFacetNamesCommand = async (
8509
8514
  FacetNames: undefined,
8510
8515
  NextToken: undefined,
8511
8516
  };
8512
- const data: any = await parseBody(output.body, context);
8517
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8513
8518
  if (data.FacetNames !== undefined && data.FacetNames !== null) {
8514
8519
  contents.FacetNames = deserializeAws_restJson1TypedLinkNameList(data.FacetNames, context);
8515
8520
  }
@@ -8624,7 +8629,7 @@ export const deserializeAws_restJson1LookupPolicyCommand = async (
8624
8629
  NextToken: undefined,
8625
8630
  PolicyToPathList: undefined,
8626
8631
  };
8627
- const data: any = await parseBody(output.body, context);
8632
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8628
8633
  if (data.NextToken !== undefined && data.NextToken !== null) {
8629
8634
  contents.NextToken = __expectString(data.NextToken);
8630
8635
  }
@@ -8746,7 +8751,7 @@ export const deserializeAws_restJson1PublishSchemaCommand = async (
8746
8751
  $metadata: deserializeMetadata(output),
8747
8752
  PublishedSchemaArn: undefined,
8748
8753
  };
8749
- const data: any = await parseBody(output.body, context);
8754
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8750
8755
  if (data.PublishedSchemaArn !== undefined && data.PublishedSchemaArn !== null) {
8751
8756
  contents.PublishedSchemaArn = __expectString(data.PublishedSchemaArn);
8752
8757
  }
@@ -8857,7 +8862,7 @@ export const deserializeAws_restJson1PutSchemaFromJsonCommand = async (
8857
8862
  $metadata: deserializeMetadata(output),
8858
8863
  Arn: undefined,
8859
8864
  };
8860
- const data: any = await parseBody(output.body, context);
8865
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
8861
8866
  if (data.Arn !== undefined && data.Arn !== null) {
8862
8867
  contents.Arn = __expectString(data.Arn);
8863
8868
  }
@@ -9543,7 +9548,7 @@ export const deserializeAws_restJson1UpdateObjectAttributesCommand = async (
9543
9548
  $metadata: deserializeMetadata(output),
9544
9549
  ObjectIdentifier: undefined,
9545
9550
  };
9546
- const data: any = await parseBody(output.body, context);
9551
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
9547
9552
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
9548
9553
  contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
9549
9554
  }
@@ -9670,7 +9675,7 @@ export const deserializeAws_restJson1UpdateSchemaCommand = async (
9670
9675
  $metadata: deserializeMetadata(output),
9671
9676
  SchemaArn: undefined,
9672
9677
  };
9673
- const data: any = await parseBody(output.body, context);
9678
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
9674
9679
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
9675
9680
  contents.SchemaArn = __expectString(data.SchemaArn);
9676
9681
  }
@@ -9905,7 +9910,7 @@ export const deserializeAws_restJson1UpgradeAppliedSchemaCommand = async (
9905
9910
  DirectoryArn: undefined,
9906
9911
  UpgradedSchemaArn: undefined,
9907
9912
  };
9908
- const data: any = await parseBody(output.body, context);
9913
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
9909
9914
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
9910
9915
  contents.DirectoryArn = __expectString(data.DirectoryArn);
9911
9916
  }
@@ -10027,7 +10032,7 @@ export const deserializeAws_restJson1UpgradePublishedSchemaCommand = async (
10027
10032
  $metadata: deserializeMetadata(output),
10028
10033
  UpgradedSchemaArn: undefined,
10029
10034
  };
10030
- const data: any = await parseBody(output.body, context);
10035
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
10031
10036
  if (data.UpgradedSchemaArn !== undefined && data.UpgradedSchemaArn !== null) {
10032
10037
  contents.UpgradedSchemaArn = __expectString(data.UpgradedSchemaArn);
10033
10038
  }
@@ -10166,7 +10171,7 @@ const deserializeAws_restJson1BatchWriteExceptionResponse = async (
10166
10171
  };
10167
10172
  const data: any = parsedOutput.body;
10168
10173
  if (data.Index !== undefined && data.Index !== null) {
10169
- contents.Index = __expectInt(data.Index);
10174
+ contents.Index = __expectInt32(data.Index);
10170
10175
  }
10171
10176
  if (data.Message !== undefined && data.Message !== null) {
10172
10177
  contents.Message = __expectString(data.Message);
@@ -11837,7 +11842,7 @@ const deserializeAws_restJson1AttributeKeyAndValue = (output: any, context: __Se
11837
11842
  : undefined,
11838
11843
  Value:
11839
11844
  output.Value !== undefined && output.Value !== null
11840
- ? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
11845
+ ? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
11841
11846
  : undefined,
11842
11847
  } as any;
11843
11848
  };
@@ -11861,7 +11866,7 @@ const deserializeAws_restJson1AttributeNameAndValue = (output: any, context: __S
11861
11866
  AttributeName: __expectString(output.AttributeName),
11862
11867
  Value:
11863
11868
  output.Value !== undefined && output.Value !== null
11864
- ? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
11869
+ ? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
11865
11870
  : undefined,
11866
11871
  } as any;
11867
11872
  };
@@ -12382,7 +12387,7 @@ const deserializeAws_restJson1Directory = (output: any, context: __SerdeContext)
12382
12387
  return {
12383
12388
  CreationDateTime:
12384
12389
  output.CreationDateTime !== undefined && output.CreationDateTime !== null
12385
- ? new Date(Math.round(output.CreationDateTime * 1000))
12390
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDateTime)))
12386
12391
  : undefined,
12387
12392
  DirectoryArn: __expectString(output.DirectoryArn),
12388
12393
  Name: __expectString(output.Name),
@@ -12431,7 +12436,7 @@ const deserializeAws_restJson1FacetAttributeDefinition = (
12431
12436
  return {
12432
12437
  DefaultValue:
12433
12438
  output.DefaultValue !== undefined && output.DefaultValue !== null
12434
- ? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
12439
+ ? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
12435
12440
  : undefined,
12436
12441
  IsImmutable: __expectBoolean(output.IsImmutable),
12437
12442
  Rules:
@@ -12714,7 +12719,7 @@ const deserializeAws_restJson1TypedAttributeValue = (output: any, context: __Ser
12714
12719
  }
12715
12720
  if (output.DatetimeValue !== undefined && output.DatetimeValue !== null) {
12716
12721
  return {
12717
- DatetimeValue: new Date(Math.round(output.DatetimeValue * 1000)),
12722
+ DatetimeValue: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DatetimeValue))),
12718
12723
  };
12719
12724
  }
12720
12725
  if (__expectString(output.NumberValue) !== undefined) {
@@ -12733,7 +12738,7 @@ const deserializeAws_restJson1TypedLinkAttributeDefinition = (
12733
12738
  return {
12734
12739
  DefaultValue:
12735
12740
  output.DefaultValue !== undefined && output.DefaultValue !== null
12736
- ? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
12741
+ ? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
12737
12742
  : undefined,
12738
12743
  IsImmutable: __expectBoolean(output.IsImmutable),
12739
12744
  Name: __expectString(output.Name),