@aws-sdk/client-kendra-ranking 3.1137.0 → 3.1139.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/dist-cjs/index.js CHANGED
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1136.0";
70
+ var version = "3.1138.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -326,10 +326,10 @@ const _nT = "nextToken";
326
326
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kendraranking";
327
327
  const _se = "server";
328
328
  const n0 = "com.amazonaws.kendraranking";
329
- const _s_registry = TypeRegistry.for(_s);
329
+ const _s_registry = new TypeRegistry(_s);
330
330
  var KendraRankingServiceException$ = [-3, _s, "KendraRankingServiceException", 0, [], []];
331
331
  _s_registry.registerError(KendraRankingServiceException$, KendraRankingServiceException);
332
- const n0_registry = TypeRegistry.for(n0);
332
+ const n0_registry = new TypeRegistry(n0);
333
333
  var AccessDeniedException$ = [-3, n0, _ADE,
334
334
  { [_e]: _c, [_hE]: 403 },
335
335
  [_M],
@@ -86,10 +86,10 @@ const n0 = "com.amazonaws.kendraranking";
86
86
  import { TypeRegistry } from "@smithy/core/schema";
87
87
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
88
88
  import { KendraRankingServiceException } from "../models/KendraRankingServiceException";
89
- const _s_registry = TypeRegistry.for(_s);
89
+ const _s_registry = new TypeRegistry(_s);
90
90
  export var KendraRankingServiceException$ = [-3, _s, "KendraRankingServiceException", 0, [], []];
91
91
  _s_registry.registerError(KendraRankingServiceException$, KendraRankingServiceException);
92
- const n0_registry = TypeRegistry.for(n0);
92
+ const n0_registry = new TypeRegistry(n0);
93
93
  export var AccessDeniedException$ = [-3, n0, _ADE,
94
94
  { [_e]: _c, [_hE]: 403 },
95
95
  [_M],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type CreateRescoreExecutionPlanCommandInput, type CreateRescoreExecutionPlanCommandOutput } from "./commands/CreateRescoreExecutionPlanCommand";
3
3
  import { type DeleteRescoreExecutionPlanCommandInput, type DeleteRescoreExecutionPlanCommandOutput } from "./commands/DeleteRescoreExecutionPlanCommand";
4
4
  import { type DescribeRescoreExecutionPlanCommandInput, type DescribeRescoreExecutionPlanCommandOutput } from "./commands/DescribeRescoreExecutionPlanCommand";
@@ -9,62 +9,68 @@ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./c
9
9
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
10
10
  import { type UpdateRescoreExecutionPlanCommandInput, type UpdateRescoreExecutionPlanCommandOutput } from "./commands/UpdateRescoreExecutionPlanCommand";
11
11
  import { KendraRankingClient } from "./KendraRankingClient";
12
+ /**
13
+ * @public
14
+ */
15
+ export interface KendraRankingRequestOptions extends __HttpHandlerOptions {
16
+ metricsRecorder?: __MetricsRecorder<unknown>;
17
+ }
12
18
  export interface KendraRanking {
13
19
  /**
14
20
  * @see {@link CreateRescoreExecutionPlanCommand}
15
21
  */
16
- createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<CreateRescoreExecutionPlanCommandOutput>;
22
+ createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, options?: KendraRankingRequestOptions): Promise<CreateRescoreExecutionPlanCommandOutput>;
17
23
  createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, cb: (err: any, data?: CreateRescoreExecutionPlanCommandOutput) => void): void;
18
- createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRescoreExecutionPlanCommandOutput) => void): void;
24
+ createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: CreateRescoreExecutionPlanCommandOutput) => void): void;
19
25
  /**
20
26
  * @see {@link DeleteRescoreExecutionPlanCommand}
21
27
  */
