@aws-sdk/client-qconnect 3.489.0 → 3.495.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.
Files changed (66) hide show
  1. package/dist-cjs/QConnect.js +1 -95
  2. package/dist-cjs/QConnectClient.js +1 -43
  3. package/dist-cjs/commands/CreateAssistantAssociationCommand.js +1 -28
  4. package/dist-cjs/commands/CreateAssistantCommand.js +1 -28
  5. package/dist-cjs/commands/CreateContentCommand.js +1 -29
  6. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +1 -28
  7. package/dist-cjs/commands/CreateQuickResponseCommand.js +1 -29
  8. package/dist-cjs/commands/CreateSessionCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteAssistantAssociationCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteAssistantCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteContentCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteImportJobCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteQuickResponseCommand.js +1 -28
  15. package/dist-cjs/commands/GetAssistantAssociationCommand.js +1 -28
  16. package/dist-cjs/commands/GetAssistantCommand.js +1 -28
  17. package/dist-cjs/commands/GetContentCommand.js +1 -29
  18. package/dist-cjs/commands/GetContentSummaryCommand.js +1 -28
  19. package/dist-cjs/commands/GetImportJobCommand.js +1 -29
  20. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +1 -28
  21. package/dist-cjs/commands/GetQuickResponseCommand.js +1 -29
  22. package/dist-cjs/commands/GetRecommendationsCommand.js +1 -29
  23. package/dist-cjs/commands/GetSessionCommand.js +1 -28
  24. package/dist-cjs/commands/ListAssistantAssociationsCommand.js +1 -28
  25. package/dist-cjs/commands/ListAssistantsCommand.js +1 -28
  26. package/dist-cjs/commands/ListContentsCommand.js +1 -28
  27. package/dist-cjs/commands/ListImportJobsCommand.js +1 -28
  28. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +1 -28
  29. package/dist-cjs/commands/ListQuickResponsesCommand.js +1 -29
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  31. package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js +1 -28
  32. package/dist-cjs/commands/PutFeedbackCommand.js +1 -28
  33. package/dist-cjs/commands/QueryAssistantCommand.js +1 -29
  34. package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js +1 -28
  35. package/dist-cjs/commands/SearchContentCommand.js +1 -28
  36. package/dist-cjs/commands/SearchQuickResponsesCommand.js +1 -29
  37. package/dist-cjs/commands/SearchSessionsCommand.js +1 -28
  38. package/dist-cjs/commands/StartContentUploadCommand.js +1 -29
  39. package/dist-cjs/commands/StartImportJobCommand.js +1 -29
  40. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  41. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  42. package/dist-cjs/commands/UpdateContentCommand.js +1 -29
  43. package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js +1 -28
  44. package/dist-cjs/commands/UpdateQuickResponseCommand.js +1 -29
  45. package/dist-cjs/commands/index.js +1 -45
  46. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  47. package/dist-cjs/extensionConfiguration.js +1 -2
  48. package/dist-cjs/index.js +4458 -11
  49. package/dist-cjs/models/QConnectServiceException.js +1 -12
  50. package/dist-cjs/models/index.js +1 -4
  51. package/dist-cjs/models/models_0.js +1 -575
  52. package/dist-cjs/pagination/Interfaces.js +1 -2
  53. package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js +1 -7
  54. package/dist-cjs/pagination/ListAssistantsPaginator.js +1 -7
  55. package/dist-cjs/pagination/ListContentsPaginator.js +1 -7
  56. package/dist-cjs/pagination/ListImportJobsPaginator.js +1 -7
  57. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +1 -7
  58. package/dist-cjs/pagination/ListQuickResponsesPaginator.js +1 -7
  59. package/dist-cjs/pagination/QueryAssistantPaginator.js +1 -7
  60. package/dist-cjs/pagination/SearchContentPaginator.js +1 -7
  61. package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +1 -7
  62. package/dist-cjs/pagination/SearchSessionsPaginator.js +1 -7
  63. package/dist-cjs/pagination/index.js +1 -14
  64. package/dist-cjs/protocols/Aws_restJson1.js +1 -2737
  65. package/dist-cjs/runtimeExtensions.js +1 -22
  66. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,4459 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QConnectServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./QConnectClient"), exports);
