@aws-sdk/client-kendra 3.29.0 → 3.33.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/KendraClient.js +13 -13
  3. package/dist/cjs/KendraClient.js.map +1 -1
  4. package/dist/cjs/commands/BatchDeleteDocumentCommand.js +3 -3
  5. package/dist/cjs/commands/BatchDeleteDocumentCommand.js.map +1 -1
  6. package/dist/cjs/commands/BatchGetDocumentStatusCommand.js +3 -3
  7. package/dist/cjs/commands/BatchGetDocumentStatusCommand.js.map +1 -1
  8. package/dist/cjs/commands/BatchPutDocumentCommand.js +3 -3
  9. package/dist/cjs/commands/BatchPutDocumentCommand.js.map +1 -1
  10. package/dist/cjs/commands/ClearQuerySuggestionsCommand.js +3 -3
  11. package/dist/cjs/commands/ClearQuerySuggestionsCommand.js.map +1 -1
  12. package/dist/cjs/commands/CreateDataSourceCommand.js +3 -3
  13. package/dist/cjs/commands/CreateDataSourceCommand.js.map +1 -1
  14. package/dist/cjs/commands/CreateFaqCommand.js +3 -3
  15. package/dist/cjs/commands/CreateFaqCommand.js.map +1 -1
  16. package/dist/cjs/commands/CreateIndexCommand.js +3 -3
  17. package/dist/cjs/commands/CreateIndexCommand.js.map +1 -1
  18. package/dist/cjs/commands/CreateQuerySuggestionsBlockListCommand.js +3 -3
  19. package/dist/cjs/commands/CreateQuerySuggestionsBlockListCommand.js.map +1 -1
  20. package/dist/cjs/commands/CreateThesaurusCommand.js +3 -3
  21. package/dist/cjs/commands/CreateThesaurusCommand.js.map +1 -1
  22. package/dist/cjs/commands/DeleteDataSourceCommand.js +3 -3
  23. package/dist/cjs/commands/DeleteDataSourceCommand.js.map +1 -1
  24. package/dist/cjs/commands/DeleteFaqCommand.js +3 -3
  25. package/dist/cjs/commands/DeleteFaqCommand.js.map +1 -1
  26. package/dist/cjs/commands/DeleteIndexCommand.js +3 -3
  27. package/dist/cjs/commands/DeleteIndexCommand.js.map +1 -1
  28. package/dist/cjs/commands/DeletePrincipalMappingCommand.js +3 -3
  29. package/dist/cjs/commands/DeletePrincipalMappingCommand.js.map +1 -1
  30. package/dist/cjs/commands/DeleteQuerySuggestionsBlockListCommand.js +3 -3
  31. package/dist/cjs/commands/DeleteQuerySuggestionsBlockListCommand.js.map +1 -1
  32. package/dist/cjs/commands/DeleteThesaurusCommand.js +3 -3
  33. package/dist/cjs/commands/DeleteThesaurusCommand.js.map +1 -1
  34. package/dist/cjs/commands/DescribeDataSourceCommand.js +3 -3
  35. package/dist/cjs/commands/DescribeDataSourceCommand.js.map +1 -1
  36. package/dist/cjs/commands/DescribeFaqCommand.js +3 -3
  37. package/dist/cjs/commands/DescribeFaqCommand.js.map +1 -1
  38. package/dist/cjs/commands/DescribeIndexCommand.js +3 -3
  39. package/dist/cjs/commands/DescribeIndexCommand.js.map +1 -1
  40. package/dist/cjs/commands/DescribePrincipalMappingCommand.js +3 -3
  41. package/dist/cjs/commands/DescribePrincipalMappingCommand.js.map +1 -1
  42. package/dist/cjs/commands/DescribeQuerySuggestionsBlockListCommand.js +3 -3
  43. package/dist/cjs/commands/DescribeQuerySuggestionsBlockListCommand.js.map +1 -1
  44. package/dist/cjs/commands/DescribeQuerySuggestionsConfigCommand.js +3 -3
  45. package/dist/cjs/commands/DescribeQuerySuggestionsConfigCommand.js.map +1 -1
  46. package/dist/cjs/commands/DescribeThesaurusCommand.js +3 -3
  47. package/dist/cjs/commands/DescribeThesaurusCommand.js.map +1 -1
  48. package/dist/cjs/commands/GetQuerySuggestionsCommand.js +3 -3
  49. package/dist/cjs/commands/GetQuerySuggestionsCommand.js.map +1 -1
  50. package/dist/cjs/commands/ListDataSourceSyncJobsCommand.js +3 -3
  51. package/dist/cjs/commands/ListDataSourceSyncJobsCommand.js.map +1 -1
  52. package/dist/cjs/commands/ListDataSourcesCommand.js +3 -3
  53. package/dist/cjs/commands/ListDataSourcesCommand.js.map +1 -1
  54. package/dist/cjs/commands/ListFaqsCommand.js +3 -3
  55. package/dist/cjs/commands/ListFaqsCommand.js.map +1 -1
  56. package/dist/cjs/commands/ListGroupsOlderThanOrderingIdCommand.js +3 -3
  57. package/dist/cjs/commands/ListGroupsOlderThanOrderingIdCommand.js.map +1 -1
  58. package/dist/cjs/commands/ListIndicesCommand.js +3 -3
  59. package/dist/cjs/commands/ListIndicesCommand.js.map +1 -1
  60. package/dist/cjs/commands/ListQuerySuggestionsBlockListsCommand.js +3 -3
  61. package/dist/cjs/commands/ListQuerySuggestionsBlockListsCommand.js.map +1 -1
  62. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  63. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  64. package/dist/cjs/commands/ListThesauriCommand.js +3 -3
  65. package/dist/cjs/commands/ListThesauriCommand.js.map +1 -1
  66. package/dist/cjs/commands/PutPrincipalMappingCommand.js +3 -3
  67. package/dist/cjs/commands/PutPrincipalMappingCommand.js.map +1 -1
  68. package/dist/cjs/commands/QueryCommand.js +3 -3
  69. package/dist/cjs/commands/QueryCommand.js.map +1 -1
  70. package/dist/cjs/commands/StartDataSourceSyncJobCommand.js +3 -3
  71. package/dist/cjs/commands/StartDataSourceSyncJobCommand.js.map +1 -1
  72. package/dist/cjs/commands/StopDataSourceSyncJobCommand.js +3 -3
  73. package/dist/cjs/commands/StopDataSourceSyncJobCommand.js.map +1 -1
  74. package/dist/cjs/commands/SubmitFeedbackCommand.js +3 -3
  75. package/dist/cjs/commands/SubmitFeedbackCommand.js.map +1 -1
  76. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  77. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  78. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  79. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  80. package/dist/cjs/commands/UpdateDataSourceCommand.js +3 -3
  81. package/dist/cjs/commands/UpdateDataSourceCommand.js.map +1 -1
  82. package/dist/cjs/commands/UpdateIndexCommand.js +3 -3
  83. package/dist/cjs/commands/UpdateIndexCommand.js.map +1 -1
  84. package/dist/cjs/commands/UpdateQuerySuggestionsBlockListCommand.js +3 -3
  85. package/dist/cjs/commands/UpdateQuerySuggestionsBlockListCommand.js.map +1 -1
  86. package/dist/cjs/commands/UpdateQuerySuggestionsConfigCommand.js +3 -3
  87. package/dist/cjs/commands/UpdateQuerySuggestionsConfigCommand.js.map +1 -1
  88. package/dist/cjs/commands/UpdateThesaurusCommand.js +3 -3
  89. package/dist/cjs/commands/UpdateThesaurusCommand.js.map +1 -1
  90. package/dist/cjs/endpoints.js +1 -1
  91. package/dist/cjs/endpoints.js.map +1 -1
  92. package/dist/cjs/index.js +50 -50
  93. package/dist/cjs/index.js.map +1 -1
  94. package/dist/cjs/models/index.js +1 -1
  95. package/dist/cjs/models/index.js.map +1 -1
  96. package/dist/cjs/package.json +31 -31
  97. package/dist/cjs/protocols/Aws_json1_1.js +322 -320
  98. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  99. package/dist/cjs/runtimeConfig.browser.js +4 -4
  100. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  101. package/dist/cjs/runtimeConfig.js +8 -8
  102. package/dist/cjs/runtimeConfig.js.map +1 -1
  103. package/dist/cjs/runtimeConfig.native.js +1 -1
  104. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  105. package/dist/es/package.json +31 -31
  106. package/dist/es/pagination/ListDataSourceSyncJobsPaginator.js +4 -4
  107. package/dist/es/pagination/ListDataSourceSyncJobsPaginator.js.map +1 -1
  108. package/dist/es/pagination/ListDataSourcesPaginator.js +4 -4
  109. package/dist/es/pagination/ListDataSourcesPaginator.js.map +1 -1
  110. package/dist/es/pagination/ListIndicesPaginator.js +4 -4
  111. package/dist/es/pagination/ListIndicesPaginator.js.map +1 -1
  112. package/dist/es/protocols/Aws_json1_1.js +32 -30
  113. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  114. package/package.json +31 -31
  115. package/protocols/Aws_json1_1.ts +35 -29
  116. package/tsconfig.json +1 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kendra",
