@aws-sdk/client-kendra-ranking 3.1067.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +68 -88
- package/dist-cjs/models/KendraRankingServiceException.js +4 -8
- package/dist-cjs/models/errors.js +17 -28
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +90 -63
- package/package.json +8 -8
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultKendraRankingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultKendraRankingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultKendraRankingHttpAuthSchemeParametersProvider = defaultKendraRankingHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultKendraRankingHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultKendraRankingHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const j = "ref";
|
|
6
3
|
const a = true, b = "isSet", c = "PartitionResult", d = "booleanEquals", e = "getAttr", f = { [j]: "Endpoint" }, g = { [j]: c }, h = {}, i = [{ [j]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -38,4 +35,4 @@ const nodes = new Int32Array([
|
|
|
38
35
|
5, r + 3, r + 6,
|
|
39
36
|
3, r + 1, r + 2,
|
|
40
37
|
]);
|
|
41
|
-
exports.bdd =
|
|
38
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
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;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -66,155 +69,155 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
66
69
|
};
|
|
67
70
|
|
|
68
71
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
69
|
-
const extensionConfiguration = Object.assign(
|
|
72
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
70
73
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
71
|
-
return Object.assign(runtimeConfig,
|
|
74
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
72
75
|
};
|
|
73
76
|
|
|
74
|
-
class KendraRankingClient extends
|
|
77
|
+
class KendraRankingClient extends Client {
|
|
75
78
|
config;
|
|
76
79
|
constructor(...[configuration]) {
|
|
77
|
-
const _config_0 =
|
|
80
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
78
81
|
super(_config_0);
|
|
79
82
|
this.initConfig = _config_0;
|
|
80
83
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
81
|
-
const _config_2 =
|
|
82
|
-
const _config_3 =
|
|
83
|
-
const _config_4 =
|
|
84
|
-
const _config_5 =
|
|
85
|
-
const _config_6 =
|
|
86
|
-
const _config_7 =
|
|
84
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
87
90
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
88
91
|
this.config = _config_8;
|
|
89
|
-
this.middlewareStack.use(
|
|
90
|
-
this.middlewareStack.use(
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
httpAuthSchemeParametersProvider:
|
|
98
|
-
identityProviderConfigProvider: async (config) => new
|
|
92
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
100
|
+
httpAuthSchemeParametersProvider: defaultKendraRankingHttpAuthSchemeParametersProvider,
|
|
101
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
99
102
|
"aws.auth#sigv4": config.credentials,
|
|
100
103
|
}),
|
|
101
104
|
}));
|
|
102
|
-
this.middlewareStack.use(
|
|
105
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
103
106
|
}
|
|
104
107
|
destroy() {
|
|
105
108
|
super.destroy();
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
|
|
109
|
-
class CreateRescoreExecutionPlanCommand extends
|
|
112
|
+
class CreateRescoreExecutionPlanCommand extends Command
|
|
110
113
|
.classBuilder()
|
|
111
114
|
.ep(commonParams)
|
|
112
115
|
.m(function (Command, cs, config, o) {
|
|
113
|
-
return [
|
|
116
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
114
117
|
})
|
|
115
118
|
.s("AWSKendraRerankingFrontendService", "CreateRescoreExecutionPlan", {})
|
|
116
119
|
.n("KendraRankingClient", "CreateRescoreExecutionPlanCommand")
|
|
117
|
-
.sc(
|
|
120
|
+
.sc(CreateRescoreExecutionPlan$)
|
|
118
121
|
.build() {
|
|
119
122
|
}
|
|
120
123
|
|
|
121
|
-
class DeleteRescoreExecutionPlanCommand extends
|
|
124
|
+
class DeleteRescoreExecutionPlanCommand extends Command
|
|
122
125
|
.classBuilder()
|
|
123
126
|
.ep(commonParams)
|
|
124
127
|
.m(function (Command, cs, config, o) {
|
|
125
|
-
return [
|
|
128
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
126
129
|
})
|
|
127
130
|
.s("AWSKendraRerankingFrontendService", "DeleteRescoreExecutionPlan", {})
|
|
128
131
|
.n("KendraRankingClient", "DeleteRescoreExecutionPlanCommand")
|
|
129
|
-
.sc(
|
|
132
|
+
.sc(DeleteRescoreExecutionPlan$)
|
|
130
133
|
.build() {
|
|
131
134
|
}
|
|
132
135
|
|
|
133
|
-
class DescribeRescoreExecutionPlanCommand extends
|
|
136
|
+
class DescribeRescoreExecutionPlanCommand extends Command
|
|
134
137
|
.classBuilder()
|
|
135
138
|
.ep(commonParams)
|
|
136
139
|
.m(function (Command, cs, config, o) {
|
|
137
|
-
return [
|
|
140
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
138
141
|
})
|
|
139
142
|
.s("AWSKendraRerankingFrontendService", "DescribeRescoreExecutionPlan", {})
|
|
140
143
|
.n("KendraRankingClient", "DescribeRescoreExecutionPlanCommand")
|
|
141
|
-
.sc(
|
|
144
|
+
.sc(DescribeRescoreExecutionPlan$)
|
|
142
145
|
.build() {
|
|
143
146
|
}
|
|
144
147
|
|
|
145
|
-
class ListRescoreExecutionPlansCommand extends
|
|
148
|
+
class ListRescoreExecutionPlansCommand extends Command
|
|
146
149
|
.classBuilder()
|
|
147
150
|
.ep(commonParams)
|
|
148
151
|
.m(function (Command, cs, config, o) {
|
|
149
|
-
return [
|
|
152
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
150
153
|
})
|
|
151
154
|
.s("AWSKendraRerankingFrontendService", "ListRescoreExecutionPlans", {})
|
|
152
155
|
.n("KendraRankingClient", "ListRescoreExecutionPlansCommand")
|
|
153
|
-
.sc(
|
|
156
|
+
.sc(ListRescoreExecutionPlans$)
|
|
154
157
|
.build() {
|
|
155
158
|
}
|
|
156
159
|
|
|
157
|
-
class ListTagsForResourceCommand extends
|
|
160
|
+
class ListTagsForResourceCommand extends Command
|
|
158
161
|
.classBuilder()
|
|
159
162
|
.ep(commonParams)
|
|
160
163
|
.m(function (Command, cs, config, o) {
|
|
161
|
-
return [
|
|
164
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
162
165
|
})
|
|
163
166
|
.s("AWSKendraRerankingFrontendService", "ListTagsForResource", {})
|
|
164
167
|
.n("KendraRankingClient", "ListTagsForResourceCommand")
|
|
165
|
-
.sc(
|
|
168
|
+
.sc(ListTagsForResource$)
|
|
166
169
|
.build() {
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
class RescoreCommand extends
|
|
172
|
+
class RescoreCommand extends Command
|
|
170
173
|
.classBuilder()
|
|
171
174
|
.ep(commonParams)
|
|
172
175
|
.m(function (Command, cs, config, o) {
|
|
173
|
-
return [
|
|
176
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
174
177
|
})
|
|
175
178
|
.s("AWSKendraRerankingFrontendService", "Rescore", {})
|
|
176
179
|
.n("KendraRankingClient", "RescoreCommand")
|
|
177
|
-
.sc(
|
|
180
|
+
.sc(Rescore$)
|
|
178
181
|
.build() {
|
|
179
182
|
}
|
|
180
183
|
|
|
181
|
-
class TagResourceCommand extends
|
|
184
|
+
class TagResourceCommand extends Command
|
|
182
185
|
.classBuilder()
|
|
183
186
|
.ep(commonParams)
|
|
184
187
|
.m(function (Command, cs, config, o) {
|
|
185
|
-
return [
|
|
188
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
186
189
|
})
|
|
187
190
|
.s("AWSKendraRerankingFrontendService", "TagResource", {})
|
|
188
191
|
.n("KendraRankingClient", "TagResourceCommand")
|
|
189
|
-
.sc(
|
|
192
|
+
.sc(TagResource$)
|
|
190
193
|
.build() {
|
|
191
194
|
}
|
|
192
195
|
|
|
193
|
-
class UntagResourceCommand extends
|
|
196
|
+
class UntagResourceCommand extends Command
|
|
194
197
|
.classBuilder()
|
|
195
198
|
.ep(commonParams)
|
|
196
199
|
.m(function (Command, cs, config, o) {
|
|
197
|
-
return [
|
|
200
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
198
201
|
})
|
|
199
202
|
.s("AWSKendraRerankingFrontendService", "UntagResource", {})
|
|
200
203
|
.n("KendraRankingClient", "UntagResourceCommand")
|
|
201
|
-
.sc(
|
|
204
|
+
.sc(UntagResource$)
|
|
202
205
|
.build() {
|
|
203
206
|
}
|
|
204
207
|
|
|
205
|
-
class UpdateRescoreExecutionPlanCommand extends
|
|
208
|
+
class UpdateRescoreExecutionPlanCommand extends Command
|
|
206
209
|
.classBuilder()
|
|
207
210
|
.ep(commonParams)
|
|
208
211
|
.m(function (Command, cs, config, o) {
|
|
209
|
-
return [
|
|
212
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
210
213
|
})
|
|
211
214
|
.s("AWSKendraRerankingFrontendService", "UpdateRescoreExecutionPlan", {})
|
|
212
215
|
.n("KendraRankingClient", "UpdateRescoreExecutionPlanCommand")
|
|
213
|
-
.sc(
|
|
216
|
+
.sc(UpdateRescoreExecutionPlan$)
|
|
214
217
|
.build() {
|
|
215
218
|
}
|
|
216
219
|
|
|
217
|
-
const paginateListRescoreExecutionPlans =
|
|
220
|
+
const paginateListRescoreExecutionPlans = createPaginator(KendraRankingClient, ListRescoreExecutionPlansCommand, "NextToken", "NextToken", "MaxResults");
|
|
218
221
|
|
|
219
222
|
const commands = {
|
|
220
223
|
CreateRescoreExecutionPlanCommand,
|
|
@@ -232,7 +235,7 @@ const paginators = {
|
|
|
232
235
|
};
|
|
233
236
|
class KendraRanking extends KendraRankingClient {
|
|
234
237
|
}
|
|
235
|
-
|
|
238
|
+
createAggregatedClient(commands, KendraRanking, { paginators });
|
|
236
239
|
|
|
237
240
|
const RescoreExecutionPlanStatus = {
|
|
238
241
|
ACTIVE: "ACTIVE",
|
|
@@ -242,9 +245,6 @@ const RescoreExecutionPlanStatus = {
|
|
|
242
245
|
UPDATING: "UPDATING",
|
|
243
246
|
};
|
|
244
247
|
|
|
245
|
-
exports.$Command = client.Command;
|
|
246
|
-
exports.__Client = client.Client;
|
|
247
|
-
exports.KendraRankingServiceException = KendraRankingServiceException.KendraRankingServiceException;
|
|
248
248
|
exports.CreateRescoreExecutionPlanCommand = CreateRescoreExecutionPlanCommand;
|
|
249
249
|
exports.DeleteRescoreExecutionPlanCommand = DeleteRescoreExecutionPlanCommand;
|
|
250
250
|
exports.DescribeRescoreExecutionPlanCommand = DescribeRescoreExecutionPlanCommand;
|
|
@@ -258,23 +258,3 @@ exports.TagResourceCommand = TagResourceCommand;
|
|
|
258
258
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
259
259
|
exports.UpdateRescoreExecutionPlanCommand = UpdateRescoreExecutionPlanCommand;
|
|
260
260
|
exports.paginateListRescoreExecutionPlans = paginateListRescoreExecutionPlans;
|
|
261
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
262
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
263
|
-
Object.defineProperty(exports, '__proto__', {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
value: schemas_0['__proto__']
|
|
266
|
-
});
|
|
267
|
-
|
|
268
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
269
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
270
|
-
});
|
|
271
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
272
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
273
|
-
Object.defineProperty(exports, '__proto__', {
|
|
274
|
-
enumerable: true,
|
|
275
|
-
value: errors['__proto__']
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
Object.keys(errors).forEach(function (k) {
|
|
279
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
280
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.KendraRankingServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class KendraRankingServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.KendraRankingServiceException = class KendraRankingServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, KendraRankingServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.KendraRankingServiceException = KendraRankingServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 {
|
|
1
|
+
const { KendraRankingServiceException: __BaseException } = require("./KendraRankingServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
Message;
|
|
@@ -15,9 +12,8 @@ class AccessDeniedException extends KendraRankingServiceException_1.KendraRankin
|
|
|
15
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
13
|
this.Message = opts.Message;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class ConflictException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.ConflictException = class ConflictException extends __BaseException {
|
|
21
17
|
name = "ConflictException";
|
|
22
18
|
$fault = "client";
|
|
23
19
|
Message;
|
|
@@ -30,9 +26,8 @@ class ConflictException extends KendraRankingServiceException_1.KendraRankingSer
|
|
|
30
26
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
27
|
this.Message = opts.Message;
|
|
32
28
|
}
|
|
33
|
-
}
|
|
34
|
-
exports.
|
|
35
|
-
class InternalServerException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
29
|
+
};
|
|
30
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
36
31
|
name = "InternalServerException";
|
|
37
32
|
$fault = "server";
|
|
38
33
|
Message;
|
|
@@ -45,9 +40,8 @@ class InternalServerException extends KendraRankingServiceException_1.KendraRank
|
|
|
45
40
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
46
41
|
this.Message = opts.Message;
|
|
47
42
|
}
|
|
48
|
-
}
|
|
49
|
-
exports.
|
|
50
|
-
class ServiceQuotaExceededException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
43
|
+
};
|
|
44
|
+
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
51
45
|
name = "ServiceQuotaExceededException";
|
|
52
46
|
$fault = "client";
|
|
53
47
|
Message;
|
|
@@ -60,9 +54,8 @@ class ServiceQuotaExceededException extends KendraRankingServiceException_1.Kend
|
|
|
60
54
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
61
55
|
this.Message = opts.Message;
|
|
62
56
|
}
|
|
63
|
-
}
|
|
64
|
-
exports.
|
|
65
|
-
class ThrottlingException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
57
|
+
};
|
|
58
|
+
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
66
59
|
name = "ThrottlingException";
|
|
67
60
|
$fault = "client";
|
|
68
61
|
Message;
|
|
@@ -75,9 +68,8 @@ class ThrottlingException extends KendraRankingServiceException_1.KendraRankingS
|
|
|
75
68
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
76
69
|
this.Message = opts.Message;
|
|
77
70
|
}
|
|
78
|
-
}
|
|
79
|
-
exports.
|
|
80
|
-
class ValidationException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
71
|
+
};
|
|
72
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
81
73
|
name = "ValidationException";
|
|
82
74
|
$fault = "client";
|
|
83
75
|
Message;
|
|
@@ -90,9 +82,8 @@ class ValidationException extends KendraRankingServiceException_1.KendraRankingS
|
|
|
90
82
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
91
83
|
this.Message = opts.Message;
|
|
92
84
|
}
|
|
93
|
-
}
|
|
94
|
-
exports.
|
|
95
|
-
class ResourceNotFoundException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
85
|
+
};
|
|
86
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
96
87
|
name = "ResourceNotFoundException";
|
|
97
88
|
$fault = "client";
|
|
98
89
|
Message;
|
|
@@ -105,9 +96,8 @@ class ResourceNotFoundException extends KendraRankingServiceException_1.KendraRa
|
|
|
105
96
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
106
97
|
this.Message = opts.Message;
|
|
107
98
|
}
|
|
108
|
-
}
|
|
109
|
-
exports.
|
|
110
|
-
class ResourceUnavailableException extends KendraRankingServiceException_1.KendraRankingServiceException {
|
|
99
|
+
};
|
|
100
|
+
exports.ResourceUnavailableException = class ResourceUnavailableException extends __BaseException {
|
|
111
101
|
name = "ResourceUnavailableException";
|
|
112
102
|
$fault = "client";
|
|
113
103
|
Message;
|
|
@@ -120,5 +110,4 @@ class ResourceUnavailableException extends KendraRankingServiceException_1.Kendr
|
|
|
120
110
|
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
121
111
|
this.Message = opts.Message;
|
|
122
112
|
}
|
|
123
|
-
}
|
|
124
|
-
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
113
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
21
17
|
const loaderConfig = {
|
|
22
18
|
profile: config?.profile,
|
|
23
19
|
logger: clientSharedValues.logger,
|
|
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
|
|
|
27
23
|
...config,
|
|
28
24
|
runtime: "node",
|
|
29
25
|
defaultsMode,
|
|
30
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
33
|
retryMode: config?.retryMode ??
|
|
38
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultKendraRankingHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2022-10-19",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultKendraRankingHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.kendraranking",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
version: "2022-10-19",
|
|
34
31
|
serviceTarget: "AWSKendraRerankingFrontendService",
|
|
35
32
|
},
|
|
36
33
|
serviceId: config?.serviceId ?? "Kendra Ranking",
|
|
37
|
-
urlParser: config?.urlParser ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,6 +1,3 @@
|
|
|
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
1
|
const _A = "Arn";
|
|
5
2
|
const _ADE = "AccessDeniedException";
|
|
6
3
|
const _B = "Body";
|
|
@@ -86,210 +83,240 @@ const _nT = "nextToken";
|
|
|
86
83
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kendraranking";
|
|
87
84
|
const _se = "server";
|
|
88
85
|
const n0 = "com.amazonaws.kendraranking";
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const _s_registry =
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
86
|
+
const { TypeRegistry } = require("@smithy/core/schema");
|
|
87
|
+
const { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, ServiceQuotaExceededException, ThrottlingException, ValidationException } = require("../models/errors");
|
|
88
|
+
const { KendraRankingServiceException } = require("../models/KendraRankingServiceException");
|
|
89
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
90
|
+
const KendraRankingServiceException$ = [-3, _s, "KendraRankingServiceException", 0, [], []];
|
|
91
|
+
exports.KendraRankingServiceException$ = KendraRankingServiceException$;
|
|
92
|
+
_s_registry.registerError(KendraRankingServiceException$, KendraRankingServiceException);
|
|
93
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
94
|
+
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
97
95
|
{ [_e]: _c, [_hE]: 403 },
|
|
98
96
|
[_M],
|
|
99
97
|
[0]
|
|
100
98
|
];
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
100
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
101
|
+
const ConflictException$ = [-3, n0, _CE,
|
|
103
102
|
{ [_e]: _c, [_hE]: 409 },
|
|
104
103
|
[_M],
|
|
105
104
|
[0]
|
|
106
105
|
];
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
exports.ConflictException$ = ConflictException$;
|
|
107
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
108
|
+
const InternalServerException$ = [-3, n0, _ISE,
|
|
109
109
|
{ [_e]: _se, [_hE]: 500 },
|
|
110
110
|
[_M],
|
|
111
111
|
[0]
|
|
112
112
|
];
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
114
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
115
|
+
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
115
116
|
{ [_e]: _c, [_hE]: 404 },
|
|
116
117
|
[_M],
|
|
117
118
|
[0]
|
|
118
119
|
];
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
121
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
122
|
+
const ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
121
123
|
{ [_e]: _c, [_hE]: 404 },
|
|
122
124
|
[_M],
|
|
123
125
|
[0]
|
|
124
126
|
];
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
exports.ResourceUnavailableException$ = ResourceUnavailableException$;
|
|
128
|
+
n0_registry.registerError(ResourceUnavailableException$, ResourceUnavailableException);
|
|
129
|
+
const ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
127
130
|
{ [_e]: _c, [_hE]: 402 },
|
|
128
131
|
[_M],
|
|
129
132
|
[0]
|
|
130
133
|
];
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
135
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
136
|
+
const ThrottlingException$ = [-3, n0, _TE,
|
|
133
137
|
{ [_e]: _c, [_hE]: 429 },
|
|
134
138
|
[_M],
|
|
135
139
|
[0]
|
|
136
140
|
];
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
142
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
143
|
+
const ValidationException$ = [-3, n0, _VE,
|
|
139
144
|
{ [_e]: _c, [_hE]: 400 },
|
|
140
145
|
[_M],
|
|
141
146
|
[0]
|
|
142
147
|
];
|
|
143
|
-
|
|
148
|
+
exports.ValidationException$ = ValidationException$;
|
|
149
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
144
150
|
exports.errorTypeRegistries = [
|
|
145
151
|
_s_registry,
|
|
146
152
|
n0_registry,
|
|
147
153
|
];
|
|
148
|
-
|
|
154
|
+
const CapacityUnitsConfiguration$ = [3, n0, _CUC,
|
|
149
155
|
0,
|
|
150
156
|
[_RCU],
|
|
151
157
|
[1], 1
|
|
152
158
|
];
|
|
153
|
-
exports.
|
|
159
|
+
exports.CapacityUnitsConfiguration$ = CapacityUnitsConfiguration$;
|
|
160
|
+
const CreateRescoreExecutionPlanRequest$ = [3, n0, _CREPR,
|
|
154
161
|
0,
|
|
155
162
|
[_N, _D, _CU, _T, _CT],
|
|
156
|
-
[0, 0, () =>
|
|
163
|
+
[0, 0, () => CapacityUnitsConfiguration$, () => TagList, [0, 4]], 1
|
|
157
164
|
];
|
|
158
|
-
exports.
|
|
165
|
+
exports.CreateRescoreExecutionPlanRequest$ = CreateRescoreExecutionPlanRequest$;
|
|
166
|
+
const CreateRescoreExecutionPlanResponse$ = [3, n0, _CREPRr,
|
|
159
167
|
0,
|
|
160
168
|
[_I, _A],
|
|
161
169
|
[0, 0], 2
|
|
162
170
|
];
|
|
163
|
-
exports.
|
|
171
|
+
exports.CreateRescoreExecutionPlanResponse$ = CreateRescoreExecutionPlanResponse$;
|
|
172
|
+
const DeleteRescoreExecutionPlanRequest$ = [3, n0, _DREPR,
|
|
164
173
|
0,
|
|
165
174
|
[_I],
|
|
166
175
|
[[0, 1]], 1
|
|
167
176
|
];
|
|
168
|
-
exports.
|
|
177
|
+
exports.DeleteRescoreExecutionPlanRequest$ = DeleteRescoreExecutionPlanRequest$;
|
|
178
|
+
const DescribeRescoreExecutionPlanRequest$ = [3, n0, _DREPRe,
|
|
169
179
|
0,
|
|
170
180
|
[_I],
|
|
171
181
|
[[0, 1]], 1
|
|
172
182
|
];
|
|
173
|
-
exports.
|
|
183
|
+
exports.DescribeRescoreExecutionPlanRequest$ = DescribeRescoreExecutionPlanRequest$;
|
|
184
|
+
const DescribeRescoreExecutionPlanResponse$ = [3, n0, _DREPRes,
|
|
174
185
|
0,
|
|
175
186
|
[_I, _A, _N, _D, _CU, _CA, _UA, _S, _EM],
|
|
176
|
-
[0, 0, 0, 0, () =>
|
|
187
|
+
[0, 0, 0, 0, () => CapacityUnitsConfiguration$, 4, 4, 0, 0]
|
|
177
188
|
];
|
|
178
|
-
exports.
|
|
189
|
+
exports.DescribeRescoreExecutionPlanResponse$ = DescribeRescoreExecutionPlanResponse$;
|
|
190
|
+
const Document$ = [3, n0, _Do,
|
|
179
191
|
0,
|
|
180
192
|
[_I, _OS, _GI, _Ti, _B, _TT, _TB],
|
|
181
193
|
[0, 1, 0, 0, 0, 64 | 0, 64 | 0], 2
|
|
182
194
|
];
|
|
183
|
-
exports.
|
|
195
|
+
exports.Document$ = Document$;
|
|
196
|
+
const ListRescoreExecutionPlansRequest$ = [3, n0, _LREPR,
|
|
184
197
|
0,
|
|
185
198
|
[_NT, _MR],
|
|
186
199
|
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
187
200
|
];
|
|
188
|
-
exports.
|
|
201
|
+
exports.ListRescoreExecutionPlansRequest$ = ListRescoreExecutionPlansRequest$;
|
|
202
|
+
const ListRescoreExecutionPlansResponse$ = [3, n0, _LREPRi,
|
|
189
203
|
0,
|
|
190
204
|
[_SI, _NT],
|
|
191
205
|
[() => RescoreExecutionPlanSummaryList, 0]
|
|
192
206
|
];
|
|
193
|
-
exports.
|
|
207
|
+
exports.ListRescoreExecutionPlansResponse$ = ListRescoreExecutionPlansResponse$;
|
|
208
|
+
const ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
194
209
|
0,
|
|
195
210
|
[_RARN],
|
|
196
211
|
[0], 1
|
|
197
212
|
];
|
|
198
|
-
exports.
|
|
213
|
+
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
214
|
+
const ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
199
215
|
0,
|
|
200
216
|
[_T],
|
|
201
217
|
[() => TagList]
|
|
202
218
|
];
|
|
203
|
-
exports.
|
|
219
|
+
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
220
|
+
const RescoreExecutionPlanSummary$ = [3, n0, _REPS,
|
|
204
221
|
0,
|
|
205
222
|
[_N, _I, _CA, _UA, _S],
|
|
206
223
|
[0, 0, 4, 4, 0]
|
|
207
224
|
];
|
|
208
|
-
exports.
|
|
225
|
+
exports.RescoreExecutionPlanSummary$ = RescoreExecutionPlanSummary$;
|
|
226
|
+
const RescoreRequest$ = [3, n0, _RR,
|
|
209
227
|
0,
|
|
210
228
|
[_REPI, _SQ, _Doc],
|
|
211
229
|
[[0, 1], 0, () => DocumentList], 3
|
|
212
230
|
];
|
|
213
|
-
exports.
|
|
231
|
+
exports.RescoreRequest$ = RescoreRequest$;
|
|
232
|
+
const RescoreResult$ = [3, n0, _RRe,
|
|
214
233
|
0,
|
|
215
234
|
[_RI, _RIe],
|
|
216
235
|
[0, () => RescoreResultItemList]
|
|
217
236
|
];
|
|
218
|
-
exports.
|
|
237
|
+
exports.RescoreResult$ = RescoreResult$;
|
|
238
|
+
const RescoreResultItem$ = [3, n0, _RRI,
|
|
219
239
|
0,
|
|
220
240
|
[_DI, _Sc],
|
|
221
241
|
[0, 1]
|
|
222
242
|
];
|
|
223
|
-
exports.
|
|
243
|
+
exports.RescoreResultItem$ = RescoreResultItem$;
|
|
244
|
+
const Tag$ = [3, n0, _Ta,
|
|
224
245
|
0,
|
|
225
246
|
[_K, _V],
|
|
226
247
|
[0, 0], 2
|
|
227
248
|
];
|
|
228
|
-
exports.
|
|
249
|
+
exports.Tag$ = Tag$;
|
|
250
|
+
const TagResourceRequest$ = [3, n0, _TRR,
|
|
229
251
|
0,
|
|
230
252
|
[_RARN, _T],
|
|
231
253
|
[0, () => TagList], 2
|
|
232
254
|
];
|
|
233
|
-
exports.
|
|
255
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
256
|
+
const TagResourceResponse$ = [3, n0, _TRRa,
|
|
234
257
|
0,
|
|
235
258
|
[],
|
|
236
259
|
[]
|
|
237
260
|
];
|
|
238
|
-
exports.
|
|
261
|
+
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
262
|
+
const UntagResourceRequest$ = [3, n0, _URR,
|
|
239
263
|
0,
|
|
240
264
|
[_RARN, _TK],
|
|
241
265
|
[0, 64 | 0], 2
|
|
242
266
|
];
|
|
243
|
-
exports.
|
|
267
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
268
|
+
const UntagResourceResponse$ = [3, n0, _URRn,
|
|
244
269
|
0,
|
|
245
270
|
[],
|
|
246
271
|
[]
|
|
247
272
|
];
|
|
248
|
-
exports.
|
|
273
|
+
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
274
|
+
const UpdateRescoreExecutionPlanRequest$ = [3, n0, _UREPR,
|
|
249
275
|
0,
|
|
250
276
|
[_I, _N, _D, _CU],
|
|
251
|
-
[[0, 1], 0, 0, () =>
|
|
277
|
+
[[0, 1], 0, 0, () => CapacityUnitsConfiguration$], 1
|
|
252
278
|
];
|
|
279
|
+
exports.UpdateRescoreExecutionPlanRequest$ = UpdateRescoreExecutionPlanRequest$;
|
|
253
280
|
var __Unit = "unit";
|
|
254
281
|
var BodyTokensList = 64 | 0;
|
|
255
282
|
var DocumentList = [1, n0, _DL,
|
|
256
|
-
0, () =>
|
|
283
|
+
0, () => Document$
|
|
257
284
|
];
|
|
258
285
|
var RescoreExecutionPlanSummaryList = [1, n0, _REPSL,
|
|
259
|
-
0, () =>
|
|
286
|
+
0, () => RescoreExecutionPlanSummary$
|
|
260
287
|
];
|
|
261
288
|
var RescoreResultItemList = [1, n0, _RRIL,
|
|
262
|
-
0, () =>
|
|
289
|
+
0, () => RescoreResultItem$
|
|
263
290
|
];
|
|
264
291
|
var TagKeyList = 64 | 0;
|
|
265
292
|
var TagList = [1, n0, _TL,
|
|
266
|
-
0, () =>
|
|
293
|
+
0, () => Tag$
|
|
267
294
|
];
|
|
268
295
|
var TitleTokensList = 64 | 0;
|
|
269
296
|
exports.CreateRescoreExecutionPlan$ = [9, n0, _CREP,
|
|
270
|
-
{ [_h]: ["POST", "/rescore-execution-plans", 200] }, () =>
|
|
297
|
+
{ [_h]: ["POST", "/rescore-execution-plans", 200] }, () => CreateRescoreExecutionPlanRequest$, () => CreateRescoreExecutionPlanResponse$
|
|
271
298
|
];
|
|
272
299
|
exports.DeleteRescoreExecutionPlan$ = [9, n0, _DREP,
|
|
273
|
-
{ [_h]: ["DELETE", "/rescore-execution-plans/{Id}", 200] }, () =>
|
|
300
|
+
{ [_h]: ["DELETE", "/rescore-execution-plans/{Id}", 200] }, () => DeleteRescoreExecutionPlanRequest$, () => __Unit
|
|
274
301
|
];
|
|
275
302
|
exports.DescribeRescoreExecutionPlan$ = [9, n0, _DREPe,
|
|
276
|
-
{ [_h]: ["GET", "/rescore-execution-plans/{Id}", 200] }, () =>
|
|
303
|
+
{ [_h]: ["GET", "/rescore-execution-plans/{Id}", 200] }, () => DescribeRescoreExecutionPlanRequest$, () => DescribeRescoreExecutionPlanResponse$
|
|
277
304
|
];
|
|
278
305
|
exports.ListRescoreExecutionPlans$ = [9, n0, _LREP,
|
|
279
|
-
{ [_h]: ["GET", "/rescore-execution-plans", 200] }, () =>
|
|
306
|
+
{ [_h]: ["GET", "/rescore-execution-plans", 200] }, () => ListRescoreExecutionPlansRequest$, () => ListRescoreExecutionPlansResponse$
|
|
280
307
|
];
|
|
281
308
|
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
282
|
-
0, () =>
|
|
309
|
+
0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
283
310
|
];
|
|
284
311
|
exports.Rescore$ = [9, n0, _R,
|
|
285
|
-
{ [_h]: ["POST", "/rescore-execution-plans/{RescoreExecutionPlanId}/rescore", 200] }, () =>
|
|
312
|
+
{ [_h]: ["POST", "/rescore-execution-plans/{RescoreExecutionPlanId}/rescore", 200] }, () => RescoreRequest$, () => RescoreResult$
|
|
286
313
|
];
|
|
287
314
|
exports.TagResource$ = [9, n0, _TR,
|
|
288
|
-
0, () =>
|
|
315
|
+
0, () => TagResourceRequest$, () => TagResourceResponse$
|
|
289
316
|
];
|
|
290
317
|
exports.UntagResource$ = [9, n0, _UR,
|
|
291
|
-
0, () =>
|
|
318
|
+
0, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
292
319
|
];
|
|
293
320
|
exports.UpdateRescoreExecutionPlan$ = [9, n0, _UREP,
|
|
294
|
-
{ [_h]: ["PUT", "/rescore-execution-plans/{Id}", 200] }, () =>
|
|
321
|
+
{ [_h]: ["PUT", "/rescore-execution-plans/{Id}", 200] }, () => UpdateRescoreExecutionPlanRequest$, () => __Unit
|
|
295
322
|
];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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.1069.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",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
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.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.974.21",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.56",
|
|
26
|
+
"@aws-sdk/types": "^3.973.13",
|
|
27
27
|
"@smithy/core": "^3.24.6",
|
|
28
28
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
29
29
|
"@smithy/node-http-handler": "^4.7.6",
|