@aws-sdk/client-qconnect 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.
@@ -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.defaultQConnectHttpAuthSchemeProvider = exports.defaultQConnectHttpAuthSchemeParametersProvider = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const util_middleware_1 = require("@smithy/util-middleware");
6
+ const defaultQConnectHttpAuthSchemeParametersProvider = 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.defaultQConnectHttpAuthSchemeParametersProvider = defaultQConnectHttpAuthSchemeParametersProvider;
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 defaultQConnectHttpAuthSchemeProvider = (authParameters) => {
32
+ const options = [];
33
+ switch (authParameters.operation) {
34
+ default: {
35
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
36
+ }
37
+ }
38
+ return options;
39
+ };
40
+ exports.defaultQConnectHttpAuthSchemeProvider = defaultQConnectHttpAuthSchemeProvider;
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
@@ -169,13 +169,14 @@ module.exports = __toCommonJS(src_exports);
169
169
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
170
170
  var import_middleware_logger = require("@aws-sdk/middleware-logger");
171
171
  var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
172
- var import_middleware_signing = require("@aws-sdk/middleware-signing");
173
172
  var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
174
173
  var import_config_resolver = require("@smithy/config-resolver");
174
+ var import_core = require("@smithy/core");
175
175
  var import_middleware_content_length = require("@smithy/middleware-content-length");
176
176
  var import_middleware_endpoint = require("@smithy/middleware-endpoint");
177
177
  var import_middleware_retry = require("@smithy/middleware-retry");
178
178
 
179
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
179
180
 
180
181
  // src/endpoint/EndpointParameters.ts
181
182
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
@@ -200,19 +201,62 @@ var import_runtimeConfig = require("././runtimeConfig");
200
201
  var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
201
202
  var import_protocol_http = require("@smithy/protocol-http");
202
203
  var import_smithy_client = require("@smithy/smithy-client");
204
+
205
+ // src/auth/httpAuthExtensionConfiguration.ts
206
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
207
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
208
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
209
+ let _credentials = runtimeConfig.credentials;
210
+ return {
211
+ setHttpAuthScheme(httpAuthScheme) {
212
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
213
+ if (index === -1) {
214
+ _httpAuthSchemes.push(httpAuthScheme);
215
+ } else {
216
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
217
+ }
218
+ },
219
+ httpAuthSchemes() {
220
+ return _httpAuthSchemes;
221
+ },
222
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
223
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
224
+ },
225
+ httpAuthSchemeProvider() {
226
+ return _httpAuthSchemeProvider;
227
+ },
228
+ setCredentials(credentials) {
229
+ _credentials = credentials;
230
+ },
231
+ credentials() {
232
+ return _credentials;
233
+ }
234
+ };
235
+ }, "getHttpAuthExtensionConfiguration");
236
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
237
+ return {
238
+ httpAuthSchemes: config.httpAuthSchemes(),
239
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
240
+ credentials: config.credentials()
241
+ };
242
+ }, "resolveHttpAuthRuntimeConfig");
243
+
244
+ // src/runtimeExtensions.ts
203
245
  var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
204
246
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
205
247
  const extensionConfiguration = {
206
248
  ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
207
249
  ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
208
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
250
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
251
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
209
252
  };
210
253
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
211
254
  return {
212
255
  ...runtimeConfig,
213
256
  ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
214
257
  ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
215
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
258
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
259
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
216
260
  };
217
261
  }, "resolveRuntimeExtensions");
218
262
 
@@ -225,8 +269,8 @@ var _QConnectClient = class _QConnectClient extends import_smithy_client.Client
225
269
  const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
226
270
  const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
227
271
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
228
- const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
229
- const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
272
+ const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
273
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
230
274
  const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
231
275
  super(_config_8);
232
276
  this.config = _config_8;
@@ -235,8 +279,14 @@ var _QConnectClient = class _QConnectClient extends import_smithy_client.Client
235
279
  this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
236
280
  this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
237
281
  this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
