@aws-sdk/client-kendra-ranking 3.716.0 → 3.723.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
@@ -141,7 +141,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
141
141
  }, "resolveRuntimeExtensions");
142
142
 
143
143
  // src/KendraRankingClient.ts
144
- var _KendraRankingClient = class _KendraRankingClient extends import_smithy_client.Client {
144
+ var KendraRankingClient = class extends import_smithy_client.Client {
145
+ static {
146
+ __name(this, "KendraRankingClient");
147
+ }
148
+ /**
149
+ * The resolved configuration of KendraRankingClient class. This is resolved and normalized from the {@link KendraRankingClientConfig | constructor configuration interface}.
150
+ */
151
+ config;
145
152
  constructor(...[configuration]) {
146
153
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
147
154
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -151,7 +158,7 @@ var _KendraRankingClient = class _KendraRankingClient extends import_smithy_clie
151
158
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
152
159
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
153
160
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
154
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
161
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
155
162
  super(_config_8);
156
163
  this.config = _config_8;
157
164
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -179,8 +186,6 @@ var _KendraRankingClient = class _KendraRankingClient extends import_smithy_clie
179
186
  super.destroy();
180
187
  }
181
188
  };
182
- __name(_KendraRankingClient, "KendraRankingClient");
183
- var KendraRankingClient = _KendraRankingClient;
184
189
 
185
190
  // src/KendraRanking.ts
186
191
 
@@ -198,7 +203,10 @@ var import_uuid = require("uuid");
198
203
 
199
204
  // src/models/KendraRankingServiceException.ts
200
205
 
201
- var _KendraRankingServiceException = class _KendraRankingServiceException extends import_smithy_client.ServiceException {
206
+ var KendraRankingServiceException = class _KendraRankingServiceException extends import_smithy_client.ServiceException {
207
+ static {
208
+ __name(this, "KendraRankingServiceException");
209
+ }
202
210
  /**
203
211
  * @internal
204
212
  */
@@ -207,11 +215,15 @@ var _KendraRankingServiceException = class _KendraRankingServiceException extend
207
215
  Object.setPrototypeOf(this, _KendraRankingServiceException.prototype);
208
216
  }
209
217
  };
210
- __name(_KendraRankingServiceException, "KendraRankingServiceException");
211
- var KendraRankingServiceException = _KendraRankingServiceException;
212
218
 
213
219
  // src/models/models_0.ts
214
- var _AccessDeniedException = class _AccessDeniedException extends KendraRankingServiceException {
220
+ var AccessDeniedException = class _AccessDeniedException extends KendraRankingServiceException {
221
+ static {
222
+ __name(this, "AccessDeniedException");
223
+ }
224
+ name = "AccessDeniedException";
225
+ $fault = "client";
226
+ Message;
215
227
  /**
216
228
  * @internal
217
229
  */
@@ -221,15 +233,17 @@ var _AccessDeniedException = class _AccessDeniedException extends KendraRankingS
221
233
  $fault: "client",
222
234
  ...opts
223
235
  });
224
- this.name = "AccessDeniedException";
225
- this.$fault = "client";
226
236
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
227
237
  this.Message = opts.Message;
228
238
  }
229
239
  };
230
- __name(_AccessDeniedException, "AccessDeniedException");
231
- var AccessDeniedException = _AccessDeniedException;
232
- var _ConflictException = class _ConflictException extends KendraRankingServiceException {
240
+ var ConflictException = class _ConflictException extends KendraRankingServiceException {
241
+ static {
242
+ __name(this, "ConflictException");
243
+ }
244
+ name = "ConflictException";
245
+ $fault = "client";
246
+ Message;
233
247
  /**
234
248
  * @internal
235
249
  */
@@ -239,15 +253,17 @@ var _ConflictException = class _ConflictException extends KendraRankingServiceEx
239
253
  $fault: "client",
240
254
  ...opts
241
255
  });
242
- this.name = "ConflictException";
243
- this.$fault = "client";
244
256
  Object.setPrototypeOf(this, _ConflictException.prototype);
245
257
  this.Message = opts.Message;
246
258
  }
247
259
  };
248
- __name(_ConflictException, "ConflictException");
249
- var ConflictException = _ConflictException;
250
- var _InternalServerException = class _InternalServerException extends KendraRankingServiceException {
260
+ var InternalServerException = class _InternalServerException extends KendraRankingServiceException {
261
+ static {
262
+ __name(this, "InternalServerException");
263
+ }
264
+ name = "InternalServerException";
265
+ $fault = "server";
266
+ Message;
251
267
  /**
252
268
  * @internal
253
269
  */
@@ -257,15 +273,17 @@ var _InternalServerException = class _InternalServerException extends KendraRank
257
273
  $fault: "server",
258
274
  ...opts
259
275
  });
