@aws-sdk/client-kendra 3.252.0 → 3.254.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.
@@ -3763,7 +3763,7 @@ const serializeAws_json1_1ClearQuerySuggestionsRequest = (input, context) => {
3763
3763
  };
3764
3764
  const serializeAws_json1_1ClickFeedback = (input, context) => {
3765
3765
  return {
3766
- ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000).toString() }),
3766
+ ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000) }),
3767
3767
  ...(input.ResultId != null && { ResultId: input.ResultId }),
3768
3768
  };
3769
3769
  };
@@ -4384,7 +4384,7 @@ const serializeAws_json1_1DocumentAttributeTarget = (input, context) => {
4384
4384
  };
4385
4385
  const serializeAws_json1_1DocumentAttributeValue = (input, context) => {
4386
4386
  return {
4387
- ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000).toString() }),
4387
+ ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000) }),
4388
4388
  ...(input.LongValue != null && { LongValue: input.LongValue }),
4389
4389
  ...(input.StringListValue != null && {
4390
4390
  StringListValue: serializeAws_json1_1DocumentAttributeStringListValue(input.StringListValue, context),
@@ -5520,8 +5520,8 @@ const serializeAws_json1_1TemplateConfiguration = (input, context) => {
5520
5520
  };
5521
5521
  const serializeAws_json1_1TimeRange = (input, context) => {
5522
5522
  return {
5523
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
5524
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
5523
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
5524
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
5525
5525
  };
5526
5526
  };
5527
5527
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
@@ -3638,7 +3638,7 @@ const serializeAws_json1_1ClearQuerySuggestionsRequest = (input, context) => {
3638
3638
  };
3639
3639
  const serializeAws_json1_1ClickFeedback = (input, context) => {
3640
3640
  return {
3641
- ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000).toString() }),
3641
+ ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000) }),
3642
3642
  ...(input.ResultId != null && { ResultId: input.ResultId }),
3643
3643
  };
3644
3644
  };
@@ -4259,7 +4259,7 @@ const serializeAws_json1_1DocumentAttributeTarget = (input, context) => {
4259
4259
  };
4260
4260
  const serializeAws_json1_1DocumentAttributeValue = (input, context) => {
4261
4261
  return {
4262
- ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000).toString() }),
4262
+ ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000) }),
4263
4263
  ...(input.LongValue != null && { LongValue: input.LongValue }),
4264
4264
  ...(input.StringListValue != null && {
4265
4265
  StringListValue: serializeAws_json1_1DocumentAttributeStringListValue(input.StringListValue, context),
@@ -5395,8 +5395,8 @@ const serializeAws_json1_1TemplateConfiguration = (input, context) => {
5395
5395
  };
5396
5396
  const serializeAws_json1_1TimeRange = (input, context) => {
5397
5397
  return {
5398
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
5399
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
5398
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
5399
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
5400
5400
  };
5401
5401
  };
5402
5402
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { AssociateEntitiesToExperienceCommandInput, AssociateEntitiesToExperienceCommandOutput } from "./commands/AssociateEntitiesToExperienceCommand";
11
11
  import { AssociatePersonasToEntitiesCommandInput, AssociatePersonasToEntitiesCommandOutput } from "./commands/AssociatePersonasToEntitiesCommand";
12
12
  import { BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput } from "./commands/BatchDeleteDocumentCommand";
@@ -76,11 +76,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
76
76
  */
77
77
  requestHandler?: __HttpHandler;
78
78
  /**
79
- * A constructor for a class implementing the {@link __Hash} interface
79
+ * A constructor for a class implementing the {@link __Checksum} interface
80
80
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
81
81
  * @internal
82
82
  */
83
- sha256?: __HashConstructor;
83
+ sha256?: __ChecksumConstructor | __HashConstructor;
84
84
  /**
85
85
  * The function that will be used to convert strings into HTTP endpoints.
86
86
  * @internal
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -410,7 +411,7 @@ export declare type ServiceOutputTypes =
410
411
  export interface ClientDefaults
411
412
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
412
413
  requestHandler?: __HttpHandler;
413
- sha256?: __HashConstructor;
414
+ sha256?: __ChecksumConstructor | __HashConstructor;
414
415
  urlParser?: __UrlParser;
415
416
  bodyLengthChecker?: __BodyLengthCalculator;
416
417
  streamCollector?: __StreamCollector;
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.252.0",
4
+ "version": "3.254.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,39 +18,39 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
53
+ "@aws-sdk/util-user-agent-node": "3.254.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.188.0",
55
55
  "@aws-sdk/util-utf8-node": "3.208.0",
56
56
  "tslib": "^2.3.1",