@aws-sdk/client-kendra-ranking 3.686.0 → 3.691.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.
@@ -9,7 +9,7 @@ import { KendraRankingServiceException as __BaseException } from "./KendraRankin
9
9
  export declare class AccessDeniedException extends __BaseException {
10
10
  readonly name: "AccessDeniedException";
11
11
  readonly $fault: "client";
12
- Message?: string;
12
+ Message?: string | undefined;
13
13
  /**
14
14
  * @internal
15
15
  */
@@ -23,7 +23,7 @@ export declare class AccessDeniedException extends __BaseException {
23
23
  export declare class ConflictException extends __BaseException {
24
24
  readonly name: "ConflictException";
25
25
  readonly $fault: "client";
26
- Message?: string;
26
+ Message?: string | undefined;
27
27
  /**
28
28
  * @internal
29
29
  */
@@ -85,7 +85,7 @@ export interface CreateRescoreExecutionPlanRequest {
85
85
  * <p>A description for the rescore execution plan.</p>
86
86
  * @public
87
87
  */
88
- Description?: string;
88
+ Description?: string | undefined;
89
89
  /**
90
90
  * <p>You can set additional capacity units to meet the
91
91
  * needs of your rescore execution plan. You are given a single
@@ -96,7 +96,7 @@ export interface CreateRescoreExecutionPlanRequest {
96
96
  * capacity</a>.</p>
97
97
  * @public
98
98
  */
99
- CapacityUnits?: CapacityUnitsConfiguration;
99
+ CapacityUnits?: CapacityUnitsConfiguration | undefined;
100
100
  /**
101
101
  * <p>A list of key-value pairs that identify or categorize your
102
102
  * rescore execution plan. You can also use tags to help control
@@ -105,7 +105,7 @@ export interface CreateRescoreExecutionPlanRequest {
105
105
  * the following symbols: _ . : / = + - @.</p>
106
106
  * @public
107
107
  */
108
- Tags?: Tag[];
108
+ Tags?: Tag[] | undefined;
109
109
  /**
110
110
  * <p>A token that you provide to identify the request to create
111
111
  * a rescore execution plan. Multiple calls to the
@@ -113,7 +113,7 @@ export interface CreateRescoreExecutionPlanRequest {
113
113
  * same client token will create only one rescore execution plan.</p>
114
114
  * @public
115
115
  */
116
- ClientToken?: string;
116
+ ClientToken?: string | undefined;
117
117
  }
118
118
  /**
119
119
  * @public
@@ -142,7 +142,7 @@ export interface CreateRescoreExecutionPlanResponse {
142
142
  export declare class InternalServerException extends __BaseException {
143
143
  readonly name: "InternalServerException";
144
144
  readonly $fault: "server";
145
- Message?: string;
145
+ Message?: string | undefined;
146
146
  /**
147
147
  * @internal
148
148
  */
@@ -159,7 +159,7 @@ export declare class InternalServerException extends __BaseException {
159
159
  export declare class ServiceQuotaExceededException extends __BaseException {
160
160
  readonly name: "ServiceQuotaExceededException";
161
161
  readonly $fault: "client";
162
- Message?: string;
162
+ Message?: string | undefined;
163
163
  /**
164
164
  * @internal
165
165
  */
@@ -173,7 +173,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
173
173
  export declare class ThrottlingException extends __BaseException {
174
174
  readonly name: "ThrottlingException";
175
175
  readonly $fault: "client";
176
- Message?: string;
176
+ Message?: string | undefined;
177
177
  /**
178
178
  * @internal
179
179
  */
@@ -188,7 +188,7 @@ export declare class ThrottlingException extends __BaseException {
188
188
  export declare class ValidationException extends __BaseException {
189
189
  readonly name: "ValidationException";
190
190
  readonly $fault: "client";
191
- Message?: string;
191
+ Message?: string | undefined;
192
192
  /**
193
193
  * @internal
194
194
  */
@@ -214,7 +214,7 @@ export interface DeleteRescoreExecutionPlanRequest {
214
214
  export declare class ResourceNotFoundException extends __BaseException {
215
215
  readonly name: "ResourceNotFoundException";
216
216
  readonly $fault: "client";
217
- Message?: string;
217
+ Message?: string | undefined;
218
218
  /**
219
219
  * @internal
220
220
  */
@@ -254,23 +254,23 @@ export interface DescribeRescoreExecutionPlanResponse {
254
254
  * <p>The identifier of the rescore execution plan.</p>
255
255
  * @public
256
256
  */
257
- Id?: string;
257
+ Id?: string | undefined;
258
258
  /**
259
259
  * <p>The Amazon Resource Name (ARN) of the rescore execution
260
260
  * plan.</p>
261
261
  * @public
262
262
  */
263
- Arn?: string;
263
+ Arn?: string | undefined;
264
264
  /**
265
265
  * <p>The name for the rescore execution plan.</p>
266
266
  * @public
267
267
  */
268
- Name?: string;
268
+ Name?: string | undefined;
269
269
  /**
270
270
  * <p>The description for the rescore execution plan.</p>
271
271
  * @public
272
272
  */
273
- Description?: string;
273
+ Description?: string | undefined;
274
274
  /**
275
275
  * <p>The capacity units set for the rescore execution plan.
276
276
  * A capacity of zero indicates that the rescore execution
@@ -279,19 +279,19 @@ export interface DescribeRescoreExecutionPlanResponse {
279
279
  * capacity</a>.</p>
280
280
  * @public
281
281
  */
282
- CapacityUnits?: CapacityUnitsConfiguration;
282
+ CapacityUnits?: CapacityUnitsConfiguration | undefined;
283
283
  /**
284
284
  * <p>The Unix timestamp of when the rescore execution plan was
285
285
  * created.</p>
286
286
  * @public
287
287
  */
288
- CreatedAt?: Date;
288
+ CreatedAt?: Date | undefined;
289
289
  /**
290
290
  * <p>The Unix timestamp of when the rescore execution plan was
291
291
  * last updated.</p>
292
292
  * @public
293
293
  */
294
- UpdatedAt?: Date;
294
+ UpdatedAt?: Date | undefined;
295
295
  /**
296
296
  * <p>The current status of the rescore execution plan. When the
297
297
  * value is <code>ACTIVE</code>, the rescore execution plan is
@@ -300,14 +300,14 @@ export interface DescribeRescoreExecutionPlanResponse {
300
300
  * contains a message that explains why.</p>
301
301
  * @public
302
302
  */
303
- Status?: RescoreExecutionPlanStatus;
303
+ Status?: RescoreExecutionPlanStatus | undefined;
304
304
  /**
305
305
  * <p>When the <code>Status</code> field value is
306
306
  * <code>FAILED</code>, the <code>ErrorMessage</code> field
307
307
  * contains a message that explains why.</p>
308
308
  * @public
309
309
  */
310
- ErrorMessage?: string;
310
+ ErrorMessage?: string | undefined;
311
311
  }
312
312
  /**
313
313
  * @public
@@ -320,12 +320,12 @@ export interface ListRescoreExecutionPlansRequest {
320
320
  * execution plans.</p>
321
321
  * @public
322
322
  */
323
- NextToken?: string;
323
+ NextToken?: string | undefined;
324
324
  /**
325
325
  * <p>The maximum number of rescore execution plans to return.</p>
326
326
  * @public
327
327
  */
328
- MaxResults?: number;
328
+ MaxResults?: number | undefined;
329
329
  }
330
330
  /**
331
331
  * <p>Summary information for a rescore execution plan. A rescore
@@ -338,31 +338,31 @@ export interface RescoreExecutionPlanSummary {
338
338
  * <p>The name of the rescore execution plan.</p>
339
339
  * @public
340
340
  */
341
- Name?: string;
341
+ Name?: string | undefined;
342
342
  /**
343
343
  * <p>The identifier of the rescore execution plan.</p>
344
344
  * @public
345
345
  */
346
- Id?: string;
346
+ Id?: string | undefined;
347
347
  /**
348
348
  * <p>The Unix timestamp when the rescore execution plan
349
349
  * was created.</p>
350
350
  * @public
351
351
  */
352
- CreatedAt?: Date;
352
+ CreatedAt?: Date | undefined;
353
353
  /**
354
354
  * <p>The Unix timestamp when the rescore execution plan
355
355
  * was last updated.</p>
356
356
  * @public
357
357
  */
358
- UpdatedAt?: Date;
358
+ UpdatedAt?: Date | undefined;
359
359
  /**
360
360
  * <p>The current status of the rescore execution plan. When
361
361
  * the value is <code>ACTIVE</code>, the rescore execution
362
362
  * plan is ready for use.</p>
363
363
  * @public
364
364
  */
365
- Status?: RescoreExecutionPlanStatus;
365
+ Status?: RescoreExecutionPlanStatus | undefined;
366
366
  }
367
367
  /**
368
368
  * @public
@@ -373,13 +373,13 @@ export interface ListRescoreExecutionPlansResponse {
373
373
  * execution plans.</p>
374
374
  * @public
375
375
  */
376
- SummaryItems?: RescoreExecutionPlanSummary[];
376
+ SummaryItems?: RescoreExecutionPlanSummary[] | undefined;
377
377
  /**
378
378
  * <p>If the response is truncated, Amazon Kendra Intelligent
379
379
  * Ranking returns a pagination token in the response.</p>
380
380
  * @public
381
381
  */
382
- NextToken?: string;
382
+ NextToken?: string | undefined;
383
383
  }
384
384
  /**
385
385
  * <p>The request information for listing tags associated with
@@ -407,7 +407,7 @@ export interface ListTagsForResourceResponse {
407
407
  * plan.</p>
408
408
  * @public
409
409
  */
410
- Tags?: Tag[];
410
+ Tags?: Tag[] | undefined;
411
411
  }
412
412
  /**
413
413
  * <p>The resource you want to use is unavailable. Please
@@ -418,7 +418,7 @@ export interface ListTagsForResourceResponse {
418
418
  export declare class ResourceUnavailableException extends __BaseException {
419
419
  readonly name: "ResourceUnavailableException";
420
420
  readonly $fault: "client";
421
- Message?: string;
421
+ Message?: string | undefined;
422
422
  /**
423
423
  * @internal
424
424
  */
@@ -442,17 +442,17 @@ export interface Document {
442
442
  * together and processed as one document within the service.</p>
443
443
  * @public
444
444
  */
445
- GroupId?: string;
445
+ GroupId?: string | undefined;
446
446
  /**
447
447
  * <p>The title of the search service's document.</p>
448
448
  * @public
449
449
  */
450
- Title?: string;
450
+ Title?: string | undefined;
451
451
  /**
452
452
  * <p>The body text of the search service's document.</p>
453
453
  * @public
454
454
  */
455
- Body?: string;
455
+ Body?: string | undefined;
456
456
  /**
457
457
  * <p>The title of the search service's document represented as
458
458
  * a list of tokens or words. You must choose to provide
@@ -460,7 +460,7 @@ export interface Document {
460
460
  * provide both.</p>
461
461
  * @public
462
462
  */
463
- TokenizedTitle?: string[];
463
+ TokenizedTitle?: string[] | undefined;
464
464
  /**
465
465
  * <p>The body text of the search service's document represented
466
466
  * as a list of tokens or words. You must choose to provide
@@ -468,7 +468,7 @@ export interface Document {
468
468
  * provide both.</p>
469
469
  * @public
470
470
  */
471
- TokenizedBody?: string[];
471
+ TokenizedBody?: string[] | undefined;
472
472
  /**
473
473
  * <p>The original document score or rank from the search service.
474
474
  * Amazon Kendra Intelligent Ranking gives the document a new
@@ -509,13 +509,13 @@ export interface RescoreResultItem {
509
509
  * <p>The identifier of the document from the search service.</p>
510
510
  * @public
511
511
  */
512
- DocumentId?: string;
512
+ DocumentId?: string | undefined;
513
513
  /**
514
514
  * <p>The relevancy score or rank that Amazon Kendra
515
515
  * Intelligent Ranking gives to the result.</p>
516
516
  * @public
517
517
  */
518
- Score?: number;
518
+ Score?: number | undefined;
519
519
  }
520
520
  /**
521
521
  * @public
@@ -528,13 +528,13 @@ export interface RescoreResult {
528
528
  * rescores or re-ranks the results for the search service.</p>
529
529
  * @public
530
530
  */
531
- RescoreId?: string;
531
+ RescoreId?: string | undefined;
532
532
  /**
533
533
  * <p>A list of result items for documents with new relevancy
534
534
  * scores. The results are in descending order.</p>
535
535
  * @public
536
536
  */
537
- ResultItems?: RescoreResultItem[];
537
+ ResultItems?: RescoreResultItem[] | undefined;
538
538
  }
539
539
  /**
540
540
  * <p>The request information for tagging a rescore execution
@@ -608,12 +608,12 @@ export interface UpdateRescoreExecutionPlanRequest {
608
608
  * <p>A new name for the rescore execution plan.</p>
609
609
  * @public
610
610
  */
611
- Name?: string;
611
+ Name?: string | undefined;
612
612
  /**
613
613
  * <p>A new description for the rescore execution plan.</p>
614
614
  * @public
615
615
  */
616
- Description?: string;
616
+ Description?: string | undefined;
617
617
  /**
618
618
  * <p>You can set additional capacity units to meet the needs
619
619
  * of your rescore execution plan. You are given a single capacity
@@ -623,5 +623,5 @@ export interface UpdateRescoreExecutionPlanRequest {
623
623
  * <a href="https://docs.aws.amazon.com/kendra/latest/dg/adjusting-capacity.html">Adjusting capacity</a>.</p>
624
624
  * @public
625
625
  */
626
- CapacityUnits?: CapacityUnitsConfiguration;
626
+ CapacityUnits?: CapacityUnitsConfiguration | undefined;
627
627
  }
@@ -3,7 +3,7 @@ import { KendraRankingServiceException as __BaseException } from "./KendraRankin
3
3
  export declare class AccessDeniedException extends __BaseException {
4
4
  readonly name: "AccessDeniedException";
5
5
  readonly $fault: "client";
6
- Message?: string;
6
+ Message?: string | undefined;
7
7
  constructor(
8
8
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
9
  );
@@ -11,7 +11,7 @@ export declare class AccessDeniedException extends __BaseException {
11
11
  export declare class ConflictException extends __BaseException {
12
12
  readonly name: "ConflictException";
13
13
  readonly $fault: "client";
14
- Message?: string;
14
+ Message?: string | undefined;
15
15
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
16
16
  }
17
17
  export interface CapacityUnitsConfiguration {
@@ -23,10 +23,10 @@ export interface Tag {
23
23
  }
24
24
  export interface CreateRescoreExecutionPlanRequest {
25
25
  Name: string | undefined;
26
- Description?: string;
27
- CapacityUnits?: CapacityUnitsConfiguration;
28
- Tags?: Tag[];
29
- ClientToken?: string;
26
+ Description?: string | undefined;
27
+ CapacityUnits?: CapacityUnitsConfiguration | undefined;
28
+ Tags?: Tag[] | undefined;
29
+ ClientToken?: string | undefined;
30
30
  }
31
31
  export interface CreateRescoreExecutionPlanResponse {
32
32
  Id: string | undefined;
@@ -35,7 +35,7 @@ export interface CreateRescoreExecutionPlanResponse {
35
35
  export declare class InternalServerException extends __BaseException {
36
36
  readonly name: "InternalServerException";
37
37
  readonly $fault: "server";
38
- Message?: string;
38
+ Message?: string | undefined;
39
39
  constructor(
40
40
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
41
41
  );
@@ -43,7 +43,7 @@ export declare class InternalServerException extends __BaseException {
43
43
  export declare class ServiceQuotaExceededException extends __BaseException {
44
44
  readonly name: "ServiceQuotaExceededException";
45
45
  readonly $fault: "client";
46
- Message?: string;
46
+ Message?: string | undefined;
47
47
  constructor(
48
48
  opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
49
49
  );
@@ -51,7 +51,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
51
51
  export declare class ThrottlingException extends __BaseException {
52
52
  readonly name: "ThrottlingException";
53
53
  readonly $fault: "client";
54
- Message?: string;
54
+ Message?: string | undefined;
55
55
  constructor(
56
56
  opts: __ExceptionOptionType<ThrottlingException, __BaseException>
57
57
  );
@@ -59,7 +59,7 @@ export declare class ThrottlingException extends __BaseException {
59
59
  export declare class ValidationException extends __BaseException {
60
60
  readonly name: "ValidationException";
61
61
  readonly $fault: "client";
62
- Message?: string;
62
+ Message?: string | undefined;
63
63
  constructor(
64
64
  opts: __ExceptionOptionType<ValidationException, __BaseException>
65
65
  );
@@ -70,7 +70,7 @@ export interface DeleteRescoreExecutionPlanRequest {
70
70
  export declare class ResourceNotFoundException extends __BaseException {
71
71
  readonly name: "ResourceNotFoundException";
72
72
  readonly $fault: "client";
73
- Message?: string;
73
+ Message?: string | undefined;
74
74
  constructor(
75
75
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
76
76
  );
@@ -88,52 +88,52 @@ export declare const RescoreExecutionPlanStatus: {
88
88
  export type RescoreExecutionPlanStatus =
89
89
  (typeof RescoreExecutionPlanStatus)[keyof typeof RescoreExecutionPlanStatus];
90
90
  export interface DescribeRescoreExecutionPlanResponse {
91
- Id?: string;
92
- Arn?: string;
93
- Name?: string;
94
- Description?: string;
95
- CapacityUnits?: CapacityUnitsConfiguration;
96
- CreatedAt?: Date;
97
- UpdatedAt?: Date;
98
- Status?: RescoreExecutionPlanStatus;
99
- ErrorMessage?: string;
91
+ Id?: string | undefined;
92
+ Arn?: string | undefined;
93
+ Name?: string | undefined;
94
+ Description?: string | undefined;
95
+ CapacityUnits?: CapacityUnitsConfiguration | undefined;
96
+ CreatedAt?: Date | undefined;
97
+ UpdatedAt?: Date | undefined;
98
+ Status?: RescoreExecutionPlanStatus | undefined;
99
+ ErrorMessage?: string | undefined;
100
100
  }
101
101
  export interface ListRescoreExecutionPlansRequest {
102
- NextToken?: string;
103
- MaxResults?: number;
102
+ NextToken?: string | undefined;
103
+ MaxResults?: number | undefined;
104
104
  }
105
105
  export interface RescoreExecutionPlanSummary {
106
- Name?: string;
107
- Id?: string;
108
- CreatedAt?: Date;
109
- UpdatedAt?: Date;
110
- Status?: RescoreExecutionPlanStatus;
106
+ Name?: string | undefined;
107
+ Id?: string | undefined;
108
+ CreatedAt?: Date | undefined;
109
+ UpdatedAt?: Date | undefined;
110
+ Status?: RescoreExecutionPlanStatus | undefined;
111
111
  }
112
112
  export interface ListRescoreExecutionPlansResponse {
113
- SummaryItems?: RescoreExecutionPlanSummary[];
114
- NextToken?: string;
113
+ SummaryItems?: RescoreExecutionPlanSummary[] | undefined;
114
+ NextToken?: string | undefined;
115
115
  }
116
116
  export interface ListTagsForResourceRequest {
117
117
  ResourceARN: string | undefined;
118
118
  }
119
119
  export interface ListTagsForResourceResponse {
120
- Tags?: Tag[];
120
+ Tags?: Tag[] | undefined;
121
121
  }
122
122
  export declare class ResourceUnavailableException extends __BaseException {
123
123
  readonly name: "ResourceUnavailableException";
124
124
  readonly $fault: "client";
125
- Message?: string;
125
+ Message?: string | undefined;
126
126
  constructor(
127
127
  opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>
128
128
  );
129
129
  }
130
130
  export interface Document {
131
131
  Id: string | undefined;
132
- GroupId?: string;
133
- Title?: string;
134
- Body?: string;
135
- TokenizedTitle?: string[];
136
- TokenizedBody?: string[];
132
+ GroupId?: string | undefined;
133
+ Title?: string | undefined;
134
+ Body?: string | undefined;
135
+ TokenizedTitle?: string[] | undefined;
136
+ TokenizedBody?: string[] | undefined;
137
137
  OriginalScore: number | undefined;
138
138
  }
139
139
  export interface RescoreRequest {
@@ -142,12 +142,12 @@ export interface RescoreRequest {
142
142
  Documents: Document[] | undefined;
143
143
  }
144
144
  export interface RescoreResultItem {
145
- DocumentId?: string;
146
- Score?: number;
145
+ DocumentId?: string | undefined;
146
+ Score?: number | undefined;
147
147
  }
148
148
  export interface RescoreResult {
149
- RescoreId?: string;
150
- ResultItems?: RescoreResultItem[];
149
+ RescoreId?: string | undefined;
150
+ ResultItems?: RescoreResultItem[] | undefined;
151
151
  }
152
152
  export interface TagResourceRequest {
153
153
  ResourceARN: string | undefined;
@@ -161,7 +161,7 @@ export interface UntagResourceRequest {
161
161
  export interface UntagResourceResponse {}
162
162
  export interface UpdateRescoreExecutionPlanRequest {
163
163
  Id: string | undefined;
164
- Name?: string;
165
- Description?: string;
166
- CapacityUnits?: CapacityUnitsConfiguration;
164
+ Name?: string | undefined;
165
+ Description?: string | undefined;
166
+ CapacityUnits?: CapacityUnitsConfiguration | undefined;
167
167
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kendra-ranking",
3
3
  "description": "AWS SDK for JavaScript Kendra Ranking Client for Node.js, Browser and React Native",
4
- "version": "3.686.0",
4
+ "version": "3.691.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kendra-ranking",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.686.0",
24
- "@aws-sdk/client-sts": "3.686.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.686.0",
23
+ "@aws-sdk/client-sso-oidc": "3.691.0",
24
+ "@aws-sdk/client-sts": "3.691.0",
25
+ "@aws-sdk/core": "3.691.0",
26
+ "@aws-sdk/credential-provider-node": "3.691.0",
27
27
  "@aws-sdk/middleware-host-header": "3.686.0",
28
28
  "@aws-sdk/middleware-logger": "3.686.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.686.0",
30
+ "@aws-sdk/middleware-user-agent": "3.691.0",
31
31
  "@aws-sdk/region-config-resolver": "3.686.0",
32
32
  "@aws-sdk/types": "3.686.0",
33
33
  "@aws-sdk/util-endpoints": "3.686.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.686.0",
35
+ "@aws-sdk/util-user-agent-node": "3.691.0",
36
36
  "@smithy/config-resolver": "^3.0.10",
37
37
  "@smithy/core": "^2.5.1",
38
38
  "@smithy/fetch-http-handler": "^4.0.0",