260
- this.name = "InternalServerException";
261
- this.$fault = "server";
262
276
  Object.setPrototypeOf(this, _InternalServerException.prototype);
263
277
  this.Message = opts.Message;
264
278
  }
265
279
  };
266
- __name(_InternalServerException, "InternalServerException");
267
- var InternalServerException = _InternalServerException;
268
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends KendraRankingServiceException {
280
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends KendraRankingServiceException {
281
+ static {
282
+ __name(this, "ServiceQuotaExceededException");
283
+ }
284
+ name = "ServiceQuotaExceededException";
285
+ $fault = "client";
286
+ Message;
269
287
  /**
270
288
  * @internal
271
289
  */
@@ -275,15 +293,17 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
275
293
  $fault: "client",
276
294
  ...opts
277
295
  });
278
- this.name = "ServiceQuotaExceededException";
279
- this.$fault = "client";
280
296
  Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
281
297
  this.Message = opts.Message;
282
298
  }
283
299
  };
284
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
285
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
286
- var _ThrottlingException = class _ThrottlingException extends KendraRankingServiceException {
300
+ var ThrottlingException = class _ThrottlingException extends KendraRankingServiceException {
301
+ static {
302
+ __name(this, "ThrottlingException");
303
+ }
304
+ name = "ThrottlingException";
305
+ $fault = "client";
306
+ Message;
287
307
  /**
288
308
  * @internal
289
309
  */
@@ -293,15 +313,17 @@ var _ThrottlingException = class _ThrottlingException extends KendraRankingServi
293
313
  $fault: "client",
294
314
  ...opts
295
315
  });
296
- this.name = "ThrottlingException";
297
- this.$fault = "client";
298
316
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
299
317
  this.Message = opts.Message;
300
318
  }
301
319
  };
302
- __name(_ThrottlingException, "ThrottlingException");
303
- var ThrottlingException = _ThrottlingException;
304
- var _ValidationException = class _ValidationException extends KendraRankingServiceException {
320
+ var ValidationException = class _ValidationException extends KendraRankingServiceException {
321
+ static {
322
+ __name(this, "ValidationException");
323
+ }
324
+ name = "ValidationException";
325
+ $fault = "client";
326
+ Message;
305
327
  /**
306
328
  * @internal
307
329
  */
@@ -311,15 +333,17 @@ var _ValidationException = class _ValidationException extends KendraRankingServi
311
333
  $fault: "client",
312
334
  ...opts
313
335
  });
314
- this.name = "ValidationException";
315
- this.$fault = "client";
316
336
  Object.setPrototypeOf(this, _ValidationException.prototype);
317
337
  this.Message = opts.Message;
318
338
  }
319
339
  };
320
- __name(_ValidationException, "ValidationException");
321
- var ValidationException = _ValidationException;
322
- var _ResourceNotFoundException = class _ResourceNotFoundException extends KendraRankingServiceException {
340
+ var ResourceNotFoundException = class _ResourceNotFoundException extends KendraRankingServiceException {
341
+ static {
342
+ __name(this, "ResourceNotFoundException");
343
+ }
344
+ name = "ResourceNotFoundException";
345
+ $fault = "client";
346
+ Message;
323
347
  /**
324
348
  * @internal
325
349
  */
@@ -329,14 +353,10 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Kendra
329
353
  $fault: "client",
330
354
  ...opts
331
355
  });
332
- this.name = "ResourceNotFoundException";
333
- this.$fault = "client";
334
356
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
335
357
  this.Message = opts.Message;
336
358
  }
337
359
  };
338
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
339
- var ResourceNotFoundException = _ResourceNotFoundException;
340
360
  var RescoreExecutionPlanStatus = {
341
361
  ACTIVE: "ACTIVE",
342
362
  CREATING: "CREATING",
@@ -344,7 +364,13 @@ var RescoreExecutionPlanStatus = {
344
364
  FAILED: "FAILED",
345
365
  UPDATING: "UPDATING"
346
366
  };
347
- var _ResourceUnavailableException = class _ResourceUnavailableException extends KendraRankingServiceException {
367
+ var ResourceUnavailableException = class _ResourceUnavailableException extends KendraRankingServiceException {
368
+ static {
369
+ __name(this, "ResourceUnavailableException");
370
+ }
371
+ name = "ResourceUnavailableException";
372
+ $fault = "client";
373
+ Message;
348
374
  /**
349
375
  * @internal
350
376
  */
@@ -354,14 +380,10 @@ var _ResourceUnavailableException = class _ResourceUnavailableException extends
354
380
  $fault: "client",
355
381
  ...opts
356
382
  });
357
- this.name = "ResourceUnavailableException";
358
- this.$fault = "client";
359
383
  Object.setPrototypeOf(this, _ResourceUnavailableException.prototype);
360
384
  this.Message = opts.Message;
361
385
  }
