@aws-sdk/client-kendra-ranking 3.987.0 → 3.988.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 +28 -458
- package/dist-cjs/models/KendraRankingServiceException.js +12 -0
- package/dist-cjs/models/errors.js +124 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +295 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +53 -47
- package/dist-types/schemas/schemas_0.d.ts +15 -8
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -8
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var KendraRankingServiceException = require('./models/KendraRankingServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -108,407 +111,6 @@ class KendraRankingClient extends smithyClient.Client {
|
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class KendraRankingServiceException extends smithyClient.ServiceException {
|
|
112
|
-
constructor(options) {
|
|
113
|
-
super(options);
|
|
114
|
-
Object.setPrototypeOf(this, KendraRankingServiceException.prototype);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
class AccessDeniedException extends KendraRankingServiceException {
|
|
119
|
-
name = "AccessDeniedException";
|
|
120
|
-
$fault = "client";
|
|
121
|
-
Message;
|
|
122
|
-
constructor(opts) {
|
|
123
|
-
super({
|
|
124
|
-
name: "AccessDeniedException",
|
|
125
|
-
$fault: "client",
|
|
126
|
-
...opts,
|
|
127
|
-
});
|
|
128
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
129
|
-
this.Message = opts.Message;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
class ConflictException extends KendraRankingServiceException {
|
|
133
|
-
name = "ConflictException";
|
|
134
|
-
$fault = "client";
|
|
135
|
-
Message;
|
|
136
|
-
constructor(opts) {
|
|
137
|
-
super({
|
|
138
|
-
name: "ConflictException",
|
|
139
|
-
$fault: "client",
|
|
140
|
-
...opts,
|
|
141
|
-
});
|
|
142
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
143
|
-
this.Message = opts.Message;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
class InternalServerException extends KendraRankingServiceException {
|
|
147
|
-
name = "InternalServerException";
|
|
148
|
-
$fault = "server";
|
|
149
|
-
Message;
|
|
150
|
-
constructor(opts) {
|
|
151
|
-
super({
|
|
152
|
-
name: "InternalServerException",
|
|
153
|
-
$fault: "server",
|
|
154
|
-
...opts,
|
|
155
|
-
});
|
|
156
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
157
|
-
this.Message = opts.Message;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
class ServiceQuotaExceededException extends KendraRankingServiceException {
|
|
161
|
-
name = "ServiceQuotaExceededException";
|
|
162
|
-
$fault = "client";
|
|
163
|
-
Message;
|
|
164
|
-
constructor(opts) {
|
|
165
|
-
super({
|
|
166
|
-
name: "ServiceQuotaExceededException",
|
|
167
|
-
$fault: "client",
|
|
168
|
-
...opts,
|
|
169
|
-
});
|
|
170
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
171
|
-
this.Message = opts.Message;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
class ThrottlingException extends KendraRankingServiceException {
|
|
175
|
-
name = "ThrottlingException";
|
|
176
|
-
$fault = "client";
|
|
177
|
-
Message;
|
|
178
|
-
constructor(opts) {
|
|
179
|
-
super({
|
|
180
|
-
name: "ThrottlingException",
|
|
181
|
-
$fault: "client",
|
|
182
|
-
...opts,
|
|
183
|
-
});
|
|
184
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
185
|
-
this.Message = opts.Message;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
class ValidationException extends KendraRankingServiceException {
|
|
189
|
-
name = "ValidationException";
|
|
190
|
-
$fault = "client";
|
|
191
|
-
Message;
|
|
192
|
-
constructor(opts) {
|
|
193
|
-
super({
|
|
194
|
-
name: "ValidationException",
|
|
195
|
-
$fault: "client",
|
|
196
|
-
...opts,
|
|
197
|
-
});
|
|
198
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
199
|
-
this.Message = opts.Message;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
class ResourceNotFoundException extends KendraRankingServiceException {
|
|
203
|
-
name = "ResourceNotFoundException";
|
|
204
|
-
$fault = "client";
|
|
205
|
-
Message;
|
|
206
|
-
constructor(opts) {
|
|
207
|
-
super({
|
|
208
|
-
name: "ResourceNotFoundException",
|
|
209
|
-
$fault: "client",
|
|
210
|
-
...opts,
|
|
211
|
-
});
|
|
212
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
213
|
-
this.Message = opts.Message;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
class ResourceUnavailableException extends KendraRankingServiceException {
|
|
217
|
-
name = "ResourceUnavailableException";
|
|
218
|
-
$fault = "client";
|
|
219
|
-
Message;
|
|
220
|
-
constructor(opts) {
|
|
221
|
-
super({
|
|
222
|
-
name: "ResourceUnavailableException",
|
|
223
|
-
$fault: "client",
|
|
224
|
-
...opts,
|
|
225
|
-
});
|
|
226
|
-
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
227
|
-
this.Message = opts.Message;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const _A = "Arn";
|
|
232
|
-
const _ADE = "AccessDeniedException";
|
|
233
|
-
const _B = "Body";
|
|
234
|
-
const _CA = "CreatedAt";
|
|
235
|
-
const _CE = "ConflictException";
|
|
236
|
-
const _CREP = "CreateRescoreExecutionPlan";
|
|
237
|
-
const _CREPR = "CreateRescoreExecutionPlanRequest";
|
|
238
|
-
const _CREPRr = "CreateRescoreExecutionPlanResponse";
|
|
239
|
-
const _CT = "ClientToken";
|
|
240
|
-
const _CU = "CapacityUnits";
|
|
241
|
-
const _CUC = "CapacityUnitsConfiguration";
|
|
242
|
-
const _D = "Description";
|
|
243
|
-
const _DI = "DocumentId";
|
|
244
|
-
const _DL = "DocumentList";
|
|
245
|
-
const _DREP = "DeleteRescoreExecutionPlan";
|
|
246
|
-
const _DREPR = "DeleteRescoreExecutionPlanRequest";
|
|
247
|
-
const _DREPRe = "DescribeRescoreExecutionPlanRequest";
|
|
248
|
-
const _DREPRes = "DescribeRescoreExecutionPlanResponse";
|
|
249
|
-
const _DREPe = "DescribeRescoreExecutionPlan";
|
|
250
|
-
const _Do = "Document";
|
|
251
|
-
const _Doc = "Documents";
|
|
252
|
-
const _EM = "ErrorMessage";
|
|
253
|
-
const _GI = "GroupId";
|
|
254
|
-
const _I = "Id";
|
|
255
|
-
const _ISE = "InternalServerException";
|
|
256
|
-
const _K = "Key";
|
|
257
|
-
const _LREP = "ListRescoreExecutionPlans";
|
|
258
|
-
const _LREPR = "ListRescoreExecutionPlansRequest";
|
|
259
|
-
const _LREPRi = "ListRescoreExecutionPlansResponse";
|
|
260
|
-
const _LTFR = "ListTagsForResource";
|
|
261
|
-
const _LTFRR = "ListTagsForResourceRequest";
|
|
262
|
-
const _LTFRRi = "ListTagsForResourceResponse";
|
|
263
|
-
const _M = "Message";
|
|
264
|
-
const _MR = "MaxResults";
|
|
265
|
-
const _N = "Name";
|
|
266
|
-
const _NT = "NextToken";
|
|
267
|
-
const _OS = "OriginalScore";
|
|
268
|
-
const _R = "Rescore";
|
|
269
|
-
const _RARN = "ResourceARN";
|
|
270
|
-
const _RCU = "RescoreCapacityUnits";
|
|
271
|
-
const _REPI = "RescoreExecutionPlanId";
|
|
272
|
-
const _REPS = "RescoreExecutionPlanSummary";
|
|
273
|
-
const _REPSL = "RescoreExecutionPlanSummaryList";
|
|
274
|
-
const _RI = "RescoreId";
|
|
275
|
-
const _RIe = "ResultItems";
|
|
276
|
-
const _RNFE = "ResourceNotFoundException";
|
|
277
|
-
const _RR = "RescoreRequest";
|
|
278
|
-
const _RRI = "RescoreResultItem";
|
|
279
|
-
const _RRIL = "RescoreResultItemList";
|
|
280
|
-
const _RRe = "RescoreResult";
|
|
281
|
-
const _RUE = "ResourceUnavailableException";
|
|
282
|
-
const _S = "Status";
|
|
283
|
-
const _SI = "SummaryItems";
|
|
284
|
-
const _SQ = "SearchQuery";
|
|
285
|
-
const _SQEE = "ServiceQuotaExceededException";
|
|
286
|
-
const _Sc = "Score";
|
|
287
|
-
const _T = "Tags";
|
|
288
|
-
const _TB = "TokenizedBody";
|
|
289
|
-
const _TE = "ThrottlingException";
|
|
290
|
-
const _TK = "TagKeys";
|
|
291
|
-
const _TL = "TagList";
|
|
292
|
-
const _TR = "TagResource";
|
|
293
|
-
const _TRR = "TagResourceRequest";
|
|
294
|
-
const _TRRa = "TagResourceResponse";
|
|
295
|
-
const _TT = "TokenizedTitle";
|
|
296
|
-
const _Ta = "Tag";
|
|
297
|
-
const _Ti = "Title";
|
|
298
|
-
const _UA = "UpdatedAt";
|
|
299
|
-
const _UR = "UntagResource";
|
|
300
|
-
const _UREP = "UpdateRescoreExecutionPlan";
|
|
301
|
-
const _UREPR = "UpdateRescoreExecutionPlanRequest";
|
|
302
|
-
const _URR = "UntagResourceRequest";
|
|
303
|
-
const _URRn = "UntagResourceResponse";
|
|
304
|
-
const _V = "Value";
|
|
305
|
-
const _VE = "ValidationException";
|
|
306
|
-
const _c = "client";
|
|
307
|
-
const _e = "error";
|
|
308
|
-
const _h = "http";
|
|
309
|
-
const _hE = "httpError";
|
|
310
|
-
const _hQ = "httpQuery";
|
|
311
|
-
const _mR = "maxResults";
|
|
312
|
-
const _nT = "nextToken";
|
|
313
|
-
const _s = "server";
|
|
314
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.kendraranking";
|
|
315
|
-
const n0 = "com.amazonaws.kendraranking";
|
|
316
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
317
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
318
|
-
[_M],
|
|
319
|
-
[0]
|
|
320
|
-
];
|
|
321
|
-
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
322
|
-
var CapacityUnitsConfiguration$ = [3, n0, _CUC,
|
|
323
|
-
0,
|
|
324
|
-
[_RCU],
|
|
325
|
-
[1], 1
|
|
326
|
-
];
|
|
327
|
-
var ConflictException$ = [-3, n0, _CE,
|
|
328
|
-
{ [_e]: _c, [_hE]: 409 },
|
|
329
|
-
[_M],
|
|
330
|
-
[0]
|
|
331
|
-
];
|
|
332
|
-
schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
333
|
-
var CreateRescoreExecutionPlanRequest$ = [3, n0, _CREPR,
|
|
334
|
-
0,
|
|
335
|
-
[_N, _D, _CU, _T, _CT],
|
|
336
|
-
[0, 0, () => CapacityUnitsConfiguration$, () => TagList, [0, 4]], 1
|
|
337
|
-
];
|
|
338
|
-
var CreateRescoreExecutionPlanResponse$ = [3, n0, _CREPRr,
|
|
339
|
-
0,
|
|
340
|
-
[_I, _A],
|
|
341
|
-
[0, 0], 2
|
|
342
|
-
];
|
|
343
|
-
var DeleteRescoreExecutionPlanRequest$ = [3, n0, _DREPR,
|
|
344
|
-
0,
|
|
345
|
-
[_I],
|
|
346
|
-
[[0, 1]], 1
|
|
347
|
-
];
|
|
348
|
-
var DescribeRescoreExecutionPlanRequest$ = [3, n0, _DREPRe,
|
|
349
|
-
0,
|
|
350
|
-
[_I],
|
|
351
|
-
[[0, 1]], 1
|
|
352
|
-
];
|
|
353
|
-
var DescribeRescoreExecutionPlanResponse$ = [3, n0, _DREPRes,
|
|
354
|
-
0,
|
|
355
|
-
[_I, _A, _N, _D, _CU, _CA, _UA, _S, _EM],
|
|
356
|
-
[0, 0, 0, 0, () => CapacityUnitsConfiguration$, 4, 4, 0, 0]
|
|
357
|
-
];
|
|
358
|
-
var Document$ = [3, n0, _Do,
|
|
359
|
-
0,
|
|
360
|
-
[_I, _OS, _GI, _Ti, _B, _TT, _TB],
|
|
361
|
-
[0, 1, 0, 0, 0, 64 | 0, 64 | 0], 2
|
|
362
|
-
];
|
|
363
|
-
var InternalServerException$ = [-3, n0, _ISE,
|
|
364
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
365
|
-
[_M],
|
|
366
|
-
[0]
|
|
367
|
-
];
|
|
368
|
-
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
369
|
-
var ListRescoreExecutionPlansRequest$ = [3, n0, _LREPR,
|
|
370
|
-
0,
|
|
371
|
-
[_NT, _MR],
|
|
372
|
-
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
373
|
-
];
|
|
374
|
-
var ListRescoreExecutionPlansResponse$ = [3, n0, _LREPRi,
|
|
375
|
-
0,
|
|
376
|
-
[_SI, _NT],
|
|
377
|
-
[() => RescoreExecutionPlanSummaryList, 0]
|
|
378
|
-
];
|
|
379
|
-
var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
380
|
-
0,
|
|
381
|
-
[_RARN],
|
|
382
|
-
[0], 1
|
|
383
|
-
];
|
|
384
|
-
var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
385
|
-
0,
|
|
386
|
-
[_T],
|
|
387
|
-
[() => TagList]
|
|
388
|
-
];
|
|
389
|
-
var RescoreExecutionPlanSummary$ = [3, n0, _REPS,
|
|
390
|
-
0,
|
|
391
|
-
[_N, _I, _CA, _UA, _S],
|
|
392
|
-
[0, 0, 4, 4, 0]
|
|
393
|
-
];
|
|
394
|
-
var RescoreRequest$ = [3, n0, _RR,
|
|
395
|
-
0,
|
|
396
|
-
[_REPI, _SQ, _Doc],
|
|
397
|
-
[[0, 1], 0, () => DocumentList], 3
|
|
398
|
-
];
|
|
399
|
-
var RescoreResult$ = [3, n0, _RRe,
|
|
400
|
-
0,
|
|
401
|
-
[_RI, _RIe],
|
|
402
|
-
[0, () => RescoreResultItemList]
|
|
403
|
-
];
|
|
404
|
-
var RescoreResultItem$ = [3, n0, _RRI,
|
|
405
|
-
0,
|
|
406
|
-
[_DI, _Sc],
|
|
407
|
-
[0, 1]
|
|
408
|
-
];
|
|
409
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
410
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
411
|
-
[_M],
|
|
412
|
-
[0]
|
|
413
|
-
];
|
|
414
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
415
|
-
var ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
416
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
417
|
-
[_M],
|
|
418
|
-
[0]
|
|
419
|
-
];
|
|
420
|
-
schema.TypeRegistry.for(n0).registerError(ResourceUnavailableException$, ResourceUnavailableException);
|
|
421
|
-
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
422
|
-
{ [_e]: _c, [_hE]: 402 },
|
|
423
|
-
[_M],
|
|
424
|
-
[0]
|
|
425
|
-
];
|
|
426
|
-
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
427
|
-
var Tag$ = [3, n0, _Ta,
|
|
428
|
-
0,
|
|
429
|
-
[_K, _V],
|
|
430
|
-
[0, 0], 2
|
|
431
|
-
];
|
|
432
|
-
var TagResourceRequest$ = [3, n0, _TRR,
|
|
433
|
-
0,
|
|
434
|
-
[_RARN, _T],
|
|
435
|
-
[0, () => TagList], 2
|
|
436
|
-
];
|
|
437
|
-
var TagResourceResponse$ = [3, n0, _TRRa,
|
|
438
|
-
0,
|
|
439
|
-
[],
|
|
440
|
-
[]
|
|
441
|
-
];
|
|
442
|
-
var ThrottlingException$ = [-3, n0, _TE,
|
|
443
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
444
|
-
[_M],
|
|
445
|
-
[0]
|
|
446
|
-
];
|
|
447
|
-
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
448
|
-
var UntagResourceRequest$ = [3, n0, _URR,
|
|
449
|
-
0,
|
|
450
|
-
[_RARN, _TK],
|
|
451
|
-
[0, 64 | 0], 2
|
|
452
|
-
];
|
|
453
|
-
var UntagResourceResponse$ = [3, n0, _URRn,
|
|
454
|
-
0,
|
|
455
|
-
[],
|
|
456
|
-
[]
|
|
457
|
-
];
|
|
458
|
-
var UpdateRescoreExecutionPlanRequest$ = [3, n0, _UREPR,
|
|
459
|
-
0,
|
|
460
|
-
[_I, _N, _D, _CU],
|
|
461
|
-
[[0, 1], 0, 0, () => CapacityUnitsConfiguration$], 1
|
|
462
|
-
];
|
|
463
|
-
var ValidationException$ = [-3, n0, _VE,
|
|
464
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
465
|
-
[_M],
|
|
466
|
-
[0]
|
|
467
|
-
];
|
|
468
|
-
schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
469
|
-
var __Unit = "unit";
|
|
470
|
-
var KendraRankingServiceException$ = [-3, _sm, "KendraRankingServiceException", 0, [], []];
|
|
471
|
-
schema.TypeRegistry.for(_sm).registerError(KendraRankingServiceException$, KendraRankingServiceException);
|
|
472
|
-
var DocumentList = [1, n0, _DL,
|
|
473
|
-
0, () => Document$
|
|
474
|
-
];
|
|
475
|
-
var RescoreExecutionPlanSummaryList = [1, n0, _REPSL,
|
|
476
|
-
0, () => RescoreExecutionPlanSummary$
|
|
477
|
-
];
|
|
478
|
-
var RescoreResultItemList = [1, n0, _RRIL,
|
|
479
|
-
0, () => RescoreResultItem$
|
|
480
|
-
];
|
|
481
|
-
var TagList = [1, n0, _TL,
|
|
482
|
-
0, () => Tag$
|
|
483
|
-
];
|
|
484
|
-
var CreateRescoreExecutionPlan$ = [9, n0, _CREP,
|
|
485
|
-
{ [_h]: ["POST", "/rescore-execution-plans", 200] }, () => CreateRescoreExecutionPlanRequest$, () => CreateRescoreExecutionPlanResponse$
|
|
486
|
-
];
|
|
487
|
-
var DeleteRescoreExecutionPlan$ = [9, n0, _DREP,
|
|
488
|
-
{ [_h]: ["DELETE", "/rescore-execution-plans/{Id}", 200] }, () => DeleteRescoreExecutionPlanRequest$, () => __Unit
|
|
489
|
-
];
|
|
490
|
-
var DescribeRescoreExecutionPlan$ = [9, n0, _DREPe,
|
|
491
|
-
{ [_h]: ["GET", "/rescore-execution-plans/{Id}", 200] }, () => DescribeRescoreExecutionPlanRequest$, () => DescribeRescoreExecutionPlanResponse$
|
|
492
|
-
];
|
|
493
|
-
var ListRescoreExecutionPlans$ = [9, n0, _LREP,
|
|
494
|
-
{ [_h]: ["GET", "/rescore-execution-plans", 200] }, () => ListRescoreExecutionPlansRequest$, () => ListRescoreExecutionPlansResponse$
|
|
495
|
-
];
|
|
496
|
-
var ListTagsForResource$ = [9, n0, _LTFR,
|
|
497
|
-
0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
498
|
-
];
|
|
499
|
-
var Rescore$ = [9, n0, _R,
|
|
500
|
-
{ [_h]: ["POST", "/rescore-execution-plans/{RescoreExecutionPlanId}/rescore", 200] }, () => RescoreRequest$, () => RescoreResult$
|
|
501
|
-
];
|
|
502
|
-
var TagResource$ = [9, n0, _TR,
|
|
503
|
-
0, () => TagResourceRequest$, () => TagResourceResponse$
|
|
504
|
-
];
|
|
505
|
-
var UntagResource$ = [9, n0, _UR,
|
|
506
|
-
0, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
507
|
-
];
|
|
508
|
-
var UpdateRescoreExecutionPlan$ = [9, n0, _UREP,
|
|
509
|
-
{ [_h]: ["PUT", "/rescore-execution-plans/{Id}", 200] }, () => UpdateRescoreExecutionPlanRequest$, () => __Unit
|
|
510
|
-
];
|
|
511
|
-
|
|
512
114
|
class CreateRescoreExecutionPlanCommand extends smithyClient.Command
|
|
513
115
|
.classBuilder()
|
|
514
116
|
.ep(commonParams)
|
|
@@ -517,7 +119,7 @@ class CreateRescoreExecutionPlanCommand extends smithyClient.Command
|
|
|
517
119
|
})
|
|
518
120
|
.s("AWSKendraRerankingFrontendService", "CreateRescoreExecutionPlan", {})
|
|
519
121
|
.n("KendraRankingClient", "CreateRescoreExecutionPlanCommand")
|
|
520
|
-
.sc(CreateRescoreExecutionPlan$)
|
|
122
|
+
.sc(schemas_0.CreateRescoreExecutionPlan$)
|
|
521
123
|
.build() {
|
|
522
124
|
}
|
|
523
125
|
|
|
@@ -529,7 +131,7 @@ class DeleteRescoreExecutionPlanCommand extends smithyClient.Command
|
|
|
529
131
|
})
|
|
530
132
|
.s("AWSKendraRerankingFrontendService", "DeleteRescoreExecutionPlan", {})
|
|
531
133
|
.n("KendraRankingClient", "DeleteRescoreExecutionPlanCommand")
|
|
532
|
-
.sc(DeleteRescoreExecutionPlan$)
|
|
134
|
+
.sc(schemas_0.DeleteRescoreExecutionPlan$)
|
|
533
135
|
.build() {
|
|
534
136
|
}
|
|
535
137
|
|
|
@@ -541,7 +143,7 @@ class DescribeRescoreExecutionPlanCommand extends smithyClient.Command
|
|
|
541
143
|
})
|
|
542
144
|
.s("AWSKendraRerankingFrontendService", "DescribeRescoreExecutionPlan", {})
|
|
543
145
|
.n("KendraRankingClient", "DescribeRescoreExecutionPlanCommand")
|
|
544
|
-
.sc(DescribeRescoreExecutionPlan$)
|
|
146
|
+
.sc(schemas_0.DescribeRescoreExecutionPlan$)
|
|
545
147
|
.build() {
|
|
546
148
|
}
|
|
547
149
|
|
|
@@ -553,7 +155,7 @@ class ListRescoreExecutionPlansCommand extends smithyClient.Command
|
|
|
553
155
|
})
|
|
554
156
|
.s("AWSKendraRerankingFrontendService", "ListRescoreExecutionPlans", {})
|
|
555
157
|
.n("KendraRankingClient", "ListRescoreExecutionPlansCommand")
|
|
556
|
-
.sc(ListRescoreExecutionPlans$)
|
|
158
|
+
.sc(schemas_0.ListRescoreExecutionPlans$)
|
|
557
159
|
.build() {
|
|
558
160
|
}
|
|
559
161
|
|
|
@@ -565,7 +167,7 @@ class ListTagsForResourceCommand extends smithyClient.Command
|
|
|
565
167
|
})
|
|
566
168
|
.s("AWSKendraRerankingFrontendService", "ListTagsForResource", {})
|
|
567
169
|
.n("KendraRankingClient", "ListTagsForResourceCommand")
|
|
568
|
-
.sc(ListTagsForResource$)
|
|
170
|
+
.sc(schemas_0.ListTagsForResource$)
|
|
569
171
|
.build() {
|
|
570
172
|
}
|
|
571
173
|
|
|
@@ -577,7 +179,7 @@ class RescoreCommand extends smithyClient.Command
|
|
|
577
179
|
})
|
|
578
180
|
.s("AWSKendraRerankingFrontendService", "Rescore", {})
|
|
579
181
|
.n("KendraRankingClient", "RescoreCommand")
|
|
580
|
-
.sc(Rescore$)
|
|
182
|
+
.sc(schemas_0.Rescore$)
|
|
581
183
|
.build() {
|
|
582
184
|
}
|
|
583
185
|
|
|
@@ -589,7 +191,7 @@ class TagResourceCommand extends smithyClient.Command
|
|
|
589
191
|
})
|
|
590
192
|
.s("AWSKendraRerankingFrontendService", "TagResource", {})
|
|
591
193
|
.n("KendraRankingClient", "TagResourceCommand")
|
|
592
|
-
.sc(TagResource$)
|
|
194
|
+
.sc(schemas_0.TagResource$)
|
|
593
195
|
.build() {
|
|
594
196
|
}
|
|
595
197
|
|
|
@@ -601,7 +203,7 @@ class UntagResourceCommand extends smithyClient.Command
|
|
|
601
203
|
})
|
|
602
204
|
.s("AWSKendraRerankingFrontendService", "UntagResource", {})
|
|
603
205
|
.n("KendraRankingClient", "UntagResourceCommand")
|
|
604
|
-
.sc(UntagResource$)
|
|
206
|
+
.sc(schemas_0.UntagResource$)
|
|
605
207
|
.build() {
|
|
606
208
|
}
|
|
607
209
|
|
|
@@ -613,7 +215,7 @@ class UpdateRescoreExecutionPlanCommand extends smithyClient.Command
|
|
|
613
215
|
})
|
|
614
216
|
.s("AWSKendraRerankingFrontendService", "UpdateRescoreExecutionPlan", {})
|
|
615
217
|
.n("KendraRankingClient", "UpdateRescoreExecutionPlanCommand")
|
|
616
|
-
.sc(UpdateRescoreExecutionPlan$)
|
|
218
|
+
.sc(schemas_0.UpdateRescoreExecutionPlan$)
|
|
617
219
|
.build() {
|
|
618
220
|
}
|
|
619
221
|
|
|
@@ -653,64 +255,32 @@ Object.defineProperty(exports, "__Client", {
|
|
|
653
255
|
enumerable: true,
|
|
654
256
|
get: function () { return smithyClient.Client; }
|
|
655
257
|
});
|
|
656
|
-
exports
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
exports.ConflictException$ = ConflictException$;
|
|
661
|
-
exports.CreateRescoreExecutionPlan$ = CreateRescoreExecutionPlan$;
|
|
258
|
+
Object.defineProperty(exports, "KendraRankingServiceException", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () { return KendraRankingServiceException.KendraRankingServiceException; }
|
|
261
|
+
});
|
|
662
262
|
exports.CreateRescoreExecutionPlanCommand = CreateRescoreExecutionPlanCommand;
|
|
663
|
-
exports.CreateRescoreExecutionPlanRequest$ = CreateRescoreExecutionPlanRequest$;
|
|
664
|
-
exports.CreateRescoreExecutionPlanResponse$ = CreateRescoreExecutionPlanResponse$;
|
|
665
|
-
exports.DeleteRescoreExecutionPlan$ = DeleteRescoreExecutionPlan$;
|
|
666
263
|
exports.DeleteRescoreExecutionPlanCommand = DeleteRescoreExecutionPlanCommand;
|
|
667
|
-
exports.DeleteRescoreExecutionPlanRequest$ = DeleteRescoreExecutionPlanRequest$;
|
|
668
|
-
exports.DescribeRescoreExecutionPlan$ = DescribeRescoreExecutionPlan$;
|
|
669
264
|
exports.DescribeRescoreExecutionPlanCommand = DescribeRescoreExecutionPlanCommand;
|
|
670
|
-
exports.DescribeRescoreExecutionPlanRequest$ = DescribeRescoreExecutionPlanRequest$;
|
|
671
|
-
exports.DescribeRescoreExecutionPlanResponse$ = DescribeRescoreExecutionPlanResponse$;
|
|
672
|
-
exports.Document$ = Document$;
|
|
673
|
-
exports.InternalServerException = InternalServerException;
|
|
674
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
675
265
|
exports.KendraRanking = KendraRanking;
|
|
676
266
|
exports.KendraRankingClient = KendraRankingClient;
|
|
677
|
-
exports.KendraRankingServiceException = KendraRankingServiceException;
|
|
678
|
-
exports.KendraRankingServiceException$ = KendraRankingServiceException$;
|
|
679
|
-
exports.ListRescoreExecutionPlans$ = ListRescoreExecutionPlans$;
|
|
680
267
|
exports.ListRescoreExecutionPlansCommand = ListRescoreExecutionPlansCommand;
|
|
681
|
-
exports.ListRescoreExecutionPlansRequest$ = ListRescoreExecutionPlansRequest$;
|
|
682
|
-
exports.ListRescoreExecutionPlansResponse$ = ListRescoreExecutionPlansResponse$;
|
|
683
|
-
exports.ListTagsForResource$ = ListTagsForResource$;
|
|
684
268
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
685
|
-
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
686
|
-
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
687
|
-
exports.Rescore$ = Rescore$;
|
|
688
269
|
exports.RescoreCommand = RescoreCommand;
|
|
689
270
|
exports.RescoreExecutionPlanStatus = RescoreExecutionPlanStatus;
|
|
690
|
-
exports.RescoreExecutionPlanSummary$ = RescoreExecutionPlanSummary$;
|
|
691
|
-
exports.RescoreRequest$ = RescoreRequest$;
|
|
692
|
-
exports.RescoreResult$ = RescoreResult$;
|
|
693
|
-
exports.RescoreResultItem$ = RescoreResultItem$;
|
|
694
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
695
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
696
|
-
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
697
|
-
exports.ResourceUnavailableException$ = ResourceUnavailableException$;
|
|
698
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
699
|
-
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
700
|
-
exports.Tag$ = Tag$;
|
|
701
|
-
exports.TagResource$ = TagResource$;
|
|
702
271
|
exports.TagResourceCommand = TagResourceCommand;
|
|
703
|
-
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
704
|
-
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
705
|
-
exports.ThrottlingException = ThrottlingException;
|
|
706
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
707
|
-
exports.UntagResource$ = UntagResource$;
|
|
708
272
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
709
|
-
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
710
|
-
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
711
|
-
exports.UpdateRescoreExecutionPlan$ = UpdateRescoreExecutionPlan$;
|
|
712
273
|
exports.UpdateRescoreExecutionPlanCommand = UpdateRescoreExecutionPlanCommand;
|
|
713
|
-
exports.UpdateRescoreExecutionPlanRequest$ = UpdateRescoreExecutionPlanRequest$;
|
|
714
|
-
exports.ValidationException = ValidationException;
|
|
715
|
-
exports.ValidationException$ = ValidationException$;
|
|
716
274
|
exports.paginateListRescoreExecutionPlans = paginateListRescoreExecutionPlans;
|
|
275
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
276
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () { return schemas_0[k]; }
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
Object.keys(errors).forEach(function (k) {
|
|
282
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () { return errors[k]; }
|
|
285
|
+
});
|
|
286
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KendraRankingServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class KendraRankingServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, KendraRankingServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.KendraRankingServiceException = KendraRankingServiceException;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceUnavailableException = exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const KendraRankingServiceException_1 = require("./KendraRankingServiceException");
|
|
5
|
+
class AccessDeniedException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccessDeniedException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class ConflictException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
21
|
+
name = "ConflictException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
Message;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "ConflictException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
|
+
this.Message = opts.Message;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ConflictException = ConflictException;
|
|
35
|
+
class InternalServerException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
36
|
+
name = "InternalServerException";
|
|
37
|
+
$fault = "server";
|
|
38
|
+
Message;
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "InternalServerException",
|
|
42
|
+
$fault: "server",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
46
|
+
this.Message = opts.Message;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.InternalServerException = InternalServerException;
|
|
50
|
+
class ServiceQuotaExceededException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
51
|
+
name = "ServiceQuotaExceededException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
Message;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ServiceQuotaExceededException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
61
|
+
this.Message = opts.Message;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
65
|
+
class ThrottlingException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
66
|
+
name = "ThrottlingException";
|
|
67
|
+
$fault = "client";
|
|
68
|
+
Message;
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "ThrottlingException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
76
|
+
this.Message = opts.Message;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ThrottlingException = ThrottlingException;
|
|
80
|
+
class ValidationException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
81
|
+
name = "ValidationException";
|
|
82
|
+
$fault = "client";
|
|
83
|
+
Message;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ValidationException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
91
|
+
this.Message = opts.Message;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ValidationException = ValidationException;
|
|
95
|
+
class ResourceNotFoundException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
96
|
+
name = "ResourceNotFoundException";
|
|
97
|
+
$fault = "client";
|
|
98
|
+
Message;
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "ResourceNotFoundException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
106
|
+
this.Message = opts.Message;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
110
|
+
class ResourceUnavailableException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
111
|
+
name = "ResourceUnavailableException";
|
|
112
|
+
$fault = "client";
|
|
113
|
+
Message;
|
|
114
|
+
constructor(opts) {
|
|
115
|
+
super({
|
|
116
|
+
name: "ResourceUnavailableException",
|
|
117
|
+
$fault: "client",
|
|
118
|
+
...opts,
|
|
119
|
+
});
|
|
120
|
+
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
121
|
+
this.Message = opts.Message;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2022-10-19",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.kendraranking",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2022-10-19",
|
|
33
35
|
serviceTarget: "AWSKendraRerankingFrontendService",
|
|
34
36
|
},
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateRescoreExecutionPlan$ = exports.UntagResource$ = exports.TagResource$ = exports.Rescore$ = exports.ListTagsForResource$ = exports.ListRescoreExecutionPlans$ = exports.DescribeRescoreExecutionPlan$ = exports.DeleteRescoreExecutionPlan$ = exports.CreateRescoreExecutionPlan$ = exports.UpdateRescoreExecutionPlanRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.Tag$ = exports.RescoreResultItem$ = exports.RescoreResult$ = exports.RescoreRequest$ = exports.RescoreExecutionPlanSummary$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListRescoreExecutionPlansResponse$ = exports.ListRescoreExecutionPlansRequest$ = exports.Document$ = exports.DescribeRescoreExecutionPlanResponse$ = exports.DescribeRescoreExecutionPlanRequest$ = exports.DeleteRescoreExecutionPlanRequest$ = exports.CreateRescoreExecutionPlanResponse$ = exports.CreateRescoreExecutionPlanRequest$ = exports.CapacityUnitsConfiguration$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceUnavailableException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.KendraRankingServiceException$ = void 0;
|
|
4
|
+
const _A = "Arn";
|
|
5
|
+
const _ADE = "AccessDeniedException";
|
|
6
|
+
const _B = "Body";
|
|
7
|
+
const _CA = "CreatedAt";
|
|
8
|
+
const _CE = "ConflictException";
|
|
9
|
+
const _CREP = "CreateRescoreExecutionPlan";
|
|
10
|
+
const _CREPR = "CreateRescoreExecutionPlanRequest";
|
|
11
|
+
const _CREPRr = "CreateRescoreExecutionPlanResponse";
|
|
12
|
+
const _CT = "ClientToken";
|
|
13
|
+
const _CU = "CapacityUnits";
|
|
14
|
+
const _CUC = "CapacityUnitsConfiguration";
|
|
15
|
+
const _D = "Description";
|
|
16
|
+
const _DI = "DocumentId";
|
|
17
|
+
const _DL = "DocumentList";
|
|
18
|
+
const _DREP = "DeleteRescoreExecutionPlan";
|
|
19
|
+
const _DREPR = "DeleteRescoreExecutionPlanRequest";
|
|
20
|
+
const _DREPRe = "DescribeRescoreExecutionPlanRequest";
|
|
21
|
+
const _DREPRes = "DescribeRescoreExecutionPlanResponse";
|
|
22
|
+
const _DREPe = "DescribeRescoreExecutionPlan";
|
|
23
|
+
const _Do = "Document";
|
|
24
|
+
const _Doc = "Documents";
|
|
25
|
+
const _EM = "ErrorMessage";
|
|
26
|
+
const _GI = "GroupId";
|
|
27
|
+
const _I = "Id";
|
|
28
|
+
const _ISE = "InternalServerException";
|
|
29
|
+
const _K = "Key";
|
|
30
|
+
const _LREP = "ListRescoreExecutionPlans";
|
|
31
|
+
const _LREPR = "ListRescoreExecutionPlansRequest";
|
|
32
|
+
const _LREPRi = "ListRescoreExecutionPlansResponse";
|
|
33
|
+
const _LTFR = "ListTagsForResource";
|
|
34
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
35
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
36
|
+
const _M = "Message";
|
|
37
|
+
const _MR = "MaxResults";
|
|
38
|
+
const _N = "Name";
|
|
39
|
+
const _NT = "NextToken";
|
|
40
|
+
const _OS = "OriginalScore";
|
|
41
|
+
const _R = "Rescore";
|
|
42
|
+
const _RARN = "ResourceARN";
|
|
43
|
+
const _RCU = "RescoreCapacityUnits";
|
|
44
|
+
const _REPI = "RescoreExecutionPlanId";
|
|
45
|
+
const _REPS = "RescoreExecutionPlanSummary";
|
|
46
|
+
const _REPSL = "RescoreExecutionPlanSummaryList";
|
|
47
|
+
const _RI = "RescoreId";
|
|
48
|
+
const _RIe = "ResultItems";
|
|
49
|
+
const _RNFE = "ResourceNotFoundException";
|
|
50
|
+
const _RR = "RescoreRequest";
|
|
51
|
+
const _RRI = "RescoreResultItem";
|
|
52
|
+
const _RRIL = "RescoreResultItemList";
|
|
53
|
+
const _RRe = "RescoreResult";
|
|
54
|
+
const _RUE = "ResourceUnavailableException";
|
|
55
|
+
const _S = "Status";
|
|
56
|
+
const _SI = "SummaryItems";
|
|
57
|
+
const _SQ = "SearchQuery";
|
|
58
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
59
|
+
const _Sc = "Score";
|
|
60
|
+
const _T = "Tags";
|
|
61
|
+
const _TB = "TokenizedBody";
|
|
62
|
+
const _TE = "ThrottlingException";
|
|
63
|
+
const _TK = "TagKeys";
|
|
64
|
+
const _TL = "TagList";
|
|
65
|
+
const _TR = "TagResource";
|
|
66
|
+
const _TRR = "TagResourceRequest";
|
|
67
|
+
const _TRRa = "TagResourceResponse";
|
|
68
|
+
const _TT = "TokenizedTitle";
|
|
69
|
+
const _Ta = "Tag";
|
|
70
|
+
const _Ti = "Title";
|
|
71
|
+
const _UA = "UpdatedAt";
|
|
72
|
+
const _UR = "UntagResource";
|
|
73
|
+
const _UREP = "UpdateRescoreExecutionPlan";
|
|
74
|
+
const _UREPR = "UpdateRescoreExecutionPlanRequest";
|
|
75
|
+
const _URR = "UntagResourceRequest";
|
|
76
|
+
const _URRn = "UntagResourceResponse";
|
|
77
|
+
const _V = "Value";
|
|
78
|
+
const _VE = "ValidationException";
|
|
79
|
+
const _c = "client";
|
|
80
|
+
const _e = "error";
|
|
81
|
+
const _h = "http";
|
|
82
|
+
const _hE = "httpError";
|
|
83
|
+
const _hQ = "httpQuery";
|
|
84
|
+
const _mR = "maxResults";
|
|
85
|
+
const _nT = "nextToken";
|
|
86
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kendraranking";
|
|
87
|
+
const _se = "server";
|
|
88
|
+
const n0 = "com.amazonaws.kendraranking";
|
|
89
|
+
const schema_1 = require("@smithy/core/schema");
|
|
90
|
+
const errors_1 = require("../models/errors");
|
|
91
|
+
const KendraRankingServiceException_1 = require("../models/KendraRankingServiceException");
|
|
92
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
93
|
+
exports.KendraRankingServiceException$ = [-3, _s, "KendraRankingServiceException", 0, [], []];
|
|
94
|
+
_s_registry.registerError(exports.KendraRankingServiceException$, KendraRankingServiceException_1.KendraRankingServiceException);
|
|
95
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
96
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
97
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
98
|
+
[_M],
|
|
99
|
+
[0]
|
|
100
|
+
];
|
|
101
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
102
|
+
exports.ConflictException$ = [-3, n0, _CE,
|
|
103
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
104
|
+
[_M],
|
|
105
|
+
[0]
|
|
106
|
+
];
|
|
107
|
+
n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
|
|
108
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
109
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
110
|
+
[_M],
|
|
111
|
+
[0]
|
|
112
|
+
];
|
|
113
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
114
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
115
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
116
|
+
[_M],
|
|
117
|
+
[0]
|
|
118
|
+
];
|
|
119
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
120
|
+
exports.ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
121
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
122
|
+
[_M],
|
|
123
|
+
[0]
|
|
124
|
+
];
|
|
125
|
+
n0_registry.registerError(exports.ResourceUnavailableException$, errors_1.ResourceUnavailableException);
|
|
126
|
+
exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
127
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
128
|
+
[_M],
|
|
129
|
+
[0]
|
|
130
|
+
];
|
|
131
|
+
n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
|
|
132
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
133
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
134
|
+
[_M],
|
|
135
|
+
[0]
|
|
136
|
+
];
|
|
137
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
138
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
139
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
140
|
+
[_M],
|
|
141
|
+
[0]
|
|
142
|
+
];
|
|
143
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
144
|
+
exports.errorTypeRegistries = [
|
|
145
|
+
_s_registry,
|
|
146
|
+
n0_registry,
|
|
147
|
+
];
|
|
148
|
+
exports.CapacityUnitsConfiguration$ = [3, n0, _CUC,
|
|
149
|
+
0,
|
|
150
|
+
[_RCU],
|
|
151
|
+
[1], 1
|
|
152
|
+
];
|
|
153
|
+
exports.CreateRescoreExecutionPlanRequest$ = [3, n0, _CREPR,
|
|
154
|
+
0,
|
|
155
|
+
[_N, _D, _CU, _T, _CT],
|
|
156
|
+
[0, 0, () => exports.CapacityUnitsConfiguration$, () => TagList, [0, 4]], 1
|
|
157
|
+
];
|
|
158
|
+
exports.CreateRescoreExecutionPlanResponse$ = [3, n0, _CREPRr,
|
|
159
|
+
0,
|
|
160
|
+
[_I, _A],
|
|
161
|
+
[0, 0], 2
|
|
162
|
+
];
|
|
163
|
+
exports.DeleteRescoreExecutionPlanRequest$ = [3, n0, _DREPR,
|
|
164
|
+
0,
|
|
165
|
+
[_I],
|
|
166
|
+
[[0, 1]], 1
|
|
167
|
+
];
|
|
168
|
+
exports.DescribeRescoreExecutionPlanRequest$ = [3, n0, _DREPRe,
|
|
169
|
+
0,
|
|
170
|
+
[_I],
|
|
171
|
+
[[0, 1]], 1
|
|
172
|
+
];
|
|
173
|
+
exports.DescribeRescoreExecutionPlanResponse$ = [3, n0, _DREPRes,
|
|
174
|
+
0,
|
|
175
|
+
[_I, _A, _N, _D, _CU, _CA, _UA, _S, _EM],
|
|
176
|
+
[0, 0, 0, 0, () => exports.CapacityUnitsConfiguration$, 4, 4, 0, 0]
|
|
177
|
+
];
|
|
178
|
+
exports.Document$ = [3, n0, _Do,
|
|
179
|
+
0,
|
|
180
|
+
[_I, _OS, _GI, _Ti, _B, _TT, _TB],
|
|
181
|
+
[0, 1, 0, 0, 0, 64 | 0, 64 | 0], 2
|
|
182
|
+
];
|
|
183
|
+
exports.ListRescoreExecutionPlansRequest$ = [3, n0, _LREPR,
|
|
184
|
+
0,
|
|
185
|
+
[_NT, _MR],
|
|
186
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
187
|
+
];
|
|
188
|
+
exports.ListRescoreExecutionPlansResponse$ = [3, n0, _LREPRi,
|
|
189
|
+
0,
|
|
190
|
+
[_SI, _NT],
|
|
191
|
+
[() => RescoreExecutionPlanSummaryList, 0]
|
|
192
|
+
];
|
|
193
|
+
exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
194
|
+
0,
|
|
195
|
+
[_RARN],
|
|
196
|
+
[0], 1
|
|
197
|
+
];
|
|
198
|
+
exports.ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
199
|
+
0,
|
|
200
|
+
[_T],
|
|
201
|
+
[() => TagList]
|
|
202
|
+
];
|
|
203
|
+
exports.RescoreExecutionPlanSummary$ = [3, n0, _REPS,
|
|
204
|
+
0,
|
|
205
|
+
[_N, _I, _CA, _UA, _S],
|
|
206
|
+
[0, 0, 4, 4, 0]
|
|
207
|
+
];
|
|
208
|
+
exports.RescoreRequest$ = [3, n0, _RR,
|
|
209
|
+
0,
|
|
210
|
+
[_REPI, _SQ, _Doc],
|
|
211
|
+
[[0, 1], 0, () => DocumentList], 3
|
|
212
|
+
];
|
|
213
|
+
exports.RescoreResult$ = [3, n0, _RRe,
|
|
214
|
+
0,
|
|
215
|
+
[_RI, _RIe],
|
|
216
|
+
[0, () => RescoreResultItemList]
|
|
217
|
+
];
|
|
218
|
+
exports.RescoreResultItem$ = [3, n0, _RRI,
|
|
219
|
+
0,
|
|
220
|
+
[_DI, _Sc],
|
|
221
|
+
[0, 1]
|
|
222
|
+
];
|
|
223
|
+
exports.Tag$ = [3, n0, _Ta,
|
|
224
|
+
0,
|
|
225
|
+
[_K, _V],
|
|
226
|
+
[0, 0], 2
|
|
227
|
+
];
|
|
228
|
+
exports.TagResourceRequest$ = [3, n0, _TRR,
|
|
229
|
+
0,
|
|
230
|
+
[_RARN, _T],
|
|
231
|
+
[0, () => TagList], 2
|
|
232
|
+
];
|
|
233
|
+
exports.TagResourceResponse$ = [3, n0, _TRRa,
|
|
234
|
+
0,
|
|
235
|
+
[],
|
|
236
|
+
[]
|
|
237
|
+
];
|
|
238
|
+
exports.UntagResourceRequest$ = [3, n0, _URR,
|
|
239
|
+
0,
|
|
240
|
+
[_RARN, _TK],
|
|
241
|
+
[0, 64 | 0], 2
|
|
242
|
+
];
|
|
243
|
+
exports.UntagResourceResponse$ = [3, n0, _URRn,
|
|
244
|
+
0,
|
|
245
|
+
[],
|
|
246
|
+
[]
|
|
247
|
+
];
|
|
248
|
+
exports.UpdateRescoreExecutionPlanRequest$ = [3, n0, _UREPR,
|
|
249
|
+
0,
|
|
250
|
+
[_I, _N, _D, _CU],
|
|
251
|
+
[[0, 1], 0, 0, () => exports.CapacityUnitsConfiguration$], 1
|
|
252
|
+
];
|
|
253
|
+
var __Unit = "unit";
|
|
254
|
+
var BodyTokensList = 64 | 0;
|
|
255
|
+
var DocumentList = [1, n0, _DL,
|
|
256
|
+
0, () => exports.Document$
|
|
257
|
+
];
|
|
258
|
+
var RescoreExecutionPlanSummaryList = [1, n0, _REPSL,
|
|
259
|
+
0, () => exports.RescoreExecutionPlanSummary$
|
|
260
|
+
];
|
|
261
|
+
var RescoreResultItemList = [1, n0, _RRIL,
|
|
262
|
+
0, () => exports.RescoreResultItem$
|
|
263
|
+
];
|
|
264
|
+
var TagKeyList = 64 | 0;
|
|
265
|
+
var TagList = [1, n0, _TL,
|
|
266
|
+
0, () => exports.Tag$
|
|
267
|
+
];
|
|
268
|
+
var TitleTokensList = 64 | 0;
|
|
269
|
+
exports.CreateRescoreExecutionPlan$ = [9, n0, _CREP,
|
|
270
|
+
{ [_h]: ["POST", "/rescore-execution-plans", 200] }, () => exports.CreateRescoreExecutionPlanRequest$, () => exports.CreateRescoreExecutionPlanResponse$
|
|
271
|
+
];
|
|
272
|
+
exports.DeleteRescoreExecutionPlan$ = [9, n0, _DREP,
|
|
273
|
+
{ [_h]: ["DELETE", "/rescore-execution-plans/{Id}", 200] }, () => exports.DeleteRescoreExecutionPlanRequest$, () => __Unit
|
|
274
|
+
];
|
|
275
|
+
exports.DescribeRescoreExecutionPlan$ = [9, n0, _DREPe,
|
|
276
|
+
{ [_h]: ["GET", "/rescore-execution-plans/{Id}", 200] }, () => exports.DescribeRescoreExecutionPlanRequest$, () => exports.DescribeRescoreExecutionPlanResponse$
|
|
277
|
+
];
|
|
278
|
+
exports.ListRescoreExecutionPlans$ = [9, n0, _LREP,
|
|
279
|
+
{ [_h]: ["GET", "/rescore-execution-plans", 200] }, () => exports.ListRescoreExecutionPlansRequest$, () => exports.ListRescoreExecutionPlansResponse$
|
|
280
|
+
];
|
|
281
|
+
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
282
|
+
0, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
|
|
283
|
+
];
|
|
284
|
+
exports.Rescore$ = [9, n0, _R,
|
|
285
|
+
{ [_h]: ["POST", "/rescore-execution-plans/{RescoreExecutionPlanId}/rescore", 200] }, () => exports.RescoreRequest$, () => exports.RescoreResult$
|
|
286
|
+
];
|
|
287
|
+
exports.TagResource$ = [9, n0, _TR,
|
|
288
|
+
0, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
|
|
289
|
+
];
|
|
290
|
+
exports.UntagResource$ = [9, n0, _UR,
|
|
291
|
+
0, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
|
|
292
|
+
];
|
|
293
|
+
exports.UpdateRescoreExecutionPlan$ = [9, n0, _UREP,
|
|
294
|
+
{ [_h]: ["PUT", "/rescore-execution-plans/{Id}", 200] }, () => exports.UpdateRescoreExecutionPlanRequest$, () => __Unit
|
|
295
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultKendraRankingHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2022-10-19",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.kendraranking",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2022-10-19",
|
|
30
32
|
serviceTarget: "AWSKendraRerankingFrontendService",
|
|
31
33
|
},
|
|
@@ -80,29 +80,73 @@ const _hE = "httpError";
|
|
|
80
80
|
const _hQ = "httpQuery";
|
|
81
81
|
const _mR = "maxResults";
|
|
82
82
|
const _nT = "nextToken";
|
|
83
|
-
const _s = "
|
|
84
|
-
const
|
|
83
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kendraranking";
|
|
84
|
+
const _se = "server";
|
|
85
85
|
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);
|
|
90
|
+
export var KendraRankingServiceException$ = [-3, _s, "KendraRankingServiceException", 0, [], []];
|
|
91
|
+
_s_registry.registerError(KendraRankingServiceException$, KendraRankingServiceException);
|
|
92
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
89
93
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
90
94
|
{ [_e]: _c, [_hE]: 403 },
|
|
91
95
|
[_M],
|
|
92
96
|
[0]
|
|
93
97
|
];
|
|
94
|
-
|
|
95
|
-
export var CapacityUnitsConfiguration$ = [3, n0, _CUC,
|
|
96
|
-
0,
|
|
97
|
-
[_RCU],
|
|
98
|
-
[1], 1
|
|
99
|
-
];
|
|
98
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
100
99
|
export var ConflictException$ = [-3, n0, _CE,
|
|
101
100
|
{ [_e]: _c, [_hE]: 409 },
|
|
102
101
|
[_M],
|
|
103
102
|
[0]
|
|
104
103
|
];
|
|
105
|
-
|
|
104
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
105
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
106
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
107
|
+
[_M],
|
|
108
|
+
[0]
|
|
109
|
+
];
|
|
110
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
111
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
112
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
113
|
+
[_M],
|
|
114
|
+
[0]
|
|
115
|
+
];
|
|
116
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
117
|
+
export var ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
118
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
119
|
+
[_M],
|
|
120
|
+
[0]
|
|
121
|
+
];
|
|
122
|
+
n0_registry.registerError(ResourceUnavailableException$, ResourceUnavailableException);
|
|
123
|
+
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
124
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
125
|
+
[_M],
|
|
126
|
+
[0]
|
|
127
|
+
];
|
|
128
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
129
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
130
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
131
|
+
[_M],
|
|
132
|
+
[0]
|
|
133
|
+
];
|
|
134
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
135
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
136
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
137
|
+
[_M],
|
|
138
|
+
[0]
|
|
139
|
+
];
|
|
140
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
141
|
+
export const errorTypeRegistries = [
|
|
142
|
+
_s_registry,
|
|
143
|
+
n0_registry,
|
|
144
|
+
];
|
|
145
|
+
export var CapacityUnitsConfiguration$ = [3, n0, _CUC,
|
|
146
|
+
0,
|
|
147
|
+
[_RCU],
|
|
148
|
+
[1], 1
|
|
149
|
+
];
|
|
106
150
|
export var CreateRescoreExecutionPlanRequest$ = [3, n0, _CREPR,
|
|
107
151
|
0,
|
|
108
152
|
[_N, _D, _CU, _T, _CT],
|
|
@@ -133,12 +177,6 @@ export var Document$ = [3, n0, _Do,
|
|
|
133
177
|
[_I, _OS, _GI, _Ti, _B, _TT, _TB],
|
|
134
178
|
[0, 1, 0, 0, 0, 64 | 0, 64 | 0], 2
|
|
135
179
|
];
|
|
136
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
137
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
138
|
-
[_M],
|
|
139
|
-
[0]
|
|
140
|
-
];
|
|
141
|
-
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
142
180
|
export var ListRescoreExecutionPlansRequest$ = [3, n0, _LREPR,
|
|
143
181
|
0,
|
|
144
182
|
[_NT, _MR],
|
|
@@ -179,24 +217,6 @@ export var RescoreResultItem$ = [3, n0, _RRI,
|
|
|
179
217
|
[_DI, _Sc],
|
|
180
218
|
[0, 1]
|
|
181
219
|
];
|
|
182
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
183
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
184
|
-
[_M],
|
|
185
|
-
[0]
|
|
186
|
-
];
|
|
187
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
188
|
-
export var ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
189
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
190
|
-
[_M],
|
|
191
|
-
[0]
|
|
192
|
-
];
|
|
193
|
-
TypeRegistry.for(n0).registerError(ResourceUnavailableException$, ResourceUnavailableException);
|
|
194
|
-
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
195
|
-
{ [_e]: _c, [_hE]: 402 },
|
|
196
|
-
[_M],
|
|
197
|
-
[0]
|
|
198
|
-
];
|
|
199
|
-
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
200
220
|
export var Tag$ = [3, n0, _Ta,
|
|
201
221
|
0,
|
|
202
222
|
[_K, _V],
|
|
@@ -212,12 +232,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
|
|
|
212
232
|
[],
|
|
213
233
|
[]
|
|
214
234
|
];
|
|
215
|
-
export var ThrottlingException$ = [-3, n0, _TE,
|
|
216
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
217
|
-
[_M],
|
|
218
|
-
[0]
|
|
219
|
-
];
|
|
220
|
-
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
221
235
|
export var UntagResourceRequest$ = [3, n0, _URR,
|
|
222
236
|
0,
|
|
223
237
|
[_RARN, _TK],
|
|
@@ -233,15 +247,7 @@ export var UpdateRescoreExecutionPlanRequest$ = [3, n0, _UREPR,
|
|
|
233
247
|
[_I, _N, _D, _CU],
|
|
234
248
|
[[0, 1], 0, 0, () => CapacityUnitsConfiguration$], 1
|
|
235
249
|
];
|
|
236
|
-
export var ValidationException$ = [-3, n0, _VE,
|
|
237
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
238
|
-
[_M],
|
|
239
|
-
[0]
|
|
240
|
-
];
|
|
241
|
-
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
242
250
|
var __Unit = "unit";
|
|
243
|
-
export var KendraRankingServiceException$ = [-3, _sm, "KendraRankingServiceException", 0, [], []];
|
|
244
|
-
TypeRegistry.for(_sm).registerError(KendraRankingServiceException$, KendraRankingServiceException);
|
|
245
251
|
var BodyTokensList = 64 | 0;
|
|
246
252
|
var DocumentList = [1, n0, _DL,
|
|
247
253
|
0, () => Document$
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var KendraRankingServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
3
|
-
export declare var CapacityUnitsConfiguration$: StaticStructureSchema;
|
|
4
5
|
export declare var ConflictException$: StaticErrorSchema;
|
|
6
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
7
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
8
|
+
export declare var ResourceUnavailableException$: StaticErrorSchema;
|
|
9
|
+
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
10
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
11
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
12
|
+
/**
|
|
13
|
+
* TypeRegistry instances containing modeled errors.
|
|
14
|
+
* @internal
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
18
|
+
export declare var CapacityUnitsConfiguration$: StaticStructureSchema;
|
|
5
19
|
export declare var CreateRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
6
20
|
export declare var CreateRescoreExecutionPlanResponse$: StaticStructureSchema;
|
|
7
21
|
export declare var DeleteRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
8
22
|
export declare var DescribeRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
9
23
|
export declare var DescribeRescoreExecutionPlanResponse$: StaticStructureSchema;
|
|
10
24
|
export declare var Document$: StaticStructureSchema;
|
|
11
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
12
25
|
export declare var ListRescoreExecutionPlansRequest$: StaticStructureSchema;
|
|
13
26
|
export declare var ListRescoreExecutionPlansResponse$: StaticStructureSchema;
|
|
14
27
|
export declare var ListTagsForResourceRequest$: StaticStructureSchema;
|
|
@@ -17,18 +30,12 @@ export declare var RescoreExecutionPlanSummary$: StaticStructureSchema;
|
|
|
17
30
|
export declare var RescoreRequest$: StaticStructureSchema;
|
|
18
31
|
export declare var RescoreResult$: StaticStructureSchema;
|
|
19
32
|
export declare var RescoreResultItem$: StaticStructureSchema;
|
|
20
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
21
|
-
export declare var ResourceUnavailableException$: StaticErrorSchema;
|
|
22
|
-
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
23
33
|
export declare var Tag$: StaticStructureSchema;
|
|
24
34
|
export declare var TagResourceRequest$: StaticStructureSchema;
|
|
25
35
|
export declare var TagResourceResponse$: StaticStructureSchema;
|
|
26
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
27
36
|
export declare var UntagResourceRequest$: StaticStructureSchema;
|
|
28
37
|
export declare var UntagResourceResponse$: StaticStructureSchema;
|
|
29
38
|
export declare var UpdateRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
30
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
31
|
-
export declare var KendraRankingServiceException$: StaticErrorSchema;
|
|
32
39
|
export declare var CreateRescoreExecutionPlan$: StaticOperationSchema;
|
|
33
40
|
export declare var DeleteRescoreExecutionPlan$: StaticOperationSchema;
|
|
34
41
|
export declare var DescribeRescoreExecutionPlan$: StaticOperationSchema;
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var KendraRankingServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
7
|
-
export declare var CapacityUnitsConfiguration$: StaticStructureSchema;
|
|
8
9
|
export declare var ConflictException$: StaticErrorSchema;
|
|
10
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
11
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
12
|
+
export declare var ResourceUnavailableException$: StaticErrorSchema;
|
|
13
|
+
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
14
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
15
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
16
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
17
|
+
export declare var CapacityUnitsConfiguration$: StaticStructureSchema;
|
|
9
18
|
export declare var CreateRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
10
19
|
export declare var CreateRescoreExecutionPlanResponse$: StaticStructureSchema;
|
|
11
20
|
export declare var DeleteRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
12
21
|
export declare var DescribeRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
13
22
|
export declare var DescribeRescoreExecutionPlanResponse$: StaticStructureSchema;
|
|
14
23
|
export declare var Document$: StaticStructureSchema;
|
|
15
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
16
24
|
export declare var ListRescoreExecutionPlansRequest$: StaticStructureSchema;
|
|
17
25
|
export declare var ListRescoreExecutionPlansResponse$: StaticStructureSchema;
|
|
18
26
|
export declare var ListTagsForResourceRequest$: StaticStructureSchema;
|
|
@@ -21,18 +29,12 @@ export declare var RescoreExecutionPlanSummary$: StaticStructureSchema;
|
|
|
21
29
|
export declare var RescoreRequest$: StaticStructureSchema;
|
|
22
30
|
export declare var RescoreResult$: StaticStructureSchema;
|
|
23
31
|
export declare var RescoreResultItem$: StaticStructureSchema;
|
|
24
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
25
|
-
export declare var ResourceUnavailableException$: StaticErrorSchema;
|
|
26
|
-
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
27
32
|
export declare var Tag$: StaticStructureSchema;
|
|
28
33
|
export declare var TagResourceRequest$: StaticStructureSchema;
|
|
29
34
|
export declare var TagResourceResponse$: StaticStructureSchema;
|
|
30
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
31
35
|
export declare var UntagResourceRequest$: StaticStructureSchema;
|
|
32
36
|
export declare var UntagResourceResponse$: StaticStructureSchema;
|
|
33
37
|
export declare var UpdateRescoreExecutionPlanRequest$: StaticStructureSchema;
|
|
34
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
35
|
-
export declare var KendraRankingServiceException$: StaticErrorSchema;
|
|
36
38
|
export declare var CreateRescoreExecutionPlan$: StaticOperationSchema;
|
|
37
39
|
export declare var DeleteRescoreExecutionPlan$: StaticOperationSchema;
|
|
38
40
|
export declare var DescribeRescoreExecutionPlan$: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.988.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-kendra-ranking",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.8",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.7",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.8",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.988.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.6",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|