@aws-sdk/client-kendra-ranking 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultKendraRankingHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateRescoreExecutionPlan$, DeleteRescoreExecutionPlan$, DescribeRescoreExecutionPlan$, ListRescoreExecutionPlans$, ListTagsForResource$, Rescore$, TagResource$, UntagResource$, UpdateRescoreExecutionPlan$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { KendraRankingServiceException } = require("./models/KendraRankingServiceException");
18
- exports.KendraRankingServiceException = KendraRankingServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultKendraRankingHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "kendra-ranking",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultKendraRankingHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -29,6 +66,533 @@ const commonParams = {
29
66
  Region: { type: "builtInParams", name: "region" },
30
67
  };
31
68
 
69
+ var version = "3.1076.0";
70
+ var packageInfo = {
71
+ version: version};
72
+
73
+ const j = "ref";
74
+ const a = true, b = "isSet", c = "PartitionResult", d = "booleanEquals", e = "getAttr", f = { [j]: "Endpoint" }, g = { [j]: c }, h = {}, i = [{ [j]: "Region" }];
75
+ const _data = {
76
+ conditions: [
77
+ [b, [f]],
78
+ [b, i],
79
+ ["aws.partition", i, c],
80
+ [d, [{ [j]: "UseFIPS" }, a]],
81
+ [d, [{ fn: e, argv: [g, "supportsFIPS"] }, a]],
82
+ [d, [{ fn: e, argv: [g, "supportsDualStack"] }, a]]
83
+ ],
84
+ results: [
85
+ [-1],
86
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
87
+ [f, h],
88
+ ["https://kendra-ranking-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", h],
89
+ [-1, "FIPS is enabled but this partition does not support FIPS"],
90
+ ["https://kendra-ranking.{Region}.{PartitionResult#dualStackDnsSuffix}", h],
91
+ ["https://kendra-ranking-fips.{Region}.{PartitionResult#dnsSuffix}", h],
92
+ ["https://kendra-ranking.{Region}.{PartitionResult#dnsSuffix}", h],
93
+ [-1, "Invalid Configuration: Missing Region"]
94
+ ]
95
+ };
96
+ const root = 2;
97
+ const r = 100_000_000;
98
+ const nodes = new Int32Array([
99
+ -1, 1, -1,
100
+ 0, 9, 3,
101
+ 1, 4, r + 8,
102
+ 2, 5, r + 8,
103
+ 3, 7, 6,
104
+ 5, r + 5, r + 7,
105
+ 4, 8, r + 4,
106
+ 5, r + 3, r + 6,
107
+ 3, r + 1, r + 2,
108
+ ]);
109
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
110
+
111
+ const cache = new EndpointCache({
112
+ size: 50,
113
+ params: ["Endpoint", "Region", "UseFIPS"],
114
+ });
115
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
116
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
117
+ endpointParams: endpointParams,
118
+ logger: context.logger,
119
+ }));
120
+ };
121
+ customEndpointFunctions.aws = awsEndpointFunctions;
122
+
123
+ class KendraRankingServiceException extends ServiceException {
124
+ constructor(options) {
125
+ super(options);
126
+ Object.setPrototypeOf(this, KendraRankingServiceException.prototype);
127
+ }
128
+ }
129
+
130
+ class AccessDeniedException extends KendraRankingServiceException {
131
+ name = "AccessDeniedException";
132
+ $fault = "client";
133
+ Message;
134
+ constructor(opts) {
135
+ super({
136
+ name: "AccessDeniedException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
141
+ this.Message = opts.Message;
142
+ }
143
+ }
144
+ class ConflictException extends KendraRankingServiceException {
145
+ name = "ConflictException";
146
+ $fault = "client";
147
+ Message;
148
+ constructor(opts) {
149
+ super({
150
+ name: "ConflictException",
151
+ $fault: "client",
152
+ ...opts,
153
+ });
154
+ Object.setPrototypeOf(this, ConflictException.prototype);
155
+ this.Message = opts.Message;
156
+ }
157
+ }
158
+ class InternalServerException extends KendraRankingServiceException {
159
+ name = "InternalServerException";
160
+ $fault = "server";
161
+ Message;
162
+ constructor(opts) {
163
+ super({
164
+ name: "InternalServerException",
165
+ $fault: "server",
166
+ ...opts,
167
+ });
168
+ Object.setPrototypeOf(this, InternalServerException.prototype);
169
+ this.Message = opts.Message;
170
+ }
171
+ }
172
+ class ServiceQuotaExceededException extends KendraRankingServiceException {
173
+ name = "ServiceQuotaExceededException";
174
+ $fault = "client";
175
+ Message;
176
+ constructor(opts) {
177
+ super({
178
+ name: "ServiceQuotaExceededException",
179
+ $fault: "client",
180
+ ...opts,
181
+ });
182
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
183
+ this.Message = opts.Message;
184
+ }
185
+ }
186
+ class ThrottlingException extends KendraRankingServiceException {
187
+ name = "ThrottlingException";
188
+ $fault = "client";
189
+ Message;
190
+ constructor(opts) {
191
+ super({
192
+ name: "ThrottlingException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
197
+ this.Message = opts.Message;
198
+ }
199
+ }
200
+ class ValidationException extends KendraRankingServiceException {
201
+ name = "ValidationException";
202
+ $fault = "client";
203
+ Message;
204
+ constructor(opts) {
205
+ super({
206
+ name: "ValidationException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, ValidationException.prototype);
211
+ this.Message = opts.Message;
212
+ }
213
+ }
214
+ class ResourceNotFoundException extends KendraRankingServiceException {
215
+ name = "ResourceNotFoundException";
216
+ $fault = "client";
217
+ Message;
218
+ constructor(opts) {
219
+ super({
220
+ name: "ResourceNotFoundException",
221
+ $fault: "client",
222
+ ...opts,
223
+ });
224
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
225
+ this.Message = opts.Message;
226
+ }
227
+ }
228
+ class ResourceUnavailableException extends KendraRankingServiceException {
229
+ name = "ResourceUnavailableException";
230
+ $fault = "client";
231
+ Message;
232
+ constructor(opts) {
233
+ super({
234
+ name: "ResourceUnavailableException",
235
+ $fault: "client",
236
+ ...opts,
237
+ });
238
+ Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
239
+ this.Message = opts.Message;
240
+ }
241
+ }
242
+
243
+ const _A = "Arn";
244
+ const _ADE = "AccessDeniedException";
245
+ const _B = "Body";
246
+ const _CA = "CreatedAt";
247
+ const _CE = "ConflictException";
248
+ const _CREP = "CreateRescoreExecutionPlan";
249
+ const _CREPR = "CreateRescoreExecutionPlanRequest";
250
+ const _CREPRr = "CreateRescoreExecutionPlanResponse";
251
+ const _CT = "ClientToken";
252
+ const _CU = "CapacityUnits";
253
+ const _CUC = "CapacityUnitsConfiguration";
254
+ const _D = "Description";
255
+ const _DI = "DocumentId";
256
+ const _DL = "DocumentList";
257
+ const _DREP = "DeleteRescoreExecutionPlan";
258
+ const _DREPR = "DeleteRescoreExecutionPlanRequest";
259
+ const _DREPRe = "DescribeRescoreExecutionPlanRequest";
260
+ const _DREPRes = "DescribeRescoreExecutionPlanResponse";
261
+ const _DREPe = "DescribeRescoreExecutionPlan";
262
+ const _Do = "Document";
263
+ const _Doc = "Documents";
264
+ const _EM = "ErrorMessage";
265
+ const _GI = "GroupId";
266
+ const _I = "Id";
267
+ const _ISE = "InternalServerException";
268
+ const _K = "Key";
269
+ const _LREP = "ListRescoreExecutionPlans";
270
+ const _LREPR = "ListRescoreExecutionPlansRequest";
271
+ const _LREPRi = "ListRescoreExecutionPlansResponse";
272
+ const _LTFR = "ListTagsForResource";
273
+ const _LTFRR = "ListTagsForResourceRequest";
274
+ const _LTFRRi = "ListTagsForResourceResponse";
275
+ const _M = "Message";
276
+ const _MR = "MaxResults";
277
+ const _N = "Name";
278
+ const _NT = "NextToken";
279
+ const _OS = "OriginalScore";
280
+ const _R = "Rescore";
281
+ const _RARN = "ResourceARN";
282
+ const _RCU = "RescoreCapacityUnits";
283
+ const _REPI = "RescoreExecutionPlanId";
284
+ const _REPS = "RescoreExecutionPlanSummary";
285
+ const _REPSL = "RescoreExecutionPlanSummaryList";
286
+ const _RI = "RescoreId";
287
+ const _RIe = "ResultItems";
288
+ const _RNFE = "ResourceNotFoundException";
289
+ const _RR = "RescoreRequest";
290
+ const _RRI = "RescoreResultItem";
291
+ const _RRIL = "RescoreResultItemList";
292
+ const _RRe = "RescoreResult";
293
+ const _RUE = "ResourceUnavailableException";
294
+ const _S = "Status";
295
+ const _SI = "SummaryItems";
296
+ const _SQ = "SearchQuery";
297
+ const _SQEE = "ServiceQuotaExceededException";
298
+ const _Sc = "Score";
299
+ const _T = "Tags";
300
+ const _TB = "TokenizedBody";
301
+ const _TE = "ThrottlingException";
302
+ const _TK = "TagKeys";
303
+ const _TL = "TagList";
304
+ const _TR = "TagResource";
305
+ const _TRR = "TagResourceRequest";
306
+ const _TRRa = "TagResourceResponse";
307
+ const _TT = "TokenizedTitle";
308
+ const _Ta = "Tag";
309
+ const _Ti = "Title";
310
+ const _UA = "UpdatedAt";
311
+ const _UR = "UntagResource";
312
+ const _UREP = "UpdateRescoreExecutionPlan";
313
+ const _UREPR = "UpdateRescoreExecutionPlanRequest";
314
+ const _URR = "UntagResourceRequest";
315
+ const _URRn = "UntagResourceResponse";
316
+ const _V = "Value";
317
+ const _VE = "ValidationException";
318
+ const _c = "client";
319
+ const _e = "error";
320
+ const _h = "http";
321
+ const _hE = "httpError";
322
+ const _hQ = "httpQuery";
323
+ const _mR = "maxResults";
324
+ const _nT = "nextToken";
325
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kendraranking";
326
+ const _se = "server";
327
+ const n0 = "com.amazonaws.kendraranking";
328
+ const _s_registry = TypeRegistry.for(_s);
329
+ var KendraRankingServiceException$ = [-3, _s, "KendraRankingServiceException", 0, [], []];
330
+ _s_registry.registerError(KendraRankingServiceException$, KendraRankingServiceException);
331
+ const n0_registry = TypeRegistry.for(n0);
332
+ var AccessDeniedException$ = [-3, n0, _ADE,
333
+ { [_e]: _c, [_hE]: 403 },
334
+ [_M],
335
+ [0]
336
+ ];
337
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
338
+ var ConflictException$ = [-3, n0, _CE,
339
+ { [_e]: _c, [_hE]: 409 },
340
+ [_M],
341
+ [0]
342
+ ];
343
+ n0_registry.registerError(ConflictException$, ConflictException);
344
+ var InternalServerException$ = [-3, n0, _ISE,
345
+ { [_e]: _se, [_hE]: 500 },
346
+ [_M],
347
+ [0]
348
+ ];
349
+ n0_registry.registerError(InternalServerException$, InternalServerException);
350
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
351
+ { [_e]: _c, [_hE]: 404 },
352
+ [_M],
353
+ [0]
354
+ ];
355
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
356
+ var ResourceUnavailableException$ = [-3, n0, _RUE,
357
+ { [_e]: _c, [_hE]: 404 },
358
+ [_M],
359
+ [0]
360
+ ];
361
+ n0_registry.registerError(ResourceUnavailableException$, ResourceUnavailableException);
362
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
363
+ { [_e]: _c, [_hE]: 402 },
364
+ [_M],
365
+ [0]
366
+ ];
367
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
368
+ var ThrottlingException$ = [-3, n0, _TE,
369
+ { [_e]: _c, [_hE]: 429 },
370
+ [_M],
371
+ [0]
372
+ ];
373
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
374
+ var ValidationException$ = [-3, n0, _VE,
375
+ { [_e]: _c, [_hE]: 400 },
376
+ [_M],
377
+ [0]
378
+ ];
379
+ n0_registry.registerError(ValidationException$, ValidationException);
380
+ const errorTypeRegistries = [
381
+ _s_registry,
382
+ n0_registry,
383
+ ];
384
+ var CapacityUnitsConfiguration$ = [3, n0, _CUC,
385
+ 0,
386
+ [_RCU],
387
+ [1], 1
388
+ ];
389
+ var CreateRescoreExecutionPlanRequest$ = [3, n0, _CREPR,
390
+ 0,
391
+ [_N, _D, _CU, _T, _CT],
392
+ [0, 0, () => CapacityUnitsConfiguration$, () => TagList, [0, 4]], 1
393
+ ];
394
+ var CreateRescoreExecutionPlanResponse$ = [3, n0, _CREPRr,
395
+ 0,
396
+ [_I, _A],
397
+ [0, 0], 2
398
+ ];
399
+ var DeleteRescoreExecutionPlanRequest$ = [3, n0, _DREPR,
400
+ 0,
401
+ [_I],
402
+ [[0, 1]], 1
403
+ ];
404
+ var DescribeRescoreExecutionPlanRequest$ = [3, n0, _DREPRe,
405
+ 0,
406
+ [_I],
407
+ [[0, 1]], 1
408
+ ];
409
+ var DescribeRescoreExecutionPlanResponse$ = [3, n0, _DREPRes,
410
+ 0,
411
+ [_I, _A, _N, _D, _CU, _CA, _UA, _S, _EM],
412
+ [0, 0, 0, 0, () => CapacityUnitsConfiguration$, 4, 4, 0, 0]
413
+ ];
414
+ var Document$ = [3, n0, _Do,
415
+ 0,
416
+ [_I, _OS, _GI, _Ti, _B, _TT, _TB],
417
+ [0, 1, 0, 0, 0, 64 | 0, 64 | 0], 2
418
+ ];
419
+ var ListRescoreExecutionPlansRequest$ = [3, n0, _LREPR,
420
+ 0,
421
+ [_NT, _MR],
422
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
423
+ ];
424
+ var ListRescoreExecutionPlansResponse$ = [3, n0, _LREPRi,
425
+ 0,
426
+ [_SI, _NT],
427
+ [() => RescoreExecutionPlanSummaryList, 0]
428
+ ];
429
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
430
+ 0,
431
+ [_RARN],
432
+ [0], 1
433
+ ];
434
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
435
+ 0,
436
+ [_T],
437
+ [() => TagList]
438
+ ];
439
+ var RescoreExecutionPlanSummary$ = [3, n0, _REPS,
440
+ 0,
441
+ [_N, _I, _CA, _UA, _S],
442
+ [0, 0, 4, 4, 0]
443
+ ];
444
+ var RescoreRequest$ = [3, n0, _RR,
445
+ 0,
446
+ [_REPI, _SQ, _Doc],
447
+ [[0, 1], 0, () => DocumentList], 3
448
+ ];
449
+ var RescoreResult$ = [3, n0, _RRe,
450
+ 0,
451
+ [_RI, _RIe],
452
+ [0, () => RescoreResultItemList]
453
+ ];
454
+ var RescoreResultItem$ = [3, n0, _RRI,
455
+ 0,
456
+ [_DI, _Sc],
457
+ [0, 1]
458
+ ];
459
+ var Tag$ = [3, n0, _Ta,
460
+ 0,
461
+ [_K, _V],
462
+ [0, 0], 2
463
+ ];
464
+ var TagResourceRequest$ = [3, n0, _TRR,
465
+ 0,
466
+ [_RARN, _T],
467
+ [0, () => TagList], 2
468
+ ];
469
+ var TagResourceResponse$ = [3, n0, _TRRa,
470
+ 0,
471
+ [],
472
+ []
473
+ ];
474
+ var UntagResourceRequest$ = [3, n0, _URR,
475
+ 0,
476
+ [_RARN, _TK],
477
+ [0, 64 | 0], 2
478
+ ];
479
+ var UntagResourceResponse$ = [3, n0, _URRn,
480
+ 0,
481
+ [],
482
+ []
483
+ ];
484
+ var UpdateRescoreExecutionPlanRequest$ = [3, n0, _UREPR,
485
+ 0,
486
+ [_I, _N, _D, _CU],
487
+ [[0, 1], 0, 0, () => CapacityUnitsConfiguration$], 1
488
+ ];
489
+ var __Unit = "unit";
490
+ var DocumentList = [1, n0, _DL,
491
+ 0, () => Document$
492
+ ];
493
+ var RescoreExecutionPlanSummaryList = [1, n0, _REPSL,
494
+ 0, () => RescoreExecutionPlanSummary$
495
+ ];
496
+ var RescoreResultItemList = [1, n0, _RRIL,
497
+ 0, () => RescoreResultItem$
498
+ ];
499
+ var TagList = [1, n0, _TL,
500
+ 0, () => Tag$
501
+ ];
502
+ var CreateRescoreExecutionPlan$ = [9, n0, _CREP,
503
+ { [_h]: ["POST", "/rescore-execution-plans", 200] }, () => CreateRescoreExecutionPlanRequest$, () => CreateRescoreExecutionPlanResponse$
504
+ ];
505
+ var DeleteRescoreExecutionPlan$ = [9, n0, _DREP,
506
+ { [_h]: ["DELETE", "/rescore-execution-plans/{Id}", 200] }, () => DeleteRescoreExecutionPlanRequest$, () => __Unit
507
+ ];
508
+ var DescribeRescoreExecutionPlan$ = [9, n0, _DREPe,
509
+ { [_h]: ["GET", "/rescore-execution-plans/{Id}", 200] }, () => DescribeRescoreExecutionPlanRequest$, () => DescribeRescoreExecutionPlanResponse$
510
+ ];
511
+ var ListRescoreExecutionPlans$ = [9, n0, _LREP,
512
+ { [_h]: ["GET", "/rescore-execution-plans", 200] }, () => ListRescoreExecutionPlansRequest$, () => ListRescoreExecutionPlansResponse$
513
+ ];
514
+ var ListTagsForResource$ = [9, n0, _LTFR,
515
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
516
+ ];
517
+ var Rescore$ = [9, n0, _R,
518
+ { [_h]: ["POST", "/rescore-execution-plans/{RescoreExecutionPlanId}/rescore", 200] }, () => RescoreRequest$, () => RescoreResult$
519
+ ];
520
+ var TagResource$ = [9, n0, _TR,
521
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
522
+ ];
523
+ var UntagResource$ = [9, n0, _UR,
524
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
525
+ ];
526
+ var UpdateRescoreExecutionPlan$ = [9, n0, _UREP,
527
+ { [_h]: ["PUT", "/rescore-execution-plans/{Id}", 200] }, () => UpdateRescoreExecutionPlanRequest$, () => __Unit
528
+ ];
529
+
530
+ const getRuntimeConfig$1 = (config) => {
531
+ return {
532
+ apiVersion: "2022-10-19",
533
+ base64Decoder: config?.base64Decoder ?? fromBase64,
534
+ base64Encoder: config?.base64Encoder ?? toBase64,
535
+ disableHostPrefix: config?.disableHostPrefix ?? false,
536
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
537
+ extensions: config?.extensions ?? [],
538
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultKendraRankingHttpAuthSchemeProvider,
539
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
540
+ {
541
+ schemeId: "aws.auth#sigv4",
542
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
543
+ signer: new AwsSdkSigV4Signer(),
544
+ },
545
+ ],
546
+ logger: config?.logger ?? new NoOpLogger(),
547
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
548
+ protocolSettings: config?.protocolSettings ?? {
549
+ defaultNamespace: "com.amazonaws.kendraranking",
550
+ errorTypeRegistries,
551
+ version: "2022-10-19",
552
+ serviceTarget: "AWSKendraRerankingFrontendService",
553
+ },
554
+ serviceId: config?.serviceId ?? "Kendra Ranking",
555
+ sha256: config?.sha256 ?? Sha256,
556
+ urlParser: config?.urlParser ?? parseUrl,
557
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
558
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
559
+ };
560
+ };
561
+
562
+ const getRuntimeConfig = (config) => {
563
+ emitWarningIfUnsupportedVersion(process.version);
564
+ const defaultsMode = resolveDefaultsModeConfig(config);
565
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
566
+ const clientSharedValues = getRuntimeConfig$1(config);
567
+ emitWarningIfUnsupportedVersion$1(process.version);
568
+ const loaderConfig = {
569
+ profile: config?.profile,
570
+ logger: clientSharedValues.logger,
571
+ };
572
+ return {
573
+ ...clientSharedValues,
574
+ ...config,
575
+ runtime: "node",
576
+ defaultsMode,
577
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
578
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
579
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
580
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
581
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
582
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
583
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
584
+ retryMode: config?.retryMode ??
585
+ loadConfig({
586
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
587
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
588
+ }, config),
589
+ streamCollector: config?.streamCollector ?? streamCollector,
590
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
591
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
592
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
593
+ };
594
+ };
595
+
32
596
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
597
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
598
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -245,16 +809,65 @@ const RescoreExecutionPlanStatus = {
245
809
  UPDATING: "UPDATING",
246
810
  };
247
811
 
812
+ exports.AccessDeniedException = AccessDeniedException;
813
+ exports.AccessDeniedException$ = AccessDeniedException$;
814
+ exports.CapacityUnitsConfiguration$ = CapacityUnitsConfiguration$;
815
+ exports.ConflictException = ConflictException;
816
+ exports.ConflictException$ = ConflictException$;
817
+ exports.CreateRescoreExecutionPlan$ = CreateRescoreExecutionPlan$;
248
818
  exports.CreateRescoreExecutionPlanCommand = CreateRescoreExecutionPlanCommand;
819
+ exports.CreateRescoreExecutionPlanRequest$ = CreateRescoreExecutionPlanRequest$;
820
+ exports.CreateRescoreExecutionPlanResponse$ = CreateRescoreExecutionPlanResponse$;
821
+ exports.DeleteRescoreExecutionPlan$ = DeleteRescoreExecutionPlan$;
249
822
  exports.DeleteRescoreExecutionPlanCommand = DeleteRescoreExecutionPlanCommand;
823
+ exports.DeleteRescoreExecutionPlanRequest$ = DeleteRescoreExecutionPlanRequest$;
824
+ exports.DescribeRescoreExecutionPlan$ = DescribeRescoreExecutionPlan$;
250
825
  exports.DescribeRescoreExecutionPlanCommand = DescribeRescoreExecutionPlanCommand;
826
+ exports.DescribeRescoreExecutionPlanRequest$ = DescribeRescoreExecutionPlanRequest$;
827
+ exports.DescribeRescoreExecutionPlanResponse$ = DescribeRescoreExecutionPlanResponse$;
828
+ exports.Document$ = Document$;
829
+ exports.InternalServerException = InternalServerException;
830
+ exports.InternalServerException$ = InternalServerException$;
251
831
  exports.KendraRanking = KendraRanking;
252
832
  exports.KendraRankingClient = KendraRankingClient;
833
+ exports.KendraRankingServiceException = KendraRankingServiceException;
834
+ exports.KendraRankingServiceException$ = KendraRankingServiceException$;
835
+ exports.ListRescoreExecutionPlans$ = ListRescoreExecutionPlans$;
253
836
  exports.ListRescoreExecutionPlansCommand = ListRescoreExecutionPlansCommand;
837
+ exports.ListRescoreExecutionPlansRequest$ = ListRescoreExecutionPlansRequest$;
838
+ exports.ListRescoreExecutionPlansResponse$ = ListRescoreExecutionPlansResponse$;
839
+ exports.ListTagsForResource$ = ListTagsForResource$;
254
840
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
841
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
842
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
843
+ exports.Rescore$ = Rescore$;
255
844
  exports.RescoreCommand = RescoreCommand;
256
845
  exports.RescoreExecutionPlanStatus = RescoreExecutionPlanStatus;
846
+ exports.RescoreExecutionPlanSummary$ = RescoreExecutionPlanSummary$;
847
+ exports.RescoreRequest$ = RescoreRequest$;
848
+ exports.RescoreResult$ = RescoreResult$;
849
+ exports.RescoreResultItem$ = RescoreResultItem$;
850
+ exports.ResourceNotFoundException = ResourceNotFoundException;
851
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
852
+ exports.ResourceUnavailableException = ResourceUnavailableException;
853
+ exports.ResourceUnavailableException$ = ResourceUnavailableException$;
854
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
855
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
856
+ exports.Tag$ = Tag$;
857
+ exports.TagResource$ = TagResource$;
257
858
  exports.TagResourceCommand = TagResourceCommand;
859
+ exports.TagResourceRequest$ = TagResourceRequest$;
860
+ exports.TagResourceResponse$ = TagResourceResponse$;
861
+ exports.ThrottlingException = ThrottlingException;
862
+ exports.ThrottlingException$ = ThrottlingException$;
863
+ exports.UntagResource$ = UntagResource$;
258
864
  exports.UntagResourceCommand = UntagResourceCommand;
865
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
866
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
867
+ exports.UpdateRescoreExecutionPlan$ = UpdateRescoreExecutionPlan$;
259
868
  exports.UpdateRescoreExecutionPlanCommand = UpdateRescoreExecutionPlanCommand;
869
+ exports.UpdateRescoreExecutionPlanRequest$ = UpdateRescoreExecutionPlanRequest$;
870
+ exports.ValidationException = ValidationException;
871
+ exports.ValidationException$ = ValidationException$;
872
+ exports.errorTypeRegistries = errorTypeRegistries;
260
873
  exports.paginateListRescoreExecutionPlans = paginateListRescoreExecutionPlans;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),