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