22
- deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRescoreExecutionPlanCommandOutput>;
28
+ deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, options?: KendraRankingRequestOptions): Promise<DeleteRescoreExecutionPlanCommandOutput>;
23
29
  deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, cb: (err: any, data?: DeleteRescoreExecutionPlanCommandOutput) => void): void;
24
- deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRescoreExecutionPlanCommandOutput) => void): void;
30
+ deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: DeleteRescoreExecutionPlanCommandOutput) => void): void;
25
31
  /**
26
32
  * @see {@link DescribeRescoreExecutionPlanCommand}
27
33
  */
28
- describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRescoreExecutionPlanCommandOutput>;
34
+ describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, options?: KendraRankingRequestOptions): Promise<DescribeRescoreExecutionPlanCommandOutput>;
29
35
  describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, cb: (err: any, data?: DescribeRescoreExecutionPlanCommandOutput) => void): void;
30
- describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRescoreExecutionPlanCommandOutput) => void): void;
36
+ describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: DescribeRescoreExecutionPlanCommandOutput) => void): void;
31
37
  /**
32
38
  * @see {@link ListRescoreExecutionPlansCommand}
33
39
  */
34
40
  listRescoreExecutionPlans(): Promise<ListRescoreExecutionPlansCommandOutput>;
35
- listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, options?: __HttpHandlerOptions): Promise<ListRescoreExecutionPlansCommandOutput>;
41
+ listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, options?: KendraRankingRequestOptions): Promise<ListRescoreExecutionPlansCommandOutput>;
36
42
  listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, cb: (err: any, data?: ListRescoreExecutionPlansCommandOutput) => void): void;
37
- listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRescoreExecutionPlansCommandOutput) => void): void;
43
+ listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: ListRescoreExecutionPlansCommandOutput) => void): void;
38
44
  /**
39
45
  * @see {@link ListTagsForResourceCommand}
40
46
  */
41
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
47
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: KendraRankingRequestOptions): Promise<ListTagsForResourceCommandOutput>;
42
48
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
43
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
49
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
44
50
  /**
45
51
  * @see {@link RescoreCommand}
46
52
  */
47
- rescore(args: RescoreCommandInput, options?: __HttpHandlerOptions): Promise<RescoreCommandOutput>;
53
+ rescore(args: RescoreCommandInput, options?: KendraRankingRequestOptions): Promise<RescoreCommandOutput>;
48
54
  rescore(args: RescoreCommandInput, cb: (err: any, data?: RescoreCommandOutput) => void): void;
49
- rescore(args: RescoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RescoreCommandOutput) => void): void;
55
+ rescore(args: RescoreCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: RescoreCommandOutput) => void): void;
50
56
  /**
51
57
  * @see {@link TagResourceCommand}
52
58
  */
53
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
59
+ tagResource(args: TagResourceCommandInput, options?: KendraRankingRequestOptions): Promise<TagResourceCommandOutput>;
54
60
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
55
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
61
+ tagResource(args: TagResourceCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
56
62
  /**
57
63
  * @see {@link UntagResourceCommand}
58
64
  */
59
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
65
+ untagResource(args: UntagResourceCommandInput, options?: KendraRankingRequestOptions): Promise<UntagResourceCommandOutput>;
60
66
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
61
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
67
+ untagResource(args: UntagResourceCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
62
68
  /**
63
69
  * @see {@link UpdateRescoreExecutionPlanCommand}
64
70
  */
65
- updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRescoreExecutionPlanCommandOutput>;
71
+ updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, options?: KendraRankingRequestOptions): Promise<UpdateRescoreExecutionPlanCommandOutput>;
66
72
  updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, cb: (err: any, data?: UpdateRescoreExecutionPlanCommandOutput) => void): void;