6
- tslib_1.__exportStar(require("./QConnect"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var QConnectServiceException_1 = require("./models/QConnectServiceException");
12
- Object.defineProperty(exports, "QConnectServiceException", { enumerable: true, get: function () { return QConnectServiceException_1.QConnectServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AssistantAssociationInputData: () => AssistantAssociationInputData,
26
+ AssistantAssociationOutputData: () => AssistantAssociationOutputData,
27
+ AssistantCapabilityType: () => AssistantCapabilityType,
28
+ AssistantStatus: () => AssistantStatus,
29
+ AssistantType: () => AssistantType,
30
+ AssociationType: () => AssociationType,
31
+ Configuration: () => Configuration,
32
+ ConflictException: () => ConflictException,
33
+ ContentDataDetailsFilterSensitiveLog: () => ContentDataDetailsFilterSensitiveLog,
34
+ ContentDataFilterSensitiveLog: () => ContentDataFilterSensitiveLog,
35
+ ContentFeedbackData: () => ContentFeedbackData,
36
+ ContentStatus: () => ContentStatus,
37
+ CreateAssistantAssociationCommand: () => CreateAssistantAssociationCommand,
38
+ CreateAssistantCommand: () => CreateAssistantCommand,
39
+ CreateContentCommand: () => CreateContentCommand,
40
+ CreateContentResponseFilterSensitiveLog: () => CreateContentResponseFilterSensitiveLog,
41
+ CreateKnowledgeBaseCommand: () => CreateKnowledgeBaseCommand,
42
+ CreateQuickResponseCommand: () => CreateQuickResponseCommand,
43
+ CreateQuickResponseRequestFilterSensitiveLog: () => CreateQuickResponseRequestFilterSensitiveLog,
44
+ CreateQuickResponseResponseFilterSensitiveLog: () => CreateQuickResponseResponseFilterSensitiveLog,
45
+ CreateSessionCommand: () => CreateSessionCommand,
46
+ DataDetails: () => DataDetails,
47
+ DataDetailsFilterSensitiveLog: () => DataDetailsFilterSensitiveLog,
48
+ DataReference: () => DataReference,
49
+ DataSummaryFilterSensitiveLog: () => DataSummaryFilterSensitiveLog,
50
+ DeleteAssistantAssociationCommand: () => DeleteAssistantAssociationCommand,
51
+ DeleteAssistantCommand: () => DeleteAssistantCommand,
52
+ DeleteContentCommand: () => DeleteContentCommand,
53
+ DeleteImportJobCommand: () => DeleteImportJobCommand,
54
+ DeleteKnowledgeBaseCommand: () => DeleteKnowledgeBaseCommand,
55
+ DeleteQuickResponseCommand: () => DeleteQuickResponseCommand,
56
+ DocumentFilterSensitiveLog: () => DocumentFilterSensitiveLog,
57
+ DocumentTextFilterSensitiveLog: () => DocumentTextFilterSensitiveLog,
58
+ ExternalSource: () => ExternalSource,
59
+ FilterField: () => FilterField,
60
+ FilterOperator: () => FilterOperator,
61
+ GenerativeDataDetailsFilterSensitiveLog: () => GenerativeDataDetailsFilterSensitiveLog,
62
+ GetAssistantAssociationCommand: () => GetAssistantAssociationCommand,
63
+ GetAssistantCommand: () => GetAssistantCommand,
64
+ GetContentCommand: () => GetContentCommand,
65
+ GetContentResponseFilterSensitiveLog: () => GetContentResponseFilterSensitiveLog,
66
+ GetContentSummaryCommand: () => GetContentSummaryCommand,
67
+ GetImportJobCommand: () => GetImportJobCommand,
68
+ GetImportJobResponseFilterSensitiveLog: () => GetImportJobResponseFilterSensitiveLog,
69
+ GetKnowledgeBaseCommand: () => GetKnowledgeBaseCommand,
70
+ GetQuickResponseCommand: () => GetQuickResponseCommand,
71
+ GetQuickResponseResponseFilterSensitiveLog: () => GetQuickResponseResponseFilterSensitiveLog,
72
+ GetRecommendationsCommand: () => GetRecommendationsCommand,
73
+ GetRecommendationsResponseFilterSensitiveLog: () => GetRecommendationsResponseFilterSensitiveLog,
74
+ GetSessionCommand: () => GetSessionCommand,
75
+ GroupingConfigurationFilterSensitiveLog: () => GroupingConfigurationFilterSensitiveLog,
76
+ ImportJobDataFilterSensitiveLog: () => ImportJobDataFilterSensitiveLog,
77
+ ImportJobStatus: () => ImportJobStatus,
78
+ ImportJobType: () => ImportJobType,
79
+ KnowledgeBaseStatus: () => KnowledgeBaseStatus,
80
+ KnowledgeBaseType: () => KnowledgeBaseType,
81
+ ListAssistantAssociationsCommand: () => ListAssistantAssociationsCommand,
82
+ ListAssistantsCommand: () => ListAssistantsCommand,
83
+ ListContentsCommand: () => ListContentsCommand,
84
+ ListImportJobsCommand: () => ListImportJobsCommand,
85
+ ListKnowledgeBasesCommand: () => ListKnowledgeBasesCommand,
86
+ ListQuickResponsesCommand: () => ListQuickResponsesCommand,
87
+ ListQuickResponsesResponseFilterSensitiveLog: () => ListQuickResponsesResponseFilterSensitiveLog,
88
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
89
+ NotifyRecommendationsReceivedCommand: () => NotifyRecommendationsReceivedCommand,
90
+ Order: () => Order,
91
+ PreconditionFailedException: () => PreconditionFailedException,
92
+ Priority: () => Priority,
93
+ PutFeedbackCommand: () => PutFeedbackCommand,
94
+ QConnect: () => QConnect,
95
+ QConnectClient: () => QConnectClient,
96
+ QConnectServiceException: () => QConnectServiceException,
97
+ QueryAssistantCommand: () => QueryAssistantCommand,
98
+ QueryAssistantRequestFilterSensitiveLog: () => QueryAssistantRequestFilterSensitiveLog,
99
+ QueryAssistantResponseFilterSensitiveLog: () => QueryAssistantResponseFilterSensitiveLog,
100
+ QueryCondition: () => QueryCondition,
101
+ QueryConditionComparisonOperator: () => QueryConditionComparisonOperator,
102
+ QueryConditionFieldName: () => QueryConditionFieldName,
103
+ QueryRecommendationTriggerDataFilterSensitiveLog: () => QueryRecommendationTriggerDataFilterSensitiveLog,
104
+ QueryResultType: () => QueryResultType,
105
+ QuickResponseContentProvider: () => QuickResponseContentProvider,
106
+ QuickResponseContentProviderFilterSensitiveLog: () => QuickResponseContentProviderFilterSensitiveLog,
107
+ QuickResponseContentsFilterSensitiveLog: () => QuickResponseContentsFilterSensitiveLog,
108
+ QuickResponseDataFilterSensitiveLog: () => QuickResponseDataFilterSensitiveLog,
109
+ QuickResponseDataProvider: () => QuickResponseDataProvider,
110
+ QuickResponseDataProviderFilterSensitiveLog: () => QuickResponseDataProviderFilterSensitiveLog,
111
+ QuickResponseFilterOperator: () => QuickResponseFilterOperator,
112
+ QuickResponseQueryOperator: () => QuickResponseQueryOperator,
113
+ QuickResponseSearchResultDataFilterSensitiveLog: () => QuickResponseSearchResultDataFilterSensitiveLog,
114
+ QuickResponseStatus: () => QuickResponseStatus,
115
+ QuickResponseSummaryFilterSensitiveLog: () => QuickResponseSummaryFilterSensitiveLog,
116
+ RecommendationDataFilterSensitiveLog: () => RecommendationDataFilterSensitiveLog,
117
+ RecommendationSourceType: () => RecommendationSourceType,
118
+ RecommendationTriggerData: () => RecommendationTriggerData,
119
+ RecommendationTriggerDataFilterSensitiveLog: () => RecommendationTriggerDataFilterSensitiveLog,
120
+ RecommendationTriggerFilterSensitiveLog: () => RecommendationTriggerFilterSensitiveLog,
121
+ RecommendationTriggerType: () => RecommendationTriggerType,
122
+ RecommendationType: () => RecommendationType,
123
+ Relevance: () => Relevance,
124
+ RelevanceLevel: () => RelevanceLevel,
125
+ RemoveKnowledgeBaseTemplateUriCommand: () => RemoveKnowledgeBaseTemplateUriCommand,
126
+ RequestTimeoutException: () => RequestTimeoutException,
127
+ ResourceNotFoundException: () => ResourceNotFoundException,
128
+ ResultDataFilterSensitiveLog: () => ResultDataFilterSensitiveLog,
129
+ SearchContentCommand: () => SearchContentCommand,
130
+ SearchQuickResponsesCommand: () => SearchQuickResponsesCommand,
131
+ SearchQuickResponsesRequestFilterSensitiveLog: () => SearchQuickResponsesRequestFilterSensitiveLog,
132
+ SearchQuickResponsesResponseFilterSensitiveLog: () => SearchQuickResponsesResponseFilterSensitiveLog,
133
+ SearchSessionsCommand: () => SearchSessionsCommand,
134
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
135
+ SourceConfiguration: () => SourceConfiguration,
136
+ SourceContentDataDetailsFilterSensitiveLog: () => SourceContentDataDetailsFilterSensitiveLog,
137
+ SourceContentType: () => SourceContentType,
138
+ StartContentUploadCommand: () => StartContentUploadCommand,
139
+ StartContentUploadResponseFilterSensitiveLog: () => StartContentUploadResponseFilterSensitiveLog,
140
+ StartImportJobCommand: () => StartImportJobCommand,
141
+ StartImportJobResponseFilterSensitiveLog: () => StartImportJobResponseFilterSensitiveLog,
142
+ TagResourceCommand: () => TagResourceCommand,
143
+ TargetType: () => TargetType,
144
+ TextDataFilterSensitiveLog: () => TextDataFilterSensitiveLog,
145
+ TooManyTagsException: () => TooManyTagsException,
146
+ UntagResourceCommand: () => UntagResourceCommand,
147
+ UpdateContentCommand: () => UpdateContentCommand,
148
+ UpdateContentResponseFilterSensitiveLog: () => UpdateContentResponseFilterSensitiveLog,
149
+ UpdateKnowledgeBaseTemplateUriCommand: () => UpdateKnowledgeBaseTemplateUriCommand,
150
+ UpdateQuickResponseCommand: () => UpdateQuickResponseCommand,
151
+ UpdateQuickResponseRequestFilterSensitiveLog: () => UpdateQuickResponseRequestFilterSensitiveLog,
152
+ UpdateQuickResponseResponseFilterSensitiveLog: () => UpdateQuickResponseResponseFilterSensitiveLog,
153
+ ValidationException: () => ValidationException,
154
+ __Client: () => import_smithy_client.Client,
155
+ paginateListAssistantAssociations: () => paginateListAssistantAssociations,
156
+ paginateListAssistants: () => paginateListAssistants,
157
+ paginateListContents: () => paginateListContents,
158
+ paginateListImportJobs: () => paginateListImportJobs,
159
+ paginateListKnowledgeBases: () => paginateListKnowledgeBases,
160
+ paginateListQuickResponses: () => paginateListQuickResponses,
161
+ paginateQueryAssistant: () => paginateQueryAssistant,
162
+ paginateSearchContent: () => paginateSearchContent,
163
+ paginateSearchQuickResponses: () => paginateSearchQuickResponses,
164
+ paginateSearchSessions: () => paginateSearchSessions
165
+ });
166
+ module.exports = __toCommonJS(src_exports);
167
+
168
+ // src/QConnectClient.ts
169
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
170
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
171
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
172
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
173
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
174
+ var import_config_resolver = require("@smithy/config-resolver");
175
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
176
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
177
+ var import_middleware_retry = require("@smithy/middleware-retry");
178
+
179
+
180
+ // src/endpoint/EndpointParameters.ts
181
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
182
+ return {
183
+ ...options,
184
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
185
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
186
+ defaultSigningName: "wisdom"
187
+ };
188
+ }, "resolveClientEndpointParameters");
189
+ var commonParams = {
190
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
191
+ Endpoint: { type: "builtInParams", name: "endpoint" },
192
+ Region: { type: "builtInParams", name: "region" },
193
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
194
+ };
195
+
196
+ // src/QConnectClient.ts
197
+ var import_runtimeConfig = require("././runtimeConfig");
198
+
199
+ // src/runtimeExtensions.ts
200
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
201
+ var import_protocol_http = require("@smithy/protocol-http");
202
+ var import_smithy_client = require("@smithy/smithy-client");
203
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
204
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
205
+ const extensionConfiguration = {
206
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
207
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
208
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
209
+ };
210
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
211
+ return {
212
+ ...runtimeConfig,
213
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
214
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
215
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
216
+ };
217
+ }, "resolveRuntimeExtensions");
218
+
219
+ // src/QConnectClient.ts
220
+ var _QConnectClient = class _QConnectClient extends import_smithy_client.Client {
221
+ constructor(...[configuration]) {
222
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
223
+ const _config_1 = resolveClientEndpointParameters(_config_0);
224
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
225
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
226
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
227
+ 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);
230
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
231
+ super(_config_8);
232
+ this.config = _config_8;
233
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
234
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
235
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
236
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
237
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
238
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
239
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
240
+ }
241
+ /**
242
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
243
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
244
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
245
+ */
246
+ destroy() {
247
+ super.destroy();
248
+ }
249
+ };
250
+ __name(_QConnectClient, "QConnectClient");
251
+ var QConnectClient = _QConnectClient;
252
+
253
+ // src/QConnect.ts
254
+
255
+
256
+ // src/commands/CreateAssistantAssociationCommand.ts
257
+
258
+ var import_middleware_serde = require("@smithy/middleware-serde");
259
+
260
+ var import_types = require("@smithy/types");
261
+
262
+ // src/protocols/Aws_restJson1.ts
263
+ var import_core = require("@aws-sdk/core");
264
+ var import_core2 = require("@smithy/core");
265
+
266
+ var import_uuid = require("uuid");
267
+
268
+ // src/models/models_0.ts
269
+
270
+
271
+ // src/models/QConnectServiceException.ts
272
+
273
+ var _QConnectServiceException = class _QConnectServiceException extends import_smithy_client.ServiceException {
274
+ /**
275
+ * @internal
276
+ */
277
+ constructor(options) {
278
+ super(options);
279
+ Object.setPrototypeOf(this, _QConnectServiceException.prototype);
280
+ }
281
+ };
282
+ __name(_QConnectServiceException, "QConnectServiceException");
283
+ var QConnectServiceException = _QConnectServiceException;
284
+
285
+ // src/models/models_0.ts
286
+ var _AccessDeniedException = class _AccessDeniedException extends QConnectServiceException {
287
+ /**
288
+ * @internal
289
+ */
290
+ constructor(opts) {
291
+ super({
292
+ name: "AccessDeniedException",
293
+ $fault: "client",
294
+ ...opts
295
+ });
296
+ this.name = "AccessDeniedException";
297
+ this.$fault = "client";
298
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
299
+ }
300
+ };
301
+ __name(_AccessDeniedException, "AccessDeniedException");
302
+ var AccessDeniedException = _AccessDeniedException;
303
+ var _ConflictException = class _ConflictException extends QConnectServiceException {
304
+ /**
305
+ * @internal
306
+ */
307
+ constructor(opts) {
308
+ super({
309
+ name: "ConflictException",
310
+ $fault: "client",
311
+ ...opts
312
+ });
313
+ this.name = "ConflictException";
314
+ this.$fault = "client";
315
+ Object.setPrototypeOf(this, _ConflictException.prototype);
316
+ }
317
+ };
318
+ __name(_ConflictException, "ConflictException");
319
+ var ConflictException = _ConflictException;
320
+ var AssistantAssociationInputData;
321
+ ((AssistantAssociationInputData3) => {
322
+ AssistantAssociationInputData3.visit = /* @__PURE__ */ __name((value, visitor) => {
323
+ if (value.knowledgeBaseId !== void 0)
324
+ return visitor.knowledgeBaseId(value.knowledgeBaseId);
325
+ return visitor._(value.$unknown[0], value.$unknown[1]);
326
+ }, "visit");
327
+ })(AssistantAssociationInputData || (AssistantAssociationInputData = {}));
328
+ var AssociationType = {
329
+ KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
330
+ };
331
+ var AssistantAssociationOutputData;
332
+ ((AssistantAssociationOutputData2) => {
333
+ AssistantAssociationOutputData2.visit = /* @__PURE__ */ __name((value, visitor) => {
334
+ if (value.knowledgeBaseAssociation !== void 0)
335
+ return visitor.knowledgeBaseAssociation(value.knowledgeBaseAssociation);
336
+ return visitor._(value.$unknown[0], value.$unknown[1]);
337
+ }, "visit");
338
+ })(AssistantAssociationOutputData || (AssistantAssociationOutputData = {}));
339
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends QConnectServiceException {
340
+ /**
341
+ * @internal
342
+ */
343
+ constructor(opts) {
344
+ super({
345
+ name: "ResourceNotFoundException",
346
+ $fault: "client",
347
+ ...opts
348
+ });
349
+ this.name = "ResourceNotFoundException";
350
+ this.$fault = "client";
351
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
352
+ this.resourceName = opts.resourceName;
353
+ }
354
+ };
355
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
356
+ var ResourceNotFoundException = _ResourceNotFoundException;
357
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends QConnectServiceException {
358
+ /**
359
+ * @internal
360
+ */
361
+ constructor(opts) {
362
+ super({
363
+ name: "ServiceQuotaExceededException",
364
+ $fault: "client",
365
+ ...opts
366
+ });
367
+ this.name = "ServiceQuotaExceededException";
368
+ this.$fault = "client";
369
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
370
+ }
371
+ };
372
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
373
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
374
+ var _ValidationException = class _ValidationException extends QConnectServiceException {
375
+ /**
376
+ * @internal
377
+ */
378
+ constructor(opts) {
379
+ super({
380
+ name: "ValidationException",
381
+ $fault: "client",
382
+ ...opts
383
+ });
384
+ this.name = "ValidationException";
385
+ this.$fault = "client";
386
+ Object.setPrototypeOf(this, _ValidationException.prototype);
387
+ }
388
+ };
389
+ __name(_ValidationException, "ValidationException");
390
+ var ValidationException = _ValidationException;
391
+ var AssistantType = {
392
+ AGENT: "AGENT"
393
+ };
394
+ var AssistantCapabilityType = {
395
+ V1: "V1",
396
+ V2: "V2"
397
+ };
398
+ var AssistantStatus = {
399
+ ACTIVE: "ACTIVE",
400
+ CREATE_FAILED: "CREATE_FAILED",
401
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
402
+ DELETED: "DELETED",
403
+ DELETE_FAILED: "DELETE_FAILED",
404
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS"
405
+ };
406
+ var RelevanceLevel = {
407
+ HIGH: "HIGH",
408
+ LOW: "LOW",
409
+ MEDIUM: "MEDIUM"
410
+ };
411
+ var SourceContentType = {
412
+ KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT"
413
+ };
414
+ var DataReference;
415
+ ((DataReference2) => {
416
+ DataReference2.visit = /* @__PURE__ */ __name((value, visitor) => {
417
+ if (value.contentReference !== void 0)
418
+ return visitor.contentReference(value.contentReference);
419
+ if (value.generativeReference !== void 0)
420
+ return visitor.generativeReference(value.generativeReference);
421
+ return visitor._(value.$unknown[0], value.$unknown[1]);
422
+ }, "visit");
423
+ })(DataReference || (DataReference = {}));
424
+ var RecommendationType = {
425
+ GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
426
+ GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE",
427
+ KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT"
428
+ };
429
+ var RecommendationTriggerData;
430
+ ((RecommendationTriggerData2) => {
431
+ RecommendationTriggerData2.visit = /* @__PURE__ */ __name((value, visitor) => {
432
+ if (value.query !== void 0)
433
+ return visitor.query(value.query);
434
+ return visitor._(value.$unknown[0], value.$unknown[1]);
435
+ }, "visit");
436
+ })(RecommendationTriggerData || (RecommendationTriggerData = {}));
437
+ var RecommendationSourceType = {
438
+ ISSUE_DETECTION: "ISSUE_DETECTION",
439
+ OTHER: "OTHER",
440
+ RULE_EVALUATION: "RULE_EVALUATION"
441
+ };
442
+ var RecommendationTriggerType = {
443
+ GENERATIVE: "GENERATIVE",
444
+ QUERY: "QUERY"
445
+ };
446
+ var Relevance = {
447
+ HELPFUL: "HELPFUL",
448
+ NOT_HELPFUL: "NOT_HELPFUL"
449
+ };
450
+ var ContentFeedbackData;
451
+ ((ContentFeedbackData3) => {
452
+ ContentFeedbackData3.visit = /* @__PURE__ */ __name((value, visitor) => {
453
+ if (value.generativeContentFeedbackData !== void 0)
454
+ return visitor.generativeContentFeedbackData(value.generativeContentFeedbackData);
455
+ return visitor._(value.$unknown[0], value.$unknown[1]);
456
+ }, "visit");
457
+ })(ContentFeedbackData || (ContentFeedbackData = {}));
458
+ var TargetType = {
459
+ RECOMMENDATION: "RECOMMENDATION",
460
+ RESULT: "RESULT"
461
+ };
462
+ var QueryConditionComparisonOperator = {
463
+ EQUALS: "EQUALS"
464
+ };
465
+ var QueryConditionFieldName = {
466
+ RESULT_TYPE: "RESULT_TYPE"
467
+ };
468
+ var QueryCondition;
469
+ ((QueryCondition3) => {
470
+ QueryCondition3.visit = /* @__PURE__ */ __name((value, visitor) => {
471
+ if (value.single !== void 0)
472
+ return visitor.single(value.single);
473
+ return visitor._(value.$unknown[0], value.$unknown[1]);
474
+ }, "visit");
475
+ })(QueryCondition || (QueryCondition = {}));
476
+ var QueryResultType = {
477
+ GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
478
+ KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT"
479
+ };
480
+ var _RequestTimeoutException = class _RequestTimeoutException extends QConnectServiceException {
481
+ /**
482
+ * @internal
483
+ */
484
+ constructor(opts) {
485
+ super({
486
+ name: "RequestTimeoutException",
487
+ $fault: "client",
488
+ ...opts
489
+ });
490
+ this.name = "RequestTimeoutException";
491
+ this.$fault = "client";
492
+ this.$retryable = {};
493
+ Object.setPrototypeOf(this, _RequestTimeoutException.prototype);
494
+ }
495
+ };
496
+ __name(_RequestTimeoutException, "RequestTimeoutException");
497
+ var RequestTimeoutException = _RequestTimeoutException;
498
+ var FilterField = {
499
+ NAME: "NAME"
500
+ };
501
+ var FilterOperator = {
502
+ EQUALS: "EQUALS"
503
+ };
504
+ var Configuration;
505
+ ((Configuration3) => {
506
+ Configuration3.visit = /* @__PURE__ */ __name((value, visitor) => {
507
+ if (value.connectConfiguration !== void 0)
508
+ return visitor.connectConfiguration(value.connectConfiguration);
509
+ return visitor._(value.$unknown[0], value.$unknown[1]);
510
+ }, "visit");
511
+ })(Configuration || (Configuration = {}));
512
+ var ContentStatus = {
513
+ ACTIVE: "ACTIVE",
514
+ CREATE_FAILED: "CREATE_FAILED",
515
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
516
+ DELETED: "DELETED",
517
+ DELETE_FAILED: "DELETE_FAILED",
518
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
519
+ UPDATE_FAILED: "UPDATE_FAILED"
520
+ };
521
+ var _PreconditionFailedException = class _PreconditionFailedException extends QConnectServiceException {
522
+ /**
523
+ * @internal
524
+ */
525
+ constructor(opts) {
526
+ super({
527
+ name: "PreconditionFailedException",
528
+ $fault: "client",
529
+ ...opts
530
+ });
531
+ this.name = "PreconditionFailedException";
532
+ this.$fault = "client";
533
+ Object.setPrototypeOf(this, _PreconditionFailedException.prototype);
534
+ }
535
+ };
536
+ __name(_PreconditionFailedException, "PreconditionFailedException");
537
+ var PreconditionFailedException = _PreconditionFailedException;
538
+ var KnowledgeBaseType = {
539
+ CUSTOM: "CUSTOM",
540
+ EXTERNAL: "EXTERNAL",
541
+ QUICK_RESPONSES: "QUICK_RESPONSES"
542
+ };
543
+ var SourceConfiguration;
544
+ ((SourceConfiguration3) => {
545
+ SourceConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
546
+ if (value.appIntegrations !== void 0)
547
+ return visitor.appIntegrations(value.appIntegrations);
548
+ return visitor._(value.$unknown[0], value.$unknown[1]);
549
+ }, "visit");
550
+ })(SourceConfiguration || (SourceConfiguration = {}));
551
+ var KnowledgeBaseStatus = {
552
+ ACTIVE: "ACTIVE",
553
+ CREATE_FAILED: "CREATE_FAILED",
554
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
555
+ DELETED: "DELETED",
556
+ DELETE_FAILED: "DELETE_FAILED",
557
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS"
558
+ };
559
+ var QuickResponseDataProvider;
560
+ ((QuickResponseDataProvider3) => {
561
+ QuickResponseDataProvider3.visit = /* @__PURE__ */ __name((value, visitor) => {
562
+ if (value.content !== void 0)
563
+ return visitor.content(value.content);
564
+ return visitor._(value.$unknown[0], value.$unknown[1]);
565
+ }, "visit");
566
+ })(QuickResponseDataProvider || (QuickResponseDataProvider = {}));
567
+ var QuickResponseContentProvider;
568
+ ((QuickResponseContentProvider2) => {
569
+ QuickResponseContentProvider2.visit = /* @__PURE__ */ __name((value, visitor) => {
570
+ if (value.content !== void 0)
571
+ return visitor.content(value.content);
572
+ return visitor._(value.$unknown[0], value.$unknown[1]);
573
+ }, "visit");
574
+ })(QuickResponseContentProvider || (QuickResponseContentProvider = {}));
575
+ var QuickResponseStatus = {
576
+ CREATED: "CREATED",
577
+ CREATE_FAILED: "CREATE_FAILED",
578
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
579
+ DELETED: "DELETED",
580
+ DELETE_FAILED: "DELETE_FAILED",
581
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
582
+ UPDATE_FAILED: "UPDATE_FAILED",
583
+ UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
584
+ };
585
+ var ExternalSource = {
586
+ AMAZON_CONNECT: "AMAZON_CONNECT"
587
+ };
588
+ var ImportJobType = {
589
+ QUICK_RESPONSES: "QUICK_RESPONSES"
590
+ };
591
+ var ImportJobStatus = {
592
+ COMPLETE: "COMPLETE",
593
+ DELETED: "DELETED",
594
+ DELETE_FAILED: "DELETE_FAILED",
595
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
596
+ FAILED: "FAILED",
597
+ START_IN_PROGRESS: "START_IN_PROGRESS"
598
+ };
599
+ var QuickResponseFilterOperator = {
600
+ EQUALS: "EQUALS",
601
+ PREFIX: "PREFIX"
602
+ };
603
+ var Order = {
604
+ ASC: "ASC",
605
+ DESC: "DESC"
606
+ };
607
+ var QuickResponseQueryOperator = {
608
+ CONTAINS: "CONTAINS",
609
+ CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX"
610
+ };
611
+ var Priority = {
612
+ HIGH: "HIGH",
613
+ LOW: "LOW",
614
+ MEDIUM: "MEDIUM"
615
+ };
616
+ var _TooManyTagsException = class _TooManyTagsException extends QConnectServiceException {
617
+ /**
618
+ * @internal
619
+ */
620
+ constructor(opts) {
621
+ super({
622
+ name: "TooManyTagsException",
623
+ $fault: "client",
624
+ ...opts
625
+ });
626
+ this.name = "TooManyTagsException";
627
+ this.$fault = "client";
628
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
629
+ this.resourceName = opts.resourceName;
630
+ }
631
+ };
632
+ __name(_TooManyTagsException, "TooManyTagsException");
633
+ var TooManyTagsException = _TooManyTagsException;
634
+ var DataDetails;
635
+ ((DataDetails3) => {
636
+ DataDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
637
+ if (value.contentData !== void 0)
638
+ return visitor.contentData(value.contentData);
639
+ if (value.generativeData !== void 0)
640
+ return visitor.generativeData(value.generativeData);
641
+ if (value.sourceContentData !== void 0)
642
+ return visitor.sourceContentData(value.sourceContentData);
643
+ return visitor._(value.$unknown[0], value.$unknown[1]);
644
+ }, "visit");
645
+ })(DataDetails || (DataDetails = {}));
646
+ var DocumentTextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
647
+ ...obj,
648
+ ...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
649
+ }), "DocumentTextFilterSensitiveLog");
650
+ var TextDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
651
+ ...obj,
652
+ ...obj.title && { title: DocumentTextFilterSensitiveLog(obj.title) },
653
+ ...obj.excerpt && { excerpt: DocumentTextFilterSensitiveLog(obj.excerpt) }
654
+ }), "TextDataFilterSensitiveLog");
655
+ var ContentDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
656
+ ...obj,
657
+ ...obj.textData && { textData: TextDataFilterSensitiveLog(obj.textData) }
658
+ }), "ContentDataDetailsFilterSensitiveLog");
659
+ var SourceContentDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
660
+ ...obj,
661
+ ...obj.textData && { textData: TextDataFilterSensitiveLog(obj.textData) }
662
+ }), "SourceContentDataDetailsFilterSensitiveLog");
663
+ var DocumentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
664
+ ...obj,
665
+ ...obj.title && { title: DocumentTextFilterSensitiveLog(obj.title) },
666
+ ...obj.excerpt && { excerpt: DocumentTextFilterSensitiveLog(obj.excerpt) }
667
+ }), "DocumentFilterSensitiveLog");
668
+ var QueryRecommendationTriggerDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
669
+ ...obj,
670
+ ...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
671
+ }), "QueryRecommendationTriggerDataFilterSensitiveLog");
672
+ var RecommendationTriggerDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
673
+ if (obj.query !== void 0)
674
+ return { query: QueryRecommendationTriggerDataFilterSensitiveLog(obj.query) };
675
+ if (obj.$unknown !== void 0)
676
+ return { [obj.$unknown[0]]: "UNKNOWN" };
677
+ }, "RecommendationTriggerDataFilterSensitiveLog");
678
+ var RecommendationTriggerFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
679
+ ...obj,
680
+ ...obj.data && { data: RecommendationTriggerDataFilterSensitiveLog(obj.data) }
681
+ }), "RecommendationTriggerFilterSensitiveLog");
682
+ var QueryAssistantRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
683
+ ...obj,
684
+ ...obj.queryText && { queryText: import_smithy_client.SENSITIVE_STRING },
685
+ ...obj.queryCondition && { queryCondition: obj.queryCondition.map((item) => item) }
686
+ }), "QueryAssistantRequestFilterSensitiveLog");
687
+ var ContentDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
688
+ ...obj,
689
+ ...obj.url && { url: import_smithy_client.SENSITIVE_STRING }
690
+ }), "ContentDataFilterSensitiveLog");
691
+ var CreateContentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
692
+ ...obj,
693
+ ...obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }
694
+ }), "CreateContentResponseFilterSensitiveLog");
695
+ var GetContentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
696
+ ...obj,
697
+ ...obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }
698
+ }), "GetContentResponseFilterSensitiveLog");
699
+ var UpdateContentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
700
+ ...obj,
701
+ ...obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }
702
+ }), "UpdateContentResponseFilterSensitiveLog");
703
+ var QuickResponseDataProviderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
704
+ if (obj.content !== void 0)
705
+ return { content: import_smithy_client.SENSITIVE_STRING };
706
+ if (obj.$unknown !== void 0)
707
+ return { [obj.$unknown[0]]: "UNKNOWN" };
708
+ }, "QuickResponseDataProviderFilterSensitiveLog");
709
+ var GroupingConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
710
+ ...obj,
711
+ ...obj.criteria && { criteria: import_smithy_client.SENSITIVE_STRING },
712
+ ...obj.values && { values: import_smithy_client.SENSITIVE_STRING }
713
+ }), "GroupingConfigurationFilterSensitiveLog");
714
+ var CreateQuickResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
715
+ ...obj,
716
+ ...obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) },
717
+ ...obj.groupingConfiguration && {
718
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
719
+ },
720
+ ...obj.channels && { channels: import_smithy_client.SENSITIVE_STRING }
721
+ }), "CreateQuickResponseRequestFilterSensitiveLog");
722
+ var QuickResponseContentProviderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
723
+ if (obj.content !== void 0)
724
+ return { content: import_smithy_client.SENSITIVE_STRING };
725
+ if (obj.$unknown !== void 0)
726
+ return { [obj.$unknown[0]]: "UNKNOWN" };
727
+ }, "QuickResponseContentProviderFilterSensitiveLog");
728
+ var QuickResponseContentsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
729
+ ...obj,
730
+ ...obj.plainText && { plainText: QuickResponseContentProviderFilterSensitiveLog(obj.plainText) },
731
+ ...obj.markdown && { markdown: QuickResponseContentProviderFilterSensitiveLog(obj.markdown) }
732
+ }), "QuickResponseContentsFilterSensitiveLog");
733
+ var QuickResponseDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
734
+ ...obj,
735
+ ...obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) },
736
+ ...obj.groupingConfiguration && {
737
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
738
+ },
739
+ ...obj.channels && { channels: import_smithy_client.SENSITIVE_STRING }
740
+ }), "QuickResponseDataFilterSensitiveLog");
741
+ var CreateQuickResponseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
742
+ ...obj,
743
+ ...obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }
744
+ }), "CreateQuickResponseResponseFilterSensitiveLog");
745
+ var ImportJobDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
746
+ ...obj,
747
+ ...obj.url && { url: import_smithy_client.SENSITIVE_STRING },
748
+ ...obj.failedRecordReport && { failedRecordReport: import_smithy_client.SENSITIVE_STRING },
749
+ ...obj.externalSourceConfiguration && { externalSourceConfiguration: obj.externalSourceConfiguration }
750
+ }), "ImportJobDataFilterSensitiveLog");
751
+ var GetImportJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
752
+ ...obj,
753
+ ...obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }
754
+ }), "GetImportJobResponseFilterSensitiveLog");
755
+ var GetQuickResponseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
756
+ ...obj,
757
+ ...obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }
758
+ }), "GetQuickResponseResponseFilterSensitiveLog");
759
+ var QuickResponseSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
760
+ ...obj,
761
+ ...obj.channels && { channels: import_smithy_client.SENSITIVE_STRING }
762
+ }), "QuickResponseSummaryFilterSensitiveLog");
763
+ var ListQuickResponsesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
764
+ ...obj,
765
+ ...obj.quickResponseSummaries && {
766
+ quickResponseSummaries: obj.quickResponseSummaries.map((item) => QuickResponseSummaryFilterSensitiveLog(item))
767
+ }
768
+ }), "ListQuickResponsesResponseFilterSensitiveLog");
769
+ var UpdateQuickResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
770
+ ...obj,
771
+ ...obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) },
772
+ ...obj.groupingConfiguration && {
773
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
774
+ },
775
+ ...obj.channels && { channels: import_smithy_client.SENSITIVE_STRING }
776
+ }), "UpdateQuickResponseRequestFilterSensitiveLog");
777
+ var UpdateQuickResponseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
778
+ ...obj,
779
+ ...obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }
780
+ }), "UpdateQuickResponseResponseFilterSensitiveLog");
781
+ var SearchQuickResponsesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
782
+ ...obj,
783
+ ...obj.attributes && { attributes: import_smithy_client.SENSITIVE_STRING }
784
+ }), "SearchQuickResponsesRequestFilterSensitiveLog");
785
+ var QuickResponseSearchResultDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
786
+ ...obj,
787
+ ...obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) },
788
+ ...obj.groupingConfiguration && {
789
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
790
+ },
791
+ ...obj.channels && { channels: import_smithy_client.SENSITIVE_STRING },
792
+ ...obj.attributesNotInterpolated && { attributesNotInterpolated: import_smithy_client.SENSITIVE_STRING },
793
+ ...obj.attributesInterpolated && { attributesInterpolated: import_smithy_client.SENSITIVE_STRING }
794
+ }), "QuickResponseSearchResultDataFilterSensitiveLog");
795
+ var SearchQuickResponsesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
796
+ ...obj,
797
+ ...obj.results && { results: obj.results.map((item) => QuickResponseSearchResultDataFilterSensitiveLog(item)) }
798
+ }), "SearchQuickResponsesResponseFilterSensitiveLog");
799
+ var StartContentUploadResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
800
+ ...obj,
801
+ ...obj.url && { url: import_smithy_client.SENSITIVE_STRING }
802
+ }), "StartContentUploadResponseFilterSensitiveLog");
803
+ var StartImportJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
804
+ ...obj,
805
+ ...obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }
806
+ }), "StartImportJobResponseFilterSensitiveLog");
807
+ var DataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
808
+ if (obj.contentData !== void 0)
809
+ return { contentData: ContentDataDetailsFilterSensitiveLog(obj.contentData) };
810
+ if (obj.generativeData !== void 0)
811
+ return { generativeData: GenerativeDataDetailsFilterSensitiveLog(obj.generativeData) };
812
+ if (obj.sourceContentData !== void 0)
813
+ return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
814
+ if (obj.$unknown !== void 0)
815
+ return { [obj.$unknown[0]]: "UNKNOWN" };
816
+ }, "DataDetailsFilterSensitiveLog");
817
+ var DataSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
818
+ ...obj,
819
+ ...obj.reference && { reference: obj.reference },
820
+ ...obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }
821
+ }), "DataSummaryFilterSensitiveLog");
822
+ var GenerativeDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
823
+ ...obj,
824
+ ...obj.completion && { completion: import_smithy_client.SENSITIVE_STRING },
825
+ ...obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }
826
+ }), "GenerativeDataDetailsFilterSensitiveLog");
827
+ var RecommendationDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
828
+ ...obj,
829
+ ...obj.document && { document: DocumentFilterSensitiveLog(obj.document) },
830
+ ...obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }
831
+ }), "RecommendationDataFilterSensitiveLog");
832
+ var ResultDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
833
+ ...obj,
834
+ ...obj.document && { document: DocumentFilterSensitiveLog(obj.document) },
835
+ ...obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }
836
+ }), "ResultDataFilterSensitiveLog");
837
+ var GetRecommendationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
838
+ ...obj,
839
+ ...obj.recommendations && {
840
+ recommendations: obj.recommendations.map((item) => RecommendationDataFilterSensitiveLog(item))
841
+ },
842
+ ...obj.triggers && { triggers: obj.triggers.map((item) => RecommendationTriggerFilterSensitiveLog(item)) }
843
+ }), "GetRecommendationsResponseFilterSensitiveLog");
844
+ var QueryAssistantResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
845
+ ...obj,
846
+ ...obj.results && { results: obj.results.map((item) => ResultDataFilterSensitiveLog(item)) }
847
+ }), "QueryAssistantResponseFilterSensitiveLog");
848
+
849
+ // src/protocols/Aws_restJson1.ts
850
+ var se_CreateAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
851
+ const b = (0, import_core2.requestBuilder)(input, context);
852
+ const headers = {
853
+ "content-type": "application/json"
854
+ };
855
+ b.bp("/assistants");
856
+ let body;
857
+ body = JSON.stringify(
858
+ (0, import_smithy_client.take)(input, {
859
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
860
+ description: [],
861
+ name: [],
862
+ serverSideEncryptionConfiguration: (_) => (0, import_smithy_client._json)(_),
863
+ tags: (_) => (0, import_smithy_client._json)(_),
864
+ type: []
865
+ })
866
+ );
867
+ b.m("POST").h(headers).b(body);
868
+ return b.build();
869
+ }, "se_CreateAssistantCommand");
870
+ var se_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
871
+ const b = (0, import_core2.requestBuilder)(input, context);
872
+ const headers = {
873
+ "content-type": "application/json"
874
+ };
875
+ b.bp("/assistants/{assistantId}/associations");
876
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
877
+ let body;
878
+ body = JSON.stringify(
879
+ (0, import_smithy_client.take)(input, {
880
+ association: (_) => (0, import_smithy_client._json)(_),
881
+ associationType: [],
882
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
883
+ tags: (_) => (0, import_smithy_client._json)(_)
884
+ })
885
+ );
886
+ b.m("POST").h(headers).b(body);
887
+ return b.build();
888
+ }, "se_CreateAssistantAssociationCommand");
889
+ var se_CreateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
890
+ const b = (0, import_core2.requestBuilder)(input, context);
891
+ const headers = {
892
+ "content-type": "application/json"
893
+ };
894
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
895
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
896
+ let body;
897
+ body = JSON.stringify(
898
+ (0, import_smithy_client.take)(input, {
899
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
900
+ metadata: (_) => (0, import_smithy_client._json)(_),
901
+ name: [],
902
+ overrideLinkOutUri: [],
903
+ tags: (_) => (0, import_smithy_client._json)(_),
904
+ title: [],
905
+ uploadId: []
906
+ })
907
+ );
908
+ b.m("POST").h(headers).b(body);
909
+ return b.build();
910
+ }, "se_CreateContentCommand");
911
+ var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
912
+ const b = (0, import_core2.requestBuilder)(input, context);
913
+ const headers = {
914
+ "content-type": "application/json"
915
+ };
916
+ b.bp("/knowledgeBases");
917
+ let body;
918
+ body = JSON.stringify(
919
+ (0, import_smithy_client.take)(input, {
920
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
921
+ description: [],
922
+ knowledgeBaseType: [],
923
+ name: [],
924
+ renderingConfiguration: (_) => (0, import_smithy_client._json)(_),
925
+ serverSideEncryptionConfiguration: (_) => (0, import_smithy_client._json)(_),
926
+ sourceConfiguration: (_) => (0, import_smithy_client._json)(_),
927
+ tags: (_) => (0, import_smithy_client._json)(_)
928
+ })
929
+ );
930
+ b.m("POST").h(headers).b(body);
931
+ return b.build();
932
+ }, "se_CreateKnowledgeBaseCommand");
933
+ var se_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
934
+ const b = (0, import_core2.requestBuilder)(input, context);
935
+ const headers = {
936
+ "content-type": "application/json"
937
+ };
938
+ b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses");
939
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
940
+ let body;
941
+ body = JSON.stringify(
942
+ (0, import_smithy_client.take)(input, {
943
+ channels: (_) => (0, import_smithy_client._json)(_),
944
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
945
+ content: (_) => (0, import_smithy_client._json)(_),
946
+ contentType: [],
947
+ description: [],
948
+ groupingConfiguration: (_) => (0, import_smithy_client._json)(_),
949
+ isActive: [],
950
+ language: [],
951
+ name: [],
952
+ shortcutKey: [],
953
+ tags: (_) => (0, import_smithy_client._json)(_)
954
+ })
955
+ );
956
+ b.m("POST").h(headers).b(body);
957
+ return b.build();
958
+ }, "se_CreateQuickResponseCommand");
959
+ var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
960
+ const b = (0, import_core2.requestBuilder)(input, context);
961
+ const headers = {
962
+ "content-type": "application/json"
963
+ };
964
+ b.bp("/assistants/{assistantId}/sessions");
965
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
966
+ let body;
967
+ body = JSON.stringify(
968
+ (0, import_smithy_client.take)(input, {
969
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
970
+ description: [],
971
+ name: [],
972
+ tags: (_) => (0, import_smithy_client._json)(_)
973
+ })
974
+ );
975
+ b.m("POST").h(headers).b(body);
976
+ return b.build();
977
+ }, "se_CreateSessionCommand");
978
+ var se_DeleteAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
979
+ const b = (0, import_core2.requestBuilder)(input, context);
980
+ const headers = {};
981
+ b.bp("/assistants/{assistantId}");
982
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
983
+ let body;
984
+ b.m("DELETE").h(headers).b(body);
985
+ return b.build();
986
+ }, "se_DeleteAssistantCommand");
987
+ var se_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
988
+ const b = (0, import_core2.requestBuilder)(input, context);
989
+ const headers = {};
990
+ b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
991
+ b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
992
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
993
+ let body;
994
+ b.m("DELETE").h(headers).b(body);
995
+ return b.build();
996
+ }, "se_DeleteAssistantAssociationCommand");
997
+ var se_DeleteContentCommand = /* @__PURE__ */ __name(async (input, context) => {
998
+ const b = (0, import_core2.requestBuilder)(input, context);
999
+ const headers = {};
1000
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
1001
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1002
+ b.p("contentId", () => input.contentId, "{contentId}", false);
1003
+ let body;
1004
+ b.m("DELETE").h(headers).b(body);
1005
+ return b.build();
1006
+ }, "se_DeleteContentCommand");
1007
+ var se_DeleteImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1008
+ const b = (0, import_core2.requestBuilder)(input, context);
1009
+ const headers = {};
1010
+ b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
1011
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1012
+ b.p("importJobId", () => input.importJobId, "{importJobId}", false);
1013
+ let body;
1014
+ b.m("DELETE").h(headers).b(body);
1015
+ return b.build();
1016
+ }, "se_DeleteImportJobCommand");
1017
+ var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1018
+ const b = (0, import_core2.requestBuilder)(input, context);
1019
+ const headers = {};
1020
+ b.bp("/knowledgeBases/{knowledgeBaseId}");
1021
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1022
+ let body;
1023
+ b.m("DELETE").h(headers).b(body);
1024
+ return b.build();
1025
+ }, "se_DeleteKnowledgeBaseCommand");
1026
+ var se_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1027
+ const b = (0, import_core2.requestBuilder)(input, context);
1028
+ const headers = {};
1029
+ b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
1030
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1031
+ b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
1032
+ let body;
1033
+ b.m("DELETE").h(headers).b(body);
1034
+ return b.build();
1035
+ }, "se_DeleteQuickResponseCommand");
1036
+ var se_GetAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
1037
+ const b = (0, import_core2.requestBuilder)(input, context);
1038
+ const headers = {};
1039
+ b.bp("/assistants/{assistantId}");
1040
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1041
+ let body;
1042
+ b.m("GET").h(headers).b(body);
1043
+ return b.build();
1044
+ }, "se_GetAssistantCommand");
1045
+ var se_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
1046
+ const b = (0, import_core2.requestBuilder)(input, context);
1047
+ const headers = {};
1048
+ b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
1049
+ b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
1050
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1051
+ let body;
1052
+ b.m("GET").h(headers).b(body);
1053
+ return b.build();
1054
+ }, "se_GetAssistantAssociationCommand");
1055
+ var se_GetContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1056
+ const b = (0, import_core2.requestBuilder)(input, context);
1057
+ const headers = {};
1058
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
1059
+ b.p("contentId", () => input.contentId, "{contentId}", false);
1060
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1061
+ let body;
1062
+ b.m("GET").h(headers).b(body);
1063
+ return b.build();
1064
+ }, "se_GetContentCommand");
1065
+ var se_GetContentSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
1066
+ const b = (0, import_core2.requestBuilder)(input, context);
1067
+ const headers = {};
1068
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary");
1069
+ b.p("contentId", () => input.contentId, "{contentId}", false);
1070
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1071
+ let body;
1072
+ b.m("GET").h(headers).b(body);
1073
+ return b.build();
1074
+ }, "se_GetContentSummaryCommand");
1075
+ var se_GetImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1076
+ const b = (0, import_core2.requestBuilder)(input, context);
1077
+ const headers = {};
1078
+ b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
1079
+ b.p("importJobId", () => input.importJobId, "{importJobId}", false);
1080
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1081
+ let body;
1082
+ b.m("GET").h(headers).b(body);
1083
+ return b.build();
1084
+ }, "se_GetImportJobCommand");
1085
+ var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1086
+ const b = (0, import_core2.requestBuilder)(input, context);
1087
+ const headers = {};
1088
+ b.bp("/knowledgeBases/{knowledgeBaseId}");
1089
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1090
+ let body;
1091
+ b.m("GET").h(headers).b(body);
1092
+ return b.build();
1093
+ }, "se_GetKnowledgeBaseCommand");
1094
+ var se_GetQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1095
+ const b = (0, import_core2.requestBuilder)(input, context);
1096
+ const headers = {};
1097
+ b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
1098
+ b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
1099
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1100
+ let body;
1101
+ b.m("GET").h(headers).b(body);
1102
+ return b.build();
1103
+ }, "se_GetQuickResponseCommand");
1104
+ var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1105
+ const b = (0, import_core2.requestBuilder)(input, context);
1106
+ const headers = {};
1107
+ b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations");
1108
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1109
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
1110
+ const query = (0, import_smithy_client.map)({
1111
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1112
+ [_wTS]: [() => input.waitTimeSeconds !== void 0, () => input[_wTS].toString()]
1113
+ });
1114
+ let body;
1115
+ b.m("GET").h(headers).q(query).b(body);
1116
+ return b.build();
1117
+ }, "se_GetRecommendationsCommand");
1118
+ var se_GetSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1119
+ const b = (0, import_core2.requestBuilder)(input, context);
1120
+ const headers = {};
1121
+ b.bp("/assistants/{assistantId}/sessions/{sessionId}");
1122
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1123
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
1124
+ let body;
1125
+ b.m("GET").h(headers).b(body);
1126
+ return b.build();
1127
+ }, "se_GetSessionCommand");
1128
+ var se_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1129
+ const b = (0, import_core2.requestBuilder)(input, context);
1130
+ const headers = {};
1131
+ b.bp("/assistants/{assistantId}/associations");
1132
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1133
+ const query = (0, import_smithy_client.map)({
1134
+ [_nT]: [, input[_nT]],
1135
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1136
+ });
1137
+ let body;
1138
+ b.m("GET").h(headers).q(query).b(body);
1139
+ return b.build();
1140
+ }, "se_ListAssistantAssociationsCommand");
1141
+ var se_ListAssistantsCommand = /* @__PURE__ */ __name(async (input, context) => {
1142
+ const b = (0, import_core2.requestBuilder)(input, context);
1143
+ const headers = {};
1144
+ b.bp("/assistants");
1145
+ const query = (0, import_smithy_client.map)({
1146
+ [_nT]: [, input[_nT]],
1147
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1148
+ });
1149
+ let body;
1150
+ b.m("GET").h(headers).q(query).b(body);
1151
+ return b.build();
1152
+ }, "se_ListAssistantsCommand");
1153
+ var se_ListContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1154
+ const b = (0, import_core2.requestBuilder)(input, context);
1155
+ const headers = {};
1156
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
1157
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1158
+ const query = (0, import_smithy_client.map)({
1159
+ [_nT]: [, input[_nT]],
1160
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1161
+ });
1162
+ let body;
1163
+ b.m("GET").h(headers).q(query).b(body);
1164
+ return b.build();
1165
+ }, "se_ListContentsCommand");
1166
+ var se_ListImportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
1167
+ const b = (0, import_core2.requestBuilder)(input, context);
1168
+ const headers = {};
1169
+ b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs");
1170
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1171
+ const query = (0, import_smithy_client.map)({
1172
+ [_nT]: [, input[_nT]],
1173
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1174
+ });
1175
+ let body;
1176
+ b.m("GET").h(headers).q(query).b(body);
1177
+ return b.build();
1178
+ }, "se_ListImportJobsCommand");
1179
+ var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
1180
+ const b = (0, import_core2.requestBuilder)(input, context);
1181
+ const headers = {};
1182
+ b.bp("/knowledgeBases");
1183
+ const query = (0, import_smithy_client.map)({
1184
+ [_nT]: [, input[_nT]],
1185
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1186
+ });
1187
+ let body;
1188
+ b.m("GET").h(headers).q(query).b(body);
1189
+ return b.build();
1190
+ }, "se_ListKnowledgeBasesCommand");
1191
+ var se_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
1192
+ const b = (0, import_core2.requestBuilder)(input, context);
1193
+ const headers = {};
1194
+ b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses");
1195
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1196
+ const query = (0, import_smithy_client.map)({
1197
+ [_nT]: [, input[_nT]],
1198
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1199
+ });
1200
+ let body;
1201
+ b.m("GET").h(headers).q(query).b(body);
1202
+ return b.build();
1203
+ }, "se_ListQuickResponsesCommand");
1204
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1205
+ const b = (0, import_core2.requestBuilder)(input, context);
1206
+ const headers = {};
1207
+ b.bp("/tags/{resourceArn}");
1208
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1209
+ let body;
1210
+ b.m("GET").h(headers).b(body);
1211
+ return b.build();
1212
+ }, "se_ListTagsForResourceCommand");
1213
+ var se_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (input, context) => {
1214
+ const b = (0, import_core2.requestBuilder)(input, context);
1215
+ const headers = {
1216
+ "content-type": "application/json"
1217
+ };
1218
+ b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify");
1219
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1220
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
1221
+ let body;
1222
+ body = JSON.stringify(
1223
+ (0, import_smithy_client.take)(input, {
1224
+ recommendationIds: (_) => (0, import_smithy_client._json)(_)
1225
+ })
1226
+ );
1227
+ b.m("POST").h(headers).b(body);
1228
+ return b.build();
1229
+ }, "se_NotifyRecommendationsReceivedCommand");
1230
+ var se_PutFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
1231
+ const b = (0, import_core2.requestBuilder)(input, context);
1232
+ const headers = {
1233
+ "content-type": "application/json"
1234
+ };
1235
+ b.bp("/assistants/{assistantId}/feedback");
1236
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1237
+ let body;
1238
+ body = JSON.stringify(
1239
+ (0, import_smithy_client.take)(input, {
1240
+ contentFeedback: (_) => (0, import_smithy_client._json)(_),
1241
+ targetId: [],
1242
+ targetType: []
1243
+ })
1244
+ );
1245
+ b.m("PUT").h(headers).b(body);
1246
+ return b.build();
1247
+ }, "se_PutFeedbackCommand");
1248
+ var se_QueryAssistantCommand = /* @__PURE__ */ __name(async (input, context) => {
1249
+ const b = (0, import_core2.requestBuilder)(input, context);
1250
+ const headers = {
1251
+ "content-type": "application/json"
1252
+ };
1253
+ b.bp("/assistants/{assistantId}/query");
1254
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1255
+ let body;
1256
+ body = JSON.stringify(
1257
+ (0, import_smithy_client.take)(input, {
1258
+ maxResults: [],
1259
+ nextToken: [],
1260
+ queryCondition: (_) => (0, import_smithy_client._json)(_),
1261
+ queryText: [],
1262
+ sessionId: []
1263
+ })
1264
+ );
1265
+ b.m("POST").h(headers).b(body);
1266
+ return b.build();
1267
+ }, "se_QueryAssistantCommand");
1268
+ var se_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (input, context) => {
1269
+ const b = (0, import_core2.requestBuilder)(input, context);
1270
+ const headers = {};
1271
+ b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri");
1272
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1273
+ let body;
1274
+ b.m("DELETE").h(headers).b(body);
1275
+ return b.build();
1276
+ }, "se_RemoveKnowledgeBaseTemplateUriCommand");
1277
+ var se_SearchContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1278
+ const b = (0, import_core2.requestBuilder)(input, context);
1279
+ const headers = {
1280
+ "content-type": "application/json"
1281
+ };
1282
+ b.bp("/knowledgeBases/{knowledgeBaseId}/search");
1283
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1284
+ const query = (0, import_smithy_client.map)({
1285
+ [_nT]: [, input[_nT]],
1286
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1287
+ });
1288
+ let body;
1289
+ body = JSON.stringify(
1290
+ (0, import_smithy_client.take)(input, {
1291
+ searchExpression: (_) => (0, import_smithy_client._json)(_)
1292
+ })
1293
+ );
1294
+ b.m("POST").h(headers).q(query).b(body);
1295
+ return b.build();
1296
+ }, "se_SearchContentCommand");
1297
+ var se_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
1298
+ const b = (0, import_core2.requestBuilder)(input, context);
1299
+ const headers = {
1300
+ "content-type": "application/json"
1301
+ };
1302
+ b.bp("/knowledgeBases/{knowledgeBaseId}/search/quickResponses");
1303
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1304
+ const query = (0, import_smithy_client.map)({
1305
+ [_nT]: [, input[_nT]],
1306
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1307
+ });
1308
+ let body;
1309
+ body = JSON.stringify(
1310
+ (0, import_smithy_client.take)(input, {
1311
+ attributes: (_) => (0, import_smithy_client._json)(_),
1312
+ searchExpression: (_) => (0, import_smithy_client._json)(_)
1313
+ })
1314
+ );
1315
+ b.m("POST").h(headers).q(query).b(body);
1316
+ return b.build();
1317
+ }, "se_SearchQuickResponsesCommand");
1318
+ var se_SearchSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1319
+ const b = (0, import_core2.requestBuilder)(input, context);
1320
+ const headers = {
1321
+ "content-type": "application/json"
1322
+ };
1323
+ b.bp("/assistants/{assistantId}/searchSessions");
1324
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1325
+ const query = (0, import_smithy_client.map)({
1326
+ [_nT]: [, input[_nT]],
1327
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1328
+ });
1329
+ let body;
1330
+ body = JSON.stringify(
1331
+ (0, import_smithy_client.take)(input, {
1332
+ searchExpression: (_) => (0, import_smithy_client._json)(_)
1333
+ })
1334
+ );
1335
+ b.m("POST").h(headers).q(query).b(body);
1336
+ return b.build();
1337
+ }, "se_SearchSessionsCommand");
1338
+ var se_StartContentUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
1339
+ const b = (0, import_core2.requestBuilder)(input, context);
1340
+ const headers = {
1341
+ "content-type": "application/json"
1342
+ };
1343
+ b.bp("/knowledgeBases/{knowledgeBaseId}/upload");
1344
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1345
+ let body;
1346
+ body = JSON.stringify(
1347
+ (0, import_smithy_client.take)(input, {
1348
+ contentType: [],
1349
+ presignedUrlTimeToLive: []
1350
+ })
1351
+ );
1352
+ b.m("POST").h(headers).b(body);
1353
+ return b.build();
1354
+ }, "se_StartContentUploadCommand");
1355
+ var se_StartImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1356
+ const b = (0, import_core2.requestBuilder)(input, context);
1357
+ const headers = {
1358
+ "content-type": "application/json"
1359
+ };
1360
+ b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs");
1361
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1362
+ let body;
1363
+ body = JSON.stringify(
1364
+ (0, import_smithy_client.take)(input, {
1365
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1366
+ externalSourceConfiguration: (_) => (0, import_smithy_client._json)(_),
1367
+ importJobType: [],
1368
+ metadata: (_) => (0, import_smithy_client._json)(_),
1369
+ uploadId: []
1370
+ })
1371
+ );
1372
+ b.m("POST").h(headers).b(body);
1373
+ return b.build();
1374
+ }, "se_StartImportJobCommand");
1375
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1376
+ const b = (0, import_core2.requestBuilder)(input, context);
1377
+ const headers = {
1378
+ "content-type": "application/json"
1379
+ };
1380
+ b.bp("/tags/{resourceArn}");
1381
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1382
+ let body;
1383
+ body = JSON.stringify(
1384
+ (0, import_smithy_client.take)(input, {
1385
+ tags: (_) => (0, import_smithy_client._json)(_)
1386
+ })
1387
+ );
1388
+ b.m("POST").h(headers).b(body);
1389
+ return b.build();
1390
+ }, "se_TagResourceCommand");
1391
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1392
+ const b = (0, import_core2.requestBuilder)(input, context);
1393
+ const headers = {};
1394
+ b.bp("/tags/{resourceArn}");
1395
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1396
+ const query = (0, import_smithy_client.map)({
1397
+ [_tK]: [
1398
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1399
+ () => (input[_tK] || []).map((_entry) => _entry)
1400
+ ]
1401
+ });
1402
+ let body;
1403
+ b.m("DELETE").h(headers).q(query).b(body);
1404
+ return b.build();
1405
+ }, "se_UntagResourceCommand");
1406
+ var se_UpdateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1407
+ const b = (0, import_core2.requestBuilder)(input, context);
1408
+ const headers = {
1409
+ "content-type": "application/json"
1410
+ };
1411
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
1412
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1413
+ b.p("contentId", () => input.contentId, "{contentId}", false);
1414
+ let body;
1415
+ body = JSON.stringify(
1416
+ (0, import_smithy_client.take)(input, {
1417
+ metadata: (_) => (0, import_smithy_client._json)(_),
1418
+ overrideLinkOutUri: [],
1419
+ removeOverrideLinkOutUri: [],
1420
+ revisionId: [],
1421
+ title: [],
1422
+ uploadId: []
1423
+ })
1424
+ );
1425
+ b.m("POST").h(headers).b(body);
1426
+ return b.build();
1427
+ }, "se_UpdateContentCommand");
1428
+ var se_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (input, context) => {
1429
+ const b = (0, import_core2.requestBuilder)(input, context);
1430
+ const headers = {
1431
+ "content-type": "application/json"
1432
+ };
1433
+ b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri");
1434
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1435
+ let body;
1436
+ body = JSON.stringify(
1437
+ (0, import_smithy_client.take)(input, {
1438
+ templateUri: []
1439
+ })
1440
+ );
1441
+ b.m("POST").h(headers).b(body);
1442
+ return b.build();
1443
+ }, "se_UpdateKnowledgeBaseTemplateUriCommand");
1444
+ var se_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1445
+ const b = (0, import_core2.requestBuilder)(input, context);
1446
+ const headers = {
1447
+ "content-type": "application/json"
1448
+ };
1449
+ b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
1450
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1451
+ b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
1452
+ let body;
1453
+ body = JSON.stringify(
1454
+ (0, import_smithy_client.take)(input, {
1455
+ channels: (_) => (0, import_smithy_client._json)(_),
1456
+ content: (_) => (0, import_smithy_client._json)(_),
1457
+ contentType: [],
1458
+ description: [],
1459
+ groupingConfiguration: (_) => (0, import_smithy_client._json)(_),
1460
+ isActive: [],
1461
+ language: [],
1462
+ name: [],
1463
+ removeDescription: [],
1464
+ removeGroupingConfiguration: [],
1465
+ removeShortcutKey: [],
1466
+ shortcutKey: []
1467
+ })
1468
+ );
1469
+ b.m("POST").h(headers).b(body);
1470
+ return b.build();
1471
+ }, "se_UpdateQuickResponseCommand");
1472
+ var de_CreateAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
1473
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1474
+ return de_CreateAssistantCommandError(output, context);
1475
+ }
1476
+ const contents = (0, import_smithy_client.map)({
1477
+ $metadata: deserializeMetadata(output)
1478
+ });
1479
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1480
+ const doc = (0, import_smithy_client.take)(data, {
1481
+ assistant: import_smithy_client._json
1482
+ });
1483
+ Object.assign(contents, doc);
1484
+ return contents;
1485
+ }, "de_CreateAssistantCommand");
1486
+ var de_CreateAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
1487
+ const parsedOutput = {
1488
+ ...output,
1489
+ body: await parseErrorBody(output.body, context)
1490
+ };
1491
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1492
+ switch (errorCode) {
1493
+ case "AccessDeniedException":
1494
+ case "com.amazonaws.qconnect#AccessDeniedException":
1495
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1496
+ case "ConflictException":
1497
+ case "com.amazonaws.qconnect#ConflictException":
1498
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1499
+ case "ServiceQuotaExceededException":
1500
+ case "com.amazonaws.qconnect#ServiceQuotaExceededException":
1501
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1502
+ case "ValidationException":
1503
+ case "com.amazonaws.qconnect#ValidationException":
1504
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1505
+ default:
1506
+ const parsedBody = parsedOutput.body;
1507
+ return throwDefaultError({
1508
+ output,
1509
+ parsedBody,
1510
+ errorCode
1511
+ });
1512
+ }
1513
+ }, "de_CreateAssistantCommandError");
1514
+ var de_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1515
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1516
+ return de_CreateAssistantAssociationCommandError(output, context);
1517
+ }
1518
+ const contents = (0, import_smithy_client.map)({
1519
+ $metadata: deserializeMetadata(output)
1520
+ });
1521
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1522
+ const doc = (0, import_smithy_client.take)(data, {
1523
+ assistantAssociation: import_smithy_client._json
1524
+ });
1525
+ Object.assign(contents, doc);
1526
+ return contents;
1527
+ }, "de_CreateAssistantAssociationCommand");
1528
+ var de_CreateAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1529
+ const parsedOutput = {
1530
+ ...output,
1531
+ body: await parseErrorBody(output.body, context)
1532
+ };
1533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1534
+ switch (errorCode) {
1535
+ case "AccessDeniedException":
1536
+ case "com.amazonaws.qconnect#AccessDeniedException":
1537
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1538
+ case "ConflictException":
1539
+ case "com.amazonaws.qconnect#ConflictException":
1540
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1541
+ case "ResourceNotFoundException":
1542
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1543
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1544
+ case "ServiceQuotaExceededException":
1545
+ case "com.amazonaws.qconnect#ServiceQuotaExceededException":
1546
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1547
+ case "ValidationException":
1548
+ case "com.amazonaws.qconnect#ValidationException":
1549
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1550
+ default:
1551
+ const parsedBody = parsedOutput.body;
1552
+ return throwDefaultError({
1553
+ output,
1554
+ parsedBody,
1555
+ errorCode
1556
+ });
1557
+ }
1558
+ }, "de_CreateAssistantAssociationCommandError");
1559
+ var de_CreateContentCommand = /* @__PURE__ */ __name(async (output, context) => {
1560
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1561
+ return de_CreateContentCommandError(output, context);
1562
+ }
1563
+ const contents = (0, import_smithy_client.map)({
1564
+ $metadata: deserializeMetadata(output)
1565
+ });
1566
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1567
+ const doc = (0, import_smithy_client.take)(data, {
1568
+ content: (_) => de_ContentData(_, context)
1569
+ });
1570
+ Object.assign(contents, doc);
1571
+ return contents;
1572
+ }, "de_CreateContentCommand");
1573
+ var de_CreateContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1574
+ const parsedOutput = {
1575
+ ...output,
1576
+ body: await parseErrorBody(output.body, context)
1577
+ };
1578
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1579
+ switch (errorCode) {
1580
+ case "AccessDeniedException":
1581
+ case "com.amazonaws.qconnect#AccessDeniedException":
1582
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1583
+ case "ConflictException":
1584
+ case "com.amazonaws.qconnect#ConflictException":
1585
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1586
+ case "ResourceNotFoundException":
1587
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1588
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1589
+ case "ServiceQuotaExceededException":
1590
+ case "com.amazonaws.qconnect#ServiceQuotaExceededException":
1591
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1592
+ case "ValidationException":
1593
+ case "com.amazonaws.qconnect#ValidationException":
1594
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1595
+ default:
1596
+ const parsedBody = parsedOutput.body;
1597
+ return throwDefaultError({
1598
+ output,
1599
+ parsedBody,
1600
+ errorCode
1601
+ });
1602
+ }
1603
+ }, "de_CreateContentCommandError");
1604
+ var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1605
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1606
+ return de_CreateKnowledgeBaseCommandError(output, context);
1607
+ }
1608
+ const contents = (0, import_smithy_client.map)({
1609
+ $metadata: deserializeMetadata(output)
1610
+ });
1611
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1612
+ const doc = (0, import_smithy_client.take)(data, {
1613
+ knowledgeBase: (_) => de_KnowledgeBaseData(_, context)
1614
+ });
1615
+ Object.assign(contents, doc);
1616
+ return contents;
1617
+ }, "de_CreateKnowledgeBaseCommand");
1618
+ var de_CreateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1619
+ const parsedOutput = {
1620
+ ...output,
1621
+ body: await parseErrorBody(output.body, context)
1622
+ };
1623
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1624
+ switch (errorCode) {
1625
+ case "AccessDeniedException":
1626
+ case "com.amazonaws.qconnect#AccessDeniedException":
1627
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1628
+ case "ConflictException":
1629
+ case "com.amazonaws.qconnect#ConflictException":
1630
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1631
+ case "ServiceQuotaExceededException":
1632
+ case "com.amazonaws.qconnect#ServiceQuotaExceededException":
1633
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1634
+ case "ValidationException":
1635
+ case "com.amazonaws.qconnect#ValidationException":
1636
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1637
+ default:
1638
+ const parsedBody = parsedOutput.body;
1639
+ return throwDefaultError({
1640
+ output,
1641
+ parsedBody,
1642
+ errorCode
1643
+ });
1644
+ }
1645
+ }, "de_CreateKnowledgeBaseCommandError");
1646
+ var de_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
1647
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1648
+ return de_CreateQuickResponseCommandError(output, context);
1649
+ }
1650
+ const contents = (0, import_smithy_client.map)({
1651
+ $metadata: deserializeMetadata(output)
1652
+ });
1653
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1654
+ const doc = (0, import_smithy_client.take)(data, {
1655
+ quickResponse: (_) => de_QuickResponseData(_, context)
1656
+ });
1657
+ Object.assign(contents, doc);
1658
+ return contents;
1659
+ }, "de_CreateQuickResponseCommand");
1660
+ var de_CreateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1661
+ const parsedOutput = {
1662
+ ...output,
1663
+ body: await parseErrorBody(output.body, context)
1664
+ };
1665
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1666
+ switch (errorCode) {
1667
+ case "AccessDeniedException":
1668
+ case "com.amazonaws.qconnect#AccessDeniedException":
1669
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1670
+ case "ConflictException":
1671
+ case "com.amazonaws.qconnect#ConflictException":
1672
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1673
+ case "ResourceNotFoundException":
1674
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1675
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1676
+ case "ServiceQuotaExceededException":
1677
+ case "com.amazonaws.qconnect#ServiceQuotaExceededException":
1678
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1679
+ case "ValidationException":
1680
+ case "com.amazonaws.qconnect#ValidationException":
1681
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1682
+ default:
1683
+ const parsedBody = parsedOutput.body;
1684
+ return throwDefaultError({
1685
+ output,
1686
+ parsedBody,
1687
+ errorCode
1688
+ });
1689
+ }
1690
+ }, "de_CreateQuickResponseCommandError");
1691
+ var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1692
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1693
+ return de_CreateSessionCommandError(output, context);
1694
+ }
1695
+ const contents = (0, import_smithy_client.map)({
1696
+ $metadata: deserializeMetadata(output)
1697
+ });
1698
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1699
+ const doc = (0, import_smithy_client.take)(data, {
1700
+ session: import_smithy_client._json
1701
+ });
1702
+ Object.assign(contents, doc);
1703
+ return contents;
1704
+ }, "de_CreateSessionCommand");
1705
+ var de_CreateSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1706
+ const parsedOutput = {
1707
+ ...output,
1708
+ body: await parseErrorBody(output.body, context)
1709
+ };
1710
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1711
+ switch (errorCode) {
1712
+ case "ConflictException":
1713
+ case "com.amazonaws.qconnect#ConflictException":
1714
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1715
+ case "ResourceNotFoundException":
1716
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1717
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1718
+ case "ValidationException":
1719
+ case "com.amazonaws.qconnect#ValidationException":
1720
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1721
+ default:
1722
+ const parsedBody = parsedOutput.body;
1723
+ return throwDefaultError({
1724
+ output,
1725
+ parsedBody,
1726
+ errorCode
1727
+ });
1728
+ }
1729
+ }, "de_CreateSessionCommandError");
1730
+ var de_DeleteAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
1731
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1732
+ return de_DeleteAssistantCommandError(output, context);
1733
+ }
1734
+ const contents = (0, import_smithy_client.map)({
1735
+ $metadata: deserializeMetadata(output)
1736
+ });
1737
+ await (0, import_smithy_client.collectBody)(output.body, context);
1738
+ return contents;
1739
+ }, "de_DeleteAssistantCommand");
1740
+ var de_DeleteAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
1741
+ const parsedOutput = {
1742
+ ...output,
1743
+ body: await parseErrorBody(output.body, context)
1744
+ };
1745
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1746
+ switch (errorCode) {
1747
+ case "AccessDeniedException":
1748
+ case "com.amazonaws.qconnect#AccessDeniedException":
1749
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1750
+ case "ResourceNotFoundException":
1751
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1752
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1753
+ case "ValidationException":
1754
+ case "com.amazonaws.qconnect#ValidationException":
1755
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1756
+ default:
1757
+ const parsedBody = parsedOutput.body;
1758
+ return throwDefaultError({
1759
+ output,
1760
+ parsedBody,
1761
+ errorCode
1762
+ });
1763
+ }
1764
+ }, "de_DeleteAssistantCommandError");
1765
+ var de_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1766
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1767
+ return de_DeleteAssistantAssociationCommandError(output, context);
1768
+ }
1769
+ const contents = (0, import_smithy_client.map)({
1770
+ $metadata: deserializeMetadata(output)
1771
+ });
1772
+ await (0, import_smithy_client.collectBody)(output.body, context);
1773
+ return contents;
1774
+ }, "de_DeleteAssistantAssociationCommand");
1775
+ var de_DeleteAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1776
+ const parsedOutput = {
1777
+ ...output,
1778
+ body: await parseErrorBody(output.body, context)
1779
+ };
1780
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1781
+ switch (errorCode) {
1782
+ case "AccessDeniedException":
1783
+ case "com.amazonaws.qconnect#AccessDeniedException":
1784
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1785
+ case "ResourceNotFoundException":
1786
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1787
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1788
+ case "ValidationException":
1789
+ case "com.amazonaws.qconnect#ValidationException":
1790
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1791
+ default:
1792
+ const parsedBody = parsedOutput.body;
1793
+ return throwDefaultError({
1794
+ output,
1795
+ parsedBody,
1796
+ errorCode
1797
+ });
1798
+ }
1799
+ }, "de_DeleteAssistantAssociationCommandError");
1800
+ var de_DeleteContentCommand = /* @__PURE__ */ __name(async (output, context) => {
1801
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1802
+ return de_DeleteContentCommandError(output, context);
1803
+ }
1804
+ const contents = (0, import_smithy_client.map)({
1805
+ $metadata: deserializeMetadata(output)
1806
+ });
1807
+ await (0, import_smithy_client.collectBody)(output.body, context);
1808
+ return contents;
1809
+ }, "de_DeleteContentCommand");
1810
+ var de_DeleteContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1811
+ const parsedOutput = {
1812
+ ...output,
1813
+ body: await parseErrorBody(output.body, context)
1814
+ };
1815
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1816
+ switch (errorCode) {
1817
+ case "AccessDeniedException":
1818
+ case "com.amazonaws.qconnect#AccessDeniedException":
1819
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1820
+ case "ResourceNotFoundException":
1821
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1822
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1823
+ case "ValidationException":
1824
+ case "com.amazonaws.qconnect#ValidationException":
1825
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1826
+ default:
1827
+ const parsedBody = parsedOutput.body;
1828
+ return throwDefaultError({
1829
+ output,
1830
+ parsedBody,
1831
+ errorCode
1832
+ });
1833
+ }
1834
+ }, "de_DeleteContentCommandError");
1835
+ var de_DeleteImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1836
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1837
+ return de_DeleteImportJobCommandError(output, context);
1838
+ }
1839
+ const contents = (0, import_smithy_client.map)({
1840
+ $metadata: deserializeMetadata(output)
1841
+ });
1842
+ await (0, import_smithy_client.collectBody)(output.body, context);
1843
+ return contents;
1844
+ }, "de_DeleteImportJobCommand");
1845
+ var de_DeleteImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1846
+ const parsedOutput = {
1847
+ ...output,
1848
+ body: await parseErrorBody(output.body, context)
1849
+ };
1850
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1851
+ switch (errorCode) {
1852
+ case "AccessDeniedException":
1853
+ case "com.amazonaws.qconnect#AccessDeniedException":
1854
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1855
+ case "ConflictException":
1856
+ case "com.amazonaws.qconnect#ConflictException":
1857
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1858
+ case "ResourceNotFoundException":
1859
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1860
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1861
+ case "ValidationException":
1862
+ case "com.amazonaws.qconnect#ValidationException":
1863
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1864
+ default:
1865
+ const parsedBody = parsedOutput.body;
1866
+ return throwDefaultError({
1867
+ output,
1868
+ parsedBody,
1869
+ errorCode
1870
+ });
1871
+ }
1872
+ }, "de_DeleteImportJobCommandError");
1873
+ var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1874
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1875
+ return de_DeleteKnowledgeBaseCommandError(output, context);
1876
+ }
1877
+ const contents = (0, import_smithy_client.map)({
1878
+ $metadata: deserializeMetadata(output)
1879
+ });
1880
+ await (0, import_smithy_client.collectBody)(output.body, context);
1881
+ return contents;
1882
+ }, "de_DeleteKnowledgeBaseCommand");
1883
+ var de_DeleteKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1884
+ const parsedOutput = {
1885
+ ...output,
1886
+ body: await parseErrorBody(output.body, context)
1887
+ };
1888
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1889
+ switch (errorCode) {
1890
+ case "AccessDeniedException":
1891
+ case "com.amazonaws.qconnect#AccessDeniedException":
1892
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1893
+ case "ConflictException":
1894
+ case "com.amazonaws.qconnect#ConflictException":
1895
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1896
+ case "ResourceNotFoundException":
1897
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1898
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1899
+ case "ValidationException":
1900
+ case "com.amazonaws.qconnect#ValidationException":
1901
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1902
+ default:
1903
+ const parsedBody = parsedOutput.body;
1904
+ return throwDefaultError({
1905
+ output,
1906
+ parsedBody,
1907
+ errorCode
1908
+ });
1909
+ }
1910
+ }, "de_DeleteKnowledgeBaseCommandError");
1911
+ var de_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
1912
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1913
+ return de_DeleteQuickResponseCommandError(output, context);
1914
+ }
1915
+ const contents = (0, import_smithy_client.map)({
1916
+ $metadata: deserializeMetadata(output)
1917
+ });
1918
+ await (0, import_smithy_client.collectBody)(output.body, context);
1919
+ return contents;
1920
+ }, "de_DeleteQuickResponseCommand");
1921
+ var de_DeleteQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1922
+ const parsedOutput = {
1923
+ ...output,
1924
+ body: await parseErrorBody(output.body, context)
1925
+ };
1926
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
+ switch (errorCode) {
1928
+ case "AccessDeniedException":
1929
+ case "com.amazonaws.qconnect#AccessDeniedException":
1930
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1931
+ case "ResourceNotFoundException":
1932
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1933
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1934
+ case "ValidationException":
1935
+ case "com.amazonaws.qconnect#ValidationException":
1936
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1937
+ default:
1938
+ const parsedBody = parsedOutput.body;
1939
+ return throwDefaultError({
1940
+ output,
1941
+ parsedBody,
1942
+ errorCode
1943
+ });
1944
+ }
1945
+ }, "de_DeleteQuickResponseCommandError");
1946
+ var de_GetAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
1947
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1948
+ return de_GetAssistantCommandError(output, context);
1949
+ }
1950
+ const contents = (0, import_smithy_client.map)({
1951
+ $metadata: deserializeMetadata(output)
1952
+ });
1953
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1954
+ const doc = (0, import_smithy_client.take)(data, {
1955
+ assistant: import_smithy_client._json
1956
+ });
1957
+ Object.assign(contents, doc);
1958
+ return contents;
1959
+ }, "de_GetAssistantCommand");
1960
+ var de_GetAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
1961
+ const parsedOutput = {
1962
+ ...output,
1963
+ body: await parseErrorBody(output.body, context)
1964
+ };
1965
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1966
+ switch (errorCode) {
1967
+ case "AccessDeniedException":
1968
+ case "com.amazonaws.qconnect#AccessDeniedException":
1969
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1970
+ case "ResourceNotFoundException":
1971
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
1972
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1973
+ case "ValidationException":
1974
+ case "com.amazonaws.qconnect#ValidationException":
1975
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1976
+ default:
1977
+ const parsedBody = parsedOutput.body;
1978
+ return throwDefaultError({
1979
+ output,
1980
+ parsedBody,
1981
+ errorCode
1982
+ });
1983
+ }
1984
+ }, "de_GetAssistantCommandError");
1985
+ var de_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1986
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1987
+ return de_GetAssistantAssociationCommandError(output, context);
1988
+ }
1989
+ const contents = (0, import_smithy_client.map)({
1990
+ $metadata: deserializeMetadata(output)
1991
+ });
1992
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1993
+ const doc = (0, import_smithy_client.take)(data, {
1994
+ assistantAssociation: import_smithy_client._json
1995
+ });
1996
+ Object.assign(contents, doc);
1997
+ return contents;
1998
+ }, "de_GetAssistantAssociationCommand");
1999
+ var de_GetAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2000
+ const parsedOutput = {
2001
+ ...output,
2002
+ body: await parseErrorBody(output.body, context)
2003
+ };
2004
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2005
+ switch (errorCode) {
2006
+ case "AccessDeniedException":
2007
+ case "com.amazonaws.qconnect#AccessDeniedException":
2008
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2009
+ case "ResourceNotFoundException":
2010
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2011
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2012
+ case "ValidationException":
2013
+ case "com.amazonaws.qconnect#ValidationException":
2014
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2015
+ default:
2016
+ const parsedBody = parsedOutput.body;
2017
+ return throwDefaultError({
2018
+ output,
2019
+ parsedBody,
2020
+ errorCode
2021
+ });
2022
+ }
2023
+ }, "de_GetAssistantAssociationCommandError");
2024
+ var de_GetContentCommand = /* @__PURE__ */ __name(async (output, context) => {
2025
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2026
+ return de_GetContentCommandError(output, context);
2027
+ }
2028
+ const contents = (0, import_smithy_client.map)({
2029
+ $metadata: deserializeMetadata(output)
2030
+ });
2031
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2032
+ const doc = (0, import_smithy_client.take)(data, {
2033
+ content: (_) => de_ContentData(_, context)
2034
+ });
2035
+ Object.assign(contents, doc);
2036
+ return contents;
2037
+ }, "de_GetContentCommand");
2038
+ var de_GetContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2039
+ const parsedOutput = {
2040
+ ...output,
2041
+ body: await parseErrorBody(output.body, context)
2042
+ };
2043
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2044
+ switch (errorCode) {
2045
+ case "AccessDeniedException":
2046
+ case "com.amazonaws.qconnect#AccessDeniedException":
2047
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2048
+ case "ResourceNotFoundException":
2049
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2050
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2051
+ case "ValidationException":
2052
+ case "com.amazonaws.qconnect#ValidationException":
2053
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2054
+ default:
2055
+ const parsedBody = parsedOutput.body;
2056
+ return throwDefaultError({
2057
+ output,
2058
+ parsedBody,
2059
+ errorCode
2060
+ });
2061
+ }
2062
+ }, "de_GetContentCommandError");
2063
+ var de_GetContentSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
2064
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2065
+ return de_GetContentSummaryCommandError(output, context);
2066
+ }
2067
+ const contents = (0, import_smithy_client.map)({
2068
+ $metadata: deserializeMetadata(output)
2069
+ });
2070
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2071
+ const doc = (0, import_smithy_client.take)(data, {
2072
+ contentSummary: import_smithy_client._json
2073
+ });
2074
+ Object.assign(contents, doc);
2075
+ return contents;
2076
+ }, "de_GetContentSummaryCommand");
2077
+ var de_GetContentSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
2078
+ const parsedOutput = {
2079
+ ...output,
2080
+ body: await parseErrorBody(output.body, context)
2081
+ };
2082
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2083
+ switch (errorCode) {
2084
+ case "AccessDeniedException":
2085
+ case "com.amazonaws.qconnect#AccessDeniedException":
2086
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2087
+ case "ResourceNotFoundException":
2088
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2089
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2090
+ case "ValidationException":
2091
+ case "com.amazonaws.qconnect#ValidationException":
2092
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2093
+ default:
2094
+ const parsedBody = parsedOutput.body;
2095
+ return throwDefaultError({
2096
+ output,
2097
+ parsedBody,
2098
+ errorCode
2099
+ });
2100
+ }
2101
+ }, "de_GetContentSummaryCommandError");
2102
+ var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2103
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2104
+ return de_GetImportJobCommandError(output, context);
2105
+ }
2106
+ const contents = (0, import_smithy_client.map)({
2107
+ $metadata: deserializeMetadata(output)
2108
+ });
2109
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2110
+ const doc = (0, import_smithy_client.take)(data, {
2111
+ importJob: (_) => de_ImportJobData(_, context)
2112
+ });
2113
+ Object.assign(contents, doc);
2114
+ return contents;
2115
+ }, "de_GetImportJobCommand");
2116
+ var de_GetImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2117
+ const parsedOutput = {
2118
+ ...output,
2119
+ body: await parseErrorBody(output.body, context)
2120
+ };
2121
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2122
+ switch (errorCode) {
2123
+ case "AccessDeniedException":
2124
+ case "com.amazonaws.qconnect#AccessDeniedException":
2125
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2126
+ case "ResourceNotFoundException":
2127
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2128
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2129
+ case "ValidationException":
2130
+ case "com.amazonaws.qconnect#ValidationException":
2131
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2132
+ default:
2133
+ const parsedBody = parsedOutput.body;
2134
+ return throwDefaultError({
2135
+ output,
2136
+ parsedBody,
2137
+ errorCode
2138
+ });
2139
+ }
2140
+ }, "de_GetImportJobCommandError");
2141
+ var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
2142
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2143
+ return de_GetKnowledgeBaseCommandError(output, context);
2144
+ }
2145
+ const contents = (0, import_smithy_client.map)({
2146
+ $metadata: deserializeMetadata(output)
2147
+ });
2148
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2149
+ const doc = (0, import_smithy_client.take)(data, {
2150
+ knowledgeBase: (_) => de_KnowledgeBaseData(_, context)
2151
+ });
2152
+ Object.assign(contents, doc);
2153
+ return contents;
2154
+ }, "de_GetKnowledgeBaseCommand");
2155
+ var de_GetKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
2156
+ const parsedOutput = {
2157
+ ...output,
2158
+ body: await parseErrorBody(output.body, context)
2159
+ };
2160
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2161
+ switch (errorCode) {
2162
+ case "AccessDeniedException":
2163
+ case "com.amazonaws.qconnect#AccessDeniedException":
2164
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2165
+ case "ResourceNotFoundException":
2166
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2167
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2168
+ case "ValidationException":
2169
+ case "com.amazonaws.qconnect#ValidationException":
2170
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2171
+ default:
2172
+ const parsedBody = parsedOutput.body;
2173
+ return throwDefaultError({
2174
+ output,
2175
+ parsedBody,
2176
+ errorCode
2177
+ });
2178
+ }
2179
+ }, "de_GetKnowledgeBaseCommandError");
2180
+ var de_GetQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
2181
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2182
+ return de_GetQuickResponseCommandError(output, context);
2183
+ }
2184
+ const contents = (0, import_smithy_client.map)({
2185
+ $metadata: deserializeMetadata(output)
2186
+ });
2187
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2188
+ const doc = (0, import_smithy_client.take)(data, {
2189
+ quickResponse: (_) => de_QuickResponseData(_, context)
2190
+ });
2191
+ Object.assign(contents, doc);
2192
+ return contents;
2193
+ }, "de_GetQuickResponseCommand");
2194
+ var de_GetQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
2195
+ const parsedOutput = {
2196
+ ...output,
2197
+ body: await parseErrorBody(output.body, context)
2198
+ };
2199
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2200
+ switch (errorCode) {
2201
+ case "AccessDeniedException":
2202
+ case "com.amazonaws.qconnect#AccessDeniedException":
2203
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2204
+ case "ResourceNotFoundException":
2205
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2206
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2207
+ case "ValidationException":
2208
+ case "com.amazonaws.qconnect#ValidationException":
2209
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2210
+ default:
2211
+ const parsedBody = parsedOutput.body;
2212
+ return throwDefaultError({
2213
+ output,
2214
+ parsedBody,
2215
+ errorCode
2216
+ });
2217
+ }
2218
+ }, "de_GetQuickResponseCommandError");
2219
+ var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2220
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2221
+ return de_GetRecommendationsCommandError(output, context);
2222
+ }
2223
+ const contents = (0, import_smithy_client.map)({
2224
+ $metadata: deserializeMetadata(output)
2225
+ });
2226
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2227
+ const doc = (0, import_smithy_client.take)(data, {
2228
+ recommendations: (_) => de_RecommendationList(_, context),
2229
+ triggers: import_smithy_client._json
2230
+ });
2231
+ Object.assign(contents, doc);
2232
+ return contents;
2233
+ }, "de_GetRecommendationsCommand");
2234
+ var de_GetRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2235
+ const parsedOutput = {
2236
+ ...output,
2237
+ body: await parseErrorBody(output.body, context)
2238
+ };
2239
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2240
+ switch (errorCode) {
2241
+ case "AccessDeniedException":
2242
+ case "com.amazonaws.qconnect#AccessDeniedException":
2243
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2244
+ case "ResourceNotFoundException":
2245
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2246
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2247
+ case "ValidationException":
2248
+ case "com.amazonaws.qconnect#ValidationException":
2249
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2250
+ default:
2251
+ const parsedBody = parsedOutput.body;
2252
+ return throwDefaultError({
2253
+ output,
2254
+ parsedBody,
2255
+ errorCode
2256
+ });
2257
+ }
2258
+ }, "de_GetRecommendationsCommandError");
2259
+ var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2260
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2261
+ return de_GetSessionCommandError(output, context);
2262
+ }
2263
+ const contents = (0, import_smithy_client.map)({
2264
+ $metadata: deserializeMetadata(output)
2265
+ });
2266
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2267
+ const doc = (0, import_smithy_client.take)(data, {
2268
+ session: import_smithy_client._json
2269
+ });
2270
+ Object.assign(contents, doc);
2271
+ return contents;
2272
+ }, "de_GetSessionCommand");
2273
+ var de_GetSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2274
+ const parsedOutput = {
2275
+ ...output,
2276
+ body: await parseErrorBody(output.body, context)
2277
+ };
2278
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2279
+ switch (errorCode) {
2280
+ case "AccessDeniedException":
2281
+ case "com.amazonaws.qconnect#AccessDeniedException":
2282
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2283
+ case "ResourceNotFoundException":
2284
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2285
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2286
+ case "ValidationException":
2287
+ case "com.amazonaws.qconnect#ValidationException":
2288
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2289
+ default:
2290
+ const parsedBody = parsedOutput.body;
2291
+ return throwDefaultError({
2292
+ output,
2293
+ parsedBody,
2294
+ errorCode
2295
+ });
2296
+ }
2297
+ }, "de_GetSessionCommandError");
2298
+ var de_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2299
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2300
+ return de_ListAssistantAssociationsCommandError(output, context);
2301
+ }
2302
+ const contents = (0, import_smithy_client.map)({
2303
+ $metadata: deserializeMetadata(output)
2304
+ });
2305
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2306
+ const doc = (0, import_smithy_client.take)(data, {
2307
+ assistantAssociationSummaries: import_smithy_client._json,
2308
+ nextToken: import_smithy_client.expectString
2309
+ });
2310
+ Object.assign(contents, doc);
2311
+ return contents;
2312
+ }, "de_ListAssistantAssociationsCommand");
2313
+ var de_ListAssistantAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2314
+ const parsedOutput = {
2315
+ ...output,
2316
+ body: await parseErrorBody(output.body, context)
2317
+ };
2318
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2319
+ switch (errorCode) {
2320
+ case "AccessDeniedException":
2321
+ case "com.amazonaws.qconnect#AccessDeniedException":
2322
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2323
+ case "ResourceNotFoundException":
2324
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2325
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2326
+ case "ValidationException":
2327
+ case "com.amazonaws.qconnect#ValidationException":
2328
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2329
+ default:
2330
+ const parsedBody = parsedOutput.body;
2331
+ return throwDefaultError({
2332
+ output,
2333
+ parsedBody,
2334
+ errorCode
2335
+ });
2336
+ }
2337
+ }, "de_ListAssistantAssociationsCommandError");
2338
+ var de_ListAssistantsCommand = /* @__PURE__ */ __name(async (output, context) => {
2339
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2340
+ return de_ListAssistantsCommandError(output, context);
2341
+ }
2342
+ const contents = (0, import_smithy_client.map)({
2343
+ $metadata: deserializeMetadata(output)
2344
+ });
2345
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2346
+ const doc = (0, import_smithy_client.take)(data, {
2347
+ assistantSummaries: import_smithy_client._json,
2348
+ nextToken: import_smithy_client.expectString
2349
+ });
2350
+ Object.assign(contents, doc);
2351
+ return contents;
2352
+ }, "de_ListAssistantsCommand");
2353
+ var de_ListAssistantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2354
+ const parsedOutput = {
2355
+ ...output,
2356
+ body: await parseErrorBody(output.body, context)
2357
+ };
2358
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2359
+ switch (errorCode) {
2360
+ case "AccessDeniedException":
2361
+ case "com.amazonaws.qconnect#AccessDeniedException":
2362
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2363
+ case "ValidationException":
2364
+ case "com.amazonaws.qconnect#ValidationException":
2365
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2366
+ default:
2367
+ const parsedBody = parsedOutput.body;
2368
+ return throwDefaultError({
2369
+ output,
2370
+ parsedBody,
2371
+ errorCode
2372
+ });
2373
+ }
2374
+ }, "de_ListAssistantsCommandError");
2375
+ var de_ListContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2376
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2377
+ return de_ListContentsCommandError(output, context);
2378
+ }
2379
+ const contents = (0, import_smithy_client.map)({
2380
+ $metadata: deserializeMetadata(output)
2381
+ });
2382
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2383
+ const doc = (0, import_smithy_client.take)(data, {
2384
+ contentSummaries: import_smithy_client._json,
2385
+ nextToken: import_smithy_client.expectString
2386
+ });
2387
+ Object.assign(contents, doc);
2388
+ return contents;
2389
+ }, "de_ListContentsCommand");
2390
+ var de_ListContentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2391
+ const parsedOutput = {
2392
+ ...output,
2393
+ body: await parseErrorBody(output.body, context)
2394
+ };
2395
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2396
+ switch (errorCode) {
2397
+ case "AccessDeniedException":
2398
+ case "com.amazonaws.qconnect#AccessDeniedException":
2399
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2400
+ case "ResourceNotFoundException":
2401
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2402
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2403
+ case "ValidationException":
2404
+ case "com.amazonaws.qconnect#ValidationException":
2405
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2406
+ default:
2407
+ const parsedBody = parsedOutput.body;
2408
+ return throwDefaultError({
2409
+ output,
2410
+ parsedBody,
2411
+ errorCode
2412
+ });
2413
+ }
2414
+ }, "de_ListContentsCommandError");
2415
+ var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
2416
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2417
+ return de_ListImportJobsCommandError(output, context);
2418
+ }
2419
+ const contents = (0, import_smithy_client.map)({
2420
+ $metadata: deserializeMetadata(output)
2421
+ });
2422
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2423
+ const doc = (0, import_smithy_client.take)(data, {
2424
+ importJobSummaries: (_) => de_ImportJobList(_, context),
2425
+ nextToken: import_smithy_client.expectString
2426
+ });
2427
+ Object.assign(contents, doc);
2428
+ return contents;
2429
+ }, "de_ListImportJobsCommand");
2430
+ var de_ListImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2431
+ const parsedOutput = {
2432
+ ...output,
2433
+ body: await parseErrorBody(output.body, context)
2434
+ };
2435
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2436
+ switch (errorCode) {
2437
+ case "AccessDeniedException":
2438
+ case "com.amazonaws.qconnect#AccessDeniedException":
2439
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2440
+ case "ValidationException":
2441
+ case "com.amazonaws.qconnect#ValidationException":
2442
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2443
+ default:
2444
+ const parsedBody = parsedOutput.body;
2445
+ return throwDefaultError({
2446
+ output,
2447
+ parsedBody,
2448
+ errorCode
2449
+ });
2450
+ }
2451
+ }, "de_ListImportJobsCommandError");
2452
+ var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
2453
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2454
+ return de_ListKnowledgeBasesCommandError(output, context);
2455
+ }
2456
+ const contents = (0, import_smithy_client.map)({
2457
+ $metadata: deserializeMetadata(output)
2458
+ });
2459
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2460
+ const doc = (0, import_smithy_client.take)(data, {
2461
+ knowledgeBaseSummaries: import_smithy_client._json,
2462
+ nextToken: import_smithy_client.expectString
2463
+ });
2464
+ Object.assign(contents, doc);
2465
+ return contents;
2466
+ }, "de_ListKnowledgeBasesCommand");
2467
+ var de_ListKnowledgeBasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2468
+ const parsedOutput = {
2469
+ ...output,
2470
+ body: await parseErrorBody(output.body, context)
2471
+ };
2472
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2473
+ switch (errorCode) {
2474
+ case "AccessDeniedException":
2475
+ case "com.amazonaws.qconnect#AccessDeniedException":
2476
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2477
+ case "ValidationException":
2478
+ case "com.amazonaws.qconnect#ValidationException":
2479
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2480
+ default:
2481
+ const parsedBody = parsedOutput.body;
2482
+ return throwDefaultError({
2483
+ output,
2484
+ parsedBody,
2485
+ errorCode
2486
+ });
2487
+ }
2488
+ }, "de_ListKnowledgeBasesCommandError");
2489
+ var de_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
2490
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2491
+ return de_ListQuickResponsesCommandError(output, context);
2492
+ }
2493
+ const contents = (0, import_smithy_client.map)({
2494
+ $metadata: deserializeMetadata(output)
2495
+ });
2496
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2497
+ const doc = (0, import_smithy_client.take)(data, {
2498
+ nextToken: import_smithy_client.expectString,
2499
+ quickResponseSummaries: (_) => de_QuickResponseSummaryList(_, context)
2500
+ });
2501
+ Object.assign(contents, doc);
2502
+ return contents;
2503
+ }, "de_ListQuickResponsesCommand");
2504
+ var de_ListQuickResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2505
+ const parsedOutput = {
2506
+ ...output,
2507
+ body: await parseErrorBody(output.body, context)
2508
+ };
2509
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2510
+ switch (errorCode) {
2511
+ case "AccessDeniedException":
2512
+ case "com.amazonaws.qconnect#AccessDeniedException":
2513
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2514
+ case "ResourceNotFoundException":
2515
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2516
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2517
+ case "ValidationException":
2518
+ case "com.amazonaws.qconnect#ValidationException":
2519
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2520
+ default:
2521
+ const parsedBody = parsedOutput.body;
2522
+ return throwDefaultError({
2523
+ output,
2524
+ parsedBody,
2525
+ errorCode
2526
+ });
2527
+ }
2528
+ }, "de_ListQuickResponsesCommandError");
2529
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2531
+ return de_ListTagsForResourceCommandError(output, context);
2532
+ }
2533
+ const contents = (0, import_smithy_client.map)({
2534
+ $metadata: deserializeMetadata(output)
2535
+ });
2536
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2537
+ const doc = (0, import_smithy_client.take)(data, {
2538
+ tags: import_smithy_client._json
2539
+ });
2540
+ Object.assign(contents, doc);
2541
+ return contents;
2542
+ }, "de_ListTagsForResourceCommand");
2543
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2544
+ const parsedOutput = {
2545
+ ...output,
2546
+ body: await parseErrorBody(output.body, context)
2547
+ };
2548
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2549
+ switch (errorCode) {
2550
+ case "ResourceNotFoundException":
2551
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2552
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2553
+ default:
2554
+ const parsedBody = parsedOutput.body;
2555
+ return throwDefaultError({
2556
+ output,
2557
+ parsedBody,
2558
+ errorCode
2559
+ });
2560
+ }
2561
+ }, "de_ListTagsForResourceCommandError");
2562
+ var de_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (output, context) => {
2563
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2564
+ return de_NotifyRecommendationsReceivedCommandError(output, context);
2565
+ }
2566
+ const contents = (0, import_smithy_client.map)({
2567
+ $metadata: deserializeMetadata(output)
2568
+ });
2569
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2570
+ const doc = (0, import_smithy_client.take)(data, {
2571
+ errors: import_smithy_client._json,
2572
+ recommendationIds: import_smithy_client._json
2573
+ });
2574
+ Object.assign(contents, doc);
2575
+ return contents;
2576
+ }, "de_NotifyRecommendationsReceivedCommand");
2577
+ var de_NotifyRecommendationsReceivedCommandError = /* @__PURE__ */ __name(async (output, context) => {
2578
+ const parsedOutput = {
2579
+ ...output,
2580
+ body: await parseErrorBody(output.body, context)
2581
+ };
2582
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2583
+ switch (errorCode) {
2584
+ case "AccessDeniedException":
2585
+ case "com.amazonaws.qconnect#AccessDeniedException":
2586
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2587
+ case "ResourceNotFoundException":
2588
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2589
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2590
+ case "ValidationException":
2591
+ case "com.amazonaws.qconnect#ValidationException":
2592
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2593
+ default:
2594
+ const parsedBody = parsedOutput.body;
2595
+ return throwDefaultError({
2596
+ output,
2597
+ parsedBody,
2598
+ errorCode
2599
+ });
2600
+ }
2601
+ }, "de_NotifyRecommendationsReceivedCommandError");
2602
+ var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
2603
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2604
+ return de_PutFeedbackCommandError(output, context);
2605
+ }
2606
+ const contents = (0, import_smithy_client.map)({
2607
+ $metadata: deserializeMetadata(output)
2608
+ });
2609
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2610
+ const doc = (0, import_smithy_client.take)(data, {
2611
+ assistantArn: import_smithy_client.expectString,
2612
+ assistantId: import_smithy_client.expectString,
2613
+ contentFeedback: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2614
+ targetId: import_smithy_client.expectString,
2615
+ targetType: import_smithy_client.expectString
2616
+ });
2617
+ Object.assign(contents, doc);
2618
+ return contents;
2619
+ }, "de_PutFeedbackCommand");
2620
+ var de_PutFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
2621
+ const parsedOutput = {
2622
+ ...output,
2623
+ body: await parseErrorBody(output.body, context)
2624
+ };
2625
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2626
+ switch (errorCode) {
2627
+ case "AccessDeniedException":
2628
+ case "com.amazonaws.qconnect#AccessDeniedException":
2629
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2630
+ case "ResourceNotFoundException":
2631
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2632
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2633
+ case "ValidationException":
2634
+ case "com.amazonaws.qconnect#ValidationException":
2635
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2636
+ default:
2637
+ const parsedBody = parsedOutput.body;
2638
+ return throwDefaultError({
2639
+ output,
2640
+ parsedBody,
2641
+ errorCode
2642
+ });
2643
+ }
2644
+ }, "de_PutFeedbackCommandError");
2645
+ var de_QueryAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
2646
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2647
+ return de_QueryAssistantCommandError(output, context);
2648
+ }
2649
+ const contents = (0, import_smithy_client.map)({
2650
+ $metadata: deserializeMetadata(output)
2651
+ });
2652
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2653
+ const doc = (0, import_smithy_client.take)(data, {
2654
+ nextToken: import_smithy_client.expectString,
2655
+ results: (_) => de_QueryResultsList(_, context)
2656
+ });
2657
+ Object.assign(contents, doc);
2658
+ return contents;
2659
+ }, "de_QueryAssistantCommand");
2660
+ var de_QueryAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
2661
+ const parsedOutput = {
2662
+ ...output,
2663
+ body: await parseErrorBody(output.body, context)
2664
+ };
2665
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2666
+ switch (errorCode) {
2667
+ case "AccessDeniedException":
2668
+ case "com.amazonaws.qconnect#AccessDeniedException":
2669
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2670
+ case "RequestTimeoutException":
2671
+ case "com.amazonaws.qconnect#RequestTimeoutException":
2672
+ throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2673
+ case "ResourceNotFoundException":
2674
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2675
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2676
+ case "ValidationException":
2677
+ case "com.amazonaws.qconnect#ValidationException":
2678
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2679
+ default:
2680
+ const parsedBody = parsedOutput.body;
2681
+ return throwDefaultError({
2682
+ output,
2683
+ parsedBody,
2684
+ errorCode
2685
+ });
2686
+ }
2687
+ }, "de_QueryAssistantCommandError");
2688
+ var de_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (output, context) => {
2689
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2690
+ return de_RemoveKnowledgeBaseTemplateUriCommandError(output, context);
2691
+ }
2692
+ const contents = (0, import_smithy_client.map)({
2693
+ $metadata: deserializeMetadata(output)
2694
+ });
2695
+ await (0, import_smithy_client.collectBody)(output.body, context);
2696
+ return contents;
2697
+ }, "de_RemoveKnowledgeBaseTemplateUriCommand");
2698
+ var de_RemoveKnowledgeBaseTemplateUriCommandError = /* @__PURE__ */ __name(async (output, context) => {
2699
+ const parsedOutput = {
2700
+ ...output,
2701
+ body: await parseErrorBody(output.body, context)
2702
+ };
2703
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2704
+ switch (errorCode) {
2705
+ case "AccessDeniedException":
2706
+ case "com.amazonaws.qconnect#AccessDeniedException":
2707
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2708
+ case "ResourceNotFoundException":
2709
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2710
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2711
+ case "ValidationException":
2712
+ case "com.amazonaws.qconnect#ValidationException":
2713
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2714
+ default:
2715
+ const parsedBody = parsedOutput.body;
2716
+ return throwDefaultError({
2717
+ output,
2718
+ parsedBody,
2719
+ errorCode
2720
+ });
2721
+ }
2722
+ }, "de_RemoveKnowledgeBaseTemplateUriCommandError");
2723
+ var de_SearchContentCommand = /* @__PURE__ */ __name(async (output, context) => {
2724
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2725
+ return de_SearchContentCommandError(output, context);
2726
+ }
2727
+ const contents = (0, import_smithy_client.map)({
2728
+ $metadata: deserializeMetadata(output)
2729
+ });
2730
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2731
+ const doc = (0, import_smithy_client.take)(data, {
2732
+ contentSummaries: import_smithy_client._json,
2733
+ nextToken: import_smithy_client.expectString
2734
+ });
2735
+ Object.assign(contents, doc);
2736
+ return contents;
2737
+ }, "de_SearchContentCommand");
2738
+ var de_SearchContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2739
+ const parsedOutput = {
2740
+ ...output,
2741
+ body: await parseErrorBody(output.body, context)
2742
+ };
2743
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2744
+ switch (errorCode) {
2745
+ case "AccessDeniedException":
2746
+ case "com.amazonaws.qconnect#AccessDeniedException":
2747
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2748
+ case "ResourceNotFoundException":
2749
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2750
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2751
+ case "ValidationException":
2752
+ case "com.amazonaws.qconnect#ValidationException":
2753
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2754
+ default:
2755
+ const parsedBody = parsedOutput.body;
2756
+ return throwDefaultError({
2757
+ output,
2758
+ parsedBody,
2759
+ errorCode
2760
+ });
2761
+ }
2762
+ }, "de_SearchContentCommandError");
2763
+ var de_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
2764
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2765
+ return de_SearchQuickResponsesCommandError(output, context);
2766
+ }
2767
+ const contents = (0, import_smithy_client.map)({
2768
+ $metadata: deserializeMetadata(output)
2769
+ });
2770
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2771
+ const doc = (0, import_smithy_client.take)(data, {
2772
+ nextToken: import_smithy_client.expectString,
2773
+ results: (_) => de_QuickResponseSearchResultsList(_, context)
2774
+ });
2775
+ Object.assign(contents, doc);
2776
+ return contents;
2777
+ }, "de_SearchQuickResponsesCommand");
2778
+ var de_SearchQuickResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2779
+ const parsedOutput = {
2780
+ ...output,
2781
+ body: await parseErrorBody(output.body, context)
2782
+ };
2783
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2784
+ switch (errorCode) {
2785
+ case "AccessDeniedException":
2786
+ case "com.amazonaws.qconnect#AccessDeniedException":
2787
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2788
+ case "RequestTimeoutException":
2789
+ case "com.amazonaws.qconnect#RequestTimeoutException":
2790
+ throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2791
+ case "ResourceNotFoundException":
2792
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2793
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2794
+ case "ValidationException":
2795
+ case "com.amazonaws.qconnect#ValidationException":
2796
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2797
+ default:
2798
+ const parsedBody = parsedOutput.body;
2799
+ return throwDefaultError({
2800
+ output,
2801
+ parsedBody,
2802
+ errorCode
2803
+ });
2804
+ }
2805
+ }, "de_SearchQuickResponsesCommandError");
2806
+ var de_SearchSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2807
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2808
+ return de_SearchSessionsCommandError(output, context);
2809
+ }
2810
+ const contents = (0, import_smithy_client.map)({
2811
+ $metadata: deserializeMetadata(output)
2812
+ });
2813
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2814
+ const doc = (0, import_smithy_client.take)(data, {
2815
+ nextToken: import_smithy_client.expectString,
2816
+ sessionSummaries: import_smithy_client._json
2817
+ });
2818
+ Object.assign(contents, doc);
2819
+ return contents;
2820
+ }, "de_SearchSessionsCommand");
2821
+ var de_SearchSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2822
+ const parsedOutput = {
2823
+ ...output,
2824
+ body: await parseErrorBody(output.body, context)
2825
+ };
2826
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2827
+ switch (errorCode) {
2828
+ case "AccessDeniedException":
2829
+ case "com.amazonaws.qconnect#AccessDeniedException":
2830
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2831
+ case "ResourceNotFoundException":
2832
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2833
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2834
+ case "ValidationException":
2835
+ case "com.amazonaws.qconnect#ValidationException":
2836
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2837
+ default:
2838
+ const parsedBody = parsedOutput.body;
2839
+ return throwDefaultError({
2840
+ output,
2841
+ parsedBody,
2842
+ errorCode
2843
+ });
2844
+ }
2845
+ }, "de_SearchSessionsCommandError");
2846
+ var de_StartContentUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
2847
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2848
+ return de_StartContentUploadCommandError(output, context);
2849
+ }
2850
+ const contents = (0, import_smithy_client.map)({
2851
+ $metadata: deserializeMetadata(output)
2852
+ });
2853
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2854
+ const doc = (0, import_smithy_client.take)(data, {
2855
+ headersToInclude: import_smithy_client._json,
2856
+ uploadId: import_smithy_client.expectString,
2857
+ url: import_smithy_client.expectString,
2858
+ urlExpiry: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2859
+ });
2860
+ Object.assign(contents, doc);
2861
+ return contents;
2862
+ }, "de_StartContentUploadCommand");
2863
+ var de_StartContentUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
2864
+ const parsedOutput = {
2865
+ ...output,
2866
+ body: await parseErrorBody(output.body, context)
2867
+ };
2868
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2869
+ switch (errorCode) {
2870
+ case "AccessDeniedException":
2871
+ case "com.amazonaws.qconnect#AccessDeniedException":
2872
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2873
+ case "ResourceNotFoundException":
2874
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2875
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2876
+ case "ValidationException":
2877
+ case "com.amazonaws.qconnect#ValidationException":
2878
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2879
+ default:
2880
+ const parsedBody = parsedOutput.body;
2881
+ return throwDefaultError({
2882
+ output,
2883
+ parsedBody,
2884
+ errorCode
2885
+ });
2886
+ }
2887
+ }, "de_StartContentUploadCommandError");
2888
+ var de_StartImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2889
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2890
+ return de_StartImportJobCommandError(output, context);
2891
+ }
2892
+ const contents = (0, import_smithy_client.map)({
2893
+ $metadata: deserializeMetadata(output)
2894
+ });
2895
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2896
+ const doc = (0, import_smithy_client.take)(data, {
2897
+ importJob: (_) => de_ImportJobData(_, context)
2898
+ });
2899
+ Object.assign(contents, doc);
2900
+ return contents;
2901
+ }, "de_StartImportJobCommand");
2902
+ var de_StartImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2903
+ const parsedOutput = {
2904
+ ...output,
2905
+ body: await parseErrorBody(output.body, context)
2906
+ };
2907
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2908
+ switch (errorCode) {
2909
+ case "AccessDeniedException":
2910
+ case "com.amazonaws.qconnect#AccessDeniedException":
2911
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2912
+ case "ConflictException":
2913
+ case "com.amazonaws.qconnect#ConflictException":
2914
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2915
+ case "ResourceNotFoundException":
2916
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2917
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2918
+ case "ServiceQuotaExceededException":
2919
+ case "com.amazonaws.qconnect#ServiceQuotaExceededException":
2920
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2921
+ case "ValidationException":
2922
+ case "com.amazonaws.qconnect#ValidationException":
2923
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2924
+ default:
2925
+ const parsedBody = parsedOutput.body;
2926
+ return throwDefaultError({
2927
+ output,
2928
+ parsedBody,
2929
+ errorCode
2930
+ });
2931
+ }
2932
+ }, "de_StartImportJobCommandError");
2933
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2934
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2935
+ return de_TagResourceCommandError(output, context);
2936
+ }
2937
+ const contents = (0, import_smithy_client.map)({
2938
+ $metadata: deserializeMetadata(output)
2939
+ });
2940
+ await (0, import_smithy_client.collectBody)(output.body, context);
2941
+ return contents;
2942
+ }, "de_TagResourceCommand");
2943
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2944
+ const parsedOutput = {
2945
+ ...output,
2946
+ body: await parseErrorBody(output.body, context)
2947
+ };
2948
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2949
+ switch (errorCode) {
2950
+ case "ResourceNotFoundException":
2951
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2952
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2953
+ case "TooManyTagsException":
2954
+ case "com.amazonaws.qconnect#TooManyTagsException":
2955
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2956
+ default:
2957
+ const parsedBody = parsedOutput.body;
2958
+ return throwDefaultError({
2959
+ output,
2960
+ parsedBody,
2961
+ errorCode
2962
+ });
2963
+ }
2964
+ }, "de_TagResourceCommandError");
2965
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2966
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2967
+ return de_UntagResourceCommandError(output, context);
2968
+ }
2969
+ const contents = (0, import_smithy_client.map)({
2970
+ $metadata: deserializeMetadata(output)
2971
+ });
2972
+ await (0, import_smithy_client.collectBody)(output.body, context);
2973
+ return contents;
2974
+ }, "de_UntagResourceCommand");
2975
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2976
+ const parsedOutput = {
2977
+ ...output,
2978
+ body: await parseErrorBody(output.body, context)
2979
+ };
2980
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2981
+ switch (errorCode) {
2982
+ case "ResourceNotFoundException":
2983
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
2984
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2985
+ default:
2986
+ const parsedBody = parsedOutput.body;
2987
+ return throwDefaultError({
2988
+ output,
2989
+ parsedBody,
2990
+ errorCode
2991
+ });
2992
+ }
2993
+ }, "de_UntagResourceCommandError");
2994
+ var de_UpdateContentCommand = /* @__PURE__ */ __name(async (output, context) => {
2995
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2996
+ return de_UpdateContentCommandError(output, context);
2997
+ }
2998
+ const contents = (0, import_smithy_client.map)({
2999
+ $metadata: deserializeMetadata(output)
3000
+ });
3001
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3002
+ const doc = (0, import_smithy_client.take)(data, {
3003
+ content: (_) => de_ContentData(_, context)
3004
+ });
3005
+ Object.assign(contents, doc);
3006
+ return contents;
3007
+ }, "de_UpdateContentCommand");
3008
+ var de_UpdateContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
3009
+ const parsedOutput = {
3010
+ ...output,
3011
+ body: await parseErrorBody(output.body, context)
3012
+ };
3013
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3014
+ switch (errorCode) {
3015
+ case "AccessDeniedException":
3016
+ case "com.amazonaws.qconnect#AccessDeniedException":
3017
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3018
+ case "PreconditionFailedException":
3019
+ case "com.amazonaws.qconnect#PreconditionFailedException":
3020
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
3021
+ case "ResourceNotFoundException":
3022
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
3023
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3024
+ case "ValidationException":
3025
+ case "com.amazonaws.qconnect#ValidationException":
3026
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3027
+ default:
3028
+ const parsedBody = parsedOutput.body;
3029
+ return throwDefaultError({
3030
+ output,
3031
+ parsedBody,
3032
+ errorCode
3033
+ });
3034
+ }
3035
+ }, "de_UpdateContentCommandError");
3036
+ var de_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (output, context) => {
3037
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3038
+ return de_UpdateKnowledgeBaseTemplateUriCommandError(output, context);
3039
+ }
3040
+ const contents = (0, import_smithy_client.map)({
3041
+ $metadata: deserializeMetadata(output)
3042
+ });
3043
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3044
+ const doc = (0, import_smithy_client.take)(data, {
3045
+ knowledgeBase: (_) => de_KnowledgeBaseData(_, context)
3046
+ });
3047
+ Object.assign(contents, doc);
3048
+ return contents;
3049
+ }, "de_UpdateKnowledgeBaseTemplateUriCommand");
3050
+ var de_UpdateKnowledgeBaseTemplateUriCommandError = /* @__PURE__ */ __name(async (output, context) => {
3051
+ const parsedOutput = {
3052
+ ...output,
3053
+ body: await parseErrorBody(output.body, context)
3054
+ };
3055
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3056
+ switch (errorCode) {
3057
+ case "AccessDeniedException":
3058
+ case "com.amazonaws.qconnect#AccessDeniedException":
3059
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3060
+ case "ResourceNotFoundException":
3061
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
3062
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3063
+ case "ValidationException":
3064
+ case "com.amazonaws.qconnect#ValidationException":
3065
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3066
+ default:
3067
+ const parsedBody = parsedOutput.body;
3068
+ return throwDefaultError({
3069
+ output,
3070
+ parsedBody,
3071
+ errorCode
3072
+ });
3073
+ }
3074
+ }, "de_UpdateKnowledgeBaseTemplateUriCommandError");
3075
+ var de_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
3076
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3077
+ return de_UpdateQuickResponseCommandError(output, context);
3078
+ }
3079
+ const contents = (0, import_smithy_client.map)({
3080
+ $metadata: deserializeMetadata(output)
3081
+ });
3082
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3083
+ const doc = (0, import_smithy_client.take)(data, {
3084
+ quickResponse: (_) => de_QuickResponseData(_, context)
3085
+ });
3086
+ Object.assign(contents, doc);
3087
+ return contents;
3088
+ }, "de_UpdateQuickResponseCommand");
3089
+ var de_UpdateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
3090
+ const parsedOutput = {
3091
+ ...output,
3092
+ body: await parseErrorBody(output.body, context)
3093
+ };
3094
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3095
+ switch (errorCode) {
3096
+ case "AccessDeniedException":
3097
+ case "com.amazonaws.qconnect#AccessDeniedException":
3098
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3099
+ case "ConflictException":
3100
+ case "com.amazonaws.qconnect#ConflictException":
3101
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3102
+ case "PreconditionFailedException":
3103
+ case "com.amazonaws.qconnect#PreconditionFailedException":
3104
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
3105
+ case "ResourceNotFoundException":
3106
+ case "com.amazonaws.qconnect#ResourceNotFoundException":
3107
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3108
+ case "ValidationException":
3109
+ case "com.amazonaws.qconnect#ValidationException":
3110
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3111
+ default:
3112
+ const parsedBody = parsedOutput.body;
3113
+ return throwDefaultError({
3114
+ output,
3115
+ parsedBody,
3116
+ errorCode
3117
+ });
3118
+ }
3119
+ }, "de_UpdateQuickResponseCommandError");
3120
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(QConnectServiceException);
3121
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3122
+ const contents = (0, import_smithy_client.map)({});
3123
+ const data = parsedOutput.body;
3124
+ const doc = (0, import_smithy_client.take)(data, {
3125
+ message: import_smithy_client.expectString
3126
+ });
3127
+ Object.assign(contents, doc);
3128
+ const exception = new AccessDeniedException({
3129
+ $metadata: deserializeMetadata(parsedOutput),
3130
+ ...contents
3131
+ });
3132
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3133
+ }, "de_AccessDeniedExceptionRes");
3134
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3135
+ const contents = (0, import_smithy_client.map)({});
3136
+ const data = parsedOutput.body;
3137
+ const doc = (0, import_smithy_client.take)(data, {
3138
+ message: import_smithy_client.expectString
3139
+ });
3140
+ Object.assign(contents, doc);
3141
+ const exception = new ConflictException({
3142
+ $metadata: deserializeMetadata(parsedOutput),
3143
+ ...contents
3144
+ });
3145
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3146
+ }, "de_ConflictExceptionRes");
3147
+ var de_PreconditionFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3148
+ const contents = (0, import_smithy_client.map)({});
3149
+ const data = parsedOutput.body;
3150
+ const doc = (0, import_smithy_client.take)(data, {
3151
+ message: import_smithy_client.expectString
3152
+ });
3153
+ Object.assign(contents, doc);
3154
+ const exception = new PreconditionFailedException({
3155
+ $metadata: deserializeMetadata(parsedOutput),
3156
+ ...contents
3157
+ });
3158
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3159
+ }, "de_PreconditionFailedExceptionRes");
3160
+ var de_RequestTimeoutExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3161
+ const contents = (0, import_smithy_client.map)({});
3162
+ const data = parsedOutput.body;
3163
+ const doc = (0, import_smithy_client.take)(data, {
3164
+ message: import_smithy_client.expectString
3165
+ });
3166
+ Object.assign(contents, doc);
3167
+ const exception = new RequestTimeoutException({
3168
+ $metadata: deserializeMetadata(parsedOutput),
3169
+ ...contents
3170
+ });
3171
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3172
+ }, "de_RequestTimeoutExceptionRes");
3173
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3174
+ const contents = (0, import_smithy_client.map)({});
3175
+ const data = parsedOutput.body;
3176
+ const doc = (0, import_smithy_client.take)(data, {
3177
+ message: import_smithy_client.expectString,
3178
+ resourceName: import_smithy_client.expectString
3179
+ });
3180
+ Object.assign(contents, doc);
3181
+ const exception = new ResourceNotFoundException({
3182
+ $metadata: deserializeMetadata(parsedOutput),
3183
+ ...contents
3184
+ });
3185
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3186
+ }, "de_ResourceNotFoundExceptionRes");
3187
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3188
+ const contents = (0, import_smithy_client.map)({});
3189
+ const data = parsedOutput.body;
3190
+ const doc = (0, import_smithy_client.take)(data, {
3191
+ message: import_smithy_client.expectString
3192
+ });
3193
+ Object.assign(contents, doc);
3194
+ const exception = new ServiceQuotaExceededException({
3195
+ $metadata: deserializeMetadata(parsedOutput),
3196
+ ...contents
3197
+ });
3198
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3199
+ }, "de_ServiceQuotaExceededExceptionRes");
3200
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3201
+ const contents = (0, import_smithy_client.map)({});
3202
+ const data = parsedOutput.body;
3203
+ const doc = (0, import_smithy_client.take)(data, {
3204
+ message: import_smithy_client.expectString,
3205
+ resourceName: import_smithy_client.expectString
3206
+ });
3207
+ Object.assign(contents, doc);
3208
+ const exception = new TooManyTagsException({
3209
+ $metadata: deserializeMetadata(parsedOutput),
3210
+ ...contents
3211
+ });
3212
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3213
+ }, "de_TooManyTagsExceptionRes");
3214
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3215
+ const contents = (0, import_smithy_client.map)({});
3216
+ const data = parsedOutput.body;
3217
+ const doc = (0, import_smithy_client.take)(data, {
3218
+ message: import_smithy_client.expectString
3219
+ });
3220
+ Object.assign(contents, doc);
3221
+ const exception = new ValidationException({
3222
+ $metadata: deserializeMetadata(parsedOutput),
3223
+ ...contents
3224
+ });
3225
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3226
+ }, "de_ValidationExceptionRes");
3227
+ var de_ContentData = /* @__PURE__ */ __name((output, context) => {
3228
+ return (0, import_smithy_client.take)(output, {
3229
+ contentArn: import_smithy_client.expectString,
3230
+ contentId: import_smithy_client.expectString,
3231
+ contentType: import_smithy_client.expectString,
3232
+ knowledgeBaseArn: import_smithy_client.expectString,
3233
+ knowledgeBaseId: import_smithy_client.expectString,
3234
+ linkOutUri: import_smithy_client.expectString,
3235
+ metadata: import_smithy_client._json,
3236
+ name: import_smithy_client.expectString,
3237
+ revisionId: import_smithy_client.expectString,
3238
+ status: import_smithy_client.expectString,
3239
+ tags: import_smithy_client._json,
3240
+ title: import_smithy_client.expectString,
3241
+ url: import_smithy_client.expectString,
3242
+ urlExpiry: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
3243
+ });
3244
+ }, "de_ContentData");
3245
+ var de_ContentDataDetails = /* @__PURE__ */ __name((output, context) => {
3246
+ return (0, import_smithy_client.take)(output, {
3247
+ rankingData: (_) => de_RankingData(_, context),
3248
+ textData: import_smithy_client._json
3249
+ });
3250
+ }, "de_ContentDataDetails");
3251
+ var de_DataDetails = /* @__PURE__ */ __name((output, context) => {
3252
+ if (output.contentData != null) {
3253
+ return {
3254
+ contentData: de_ContentDataDetails(output.contentData, context)
3255
+ };
3256
+ }
3257
+ if (output.generativeData != null) {
3258
+ return {
3259
+ generativeData: de_GenerativeDataDetails(output.generativeData, context)
3260
+ };
3261
+ }
3262
+ if (output.sourceContentData != null) {
3263
+ return {
3264
+ sourceContentData: de_SourceContentDataDetails(output.sourceContentData, context)
3265
+ };
3266
+ }
3267
+ return { $unknown: Object.entries(output)[0] };
3268
+ }, "de_DataDetails");
3269
+ var de_DataSummary = /* @__PURE__ */ __name((output, context) => {
3270
+ return (0, import_smithy_client.take)(output, {
3271
+ details: (_) => de_DataDetails((0, import_core.awsExpectUnion)(_), context),
3272
+ reference: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_))
3273
+ });
3274
+ }, "de_DataSummary");
3275
+ var de_DataSummaryList = /* @__PURE__ */ __name((output, context) => {
3276
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3277
+ return de_DataSummary(entry, context);
3278
+ });
3279
+ return retVal;
3280
+ }, "de_DataSummaryList");
3281
+ var de_GenerativeDataDetails = /* @__PURE__ */ __name((output, context) => {
3282
+ return (0, import_smithy_client.take)(output, {
3283
+ completion: import_smithy_client.expectString,
3284
+ rankingData: (_) => de_RankingData(_, context),
3285
+ references: (_) => de_DataSummaryList(_, context)
3286
+ });
3287
+ }, "de_GenerativeDataDetails");
3288
+ var de_ImportJobData = /* @__PURE__ */ __name((output, context) => {
3289
+ return (0, import_smithy_client.take)(output, {
3290
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3291
+ externalSourceConfiguration: import_smithy_client._json,
3292
+ failedRecordReport: import_smithy_client.expectString,
3293
+ importJobId: import_smithy_client.expectString,
3294
+ importJobType: import_smithy_client.expectString,
3295
+ knowledgeBaseArn: import_smithy_client.expectString,
3296
+ knowledgeBaseId: import_smithy_client.expectString,
3297
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3298
+ metadata: import_smithy_client._json,
3299
+ status: import_smithy_client.expectString,
3300
+ uploadId: import_smithy_client.expectString,
3301
+ url: import_smithy_client.expectString,
3302
+ urlExpiry: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
3303
+ });
3304
+ }, "de_ImportJobData");
3305
+ var de_ImportJobList = /* @__PURE__ */ __name((output, context) => {
3306
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3307
+ return de_ImportJobSummary(entry, context);
3308
+ });
3309
+ return retVal;
3310
+ }, "de_ImportJobList");
3311
+ var de_ImportJobSummary = /* @__PURE__ */ __name((output, context) => {
3312
+ return (0, import_smithy_client.take)(output, {
3313
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3314
+ externalSourceConfiguration: import_smithy_client._json,
3315
+ importJobId: import_smithy_client.expectString,
3316
+ importJobType: import_smithy_client.expectString,
3317
+ knowledgeBaseArn: import_smithy_client.expectString,
3318
+ knowledgeBaseId: import_smithy_client.expectString,
3319
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3320
+ metadata: import_smithy_client._json,
3321
+ status: import_smithy_client.expectString,
3322
+ uploadId: import_smithy_client.expectString
3323
+ });
3324
+ }, "de_ImportJobSummary");
3325
+ var de_KnowledgeBaseData = /* @__PURE__ */ __name((output, context) => {
3326
+ return (0, import_smithy_client.take)(output, {
3327
+ description: import_smithy_client.expectString,
3328
+ knowledgeBaseArn: import_smithy_client.expectString,
3329
+ knowledgeBaseId: import_smithy_client.expectString,
3330
+ knowledgeBaseType: import_smithy_client.expectString,
3331
+ lastContentModificationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3332
+ name: import_smithy_client.expectString,
3333
+ renderingConfiguration: import_smithy_client._json,
3334
+ serverSideEncryptionConfiguration: import_smithy_client._json,
3335
+ sourceConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
3336
+ status: import_smithy_client.expectString,
3337
+ tags: import_smithy_client._json
3338
+ });
3339
+ }, "de_KnowledgeBaseData");
3340
+ var de_QueryResultsList = /* @__PURE__ */ __name((output, context) => {
3341
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3342
+ return de_ResultData(entry, context);
3343
+ });
3344
+ return retVal;
3345
+ }, "de_QueryResultsList");
3346
+ var de_QuickResponseData = /* @__PURE__ */ __name((output, context) => {
3347
+ return (0, import_smithy_client.take)(output, {
3348
+ channels: import_smithy_client._json,
3349
+ contentType: import_smithy_client.expectString,
3350
+ contents: import_smithy_client._json,
3351
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3352
+ description: import_smithy_client.expectString,
3353
+ groupingConfiguration: import_smithy_client._json,
3354
+ isActive: import_smithy_client.expectBoolean,
3355
+ knowledgeBaseArn: import_smithy_client.expectString,
3356
+ knowledgeBaseId: import_smithy_client.expectString,
3357
+ language: import_smithy_client.expectString,
3358
+ lastModifiedBy: import_smithy_client.expectString,
3359
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3360
+ name: import_smithy_client.expectString,
3361
+ quickResponseArn: import_smithy_client.expectString,
3362
+ quickResponseId: import_smithy_client.expectString,
3363
+ shortcutKey: import_smithy_client.expectString,
3364
+ status: import_smithy_client.expectString,
3365
+ tags: import_smithy_client._json
3366
+ });
3367
+ }, "de_QuickResponseData");
3368
+ var de_QuickResponseSearchResultData = /* @__PURE__ */ __name((output, context) => {
3369
+ return (0, import_smithy_client.take)(output, {
3370
+ attributesInterpolated: import_smithy_client._json,
3371
+ attributesNotInterpolated: import_smithy_client._json,
3372
+ channels: import_smithy_client._json,
3373
+ contentType: import_smithy_client.expectString,
3374
+ contents: import_smithy_client._json,
3375
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3376
+ description: import_smithy_client.expectString,
3377
+ groupingConfiguration: import_smithy_client._json,
3378
+ isActive: import_smithy_client.expectBoolean,
3379
+ knowledgeBaseArn: import_smithy_client.expectString,
3380
+ knowledgeBaseId: import_smithy_client.expectString,
3381
+ language: import_smithy_client.expectString,
3382
+ lastModifiedBy: import_smithy_client.expectString,
3383
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3384
+ name: import_smithy_client.expectString,
3385
+ quickResponseArn: import_smithy_client.expectString,
3386
+ quickResponseId: import_smithy_client.expectString,
3387
+ shortcutKey: import_smithy_client.expectString,
3388
+ status: import_smithy_client.expectString,
3389
+ tags: import_smithy_client._json
3390
+ });
3391
+ }, "de_QuickResponseSearchResultData");
3392
+ var de_QuickResponseSearchResultsList = /* @__PURE__ */ __name((output, context) => {
3393
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3394
+ return de_QuickResponseSearchResultData(entry, context);
3395
+ });
3396
+ return retVal;
3397
+ }, "de_QuickResponseSearchResultsList");
3398
+ var de_QuickResponseSummary = /* @__PURE__ */ __name((output, context) => {
3399
+ return (0, import_smithy_client.take)(output, {
3400
+ channels: import_smithy_client._json,
3401
+ contentType: import_smithy_client.expectString,
3402
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3403
+ description: import_smithy_client.expectString,
3404
+ isActive: import_smithy_client.expectBoolean,
3405
+ knowledgeBaseArn: import_smithy_client.expectString,
3406
+ knowledgeBaseId: import_smithy_client.expectString,
3407
+ lastModifiedBy: import_smithy_client.expectString,
3408
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3409
+ name: import_smithy_client.expectString,
3410
+ quickResponseArn: import_smithy_client.expectString,
3411
+ quickResponseId: import_smithy_client.expectString,
3412
+ status: import_smithy_client.expectString,
3413
+ tags: import_smithy_client._json
3414
+ });
3415
+ }, "de_QuickResponseSummary");
3416
+ var de_QuickResponseSummaryList = /* @__PURE__ */ __name((output, context) => {
3417
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3418
+ return de_QuickResponseSummary(entry, context);
3419
+ });
3420
+ return retVal;
3421
+ }, "de_QuickResponseSummaryList");
3422
+ var de_RankingData = /* @__PURE__ */ __name((output, context) => {
3423
+ return (0, import_smithy_client.take)(output, {
3424
+ relevanceLevel: import_smithy_client.expectString,
3425
+ relevanceScore: import_smithy_client.limitedParseDouble
3426
+ });
3427
+ }, "de_RankingData");
3428
+ var de_RecommendationData = /* @__PURE__ */ __name((output, context) => {
3429
+ return (0, import_smithy_client.take)(output, {
3430
+ data: (_) => de_DataSummary(_, context),
3431
+ document: import_smithy_client._json,
3432
+ recommendationId: import_smithy_client.expectString,
3433
+ relevanceLevel: import_smithy_client.expectString,
3434
+ relevanceScore: import_smithy_client.limitedParseDouble,
3435
+ type: import_smithy_client.expectString
3436
+ });
3437
+ }, "de_RecommendationData");
3438
+ var de_RecommendationList = /* @__PURE__ */ __name((output, context) => {
3439
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3440
+ return de_RecommendationData(entry, context);
3441
+ });
3442
+ return retVal;
3443
+ }, "de_RecommendationList");
3444
+ var de_ResultData = /* @__PURE__ */ __name((output, context) => {
3445
+ return (0, import_smithy_client.take)(output, {
3446
+ data: (_) => de_DataSummary(_, context),
3447
+ document: import_smithy_client._json,
3448
+ relevanceScore: import_smithy_client.limitedParseDouble,
3449
+ resultId: import_smithy_client.expectString,
3450
+ type: import_smithy_client.expectString
3451
+ });
3452
+ }, "de_ResultData");
3453
+ var de_SourceContentDataDetails = /* @__PURE__ */ __name((output, context) => {
3454
+ return (0, import_smithy_client.take)(output, {
3455
+ id: import_smithy_client.expectString,
3456
+ rankingData: (_) => de_RankingData(_, context),
3457
+ textData: import_smithy_client._json,
3458
+ type: import_smithy_client.expectString
3459
+ });
3460
+ }, "de_SourceContentDataDetails");
3461
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
3462
+ httpStatusCode: output.statusCode,
3463
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3464
+ extendedRequestId: output.headers["x-amz-id-2"],
3465
+ cfId: output.headers["x-amz-cf-id"]
3466
+ }), "deserializeMetadata");
3467
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
3468
+ var _mR = "maxResults";
3469
+ var _nT = "nextToken";
3470
+ var _tK = "tagKeys";
3471
+ var _wTS = "waitTimeSeconds";
3472
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3473
+ if (encoded.length) {
3474
+ return JSON.parse(encoded);
3475
+ }
3476
+ return {};
3477
+ }), "parseBody");
3478
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
3479
+ const value = await parseBody(errorBody, context);
3480
+ value.message = value.message ?? value.Message;
3481
+ return value;
3482
+ }, "parseErrorBody");
3483
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
3484
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
3485
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
3486
+ let cleanValue = rawValue;
3487
+ if (typeof cleanValue === "number") {
3488
+ cleanValue = cleanValue.toString();
3489
+ }
3490
+ if (cleanValue.indexOf(",") >= 0) {
3491
+ cleanValue = cleanValue.split(",")[0];
3492
+ }
3493
+ if (cleanValue.indexOf(":") >= 0) {
3494
+ cleanValue = cleanValue.split(":")[0];
3495
+ }
3496
+ if (cleanValue.indexOf("#") >= 0) {
3497
+ cleanValue = cleanValue.split("#")[1];
3498
+ }
3499
+ return cleanValue;
3500
+ }, "sanitizeErrorCode");
3501
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
3502
+ if (headerKey !== void 0) {
3503
+ return sanitizeErrorCode(output.headers[headerKey]);
3504
+ }
3505
+ if (data.code !== void 0) {
3506
+ return sanitizeErrorCode(data.code);
3507
+ }
3508
+ if (data["__type"] !== void 0) {
3509
+ return sanitizeErrorCode(data["__type"]);
3510
+ }
3511
+ }, "loadRestJsonErrorCode");
3512
+
3513
+ // src/commands/CreateAssistantAssociationCommand.ts
3514
+ var _CreateAssistantAssociationCommand = class _CreateAssistantAssociationCommand extends import_smithy_client.Command.classBuilder().ep({
3515
+ ...commonParams
3516
+ }).m(function(Command, cs, config, o) {
3517
+ return [
3518
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3519
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3520
+ ];
3521
+ }).s("WisdomService", "CreateAssistantAssociation", {}).n("QConnectClient", "CreateAssistantAssociationCommand").f(void 0, void 0).ser(se_CreateAssistantAssociationCommand).de(de_CreateAssistantAssociationCommand).build() {
3522
+ };
3523
+ __name(_CreateAssistantAssociationCommand, "CreateAssistantAssociationCommand");
3524
+ var CreateAssistantAssociationCommand = _CreateAssistantAssociationCommand;
3525
+
3526
+ // src/commands/CreateAssistantCommand.ts
3527
+
3528
+
3529
+
3530
+
3531
+ var _CreateAssistantCommand = class _CreateAssistantCommand extends import_smithy_client.Command.classBuilder().ep({
3532
+ ...commonParams
3533
+ }).m(function(Command, cs, config, o) {
3534
+ return [
3535
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3536
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3537
+ ];
3538
+ }).s("WisdomService", "CreateAssistant", {}).n("QConnectClient", "CreateAssistantCommand").f(void 0, void 0).ser(se_CreateAssistantCommand).de(de_CreateAssistantCommand).build() {
3539
+ };
3540
+ __name(_CreateAssistantCommand, "CreateAssistantCommand");
3541
+ var CreateAssistantCommand = _CreateAssistantCommand;
3542
+
3543
+ // src/commands/CreateContentCommand.ts
3544
+
3545
+
3546
+
3547
+
3548
+ var _CreateContentCommand = class _CreateContentCommand extends import_smithy_client.Command.classBuilder().ep({
3549
+ ...commonParams
3550
+ }).m(function(Command, cs, config, o) {
3551
+ return [
3552
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3553
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3554
+ ];
3555
+ }).s("WisdomService", "CreateContent", {}).n("QConnectClient", "CreateContentCommand").f(void 0, CreateContentResponseFilterSensitiveLog).ser(se_CreateContentCommand).de(de_CreateContentCommand).build() {
3556
+ };
3557
+ __name(_CreateContentCommand, "CreateContentCommand");
3558
+ var CreateContentCommand = _CreateContentCommand;
3559
+
3560
+ // src/commands/CreateKnowledgeBaseCommand.ts
3561
+
3562
+
3563
+
3564
+
3565
+ var _CreateKnowledgeBaseCommand = class _CreateKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3566
+ ...commonParams
3567
+ }).m(function(Command, cs, config, o) {
3568
+ return [
3569
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3570
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3571
+ ];
3572
+ }).s("WisdomService", "CreateKnowledgeBase", {}).n("QConnectClient", "CreateKnowledgeBaseCommand").f(void 0, void 0).ser(se_CreateKnowledgeBaseCommand).de(de_CreateKnowledgeBaseCommand).build() {
3573
+ };
3574
+ __name(_CreateKnowledgeBaseCommand, "CreateKnowledgeBaseCommand");
3575
+ var CreateKnowledgeBaseCommand = _CreateKnowledgeBaseCommand;
3576
+
3577
+ // src/commands/CreateQuickResponseCommand.ts
3578
+
3579
+
3580
+
3581
+
3582
+ var _CreateQuickResponseCommand = class _CreateQuickResponseCommand extends import_smithy_client.Command.classBuilder().ep({
3583
+ ...commonParams
3584
+ }).m(function(Command, cs, config, o) {
3585
+ return [
3586
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3587
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3588
+ ];
3589
+ }).s("WisdomService", "CreateQuickResponse", {}).n("QConnectClient", "CreateQuickResponseCommand").f(CreateQuickResponseRequestFilterSensitiveLog, CreateQuickResponseResponseFilterSensitiveLog).ser(se_CreateQuickResponseCommand).de(de_CreateQuickResponseCommand).build() {
3590
+ };
3591
+ __name(_CreateQuickResponseCommand, "CreateQuickResponseCommand");
3592
+ var CreateQuickResponseCommand = _CreateQuickResponseCommand;
3593
+
3594
+ // src/commands/CreateSessionCommand.ts
3595
+
3596
+
3597
+
3598
+
3599
+ var _CreateSessionCommand = class _CreateSessionCommand extends import_smithy_client.Command.classBuilder().ep({
3600
+ ...commonParams
3601
+ }).m(function(Command, cs, config, o) {
3602
+ return [
3603
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3604
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3605
+ ];
3606
+ }).s("WisdomService", "CreateSession", {}).n("QConnectClient", "CreateSessionCommand").f(void 0, void 0).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build() {
3607
+ };
3608
+ __name(_CreateSessionCommand, "CreateSessionCommand");
3609
+ var CreateSessionCommand = _CreateSessionCommand;
3610
+
3611
+ // src/commands/DeleteAssistantAssociationCommand.ts
3612
+
3613
+
3614
+
3615
+
3616
+ var _DeleteAssistantAssociationCommand = class _DeleteAssistantAssociationCommand extends import_smithy_client.Command.classBuilder().ep({
3617
+ ...commonParams
3618
+ }).m(function(Command, cs, config, o) {
3619
+ return [
3620
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3621
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3622
+ ];
3623
+ }).s("WisdomService", "DeleteAssistantAssociation", {}).n("QConnectClient", "DeleteAssistantAssociationCommand").f(void 0, void 0).ser(se_DeleteAssistantAssociationCommand).de(de_DeleteAssistantAssociationCommand).build() {
3624
+ };
3625
+ __name(_DeleteAssistantAssociationCommand, "DeleteAssistantAssociationCommand");
3626
+ var DeleteAssistantAssociationCommand = _DeleteAssistantAssociationCommand;
3627
+
3628
+ // src/commands/DeleteAssistantCommand.ts
3629
+
3630
+
3631
+
3632
+
3633
+ var _DeleteAssistantCommand = class _DeleteAssistantCommand extends import_smithy_client.Command.classBuilder().ep({
3634
+ ...commonParams
3635
+ }).m(function(Command, cs, config, o) {
3636
+ return [
3637
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3638
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3639
+ ];
3640
+ }).s("WisdomService", "DeleteAssistant", {}).n("QConnectClient", "DeleteAssistantCommand").f(void 0, void 0).ser(se_DeleteAssistantCommand).de(de_DeleteAssistantCommand).build() {
3641
+ };
3642
+ __name(_DeleteAssistantCommand, "DeleteAssistantCommand");
3643
+ var DeleteAssistantCommand = _DeleteAssistantCommand;
3644
+
3645
+ // src/commands/DeleteContentCommand.ts
3646
+
3647
+
3648
+
3649
+
3650
+ var _DeleteContentCommand = class _DeleteContentCommand extends import_smithy_client.Command.classBuilder().ep({
3651
+ ...commonParams
3652
+ }).m(function(Command, cs, config, o) {
3653
+ return [
3654
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3655
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3656
+ ];
3657
+ }).s("WisdomService", "DeleteContent", {}).n("QConnectClient", "DeleteContentCommand").f(void 0, void 0).ser(se_DeleteContentCommand).de(de_DeleteContentCommand).build() {
3658
+ };
3659
+ __name(_DeleteContentCommand, "DeleteContentCommand");
3660
+ var DeleteContentCommand = _DeleteContentCommand;
3661
+
3662
+ // src/commands/DeleteImportJobCommand.ts
3663
+
3664
+
3665
+
3666
+
3667
+ var _DeleteImportJobCommand = class _DeleteImportJobCommand extends import_smithy_client.Command.classBuilder().ep({
3668
+ ...commonParams
3669
+ }).m(function(Command, cs, config, o) {
3670
+ return [
3671
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3672
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3673
+ ];
3674
+ }).s("WisdomService", "DeleteImportJob", {}).n("QConnectClient", "DeleteImportJobCommand").f(void 0, void 0).ser(se_DeleteImportJobCommand).de(de_DeleteImportJobCommand).build() {
3675
+ };
3676
+ __name(_DeleteImportJobCommand, "DeleteImportJobCommand");
3677
+ var DeleteImportJobCommand = _DeleteImportJobCommand;
3678
+
3679
+ // src/commands/DeleteKnowledgeBaseCommand.ts
3680
+
3681
+
3682
+
3683
+
3684
+ var _DeleteKnowledgeBaseCommand = class _DeleteKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3685
+ ...commonParams
3686
+ }).m(function(Command, cs, config, o) {
3687
+ return [
3688
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3689
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3690
+ ];
3691
+ }).s("WisdomService", "DeleteKnowledgeBase", {}).n("QConnectClient", "DeleteKnowledgeBaseCommand").f(void 0, void 0).ser(se_DeleteKnowledgeBaseCommand).de(de_DeleteKnowledgeBaseCommand).build() {
3692
+ };
3693
+ __name(_DeleteKnowledgeBaseCommand, "DeleteKnowledgeBaseCommand");
3694
+ var DeleteKnowledgeBaseCommand = _DeleteKnowledgeBaseCommand;
3695
+
3696
+ // src/commands/DeleteQuickResponseCommand.ts
3697
+
3698
+
3699
+
3700
+
3701
+ var _DeleteQuickResponseCommand = class _DeleteQuickResponseCommand extends import_smithy_client.Command.classBuilder().ep({
3702
+ ...commonParams
3703
+ }).m(function(Command, cs, config, o) {
3704
+ return [
3705
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3706
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3707
+ ];
3708
+ }).s("WisdomService", "DeleteQuickResponse", {}).n("QConnectClient", "DeleteQuickResponseCommand").f(void 0, void 0).ser(se_DeleteQuickResponseCommand).de(de_DeleteQuickResponseCommand).build() {
3709
+ };
3710
+ __name(_DeleteQuickResponseCommand, "DeleteQuickResponseCommand");
3711
+ var DeleteQuickResponseCommand = _DeleteQuickResponseCommand;
3712
+
3713
+ // src/commands/GetAssistantAssociationCommand.ts
3714
+
3715
+
3716
+
3717
+
3718
+ var _GetAssistantAssociationCommand = class _GetAssistantAssociationCommand extends import_smithy_client.Command.classBuilder().ep({
3719
+ ...commonParams
3720
+ }).m(function(Command, cs, config, o) {
3721
+ return [
3722
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3723
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3724
+ ];
3725
+ }).s("WisdomService", "GetAssistantAssociation", {}).n("QConnectClient", "GetAssistantAssociationCommand").f(void 0, void 0).ser(se_GetAssistantAssociationCommand).de(de_GetAssistantAssociationCommand).build() {
3726
+ };
3727
+ __name(_GetAssistantAssociationCommand, "GetAssistantAssociationCommand");
3728
+ var GetAssistantAssociationCommand = _GetAssistantAssociationCommand;
3729
+
3730
+ // src/commands/GetAssistantCommand.ts
3731
+
3732
+
3733
+
3734
+
3735
+ var _GetAssistantCommand = class _GetAssistantCommand extends import_smithy_client.Command.classBuilder().ep({
3736
+ ...commonParams
3737
+ }).m(function(Command, cs, config, o) {
3738
+ return [
3739
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3740
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3741
+ ];
3742
+ }).s("WisdomService", "GetAssistant", {}).n("QConnectClient", "GetAssistantCommand").f(void 0, void 0).ser(se_GetAssistantCommand).de(de_GetAssistantCommand).build() {
3743
+ };
3744
+ __name(_GetAssistantCommand, "GetAssistantCommand");
3745
+ var GetAssistantCommand = _GetAssistantCommand;
3746
+
3747
+ // src/commands/GetContentCommand.ts
3748
+
3749
+
3750
+
3751
+
3752
+ var _GetContentCommand = class _GetContentCommand extends import_smithy_client.Command.classBuilder().ep({
3753
+ ...commonParams
3754
+ }).m(function(Command, cs, config, o) {
3755
+ return [
3756
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3757
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3758
+ ];
3759
+ }).s("WisdomService", "GetContent", {}).n("QConnectClient", "GetContentCommand").f(void 0, GetContentResponseFilterSensitiveLog).ser(se_GetContentCommand).de(de_GetContentCommand).build() {
3760
+ };
3761
+ __name(_GetContentCommand, "GetContentCommand");
3762
+ var GetContentCommand = _GetContentCommand;
3763
+
3764
+ // src/commands/GetContentSummaryCommand.ts
3765
+
3766
+
3767
+
3768
+
3769
+ var _GetContentSummaryCommand = class _GetContentSummaryCommand extends import_smithy_client.Command.classBuilder().ep({
3770
+ ...commonParams
3771
+ }).m(function(Command, cs, config, o) {
3772
+ return [
3773
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3774
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3775
+ ];
3776
+ }).s("WisdomService", "GetContentSummary", {}).n("QConnectClient", "GetContentSummaryCommand").f(void 0, void 0).ser(se_GetContentSummaryCommand).de(de_GetContentSummaryCommand).build() {
3777
+ };
3778
+ __name(_GetContentSummaryCommand, "GetContentSummaryCommand");
3779
+ var GetContentSummaryCommand = _GetContentSummaryCommand;
3780
+
3781
+ // src/commands/GetImportJobCommand.ts
3782
+
3783
+
3784
+
3785
+
3786
+ var _GetImportJobCommand = class _GetImportJobCommand extends import_smithy_client.Command.classBuilder().ep({
3787
+ ...commonParams
3788
+ }).m(function(Command, cs, config, o) {
3789
+ return [
3790
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3791
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3792
+ ];
3793
+ }).s("WisdomService", "GetImportJob", {}).n("QConnectClient", "GetImportJobCommand").f(void 0, GetImportJobResponseFilterSensitiveLog).ser(se_GetImportJobCommand).de(de_GetImportJobCommand).build() {
3794
+ };
3795
+ __name(_GetImportJobCommand, "GetImportJobCommand");
3796
+ var GetImportJobCommand = _GetImportJobCommand;
3797
+
3798
+ // src/commands/GetKnowledgeBaseCommand.ts
3799
+
3800
+
3801
+
3802
+
3803
+ var _GetKnowledgeBaseCommand = class _GetKnowledgeBaseCommand extends import_smithy_client.Command.classBuilder().ep({
3804
+ ...commonParams
3805
+ }).m(function(Command, cs, config, o) {
3806
+ return [
3807
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3808
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3809
+ ];
3810
+ }).s("WisdomService", "GetKnowledgeBase", {}).n("QConnectClient", "GetKnowledgeBaseCommand").f(void 0, void 0).ser(se_GetKnowledgeBaseCommand).de(de_GetKnowledgeBaseCommand).build() {
3811
+ };
3812
+ __name(_GetKnowledgeBaseCommand, "GetKnowledgeBaseCommand");
3813
+ var GetKnowledgeBaseCommand = _GetKnowledgeBaseCommand;
3814
+
3815
+ // src/commands/GetQuickResponseCommand.ts
3816
+
3817
+
3818
+
3819
+
3820
+ var _GetQuickResponseCommand = class _GetQuickResponseCommand extends import_smithy_client.Command.classBuilder().ep({
3821
+ ...commonParams
3822
+ }).m(function(Command, cs, config, o) {
3823
+ return [
3824
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3825
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3826
+ ];
3827
+ }).s("WisdomService", "GetQuickResponse", {}).n("QConnectClient", "GetQuickResponseCommand").f(void 0, GetQuickResponseResponseFilterSensitiveLog).ser(se_GetQuickResponseCommand).de(de_GetQuickResponseCommand).build() {
3828
+ };
3829
+ __name(_GetQuickResponseCommand, "GetQuickResponseCommand");
3830
+ var GetQuickResponseCommand = _GetQuickResponseCommand;
3831
+
3832
+ // src/commands/GetRecommendationsCommand.ts
3833
+
3834
+
3835
+
3836
+
3837
+ var _GetRecommendationsCommand = class _GetRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
3838
+ ...commonParams
3839
+ }).m(function(Command, cs, config, o) {
3840
+ return [
3841
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3842
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3843
+ ];
3844
+ }).s("WisdomService", "GetRecommendations", {}).n("QConnectClient", "GetRecommendationsCommand").f(void 0, GetRecommendationsResponseFilterSensitiveLog).ser(se_GetRecommendationsCommand).de(de_GetRecommendationsCommand).build() {
3845
+ };
3846
+ __name(_GetRecommendationsCommand, "GetRecommendationsCommand");
3847
+ var GetRecommendationsCommand = _GetRecommendationsCommand;
3848
+
3849
+ // src/commands/GetSessionCommand.ts
3850
+
3851
+
3852
+
3853
+
3854
+ var _GetSessionCommand = class _GetSessionCommand extends import_smithy_client.Command.classBuilder().ep({
3855
+ ...commonParams
3856
+ }).m(function(Command, cs, config, o) {
3857
+ return [
3858
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3859
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3860
+ ];
3861
+ }).s("WisdomService", "GetSession", {}).n("QConnectClient", "GetSessionCommand").f(void 0, void 0).ser(se_GetSessionCommand).de(de_GetSessionCommand).build() {
3862
+ };
3863
+ __name(_GetSessionCommand, "GetSessionCommand");
3864
+ var GetSessionCommand = _GetSessionCommand;
3865
+
3866
+ // src/commands/ListAssistantAssociationsCommand.ts
3867
+
3868
+
3869
+
3870
+
3871
+ var _ListAssistantAssociationsCommand = class _ListAssistantAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
3872
+ ...commonParams
3873
+ }).m(function(Command, cs, config, o) {
3874
+ return [
3875
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3876
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3877
+ ];
3878
+ }).s("WisdomService", "ListAssistantAssociations", {}).n("QConnectClient", "ListAssistantAssociationsCommand").f(void 0, void 0).ser(se_ListAssistantAssociationsCommand).de(de_ListAssistantAssociationsCommand).build() {
3879
+ };
3880
+ __name(_ListAssistantAssociationsCommand, "ListAssistantAssociationsCommand");
3881
+ var ListAssistantAssociationsCommand = _ListAssistantAssociationsCommand;
3882
+
3883
+ // src/commands/ListAssistantsCommand.ts
3884
+
3885
+
3886
+
3887
+
3888
+ var _ListAssistantsCommand = class _ListAssistantsCommand extends import_smithy_client.Command.classBuilder().ep({
3889
+ ...commonParams
3890
+ }).m(function(Command, cs, config, o) {
3891
+ return [
3892
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3893
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3894
+ ];
3895
+ }).s("WisdomService", "ListAssistants", {}).n("QConnectClient", "ListAssistantsCommand").f(void 0, void 0).ser(se_ListAssistantsCommand).de(de_ListAssistantsCommand).build() {
3896
+ };
3897
+ __name(_ListAssistantsCommand, "ListAssistantsCommand");
3898
+ var ListAssistantsCommand = _ListAssistantsCommand;
3899
+
3900
+ // src/commands/ListContentsCommand.ts
3901
+
3902
+
3903
+
3904
+
3905
+ var _ListContentsCommand = class _ListContentsCommand extends import_smithy_client.Command.classBuilder().ep({
3906
+ ...commonParams
3907
+ }).m(function(Command, cs, config, o) {
3908
+ return [
3909
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3910
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3911
+ ];
3912
+ }).s("WisdomService", "ListContents", {}).n("QConnectClient", "ListContentsCommand").f(void 0, void 0).ser(se_ListContentsCommand).de(de_ListContentsCommand).build() {
3913
+ };
3914
+ __name(_ListContentsCommand, "ListContentsCommand");
3915
+ var ListContentsCommand = _ListContentsCommand;
3916
+
3917
+ // src/commands/ListImportJobsCommand.ts
3918
+
3919
+
3920
+
3921
+
3922
+ var _ListImportJobsCommand = class _ListImportJobsCommand extends import_smithy_client.Command.classBuilder().ep({
3923
+ ...commonParams
3924
+ }).m(function(Command, cs, config, o) {
3925
+ return [
3926
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3927
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3928
+ ];
3929
+ }).s("WisdomService", "ListImportJobs", {}).n("QConnectClient", "ListImportJobsCommand").f(void 0, void 0).ser(se_ListImportJobsCommand).de(de_ListImportJobsCommand).build() {
3930
+ };
3931
+ __name(_ListImportJobsCommand, "ListImportJobsCommand");
3932
+ var ListImportJobsCommand = _ListImportJobsCommand;
3933
+
3934
+ // src/commands/ListKnowledgeBasesCommand.ts
3935
+
3936
+
3937
+
3938
+
3939
+ var _ListKnowledgeBasesCommand = class _ListKnowledgeBasesCommand extends import_smithy_client.Command.classBuilder().ep({
3940
+ ...commonParams
3941
+ }).m(function(Command, cs, config, o) {
3942
+ return [
3943
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3944
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3945
+ ];
3946
+ }).s("WisdomService", "ListKnowledgeBases", {}).n("QConnectClient", "ListKnowledgeBasesCommand").f(void 0, void 0).ser(se_ListKnowledgeBasesCommand).de(de_ListKnowledgeBasesCommand).build() {
3947
+ };
3948
+ __name(_ListKnowledgeBasesCommand, "ListKnowledgeBasesCommand");
3949
+ var ListKnowledgeBasesCommand = _ListKnowledgeBasesCommand;
3950
+
3951
+ // src/commands/ListQuickResponsesCommand.ts
3952
+
3953
+
3954
+
3955
+
3956
+ var _ListQuickResponsesCommand = class _ListQuickResponsesCommand extends import_smithy_client.Command.classBuilder().ep({
3957
+ ...commonParams
3958
+ }).m(function(Command, cs, config, o) {
3959
+ return [
3960
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3961
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3962
+ ];
3963
+ }).s("WisdomService", "ListQuickResponses", {}).n("QConnectClient", "ListQuickResponsesCommand").f(void 0, ListQuickResponsesResponseFilterSensitiveLog).ser(se_ListQuickResponsesCommand).de(de_ListQuickResponsesCommand).build() {
3964
+ };
3965
+ __name(_ListQuickResponsesCommand, "ListQuickResponsesCommand");
3966
+ var ListQuickResponsesCommand = _ListQuickResponsesCommand;
3967
+
3968
+ // src/commands/ListTagsForResourceCommand.ts
3969
+
3970
+
3971
+
3972
+
3973
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3974
+ ...commonParams
3975
+ }).m(function(Command, cs, config, o) {
3976
+ return [
3977
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3978
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3979
+ ];
3980
+ }).s("WisdomService", "ListTagsForResource", {}).n("QConnectClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
3981
+ };
3982
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
3983
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
3984
+
3985
+ // src/commands/NotifyRecommendationsReceivedCommand.ts
3986
+
3987
+
3988
+
3989
+
3990
+ var _NotifyRecommendationsReceivedCommand = class _NotifyRecommendationsReceivedCommand extends import_smithy_client.Command.classBuilder().ep({
3991
+ ...commonParams
3992
+ }).m(function(Command, cs, config, o) {
3993
+ return [
3994
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3995
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3996
+ ];
3997
+ }).s("WisdomService", "NotifyRecommendationsReceived", {}).n("QConnectClient", "NotifyRecommendationsReceivedCommand").f(void 0, void 0).ser(se_NotifyRecommendationsReceivedCommand).de(de_NotifyRecommendationsReceivedCommand).build() {
3998
+ };
3999
+ __name(_NotifyRecommendationsReceivedCommand, "NotifyRecommendationsReceivedCommand");
4000
+ var NotifyRecommendationsReceivedCommand = _NotifyRecommendationsReceivedCommand;
4001
+
4002
+ // src/commands/PutFeedbackCommand.ts
4003
+
4004
+
4005
+
4006
+
4007
+ var _PutFeedbackCommand = class _PutFeedbackCommand extends import_smithy_client.Command.classBuilder().ep({
4008
+ ...commonParams
4009
+ }).m(function(Command, cs, config, o) {
4010
+ return [
4011
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4012
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4013
+ ];
4014
+ }).s("WisdomService", "PutFeedback", {}).n("QConnectClient", "PutFeedbackCommand").f(void 0, void 0).ser(se_PutFeedbackCommand).de(de_PutFeedbackCommand).build() {
4015
+ };
4016
+ __name(_PutFeedbackCommand, "PutFeedbackCommand");
4017
+ var PutFeedbackCommand = _PutFeedbackCommand;
4018
+
4019
+ // src/commands/QueryAssistantCommand.ts
4020
+
4021
+
4022
+
4023
+
4024
+ var _QueryAssistantCommand = class _QueryAssistantCommand extends import_smithy_client.Command.classBuilder().ep({
4025
+ ...commonParams
4026
+ }).m(function(Command, cs, config, o) {
4027
+ return [
4028
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4029
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4030
+ ];
4031
+ }).s("WisdomService", "QueryAssistant", {}).n("QConnectClient", "QueryAssistantCommand").f(QueryAssistantRequestFilterSensitiveLog, QueryAssistantResponseFilterSensitiveLog).ser(se_QueryAssistantCommand).de(de_QueryAssistantCommand).build() {
4032
+ };
4033
+ __name(_QueryAssistantCommand, "QueryAssistantCommand");
4034
+ var QueryAssistantCommand = _QueryAssistantCommand;
4035
+
4036
+ // src/commands/RemoveKnowledgeBaseTemplateUriCommand.ts
4037
+
4038
+
4039
+
4040
+
4041
+ var _RemoveKnowledgeBaseTemplateUriCommand = class _RemoveKnowledgeBaseTemplateUriCommand extends import_smithy_client.Command.classBuilder().ep({
4042
+ ...commonParams
4043
+ }).m(function(Command, cs, config, o) {
4044
+ return [
4045
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4046
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4047
+ ];
4048
+ }).s("WisdomService", "RemoveKnowledgeBaseTemplateUri", {}).n("QConnectClient", "RemoveKnowledgeBaseTemplateUriCommand").f(void 0, void 0).ser(se_RemoveKnowledgeBaseTemplateUriCommand).de(de_RemoveKnowledgeBaseTemplateUriCommand).build() {
4049
+ };
4050
+ __name(_RemoveKnowledgeBaseTemplateUriCommand, "RemoveKnowledgeBaseTemplateUriCommand");
4051
+ var RemoveKnowledgeBaseTemplateUriCommand = _RemoveKnowledgeBaseTemplateUriCommand;
4052
+
4053
+ // src/commands/SearchContentCommand.ts
4054
+
4055
+
4056
+
4057
+
4058
+ var _SearchContentCommand = class _SearchContentCommand extends import_smithy_client.Command.classBuilder().ep({
4059
+ ...commonParams
4060
+ }).m(function(Command, cs, config, o) {
4061
+ return [
4062
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4063
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4064
+ ];
4065
+ }).s("WisdomService", "SearchContent", {}).n("QConnectClient", "SearchContentCommand").f(void 0, void 0).ser(se_SearchContentCommand).de(de_SearchContentCommand).build() {
4066
+ };
4067
+ __name(_SearchContentCommand, "SearchContentCommand");
4068
+ var SearchContentCommand = _SearchContentCommand;
4069
+
4070
+ // src/commands/SearchQuickResponsesCommand.ts
4071
+
4072
+
4073
+
4074
+
4075
+ var _SearchQuickResponsesCommand = class _SearchQuickResponsesCommand extends import_smithy_client.Command.classBuilder().ep({
4076
+ ...commonParams
4077
+ }).m(function(Command, cs, config, o) {
4078
+ return [
4079
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4080
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4081
+ ];
4082
+ }).s("WisdomService", "SearchQuickResponses", {}).n("QConnectClient", "SearchQuickResponsesCommand").f(SearchQuickResponsesRequestFilterSensitiveLog, SearchQuickResponsesResponseFilterSensitiveLog).ser(se_SearchQuickResponsesCommand).de(de_SearchQuickResponsesCommand).build() {
4083
+ };
4084
+ __name(_SearchQuickResponsesCommand, "SearchQuickResponsesCommand");
4085
+ var SearchQuickResponsesCommand = _SearchQuickResponsesCommand;
4086
+
4087
+ // src/commands/SearchSessionsCommand.ts
4088
+
4089
+
4090
+
4091
+
4092
+ var _SearchSessionsCommand = class _SearchSessionsCommand extends import_smithy_client.Command.classBuilder().ep({
4093
+ ...commonParams
4094
+ }).m(function(Command, cs, config, o) {
4095
+ return [
4096
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4097
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4098
+ ];
4099
+ }).s("WisdomService", "SearchSessions", {}).n("QConnectClient", "SearchSessionsCommand").f(void 0, void 0).ser(se_SearchSessionsCommand).de(de_SearchSessionsCommand).build() {
4100
+ };
4101
+ __name(_SearchSessionsCommand, "SearchSessionsCommand");
4102
+ var SearchSessionsCommand = _SearchSessionsCommand;
4103
+
4104
+ // src/commands/StartContentUploadCommand.ts
4105
+
4106
+
4107
+
4108
+
4109
+ var _StartContentUploadCommand = class _StartContentUploadCommand extends import_smithy_client.Command.classBuilder().ep({
4110
+ ...commonParams
4111
+ }).m(function(Command, cs, config, o) {
4112
+ return [
4113
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4114
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4115
+ ];
4116
+ }).s("WisdomService", "StartContentUpload", {}).n("QConnectClient", "StartContentUploadCommand").f(void 0, StartContentUploadResponseFilterSensitiveLog).ser(se_StartContentUploadCommand).de(de_StartContentUploadCommand).build() {
4117
+ };
4118
+ __name(_StartContentUploadCommand, "StartContentUploadCommand");
4119
+ var StartContentUploadCommand = _StartContentUploadCommand;
4120
+
4121
+ // src/commands/StartImportJobCommand.ts
4122
+
4123
+
4124
+
4125
+
4126
+ var _StartImportJobCommand = class _StartImportJobCommand extends import_smithy_client.Command.classBuilder().ep({
4127
+ ...commonParams
4128
+ }).m(function(Command, cs, config, o) {
4129
+ return [
4130
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4131
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4132
+ ];
4133
+ }).s("WisdomService", "StartImportJob", {}).n("QConnectClient", "StartImportJobCommand").f(void 0, StartImportJobResponseFilterSensitiveLog).ser(se_StartImportJobCommand).de(de_StartImportJobCommand).build() {
4134
+ };
4135
+ __name(_StartImportJobCommand, "StartImportJobCommand");
4136
+ var StartImportJobCommand = _StartImportJobCommand;
4137
+
4138
+ // src/commands/TagResourceCommand.ts
4139
+
4140
+
4141
+
4142
+
4143
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4144
+ ...commonParams
4145
+ }).m(function(Command, cs, config, o) {
4146
+ return [
4147
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4148
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4149
+ ];
4150
+ }).s("WisdomService", "TagResource", {}).n("QConnectClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
4151
+ };
4152
+ __name(_TagResourceCommand, "TagResourceCommand");
4153
+ var TagResourceCommand = _TagResourceCommand;
4154
+
4155
+ // src/commands/UntagResourceCommand.ts
4156
+
4157
+
4158
+
4159
+
4160
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4161
+ ...commonParams
4162
+ }).m(function(Command, cs, config, o) {
4163
+ return [
4164
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4165
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4166
+ ];
4167
+ }).s("WisdomService", "UntagResource", {}).n("QConnectClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
4168
+ };
4169
+ __name(_UntagResourceCommand, "UntagResourceCommand");
4170
+ var UntagResourceCommand = _UntagResourceCommand;
4171
+
4172
+ // src/commands/UpdateContentCommand.ts
4173
+
4174
+
4175
+
4176
+
4177
+ var _UpdateContentCommand = class _UpdateContentCommand extends import_smithy_client.Command.classBuilder().ep({
4178
+ ...commonParams
4179
+ }).m(function(Command, cs, config, o) {
4180
+ return [
4181
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4182
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4183
+ ];
4184
+ }).s("WisdomService", "UpdateContent", {}).n("QConnectClient", "UpdateContentCommand").f(void 0, UpdateContentResponseFilterSensitiveLog).ser(se_UpdateContentCommand).de(de_UpdateContentCommand).build() {
4185
+ };
4186
+ __name(_UpdateContentCommand, "UpdateContentCommand");
4187
+ var UpdateContentCommand = _UpdateContentCommand;
4188
+
4189
+ // src/commands/UpdateKnowledgeBaseTemplateUriCommand.ts
4190
+
4191
+
4192
+
4193
+
4194
+ var _UpdateKnowledgeBaseTemplateUriCommand = class _UpdateKnowledgeBaseTemplateUriCommand extends import_smithy_client.Command.classBuilder().ep({
4195
+ ...commonParams
4196
+ }).m(function(Command, cs, config, o) {
4197
+ return [
4198
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4199
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4200
+ ];
4201
+ }).s("WisdomService", "UpdateKnowledgeBaseTemplateUri", {}).n("QConnectClient", "UpdateKnowledgeBaseTemplateUriCommand").f(void 0, void 0).ser(se_UpdateKnowledgeBaseTemplateUriCommand).de(de_UpdateKnowledgeBaseTemplateUriCommand).build() {
4202
+ };
4203
+ __name(_UpdateKnowledgeBaseTemplateUriCommand, "UpdateKnowledgeBaseTemplateUriCommand");
4204
+ var UpdateKnowledgeBaseTemplateUriCommand = _UpdateKnowledgeBaseTemplateUriCommand;
4205
+
4206
+ // src/commands/UpdateQuickResponseCommand.ts
4207
+
4208
+
4209
+
4210
+
4211
+ var _UpdateQuickResponseCommand = class _UpdateQuickResponseCommand extends import_smithy_client.Command.classBuilder().ep({
4212
+ ...commonParams
4213
+ }).m(function(Command, cs, config, o) {
4214
+ return [
4215
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4216
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4217
+ ];
4218
+ }).s("WisdomService", "UpdateQuickResponse", {}).n("QConnectClient", "UpdateQuickResponseCommand").f(UpdateQuickResponseRequestFilterSensitiveLog, UpdateQuickResponseResponseFilterSensitiveLog).ser(se_UpdateQuickResponseCommand).de(de_UpdateQuickResponseCommand).build() {
4219
+ };
4220
+ __name(_UpdateQuickResponseCommand, "UpdateQuickResponseCommand");
4221
+ var UpdateQuickResponseCommand = _UpdateQuickResponseCommand;
4222
+
4223
+ // src/QConnect.ts
4224
+ var commands = {
4225
+ CreateAssistantCommand,
4226
+ CreateAssistantAssociationCommand,
4227
+ CreateContentCommand,
4228
+ CreateKnowledgeBaseCommand,
4229
+ CreateQuickResponseCommand,
4230
+ CreateSessionCommand,
4231
+ DeleteAssistantCommand,
4232
+ DeleteAssistantAssociationCommand,
4233
+ DeleteContentCommand,
4234
+ DeleteImportJobCommand,
4235
+ DeleteKnowledgeBaseCommand,
4236
+ DeleteQuickResponseCommand,
4237
+ GetAssistantCommand,
4238
+ GetAssistantAssociationCommand,
4239
+ GetContentCommand,
4240
+ GetContentSummaryCommand,
4241
+ GetImportJobCommand,
4242
+ GetKnowledgeBaseCommand,
4243
+ GetQuickResponseCommand,
4244
+ GetRecommendationsCommand,
4245
+ GetSessionCommand,
4246
+ ListAssistantAssociationsCommand,
4247
+ ListAssistantsCommand,
4248
+ ListContentsCommand,
4249
+ ListImportJobsCommand,
4250
+ ListKnowledgeBasesCommand,
4251
+ ListQuickResponsesCommand,
4252
+ ListTagsForResourceCommand,
4253
+ NotifyRecommendationsReceivedCommand,
4254
+ PutFeedbackCommand,
4255
+ QueryAssistantCommand,
4256
+ RemoveKnowledgeBaseTemplateUriCommand,
4257
+ SearchContentCommand,
4258
+ SearchQuickResponsesCommand,
4259
+ SearchSessionsCommand,
4260
+ StartContentUploadCommand,
4261
+ StartImportJobCommand,
4262
+ TagResourceCommand,
4263
+ UntagResourceCommand,
4264
+ UpdateContentCommand,
4265
+ UpdateKnowledgeBaseTemplateUriCommand,
4266
+ UpdateQuickResponseCommand
4267
+ };
4268
+ var _QConnect = class _QConnect extends QConnectClient {
4269
+ };
4270
+ __name(_QConnect, "QConnect");
4271
+ var QConnect = _QConnect;
4272
+ (0, import_smithy_client.createAggregatedClient)(commands, QConnect);
4273
+
4274
+ // src/pagination/ListAssistantAssociationsPaginator.ts
4275
+ var import_core3 = require("@smithy/core");
4276
+ var paginateListAssistantAssociations = (0, import_core3.createPaginator)(QConnectClient, ListAssistantAssociationsCommand, "nextToken", "nextToken", "maxResults");
4277
+
4278
+ // src/pagination/ListAssistantsPaginator.ts
4279
+ var import_core4 = require("@smithy/core");
4280
+ var paginateListAssistants = (0, import_core4.createPaginator)(QConnectClient, ListAssistantsCommand, "nextToken", "nextToken", "maxResults");
4281
+
4282
+ // src/pagination/ListContentsPaginator.ts
4283
+ var import_core5 = require("@smithy/core");
4284
+ var paginateListContents = (0, import_core5.createPaginator)(QConnectClient, ListContentsCommand, "nextToken", "nextToken", "maxResults");
4285
+
4286
+ // src/pagination/ListImportJobsPaginator.ts
4287
+ var import_core6 = require("@smithy/core");
4288
+ var paginateListImportJobs = (0, import_core6.createPaginator)(QConnectClient, ListImportJobsCommand, "nextToken", "nextToken", "maxResults");
4289
+
4290
+ // src/pagination/ListKnowledgeBasesPaginator.ts
4291
+ var import_core7 = require("@smithy/core");
4292
+ var paginateListKnowledgeBases = (0, import_core7.createPaginator)(QConnectClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
4293
+
4294
+ // src/pagination/ListQuickResponsesPaginator.ts
4295
+ var import_core8 = require("@smithy/core");
4296
+ var paginateListQuickResponses = (0, import_core8.createPaginator)(QConnectClient, ListQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
4297
+
4298
+ // src/pagination/QueryAssistantPaginator.ts
4299
+ var import_core9 = require("@smithy/core");
4300
+ var paginateQueryAssistant = (0, import_core9.createPaginator)(QConnectClient, QueryAssistantCommand, "nextToken", "nextToken", "maxResults");
4301
+
4302
+ // src/pagination/SearchContentPaginator.ts
4303
+ var import_core10 = require("@smithy/core");
4304
+ var paginateSearchContent = (0, import_core10.createPaginator)(QConnectClient, SearchContentCommand, "nextToken", "nextToken", "maxResults");
4305
+
4306
+ // src/pagination/SearchQuickResponsesPaginator.ts
4307
+ var import_core11 = require("@smithy/core");
4308
+ var paginateSearchQuickResponses = (0, import_core11.createPaginator)(QConnectClient, SearchQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
4309
+
4310
+ // src/pagination/SearchSessionsPaginator.ts
4311
+ var import_core12 = require("@smithy/core");
4312
+ var paginateSearchSessions = (0, import_core12.createPaginator)(QConnectClient, SearchSessionsCommand, "nextToken", "nextToken", "maxResults");
4313
+
4314
+ // src/index.ts
4315
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
4316
+ // Annotate the CommonJS export names for ESM import in node:
4317
+ 0 && (module.exports = {
4318
+ AccessDeniedException,
4319
+ AssistantAssociationInputData,
4320
+ AssistantAssociationOutputData,
4321
+ AssistantCapabilityType,
4322
+ AssistantStatus,
4323
+ AssistantType,
4324
+ AssociationType,
4325
+ Configuration,
4326
+ ConflictException,
4327
+ ContentDataDetailsFilterSensitiveLog,
4328
+ ContentDataFilterSensitiveLog,
4329
+ ContentFeedbackData,
4330
+ ContentStatus,
4331
+ CreateAssistantAssociationCommand,
4332
+ CreateAssistantCommand,
4333
+ CreateContentCommand,
4334
+ CreateContentResponseFilterSensitiveLog,
4335
+ CreateKnowledgeBaseCommand,
4336
+ CreateQuickResponseCommand,
4337
+ CreateQuickResponseRequestFilterSensitiveLog,
4338
+ CreateQuickResponseResponseFilterSensitiveLog,
4339
+ CreateSessionCommand,
4340
+ DataDetails,
4341
+ DataDetailsFilterSensitiveLog,
4342
+ DataReference,
4343
+ DataSummaryFilterSensitiveLog,
4344
+ DeleteAssistantAssociationCommand,
4345
+ DeleteAssistantCommand,
4346
+ DeleteContentCommand,
4347
+ DeleteImportJobCommand,
4348
+ DeleteKnowledgeBaseCommand,
4349
+ DeleteQuickResponseCommand,
4350
+ DocumentFilterSensitiveLog,
4351
+ DocumentTextFilterSensitiveLog,
4352
+ ExternalSource,
4353
+ FilterField,
4354
+ FilterOperator,
4355
+ GenerativeDataDetailsFilterSensitiveLog,
4356
+ GetAssistantAssociationCommand,
4357
+ GetAssistantCommand,
4358
+ GetContentCommand,
4359
+ GetContentResponseFilterSensitiveLog,
4360
+ GetContentSummaryCommand,
4361
+ GetImportJobCommand,
4362
+ GetImportJobResponseFilterSensitiveLog,
4363
+ GetKnowledgeBaseCommand,
4364
+ GetQuickResponseCommand,
4365
+ GetQuickResponseResponseFilterSensitiveLog,
4366
+ GetRecommendationsCommand,
4367
+ GetRecommendationsResponseFilterSensitiveLog,
4368
+ GetSessionCommand,
4369
+ GroupingConfigurationFilterSensitiveLog,
4370
+ ImportJobDataFilterSensitiveLog,
4371
+ ImportJobStatus,
4372
+ ImportJobType,
4373
+ KnowledgeBaseStatus,
4374
+ KnowledgeBaseType,
4375
+ ListAssistantAssociationsCommand,
4376
+ ListAssistantsCommand,
4377
+ ListContentsCommand,
4378
+ ListImportJobsCommand,
4379
+ ListKnowledgeBasesCommand,
4380
+ ListQuickResponsesCommand,
4381
+ ListQuickResponsesResponseFilterSensitiveLog,
4382
+ ListTagsForResourceCommand,
4383
+ NotifyRecommendationsReceivedCommand,
4384
+ Order,
4385
+ PreconditionFailedException,
4386
+ Priority,
4387
+ PutFeedbackCommand,
4388
+ QConnect,
4389
+ QConnectClient,
4390
+ QConnectServiceException,
4391
+ QueryAssistantCommand,
4392
+ QueryAssistantRequestFilterSensitiveLog,
4393
+ QueryAssistantResponseFilterSensitiveLog,
4394
+ QueryCondition,
4395
+ QueryConditionComparisonOperator,
4396
+ QueryConditionFieldName,
4397
+ QueryRecommendationTriggerDataFilterSensitiveLog,
4398
+ QueryResultType,
4399
+ QuickResponseContentProvider,
4400
+ QuickResponseContentProviderFilterSensitiveLog,
4401
+ QuickResponseContentsFilterSensitiveLog,
4402
+ QuickResponseDataFilterSensitiveLog,
4403
+ QuickResponseDataProvider,
4404
+ QuickResponseDataProviderFilterSensitiveLog,
4405
+ QuickResponseFilterOperator,
4406
+ QuickResponseQueryOperator,
4407
+ QuickResponseSearchResultDataFilterSensitiveLog,
4408
+ QuickResponseStatus,
4409
+ QuickResponseSummaryFilterSensitiveLog,
4410
+ RecommendationDataFilterSensitiveLog,
4411
+ RecommendationSourceType,
4412
+ RecommendationTriggerData,
4413
+ RecommendationTriggerDataFilterSensitiveLog,
4414
+ RecommendationTriggerFilterSensitiveLog,
4415
+ RecommendationTriggerType,
4416
+ RecommendationType,
4417
+ Relevance,
4418
+ RelevanceLevel,
4419
+ RemoveKnowledgeBaseTemplateUriCommand,
4420
+ RequestTimeoutException,
4421
+ ResourceNotFoundException,
4422
+ ResultDataFilterSensitiveLog,
4423
+ SearchContentCommand,
4424
+ SearchQuickResponsesCommand,
4425
+ SearchQuickResponsesRequestFilterSensitiveLog,
4426
+ SearchQuickResponsesResponseFilterSensitiveLog,
4427
+ SearchSessionsCommand,
4428
+ ServiceQuotaExceededException,
4429
+ SourceConfiguration,
4430
+ SourceContentDataDetailsFilterSensitiveLog,
4431
+ SourceContentType,
4432
+ StartContentUploadCommand,
4433
+ StartContentUploadResponseFilterSensitiveLog,
4434
+ StartImportJobCommand,
4435
+ StartImportJobResponseFilterSensitiveLog,
4436
+ TagResourceCommand,
4437
+ TargetType,
4438
+ TextDataFilterSensitiveLog,
4439
+ TooManyTagsException,
4440
+ UntagResourceCommand,
4441
+ UpdateContentCommand,
4442
+ UpdateContentResponseFilterSensitiveLog,
4443
+ UpdateKnowledgeBaseTemplateUriCommand,
4444
+ UpdateQuickResponseCommand,
4445
+ UpdateQuickResponseRequestFilterSensitiveLog,
4446
+ UpdateQuickResponseResponseFilterSensitiveLog,
4447
+ ValidationException,
4448
+ __Client,
4449
+ paginateListAssistantAssociations,
4450
+ paginateListAssistants,
4451
+ paginateListContents,
4452
+ paginateListImportJobs,
4453
+ paginateListKnowledgeBases,
4454
+ paginateListQuickResponses,
4455
+ paginateQueryAssistant,
4456
+ paginateSearchContent,
4457
+ paginateSearchQuickResponses,
4458
+ paginateSearchSessions
4459
+ });