362
386
  };
363
- __name(_ResourceUnavailableException, "ResourceUnavailableException");
364
- var ResourceUnavailableException = _ResourceUnavailableException;
365
387
 
366
388
  // src/protocols/Aws_json1_0.ts
367
389
  var se_CreateRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -759,127 +781,136 @@ function sharedHeaders(operation) {
759
781
  __name(sharedHeaders, "sharedHeaders");
760
782
 
761
783
  // src/commands/CreateRescoreExecutionPlanCommand.ts
762
- var _CreateRescoreExecutionPlanCommand = class _CreateRescoreExecutionPlanCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
784
+ var CreateRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
763
785
  return [
764
786
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
765
787
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
766
788
  ];
767
789
  }).s("AWSKendraRerankingFrontendService", "CreateRescoreExecutionPlan", {}).n("KendraRankingClient", "CreateRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_CreateRescoreExecutionPlanCommand).de(de_CreateRescoreExecutionPlanCommand).build() {
790
+ static {
791
+ __name(this, "CreateRescoreExecutionPlanCommand");
792
+ }
768
793
  };
769
- __name(_CreateRescoreExecutionPlanCommand, "CreateRescoreExecutionPlanCommand");
770
- var CreateRescoreExecutionPlanCommand = _CreateRescoreExecutionPlanCommand;
771
794
 
772
795
  // src/commands/DeleteRescoreExecutionPlanCommand.ts
773
796
 
774
797
 
775
798
 
776
- var _DeleteRescoreExecutionPlanCommand = class _DeleteRescoreExecutionPlanCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
799
+ var DeleteRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
777
800
  return [
778
801
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
779
802
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
780
803
  ];
781
804
  }).s("AWSKendraRerankingFrontendService", "DeleteRescoreExecutionPlan", {}).n("KendraRankingClient", "DeleteRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_DeleteRescoreExecutionPlanCommand).de(de_DeleteRescoreExecutionPlanCommand).build() {
805
+ static {
806
+ __name(this, "DeleteRescoreExecutionPlanCommand");
807
+ }
782
808
  };
783
- __name(_DeleteRescoreExecutionPlanCommand, "DeleteRescoreExecutionPlanCommand");
784
- var DeleteRescoreExecutionPlanCommand = _DeleteRescoreExecutionPlanCommand;
785
809
 
786
810
  // src/commands/DescribeRescoreExecutionPlanCommand.ts
787
811
 
788
812
 
789
813
 
790
- var _DescribeRescoreExecutionPlanCommand = class _DescribeRescoreExecutionPlanCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
814
+ var DescribeRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
791
815
  return [
792
816
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
793
817
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
794
818
  ];
795
819
  }).s("AWSKendraRerankingFrontendService", "DescribeRescoreExecutionPlan", {}).n("KendraRankingClient", "DescribeRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_DescribeRescoreExecutionPlanCommand).de(de_DescribeRescoreExecutionPlanCommand).build() {
820
+ static {
821
+ __name(this, "DescribeRescoreExecutionPlanCommand");
822
+ }
796
823
  };
797
- __name(_DescribeRescoreExecutionPlanCommand, "DescribeRescoreExecutionPlanCommand");
798
- var DescribeRescoreExecutionPlanCommand = _DescribeRescoreExecutionPlanCommand;
799
824
 
800
825
  // src/commands/ListRescoreExecutionPlansCommand.ts
801
826
 
802
827
 
803
828
 
804
- var _ListRescoreExecutionPlansCommand = class _ListRescoreExecutionPlansCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
829
+ var ListRescoreExecutionPlansCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
805
830
  return [
806
831
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
807
832
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
808
833
  ];
809
834
  }).s("AWSKendraRerankingFrontendService", "ListRescoreExecutionPlans", {}).n("KendraRankingClient", "ListRescoreExecutionPlansCommand").f(void 0, void 0).ser(se_ListRescoreExecutionPlansCommand).de(de_ListRescoreExecutionPlansCommand).build() {
835
+ static {
836
+ __name(this, "ListRescoreExecutionPlansCommand");
837
+ }
810
838
  };
