@aws-sdk/client-kendra 3.52.0 → 3.54.1

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.
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: KendraClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: KendraClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: KendraClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ 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, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AssociateEntitiesToExperienceCommandInput, AssociateEntitiesToExperienceCommandOutput } from "./commands/AssociateEntitiesToExperienceCommand";
10
10
  import { AssociatePersonasToEntitiesCommandInput, AssociatePersonasToEntitiesCommandOutput } from "./commands/AssociatePersonasToEntitiesCommand";
11
11
  import { BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput } from "./commands/BatchDeleteDocumentCommand";
@@ -71,7 +71,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
71
71
 
72
72
  urlParser?: __UrlParser;
73
73
 
74
- bodyLengthChecker?: (body: any) => number | undefined;
74
+ bodyLengthChecker?: __BodyLengthCalculator;
75
75
 
76
76
  streamCollector?: __StreamCollector;
77
77
 
@@ -3,3 +3,4 @@ export * from "./KendraClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { KendraServiceException } from "./models/KendraServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class KendraServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { KendraServiceException as __BaseException } from "./KendraServiceException";
2
3
 
3
4
  export interface AccessControlListConfiguration {
4
5
 
@@ -9,10 +10,12 @@ export declare namespace AccessControlListConfiguration {
9
10
  const filterSensitiveLog: (obj: AccessControlListConfiguration) => any;
10
11
  }
11
12
 
12
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
13
- name: "AccessDeniedException";
14
- $fault: "client";
13
+ export declare class AccessDeniedException extends __BaseException {
14
+ readonly name: "AccessDeniedException";
15
+ readonly $fault: "client";
15
16
  Message?: string;
17
+
18
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
19
  }
17
20
 
18
21
  export interface AclConfiguration {
@@ -125,34 +128,44 @@ export declare namespace AssociateEntitiesToExperienceResponse {
125
128
  const filterSensitiveLog: (obj: AssociateEntitiesToExperienceResponse) => any;
126
129
  }
127
130
 
128
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
129
- name: "InternalServerException";
130
- $fault: "server";
131
+ export declare class InternalServerException extends __BaseException {
132
+ readonly name: "InternalServerException";
133
+ readonly $fault: "server";
131
134
  Message?: string;
135
+
136
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
132
137
  }
133
138
 
134
- export interface ResourceAlreadyExistException extends __SmithyException, $MetadataBearer {
135
- name: "ResourceAlreadyExistException";
136
- $fault: "client";
139
+ export declare class ResourceAlreadyExistException extends __BaseException {
140
+ readonly name: "ResourceAlreadyExistException";
141
+ readonly $fault: "client";
137
142
  Message?: string;
143
+
144
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistException, __BaseException>);
138
145
  }
139
146
 
140
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
141
- name: "ResourceNotFoundException";
142
- $fault: "client";
147
+ export declare class ResourceNotFoundException extends __BaseException {
148
+ readonly name: "ResourceNotFoundException";
149
+ readonly $fault: "client";
143
150
  Message?: string;
151
+
152
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
144
153
  }
145
154
 
146
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
147
- name: "ThrottlingException";
148
- $fault: "client";
155
+ export declare class ThrottlingException extends __BaseException {
156
+ readonly name: "ThrottlingException";
157
+ readonly $fault: "client";
149
158
  Message?: string;
159
+
160
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
150
161
  }
151
162
 
152
- export interface ValidationException extends __SmithyException, $MetadataBearer {
153
- name: "ValidationException";
154
- $fault: "client";
163
+ export declare class ValidationException extends __BaseException {
164
+ readonly name: "ValidationException";
165
+ readonly $fault: "client";
155
166
  Message?: string;
167
+
168
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
156
169
  }
157
170
  export declare enum Persona {
158
171
  OWNER = "OWNER",
@@ -286,10 +299,12 @@ export declare namespace BatchDeleteDocumentResponse {
286
299
  const filterSensitiveLog: (obj: BatchDeleteDocumentResponse) => any;
287
300
  }
288
301
 
289
- export interface ConflictException extends __SmithyException, $MetadataBearer {
290
- name: "ConflictException";
291
- $fault: "client";
302
+ export declare class ConflictException extends __BaseException {
303
+ readonly name: "ConflictException";
304
+ readonly $fault: "client";
292
305
  Message?: string;
306
+
307
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
293
308
  }
294
309
 
295
310
  export interface DocumentInfo {
@@ -547,10 +562,12 @@ export declare namespace BatchPutDocumentResponse {
547
562
  const filterSensitiveLog: (obj: BatchPutDocumentResponse) => any;
548
563
  }
549
564
 
550
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
551
- name: "ServiceQuotaExceededException";
552
- $fault: "client";
565
+ export declare class ServiceQuotaExceededException extends __BaseException {
566
+ readonly name: "ServiceQuotaExceededException";
567
+ readonly $fault: "client";
553
568
  Message?: string;
569
+
570
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
554
571
  }
555
572
  export interface ClearQuerySuggestionsRequest {
556
573
 
@@ -2357,10 +2374,12 @@ export declare namespace GetSnapshotsResponse {
2357
2374
  const filterSensitiveLog: (obj: GetSnapshotsResponse) => any;
2358
2375
  }
2359
2376
 
2360
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
2361
- name: "InvalidRequestException";
2362
- $fault: "client";
2377
+ export declare class InvalidRequestException extends __BaseException {
2378
+ readonly name: "InvalidRequestException";
2379
+ readonly $fault: "client";
2363
2380
  Message?: string;
2381
+
2382
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
2364
2383
  }
2365
2384
  export interface ListDataSourcesRequest {
2366
2385
 
@@ -2789,10 +2808,12 @@ export declare namespace ListTagsForResourceResponse {
2789
2808
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
2790
2809
  }
2791
2810
 
2792
- export interface ResourceUnavailableException extends __SmithyException, $MetadataBearer {
2793
- name: "ResourceUnavailableException";
2794
- $fault: "client";
2811
+ export declare class ResourceUnavailableException extends __BaseException {
2812
+ readonly name: "ResourceUnavailableException";
2813
+ readonly $fault: "client";
2795
2814
  Message?: string;
2815
+
2816
+ constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
2796
2817
  }
2797
2818
  export interface ListThesauriRequest {
2798
2819
 
@@ -2925,6 +2946,15 @@ export declare namespace SortingConfiguration {
2925
2946
  const filterSensitiveLog: (obj: SortingConfiguration) => any;
2926
2947
  }
2927
2948
 
2949
+ export interface SpellCorrectionConfiguration {
2950
+
2951
+ IncludeQuerySpellCheckSuggestions: boolean | undefined;
2952
+ }
2953
+ export declare namespace SpellCorrectionConfiguration {
2954
+
2955
+ const filterSensitiveLog: (obj: SpellCorrectionConfiguration) => any;
2956
+ }
2957
+
2928
2958
  export interface DataSourceGroup {
2929
2959
 
2930
2960
  GroupId: string | undefined;
@@ -3017,6 +3047,32 @@ export declare namespace QueryResultItem {
3017
3047
 
3018
3048
  const filterSensitiveLog: (obj: QueryResultItem) => any;
3019
3049
  }
3050
+
3051
+ export interface Correction {
3052
+
3053
+ BeginOffset?: number;
3054
+
3055
+ EndOffset?: number;
3056
+
3057
+ Term?: string;
3058
+
3059
+ CorrectedTerm?: string;
3060
+ }
3061
+ export declare namespace Correction {
3062
+
3063
+ const filterSensitiveLog: (obj: Correction) => any;
3064
+ }
3065
+
3066
+ export interface SpellCorrectedQuery {
3067
+
3068
+ SuggestedQueryText?: string;
3069
+
3070
+ Corrections?: Correction[];
3071
+ }
3072
+ export declare namespace SpellCorrectedQuery {
3073
+
3074
+ const filterSensitiveLog: (obj: SpellCorrectedQuery) => any;
3075
+ }
3020
3076
  export declare enum WarningCode {
3021
3077
  QUERY_LANGUAGE_INVALID_SYNTAX = "QUERY_LANGUAGE_INVALID_SYNTAX"
3022
3078
  }
@@ -3042,16 +3098,20 @@ export interface QueryResult {
3042
3098
  TotalNumberOfResults?: number;
3043
3099
 
3044
3100
  Warnings?: Warning[];
3101
+
3102
+ SpellCorrectedQueries?: SpellCorrectedQuery[];
3045
3103
  }
3046
3104
  export declare namespace QueryResult {
3047
3105
 
3048
3106
  const filterSensitiveLog: (obj: QueryResult) => any;
3049
3107
  }
3050
3108
 
3051
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
3052
- name: "ResourceInUseException";
3053
- $fault: "client";
3109
+ export declare class ResourceInUseException extends __BaseException {
3110
+ readonly name: "ResourceInUseException";
3111
+ readonly $fault: "client";
3054
3112
  Message?: string;
3113
+
3114
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
3055
3115
  }
3056
3116
  export interface StartDataSourceSyncJobRequest {
3057
3117
 
@@ -3325,6 +3385,8 @@ export interface QueryRequest {
3325
3385
  UserContext?: UserContext;
3326
3386
 
3327
3387
  VisitorId?: string;
3388
+
3389
+ SpellCorrectionConfiguration?: SpellCorrectionConfiguration;
3328
3390
  }
3329
3391
  export declare namespace QueryRequest {
3330
3392
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: KendraClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: KendraClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: KendraClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
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.52.0",
4
+ "version": "3.54.1",
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,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",