@aws-sdk/client-wisdom 3.451.0 → 3.454.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/README.md +80 -0
- package/dist-cjs/Wisdom.js +20 -0
- package/dist-cjs/commands/CreateQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/DeleteImportJobCommand.js +51 -0
- package/dist-cjs/commands/DeleteQuickResponseCommand.js +51 -0
- package/dist-cjs/commands/GetImportJobCommand.js +52 -0
- package/dist-cjs/commands/GetQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/ListImportJobsCommand.js +51 -0
- package/dist-cjs/commands/ListQuickResponsesCommand.js +52 -0
- package/dist-cjs/commands/SearchQuickResponsesCommand.js +52 -0
- package/dist-cjs/commands/StartImportJobCommand.js +52 -0
- package/dist-cjs/commands/UpdateQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +200 -1
- package/dist-cjs/pagination/ListImportJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListQuickResponsesPaginator.js +29 -0
- package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +816 -18
- package/dist-es/Wisdom.js +20 -0
- package/dist-es/commands/CreateQuickResponseCommand.js +48 -0
- package/dist-es/commands/DeleteImportJobCommand.js +47 -0
- package/dist-es/commands/DeleteQuickResponseCommand.js +47 -0
- package/dist-es/commands/GetImportJobCommand.js +48 -0
- package/dist-es/commands/GetQuickResponseCommand.js +48 -0
- package/dist-es/commands/ListImportJobsCommand.js +47 -0
- package/dist-es/commands/ListQuickResponsesCommand.js +48 -0
- package/dist-es/commands/SearchQuickResponsesCommand.js +48 -0
- package/dist-es/commands/StartImportJobCommand.js +48 -0
- package/dist-es/commands/UpdateQuickResponseCommand.js +48 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +179 -0
- package/dist-es/pagination/ListImportJobsPaginator.js +25 -0
- package/dist-es/pagination/ListQuickResponsesPaginator.js +25 -0
- package/dist-es/pagination/SearchQuickResponsesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +794 -16
- package/dist-types/Wisdom.d.ts +70 -0
- package/dist-types/WisdomClient.d.ts +12 -2
- package/dist-types/commands/CreateQuickResponseCommand.d.ts +149 -0
- package/dist-types/commands/DeleteImportJobCommand.d.ts +87 -0
- package/dist-types/commands/DeleteQuickResponseCommand.d.ts +81 -0
- package/dist-types/commands/GetImportJobCommand.d.ts +106 -0
- package/dist-types/commands/GetQuickResponseCommand.d.ts +118 -0
- package/dist-types/commands/ListImportJobsCommand.d.ts +104 -0
- package/dist-types/commands/ListQuickResponsesCommand.d.ts +106 -0
- package/dist-types/commands/QueryAssistantCommand.d.ts +5 -0
- package/dist-types/commands/SearchQuickResponsesCommand.d.ts +163 -0
- package/dist-types/commands/StartContentUploadCommand.d.ts +1 -0
- package/dist-types/commands/StartImportJobCommand.d.ts +135 -0
- package/dist-types/commands/UpdateQuickResponseCommand.d.ts +149 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1631 -167
- package/dist-types/pagination/ListImportJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListQuickResponsesPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchQuickResponsesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/Wisdom.d.ts +170 -0
- package/dist-types/ts3.4/WisdomClient.d.ts +62 -2
- package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +397 -0
- package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListQuickResponsesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchQuickResponsesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateKnowledgeBaseTemplateUriCommand = exports.de_UpdateContentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartContentUploadCommand = exports.de_SearchSessionsCommand = exports.de_SearchContentCommand = exports.de_RemoveKnowledgeBaseTemplateUriCommand = exports.de_QueryAssistantCommand = exports.de_NotifyRecommendationsReceivedCommand = exports.de_ListTagsForResourceCommand = exports.de_ListKnowledgeBasesCommand = void 0;
|
|
3
|
+
exports.de_DeleteContentCommand = exports.de_DeleteAssistantAssociationCommand = exports.de_DeleteAssistantCommand = exports.de_CreateSessionCommand = exports.de_CreateQuickResponseCommand = exports.de_CreateKnowledgeBaseCommand = exports.de_CreateContentCommand = exports.de_CreateAssistantAssociationCommand = exports.de_CreateAssistantCommand = exports.se_UpdateQuickResponseCommand = exports.se_UpdateKnowledgeBaseTemplateUriCommand = exports.se_UpdateContentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartImportJobCommand = exports.se_StartContentUploadCommand = exports.se_SearchSessionsCommand = exports.se_SearchQuickResponsesCommand = exports.se_SearchContentCommand = exports.se_RemoveKnowledgeBaseTemplateUriCommand = exports.se_QueryAssistantCommand = exports.se_NotifyRecommendationsReceivedCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQuickResponsesCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListImportJobsCommand = exports.se_ListContentsCommand = exports.se_ListAssistantsCommand = exports.se_ListAssistantAssociationsCommand = exports.se_GetSessionCommand = exports.se_GetRecommendationsCommand = exports.se_GetQuickResponseCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetImportJobCommand = exports.se_GetContentSummaryCommand = exports.se_GetContentCommand = exports.se_GetAssistantAssociationCommand = exports.se_GetAssistantCommand = exports.se_DeleteQuickResponseCommand = exports.se_DeleteKnowledgeBaseCommand = exports.se_DeleteImportJobCommand = exports.se_DeleteContentCommand = exports.se_DeleteAssistantAssociationCommand = exports.se_DeleteAssistantCommand = exports.se_CreateSessionCommand = exports.se_CreateQuickResponseCommand = exports.se_CreateKnowledgeBaseCommand = exports.se_CreateContentCommand = exports.se_CreateAssistantAssociationCommand = exports.se_CreateAssistantCommand = void 0;
|
|
4
|
+
exports.de_UpdateQuickResponseCommand = exports.de_UpdateKnowledgeBaseTemplateUriCommand = exports.de_UpdateContentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartImportJobCommand = exports.de_StartContentUploadCommand = exports.de_SearchSessionsCommand = exports.de_SearchQuickResponsesCommand = exports.de_SearchContentCommand = exports.de_RemoveKnowledgeBaseTemplateUriCommand = exports.de_QueryAssistantCommand = exports.de_NotifyRecommendationsReceivedCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuickResponsesCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListImportJobsCommand = exports.de_ListContentsCommand = exports.de_ListAssistantsCommand = exports.de_ListAssistantAssociationsCommand = exports.de_GetSessionCommand = exports.de_GetRecommendationsCommand = exports.de_GetQuickResponseCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetImportJobCommand = exports.de_GetContentSummaryCommand = exports.de_GetContentCommand = exports.de_GetAssistantAssociationCommand = exports.de_GetAssistantCommand = exports.de_DeleteQuickResponseCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteImportJobCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -116,6 +116,39 @@ const se_CreateKnowledgeBaseCommand = async (input, context) => {
|
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
118
|
exports.se_CreateKnowledgeBaseCommand = se_CreateKnowledgeBaseCommand;
|
|
119
|
+
const se_CreateQuickResponseCommand = async (input, context) => {
|
|
120
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
|
+
const headers = {
|
|
122
|
+
"content-type": "application/json",
|
|
123
|
+
};
|
|
124
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
125
|
+
"/knowledgeBases/{knowledgeBaseId}/quickResponses";
|
|
126
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
|
+
channels: (_) => (0, smithy_client_1._json)(_),
|
|
130
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
131
|
+
content: (_) => (0, smithy_client_1._json)(_),
|
|
132
|
+
contentType: [],
|
|
133
|
+
description: [],
|
|
134
|
+
groupingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
135
|
+
isActive: [],
|
|
136
|
+
language: [],
|
|
137
|
+
name: [],
|
|
138
|
+
shortcutKey: [],
|
|
139
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
140
|
+
}));
|
|
141
|
+
return new protocol_http_1.HttpRequest({
|
|
142
|
+
protocol,
|
|
143
|
+
hostname,
|
|
144
|
+
port,
|
|
145
|
+
method: "POST",
|
|
146
|
+
headers,
|
|
147
|
+
path: resolvedPath,
|
|
148
|
+
body,
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
exports.se_CreateQuickResponseCommand = se_CreateQuickResponseCommand;
|
|
119
152
|
const se_CreateSessionCommand = async (input, context) => {
|
|
120
153
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
154
|
const headers = {
|
|
@@ -196,6 +229,25 @@ const se_DeleteContentCommand = async (input, context) => {
|
|
|
196
229
|
});
|
|
197
230
|
};
|
|
198
231
|
exports.se_DeleteContentCommand = se_DeleteContentCommand;
|
|
232
|
+
const se_DeleteImportJobCommand = async (input, context) => {
|
|
233
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
|
+
const headers = {};
|
|
235
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
236
|
+
"/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}";
|
|
237
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
238
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "importJobId", () => input.importJobId, "{importJobId}", false);
|
|
239
|
+
let body;
|
|
240
|
+
return new protocol_http_1.HttpRequest({
|
|
241
|
+
protocol,
|
|
242
|
+
hostname,
|
|
243
|
+
port,
|
|
244
|
+
method: "DELETE",
|
|
245
|
+
headers,
|
|
246
|
+
path: resolvedPath,
|
|
247
|
+
body,
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
exports.se_DeleteImportJobCommand = se_DeleteImportJobCommand;
|
|
199
251
|
const se_DeleteKnowledgeBaseCommand = async (input, context) => {
|
|
200
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
253
|
const headers = {};
|
|
@@ -213,6 +265,25 @@ const se_DeleteKnowledgeBaseCommand = async (input, context) => {
|
|
|
213
265
|
});
|
|
214
266
|
};
|
|
215
267
|
exports.se_DeleteKnowledgeBaseCommand = se_DeleteKnowledgeBaseCommand;
|
|
268
|
+
const se_DeleteQuickResponseCommand = async (input, context) => {
|
|
269
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
270
|
+
const headers = {};
|
|
271
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
272
|
+
"/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}";
|
|
273
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
274
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
275
|
+
let body;
|
|
276
|
+
return new protocol_http_1.HttpRequest({
|
|
277
|
+
protocol,
|
|
278
|
+
hostname,
|
|
279
|
+
port,
|
|
280
|
+
method: "DELETE",
|
|
281
|
+
headers,
|
|
282
|
+
path: resolvedPath,
|
|
283
|
+
body,
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
exports.se_DeleteQuickResponseCommand = se_DeleteQuickResponseCommand;
|
|
216
287
|
const se_GetAssistantCommand = async (input, context) => {
|
|
217
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
218
289
|
const headers = {};
|
|
@@ -287,6 +358,25 @@ const se_GetContentSummaryCommand = async (input, context) => {
|
|
|
287
358
|
});
|
|
288
359
|
};
|
|
289
360
|
exports.se_GetContentSummaryCommand = se_GetContentSummaryCommand;
|
|
361
|
+
const se_GetImportJobCommand = async (input, context) => {
|
|
362
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
363
|
+
const headers = {};
|
|
364
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
365
|
+
"/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}";
|
|
366
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "importJobId", () => input.importJobId, "{importJobId}", false);
|
|
367
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
368
|
+
let body;
|
|
369
|
+
return new protocol_http_1.HttpRequest({
|
|
370
|
+
protocol,
|
|
371
|
+
hostname,
|
|
372
|
+
port,
|
|
373
|
+
method: "GET",
|
|
374
|
+
headers,
|
|
375
|
+
path: resolvedPath,
|
|
376
|
+
body,
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
exports.se_GetImportJobCommand = se_GetImportJobCommand;
|
|
290
380
|
const se_GetKnowledgeBaseCommand = async (input, context) => {
|
|
291
381
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
382
|
const headers = {};
|
|
@@ -304,6 +394,25 @@ const se_GetKnowledgeBaseCommand = async (input, context) => {
|
|
|
304
394
|
});
|
|
305
395
|
};
|
|
306
396
|
exports.se_GetKnowledgeBaseCommand = se_GetKnowledgeBaseCommand;
|
|
397
|
+
const se_GetQuickResponseCommand = async (input, context) => {
|
|
398
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
399
|
+
const headers = {};
|
|
400
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
401
|
+
"/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}";
|
|
402
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
403
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
404
|
+
let body;
|
|
405
|
+
return new protocol_http_1.HttpRequest({
|
|
406
|
+
protocol,
|
|
407
|
+
hostname,
|
|
408
|
+
port,
|
|
409
|
+
method: "GET",
|
|
410
|
+
headers,
|
|
411
|
+
path: resolvedPath,
|
|
412
|
+
body,
|
|
413
|
+
});
|
|
414
|
+
};
|
|
415
|
+
exports.se_GetQuickResponseCommand = se_GetQuickResponseCommand;
|
|
307
416
|
const se_GetRecommendationsCommand = async (input, context) => {
|
|
308
417
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
418
|
const headers = {};
|
|
@@ -413,6 +522,29 @@ const se_ListContentsCommand = async (input, context) => {
|
|
|
413
522
|
});
|
|
414
523
|
};
|
|
415
524
|
exports.se_ListContentsCommand = se_ListContentsCommand;
|
|
525
|
+
const se_ListImportJobsCommand = async (input, context) => {
|
|
526
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
527
|
+
const headers = {};
|
|
528
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
529
|
+
"/knowledgeBases/{knowledgeBaseId}/importJobs";
|
|
530
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
531
|
+
const query = (0, smithy_client_1.map)({
|
|
532
|
+
nextToken: [, input.nextToken],
|
|
533
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
534
|
+
});
|
|
535
|
+
let body;
|
|
536
|
+
return new protocol_http_1.HttpRequest({
|
|
537
|
+
protocol,
|
|
538
|
+
hostname,
|
|
539
|
+
port,
|
|
540
|
+
method: "GET",
|
|
541
|
+
headers,
|
|
542
|
+
path: resolvedPath,
|
|
543
|
+
query,
|
|
544
|
+
body,
|
|
545
|
+
});
|
|
546
|
+
};
|
|
547
|
+
exports.se_ListImportJobsCommand = se_ListImportJobsCommand;
|
|
416
548
|
const se_ListKnowledgeBasesCommand = async (input, context) => {
|
|
417
549
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
418
550
|
const headers = {};
|
|
@@ -434,6 +566,29 @@ const se_ListKnowledgeBasesCommand = async (input, context) => {
|
|
|
434
566
|
});
|
|
435
567
|
};
|
|
436
568
|
exports.se_ListKnowledgeBasesCommand = se_ListKnowledgeBasesCommand;
|
|
569
|
+
const se_ListQuickResponsesCommand = async (input, context) => {
|
|
570
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
571
|
+
const headers = {};
|
|
572
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
573
|
+
"/knowledgeBases/{knowledgeBaseId}/quickResponses";
|
|
574
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
575
|
+
const query = (0, smithy_client_1.map)({
|
|
576
|
+
nextToken: [, input.nextToken],
|
|
577
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
578
|
+
});
|
|
579
|
+
let body;
|
|
580
|
+
return new protocol_http_1.HttpRequest({
|
|
581
|
+
protocol,
|
|
582
|
+
hostname,
|
|
583
|
+
port,
|
|
584
|
+
method: "GET",
|
|
585
|
+
headers,
|
|
586
|
+
path: resolvedPath,
|
|
587
|
+
query,
|
|
588
|
+
body,
|
|
589
|
+
});
|
|
590
|
+
};
|
|
591
|
+
exports.se_ListQuickResponsesCommand = se_ListQuickResponsesCommand;
|
|
437
592
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
438
593
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
439
594
|
const headers = {};
|
|
@@ -544,6 +699,35 @@ const se_SearchContentCommand = async (input, context) => {
|
|
|
544
699
|
});
|
|
545
700
|
};
|
|
546
701
|
exports.se_SearchContentCommand = se_SearchContentCommand;
|
|
702
|
+
const se_SearchQuickResponsesCommand = async (input, context) => {
|
|
703
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
704
|
+
const headers = {
|
|
705
|
+
"content-type": "application/json",
|
|
706
|
+
};
|
|
707
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
708
|
+
"/knowledgeBases/{knowledgeBaseId}/search/quickResponses";
|
|
709
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
710
|
+
const query = (0, smithy_client_1.map)({
|
|
711
|
+
nextToken: [, input.nextToken],
|
|
712
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
713
|
+
});
|
|
714
|
+
let body;
|
|
715
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
716
|
+
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
717
|
+
searchExpression: (_) => (0, smithy_client_1._json)(_),
|
|
718
|
+
}));
|
|
719
|
+
return new protocol_http_1.HttpRequest({
|
|
720
|
+
protocol,
|
|
721
|
+
hostname,
|
|
722
|
+
port,
|
|
723
|
+
method: "POST",
|
|
724
|
+
headers,
|
|
725
|
+
path: resolvedPath,
|
|
726
|
+
query,
|
|
727
|
+
body,
|
|
728
|
+
});
|
|
729
|
+
};
|
|
730
|
+
exports.se_SearchQuickResponsesCommand = se_SearchQuickResponsesCommand;
|
|
547
731
|
const se_SearchSessionsCommand = async (input, context) => {
|
|
548
732
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
549
733
|
const headers = {
|
|
@@ -581,6 +765,7 @@ const se_StartContentUploadCommand = async (input, context) => {
|
|
|
581
765
|
let body;
|
|
582
766
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
583
767
|
contentType: [],
|
|
768
|
+
presignedUrlTimeToLive: [],
|
|
584
769
|
}));
|
|
585
770
|
return new protocol_http_1.HttpRequest({
|
|
586
771
|
protocol,
|
|
@@ -593,6 +778,33 @@ const se_StartContentUploadCommand = async (input, context) => {
|
|
|
593
778
|
});
|
|
594
779
|
};
|
|
595
780
|
exports.se_StartContentUploadCommand = se_StartContentUploadCommand;
|
|
781
|
+
const se_StartImportJobCommand = async (input, context) => {
|
|
782
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
783
|
+
const headers = {
|
|
784
|
+
"content-type": "application/json",
|
|
785
|
+
};
|
|
786
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
787
|
+
"/knowledgeBases/{knowledgeBaseId}/importJobs";
|
|
788
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
789
|
+
let body;
|
|
790
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
791
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
792
|
+
externalSourceConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
793
|
+
importJobType: [],
|
|
794
|
+
metadata: (_) => (0, smithy_client_1._json)(_),
|
|
795
|
+
uploadId: [],
|
|
796
|
+
}));
|
|
797
|
+
return new protocol_http_1.HttpRequest({
|
|
798
|
+
protocol,
|
|
799
|
+
hostname,
|
|
800
|
+
port,
|
|
801
|
+
method: "POST",
|
|
802
|
+
headers,
|
|
803
|
+
path: resolvedPath,
|
|
804
|
+
body,
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
exports.se_StartImportJobCommand = se_StartImportJobCommand;
|
|
596
808
|
const se_TagResourceCommand = async (input, context) => {
|
|
597
809
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
598
810
|
const headers = {
|
|
@@ -691,6 +903,41 @@ const se_UpdateKnowledgeBaseTemplateUriCommand = async (input, context) => {
|
|
|
691
903
|
});
|
|
692
904
|
};
|
|
693
905
|
exports.se_UpdateKnowledgeBaseTemplateUriCommand = se_UpdateKnowledgeBaseTemplateUriCommand;
|
|
906
|
+
const se_UpdateQuickResponseCommand = async (input, context) => {
|
|
907
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
908
|
+
const headers = {
|
|
909
|
+
"content-type": "application/json",
|
|
910
|
+
};
|
|
911
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
912
|
+
"/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}";
|
|
913
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
914
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
915
|
+
let body;
|
|
916
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
917
|
+
channels: (_) => (0, smithy_client_1._json)(_),
|
|
918
|
+
content: (_) => (0, smithy_client_1._json)(_),
|
|
919
|
+
contentType: [],
|
|
920
|
+
description: [],
|
|
921
|
+
groupingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
922
|
+
isActive: [],
|
|
923
|
+
language: [],
|
|
924
|
+
name: [],
|
|
925
|
+
removeDescription: [],
|
|
926
|
+
removeGroupingConfiguration: [],
|
|
927
|
+
removeShortcutKey: [],
|
|
928
|
+
shortcutKey: [],
|
|
929
|
+
}));
|
|
930
|
+
return new protocol_http_1.HttpRequest({
|
|
931
|
+
protocol,
|
|
932
|
+
hostname,
|
|
933
|
+
port,
|
|
934
|
+
method: "POST",
|
|
935
|
+
headers,
|
|
936
|
+
path: resolvedPath,
|
|
937
|
+
body,
|
|
938
|
+
});
|
|
939
|
+
};
|
|
940
|
+
exports.se_UpdateQuickResponseCommand = se_UpdateQuickResponseCommand;
|
|
694
941
|
const de_CreateAssistantCommand = async (output, context) => {
|
|
695
942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
943
|
return de_CreateAssistantCommandError(output, context);
|
|
@@ -869,6 +1116,52 @@ const de_CreateKnowledgeBaseCommandError = async (output, context) => {
|
|
|
869
1116
|
});
|
|
870
1117
|
}
|
|
871
1118
|
};
|
|
1119
|
+
const de_CreateQuickResponseCommand = async (output, context) => {
|
|
1120
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1121
|
+
return de_CreateQuickResponseCommandError(output, context);
|
|
1122
|
+
}
|
|
1123
|
+
const contents = (0, smithy_client_1.map)({
|
|
1124
|
+
$metadata: deserializeMetadata(output),
|
|
1125
|
+
});
|
|
1126
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1127
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1128
|
+
quickResponse: (_) => de_QuickResponseData(_, context),
|
|
1129
|
+
});
|
|
1130
|
+
Object.assign(contents, doc);
|
|
1131
|
+
return contents;
|
|
1132
|
+
};
|
|
1133
|
+
exports.de_CreateQuickResponseCommand = de_CreateQuickResponseCommand;
|
|
1134
|
+
const de_CreateQuickResponseCommandError = async (output, context) => {
|
|
1135
|
+
const parsedOutput = {
|
|
1136
|
+
...output,
|
|
1137
|
+
body: await parseErrorBody(output.body, context),
|
|
1138
|
+
};
|
|
1139
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
|
+
switch (errorCode) {
|
|
1141
|
+
case "AccessDeniedException":
|
|
1142
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1143
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1144
|
+
case "ConflictException":
|
|
1145
|
+
case "com.amazonaws.wisdom#ConflictException":
|
|
1146
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1147
|
+
case "ResourceNotFoundException":
|
|
1148
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1149
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "ServiceQuotaExceededException":
|
|
1151
|
+
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
1152
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "ValidationException":
|
|
1154
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
1155
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1156
|
+
default:
|
|
1157
|
+
const parsedBody = parsedOutput.body;
|
|
1158
|
+
return throwDefaultError({
|
|
1159
|
+
output,
|
|
1160
|
+
parsedBody,
|
|
1161
|
+
errorCode,
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
872
1165
|
const de_CreateSessionCommand = async (output, context) => {
|
|
873
1166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
1167
|
return de_CreateSessionCommandError(output, context);
|
|
@@ -1017,9 +1310,9 @@ const de_DeleteContentCommandError = async (output, context) => {
|
|
|
1017
1310
|
});
|
|
1018
1311
|
}
|
|
1019
1312
|
};
|
|
1020
|
-
const
|
|
1313
|
+
const de_DeleteImportJobCommand = async (output, context) => {
|
|
1021
1314
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1022
|
-
return
|
|
1315
|
+
return de_DeleteImportJobCommandError(output, context);
|
|
1023
1316
|
}
|
|
1024
1317
|
const contents = (0, smithy_client_1.map)({
|
|
1025
1318
|
$metadata: deserializeMetadata(output),
|
|
@@ -1027,8 +1320,8 @@ const de_DeleteKnowledgeBaseCommand = async (output, context) => {
|
|
|
1027
1320
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1028
1321
|
return contents;
|
|
1029
1322
|
};
|
|
1030
|
-
exports.
|
|
1031
|
-
const
|
|
1323
|
+
exports.de_DeleteImportJobCommand = de_DeleteImportJobCommand;
|
|
1324
|
+
const de_DeleteImportJobCommandError = async (output, context) => {
|
|
1032
1325
|
const parsedOutput = {
|
|
1033
1326
|
...output,
|
|
1034
1327
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1056,22 +1349,18 @@ const de_DeleteKnowledgeBaseCommandError = async (output, context) => {
|
|
|
1056
1349
|
});
|
|
1057
1350
|
}
|
|
1058
1351
|
};
|
|
1059
|
-
const
|
|
1060
|
-
if (output.statusCode !==
|
|
1061
|
-
return
|
|
1352
|
+
const de_DeleteKnowledgeBaseCommand = async (output, context) => {
|
|
1353
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1354
|
+
return de_DeleteKnowledgeBaseCommandError(output, context);
|
|
1062
1355
|
}
|
|
1063
1356
|
const contents = (0, smithy_client_1.map)({
|
|
1064
1357
|
$metadata: deserializeMetadata(output),
|
|
1065
1358
|
});
|
|
1066
|
-
|
|
1067
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1068
|
-
assistant: smithy_client_1._json,
|
|
1069
|
-
});
|
|
1070
|
-
Object.assign(contents, doc);
|
|
1359
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1071
1360
|
return contents;
|
|
1072
1361
|
};
|
|
1073
|
-
exports.
|
|
1074
|
-
const
|
|
1362
|
+
exports.de_DeleteKnowledgeBaseCommand = de_DeleteKnowledgeBaseCommand;
|
|
1363
|
+
const de_DeleteKnowledgeBaseCommandError = async (output, context) => {
|
|
1075
1364
|
const parsedOutput = {
|
|
1076
1365
|
...output,
|
|
1077
1366
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1081,8 +1370,87 @@ const de_GetAssistantCommandError = async (output, context) => {
|
|
|
1081
1370
|
case "AccessDeniedException":
|
|
1082
1371
|
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1083
1372
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "
|
|
1085
|
-
case "com.amazonaws.wisdom#
|
|
1373
|
+
case "ConflictException":
|
|
1374
|
+
case "com.amazonaws.wisdom#ConflictException":
|
|
1375
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1376
|
+
case "ResourceNotFoundException":
|
|
1377
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1378
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1379
|
+
case "ValidationException":
|
|
1380
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
1381
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1382
|
+
default:
|
|
1383
|
+
const parsedBody = parsedOutput.body;
|
|
1384
|
+
return throwDefaultError({
|
|
1385
|
+
output,
|
|
1386
|
+
parsedBody,
|
|
1387
|
+
errorCode,
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
};
|
|
1391
|
+
const de_DeleteQuickResponseCommand = async (output, context) => {
|
|
1392
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1393
|
+
return de_DeleteQuickResponseCommandError(output, context);
|
|
1394
|
+
}
|
|
1395
|
+
const contents = (0, smithy_client_1.map)({
|
|
1396
|
+
$metadata: deserializeMetadata(output),
|
|
1397
|
+
});
|
|
1398
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1399
|
+
return contents;
|
|
1400
|
+
};
|
|
1401
|
+
exports.de_DeleteQuickResponseCommand = de_DeleteQuickResponseCommand;
|
|
1402
|
+
const de_DeleteQuickResponseCommandError = async (output, context) => {
|
|
1403
|
+
const parsedOutput = {
|
|
1404
|
+
...output,
|
|
1405
|
+
body: await parseErrorBody(output.body, context),
|
|
1406
|
+
};
|
|
1407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
|
+
switch (errorCode) {
|
|
1409
|
+
case "AccessDeniedException":
|
|
1410
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1411
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1412
|
+
case "ResourceNotFoundException":
|
|
1413
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1414
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1415
|
+
case "ValidationException":
|
|
1416
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
1417
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1418
|
+
default:
|
|
1419
|
+
const parsedBody = parsedOutput.body;
|
|
1420
|
+
return throwDefaultError({
|
|
1421
|
+
output,
|
|
1422
|
+
parsedBody,
|
|
1423
|
+
errorCode,
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
const de_GetAssistantCommand = async (output, context) => {
|
|
1428
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
+
return de_GetAssistantCommandError(output, context);
|
|
1430
|
+
}
|
|
1431
|
+
const contents = (0, smithy_client_1.map)({
|
|
1432
|
+
$metadata: deserializeMetadata(output),
|
|
1433
|
+
});
|
|
1434
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1435
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1436
|
+
assistant: smithy_client_1._json,
|
|
1437
|
+
});
|
|
1438
|
+
Object.assign(contents, doc);
|
|
1439
|
+
return contents;
|
|
1440
|
+
};
|
|
1441
|
+
exports.de_GetAssistantCommand = de_GetAssistantCommand;
|
|
1442
|
+
const de_GetAssistantCommandError = async (output, context) => {
|
|
1443
|
+
const parsedOutput = {
|
|
1444
|
+
...output,
|
|
1445
|
+
body: await parseErrorBody(output.body, context),
|
|
1446
|
+
};
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
+
switch (errorCode) {
|
|
1449
|
+
case "AccessDeniedException":
|
|
1450
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1451
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1452
|
+
case "ResourceNotFoundException":
|
|
1453
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1086
1454
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1087
1455
|
case "ValidationException":
|
|
1088
1456
|
case "com.amazonaws.wisdom#ValidationException":
|
|
@@ -1216,6 +1584,46 @@ const de_GetContentSummaryCommandError = async (output, context) => {
|
|
|
1216
1584
|
});
|
|
1217
1585
|
}
|
|
1218
1586
|
};
|
|
1587
|
+
const de_GetImportJobCommand = async (output, context) => {
|
|
1588
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1589
|
+
return de_GetImportJobCommandError(output, context);
|
|
1590
|
+
}
|
|
1591
|
+
const contents = (0, smithy_client_1.map)({
|
|
1592
|
+
$metadata: deserializeMetadata(output),
|
|
1593
|
+
});
|
|
1594
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1595
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1596
|
+
importJob: (_) => de_ImportJobData(_, context),
|
|
1597
|
+
});
|
|
1598
|
+
Object.assign(contents, doc);
|
|
1599
|
+
return contents;
|
|
1600
|
+
};
|
|
1601
|
+
exports.de_GetImportJobCommand = de_GetImportJobCommand;
|
|
1602
|
+
const de_GetImportJobCommandError = async (output, context) => {
|
|
1603
|
+
const parsedOutput = {
|
|
1604
|
+
...output,
|
|
1605
|
+
body: await parseErrorBody(output.body, context),
|
|
1606
|
+
};
|
|
1607
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
|
+
switch (errorCode) {
|
|
1609
|
+
case "AccessDeniedException":
|
|
1610
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1611
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1612
|
+
case "ResourceNotFoundException":
|
|
1613
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1614
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1615
|
+
case "ValidationException":
|
|
1616
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
1617
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1618
|
+
default:
|
|
1619
|
+
const parsedBody = parsedOutput.body;
|
|
1620
|
+
return throwDefaultError({
|
|
1621
|
+
output,
|
|
1622
|
+
parsedBody,
|
|
1623
|
+
errorCode,
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1219
1627
|
const de_GetKnowledgeBaseCommand = async (output, context) => {
|
|
1220
1628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
1629
|
return de_GetKnowledgeBaseCommandError(output, context);
|
|
@@ -1256,6 +1664,46 @@ const de_GetKnowledgeBaseCommandError = async (output, context) => {
|
|
|
1256
1664
|
});
|
|
1257
1665
|
}
|
|
1258
1666
|
};
|
|
1667
|
+
const de_GetQuickResponseCommand = async (output, context) => {
|
|
1668
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1669
|
+
return de_GetQuickResponseCommandError(output, context);
|
|
1670
|
+
}
|
|
1671
|
+
const contents = (0, smithy_client_1.map)({
|
|
1672
|
+
$metadata: deserializeMetadata(output),
|
|
1673
|
+
});
|
|
1674
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1675
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1676
|
+
quickResponse: (_) => de_QuickResponseData(_, context),
|
|
1677
|
+
});
|
|
1678
|
+
Object.assign(contents, doc);
|
|
1679
|
+
return contents;
|
|
1680
|
+
};
|
|
1681
|
+
exports.de_GetQuickResponseCommand = de_GetQuickResponseCommand;
|
|
1682
|
+
const de_GetQuickResponseCommandError = async (output, context) => {
|
|
1683
|
+
const parsedOutput = {
|
|
1684
|
+
...output,
|
|
1685
|
+
body: await parseErrorBody(output.body, context),
|
|
1686
|
+
};
|
|
1687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
+
switch (errorCode) {
|
|
1689
|
+
case "AccessDeniedException":
|
|
1690
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1691
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1692
|
+
case "ResourceNotFoundException":
|
|
1693
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1694
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1695
|
+
case "ValidationException":
|
|
1696
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
1697
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1698
|
+
default:
|
|
1699
|
+
const parsedBody = parsedOutput.body;
|
|
1700
|
+
return throwDefaultError({
|
|
1701
|
+
output,
|
|
1702
|
+
parsedBody,
|
|
1703
|
+
errorCode,
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1259
1707
|
const de_GetRecommendationsCommand = async (output, context) => {
|
|
1260
1708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1261
1709
|
return de_GetRecommendationsCommandError(output, context);
|
|
@@ -1457,6 +1905,44 @@ const de_ListContentsCommandError = async (output, context) => {
|
|
|
1457
1905
|
});
|
|
1458
1906
|
}
|
|
1459
1907
|
};
|
|
1908
|
+
const de_ListImportJobsCommand = async (output, context) => {
|
|
1909
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1910
|
+
return de_ListImportJobsCommandError(output, context);
|
|
1911
|
+
}
|
|
1912
|
+
const contents = (0, smithy_client_1.map)({
|
|
1913
|
+
$metadata: deserializeMetadata(output),
|
|
1914
|
+
});
|
|
1915
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1916
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1917
|
+
importJobSummaries: (_) => de_ImportJobList(_, context),
|
|
1918
|
+
nextToken: smithy_client_1.expectString,
|
|
1919
|
+
});
|
|
1920
|
+
Object.assign(contents, doc);
|
|
1921
|
+
return contents;
|
|
1922
|
+
};
|
|
1923
|
+
exports.de_ListImportJobsCommand = de_ListImportJobsCommand;
|
|
1924
|
+
const de_ListImportJobsCommandError = async (output, context) => {
|
|
1925
|
+
const parsedOutput = {
|
|
1926
|
+
...output,
|
|
1927
|
+
body: await parseErrorBody(output.body, context),
|
|
1928
|
+
};
|
|
1929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
|
+
switch (errorCode) {
|
|
1931
|
+
case "AccessDeniedException":
|
|
1932
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1933
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1934
|
+
case "ValidationException":
|
|
1935
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
1936
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1937
|
+
default:
|
|
1938
|
+
const parsedBody = parsedOutput.body;
|
|
1939
|
+
return throwDefaultError({
|
|
1940
|
+
output,
|
|
1941
|
+
parsedBody,
|
|
1942
|
+
errorCode,
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1460
1946
|
const de_ListKnowledgeBasesCommand = async (output, context) => {
|
|
1461
1947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1462
1948
|
return de_ListKnowledgeBasesCommandError(output, context);
|
|
@@ -1495,6 +1981,47 @@ const de_ListKnowledgeBasesCommandError = async (output, context) => {
|
|
|
1495
1981
|
});
|
|
1496
1982
|
}
|
|
1497
1983
|
};
|
|
1984
|
+
const de_ListQuickResponsesCommand = async (output, context) => {
|
|
1985
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1986
|
+
return de_ListQuickResponsesCommandError(output, context);
|
|
1987
|
+
}
|
|
1988
|
+
const contents = (0, smithy_client_1.map)({
|
|
1989
|
+
$metadata: deserializeMetadata(output),
|
|
1990
|
+
});
|
|
1991
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1992
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1993
|
+
nextToken: smithy_client_1.expectString,
|
|
1994
|
+
quickResponseSummaries: (_) => de_QuickResponseSummaryList(_, context),
|
|
1995
|
+
});
|
|
1996
|
+
Object.assign(contents, doc);
|
|
1997
|
+
return contents;
|
|
1998
|
+
};
|
|
1999
|
+
exports.de_ListQuickResponsesCommand = de_ListQuickResponsesCommand;
|
|
2000
|
+
const de_ListQuickResponsesCommandError = async (output, context) => {
|
|
2001
|
+
const parsedOutput = {
|
|
2002
|
+
...output,
|
|
2003
|
+
body: await parseErrorBody(output.body, context),
|
|
2004
|
+
};
|
|
2005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
+
switch (errorCode) {
|
|
2007
|
+
case "AccessDeniedException":
|
|
2008
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2009
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2010
|
+
case "ResourceNotFoundException":
|
|
2011
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2012
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2013
|
+
case "ValidationException":
|
|
2014
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
2015
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2016
|
+
default:
|
|
2017
|
+
const parsedBody = parsedOutput.body;
|
|
2018
|
+
return throwDefaultError({
|
|
2019
|
+
output,
|
|
2020
|
+
parsedBody,
|
|
2021
|
+
errorCode,
|
|
2022
|
+
});
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
1498
2025
|
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1499
2026
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1500
2027
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -1596,6 +2123,9 @@ const de_QueryAssistantCommandError = async (output, context) => {
|
|
|
1596
2123
|
case "AccessDeniedException":
|
|
1597
2124
|
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1598
2125
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2126
|
+
case "RequestTimeoutException":
|
|
2127
|
+
case "com.amazonaws.wisdom#RequestTimeoutException":
|
|
2128
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
1599
2129
|
case "ResourceNotFoundException":
|
|
1600
2130
|
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1601
2131
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1688,6 +2218,50 @@ const de_SearchContentCommandError = async (output, context) => {
|
|
|
1688
2218
|
});
|
|
1689
2219
|
}
|
|
1690
2220
|
};
|
|
2221
|
+
const de_SearchQuickResponsesCommand = async (output, context) => {
|
|
2222
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2223
|
+
return de_SearchQuickResponsesCommandError(output, context);
|
|
2224
|
+
}
|
|
2225
|
+
const contents = (0, smithy_client_1.map)({
|
|
2226
|
+
$metadata: deserializeMetadata(output),
|
|
2227
|
+
});
|
|
2228
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2229
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2230
|
+
nextToken: smithy_client_1.expectString,
|
|
2231
|
+
results: (_) => de_QuickResponseSearchResultsList(_, context),
|
|
2232
|
+
});
|
|
2233
|
+
Object.assign(contents, doc);
|
|
2234
|
+
return contents;
|
|
2235
|
+
};
|
|
2236
|
+
exports.de_SearchQuickResponsesCommand = de_SearchQuickResponsesCommand;
|
|
2237
|
+
const de_SearchQuickResponsesCommandError = async (output, context) => {
|
|
2238
|
+
const parsedOutput = {
|
|
2239
|
+
...output,
|
|
2240
|
+
body: await parseErrorBody(output.body, context),
|
|
2241
|
+
};
|
|
2242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
|
+
switch (errorCode) {
|
|
2244
|
+
case "AccessDeniedException":
|
|
2245
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2246
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2247
|
+
case "RequestTimeoutException":
|
|
2248
|
+
case "com.amazonaws.wisdom#RequestTimeoutException":
|
|
2249
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2250
|
+
case "ResourceNotFoundException":
|
|
2251
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2252
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2253
|
+
case "ValidationException":
|
|
2254
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
2255
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2256
|
+
default:
|
|
2257
|
+
const parsedBody = parsedOutput.body;
|
|
2258
|
+
return throwDefaultError({
|
|
2259
|
+
output,
|
|
2260
|
+
parsedBody,
|
|
2261
|
+
errorCode,
|
|
2262
|
+
});
|
|
2263
|
+
}
|
|
2264
|
+
};
|
|
1691
2265
|
const de_SearchSessionsCommand = async (output, context) => {
|
|
1692
2266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1693
2267
|
return de_SearchSessionsCommandError(output, context);
|
|
@@ -1772,6 +2346,52 @@ const de_StartContentUploadCommandError = async (output, context) => {
|
|
|
1772
2346
|
});
|
|
1773
2347
|
}
|
|
1774
2348
|
};
|
|
2349
|
+
const de_StartImportJobCommand = async (output, context) => {
|
|
2350
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2351
|
+
return de_StartImportJobCommandError(output, context);
|
|
2352
|
+
}
|
|
2353
|
+
const contents = (0, smithy_client_1.map)({
|
|
2354
|
+
$metadata: deserializeMetadata(output),
|
|
2355
|
+
});
|
|
2356
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2357
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2358
|
+
importJob: (_) => de_ImportJobData(_, context),
|
|
2359
|
+
});
|
|
2360
|
+
Object.assign(contents, doc);
|
|
2361
|
+
return contents;
|
|
2362
|
+
};
|
|
2363
|
+
exports.de_StartImportJobCommand = de_StartImportJobCommand;
|
|
2364
|
+
const de_StartImportJobCommandError = 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 "ConflictException":
|
|
2375
|
+
case "com.amazonaws.wisdom#ConflictException":
|
|
2376
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2377
|
+
case "ResourceNotFoundException":
|
|
2378
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2379
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2380
|
+
case "ServiceQuotaExceededException":
|
|
2381
|
+
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
2382
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2383
|
+
case "ValidationException":
|
|
2384
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
2385
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2386
|
+
default:
|
|
2387
|
+
const parsedBody = parsedOutput.body;
|
|
2388
|
+
return throwDefaultError({
|
|
2389
|
+
output,
|
|
2390
|
+
parsedBody,
|
|
2391
|
+
errorCode,
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
};
|
|
1775
2395
|
const de_TagResourceCommand = async (output, context) => {
|
|
1776
2396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1777
2397
|
return de_TagResourceCommandError(output, context);
|
|
@@ -1918,6 +2538,52 @@ const de_UpdateKnowledgeBaseTemplateUriCommandError = async (output, context) =>
|
|
|
1918
2538
|
});
|
|
1919
2539
|
}
|
|
1920
2540
|
};
|
|
2541
|
+
const de_UpdateQuickResponseCommand = async (output, context) => {
|
|
2542
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2543
|
+
return de_UpdateQuickResponseCommandError(output, context);
|
|
2544
|
+
}
|
|
2545
|
+
const contents = (0, smithy_client_1.map)({
|
|
2546
|
+
$metadata: deserializeMetadata(output),
|
|
2547
|
+
});
|
|
2548
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2549
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2550
|
+
quickResponse: (_) => de_QuickResponseData(_, context),
|
|
2551
|
+
});
|
|
2552
|
+
Object.assign(contents, doc);
|
|
2553
|
+
return contents;
|
|
2554
|
+
};
|
|
2555
|
+
exports.de_UpdateQuickResponseCommand = de_UpdateQuickResponseCommand;
|
|
2556
|
+
const de_UpdateQuickResponseCommandError = async (output, context) => {
|
|
2557
|
+
const parsedOutput = {
|
|
2558
|
+
...output,
|
|
2559
|
+
body: await parseErrorBody(output.body, context),
|
|
2560
|
+
};
|
|
2561
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2562
|
+
switch (errorCode) {
|
|
2563
|
+
case "AccessDeniedException":
|
|
2564
|
+
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2565
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2566
|
+
case "ConflictException":
|
|
2567
|
+
case "com.amazonaws.wisdom#ConflictException":
|
|
2568
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2569
|
+
case "PreconditionFailedException":
|
|
2570
|
+
case "com.amazonaws.wisdom#PreconditionFailedException":
|
|
2571
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2572
|
+
case "ResourceNotFoundException":
|
|
2573
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2574
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2575
|
+
case "ValidationException":
|
|
2576
|
+
case "com.amazonaws.wisdom#ValidationException":
|
|
2577
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2578
|
+
default:
|
|
2579
|
+
const parsedBody = parsedOutput.body;
|
|
2580
|
+
return throwDefaultError({
|
|
2581
|
+
output,
|
|
2582
|
+
parsedBody,
|
|
2583
|
+
errorCode,
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
};
|
|
1921
2587
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(WisdomServiceException_1.WisdomServiceException);
|
|
1922
2588
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1923
2589
|
const contents = (0, smithy_client_1.map)({});
|
|
@@ -1958,6 +2624,19 @@ const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
|
1958
2624
|
});
|
|
1959
2625
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1960
2626
|
};
|
|
2627
|
+
const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2628
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2629
|
+
const data = parsedOutput.body;
|
|
2630
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2631
|
+
message: smithy_client_1.expectString,
|
|
2632
|
+
});
|
|
2633
|
+
Object.assign(contents, doc);
|
|
2634
|
+
const exception = new models_0_1.RequestTimeoutException({
|
|
2635
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2636
|
+
...contents,
|
|
2637
|
+
});
|
|
2638
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2639
|
+
};
|
|
1961
2640
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1962
2641
|
const contents = (0, smithy_client_1.map)({});
|
|
1963
2642
|
const data = parsedOutput.body;
|
|
@@ -2030,6 +2709,45 @@ const de_ContentData = (output, context) => {
|
|
|
2030
2709
|
urlExpiry: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2031
2710
|
});
|
|
2032
2711
|
};
|
|
2712
|
+
const de_ImportJobData = (output, context) => {
|
|
2713
|
+
return (0, smithy_client_1.take)(output, {
|
|
2714
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2715
|
+
externalSourceConfiguration: smithy_client_1._json,
|
|
2716
|
+
failedRecordReport: smithy_client_1.expectString,
|
|
2717
|
+
importJobId: smithy_client_1.expectString,
|
|
2718
|
+
importJobType: smithy_client_1.expectString,
|
|
2719
|
+
knowledgeBaseArn: smithy_client_1.expectString,
|
|
2720
|
+
knowledgeBaseId: smithy_client_1.expectString,
|
|
2721
|
+
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2722
|
+
metadata: smithy_client_1._json,
|
|
2723
|
+
status: smithy_client_1.expectString,
|
|
2724
|
+
uploadId: smithy_client_1.expectString,
|
|
2725
|
+
url: smithy_client_1.expectString,
|
|
2726
|
+
urlExpiry: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2727
|
+
});
|
|
2728
|
+
};
|
|
2729
|
+
const de_ImportJobList = (output, context) => {
|
|
2730
|
+
const retVal = (output || [])
|
|
2731
|
+
.filter((e) => e != null)
|
|
2732
|
+
.map((entry) => {
|
|
2733
|
+
return de_ImportJobSummary(entry, context);
|
|
2734
|
+
});
|
|
2735
|
+
return retVal;
|
|
2736
|
+
};
|
|
2737
|
+
const de_ImportJobSummary = (output, context) => {
|
|
2738
|
+
return (0, smithy_client_1.take)(output, {
|
|
2739
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2740
|
+
externalSourceConfiguration: smithy_client_1._json,
|
|
2741
|
+
importJobId: smithy_client_1.expectString,
|
|
2742
|
+
importJobType: smithy_client_1.expectString,
|
|
2743
|
+
knowledgeBaseArn: smithy_client_1.expectString,
|
|
2744
|
+
knowledgeBaseId: smithy_client_1.expectString,
|
|
2745
|
+
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2746
|
+
metadata: smithy_client_1._json,
|
|
2747
|
+
status: smithy_client_1.expectString,
|
|
2748
|
+
uploadId: smithy_client_1.expectString,
|
|
2749
|
+
});
|
|
2750
|
+
};
|
|
2033
2751
|
const de_KnowledgeBaseData = (output, context) => {
|
|
2034
2752
|
return (0, smithy_client_1.take)(output, {
|
|
2035
2753
|
description: smithy_client_1.expectString,
|
|
@@ -2053,6 +2771,86 @@ const de_QueryResultsList = (output, context) => {
|
|
|
2053
2771
|
});
|
|
2054
2772
|
return retVal;
|
|
2055
2773
|
};
|
|
2774
|
+
const de_QuickResponseData = (output, context) => {
|
|
2775
|
+
return (0, smithy_client_1.take)(output, {
|
|
2776
|
+
channels: smithy_client_1._json,
|
|
2777
|
+
contentType: smithy_client_1.expectString,
|
|
2778
|
+
contents: smithy_client_1._json,
|
|
2779
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2780
|
+
description: smithy_client_1.expectString,
|
|
2781
|
+
groupingConfiguration: smithy_client_1._json,
|
|
2782
|
+
isActive: smithy_client_1.expectBoolean,
|
|
2783
|
+
knowledgeBaseArn: smithy_client_1.expectString,
|
|
2784
|
+
knowledgeBaseId: smithy_client_1.expectString,
|
|
2785
|
+
language: smithy_client_1.expectString,
|
|
2786
|
+
lastModifiedBy: smithy_client_1.expectString,
|
|
2787
|
+
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2788
|
+
name: smithy_client_1.expectString,
|
|
2789
|
+
quickResponseArn: smithy_client_1.expectString,
|
|
2790
|
+
quickResponseId: smithy_client_1.expectString,
|
|
2791
|
+
shortcutKey: smithy_client_1.expectString,
|
|
2792
|
+
status: smithy_client_1.expectString,
|
|
2793
|
+
tags: smithy_client_1._json,
|
|
2794
|
+
});
|
|
2795
|
+
};
|
|
2796
|
+
const de_QuickResponseSearchResultData = (output, context) => {
|
|
2797
|
+
return (0, smithy_client_1.take)(output, {
|
|
2798
|
+
attributesInterpolated: smithy_client_1._json,
|
|
2799
|
+
attributesNotInterpolated: smithy_client_1._json,
|
|
2800
|
+
channels: smithy_client_1._json,
|
|
2801
|
+
contentType: smithy_client_1.expectString,
|
|
2802
|
+
contents: smithy_client_1._json,
|
|
2803
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2804
|
+
description: smithy_client_1.expectString,
|
|
2805
|
+
groupingConfiguration: smithy_client_1._json,
|
|
2806
|
+
isActive: smithy_client_1.expectBoolean,
|
|
2807
|
+
knowledgeBaseArn: smithy_client_1.expectString,
|
|
2808
|
+
knowledgeBaseId: smithy_client_1.expectString,
|
|
2809
|
+
language: smithy_client_1.expectString,
|
|
2810
|
+
lastModifiedBy: smithy_client_1.expectString,
|
|
2811
|
+
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2812
|
+
name: smithy_client_1.expectString,
|
|
2813
|
+
quickResponseArn: smithy_client_1.expectString,
|
|
2814
|
+
quickResponseId: smithy_client_1.expectString,
|
|
2815
|
+
shortcutKey: smithy_client_1.expectString,
|
|
2816
|
+
status: smithy_client_1.expectString,
|
|
2817
|
+
tags: smithy_client_1._json,
|
|
2818
|
+
});
|
|
2819
|
+
};
|
|
2820
|
+
const de_QuickResponseSearchResultsList = (output, context) => {
|
|
2821
|
+
const retVal = (output || [])
|
|
2822
|
+
.filter((e) => e != null)
|
|
2823
|
+
.map((entry) => {
|
|
2824
|
+
return de_QuickResponseSearchResultData(entry, context);
|
|
2825
|
+
});
|
|
2826
|
+
return retVal;
|
|
2827
|
+
};
|
|
2828
|
+
const de_QuickResponseSummary = (output, context) => {
|
|
2829
|
+
return (0, smithy_client_1.take)(output, {
|
|
2830
|
+
channels: smithy_client_1._json,
|
|
2831
|
+
contentType: smithy_client_1.expectString,
|
|
2832
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2833
|
+
description: smithy_client_1.expectString,
|
|
2834
|
+
isActive: smithy_client_1.expectBoolean,
|
|
2835
|
+
knowledgeBaseArn: smithy_client_1.expectString,
|
|
2836
|
+
knowledgeBaseId: smithy_client_1.expectString,
|
|
2837
|
+
lastModifiedBy: smithy_client_1.expectString,
|
|
2838
|
+
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2839
|
+
name: smithy_client_1.expectString,
|
|
2840
|
+
quickResponseArn: smithy_client_1.expectString,
|
|
2841
|
+
quickResponseId: smithy_client_1.expectString,
|
|
2842
|
+
status: smithy_client_1.expectString,
|
|
2843
|
+
tags: smithy_client_1._json,
|
|
2844
|
+
});
|
|
2845
|
+
};
|
|
2846
|
+
const de_QuickResponseSummaryList = (output, context) => {
|
|
2847
|
+
const retVal = (output || [])
|
|
2848
|
+
.filter((e) => e != null)
|
|
2849
|
+
.map((entry) => {
|
|
2850
|
+
return de_QuickResponseSummary(entry, context);
|
|
2851
|
+
});
|
|
2852
|
+
return retVal;
|
|
2853
|
+
};
|
|
2056
2854
|
const de_RecommendationData = (output, context) => {
|
|
2057
2855
|
return (0, smithy_client_1.take)(output, {
|
|
2058
2856
|
document: smithy_client_1._json,
|