3
3
  "description": "AWS SDK for JavaScript Kendra Client for Node.js, Browser and React Native",
4
- "version": "3.29.0",
4
+ "version": "3.33.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,39 +27,39 @@
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.29.0",
31
- "@aws-sdk/config-resolver": "3.29.0",
32
- "@aws-sdk/credential-provider-node": "3.29.0",
33
- "@aws-sdk/fetch-http-handler": "3.29.0",
34
- "@aws-sdk/hash-node": "3.29.0",
35
- "@aws-sdk/invalid-dependency": "3.29.0",
36
- "@aws-sdk/middleware-content-length": "3.29.0",
37
- "@aws-sdk/middleware-host-header": "3.29.0",
38
- "@aws-sdk/middleware-logger": "3.29.0",
39
- "@aws-sdk/middleware-retry": "3.29.0",
40
- "@aws-sdk/middleware-serde": "3.29.0",
41
- "@aws-sdk/middleware-signing": "3.29.0",
42
- "@aws-sdk/middleware-stack": "3.29.0",
43
- "@aws-sdk/middleware-user-agent": "3.29.0",
44
- "@aws-sdk/node-config-provider": "3.29.0",
45
- "@aws-sdk/node-http-handler": "3.29.0",
46
- "@aws-sdk/protocol-http": "3.29.0",
47
- "@aws-sdk/smithy-client": "3.29.0",
48
- "@aws-sdk/types": "3.29.0",
49
- "@aws-sdk/url-parser": "3.29.0",
50
- "@aws-sdk/util-base64-browser": "3.29.0",
51
- "@aws-sdk/util-base64-node": "3.29.0",
52
- "@aws-sdk/util-body-length-browser": "3.29.0",
53
- "@aws-sdk/util-body-length-node": "3.29.0",
54
- "@aws-sdk/util-user-agent-browser": "3.29.0",
55
- "@aws-sdk/util-user-agent-node": "3.29.0",
56
- "@aws-sdk/util-utf8-browser": "3.29.0",
57
- "@aws-sdk/util-utf8-node": "3.29.0",
30
+ "@aws-sdk/client-sts": "3.33.0",
31
+ "@aws-sdk/config-resolver": "3.33.0",
32
+ "@aws-sdk/credential-provider-node": "3.33.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.33.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.33.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
  "uuid": "^8.3.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.29.0",
