@aws-sdk/client-wisdom 3.509.0 → 3.513.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/httpAuthExtensionConfiguration.js +1 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/index.js +128 -70
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-es/WisdomClient.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/WisdomClient.d.ts +13 -11
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +6 -4
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/WisdomClient.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +16 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultWisdomHttpAuthSchemeProvider = exports.defaultWisdomHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultWisdomHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
+
return {
|
|
8
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
10
|
+
(() => {
|
|
11
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
12
|
+
})(),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.defaultWisdomHttpAuthSchemeParametersProvider = defaultWisdomHttpAuthSchemeParametersProvider;
|
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
+
return {
|
|
18
|
+
schemeId: "aws.auth#sigv4",
|
|
19
|
+
signingProperties: {
|
|
20
|
+
name: "wisdom",
|
|
21
|
+
region: authParameters.region,
|
|
22
|
+
},
|
|
23
|
+
propertiesExtractor: (config, context) => ({
|
|
24
|
+
signingProperties: {
|
|
25
|
+
config,
|
|
26
|
+
context,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const defaultWisdomHttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
+
const options = [];
|
|
33
|
+
switch (authParameters.operation) {
|
|
34
|
+
default: {
|
|
35
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return options;
|
|
39
|
+
};
|
|
40
|
+
exports.defaultWisdomHttpAuthSchemeProvider = defaultWisdomHttpAuthSchemeProvider;
|
|
41
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
+
return {
|
|
44
|
+
...config_0,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -151,13 +151,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
151
151
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
152
152
|
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
153
153
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
154
|
-
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
155
154
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
156
155
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
156
|
+
var import_core = require("@smithy/core");
|
|
157
157
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
158
158
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
159
159
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
160
160
|
|
|
161
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
161
162
|
|
|
162
163
|
// src/endpoint/EndpointParameters.ts
|
|
163
164
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
@@ -182,19 +183,62 @@ var import_runtimeConfig = require("././runtimeConfig");
|
|
|
182
183
|
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
183
184
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
184
185
|
var import_smithy_client = require("@smithy/smithy-client");
|
|
186
|
+
|
|
187
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
188
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
189
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
190
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
191
|
+
let _credentials = runtimeConfig.credentials;
|
|
192
|
+
return {
|
|
193
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
194
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
195
|
+
if (index === -1) {
|
|
196
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
197
|
+
} else {
|
|
198
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
httpAuthSchemes() {
|
|
202
|
+
return _httpAuthSchemes;
|
|
203
|
+
},
|
|
204
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
205
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
206
|
+
},
|
|
207
|
+
httpAuthSchemeProvider() {
|
|
208
|
+
return _httpAuthSchemeProvider;
|
|
209
|
+
},
|
|
210
|
+
setCredentials(credentials) {
|
|
211
|
+
_credentials = credentials;
|
|
212
|
+
},
|
|
213
|
+
credentials() {
|
|
214
|
+
return _credentials;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
218
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
219
|
+
return {
|
|
220
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
221
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
222
|
+
credentials: config.credentials()
|
|
223
|
+
};
|
|
224
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
225
|
+
|
|
226
|
+
// src/runtimeExtensions.ts
|
|
185
227
|
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
186
228
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
187
229
|
const extensionConfiguration = {
|
|
188
230
|
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
189
231
|
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
190
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
232
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
233
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
191
234
|
};
|
|
192
235
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
193
236
|
return {
|
|
194
237
|
...runtimeConfig,
|
|
195
238
|
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
196
239
|
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
197
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
240
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
241
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
198
242
|
};
|
|
199
243
|
}, "resolveRuntimeExtensions");
|
|
200
244
|
|
|
@@ -207,8 +251,8 @@ var _WisdomClient = class _WisdomClient extends import_smithy_client.Client {
|
|
|
207
251
|
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
208
252
|
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
209
253
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
210
|
-
const _config_6 = (0,
|
|
211
|
-
const _config_7 = (0,
|
|
254
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
|
255
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
212
256
|
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
213
257
|
super(_config_8);
|
|
214
258
|
this.config = _config_8;
|
|
@@ -217,8 +261,14 @@ var _WisdomClient = class _WisdomClient extends import_smithy_client.Client {
|
|
|
217
261
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
218
262
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
219
263
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
220
|
-
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
221
264
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
265
|
+
this.middlewareStack.use(
|
|
266
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
267
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
268
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
269
|
+
})
|
|
270
|
+
);
|
|
271
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
222
272
|
}
|
|
223
273
|
/**
|
|
224
274
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -228,6 +278,14 @@ var _WisdomClient = class _WisdomClient extends import_smithy_client.Client {
|
|
|
228
278
|
destroy() {
|
|
229
279
|
super.destroy();
|
|
230
280
|
}
|
|
281
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
282
|
+
return import_httpAuthSchemeProvider.defaultWisdomHttpAuthSchemeParametersProvider;
|
|
283
|
+
}
|
|
284
|
+
getIdentityProviderConfigProvider() {
|
|
285
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
286
|
+
"aws.auth#sigv4": config.credentials
|
|
287
|
+
});
|
|
288
|
+
}
|
|
231
289
|
};
|
|
232
290
|
__name(_WisdomClient, "WisdomClient");
|
|
233
291
|
var WisdomClient = _WisdomClient;
|
|
@@ -242,8 +300,8 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
242
300
|
var import_types = require("@smithy/types");
|
|
243
301
|
|
|
244
302
|
// src/protocols/Aws_restJson1.ts
|
|
245
|
-
var
|
|
246
|
-
|
|
303
|
+
var import_core2 = require("@aws-sdk/core");
|
|
304
|
+
|
|
247
305
|
|
|
248
306
|
var import_uuid = require("uuid");
|
|
249
307
|
|
|
@@ -728,7 +786,7 @@ var StartImportJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
|
|
|
728
786
|
|
|
729
787
|
// src/protocols/Aws_restJson1.ts
|
|
730
788
|
var se_CreateAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
731
|
-
const b = (0,
|
|
789
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
732
790
|
const headers = {
|
|
733
791
|
"content-type": "application/json"
|
|
734
792
|
};
|
|
@@ -748,7 +806,7 @@ var se_CreateAssistantCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
748
806
|
return b.build();
|
|
749
807
|
}, "se_CreateAssistantCommand");
|
|
750
808
|
var se_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
751
|
-
const b = (0,
|
|
809
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
752
810
|
const headers = {
|
|
753
811
|
"content-type": "application/json"
|
|
754
812
|
};
|
|
@@ -767,7 +825,7 @@ var se_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (input,
|
|
|
767
825
|
return b.build();
|
|
768
826
|
}, "se_CreateAssistantAssociationCommand");
|
|
769
827
|
var se_CreateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
770
|
-
const b = (0,
|
|
828
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
771
829
|
const headers = {
|
|
772
830
|
"content-type": "application/json"
|
|
773
831
|
};
|
|
@@ -789,7 +847,7 @@ var se_CreateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
789
847
|
return b.build();
|
|
790
848
|
}, "se_CreateContentCommand");
|
|
791
849
|
var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
792
|
-
const b = (0,
|
|
850
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
793
851
|
const headers = {
|
|
794
852
|
"content-type": "application/json"
|
|
795
853
|
};
|
|
@@ -811,7 +869,7 @@ var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
811
869
|
return b.build();
|
|
812
870
|
}, "se_CreateKnowledgeBaseCommand");
|
|
813
871
|
var se_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
814
|
-
const b = (0,
|
|
872
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
815
873
|
const headers = {
|
|
816
874
|
"content-type": "application/json"
|
|
817
875
|
};
|
|
@@ -837,7 +895,7 @@ var se_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
837
895
|
return b.build();
|
|
838
896
|
}, "se_CreateQuickResponseCommand");
|
|
839
897
|
var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
840
|
-
const b = (0,
|
|
898
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
841
899
|
const headers = {
|
|
842
900
|
"content-type": "application/json"
|
|
843
901
|
};
|
|
@@ -856,7 +914,7 @@ var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
856
914
|
return b.build();
|
|
857
915
|
}, "se_CreateSessionCommand");
|
|
858
916
|
var se_DeleteAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
859
|
-
const b = (0,
|
|
917
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
860
918
|
const headers = {};
|
|
861
919
|
b.bp("/assistants/{assistantId}");
|
|
862
920
|
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
@@ -865,7 +923,7 @@ var se_DeleteAssistantCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
865
923
|
return b.build();
|
|
866
924
|
}, "se_DeleteAssistantCommand");
|
|
867
925
|
var se_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
868
|
-
const b = (0,
|
|
926
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
869
927
|
const headers = {};
|
|
870
928
|
b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
|
|
871
929
|
b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
|
|
@@ -875,7 +933,7 @@ var se_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (input,
|
|
|
875
933
|
return b.build();
|
|
876
934
|
}, "se_DeleteAssistantAssociationCommand");
|
|
877
935
|
var se_DeleteContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
878
|
-
const b = (0,
|
|
936
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
879
937
|
const headers = {};
|
|
880
938
|
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
|
|
881
939
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -885,7 +943,7 @@ var se_DeleteContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
885
943
|
return b.build();
|
|
886
944
|
}, "se_DeleteContentCommand");
|
|
887
945
|
var se_DeleteImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
888
|
-
const b = (0,
|
|
946
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
889
947
|
const headers = {};
|
|
890
948
|
b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
|
|
891
949
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -895,7 +953,7 @@ var se_DeleteImportJobCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
895
953
|
return b.build();
|
|
896
954
|
}, "se_DeleteImportJobCommand");
|
|
897
955
|
var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
898
|
-
const b = (0,
|
|
956
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
899
957
|
const headers = {};
|
|
900
958
|
b.bp("/knowledgeBases/{knowledgeBaseId}");
|
|
901
959
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -904,7 +962,7 @@ var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
904
962
|
return b.build();
|
|
905
963
|
}, "se_DeleteKnowledgeBaseCommand");
|
|
906
964
|
var se_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
907
|
-
const b = (0,
|
|
965
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
908
966
|
const headers = {};
|
|
909
967
|
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
|
|
910
968
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -914,7 +972,7 @@ var se_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
914
972
|
return b.build();
|
|
915
973
|
}, "se_DeleteQuickResponseCommand");
|
|
916
974
|
var se_GetAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
917
|
-
const b = (0,
|
|
975
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
918
976
|
const headers = {};
|
|
919
977
|
b.bp("/assistants/{assistantId}");
|
|
920
978
|
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
@@ -923,7 +981,7 @@ var se_GetAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
923
981
|
return b.build();
|
|
924
982
|
}, "se_GetAssistantCommand");
|
|
925
983
|
var se_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
926
|
-
const b = (0,
|
|
984
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
927
985
|
const headers = {};
|
|
928
986
|
b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
|
|
929
987
|
b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
|
|
@@ -933,7 +991,7 @@ var se_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
933
991
|
return b.build();
|
|
934
992
|
}, "se_GetAssistantAssociationCommand");
|
|
935
993
|
var se_GetContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
936
|
-
const b = (0,
|
|
994
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
937
995
|
const headers = {};
|
|
938
996
|
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
|
|
939
997
|
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
@@ -943,7 +1001,7 @@ var se_GetContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
943
1001
|
return b.build();
|
|
944
1002
|
}, "se_GetContentCommand");
|
|
945
1003
|
var se_GetContentSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
946
|
-
const b = (0,
|
|
1004
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
947
1005
|
const headers = {};
|
|
948
1006
|
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary");
|
|
949
1007
|
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
@@ -953,7 +1011,7 @@ var se_GetContentSummaryCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
953
1011
|
return b.build();
|
|
954
1012
|
}, "se_GetContentSummaryCommand");
|
|
955
1013
|
var se_GetImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
956
|
-
const b = (0,
|
|
1014
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
957
1015
|
const headers = {};
|
|
958
1016
|
b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
|
|
959
1017
|
b.p("importJobId", () => input.importJobId, "{importJobId}", false);
|
|
@@ -963,7 +1021,7 @@ var se_GetImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
963
1021
|
return b.build();
|
|
964
1022
|
}, "se_GetImportJobCommand");
|
|
965
1023
|
var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
966
|
-
const b = (0,
|
|
1024
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
967
1025
|
const headers = {};
|
|
968
1026
|
b.bp("/knowledgeBases/{knowledgeBaseId}");
|
|
969
1027
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -972,7 +1030,7 @@ var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
972
1030
|
return b.build();
|
|
973
1031
|
}, "se_GetKnowledgeBaseCommand");
|
|
974
1032
|
var se_GetQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
975
|
-
const b = (0,
|
|
1033
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
976
1034
|
const headers = {};
|
|
977
1035
|
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
|
|
978
1036
|
b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
@@ -982,7 +1040,7 @@ var se_GetQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
982
1040
|
return b.build();
|
|
983
1041
|
}, "se_GetQuickResponseCommand");
|
|
984
1042
|
var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
985
|
-
const b = (0,
|
|
1043
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
986
1044
|
const headers = {};
|
|
987
1045
|
b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations");
|
|
988
1046
|
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
@@ -996,7 +1054,7 @@ var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
996
1054
|
return b.build();
|
|
997
1055
|
}, "se_GetRecommendationsCommand");
|
|
998
1056
|
var se_GetSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
999
|
-
const b = (0,
|
|
1057
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1000
1058
|
const headers = {};
|
|
1001
1059
|
b.bp("/assistants/{assistantId}/sessions/{sessionId}");
|
|
1002
1060
|
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
@@ -1006,7 +1064,7 @@ var se_GetSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1006
1064
|
return b.build();
|
|
1007
1065
|
}, "se_GetSessionCommand");
|
|
1008
1066
|
var se_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1009
|
-
const b = (0,
|
|
1067
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1010
1068
|
const headers = {};
|
|
1011
1069
|
b.bp("/assistants/{assistantId}/associations");
|
|
1012
1070
|
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
@@ -1019,7 +1077,7 @@ var se_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
1019
1077
|
return b.build();
|
|
1020
1078
|
}, "se_ListAssistantAssociationsCommand");
|
|
1021
1079
|
var se_ListAssistantsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1022
|
-
const b = (0,
|
|
1080
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1023
1081
|
const headers = {};
|
|
1024
1082
|
b.bp("/assistants");
|
|
1025
1083
|
const query = (0, import_smithy_client.map)({
|
|
@@ -1031,7 +1089,7 @@ var se_ListAssistantsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1031
1089
|
return b.build();
|
|
1032
1090
|
}, "se_ListAssistantsCommand");
|
|
1033
1091
|
var se_ListContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1034
|
-
const b = (0,
|
|
1092
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1035
1093
|
const headers = {};
|
|
1036
1094
|
b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
|
|
1037
1095
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -1044,7 +1102,7 @@ var se_ListContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1044
1102
|
return b.build();
|
|
1045
1103
|
}, "se_ListContentsCommand");
|
|
1046
1104
|
var se_ListImportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1047
|
-
const b = (0,
|
|
1105
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1048
1106
|
const headers = {};
|
|
1049
1107
|
b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs");
|
|
1050
1108
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -1057,7 +1115,7 @@ var se_ListImportJobsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1057
1115
|
return b.build();
|
|
1058
1116
|
}, "se_ListImportJobsCommand");
|
|
1059
1117
|
var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1060
|
-
const b = (0,
|
|
1118
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1061
1119
|
const headers = {};
|
|
1062
1120
|
b.bp("/knowledgeBases");
|
|
1063
1121
|
const query = (0, import_smithy_client.map)({
|
|
@@ -1069,7 +1127,7 @@ var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1069
1127
|
return b.build();
|
|
1070
1128
|
}, "se_ListKnowledgeBasesCommand");
|
|
1071
1129
|
var se_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1072
|
-
const b = (0,
|
|
1130
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1073
1131
|
const headers = {};
|
|
1074
1132
|
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses");
|
|
1075
1133
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -1082,7 +1140,7 @@ var se_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1082
1140
|
return b.build();
|
|
1083
1141
|
}, "se_ListQuickResponsesCommand");
|
|
1084
1142
|
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1085
|
-
const b = (0,
|
|
1143
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1086
1144
|
const headers = {};
|
|
1087
1145
|
b.bp("/tags/{resourceArn}");
|
|
1088
1146
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -1091,7 +1149,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1091
1149
|
return b.build();
|
|
1092
1150
|
}, "se_ListTagsForResourceCommand");
|
|
1093
1151
|
var se_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1094
|
-
const b = (0,
|
|
1152
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1095
1153
|
const headers = {
|
|
1096
1154
|
"content-type": "application/json"
|
|
1097
1155
|
};
|
|
@@ -1108,7 +1166,7 @@ var se_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (inpu
|
|
|
1108
1166
|
return b.build();
|
|
1109
1167
|
}, "se_NotifyRecommendationsReceivedCommand");
|
|
1110
1168
|
var se_QueryAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1111
|
-
const b = (0,
|
|
1169
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1112
1170
|
const headers = {
|
|
1113
1171
|
"content-type": "application/json"
|
|
1114
1172
|
};
|
|
@@ -1126,7 +1184,7 @@ var se_QueryAssistantCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1126
1184
|
return b.build();
|
|
1127
1185
|
}, "se_QueryAssistantCommand");
|
|
1128
1186
|
var se_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1129
|
-
const b = (0,
|
|
1187
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1130
1188
|
const headers = {};
|
|
1131
1189
|
b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri");
|
|
1132
1190
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -1135,7 +1193,7 @@ var se_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (inp
|
|
|
1135
1193
|
return b.build();
|
|
1136
1194
|
}, "se_RemoveKnowledgeBaseTemplateUriCommand");
|
|
1137
1195
|
var se_SearchContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1138
|
-
const b = (0,
|
|
1196
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1139
1197
|
const headers = {
|
|
1140
1198
|
"content-type": "application/json"
|
|
1141
1199
|
};
|
|
@@ -1155,7 +1213,7 @@ var se_SearchContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1155
1213
|
return b.build();
|
|
1156
1214
|
}, "se_SearchContentCommand");
|
|
1157
1215
|
var se_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1158
|
-
const b = (0,
|
|
1216
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1159
1217
|
const headers = {
|
|
1160
1218
|
"content-type": "application/json"
|
|
1161
1219
|
};
|
|
@@ -1176,7 +1234,7 @@ var se_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
1176
1234
|
return b.build();
|
|
1177
1235
|
}, "se_SearchQuickResponsesCommand");
|
|
1178
1236
|
var se_SearchSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1179
|
-
const b = (0,
|
|
1237
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1180
1238
|
const headers = {
|
|
1181
1239
|
"content-type": "application/json"
|
|
1182
1240
|
};
|
|
@@ -1196,7 +1254,7 @@ var se_SearchSessionsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1196
1254
|
return b.build();
|
|
1197
1255
|
}, "se_SearchSessionsCommand");
|
|
1198
1256
|
var se_StartContentUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1199
|
-
const b = (0,
|
|
1257
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1200
1258
|
const headers = {
|
|
1201
1259
|
"content-type": "application/json"
|
|
1202
1260
|
};
|
|
@@ -1213,7 +1271,7 @@ var se_StartContentUploadCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1213
1271
|
return b.build();
|
|
1214
1272
|
}, "se_StartContentUploadCommand");
|
|
1215
1273
|
var se_StartImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1216
|
-
const b = (0,
|
|
1274
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1217
1275
|
const headers = {
|
|
1218
1276
|
"content-type": "application/json"
|
|
1219
1277
|
};
|
|
@@ -1233,7 +1291,7 @@ var se_StartImportJobCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1233
1291
|
return b.build();
|
|
1234
1292
|
}, "se_StartImportJobCommand");
|
|
1235
1293
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1236
|
-
const b = (0,
|
|
1294
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1237
1295
|
const headers = {
|
|
1238
1296
|
"content-type": "application/json"
|
|
1239
1297
|
};
|
|
@@ -1249,7 +1307,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1249
1307
|
return b.build();
|
|
1250
1308
|
}, "se_TagResourceCommand");
|
|
1251
1309
|
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1252
|
-
const b = (0,
|
|
1310
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1253
1311
|
const headers = {};
|
|
1254
1312
|
b.bp("/tags/{resourceArn}");
|
|
1255
1313
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -1264,7 +1322,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1264
1322
|
return b.build();
|
|
1265
1323
|
}, "se_UntagResourceCommand");
|
|
1266
1324
|
var se_UpdateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1267
|
-
const b = (0,
|
|
1325
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1268
1326
|
const headers = {
|
|
1269
1327
|
"content-type": "application/json"
|
|
1270
1328
|
};
|
|
@@ -1286,7 +1344,7 @@ var se_UpdateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1286
1344
|
return b.build();
|
|
1287
1345
|
}, "se_UpdateContentCommand");
|
|
1288
1346
|
var se_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1289
|
-
const b = (0,
|
|
1347
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1290
1348
|
const headers = {
|
|
1291
1349
|
"content-type": "application/json"
|
|
1292
1350
|
};
|
|
@@ -1302,7 +1360,7 @@ var se_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (inp
|
|
|
1302
1360
|
return b.build();
|
|
1303
1361
|
}, "se_UpdateKnowledgeBaseTemplateUriCommand");
|
|
1304
1362
|
var se_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1305
|
-
const b = (0,
|
|
1363
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1306
1364
|
const headers = {
|
|
1307
1365
|
"content-type": "application/json"
|
|
1308
1366
|
};
|
|
@@ -2094,7 +2152,7 @@ var de_KnowledgeBaseData = /* @__PURE__ */ __name((output, context) => {
|
|
|
2094
2152
|
name: import_smithy_client.expectString,
|
|
2095
2153
|
renderingConfiguration: import_smithy_client._json,
|
|
2096
2154
|
serverSideEncryptionConfiguration: import_smithy_client._json,
|
|
2097
|
-
sourceConfiguration: (_) => (0, import_smithy_client._json)((0,
|
|
2155
|
+
sourceConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
2098
2156
|
status: import_smithy_client.expectString,
|
|
2099
2157
|
tags: import_smithy_client._json
|
|
2100
2158
|
});
|
|
@@ -2999,44 +3057,44 @@ var Wisdom = _Wisdom;
|
|
|
2999
3057
|
(0, import_smithy_client.createAggregatedClient)(commands, Wisdom);
|
|
3000
3058
|
|
|
3001
3059
|
// src/pagination/ListAssistantAssociationsPaginator.ts
|
|
3002
|
-
|
|
3003
|
-
var paginateListAssistantAssociations = (0,
|
|
3060
|
+
|
|
3061
|
+
var paginateListAssistantAssociations = (0, import_core.createPaginator)(WisdomClient, ListAssistantAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
3004
3062
|
|
|
3005
3063
|
// src/pagination/ListAssistantsPaginator.ts
|
|
3006
|
-
|
|
3007
|
-
var paginateListAssistants = (0,
|
|
3064
|
+
|
|
3065
|
+
var paginateListAssistants = (0, import_core.createPaginator)(WisdomClient, ListAssistantsCommand, "nextToken", "nextToken", "maxResults");
|
|
3008
3066
|
|
|
3009
3067
|
// src/pagination/ListContentsPaginator.ts
|
|
3010
|
-
|
|
3011
|
-
var paginateListContents = (0,
|
|
3068
|
+
|
|
3069
|
+
var paginateListContents = (0, import_core.createPaginator)(WisdomClient, ListContentsCommand, "nextToken", "nextToken", "maxResults");
|
|
3012
3070
|
|
|
3013
3071
|
// src/pagination/ListImportJobsPaginator.ts
|
|
3014
|
-
|
|
3015
|
-
var paginateListImportJobs = (0,
|
|
3072
|
+
|
|
3073
|
+
var paginateListImportJobs = (0, import_core.createPaginator)(WisdomClient, ListImportJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
3016
3074
|
|
|
3017
3075
|
// src/pagination/ListKnowledgeBasesPaginator.ts
|
|
3018
|
-
|
|
3019
|
-
var paginateListKnowledgeBases = (0,
|
|
3076
|
+
|
|
3077
|
+
var paginateListKnowledgeBases = (0, import_core.createPaginator)(WisdomClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
3020
3078
|
|
|
3021
3079
|
// src/pagination/ListQuickResponsesPaginator.ts
|
|
3022
|
-
|
|
3023
|
-
var paginateListQuickResponses = (0,
|
|
3080
|
+
|
|
3081
|
+
var paginateListQuickResponses = (0, import_core.createPaginator)(WisdomClient, ListQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
|
|
3024
3082
|
|
|
3025
3083
|
// src/pagination/QueryAssistantPaginator.ts
|
|
3026
|
-
|
|
3027
|
-
var paginateQueryAssistant = (0,
|
|
3084
|
+
|
|
3085
|
+
var paginateQueryAssistant = (0, import_core.createPaginator)(WisdomClient, QueryAssistantCommand, "nextToken", "nextToken", "maxResults");
|
|
3028
3086
|
|
|
3029
3087
|
// src/pagination/SearchContentPaginator.ts
|
|
3030
|
-
|
|
3031
|
-
var paginateSearchContent = (0,
|
|
3088
|
+
|
|
3089
|
+
var paginateSearchContent = (0, import_core.createPaginator)(WisdomClient, SearchContentCommand, "nextToken", "nextToken", "maxResults");
|
|
3032
3090
|
|
|
3033
3091
|
// src/pagination/SearchQuickResponsesPaginator.ts
|
|
3034
|
-
|
|
3035
|
-
var paginateSearchQuickResponses = (0,
|
|
3092
|
+
|
|
3093
|
+
var paginateSearchQuickResponses = (0, import_core.createPaginator)(WisdomClient, SearchQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
|
|
3036
3094
|
|
|
3037
3095
|
// src/pagination/SearchSessionsPaginator.ts
|
|
3038
|
-
|
|
3039
|
-
var paginateSearchSessions = (0,
|
|
3096
|
+
|
|
3097
|
+
var paginateSearchSessions = (0, import_core.createPaginator)(WisdomClient, SearchSessionsCommand, "nextToken", "nextToken", "maxResults");
|
|
3040
3098
|
|
|
3041
3099
|
// src/index.ts
|
|
3042
3100
|
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
4
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
6
|
const url_parser_1 = require("@smithy/url-parser");
|
|
6
7
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
8
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
8
10
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
11
|
const getRuntimeConfig = (config) => {
|
|
10
12
|
return {
|
|
@@ -14,6 +16,14 @@ const getRuntimeConfig = (config) => {
|
|
|
14
16
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
17
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
18
|
extensions: config?.extensions ?? [],
|
|
19
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultWisdomHttpAuthSchemeProvider,
|
|
20
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
21
|
+
{
|
|
22
|
+
schemeId: "aws.auth#sigv4",
|
|
23
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
17
27
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
28
|
serviceId: config?.serviceId ?? "Wisdom",
|
|
19
29
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|