238
- this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
239
282
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
283
+ this.middlewareStack.use(
284
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
285
+ httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
286
+ identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
287
+ })
288
+ );
289
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
240
290
  }
241
291
  /**
242
292
  * Destroy underlying resources, like sockets. It's usually not necessary to do this.
@@ -246,6 +296,14 @@ var _QConnectClient = class _QConnectClient extends import_smithy_client.Client
246
296
  destroy() {
247
297
  super.destroy();
248
298
  }
299
+ getDefaultHttpAuthSchemeParametersProvider() {
300
+ return import_httpAuthSchemeProvider.defaultQConnectHttpAuthSchemeParametersProvider;
301
+ }
302
+ getIdentityProviderConfigProvider() {
303
+ return async (config) => new import_core.DefaultIdentityProviderConfig({
304
+ "aws.auth#sigv4": config.credentials
305
+ });
306
+ }
249
307
  };
250
308
  __name(_QConnectClient, "QConnectClient");
251
309
  var QConnectClient = _QConnectClient;
@@ -260,8 +318,8 @@ var import_middleware_serde = require("@smithy/middleware-serde");
260
318
  var import_types = require("@smithy/types");
261
319
 
262
320
  // src/protocols/Aws_restJson1.ts
263
- var import_core = require("@aws-sdk/core");
264
- var import_core2 = require("@smithy/core");
321
+ var import_core2 = require("@aws-sdk/core");
322
+
265
323
 
266
324
  var import_uuid = require("uuid");
267
325
 
@@ -848,7 +906,7 @@ var QueryAssistantResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
848
906
 
849
907
  // src/protocols/Aws_restJson1.ts
850
908
  var se_CreateAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
851
- const b = (0, import_core2.requestBuilder)(input, context);
909
+ const b = (0, import_core.requestBuilder)(input, context);
852
910
  const headers = {
853
911
  "content-type": "application/json"
854
912
  };
@@ -868,7 +926,7 @@ var se_CreateAssistantCommand = /* @__PURE__ */ __name(async (input, context) =>
868
926
  return b.build();
869
927
  }, "se_CreateAssistantCommand");
870
928
  var se_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
871
- const b = (0, import_core2.requestBuilder)(input, context);
929
+ const b = (0, import_core.requestBuilder)(input, context);
872
930
  const headers = {
873
931
  "content-type": "application/json"
874
932
  };
@@ -887,7 +945,7 @@ var se_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (input,
887
945
  return b.build();
888
946
  }, "se_CreateAssistantAssociationCommand");
889
947
  var se_CreateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
890
- const b = (0, import_core2.requestBuilder)(input, context);
948
+ const b = (0, import_core.requestBuilder)(input, context);
891
949
  const headers = {
892
950
  "content-type": "application/json"
893
951
  };
@@ -909,7 +967,7 @@ var se_CreateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
909
967
  return b.build();
910
968
  }, "se_CreateContentCommand");
911
969
  var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
912
- const b = (0, import_core2.requestBuilder)(input, context);
970
+ const b = (0, import_core.requestBuilder)(input, context);
913
971
  const headers = {
914
972
  "content-type": "application/json"
915
973
  };
@@ -931,7 +989,7 @@ var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
931
989
  return b.build();
932
990
  }, "se_CreateKnowledgeBaseCommand");
933
991
  var se_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
934
- const b = (0, import_core2.requestBuilder)(input, context);
992
+ const b = (0, import_core.requestBuilder)(input, context);
935
993
  const headers = {
936
994
  "content-type": "application/json"
937
995
  };
@@ -957,7 +1015,7 @@ var se_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context
957
1015
  return b.build();
958
1016
  }, "se_CreateQuickResponseCommand");
959
1017
  var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
960
- const b = (0, import_core2.requestBuilder)(input, context);
1018
+ const b = (0, import_core.requestBuilder)(input, context);
961
1019
  const headers = {
962
1020
  "content-type": "application/json"
963
1021
  };