62
+ "@aws-sdk/client-documentation-generator": "3.32.0",
63
63
  "@types/node": "^12.7.5",
64
64
  "@types/uuid": "^8.3.0",
65
65
  "downlevel-dts": "0.7.0",
@@ -67,7 +67,7 @@
67
67
  "rimraf": "^3.0.0",
68
68
  "ts-jest": "^26.4.1",
69
69
  "typedoc": "^0.19.2",
70
- "typescript": "~4.4.2"
70
+ "typescript": "~4.3.5"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=10.0.0"
@@ -287,8 +287,12 @@ import {
287
287
  expectBoolean as __expectBoolean,
288
288
  expectInt32 as __expectInt32,
289
289
  expectLong as __expectLong,
290
+ expectNonNull as __expectNonNull,
291
+ expectNumber as __expectNumber,
290
292
  expectString as __expectString,
293
+ expectUnion as __expectUnion,
291
294
  limitedParseFloat32 as __limitedParseFloat32,
295
+ parseEpochTimestamp as __parseEpochTimestamp,
292
296
  serializeFloat as __serializeFloat,
293
297
  } from "@aws-sdk/smithy-client";
294
298
  import {
@@ -7819,7 +7823,7 @@ const deserializeAws_json1_1DataSourceSummary = (output: any, context: __SerdeCo
7819
7823
  return {
7820
7824
  CreatedAt:
7821
7825
  output.CreatedAt !== undefined && output.CreatedAt !== null
7822
- ? new Date(Math.round(output.CreatedAt * 1000))
7826
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
7823
7827
  : undefined,
7824
7828
  Id: __expectString(output.Id),
7825
7829
  Name: __expectString(output.Name),
@@ -7827,7 +7831,7 @@ const deserializeAws_json1_1DataSourceSummary = (output: any, context: __SerdeCo
7827
7831
  Type: __expectString(output.Type),
7828
7832
  UpdatedAt:
7829
7833
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
7830
- ? new Date(Math.round(output.UpdatedAt * 1000))
7834
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
7831
7835
  : undefined,
7832
7836
  } as any;
7833
7837
  };
@@ -7847,7 +7851,9 @@ const deserializeAws_json1_1DataSourceSyncJob = (output: any, context: __SerdeCo
7847
7851
  return {
7848
7852
  DataSourceErrorCode: __expectString(output.DataSourceErrorCode),
7849
7853
  EndTime:
7850
- output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined,
7854
+ output.EndTime !== undefined && output.EndTime !== null
7855
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
7856
+ : undefined,
7851
7857
  ErrorCode: __expectString(output.ErrorCode),
7852
7858
  ErrorMessage: __expectString(output.ErrorMessage),
7853
7859
  ExecutionId: __expectString(output.ExecutionId),
@@ -7857,7 +7863,7 @@ const deserializeAws_json1_1DataSourceSyncJob = (output: any, context: __SerdeCo
7857
7863
  : undefined,
7858
7864
  StartTime:
7859
7865
  output.StartTime !== undefined && output.StartTime !== null
7860
- ? new Date(Math.round(output.StartTime * 1000))
7866
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
7861
7867
  : undefined,
7862
7868
  Status: __expectString(output.Status),
7863
7869
  } as any;
@@ -7942,7 +7948,7 @@ const deserializeAws_json1_1DescribeDataSourceResponse = (
7942
7948
  : undefined,
7943
7949
  CreatedAt:
7944
7950
  output.CreatedAt !== undefined && output.CreatedAt !== null
7945
- ? new Date(Math.round(output.CreatedAt * 1000))
7951
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
7946
7952
  : undefined,
7947
7953
  Description: __expectString(output.Description),
7948
7954
  ErrorMessage: __expectString(output.ErrorMessage),
@@ -7955,7 +7961,7 @@ const deserializeAws_json1_1DescribeDataSourceResponse = (
7955
7961
  Type: __expectString(output.Type),
7956
7962
  UpdatedAt:
7957
7963
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
7958
- ? new Date(Math.round(output.UpdatedAt * 1000))
7964
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
7959
7965
  : undefined,
7960
7966
  } as any;
7961
7967
  };
@@ -7964,7 +7970,7 @@ const deserializeAws_json1_1DescribeFaqResponse = (output: any, context: __Serde
7964
7970
  return {
7965
7971
  CreatedAt:
7966
7972
  output.CreatedAt !== undefined && output.CreatedAt !== null
7967
- ? new Date(Math.round(output.CreatedAt * 1000))
7973
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
7968
7974
  : undefined,
7969
7975
  Description: __expectString(output.Description),
7970
7976
  ErrorMessage: __expectString(output.ErrorMessage),
@@ -7980,7 +7986,7 @@ const deserializeAws_json1_1DescribeFaqResponse = (output: any, context: __Serde
7980
7986
  Status: __expectString(output.Status),
7981
7987
  UpdatedAt:
7982
7988
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
7983
- ? new Date(Math.round(output.UpdatedAt * 1000))
7989
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
7984
7990
  : undefined,
7985
7991
  } as any;
7986
7992
  };
@@ -7993,7 +7999,7 @@ const deserializeAws_json1_1DescribeIndexResponse = (output: any, context: __Ser
7993
7999
  : undefined,
7994
8000
  CreatedAt:
7995
8001
  output.CreatedAt !== undefined && output.CreatedAt !== null
7996
- ? new Date(Math.round(output.CreatedAt * 1000))
8002
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
7997
8003
  : undefined,
7998
8004
  Description: __expectString(output.Description),
7999
8005
  DocumentMetadataConfigurations:
@@ -8016,7 +8022,7 @@ const deserializeAws_json1_1DescribeIndexResponse = (output: any, context: __Ser
8016
8022
  Status: __expectString(output.Status),
8017
8023
  UpdatedAt:
8018
8024
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
8019
- ? new Date(Math.round(output.UpdatedAt * 1000))
8025
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
8020
8026
  : undefined,
8021
8027
  UserContextPolicy: __expectString(output.UserContextPolicy),
8022
8028
  UserTokenConfigurations:
@@ -8048,7 +8054,7 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse = (
8048
8054
  return {
8049
8055
  CreatedAt:
8050
8056
  output.CreatedAt !== undefined && output.CreatedAt !== null
8051
- ? new Date(Math.round(output.CreatedAt * 1000))
8057
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
8052
8058
  : undefined,
8053
8059
  Description: __expectString(output.Description),
8054
8060
  ErrorMessage: __expectString(output.ErrorMessage),
@@ -8065,7 +8071,7 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse = (
8065
8071
  Status: __expectString(output.Status),
8066
8072
  UpdatedAt:
8067
8073
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
8068
- ? new Date(Math.round(output.UpdatedAt * 1000))
8074
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
8069
8075
  : undefined,
8070
8076
  } as any;
8071
8077
  };
@@ -8078,11 +8084,11 @@ const deserializeAws_json1_1DescribeQuerySuggestionsConfigResponse = (
8078
8084
  IncludeQueriesWithoutUserInformation: __expectBoolean(output.IncludeQueriesWithoutUserInformation),
8079
8085
  LastClearTime:
8080
8086
  output.LastClearTime !== undefined && output.LastClearTime !== null
8081
- ? new Date(Math.round(output.LastClearTime * 1000))
8087
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastClearTime)))
8082
8088
  : undefined,
8083
8089
  LastSuggestionsBuildTime:
8084
8090
  output.LastSuggestionsBuildTime !== undefined && output.LastSuggestionsBuildTime !== null
8085
- ? new Date(Math.round(output.LastSuggestionsBuildTime * 1000))
8091
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSuggestionsBuildTime)))
8086
8092
  : undefined,
8087
8093
  MinimumNumberOfQueryingUsers: __expectInt32(output.MinimumNumberOfQueryingUsers),
8088
8094
  MinimumQueryCount: __expectInt32(output.MinimumQueryCount),
@@ -8100,7 +8106,7 @@ const deserializeAws_json1_1DescribeThesaurusResponse = (
8100
8106
  return {
8101
8107
  CreatedAt:
8102
8108
  output.CreatedAt !== undefined && output.CreatedAt !== null
8103
- ? new Date(Math.round(output.CreatedAt * 1000))
8109
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
8104
8110
  : undefined,
8105
8111
  Description: __expectString(output.Description),
8106
8112
  ErrorMessage: __expectString(output.ErrorMessage),
@@ -8118,7 +8124,7 @@ const deserializeAws_json1_1DescribeThesaurusResponse = (
8118
8124
  TermCount: __expectLong(output.TermCount),
8119
8125
  UpdatedAt:
8120
8126
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
8121
- ? new Date(Math.round(output.UpdatedAt * 1000))
8127
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
8122
8128
  : undefined,
8123
8129
  } as any;
8124
8130
  };
@@ -8128,7 +8134,7 @@ const deserializeAws_json1_1DocumentAttribute = (output: any, context: __SerdeCo
8128
8134
  Key: __expectString(output.Key),
8129
8135
  Value:
8130
8136
  output.Value !== undefined && output.Value !== null
8131
- ? deserializeAws_json1_1DocumentAttributeValue(output.Value, context)
8137
+ ? deserializeAws_json1_1DocumentAttributeValue(__expectUnion(output.Value), context)
8132
8138
  : undefined,
8133
8139
  } as any;
8134
8140
  };
@@ -8158,7 +8164,7 @@ const deserializeAws_json1_1DocumentAttributeStringListValue = (output: any, con
8158
8164
  const deserializeAws_json1_1DocumentAttributeValue = (output: any, context: __SerdeContext): DocumentAttributeValue => {
8159
8165
  if (output.DateValue !== undefined && output.DateValue !== null) {
8160
8166
  return {
8161
- DateValue: new Date(Math.round(output.DateValue * 1000)),
8167
+ DateValue: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateValue))),
8162
8168
  };
8163
8169
  }
8164
8170
  if (__expectLong(output.LongValue) !== undefined) {
@@ -8183,7 +8189,7 @@ const deserializeAws_json1_1DocumentAttributeValueCountPair = (
8183
8189
  Count: __expectInt32(output.Count),
8184
8190
  DocumentAttributeValue:
8185
8191
  output.DocumentAttributeValue !== undefined && output.DocumentAttributeValue !== null
8186
- ? deserializeAws_json1_1DocumentAttributeValue(output.DocumentAttributeValue, context)
8192
+ ? deserializeAws_json1_1DocumentAttributeValue(__expectUnion(output.DocumentAttributeValue), context)
8187
8193
  : undefined,
8188
8194
  } as any;
8189
8195
  };
@@ -8319,7 +8325,7 @@ const deserializeAws_json1_1FaqSummary = (output: any, context: __SerdeContext):
8319
8325
  return {
8320
8326
  CreatedAt:
8321
8327
  output.CreatedAt !== undefined && output.CreatedAt !== null
8322
- ? new Date(Math.round(output.CreatedAt * 1000))
8328
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
8323
8329
  : undefined,
8324
8330
  FileFormat: __expectString(output.FileFormat),
8325
8331
  Id: __expectString(output.Id),
@@ -8327,7 +8333,7 @@ const deserializeAws_json1_1FaqSummary = (output: any, context: __SerdeContext):
8327
8333
  Status: __expectString(output.Status),
8328
8334
  UpdatedAt:
8329
8335
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
8330
- ? new Date(Math.round(output.UpdatedAt * 1000))
8336
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
8331
8337
  : undefined,
8332
8338
  } as any;
8333
8339
  };
@@ -8408,12 +8414,12 @@ const deserializeAws_json1_1GroupOrderingIdSummary = (output: any, context: __Se
8408
8414
  FailureReason: __expectString(output.FailureReason),
8409
8415
  LastUpdatedAt:
8410
8416
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
8411
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
8417
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
8412
8418
  : undefined,
8413
8419
  OrderingId: __expectLong(output.OrderingId),
8414
8420
  ReceivedAt:
8415
8421
  output.ReceivedAt !== undefined && output.ReceivedAt !== null
8416
- ? new Date(Math.round(output.ReceivedAt * 1000))
8422
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReceivedAt)))
8417
8423
  : undefined,