811
- __name(_ListRescoreExecutionPlansCommand, "ListRescoreExecutionPlansCommand");
812
- var ListRescoreExecutionPlansCommand = _ListRescoreExecutionPlansCommand;
813
839
 
814
840
  // src/commands/ListTagsForResourceCommand.ts
815
841
 
816
842
 
817
843
 
818
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
844
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
819
845
  return [
820
846
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
821
847
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
822
848
  ];
823
849
  }).s("AWSKendraRerankingFrontendService", "ListTagsForResource", {}).n("KendraRankingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
850
+ static {
851
+ __name(this, "ListTagsForResourceCommand");
852
+ }
824
853
  };
825
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
826
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
827
854
 
828
855
  // src/commands/RescoreCommand.ts
829
856
 
830
857
 
831
858
 
832
- var _RescoreCommand = class _RescoreCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
859
+ var RescoreCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
833
860
  return [
834
861
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
835
862
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
836
863
  ];
837
864
  }).s("AWSKendraRerankingFrontendService", "Rescore", {}).n("KendraRankingClient", "RescoreCommand").f(void 0, void 0).ser(se_RescoreCommand).de(de_RescoreCommand).build() {
865
+ static {
866
+ __name(this, "RescoreCommand");
867
+ }
838
868
  };
839
- __name(_RescoreCommand, "RescoreCommand");
840
- var RescoreCommand = _RescoreCommand;
841
869
 
842
870
  // src/commands/TagResourceCommand.ts
843
871
 
844
872
 
845
873
 
846
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
874
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
847
875
  return [
848
876
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
849
877
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
850
878
  ];
851
879
  }).s("AWSKendraRerankingFrontendService", "TagResource", {}).n("KendraRankingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
880
+ static {
881
+ __name(this, "TagResourceCommand");
882
+ }
852
883
  };
853
- __name(_TagResourceCommand, "TagResourceCommand");
854
- var TagResourceCommand = _TagResourceCommand;
855
884
 
856
885
  // src/commands/UntagResourceCommand.ts
857
886
 
858
887
 
859
888
 
860
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
889
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
861
890
  return [
862
891
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
863
892
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
864
893
  ];
865
894
  }).s("AWSKendraRerankingFrontendService", "UntagResource", {}).n("KendraRankingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
895
+ static {
896
+ __name(this, "UntagResourceCommand");
897
+ }
866
898
  };
867
- __name(_UntagResourceCommand, "UntagResourceCommand");
868
- var UntagResourceCommand = _UntagResourceCommand;
869
899
 
870
900
  // src/commands/UpdateRescoreExecutionPlanCommand.ts
871
901
 
872
902
 
873
903
 
874
- var _UpdateRescoreExecutionPlanCommand = class _UpdateRescoreExecutionPlanCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
904
+ var UpdateRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
875
905
  return [
876
906
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
877
907
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
878
908
  ];
879
909
  }).s("AWSKendraRerankingFrontendService", "UpdateRescoreExecutionPlan", {}).n("KendraRankingClient", "UpdateRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_UpdateRescoreExecutionPlanCommand).de(de_UpdateRescoreExecutionPlanCommand).build() {
910
+ static {
911
+ __name(this, "UpdateRescoreExecutionPlanCommand");
912
+ }
880
913
  };
881
- __name(_UpdateRescoreExecutionPlanCommand, "UpdateRescoreExecutionPlanCommand");
882
- var UpdateRescoreExecutionPlanCommand = _UpdateRescoreExecutionPlanCommand;
883
914
 
884
915
  // src/KendraRanking.ts
885
916
  var commands = {
@@ -893,10 +924,11 @@ var commands = {
893
924
  UntagResourceCommand,
894
925
  UpdateRescoreExecutionPlanCommand
895
926
  };
896
- var _KendraRanking = class _KendraRanking extends KendraRankingClient {
927
+ var KendraRanking = class extends KendraRankingClient {
928
+ static {
929
+ __name(this, "KendraRanking");
930
+ }
897
931
  };
898
- __name(_KendraRanking, "KendraRanking");
899
- var KendraRanking = _KendraRanking;
900
932
  (0, import_smithy_client.createAggregatedClient)(commands, KendraRanking);
901
933
 
902
934
  // src/pagination/ListRescoreExecutionPlansPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class KendraRankingClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,91 +1,98 @@
1
1
  import { KendraRankingServiceException as __BaseException } from "./KendraRankingServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
3
6
  constructor(opts) {
4
7
  super({
5
8
  name: "AccessDeniedException",
6
9
  $fault: "client",
7
10
  ...opts,
8
11
  });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
13
  this.Message = opts.Message;
13
14
  }
14
15
  }
15
16
  export class ConflictException extends __BaseException {
17
+ name = "ConflictException";
18
+ $fault = "client";
19
+ Message;
16
20
  constructor(opts) {
17
21
  super({
18
22
  name: "ConflictException",
19
23
  $fault: "client",
20
24
  ...opts,
21
25
  });
22
- this.name = "ConflictException";
23
- this.$fault = "client";
24
26
  Object.setPrototypeOf(this, ConflictException.prototype);
25
27
  this.Message = opts.Message;
26
28
  }
27
29
  }
28
30
  export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ Message;
29
34
  constructor(opts) {
30
35
  super({
31
36
  name: "InternalServerException",
32
37
  $fault: "server",
33
38
  ...opts,
34
39
  });
35
- this.name = "InternalServerException";
36
- this.$fault = "server";
37
40
  Object.setPrototypeOf(this, InternalServerException.prototype);
38
41
  this.Message = opts.Message;
39
42
  }
40
43
  }