@@ -976,7 +1034,7 @@ var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
976
1034
  return b.build();
977
1035
  }, "se_CreateSessionCommand");
978
1036
  var se_DeleteAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
979
- const b = (0, import_core2.requestBuilder)(input, context);
1037
+ const b = (0, import_core.requestBuilder)(input, context);
980
1038
  const headers = {};
981
1039
  b.bp("/assistants/{assistantId}");
982
1040
  b.p("assistantId", () => input.assistantId, "{assistantId}", false);
@@ -985,7 +1043,7 @@ var se_DeleteAssistantCommand = /* @__PURE__ */ __name(async (input, context) =>
985
1043
  return b.build();
986
1044
  }, "se_DeleteAssistantCommand");
987
1045
  var se_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
988
- const b = (0, import_core2.requestBuilder)(input, context);
1046
+ const b = (0, import_core.requestBuilder)(input, context);
989
1047
  const headers = {};
990
1048
  b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
991
1049
  b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
@@ -995,7 +1053,7 @@ var se_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (input,
995
1053
  return b.build();
996
1054
  }, "se_DeleteAssistantAssociationCommand");
997
1055
  var se_DeleteContentCommand = /* @__PURE__ */ __name(async (input, context) => {
998
- const b = (0, import_core2.requestBuilder)(input, context);
1056
+ const b = (0, import_core.requestBuilder)(input, context);
999
1057
  const headers = {};
1000
1058
  b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
1001
1059
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1005,7 +1063,7 @@ var se_DeleteContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1005
1063
  return b.build();
1006
1064
  }, "se_DeleteContentCommand");
1007
1065
  var se_DeleteImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1008
- const b = (0, import_core2.requestBuilder)(input, context);
1066
+ const b = (0, import_core.requestBuilder)(input, context);
1009
1067
  const headers = {};
1010
1068
  b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
1011
1069
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1015,7 +1073,7 @@ var se_DeleteImportJobCommand = /* @__PURE__ */ __name(async (input, context) =>
1015
1073
  return b.build();
1016
1074
  }, "se_DeleteImportJobCommand");
1017
1075
  var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1018
- const b = (0, import_core2.requestBuilder)(input, context);
1076
+ const b = (0, import_core.requestBuilder)(input, context);
1019
1077
  const headers = {};
1020
1078
  b.bp("/knowledgeBases/{knowledgeBaseId}");
1021
1079
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1024,7 +1082,7 @@ var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
1024
1082
  return b.build();
1025
1083
  }, "se_DeleteKnowledgeBaseCommand");
1026
1084
  var se_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1027
- const b = (0, import_core2.requestBuilder)(input, context);
1085
+ const b = (0, import_core.requestBuilder)(input, context);
1028
1086
  const headers = {};
1029
1087
  b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
1030
1088
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1034,7 +1092,7 @@ var se_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (input, context
1034
1092
  return b.build();
1035
1093
  }, "se_DeleteQuickResponseCommand");
1036
1094
  var se_GetAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
1037
- const b = (0, import_core2.requestBuilder)(input, context);
1095
+ const b = (0, import_core.requestBuilder)(input, context);
1038
1096
  const headers = {};
1039
1097
  b.bp("/assistants/{assistantId}");
1040
1098
  b.p("assistantId", () => input.assistantId, "{assistantId}", false);
@@ -1043,7 +1101,7 @@ var se_GetAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
1043
1101
  return b.build();
1044
1102
  }, "se_GetAssistantCommand");
1045
1103
  var se_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
1046
- const b = (0, import_core2.requestBuilder)(input, context);
1104
+ const b = (0, import_core.requestBuilder)(input, context);
1047
1105
  const headers = {};
1048
1106
  b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
1049
1107
  b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
@@ -1053,7 +1111,7 @@ var se_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, con
1053
1111
  return b.build();
1054
1112
  }, "se_GetAssistantAssociationCommand");