8418
8424
  Status: __expectString(output.Status),
8419
8425
  } as any;
@@ -8453,7 +8459,7 @@ const deserializeAws_json1_1IndexConfigurationSummary = (
8453
8459
  return {
8454
8460
  CreatedAt:
8455
8461
  output.CreatedAt !== undefined && output.CreatedAt !== null
8456
- ? new Date(Math.round(output.CreatedAt * 1000))
8462
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
8457
8463
  : undefined,
8458
8464
  Edition: __expectString(output.Edition),
8459
8465
  Id: __expectString(output.Id),
@@ -8461,7 +8467,7 @@ const deserializeAws_json1_1IndexConfigurationSummary = (
8461
8467
  Status: __expectString(output.Status),
8462
8468
  UpdatedAt:
8463
8469
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
8464
- ? new Date(Math.round(output.UpdatedAt * 1000))
8470
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
8465
8471
  : undefined,
8466
8472
  } as any;
8467
8473
  };
@@ -8751,7 +8757,7 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummary = (
8751
8757
  return {
8752
8758
  CreatedAt:
8753
8759
  output.CreatedAt !== undefined && output.CreatedAt !== null
8754
- ? new Date(Math.round(output.CreatedAt * 1000))
8760
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
8755
8761
  : undefined,
8756
8762
  Id: __expectString(output.Id),
8757
8763
  ItemCount: __expectInt32(output.ItemCount),
@@ -8759,7 +8765,7 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummary = (
8759
8765
  Status: __expectString(output.Status),
8760
8766
  UpdatedAt:
8761
8767
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
8762
- ? new Date(Math.round(output.UpdatedAt * 1000))
8768
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
8763
8769
  : undefined,
8764
8770
  } as any;
8765
8771
  };
@@ -9398,14 +9404,14 @@ const deserializeAws_json1_1ThesaurusSummary = (output: any, context: __SerdeCon
9398
9404
  return {
9399
9405
  CreatedAt:
9400
9406
  output.CreatedAt !== undefined && output.CreatedAt !== null
9401
- ? new Date(Math.round(output.CreatedAt * 1000))
9407
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9402
9408
  : undefined,
9403
9409
  Id: __expectString(output.Id),
9404
9410
  Name: __expectString(output.Name),
9405
9411
  Status: __expectString(output.Status),
9406
9412
  UpdatedAt:
9407
9413
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
9408
- ? new Date(Math.round(output.UpdatedAt * 1000))
9414
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
9409
9415
  : undefined,
9410
9416
  } as any;
9411
9417
  };
package/tsconfig.json CHANGED
@@ -13,8 +13,7 @@
13
13
  "resolveJsonModule": true,
14
14
  "esModuleInterop": true,
15
15
  "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
16
+ "outDir": "dist/cjs"
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],