41
44
  export class ServiceQuotaExceededException extends __BaseException {
45
+ name = "ServiceQuotaExceededException";
46
+ $fault = "client";
47
+ Message;
42
48
  constructor(opts) {
43
49
  super({
44
50
  name: "ServiceQuotaExceededException",
45
51
  $fault: "client",
46
52
  ...opts,
47
53
  });
48
- this.name = "ServiceQuotaExceededException";
49
- this.$fault = "client";
50
54
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
51
55
  this.Message = opts.Message;
52
56
  }
53
57
  }
54
58
  export class ThrottlingException extends __BaseException {
59
+ name = "ThrottlingException";
60
+ $fault = "client";
61
+ Message;
55
62
  constructor(opts) {
56
63
  super({
57
64
  name: "ThrottlingException",
58
65
  $fault: "client",
59
66
  ...opts,
60
67
  });
61
- this.name = "ThrottlingException";
62
- this.$fault = "client";
63
68
  Object.setPrototypeOf(this, ThrottlingException.prototype);
64
69
  this.Message = opts.Message;
65
70
  }
66
71
  }
67
72
  export class ValidationException extends __BaseException {
73
+ name = "ValidationException";
74
+ $fault = "client";
75
+ Message;
68
76
  constructor(opts) {
69
77
  super({
70
78
  name: "ValidationException",
71
79
  $fault: "client",
72
80
  ...opts,
73
81
  });
74
- this.name = "ValidationException";
75
- this.$fault = "client";
76
82
  Object.setPrototypeOf(this, ValidationException.prototype);
77
83
  this.Message = opts.Message;
78
84
  }
79
85
  }
80
86
  export class ResourceNotFoundException extends __BaseException {
87
+ name = "ResourceNotFoundException";
88
+ $fault = "client";
89
+ Message;
81
90
  constructor(opts) {
82
91
  super({
83
92
  name: "ResourceNotFoundException",
84
93
  $fault: "client",
85
94
  ...opts,
86
95
  });
87
- this.name = "ResourceNotFoundException";
88
- this.$fault = "client";
89
96
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
90
97
  this.Message = opts.Message;
91
98
  }
@@ -98,14 +105,15 @@ export const RescoreExecutionPlanStatus = {
98
105
  UPDATING: "UPDATING",
99
106
  };
100
107
  export class ResourceUnavailableException extends __BaseException {
108
+ name = "ResourceUnavailableException";
109
+ $fault = "client";
110
+ Message;
101
111
  constructor(opts) {
102
112
  super({
103
113
  name: "ResourceUnavailableException",
104
114
  $fault: "client",
105
115
  ...opts,
106
116
  });
107
- this.name = "ResourceUnavailableException";
108
- this.$fault = "client";
109
117
  Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
110
118
  this.Message = opts.Message;
111
119
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: KendraRankingClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.716.0",
4
+ "version": "3.723.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,58 +20,58 @@
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.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "@types/uuid": "^9.0.1",
62
62
  "tslib": "^2.6.2",
63
63
  "uuid": "^9.0.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@tsconfig/node16": "16.1.3",
67
- "@types/node": "^16.18.96",
66
+ "@tsconfig/node18": "18.2.4",
67
+ "@types/node": "^18.19.69",
68
68
  "concurrently": "7.0.0",
69
69
  "downlevel-dts": "0.10.1",
70
70
  "rimraf": "3.0.2",
71
- "typescript": "~4.9.5"
71
+ "typescript": "~5.2.2"
72
72
  },
73
73
  "engines": {
74
- "node": ">=16.0.0"
74
+ "node": ">=18.0.0"
75
75
  },
76
76
  "typesVersions": {
77
77
  "<4.0": {