1055
1113
  var se_GetContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1056
- const b = (0, import_core2.requestBuilder)(input, context);
1114
+ const b = (0, import_core.requestBuilder)(input, context);
1057
1115
  const headers = {};
1058
1116
  b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
1059
1117
  b.p("contentId", () => input.contentId, "{contentId}", false);
@@ -1063,7 +1121,7 @@ var se_GetContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1063
1121
  return b.build();
1064
1122
  }, "se_GetContentCommand");
1065
1123
  var se_GetContentSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
1066
- const b = (0, import_core2.requestBuilder)(input, context);
1124
+ const b = (0, import_core.requestBuilder)(input, context);
1067
1125
  const headers = {};
1068
1126
  b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary");
1069
1127
  b.p("contentId", () => input.contentId, "{contentId}", false);
@@ -1073,7 +1131,7 @@ var se_GetContentSummaryCommand = /* @__PURE__ */ __name(async (input, context)
1073
1131
  return b.build();
1074
1132
  }, "se_GetContentSummaryCommand");
1075
1133
  var se_GetImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1076
- const b = (0, import_core2.requestBuilder)(input, context);
1134
+ const b = (0, import_core.requestBuilder)(input, context);
1077
1135
  const headers = {};
1078
1136
  b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
1079
1137
  b.p("importJobId", () => input.importJobId, "{importJobId}", false);
@@ -1083,7 +1141,7 @@ var se_GetImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1083
1141
  return b.build();
1084
1142
  }, "se_GetImportJobCommand");
1085
1143
  var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1086
- const b = (0, import_core2.requestBuilder)(input, context);
1144
+ const b = (0, import_core.requestBuilder)(input, context);
1087
1145
  const headers = {};
1088
1146
  b.bp("/knowledgeBases/{knowledgeBaseId}");
1089
1147
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1092,7 +1150,7 @@ var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) =
1092
1150
  return b.build();
1093
1151
  }, "se_GetKnowledgeBaseCommand");
1094
1152
  var se_GetQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1095
- const b = (0, import_core2.requestBuilder)(input, context);
1153
+ const b = (0, import_core.requestBuilder)(input, context);
1096
1154
  const headers = {};
1097
1155
  b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
1098
1156
  b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
@@ -1102,7 +1160,7 @@ var se_GetQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) =
1102
1160
  return b.build();
1103
1161
  }, "se_GetQuickResponseCommand");
1104
1162
  var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1105
- const b = (0, import_core2.requestBuilder)(input, context);
1163
+ const b = (0, import_core.requestBuilder)(input, context);
1106
1164
  const headers = {};
1107
1165
  b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations");
1108
1166
  b.p("assistantId", () => input.assistantId, "{assistantId}", false);
@@ -1116,7 +1174,7 @@ var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context)
1116
1174
  return b.build();
1117
1175
  }, "se_GetRecommendationsCommand");
1118
1176
  var se_GetSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1119
- const b = (0, import_core2.requestBuilder)(input, context);
1177
+ const b = (0, import_core.requestBuilder)(input, context);
1120
1178
  const headers = {};
1121
1179
  b.bp("/assistants/{assistantId}/sessions/{sessionId}");
1122
1180
  b.p("assistantId", () => input.assistantId, "{assistantId}", false);
@@ -1126,7 +1184,7 @@ var se_GetSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1126
1184
  return b.build();
1127
1185
  }, "se_GetSessionCommand");
1128
1186
  var se_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1129
- const b = (0, import_core2.requestBuilder)(input, context);
1187
+ const b = (0, import_core.requestBuilder)(input, context);
1130
1188
  const headers = {};
1131
1189
  b.bp("/assistants/{assistantId}/associations");
1132
1190
  b.p("assistantId", () => input.assistantId, "{assistantId}", false);
@@ -1139,7 +1197,7 @@ var se_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (input, c
1139
1197
  return b.build();
1140
1198
  }, "se_ListAssistantAssociationsCommand");
1141
1199
  var se_ListAssistantsCommand = /* @__PURE__ */ __name(async (input, context) => {
1142
- const b = (0, import_core2.requestBuilder)(input, context);
1200
+ const b = (0, import_core.requestBuilder)(input, context);
1143
1201
  const headers = {};
1144
1202
  b.bp("/assistants");
1145
1203
  const query = (0, import_smithy_client.map)({
@@ -1151,7 +1209,7 @@ var se_ListAssistantsCommand = /* @__PURE__ */ __name(async (input, context) =>
1151
1209
  return b.build();
1152
1210
  }, "se_ListAssistantsCommand");
1153
1211
  var se_ListContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1154
- const b = (0, import_core2.requestBuilder)(input, context);
1212
+ const b = (0, import_core.requestBuilder)(input, context);
1155
1213
  const headers = {};
1156
1214
  b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
1157
1215
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1164,7 +1222,7 @@ var se_ListContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1164
1222
  return b.build();
1165
1223
  }, "se_ListContentsCommand");
1166
1224
  var se_ListImportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
1167
- const b = (0, import_core2.requestBuilder)(input, context);
1225
+ const b = (0, import_core.requestBuilder)(input, context);
1168
1226
  const headers = {};
1169
1227
  b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs");
1170
1228
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1177,7 +1235,7 @@ var se_ListImportJobsCommand = /* @__PURE__ */ __name(async (input, context) =>
1177
1235
  return b.build();
1178
1236
  }, "se_ListImportJobsCommand");
1179
1237
  var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
1180
- const b = (0, import_core2.requestBuilder)(input, context);
1238
+ const b = (0, import_core.requestBuilder)(input, context);
1181
1239
  const headers = {};
1182
1240
  b.bp("/knowledgeBases");
1183
1241
  const query = (0, import_smithy_client.map)({
@@ -1189,7 +1247,7 @@ var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context)
1189
1247
  return b.build();
1190
1248
  }, "se_ListKnowledgeBasesCommand");
1191
1249
  var se_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
1192
- const b = (0, import_core2.requestBuilder)(input, context);
1250
+ const b = (0, import_core.requestBuilder)(input, context);
1193
1251
  const headers = {};
1194
1252
  b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses");
1195
1253
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1202,7 +1260,7 @@ var se_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context)
1202
1260
  return b.build();
1203
1261
  }, "se_ListQuickResponsesCommand");
1204
1262
  var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1205
- const b = (0, import_core2.requestBuilder)(input, context);
1263
+ const b = (0, import_core.requestBuilder)(input, context);
1206
1264
  const headers = {};
1207
1265
  b.bp("/tags/{resourceArn}");
1208
1266
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
@@ -1211,7 +1269,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
1211
1269
  return b.build();
1212
1270
  }, "se_ListTagsForResourceCommand");
1213
1271
  var se_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (input, context) => {
1214
- const b = (0, import_core2.requestBuilder)(input, context);
1272
+ const b = (0, import_core.requestBuilder)(input, context);
1215
1273
  const headers = {
1216
1274
  "content-type": "application/json"
1217
1275
  };
@@ -1228,7 +1286,7 @@ var se_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (inpu
1228
1286
  return b.build();
1229
1287
  }, "se_NotifyRecommendationsReceivedCommand");
1230
1288
  var se_PutFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
1231
- const b = (0, import_core2.requestBuilder)(input, context);
1289
+ const b = (0, import_core.requestBuilder)(input, context);
1232
1290
  const headers = {
1233
1291
  "content-type": "application/json"
1234
1292
  };
@@ -1246,7 +1304,7 @@ var se_PutFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
1246
1304
  return b.build();
1247
1305
  }, "se_PutFeedbackCommand");
1248
1306
  var se_QueryAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
1249
- const b = (0, import_core2.requestBuilder)(input, context);
1307
+ const b = (0, import_core.requestBuilder)(input, context);
1250
1308
  const headers = {
1251
1309
  "content-type": "application/json"
1252
1310
  };
@@ -1266,7 +1324,7 @@ var se_QueryAssistantCommand = /* @__PURE__ */ __name(async (input, context) =>
1266
1324
  return b.build();
1267
1325
  }, "se_QueryAssistantCommand");
1268
1326
  var se_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (input, context) => {
1269
- const b = (0, import_core2.requestBuilder)(input, context);
1327
+ const b = (0, import_core.requestBuilder)(input, context);
1270
1328
  const headers = {};
1271
1329
  b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri");
1272
1330
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
@@ -1275,7 +1333,7 @@ var se_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (inp
1275
1333
  return b.build();
1276
1334
  }, "se_RemoveKnowledgeBaseTemplateUriCommand");
1277
1335
  var se_SearchContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1278
- const b = (0, import_core2.requestBuilder)(input, context);
1336
+ const b = (0, import_core.requestBuilder)(input, context);
1279
1337
  const headers = {
1280
1338
  "content-type": "application/json"
1281
1339
  };
@@ -1295,7 +1353,7 @@ var se_SearchContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1295
1353
  return b.build();
1296
1354
  }, "se_SearchContentCommand");
1297
1355
  var se_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
1298
- const b = (0, import_core2.requestBuilder)(input, context);
1356
+ const b = (0, import_core.requestBuilder)(input, context);
1299
1357
  const headers = {
1300
1358
  "content-type": "application/json"
1301
1359
  };
@@ -1316,7 +1374,7 @@ var se_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (input, contex
1316
1374
  return b.build();
1317
1375
  }, "se_SearchQuickResponsesCommand");
1318
1376
  var se_SearchSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1319
- const b = (0, import_core2.requestBuilder)(input, context);
1377
+ const b = (0, import_core.requestBuilder)(input, context);
1320
1378
  const headers = {
1321
1379
  "content-type": "application/json"
1322
1380
  };
@@ -1336,7 +1394,7 @@ var se_SearchSessionsCommand = /* @__PURE__ */ __name(async (input, context) =>
1336
1394
  return b.build();
1337
1395
  }, "se_SearchSessionsCommand");
1338
1396
  var se_StartContentUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
1339
- const b = (0, import_core2.requestBuilder)(input, context);
1397
+ const b = (0, import_core.requestBuilder)(input, context);
1340
1398
  const headers = {
1341
1399
  "content-type": "application/json"
1342
1400
  };
@@ -1353,7 +1411,7 @@ var se_StartContentUploadCommand = /* @__PURE__ */ __name(async (input, context)
1353
1411
  return b.build();
1354
1412
  }, "se_StartContentUploadCommand");
1355
1413
  var se_StartImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1356
- const b = (0, import_core2.requestBuilder)(input, context);
1414
+ const b = (0, import_core.requestBuilder)(input, context);
1357
1415
  const headers = {
1358
1416
  "content-type": "application/json"
1359
1417
  };
@@ -1373,7 +1431,7 @@ var se_StartImportJobCommand = /* @__PURE__ */ __name(async (input, context) =>
1373
1431
  return b.build();
1374
1432
  }, "se_StartImportJobCommand");
1375
1433
  var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1376
- const b = (0, import_core2.requestBuilder)(input, context);
1434
+ const b = (0, import_core.requestBuilder)(input, context);
1377
1435
  const headers = {
1378
1436
  "content-type": "application/json"
1379
1437
  };
@@ -1389,7 +1447,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1389
1447
  return b.build();
1390
1448
  }, "se_TagResourceCommand");
1391
1449
  var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1392
- const b = (0, import_core2.requestBuilder)(input, context);
1450
+ const b = (0, import_core.requestBuilder)(input, context);
1393
1451
  const headers = {};
1394
1452
  b.bp("/tags/{resourceArn}");
1395
1453
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
@@ -1404,7 +1462,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1404
1462
  return b.build();
1405
1463
  }, "se_UntagResourceCommand");
1406
1464
  var se_UpdateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1407
- const b = (0, import_core2.requestBuilder)(input, context);
1465
+ const b = (0, import_core.requestBuilder)(input, context);
1408
1466
  const headers = {
1409
1467
  "content-type": "application/json"
1410
1468
  };
@@ -1426,7 +1484,7 @@ var se_UpdateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1426
1484
  return b.build();
1427
1485
  }, "se_UpdateContentCommand");
1428
1486
  var se_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (input, context) => {
1429
- const b = (0, import_core2.requestBuilder)(input, context);
1487
+ const b = (0, import_core.requestBuilder)(input, context);
1430
1488
  const headers = {
1431
1489
  "content-type": "application/json"
1432
1490
  };
@@ -1442,7 +1500,7 @@ var se_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (inp
1442
1500
  return b.build();
1443
1501
  }, "se_UpdateKnowledgeBaseTemplateUriCommand");
1444
1502
  var se_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1445
- const b = (0, import_core2.requestBuilder)(input, context);
1503
+ const b = (0, import_core.requestBuilder)(input, context);
1446
1504
  const headers = {
1447
1505
  "content-type": "application/json"
1448
1506
  };
@@ -1870,7 +1928,7 @@ var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
1870
1928
  const doc = (0, import_smithy_client.take)(data, {
1871
1929
  assistantArn: import_smithy_client.expectString,
1872
1930
  assistantId: import_smithy_client.expectString,
1873
- contentFeedback: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1931
+ contentFeedback: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
1874
1932
  targetId: import_smithy_client.expectString,
1875
1933
  targetType: import_smithy_client.expectString
1876
1934
  });
@@ -2231,8 +2289,8 @@ var de_DataDetails = /* @__PURE__ */ __name((output, context) => {
2231
2289
  }, "de_DataDetails");
2232
2290
  var de_DataSummary = /* @__PURE__ */ __name((output, context) => {
2233
2291
  return (0, import_smithy_client.take)(output, {
2234
- details: (_) => de_DataDetails((0, import_core.awsExpectUnion)(_), context),
2235
- reference: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_))
2292
+ details: (_) => de_DataDetails((0, import_core2.awsExpectUnion)(_), context),
2293
+ reference: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_))
2236
2294
  });
2237
2295
  }, "de_DataSummary");
2238
2296
  var de_DataSummaryList = /* @__PURE__ */ __name((output, context) => {
@@ -2295,7 +2353,7 @@ var de_KnowledgeBaseData = /* @__PURE__ */ __name((output, context) => {
2295
2353
  name: import_smithy_client.expectString,
2296
2354
  renderingConfiguration: import_smithy_client._json,
2297
2355
  serverSideEncryptionConfiguration: import_smithy_client._json,
2298
- sourceConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2356
+ sourceConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
2299
2357
  status: import_smithy_client.expectString,
2300
2358
  tags: import_smithy_client._json
2301
2359
  });
@@ -3235,44 +3293,44 @@ var QConnect = _QConnect;
3235
3293
  (0, import_smithy_client.createAggregatedClient)(commands, QConnect);
3236
3294
 
3237
3295
  // src/pagination/ListAssistantAssociationsPaginator.ts
3238
- var import_core3 = require("@smithy/core");
3239
- var paginateListAssistantAssociations = (0, import_core3.createPaginator)(QConnectClient, ListAssistantAssociationsCommand, "nextToken", "nextToken", "maxResults");
3296
+
3297
+ var paginateListAssistantAssociations = (0, import_core.createPaginator)(QConnectClient, ListAssistantAssociationsCommand, "nextToken", "nextToken", "maxResults");
3240
3298
 
3241
3299
  // src/pagination/ListAssistantsPaginator.ts
3242
- var import_core4 = require("@smithy/core");
3243
- var paginateListAssistants = (0, import_core4.createPaginator)(QConnectClient, ListAssistantsCommand, "nextToken", "nextToken", "maxResults");
3300
+
3301
+ var paginateListAssistants = (0, import_core.createPaginator)(QConnectClient, ListAssistantsCommand, "nextToken", "nextToken", "maxResults");
3244
3302
 
3245
3303
  // src/pagination/ListContentsPaginator.ts
3246
- var import_core5 = require("@smithy/core");
3247
- var paginateListContents = (0, import_core5.createPaginator)(QConnectClient, ListContentsCommand, "nextToken", "nextToken", "maxResults");
3304
+
3305
+ var paginateListContents = (0, import_core.createPaginator)(QConnectClient, ListContentsCommand, "nextToken", "nextToken", "maxResults");
3248
3306
 
3249
3307
  // src/pagination/ListImportJobsPaginator.ts
3250
- var import_core6 = require("@smithy/core");
3251
- var paginateListImportJobs = (0, import_core6.createPaginator)(QConnectClient, ListImportJobsCommand, "nextToken", "nextToken", "maxResults");
3308
+
3309
+ var paginateListImportJobs = (0, import_core.createPaginator)(QConnectClient, ListImportJobsCommand, "nextToken", "nextToken", "maxResults");
3252
3310
 
3253
3311
  // src/pagination/ListKnowledgeBasesPaginator.ts
3254
- var import_core7 = require("@smithy/core");
3255
- var paginateListKnowledgeBases = (0, import_core7.createPaginator)(QConnectClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
3312
+
3313
+ var paginateListKnowledgeBases = (0, import_core.createPaginator)(QConnectClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
3256
3314
 
3257
3315
  // src/pagination/ListQuickResponsesPaginator.ts
3258
- var import_core8 = require("@smithy/core");
3259
- var paginateListQuickResponses = (0, import_core8.createPaginator)(QConnectClient, ListQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
3316
+
3317
+ var paginateListQuickResponses = (0, import_core.createPaginator)(QConnectClient, ListQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
3260
3318
 
3261
3319
  // src/pagination/QueryAssistantPaginator.ts
3262
- var import_core9 = require("@smithy/core");
3263
- var paginateQueryAssistant = (0, import_core9.createPaginator)(QConnectClient, QueryAssistantCommand, "nextToken", "nextToken", "maxResults");
3320
+
3321
+ var paginateQueryAssistant = (0, import_core.createPaginator)(QConnectClient, QueryAssistantCommand, "nextToken", "nextToken", "maxResults");
3264
3322
 
3265
3323
  // src/pagination/SearchContentPaginator.ts
3266
- var import_core10 = require("@smithy/core");
3267
- var paginateSearchContent = (0, import_core10.createPaginator)(QConnectClient, SearchContentCommand, "nextToken", "nextToken", "maxResults");
3324
+
3325
+ var paginateSearchContent = (0, import_core.createPaginator)(QConnectClient, SearchContentCommand, "nextToken", "nextToken", "maxResults");
3268
3326
 
3269
3327
  // src/pagination/SearchQuickResponsesPaginator.ts
3270
- var import_core11 = require("@smithy/core");
3271
- var paginateSearchQuickResponses = (0, import_core11.createPaginator)(QConnectClient, SearchQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
3328
+
3329
+ var paginateSearchQuickResponses = (0, import_core.createPaginator)(QConnectClient, SearchQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
3272
3330
 
3273
3331
  // src/pagination/SearchSessionsPaginator.ts
3274
- var import_core12 = require("@smithy/core");
3275
- var paginateSearchSessions = (0, import_core12.createPaginator)(QConnectClient, SearchSessionsCommand, "nextToken", "nextToken", "maxResults");
3332
+
3333
+ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, SearchSessionsCommand, "nextToken", "nextToken", "maxResults");
3276
3334
 
3277
3335
  // src/index.ts
3278
3336
  var import_util_endpoints = require("@aws-sdk/util-endpoints");