67
- updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRescoreExecutionPlanCommandOutput) => void): void;
73
+ updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, options: KendraRankingRequestOptions, cb: (err: any, data?: UpdateRescoreExecutionPlanCommandOutput) => void): void;
68
74
  /**
69
75
  * @see {@link ListRescoreExecutionPlansCommand}
70
76
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -34,10 +35,13 @@ import {
34
35
  UpdateRescoreExecutionPlanCommandOutput,
35
36
  } from "./commands/UpdateRescoreExecutionPlanCommand";
36
37
  import { KendraRankingClient } from "./KendraRankingClient";
38
+ export interface KendraRankingRequestOptions extends __HttpHandlerOptions {
39
+ metricsRecorder?: __MetricsRecorder<unknown>;
40
+ }
37
41
  export interface KendraRanking {
38
42
  createRescoreExecutionPlan(
39
43
  args: CreateRescoreExecutionPlanCommandInput,
40
- options?: __HttpHandlerOptions,
44
+ options?: KendraRankingRequestOptions,
41
45
  ): Promise<CreateRescoreExecutionPlanCommandOutput>;
42
46
  createRescoreExecutionPlan(
43
47
  args: CreateRescoreExecutionPlanCommandInput,
@@ -45,12 +49,12 @@ export interface KendraRanking {
45
49
  ): void;
46
50
  createRescoreExecutionPlan(
47
51
  args: CreateRescoreExecutionPlanCommandInput,
48
- options: __HttpHandlerOptions,
52
+ options: KendraRankingRequestOptions,
49
53
  cb: (err: any, data?: CreateRescoreExecutionPlanCommandOutput) => void,
50
54
  ): void;
51
55
  deleteRescoreExecutionPlan(
52
56
  args: DeleteRescoreExecutionPlanCommandInput,
53
- options?: __HttpHandlerOptions,
57
+ options?: KendraRankingRequestOptions,
54
58
  ): Promise<DeleteRescoreExecutionPlanCommandOutput>;
55
59
  deleteRescoreExecutionPlan(
56
60
  args: DeleteRescoreExecutionPlanCommandInput,
@@ -58,12 +62,12 @@ export interface KendraRanking {
58
62
  ): void;
59
63
  deleteRescoreExecutionPlan(
60
64
  args: DeleteRescoreExecutionPlanCommandInput,
61
- options: __HttpHandlerOptions,
65
+ options: KendraRankingRequestOptions,
62
66
  cb: (err: any, data?: DeleteRescoreExecutionPlanCommandOutput) => void,
63
67
  ): void;
64
68
  describeRescoreExecutionPlan(
65
69
  args: DescribeRescoreExecutionPlanCommandInput,
66
- options?: __HttpHandlerOptions,
70
+ options?: KendraRankingRequestOptions,
67
71
  ): Promise<DescribeRescoreExecutionPlanCommandOutput>;
68
72
  describeRescoreExecutionPlan(
69
73
  args: DescribeRescoreExecutionPlanCommandInput,
@@ -71,13 +75,13 @@ export interface KendraRanking {
71
75
  ): void;
72
76
  describeRescoreExecutionPlan(
73
77
  args: DescribeRescoreExecutionPlanCommandInput,
74
- options: __HttpHandlerOptions,
78
+ options: KendraRankingRequestOptions,
75
79
  cb: (err: any, data?: DescribeRescoreExecutionPlanCommandOutput) => void,
76
80
  ): void;
77
81
  listRescoreExecutionPlans(): Promise<ListRescoreExecutionPlansCommandOutput>;
78
82
  listRescoreExecutionPlans(
79
83
  args: ListRescoreExecutionPlansCommandInput,
80
- options?: __HttpHandlerOptions,
84
+ options?: KendraRankingRequestOptions,
81
85
  ): Promise<ListRescoreExecutionPlansCommandOutput>;
82
86
  listRescoreExecutionPlans(
83
87
  args: ListRescoreExecutionPlansCommandInput,
@@ -85,12 +89,12 @@ export interface KendraRanking {
85
89
  ): void;
86
90
  listRescoreExecutionPlans(
87
91
  args: ListRescoreExecutionPlansCommandInput,
88
- options: __HttpHandlerOptions,
92
+ options: KendraRankingRequestOptions,
89
93
  cb: (err: any, data?: ListRescoreExecutionPlansCommandOutput) => void,
90
94
  ): void;
91
95
  listTagsForResource(
92
96
  args: ListTagsForResourceCommandInput,
93
- options?: __HttpHandlerOptions,
97
+ options?: KendraRankingRequestOptions,
94
98
  ): Promise<ListTagsForResourceCommandOutput>;
95
99
  listTagsForResource(
96
100
  args: ListTagsForResourceCommandInput,
@@ -98,19 +102,22 @@ export interface KendraRanking {
98
102
  ): void;
99
103
  listTagsForResource(
100
104
  args: ListTagsForResourceCommandInput,
101
- options: __HttpHandlerOptions,
105
+ options: KendraRankingRequestOptions,
102
106
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
103
107
  ): void;
104
- rescore(args: RescoreCommandInput, options?: __HttpHandlerOptions): Promise<RescoreCommandOutput>;
108
+ rescore(
109
+ args: RescoreCommandInput,
110
+ options?: KendraRankingRequestOptions,
111
+ ): Promise<RescoreCommandOutput>;
105
112
  rescore(args: RescoreCommandInput, cb: (err: any, data?: RescoreCommandOutput) => void): void;
106
113
  rescore(
107
114
  args: RescoreCommandInput,
108
- options: __HttpHandlerOptions,
115
+ options: KendraRankingRequestOptions,
109
116
  cb: (err: any, data?: RescoreCommandOutput) => void,
110
117
  ): void;
111
118
  tagResource(
112
119
  args: TagResourceCommandInput,
113
- options?: __HttpHandlerOptions,
120
+ options?: KendraRankingRequestOptions,
114
121
  ): Promise<TagResourceCommandOutput>;
115
122
  tagResource(
116
123
  args: TagResourceCommandInput,
@@ -118,12 +125,12 @@ export interface KendraRanking {
118
125
  ): void;
119
126
  tagResource(
120
127
  args: TagResourceCommandInput,
121
- options: __HttpHandlerOptions,
128
+ options: KendraRankingRequestOptions,
122
129
  cb: (err: any, data?: TagResourceCommandOutput) => void,
123
130
  ): void;
124
131
  untagResource(
125
132
  args: UntagResourceCommandInput,
126
- options?: __HttpHandlerOptions,
133
+ options?: KendraRankingRequestOptions,
127
134
  ): Promise<UntagResourceCommandOutput>;
128
135
  untagResource(
129
136
  args: UntagResourceCommandInput,
@@ -131,12 +138,12 @@ export interface KendraRanking {
131
138
  ): void;
132
139
  untagResource(
133
140
  args: UntagResourceCommandInput,
134
- options: __HttpHandlerOptions,
141
+ options: KendraRankingRequestOptions,
135
142
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
136
143
  ): void;
137
144
  updateRescoreExecutionPlan(
138
145
  args: UpdateRescoreExecutionPlanCommandInput,
139
- options?: __HttpHandlerOptions,
146
+ options?: KendraRankingRequestOptions,
140
147
  ): Promise<UpdateRescoreExecutionPlanCommandOutput>;
141
148
  updateRescoreExecutionPlan(
142
149
  args: UpdateRescoreExecutionPlanCommandInput,
@@ -144,7 +151,7 @@ export interface KendraRanking {
144
151
  ): void;
145
152
  updateRescoreExecutionPlan(
146
153
  args: UpdateRescoreExecutionPlanCommandInput,
147
- options: __HttpHandlerOptions,
154
+ options: KendraRankingRequestOptions,
148
155
  cb: (err: any, data?: UpdateRescoreExecutionPlanCommandOutput) => void,
149
156
  ): void;
150
157
  paginateListRescoreExecutionPlans(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kendra-ranking",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Kendra Ranking Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kendra-ranking",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {