@aws-sdk/client-wisdom 3.303.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist-cjs/commands/CreateAssistantAssociationCommand.js +2 -2
  2. package/dist-cjs/commands/CreateAssistantCommand.js +2 -2
  3. package/dist-cjs/commands/CreateContentCommand.js +2 -2
  4. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +2 -2
  5. package/dist-cjs/commands/CreateSessionCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteAssistantAssociationCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteAssistantCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteContentCommand.js +2 -2
  9. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +2 -2
  10. package/dist-cjs/commands/GetAssistantAssociationCommand.js +2 -2
  11. package/dist-cjs/commands/GetAssistantCommand.js +2 -2
  12. package/dist-cjs/commands/GetContentCommand.js +2 -2
  13. package/dist-cjs/commands/GetContentSummaryCommand.js +2 -2
  14. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +2 -2
  15. package/dist-cjs/commands/GetRecommendationsCommand.js +2 -2
  16. package/dist-cjs/commands/GetSessionCommand.js +2 -2
  17. package/dist-cjs/commands/ListAssistantAssociationsCommand.js +2 -2
  18. package/dist-cjs/commands/ListAssistantsCommand.js +2 -2
  19. package/dist-cjs/commands/ListContentsCommand.js +2 -2
  20. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +2 -2
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  22. package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js +2 -2
  23. package/dist-cjs/commands/QueryAssistantCommand.js +2 -2
  24. package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js +2 -2
  25. package/dist-cjs/commands/SearchContentCommand.js +2 -2
  26. package/dist-cjs/commands/SearchSessionsCommand.js +2 -2
  27. package/dist-cjs/commands/StartContentUploadCommand.js +2 -2
  28. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  29. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  30. package/dist-cjs/commands/UpdateContentCommand.js +2 -2
  31. package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js +2 -2
  32. package/dist-cjs/protocols/Aws_restJson1.js +431 -447
  33. package/dist-es/commands/CreateAssistantAssociationCommand.js +3 -3
  34. package/dist-es/commands/CreateAssistantCommand.js +3 -3
  35. package/dist-es/commands/CreateContentCommand.js +3 -3
  36. package/dist-es/commands/CreateKnowledgeBaseCommand.js +3 -3
  37. package/dist-es/commands/CreateSessionCommand.js +3 -3
  38. package/dist-es/commands/DeleteAssistantAssociationCommand.js +3 -3
  39. package/dist-es/commands/DeleteAssistantCommand.js +3 -3
  40. package/dist-es/commands/DeleteContentCommand.js +3 -3
  41. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +3 -3
  42. package/dist-es/commands/GetAssistantAssociationCommand.js +3 -3
  43. package/dist-es/commands/GetAssistantCommand.js +3 -3
  44. package/dist-es/commands/GetContentCommand.js +3 -3
  45. package/dist-es/commands/GetContentSummaryCommand.js +3 -3
  46. package/dist-es/commands/GetKnowledgeBaseCommand.js +3 -3
  47. package/dist-es/commands/GetRecommendationsCommand.js +3 -3
  48. package/dist-es/commands/GetSessionCommand.js +3 -3
  49. package/dist-es/commands/ListAssistantAssociationsCommand.js +3 -3
  50. package/dist-es/commands/ListAssistantsCommand.js +3 -3
  51. package/dist-es/commands/ListContentsCommand.js +3 -3
  52. package/dist-es/commands/ListKnowledgeBasesCommand.js +3 -3
  53. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  54. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +3 -3
  55. package/dist-es/commands/QueryAssistantCommand.js +3 -3
  56. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +3 -3
  57. package/dist-es/commands/SearchContentCommand.js +3 -3
  58. package/dist-es/commands/SearchSessionsCommand.js +3 -3
  59. package/dist-es/commands/StartContentUploadCommand.js +3 -3
  60. package/dist-es/commands/TagResourceCommand.js +3 -3
  61. package/dist-es/commands/UntagResourceCommand.js +3 -3
  62. package/dist-es/commands/UpdateContentCommand.js +3 -3
  63. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +3 -3
  64. package/dist-es/protocols/Aws_restJson1.js +367 -383
  65. package/dist-types/protocols/Aws_restJson1.d.ts +248 -62
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +62 -62
  67. package/package.json +29 -29
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListContentsCommand = exports.deserializeAws_restJson1ListAssistantsCommand = exports.deserializeAws_restJson1ListAssistantAssociationsCommand = exports.deserializeAws_restJson1GetSessionCommand = exports.deserializeAws_restJson1GetRecommendationsCommand = exports.deserializeAws_restJson1GetKnowledgeBaseCommand = exports.deserializeAws_restJson1GetContentSummaryCommand = exports.deserializeAws_restJson1GetContentCommand = exports.deserializeAws_restJson1GetAssistantAssociationCommand = exports.deserializeAws_restJson1GetAssistantCommand = exports.deserializeAws_restJson1DeleteKnowledgeBaseCommand = exports.deserializeAws_restJson1DeleteContentCommand = exports.deserializeAws_restJson1DeleteAssistantAssociationCommand = exports.deserializeAws_restJson1DeleteAssistantCommand = exports.deserializeAws_restJson1CreateSessionCommand = exports.deserializeAws_restJson1CreateKnowledgeBaseCommand = exports.deserializeAws_restJson1CreateContentCommand = exports.deserializeAws_restJson1CreateAssistantAssociationCommand = exports.deserializeAws_restJson1CreateAssistantCommand = exports.serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = exports.serializeAws_restJson1UpdateContentCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartContentUploadCommand = exports.serializeAws_restJson1SearchSessionsCommand = exports.serializeAws_restJson1SearchContentCommand = exports.serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = exports.serializeAws_restJson1QueryAssistantCommand = exports.serializeAws_restJson1NotifyRecommendationsReceivedCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListKnowledgeBasesCommand = exports.serializeAws_restJson1ListContentsCommand = exports.serializeAws_restJson1ListAssistantsCommand = exports.serializeAws_restJson1ListAssistantAssociationsCommand = exports.serializeAws_restJson1GetSessionCommand = exports.serializeAws_restJson1GetRecommendationsCommand = exports.serializeAws_restJson1GetKnowledgeBaseCommand = exports.serializeAws_restJson1GetContentSummaryCommand = exports.serializeAws_restJson1GetContentCommand = exports.serializeAws_restJson1GetAssistantAssociationCommand = exports.serializeAws_restJson1GetAssistantCommand = exports.serializeAws_restJson1DeleteKnowledgeBaseCommand = exports.serializeAws_restJson1DeleteContentCommand = exports.serializeAws_restJson1DeleteAssistantAssociationCommand = exports.serializeAws_restJson1DeleteAssistantCommand = exports.serializeAws_restJson1CreateSessionCommand = exports.serializeAws_restJson1CreateKnowledgeBaseCommand = exports.serializeAws_restJson1CreateContentCommand = exports.serializeAws_restJson1CreateAssistantAssociationCommand = exports.serializeAws_restJson1CreateAssistantCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = exports.deserializeAws_restJson1UpdateContentCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartContentUploadCommand = exports.deserializeAws_restJson1SearchSessionsCommand = exports.deserializeAws_restJson1SearchContentCommand = exports.deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = exports.deserializeAws_restJson1QueryAssistantCommand = exports.deserializeAws_restJson1NotifyRecommendationsReceivedCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListKnowledgeBasesCommand = void 0;
3
+ exports.de_ListContentsCommand = exports.de_ListAssistantsCommand = exports.de_ListAssistantAssociationsCommand = exports.de_GetSessionCommand = exports.de_GetRecommendationsCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetContentSummaryCommand = exports.de_GetContentCommand = exports.de_GetAssistantAssociationCommand = exports.de_GetAssistantCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteContentCommand = exports.de_DeleteAssistantAssociationCommand = exports.de_DeleteAssistantCommand = exports.de_CreateSessionCommand = exports.de_CreateKnowledgeBaseCommand = exports.de_CreateContentCommand = exports.de_CreateAssistantAssociationCommand = exports.de_CreateAssistantCommand = exports.se_UpdateKnowledgeBaseTemplateUriCommand = exports.se_UpdateContentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartContentUploadCommand = exports.se_SearchSessionsCommand = exports.se_SearchContentCommand = exports.se_RemoveKnowledgeBaseTemplateUriCommand = exports.se_QueryAssistantCommand = exports.se_NotifyRecommendationsReceivedCommand = exports.se_ListTagsForResourceCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListContentsCommand = exports.se_ListAssistantsCommand = exports.se_ListAssistantAssociationsCommand = exports.se_GetSessionCommand = exports.se_GetRecommendationsCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetContentSummaryCommand = exports.se_GetContentCommand = exports.se_GetAssistantAssociationCommand = exports.se_GetAssistantCommand = exports.se_DeleteKnowledgeBaseCommand = exports.se_DeleteContentCommand = exports.se_DeleteAssistantAssociationCommand = exports.se_DeleteAssistantCommand = exports.se_CreateSessionCommand = exports.se_CreateKnowledgeBaseCommand = exports.se_CreateContentCommand = exports.se_CreateAssistantAssociationCommand = exports.se_CreateAssistantCommand = void 0;
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;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const uuid_1 = require("uuid");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const WisdomServiceException_1 = require("../models/WisdomServiceException");
10
- const serializeAws_restJson1CreateAssistantCommand = async (input, context) => {
10
+ const se_CreateAssistantCommand = async (input, context) => {
11
11
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
12
  const headers = {
13
13
  "content-type": "application/json",
@@ -19,9 +19,9 @@ const serializeAws_restJson1CreateAssistantCommand = async (input, context) => {
19
19
  ...(input.description != null && { description: input.description }),
20
20
  ...(input.name != null && { name: input.name }),
21
21
  ...(input.serverSideEncryptionConfiguration != null && {
22
- serverSideEncryptionConfiguration: serializeAws_restJson1ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
22
+ serverSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
23
23
  }),
24
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
24
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
25
25
  ...(input.type != null && { type: input.type }),
26
26
  });
27
27
  return new protocol_http_1.HttpRequest({
@@ -34,8 +34,8 @@ const serializeAws_restJson1CreateAssistantCommand = async (input, context) => {
34
34
  body,
35
35
  });
36
36
  };
37
- exports.serializeAws_restJson1CreateAssistantCommand = serializeAws_restJson1CreateAssistantCommand;
38
- const serializeAws_restJson1CreateAssistantAssociationCommand = async (input, context) => {
37
+ exports.se_CreateAssistantCommand = se_CreateAssistantCommand;
38
+ const se_CreateAssistantAssociationCommand = async (input, context) => {
39
39
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
40
  const headers = {
41
41
  "content-type": "application/json",
@@ -44,12 +44,10 @@ const serializeAws_restJson1CreateAssistantAssociationCommand = async (input, co
44
44
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assistantId", () => input.assistantId, "{assistantId}", false);
45
45
  let body;
46
46
  body = JSON.stringify({
47
- ...(input.association != null && {
48
- association: serializeAws_restJson1AssistantAssociationInputData(input.association, context),
49
- }),
47
+ ...(input.association != null && { association: se_AssistantAssociationInputData(input.association, context) }),
50
48
  ...(input.associationType != null && { associationType: input.associationType }),
51
49
  clientToken: input.clientToken ?? (0, uuid_1.v4)(),
52
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
50
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
53
51
  });
54
52
  return new protocol_http_1.HttpRequest({
55
53
  protocol,
@@ -61,8 +59,8 @@ const serializeAws_restJson1CreateAssistantAssociationCommand = async (input, co
61
59
  body,
62
60
  });
63
61
  };
64
- exports.serializeAws_restJson1CreateAssistantAssociationCommand = serializeAws_restJson1CreateAssistantAssociationCommand;
65
- const serializeAws_restJson1CreateContentCommand = async (input, context) => {
62
+ exports.se_CreateAssistantAssociationCommand = se_CreateAssistantAssociationCommand;
63
+ const se_CreateContentCommand = async (input, context) => {
66
64
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
67
65
  const headers = {
68
66
  "content-type": "application/json",
@@ -73,10 +71,10 @@ const serializeAws_restJson1CreateContentCommand = async (input, context) => {
73
71
  let body;
74
72
  body = JSON.stringify({
75
73
  clientToken: input.clientToken ?? (0, uuid_1.v4)(),
76
- ...(input.metadata != null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) }),
74
+ ...(input.metadata != null && { metadata: se_ContentMetadata(input.metadata, context) }),
77
75
  ...(input.name != null && { name: input.name }),
78
76
  ...(input.overrideLinkOutUri != null && { overrideLinkOutUri: input.overrideLinkOutUri }),
79
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
77
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
80
78
  ...(input.title != null && { title: input.title }),
81
79
  ...(input.uploadId != null && { uploadId: input.uploadId }),
82
80
  });
@@ -90,8 +88,8 @@ const serializeAws_restJson1CreateContentCommand = async (input, context) => {
90
88
  body,
91
89
  });
92
90
  };
93
- exports.serializeAws_restJson1CreateContentCommand = serializeAws_restJson1CreateContentCommand;
94
- const serializeAws_restJson1CreateKnowledgeBaseCommand = async (input, context) => {
91
+ exports.se_CreateContentCommand = se_CreateContentCommand;
92
+ const se_CreateKnowledgeBaseCommand = async (input, context) => {
95
93
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
94
  const headers = {
97
95
  "content-type": "application/json",
@@ -104,15 +102,15 @@ const serializeAws_restJson1CreateKnowledgeBaseCommand = async (input, context)
104
102
  ...(input.knowledgeBaseType != null && { knowledgeBaseType: input.knowledgeBaseType }),
105
103
  ...(input.name != null && { name: input.name }),
106
104
  ...(input.renderingConfiguration != null && {
107
- renderingConfiguration: serializeAws_restJson1RenderingConfiguration(input.renderingConfiguration, context),
105
+ renderingConfiguration: se_RenderingConfiguration(input.renderingConfiguration, context),
108
106
  }),
109
107
  ...(input.serverSideEncryptionConfiguration != null && {
110
- serverSideEncryptionConfiguration: serializeAws_restJson1ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
108
+ serverSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
111
109
  }),
112
110
  ...(input.sourceConfiguration != null && {
113
- sourceConfiguration: serializeAws_restJson1SourceConfiguration(input.sourceConfiguration, context),
111
+ sourceConfiguration: se_SourceConfiguration(input.sourceConfiguration, context),
114
112
  }),
115
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
113
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
116
114
  });
117
115
  return new protocol_http_1.HttpRequest({
118
116
  protocol,
@@ -124,8 +122,8 @@ const serializeAws_restJson1CreateKnowledgeBaseCommand = async (input, context)
124
122
  body,
125
123
  });
126
124
  };
127
- exports.serializeAws_restJson1CreateKnowledgeBaseCommand = serializeAws_restJson1CreateKnowledgeBaseCommand;
128
- const serializeAws_restJson1CreateSessionCommand = async (input, context) => {
125
+ exports.se_CreateKnowledgeBaseCommand = se_CreateKnowledgeBaseCommand;
126
+ const se_CreateSessionCommand = async (input, context) => {
129
127
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
128
  const headers = {
131
129
  "content-type": "application/json",
@@ -137,7 +135,7 @@ const serializeAws_restJson1CreateSessionCommand = async (input, context) => {
137
135
  clientToken: input.clientToken ?? (0, uuid_1.v4)(),
138
136
  ...(input.description != null && { description: input.description }),
139
137
  ...(input.name != null && { name: input.name }),
140
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
138
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
141
139
  });
142
140
  return new protocol_http_1.HttpRequest({
143
141
  protocol,
@@ -149,8 +147,8 @@ const serializeAws_restJson1CreateSessionCommand = async (input, context) => {
149
147
  body,
150
148
  });
151
149
  };
152
- exports.serializeAws_restJson1CreateSessionCommand = serializeAws_restJson1CreateSessionCommand;
153
- const serializeAws_restJson1DeleteAssistantCommand = async (input, context) => {
150
+ exports.se_CreateSessionCommand = se_CreateSessionCommand;
151
+ const se_DeleteAssistantCommand = async (input, context) => {
154
152
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
155
153
  const headers = {};
156
154
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}";
@@ -166,8 +164,8 @@ const serializeAws_restJson1DeleteAssistantCommand = async (input, context) => {
166
164
  body,
167
165
  });
168
166
  };
169
- exports.serializeAws_restJson1DeleteAssistantCommand = serializeAws_restJson1DeleteAssistantCommand;
170
- const serializeAws_restJson1DeleteAssistantAssociationCommand = async (input, context) => {
167
+ exports.se_DeleteAssistantCommand = se_DeleteAssistantCommand;
168
+ const se_DeleteAssistantAssociationCommand = async (input, context) => {
171
169
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
172
170
  const headers = {};
173
171
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -185,8 +183,8 @@ const serializeAws_restJson1DeleteAssistantAssociationCommand = async (input, co
185
183
  body,
186
184
  });
187
185
  };
188
- exports.serializeAws_restJson1DeleteAssistantAssociationCommand = serializeAws_restJson1DeleteAssistantAssociationCommand;
189
- const serializeAws_restJson1DeleteContentCommand = async (input, context) => {
186
+ exports.se_DeleteAssistantAssociationCommand = se_DeleteAssistantAssociationCommand;
187
+ const se_DeleteContentCommand = async (input, context) => {
190
188
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
189
  const headers = {};
192
190
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -204,8 +202,8 @@ const serializeAws_restJson1DeleteContentCommand = async (input, context) => {
204
202
  body,
205
203
  });
206
204
  };
207
- exports.serializeAws_restJson1DeleteContentCommand = serializeAws_restJson1DeleteContentCommand;
208
- const serializeAws_restJson1DeleteKnowledgeBaseCommand = async (input, context) => {
205
+ exports.se_DeleteContentCommand = se_DeleteContentCommand;
206
+ const se_DeleteKnowledgeBaseCommand = async (input, context) => {
209
207
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
208
  const headers = {};
211
209
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}";
@@ -221,8 +219,8 @@ const serializeAws_restJson1DeleteKnowledgeBaseCommand = async (input, context)
221
219
  body,
222
220
  });
223
221
  };
224
- exports.serializeAws_restJson1DeleteKnowledgeBaseCommand = serializeAws_restJson1DeleteKnowledgeBaseCommand;
225
- const serializeAws_restJson1GetAssistantCommand = async (input, context) => {
222
+ exports.se_DeleteKnowledgeBaseCommand = se_DeleteKnowledgeBaseCommand;
223
+ const se_GetAssistantCommand = async (input, context) => {
226
224
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
227
225
  const headers = {};
228
226
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}";
@@ -238,8 +236,8 @@ const serializeAws_restJson1GetAssistantCommand = async (input, context) => {
238
236
  body,
239
237
  });
240
238
  };
241
- exports.serializeAws_restJson1GetAssistantCommand = serializeAws_restJson1GetAssistantCommand;
242
- const serializeAws_restJson1GetAssistantAssociationCommand = async (input, context) => {
239
+ exports.se_GetAssistantCommand = se_GetAssistantCommand;
240
+ const se_GetAssistantAssociationCommand = async (input, context) => {
243
241
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
242
  const headers = {};
245
243
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -257,8 +255,8 @@ const serializeAws_restJson1GetAssistantAssociationCommand = async (input, conte
257
255
  body,
258
256
  });
259
257
  };
260
- exports.serializeAws_restJson1GetAssistantAssociationCommand = serializeAws_restJson1GetAssistantAssociationCommand;
261
- const serializeAws_restJson1GetContentCommand = async (input, context) => {
258
+ exports.se_GetAssistantAssociationCommand = se_GetAssistantAssociationCommand;
259
+ const se_GetContentCommand = async (input, context) => {
262
260
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
261
  const headers = {};
264
262
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -276,8 +274,8 @@ const serializeAws_restJson1GetContentCommand = async (input, context) => {
276
274
  body,
277
275
  });
278
276
  };
279
- exports.serializeAws_restJson1GetContentCommand = serializeAws_restJson1GetContentCommand;
280
- const serializeAws_restJson1GetContentSummaryCommand = async (input, context) => {
277
+ exports.se_GetContentCommand = se_GetContentCommand;
278
+ const se_GetContentSummaryCommand = async (input, context) => {
281
279
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
280
  const headers = {};
283
281
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -295,8 +293,8 @@ const serializeAws_restJson1GetContentSummaryCommand = async (input, context) =>
295
293
  body,
296
294
  });
297
295
  };
298
- exports.serializeAws_restJson1GetContentSummaryCommand = serializeAws_restJson1GetContentSummaryCommand;
299
- const serializeAws_restJson1GetKnowledgeBaseCommand = async (input, context) => {
296
+ exports.se_GetContentSummaryCommand = se_GetContentSummaryCommand;
297
+ const se_GetKnowledgeBaseCommand = async (input, context) => {
300
298
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
301
299
  const headers = {};
302
300
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}";
@@ -312,8 +310,8 @@ const serializeAws_restJson1GetKnowledgeBaseCommand = async (input, context) =>
312
310
  body,
313
311
  });
314
312
  };
315
- exports.serializeAws_restJson1GetKnowledgeBaseCommand = serializeAws_restJson1GetKnowledgeBaseCommand;
316
- const serializeAws_restJson1GetRecommendationsCommand = async (input, context) => {
313
+ exports.se_GetKnowledgeBaseCommand = se_GetKnowledgeBaseCommand;
314
+ const se_GetRecommendationsCommand = async (input, context) => {
317
315
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
316
  const headers = {};
319
317
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -336,8 +334,8 @@ const serializeAws_restJson1GetRecommendationsCommand = async (input, context) =
336
334
  body,
337
335
  });
338
336
  };
339
- exports.serializeAws_restJson1GetRecommendationsCommand = serializeAws_restJson1GetRecommendationsCommand;
340
- const serializeAws_restJson1GetSessionCommand = async (input, context) => {
337
+ exports.se_GetRecommendationsCommand = se_GetRecommendationsCommand;
338
+ const se_GetSessionCommand = async (input, context) => {
341
339
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
342
340
  const headers = {};
343
341
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -355,8 +353,8 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
355
353
  body,
356
354
  });
357
355
  };
358
- exports.serializeAws_restJson1GetSessionCommand = serializeAws_restJson1GetSessionCommand;
359
- const serializeAws_restJson1ListAssistantAssociationsCommand = async (input, context) => {
356
+ exports.se_GetSessionCommand = se_GetSessionCommand;
357
+ const se_ListAssistantAssociationsCommand = async (input, context) => {
360
358
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
359
  const headers = {};
362
360
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/associations";
@@ -377,8 +375,8 @@ const serializeAws_restJson1ListAssistantAssociationsCommand = async (input, con
377
375
  body,
378
376
  });
379
377
  };
380
- exports.serializeAws_restJson1ListAssistantAssociationsCommand = serializeAws_restJson1ListAssistantAssociationsCommand;
381
- const serializeAws_restJson1ListAssistantsCommand = async (input, context) => {
378
+ exports.se_ListAssistantAssociationsCommand = se_ListAssistantAssociationsCommand;
379
+ const se_ListAssistantsCommand = async (input, context) => {
382
380
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
383
381
  const headers = {};
384
382
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants";
@@ -398,8 +396,8 @@ const serializeAws_restJson1ListAssistantsCommand = async (input, context) => {
398
396
  body,
399
397
  });
400
398
  };
401
- exports.serializeAws_restJson1ListAssistantsCommand = serializeAws_restJson1ListAssistantsCommand;
402
- const serializeAws_restJson1ListContentsCommand = async (input, context) => {
399
+ exports.se_ListAssistantsCommand = se_ListAssistantsCommand;
400
+ const se_ListContentsCommand = async (input, context) => {
403
401
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
402
  const headers = {};
405
403
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -421,8 +419,8 @@ const serializeAws_restJson1ListContentsCommand = async (input, context) => {
421
419
  body,
422
420
  });
423
421
  };
424
- exports.serializeAws_restJson1ListContentsCommand = serializeAws_restJson1ListContentsCommand;
425
- const serializeAws_restJson1ListKnowledgeBasesCommand = async (input, context) => {
422
+ exports.se_ListContentsCommand = se_ListContentsCommand;
423
+ const se_ListKnowledgeBasesCommand = async (input, context) => {
426
424
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
427
425
  const headers = {};
428
426
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases";
@@ -442,8 +440,8 @@ const serializeAws_restJson1ListKnowledgeBasesCommand = async (input, context) =
442
440
  body,
443
441
  });
444
442
  };
445
- exports.serializeAws_restJson1ListKnowledgeBasesCommand = serializeAws_restJson1ListKnowledgeBasesCommand;
446
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
443
+ exports.se_ListKnowledgeBasesCommand = se_ListKnowledgeBasesCommand;
444
+ const se_ListTagsForResourceCommand = async (input, context) => {
447
445
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
448
446
  const headers = {};
449
447
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -459,8 +457,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
459
457
  body,
460
458
  });
461
459
  };
462
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
463
- const serializeAws_restJson1NotifyRecommendationsReceivedCommand = async (input, context) => {
460
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
461
+ const se_NotifyRecommendationsReceivedCommand = async (input, context) => {
464
462
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
465
463
  const headers = {
466
464
  "content-type": "application/json",
@@ -472,7 +470,7 @@ const serializeAws_restJson1NotifyRecommendationsReceivedCommand = async (input,
472
470
  let body;
473
471
  body = JSON.stringify({
474
472
  ...(input.recommendationIds != null && {
475
- recommendationIds: serializeAws_restJson1RecommendationIdList(input.recommendationIds, context),
473
+ recommendationIds: se_RecommendationIdList(input.recommendationIds, context),
476
474
  }),
477
475
  });
478
476
  return new protocol_http_1.HttpRequest({
@@ -485,8 +483,8 @@ const serializeAws_restJson1NotifyRecommendationsReceivedCommand = async (input,
485
483
  body,
486
484
  });
487
485
  };
488
- exports.serializeAws_restJson1NotifyRecommendationsReceivedCommand = serializeAws_restJson1NotifyRecommendationsReceivedCommand;
489
- const serializeAws_restJson1QueryAssistantCommand = async (input, context) => {
486
+ exports.se_NotifyRecommendationsReceivedCommand = se_NotifyRecommendationsReceivedCommand;
487
+ const se_QueryAssistantCommand = async (input, context) => {
490
488
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
491
489
  const headers = {
492
490
  "content-type": "application/json",
@@ -509,8 +507,8 @@ const serializeAws_restJson1QueryAssistantCommand = async (input, context) => {
509
507
  body,
510
508
  });
511
509
  };
512
- exports.serializeAws_restJson1QueryAssistantCommand = serializeAws_restJson1QueryAssistantCommand;
513
- const serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = async (input, context) => {
510
+ exports.se_QueryAssistantCommand = se_QueryAssistantCommand;
511
+ const se_RemoveKnowledgeBaseTemplateUriCommand = async (input, context) => {
514
512
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
515
513
  const headers = {};
516
514
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -527,8 +525,8 @@ const serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = async (input
527
525
  body,
528
526
  });
529
527
  };
530
- exports.serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand;
531
- const serializeAws_restJson1SearchContentCommand = async (input, context) => {
528
+ exports.se_RemoveKnowledgeBaseTemplateUriCommand = se_RemoveKnowledgeBaseTemplateUriCommand;
529
+ const se_SearchContentCommand = async (input, context) => {
532
530
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
533
531
  const headers = {
534
532
  "content-type": "application/json",
@@ -541,9 +539,7 @@ const serializeAws_restJson1SearchContentCommand = async (input, context) => {
541
539
  });
542
540
  let body;
543
541
  body = JSON.stringify({
544
- ...(input.searchExpression != null && {
545
- searchExpression: serializeAws_restJson1SearchExpression(input.searchExpression, context),
546
- }),
542
+ ...(input.searchExpression != null && { searchExpression: se_SearchExpression(input.searchExpression, context) }),
547
543
  });
548
544
  return new protocol_http_1.HttpRequest({
549
545
  protocol,
@@ -556,8 +552,8 @@ const serializeAws_restJson1SearchContentCommand = async (input, context) => {
556
552
  body,
557
553
  });
558
554
  };
559
- exports.serializeAws_restJson1SearchContentCommand = serializeAws_restJson1SearchContentCommand;
560
- const serializeAws_restJson1SearchSessionsCommand = async (input, context) => {
555
+ exports.se_SearchContentCommand = se_SearchContentCommand;
556
+ const se_SearchSessionsCommand = async (input, context) => {
561
557
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
562
558
  const headers = {
563
559
  "content-type": "application/json",
@@ -570,9 +566,7 @@ const serializeAws_restJson1SearchSessionsCommand = async (input, context) => {
570
566
  });
571
567
  let body;
572
568
  body = JSON.stringify({
573
- ...(input.searchExpression != null && {
574
- searchExpression: serializeAws_restJson1SearchExpression(input.searchExpression, context),
575
- }),
569
+ ...(input.searchExpression != null && { searchExpression: se_SearchExpression(input.searchExpression, context) }),
576
570
  });
577
571
  return new protocol_http_1.HttpRequest({
578
572
  protocol,
@@ -585,8 +579,8 @@ const serializeAws_restJson1SearchSessionsCommand = async (input, context) => {
585
579
  body,
586
580
  });
587
581
  };
588
- exports.serializeAws_restJson1SearchSessionsCommand = serializeAws_restJson1SearchSessionsCommand;
589
- const serializeAws_restJson1StartContentUploadCommand = async (input, context) => {
582
+ exports.se_SearchSessionsCommand = se_SearchSessionsCommand;
583
+ const se_StartContentUploadCommand = async (input, context) => {
590
584
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
591
585
  const headers = {
592
586
  "content-type": "application/json",
@@ -607,8 +601,8 @@ const serializeAws_restJson1StartContentUploadCommand = async (input, context) =
607
601
  body,
608
602
  });
609
603
  };
610
- exports.serializeAws_restJson1StartContentUploadCommand = serializeAws_restJson1StartContentUploadCommand;
611
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
604
+ exports.se_StartContentUploadCommand = se_StartContentUploadCommand;
605
+ const se_TagResourceCommand = async (input, context) => {
612
606
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
613
607
  const headers = {
614
608
  "content-type": "application/json",
@@ -617,7 +611,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
617
611
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
618
612
  let body;
619
613
  body = JSON.stringify({
620
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
614
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
621
615
  });
622
616
  return new protocol_http_1.HttpRequest({
623
617
  protocol,
@@ -629,8 +623,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
629
623
  body,
630
624
  });
631
625
  };
632
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
633
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
626
+ exports.se_TagResourceCommand = se_TagResourceCommand;
627
+ const se_UntagResourceCommand = async (input, context) => {
634
628
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
635
629
  const headers = {};
636
630
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -653,8 +647,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
653
647
  body,
654
648
  });
655
649
  };
656
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
657
- const serializeAws_restJson1UpdateContentCommand = async (input, context) => {
650
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
651
+ const se_UpdateContentCommand = async (input, context) => {
658
652
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
659
653
  const headers = {
660
654
  "content-type": "application/json",
@@ -665,7 +659,7 @@ const serializeAws_restJson1UpdateContentCommand = async (input, context) => {
665
659
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "contentId", () => input.contentId, "{contentId}", false);
666
660
  let body;
667
661
  body = JSON.stringify({
668
- ...(input.metadata != null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) }),
662
+ ...(input.metadata != null && { metadata: se_ContentMetadata(input.metadata, context) }),
669
663
  ...(input.overrideLinkOutUri != null && { overrideLinkOutUri: input.overrideLinkOutUri }),
670
664
  ...(input.removeOverrideLinkOutUri != null && { removeOverrideLinkOutUri: input.removeOverrideLinkOutUri }),
671
665
  ...(input.revisionId != null && { revisionId: input.revisionId }),
@@ -682,8 +676,8 @@ const serializeAws_restJson1UpdateContentCommand = async (input, context) => {
682
676
  body,
683
677
  });
684
678
  };
685
- exports.serializeAws_restJson1UpdateContentCommand = serializeAws_restJson1UpdateContentCommand;
686
- const serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = async (input, context) => {
679
+ exports.se_UpdateContentCommand = se_UpdateContentCommand;
680
+ const se_UpdateKnowledgeBaseTemplateUriCommand = async (input, context) => {
687
681
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
688
682
  const headers = {
689
683
  "content-type": "application/json",
@@ -705,22 +699,22 @@ const serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = async (input
705
699
  body,
706
700
  });
707
701
  };
708
- exports.serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand;
709
- const deserializeAws_restJson1CreateAssistantCommand = async (output, context) => {
702
+ exports.se_UpdateKnowledgeBaseTemplateUriCommand = se_UpdateKnowledgeBaseTemplateUriCommand;
703
+ const de_CreateAssistantCommand = async (output, context) => {
710
704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
711
- return deserializeAws_restJson1CreateAssistantCommandError(output, context);
705
+ return de_CreateAssistantCommandError(output, context);
712
706
  }
713
707
  const contents = map({
714
708
  $metadata: deserializeMetadata(output),
715
709
  });
716
710
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
717
711
  if (data.assistant != null) {
718
- contents.assistant = deserializeAws_restJson1AssistantData(data.assistant, context);
712
+ contents.assistant = de_AssistantData(data.assistant, context);
719
713
  }
720
714
  return contents;
721
715
  };
722
- exports.deserializeAws_restJson1CreateAssistantCommand = deserializeAws_restJson1CreateAssistantCommand;
723
- const deserializeAws_restJson1CreateAssistantCommandError = async (output, context) => {
716
+ exports.de_CreateAssistantCommand = de_CreateAssistantCommand;
717
+ const de_CreateAssistantCommandError = async (output, context) => {
724
718
  const parsedOutput = {
725
719
  ...output,
726
720
  body: await parseErrorBody(output.body, context),
@@ -729,16 +723,16 @@ const deserializeAws_restJson1CreateAssistantCommandError = async (output, conte
729
723
  switch (errorCode) {
730
724
  case "AccessDeniedException":
731
725
  case "com.amazonaws.wisdom#AccessDeniedException":
732
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
726
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
733
727
  case "ConflictException":
734
728
  case "com.amazonaws.wisdom#ConflictException":
735
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
729
+ throw await de_ConflictExceptionRes(parsedOutput, context);
736
730
  case "ServiceQuotaExceededException":
737
731
  case "com.amazonaws.wisdom#ServiceQuotaExceededException":
738
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
732
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
739
733
  case "ValidationException":
740
734
  case "com.amazonaws.wisdom#ValidationException":
741
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
735
+ throw await de_ValidationExceptionRes(parsedOutput, context);
742
736
  default:
743
737
  const parsedBody = parsedOutput.body;
744
738
  (0, smithy_client_1.throwDefaultError)({
@@ -749,21 +743,21 @@ const deserializeAws_restJson1CreateAssistantCommandError = async (output, conte
749
743
  });
750
744
  }
751
745
  };
752
- const deserializeAws_restJson1CreateAssistantAssociationCommand = async (output, context) => {
746
+ const de_CreateAssistantAssociationCommand = async (output, context) => {
753
747
  if (output.statusCode !== 200 && output.statusCode >= 300) {
754
- return deserializeAws_restJson1CreateAssistantAssociationCommandError(output, context);
748
+ return de_CreateAssistantAssociationCommandError(output, context);
755
749
  }
756
750
  const contents = map({
757
751
  $metadata: deserializeMetadata(output),
758
752
  });
759
753
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
760
754
  if (data.assistantAssociation != null) {
761
- contents.assistantAssociation = deserializeAws_restJson1AssistantAssociationData(data.assistantAssociation, context);
755
+ contents.assistantAssociation = de_AssistantAssociationData(data.assistantAssociation, context);
762
756
  }
763
757
  return contents;
764
758
  };
765
- exports.deserializeAws_restJson1CreateAssistantAssociationCommand = deserializeAws_restJson1CreateAssistantAssociationCommand;
766
- const deserializeAws_restJson1CreateAssistantAssociationCommandError = async (output, context) => {
759
+ exports.de_CreateAssistantAssociationCommand = de_CreateAssistantAssociationCommand;
760
+ const de_CreateAssistantAssociationCommandError = async (output, context) => {
767
761
  const parsedOutput = {
768
762
  ...output,
769
763
  body: await parseErrorBody(output.body, context),
@@ -772,19 +766,19 @@ const deserializeAws_restJson1CreateAssistantAssociationCommandError = async (ou
772
766
  switch (errorCode) {
773
767
  case "AccessDeniedException":
774
768
  case "com.amazonaws.wisdom#AccessDeniedException":
775
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
769
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
776
770
  case "ConflictException":
777
771
  case "com.amazonaws.wisdom#ConflictException":
778
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
772
+ throw await de_ConflictExceptionRes(parsedOutput, context);
779
773
  case "ResourceNotFoundException":
780
774
  case "com.amazonaws.wisdom#ResourceNotFoundException":
781
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
775
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
782
776
  case "ServiceQuotaExceededException":
783
777
  case "com.amazonaws.wisdom#ServiceQuotaExceededException":
784
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
778
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
785
779
  case "ValidationException":
786
780
  case "com.amazonaws.wisdom#ValidationException":
787
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
781
+ throw await de_ValidationExceptionRes(parsedOutput, context);
788
782
  default:
789
783
  const parsedBody = parsedOutput.body;
790
784
  (0, smithy_client_1.throwDefaultError)({
@@ -795,21 +789,21 @@ const deserializeAws_restJson1CreateAssistantAssociationCommandError = async (ou
795
789
  });
796
790
  }
797
791
  };
798
- const deserializeAws_restJson1CreateContentCommand = async (output, context) => {
792
+ const de_CreateContentCommand = async (output, context) => {
799
793
  if (output.statusCode !== 200 && output.statusCode >= 300) {
800
- return deserializeAws_restJson1CreateContentCommandError(output, context);
794
+ return de_CreateContentCommandError(output, context);
801
795
  }
802
796
  const contents = map({
803
797
  $metadata: deserializeMetadata(output),
804
798
  });
805
799
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
806
800
  if (data.content != null) {
807
- contents.content = deserializeAws_restJson1ContentData(data.content, context);
801
+ contents.content = de_ContentData(data.content, context);
808
802
  }
809
803
  return contents;
810
804
  };
811
- exports.deserializeAws_restJson1CreateContentCommand = deserializeAws_restJson1CreateContentCommand;
812
- const deserializeAws_restJson1CreateContentCommandError = async (output, context) => {
805
+ exports.de_CreateContentCommand = de_CreateContentCommand;
806
+ const de_CreateContentCommandError = async (output, context) => {
813
807
  const parsedOutput = {
814
808
  ...output,
815
809
  body: await parseErrorBody(output.body, context),
@@ -818,19 +812,19 @@ const deserializeAws_restJson1CreateContentCommandError = async (output, context
818
812
  switch (errorCode) {
819
813
  case "AccessDeniedException":
820
814
  case "com.amazonaws.wisdom#AccessDeniedException":
821
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
815
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
822
816
  case "ConflictException":
823
817
  case "com.amazonaws.wisdom#ConflictException":
824
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
818
+ throw await de_ConflictExceptionRes(parsedOutput, context);
825
819
  case "ResourceNotFoundException":
826
820
  case "com.amazonaws.wisdom#ResourceNotFoundException":
827
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
821
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
828
822
  case "ServiceQuotaExceededException":
829
823
  case "com.amazonaws.wisdom#ServiceQuotaExceededException":
830
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
824
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
831
825
  case "ValidationException":
832
826
  case "com.amazonaws.wisdom#ValidationException":
833
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
827
+ throw await de_ValidationExceptionRes(parsedOutput, context);
834
828
  default:
835
829
  const parsedBody = parsedOutput.body;
836
830
  (0, smithy_client_1.throwDefaultError)({
@@ -841,21 +835,21 @@ const deserializeAws_restJson1CreateContentCommandError = async (output, context
841
835
  });
842
836
  }
843
837
  };
844
- const deserializeAws_restJson1CreateKnowledgeBaseCommand = async (output, context) => {
838
+ const de_CreateKnowledgeBaseCommand = async (output, context) => {
845
839
  if (output.statusCode !== 200 && output.statusCode >= 300) {
846
- return deserializeAws_restJson1CreateKnowledgeBaseCommandError(output, context);
840
+ return de_CreateKnowledgeBaseCommandError(output, context);
847
841
  }
848
842
  const contents = map({
849
843
  $metadata: deserializeMetadata(output),
850
844
  });
851
845
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
852
846
  if (data.knowledgeBase != null) {
853
- contents.knowledgeBase = deserializeAws_restJson1KnowledgeBaseData(data.knowledgeBase, context);
847
+ contents.knowledgeBase = de_KnowledgeBaseData(data.knowledgeBase, context);
854
848
  }
855
849
  return contents;
856
850
  };
857
- exports.deserializeAws_restJson1CreateKnowledgeBaseCommand = deserializeAws_restJson1CreateKnowledgeBaseCommand;
858
- const deserializeAws_restJson1CreateKnowledgeBaseCommandError = async (output, context) => {
851
+ exports.de_CreateKnowledgeBaseCommand = de_CreateKnowledgeBaseCommand;
852
+ const de_CreateKnowledgeBaseCommandError = async (output, context) => {
859
853
  const parsedOutput = {
860
854
  ...output,
861
855
  body: await parseErrorBody(output.body, context),
@@ -864,16 +858,16 @@ const deserializeAws_restJson1CreateKnowledgeBaseCommandError = async (output, c
864
858
  switch (errorCode) {
865
859
  case "AccessDeniedException":
866
860
  case "com.amazonaws.wisdom#AccessDeniedException":
867
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
861
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
868
862
  case "ConflictException":
869
863
  case "com.amazonaws.wisdom#ConflictException":
870
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
864
+ throw await de_ConflictExceptionRes(parsedOutput, context);
871
865
  case "ServiceQuotaExceededException":
872
866
  case "com.amazonaws.wisdom#ServiceQuotaExceededException":
873
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
867
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
874
868
  case "ValidationException":
875
869
  case "com.amazonaws.wisdom#ValidationException":
876
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
870
+ throw await de_ValidationExceptionRes(parsedOutput, context);
877
871
  default:
878
872
  const parsedBody = parsedOutput.body;
879
873
  (0, smithy_client_1.throwDefaultError)({
@@ -884,21 +878,21 @@ const deserializeAws_restJson1CreateKnowledgeBaseCommandError = async (output, c
884
878
  });
885
879
  }
886
880
  };
887
- const deserializeAws_restJson1CreateSessionCommand = async (output, context) => {
881
+ const de_CreateSessionCommand = async (output, context) => {
888
882
  if (output.statusCode !== 200 && output.statusCode >= 300) {
889
- return deserializeAws_restJson1CreateSessionCommandError(output, context);
883
+ return de_CreateSessionCommandError(output, context);
890
884
  }
891
885
  const contents = map({
892
886
  $metadata: deserializeMetadata(output),
893
887
  });
894
888
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
895
889
  if (data.session != null) {
896
- contents.session = deserializeAws_restJson1SessionData(data.session, context);
890
+ contents.session = de_SessionData(data.session, context);
897
891
  }
898
892
  return contents;
899
893
  };
900
- exports.deserializeAws_restJson1CreateSessionCommand = deserializeAws_restJson1CreateSessionCommand;
901
- const deserializeAws_restJson1CreateSessionCommandError = async (output, context) => {
894
+ exports.de_CreateSessionCommand = de_CreateSessionCommand;
895
+ const de_CreateSessionCommandError = async (output, context) => {
902
896
  const parsedOutput = {
903
897
  ...output,
904
898
  body: await parseErrorBody(output.body, context),
@@ -907,13 +901,13 @@ const deserializeAws_restJson1CreateSessionCommandError = async (output, context
907
901
  switch (errorCode) {
908
902
  case "ConflictException":
909
903
  case "com.amazonaws.wisdom#ConflictException":
910
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
904
+ throw await de_ConflictExceptionRes(parsedOutput, context);
911
905
  case "ResourceNotFoundException":
912
906
  case "com.amazonaws.wisdom#ResourceNotFoundException":
913
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
907
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
914
908
  case "ValidationException":
915
909
  case "com.amazonaws.wisdom#ValidationException":
916
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
910
+ throw await de_ValidationExceptionRes(parsedOutput, context);
917
911
  default:
918
912
  const parsedBody = parsedOutput.body;
919
913
  (0, smithy_client_1.throwDefaultError)({
@@ -924,9 +918,9 @@ const deserializeAws_restJson1CreateSessionCommandError = async (output, context
924
918
  });
925
919
  }
926
920
  };
927
- const deserializeAws_restJson1DeleteAssistantCommand = async (output, context) => {
921
+ const de_DeleteAssistantCommand = async (output, context) => {
928
922
  if (output.statusCode !== 204 && output.statusCode >= 300) {
929
- return deserializeAws_restJson1DeleteAssistantCommandError(output, context);
923
+ return de_DeleteAssistantCommandError(output, context);
930
924
  }
931
925
  const contents = map({
932
926
  $metadata: deserializeMetadata(output),
@@ -934,8 +928,8 @@ const deserializeAws_restJson1DeleteAssistantCommand = async (output, context) =
934
928
  await collectBody(output.body, context);
935
929
  return contents;
936
930
  };
937
- exports.deserializeAws_restJson1DeleteAssistantCommand = deserializeAws_restJson1DeleteAssistantCommand;
938
- const deserializeAws_restJson1DeleteAssistantCommandError = async (output, context) => {
931
+ exports.de_DeleteAssistantCommand = de_DeleteAssistantCommand;
932
+ const de_DeleteAssistantCommandError = async (output, context) => {
939
933
  const parsedOutput = {
940
934
  ...output,
941
935
  body: await parseErrorBody(output.body, context),
@@ -944,13 +938,13 @@ const deserializeAws_restJson1DeleteAssistantCommandError = async (output, conte
944
938
  switch (errorCode) {
945
939
  case "AccessDeniedException":
946
940
  case "com.amazonaws.wisdom#AccessDeniedException":
947
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
941
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
948
942
  case "ResourceNotFoundException":
949
943
  case "com.amazonaws.wisdom#ResourceNotFoundException":
950
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
944
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
951
945
  case "ValidationException":
952
946
  case "com.amazonaws.wisdom#ValidationException":
953
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
947
+ throw await de_ValidationExceptionRes(parsedOutput, context);
954
948
  default:
955
949
  const parsedBody = parsedOutput.body;
956
950
  (0, smithy_client_1.throwDefaultError)({
@@ -961,9 +955,9 @@ const deserializeAws_restJson1DeleteAssistantCommandError = async (output, conte
961
955
  });
962
956
  }
963
957
  };
964
- const deserializeAws_restJson1DeleteAssistantAssociationCommand = async (output, context) => {
958
+ const de_DeleteAssistantAssociationCommand = async (output, context) => {
965
959
  if (output.statusCode !== 204 && output.statusCode >= 300) {
966
- return deserializeAws_restJson1DeleteAssistantAssociationCommandError(output, context);
960
+ return de_DeleteAssistantAssociationCommandError(output, context);
967
961
  }
968
962
  const contents = map({
969
963
  $metadata: deserializeMetadata(output),
@@ -971,8 +965,8 @@ const deserializeAws_restJson1DeleteAssistantAssociationCommand = async (output,
971
965
  await collectBody(output.body, context);
972
966
  return contents;
973
967
  };
974
- exports.deserializeAws_restJson1DeleteAssistantAssociationCommand = deserializeAws_restJson1DeleteAssistantAssociationCommand;
975
- const deserializeAws_restJson1DeleteAssistantAssociationCommandError = async (output, context) => {
968
+ exports.de_DeleteAssistantAssociationCommand = de_DeleteAssistantAssociationCommand;
969
+ const de_DeleteAssistantAssociationCommandError = async (output, context) => {
976
970
  const parsedOutput = {
977
971
  ...output,
978
972
  body: await parseErrorBody(output.body, context),
@@ -981,13 +975,13 @@ const deserializeAws_restJson1DeleteAssistantAssociationCommandError = async (ou
981
975
  switch (errorCode) {
982
976
  case "AccessDeniedException":
983
977
  case "com.amazonaws.wisdom#AccessDeniedException":
984
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
978
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
985
979
  case "ResourceNotFoundException":
986
980
  case "com.amazonaws.wisdom#ResourceNotFoundException":
987
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
981
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
988
982
  case "ValidationException":
989
983
  case "com.amazonaws.wisdom#ValidationException":
990
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
984
+ throw await de_ValidationExceptionRes(parsedOutput, context);
991
985
  default:
992
986
  const parsedBody = parsedOutput.body;
993
987
  (0, smithy_client_1.throwDefaultError)({
@@ -998,9 +992,9 @@ const deserializeAws_restJson1DeleteAssistantAssociationCommandError = async (ou
998
992
  });
999
993
  }
1000
994
  };
1001
- const deserializeAws_restJson1DeleteContentCommand = async (output, context) => {
995
+ const de_DeleteContentCommand = async (output, context) => {
1002
996
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1003
- return deserializeAws_restJson1DeleteContentCommandError(output, context);
997
+ return de_DeleteContentCommandError(output, context);
1004
998
  }
1005
999
  const contents = map({
1006
1000
  $metadata: deserializeMetadata(output),
@@ -1008,8 +1002,8 @@ const deserializeAws_restJson1DeleteContentCommand = async (output, context) =>
1008
1002
  await collectBody(output.body, context);
1009
1003
  return contents;
1010
1004
  };
1011
- exports.deserializeAws_restJson1DeleteContentCommand = deserializeAws_restJson1DeleteContentCommand;
1012
- const deserializeAws_restJson1DeleteContentCommandError = async (output, context) => {
1005
+ exports.de_DeleteContentCommand = de_DeleteContentCommand;
1006
+ const de_DeleteContentCommandError = async (output, context) => {
1013
1007
  const parsedOutput = {
1014
1008
  ...output,
1015
1009
  body: await parseErrorBody(output.body, context),
@@ -1018,13 +1012,13 @@ const deserializeAws_restJson1DeleteContentCommandError = async (output, context
1018
1012
  switch (errorCode) {
1019
1013
  case "AccessDeniedException":
1020
1014
  case "com.amazonaws.wisdom#AccessDeniedException":
1021
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1015
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1022
1016
  case "ResourceNotFoundException":
1023
1017
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1024
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1018
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1025
1019
  case "ValidationException":
1026
1020
  case "com.amazonaws.wisdom#ValidationException":
1027
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1021
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1028
1022
  default:
1029
1023
  const parsedBody = parsedOutput.body;
1030
1024
  (0, smithy_client_1.throwDefaultError)({
@@ -1035,9 +1029,9 @@ const deserializeAws_restJson1DeleteContentCommandError = async (output, context
1035
1029
  });
1036
1030
  }
1037
1031
  };
1038
- const deserializeAws_restJson1DeleteKnowledgeBaseCommand = async (output, context) => {
1032
+ const de_DeleteKnowledgeBaseCommand = async (output, context) => {
1039
1033
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1040
- return deserializeAws_restJson1DeleteKnowledgeBaseCommandError(output, context);
1034
+ return de_DeleteKnowledgeBaseCommandError(output, context);
1041
1035
  }
1042
1036
  const contents = map({
1043
1037
  $metadata: deserializeMetadata(output),
@@ -1045,8 +1039,8 @@ const deserializeAws_restJson1DeleteKnowledgeBaseCommand = async (output, contex
1045
1039
  await collectBody(output.body, context);
1046
1040
  return contents;
1047
1041
  };
1048
- exports.deserializeAws_restJson1DeleteKnowledgeBaseCommand = deserializeAws_restJson1DeleteKnowledgeBaseCommand;
1049
- const deserializeAws_restJson1DeleteKnowledgeBaseCommandError = async (output, context) => {
1042
+ exports.de_DeleteKnowledgeBaseCommand = de_DeleteKnowledgeBaseCommand;
1043
+ const de_DeleteKnowledgeBaseCommandError = async (output, context) => {
1050
1044
  const parsedOutput = {
1051
1045
  ...output,
1052
1046
  body: await parseErrorBody(output.body, context),
@@ -1055,16 +1049,16 @@ const deserializeAws_restJson1DeleteKnowledgeBaseCommandError = async (output, c
1055
1049
  switch (errorCode) {
1056
1050
  case "AccessDeniedException":
1057
1051
  case "com.amazonaws.wisdom#AccessDeniedException":
1058
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1052
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1059
1053
  case "ConflictException":
1060
1054
  case "com.amazonaws.wisdom#ConflictException":
1061
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1055
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1062
1056
  case "ResourceNotFoundException":
1063
1057
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1064
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1058
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1065
1059
  case "ValidationException":
1066
1060
  case "com.amazonaws.wisdom#ValidationException":
1067
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1061
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1068
1062
  default:
1069
1063
  const parsedBody = parsedOutput.body;
1070
1064
  (0, smithy_client_1.throwDefaultError)({
@@ -1075,21 +1069,21 @@ const deserializeAws_restJson1DeleteKnowledgeBaseCommandError = async (output, c
1075
1069
  });
1076
1070
  }
1077
1071
  };
1078
- const deserializeAws_restJson1GetAssistantCommand = async (output, context) => {
1072
+ const de_GetAssistantCommand = async (output, context) => {
1079
1073
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1080
- return deserializeAws_restJson1GetAssistantCommandError(output, context);
1074
+ return de_GetAssistantCommandError(output, context);
1081
1075
  }
1082
1076
  const contents = map({
1083
1077
  $metadata: deserializeMetadata(output),
1084
1078
  });
1085
1079
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1086
1080
  if (data.assistant != null) {
1087
- contents.assistant = deserializeAws_restJson1AssistantData(data.assistant, context);
1081
+ contents.assistant = de_AssistantData(data.assistant, context);
1088
1082
  }
1089
1083
  return contents;
1090
1084
  };
1091
- exports.deserializeAws_restJson1GetAssistantCommand = deserializeAws_restJson1GetAssistantCommand;
1092
- const deserializeAws_restJson1GetAssistantCommandError = async (output, context) => {
1085
+ exports.de_GetAssistantCommand = de_GetAssistantCommand;
1086
+ const de_GetAssistantCommandError = async (output, context) => {
1093
1087
  const parsedOutput = {
1094
1088
  ...output,
1095
1089
  body: await parseErrorBody(output.body, context),
@@ -1098,13 +1092,13 @@ const deserializeAws_restJson1GetAssistantCommandError = async (output, context)
1098
1092
  switch (errorCode) {
1099
1093
  case "AccessDeniedException":
1100
1094
  case "com.amazonaws.wisdom#AccessDeniedException":
1101
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1095
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1102
1096
  case "ResourceNotFoundException":
1103
1097
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1104
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1098
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1105
1099
  case "ValidationException":
1106
1100
  case "com.amazonaws.wisdom#ValidationException":
1107
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1101
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1108
1102
  default:
1109
1103
  const parsedBody = parsedOutput.body;
1110
1104
  (0, smithy_client_1.throwDefaultError)({
@@ -1115,21 +1109,21 @@ const deserializeAws_restJson1GetAssistantCommandError = async (output, context)
1115
1109
  });
1116
1110
  }
1117
1111
  };
1118
- const deserializeAws_restJson1GetAssistantAssociationCommand = async (output, context) => {
1112
+ const de_GetAssistantAssociationCommand = async (output, context) => {
1119
1113
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1120
- return deserializeAws_restJson1GetAssistantAssociationCommandError(output, context);
1114
+ return de_GetAssistantAssociationCommandError(output, context);
1121
1115
  }
1122
1116
  const contents = map({
1123
1117
  $metadata: deserializeMetadata(output),
1124
1118
  });
1125
1119
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1126
1120
  if (data.assistantAssociation != null) {
1127
- contents.assistantAssociation = deserializeAws_restJson1AssistantAssociationData(data.assistantAssociation, context);
1121
+ contents.assistantAssociation = de_AssistantAssociationData(data.assistantAssociation, context);
1128
1122
  }
1129
1123
  return contents;
1130
1124
  };
1131
- exports.deserializeAws_restJson1GetAssistantAssociationCommand = deserializeAws_restJson1GetAssistantAssociationCommand;
1132
- const deserializeAws_restJson1GetAssistantAssociationCommandError = async (output, context) => {
1125
+ exports.de_GetAssistantAssociationCommand = de_GetAssistantAssociationCommand;
1126
+ const de_GetAssistantAssociationCommandError = async (output, context) => {
1133
1127
  const parsedOutput = {
1134
1128
  ...output,
1135
1129
  body: await parseErrorBody(output.body, context),
@@ -1138,13 +1132,13 @@ const deserializeAws_restJson1GetAssistantAssociationCommandError = async (outpu
1138
1132
  switch (errorCode) {
1139
1133
  case "AccessDeniedException":
1140
1134
  case "com.amazonaws.wisdom#AccessDeniedException":
1141
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1135
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1142
1136
  case "ResourceNotFoundException":
1143
1137
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1144
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1138
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1145
1139
  case "ValidationException":
1146
1140
  case "com.amazonaws.wisdom#ValidationException":
1147
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1141
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1148
1142
  default:
1149
1143
  const parsedBody = parsedOutput.body;
1150
1144
  (0, smithy_client_1.throwDefaultError)({
@@ -1155,21 +1149,21 @@ const deserializeAws_restJson1GetAssistantAssociationCommandError = async (outpu
1155
1149
  });
1156
1150
  }
1157
1151
  };
1158
- const deserializeAws_restJson1GetContentCommand = async (output, context) => {
1152
+ const de_GetContentCommand = async (output, context) => {
1159
1153
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1160
- return deserializeAws_restJson1GetContentCommandError(output, context);
1154
+ return de_GetContentCommandError(output, context);
1161
1155
  }
1162
1156
  const contents = map({
1163
1157
  $metadata: deserializeMetadata(output),
1164
1158
  });
1165
1159
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1166
1160
  if (data.content != null) {
1167
- contents.content = deserializeAws_restJson1ContentData(data.content, context);
1161
+ contents.content = de_ContentData(data.content, context);
1168
1162
  }
1169
1163
  return contents;
1170
1164
  };
1171
- exports.deserializeAws_restJson1GetContentCommand = deserializeAws_restJson1GetContentCommand;
1172
- const deserializeAws_restJson1GetContentCommandError = async (output, context) => {
1165
+ exports.de_GetContentCommand = de_GetContentCommand;
1166
+ const de_GetContentCommandError = async (output, context) => {
1173
1167
  const parsedOutput = {
1174
1168
  ...output,
1175
1169
  body: await parseErrorBody(output.body, context),
@@ -1178,13 +1172,13 @@ const deserializeAws_restJson1GetContentCommandError = async (output, context) =
1178
1172
  switch (errorCode) {
1179
1173
  case "AccessDeniedException":
1180
1174
  case "com.amazonaws.wisdom#AccessDeniedException":
1181
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1175
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1182
1176
  case "ResourceNotFoundException":
1183
1177
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1184
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1178
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1185
1179
  case "ValidationException":
1186
1180
  case "com.amazonaws.wisdom#ValidationException":
1187
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1181
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1188
1182
  default:
1189
1183
  const parsedBody = parsedOutput.body;
1190
1184
  (0, smithy_client_1.throwDefaultError)({
@@ -1195,21 +1189,21 @@ const deserializeAws_restJson1GetContentCommandError = async (output, context) =
1195
1189
  });
1196
1190
  }
1197
1191
  };
1198
- const deserializeAws_restJson1GetContentSummaryCommand = async (output, context) => {
1192
+ const de_GetContentSummaryCommand = async (output, context) => {
1199
1193
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1200
- return deserializeAws_restJson1GetContentSummaryCommandError(output, context);
1194
+ return de_GetContentSummaryCommandError(output, context);
1201
1195
  }
1202
1196
  const contents = map({
1203
1197
  $metadata: deserializeMetadata(output),
1204
1198
  });
1205
1199
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1206
1200
  if (data.contentSummary != null) {
1207
- contents.contentSummary = deserializeAws_restJson1ContentSummary(data.contentSummary, context);
1201
+ contents.contentSummary = de_ContentSummary(data.contentSummary, context);
1208
1202
  }
1209
1203
  return contents;
1210
1204
  };
1211
- exports.deserializeAws_restJson1GetContentSummaryCommand = deserializeAws_restJson1GetContentSummaryCommand;
1212
- const deserializeAws_restJson1GetContentSummaryCommandError = async (output, context) => {
1205
+ exports.de_GetContentSummaryCommand = de_GetContentSummaryCommand;
1206
+ const de_GetContentSummaryCommandError = async (output, context) => {
1213
1207
  const parsedOutput = {
1214
1208
  ...output,
1215
1209
  body: await parseErrorBody(output.body, context),
@@ -1218,13 +1212,13 @@ const deserializeAws_restJson1GetContentSummaryCommandError = async (output, con
1218
1212
  switch (errorCode) {
1219
1213
  case "AccessDeniedException":
1220
1214
  case "com.amazonaws.wisdom#AccessDeniedException":
1221
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1215
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1222
1216
  case "ResourceNotFoundException":
1223
1217
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1224
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1218
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1225
1219
  case "ValidationException":
1226
1220
  case "com.amazonaws.wisdom#ValidationException":
1227
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1221
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1228
1222
  default:
1229
1223
  const parsedBody = parsedOutput.body;
1230
1224
  (0, smithy_client_1.throwDefaultError)({
@@ -1235,21 +1229,21 @@ const deserializeAws_restJson1GetContentSummaryCommandError = async (output, con
1235
1229
  });
1236
1230
  }
1237
1231
  };
1238
- const deserializeAws_restJson1GetKnowledgeBaseCommand = async (output, context) => {
1232
+ const de_GetKnowledgeBaseCommand = async (output, context) => {
1239
1233
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1240
- return deserializeAws_restJson1GetKnowledgeBaseCommandError(output, context);
1234
+ return de_GetKnowledgeBaseCommandError(output, context);
1241
1235
  }
1242
1236
  const contents = map({
1243
1237
  $metadata: deserializeMetadata(output),
1244
1238
  });
1245
1239
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1246
1240
  if (data.knowledgeBase != null) {
1247
- contents.knowledgeBase = deserializeAws_restJson1KnowledgeBaseData(data.knowledgeBase, context);
1241
+ contents.knowledgeBase = de_KnowledgeBaseData(data.knowledgeBase, context);
1248
1242
  }
1249
1243
  return contents;
1250
1244
  };
1251
- exports.deserializeAws_restJson1GetKnowledgeBaseCommand = deserializeAws_restJson1GetKnowledgeBaseCommand;
1252
- const deserializeAws_restJson1GetKnowledgeBaseCommandError = async (output, context) => {
1245
+ exports.de_GetKnowledgeBaseCommand = de_GetKnowledgeBaseCommand;
1246
+ const de_GetKnowledgeBaseCommandError = async (output, context) => {
1253
1247
  const parsedOutput = {
1254
1248
  ...output,
1255
1249
  body: await parseErrorBody(output.body, context),
@@ -1258,13 +1252,13 @@ const deserializeAws_restJson1GetKnowledgeBaseCommandError = async (output, cont
1258
1252
  switch (errorCode) {
1259
1253
  case "AccessDeniedException":
1260
1254
  case "com.amazonaws.wisdom#AccessDeniedException":
1261
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1255
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1262
1256
  case "ResourceNotFoundException":
1263
1257
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1264
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1258
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1265
1259
  case "ValidationException":
1266
1260
  case "com.amazonaws.wisdom#ValidationException":
1267
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1261
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1268
1262
  default:
1269
1263
  const parsedBody = parsedOutput.body;
1270
1264
  (0, smithy_client_1.throwDefaultError)({
@@ -1275,24 +1269,24 @@ const deserializeAws_restJson1GetKnowledgeBaseCommandError = async (output, cont
1275
1269
  });
1276
1270
  }
1277
1271
  };
1278
- const deserializeAws_restJson1GetRecommendationsCommand = async (output, context) => {
1272
+ const de_GetRecommendationsCommand = async (output, context) => {
1279
1273
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1280
- return deserializeAws_restJson1GetRecommendationsCommandError(output, context);
1274
+ return de_GetRecommendationsCommandError(output, context);
1281
1275
  }
1282
1276
  const contents = map({
1283
1277
  $metadata: deserializeMetadata(output),
1284
1278
  });
1285
1279
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1286
1280
  if (data.recommendations != null) {
1287
- contents.recommendations = deserializeAws_restJson1RecommendationList(data.recommendations, context);
1281
+ contents.recommendations = de_RecommendationList(data.recommendations, context);
1288
1282
  }
1289
1283
  if (data.triggers != null) {
1290
- contents.triggers = deserializeAws_restJson1RecommendationTriggerList(data.triggers, context);
1284
+ contents.triggers = de_RecommendationTriggerList(data.triggers, context);
1291
1285
  }
1292
1286
  return contents;
1293
1287
  };
1294
- exports.deserializeAws_restJson1GetRecommendationsCommand = deserializeAws_restJson1GetRecommendationsCommand;
1295
- const deserializeAws_restJson1GetRecommendationsCommandError = async (output, context) => {
1288
+ exports.de_GetRecommendationsCommand = de_GetRecommendationsCommand;
1289
+ const de_GetRecommendationsCommandError = async (output, context) => {
1296
1290
  const parsedOutput = {
1297
1291
  ...output,
1298
1292
  body: await parseErrorBody(output.body, context),
@@ -1301,13 +1295,13 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
1301
1295
  switch (errorCode) {
1302
1296
  case "AccessDeniedException":
1303
1297
  case "com.amazonaws.wisdom#AccessDeniedException":
1304
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1298
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1305
1299
  case "ResourceNotFoundException":
1306
1300
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1307
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1301
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1308
1302
  case "ValidationException":
1309
1303
  case "com.amazonaws.wisdom#ValidationException":
1310
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1304
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1311
1305
  default:
1312
1306
  const parsedBody = parsedOutput.body;
1313
1307
  (0, smithy_client_1.throwDefaultError)({
@@ -1318,21 +1312,21 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
1318
1312
  });
1319
1313
  }
1320
1314
  };
1321
- const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
1315
+ const de_GetSessionCommand = async (output, context) => {
1322
1316
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1323
- return deserializeAws_restJson1GetSessionCommandError(output, context);
1317
+ return de_GetSessionCommandError(output, context);
1324
1318
  }
1325
1319
  const contents = map({
1326
1320
  $metadata: deserializeMetadata(output),
1327
1321
  });
1328
1322
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1329
1323
  if (data.session != null) {
1330
- contents.session = deserializeAws_restJson1SessionData(data.session, context);
1324
+ contents.session = de_SessionData(data.session, context);
1331
1325
  }
1332
1326
  return contents;
1333
1327
  };
1334
- exports.deserializeAws_restJson1GetSessionCommand = deserializeAws_restJson1GetSessionCommand;
1335
- const deserializeAws_restJson1GetSessionCommandError = async (output, context) => {
1328
+ exports.de_GetSessionCommand = de_GetSessionCommand;
1329
+ const de_GetSessionCommandError = async (output, context) => {
1336
1330
  const parsedOutput = {
1337
1331
  ...output,
1338
1332
  body: await parseErrorBody(output.body, context),
@@ -1341,13 +1335,13 @@ const deserializeAws_restJson1GetSessionCommandError = async (output, context) =
1341
1335
  switch (errorCode) {
1342
1336
  case "AccessDeniedException":
1343
1337
  case "com.amazonaws.wisdom#AccessDeniedException":
1344
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1338
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1345
1339
  case "ResourceNotFoundException":
1346
1340
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1347
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1341
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1348
1342
  case "ValidationException":
1349
1343
  case "com.amazonaws.wisdom#ValidationException":
1350
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1344
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1351
1345
  default:
1352
1346
  const parsedBody = parsedOutput.body;
1353
1347
  (0, smithy_client_1.throwDefaultError)({
@@ -1358,24 +1352,24 @@ const deserializeAws_restJson1GetSessionCommandError = async (output, context) =
1358
1352
  });
1359
1353
  }
1360
1354
  };
1361
- const deserializeAws_restJson1ListAssistantAssociationsCommand = async (output, context) => {
1355
+ const de_ListAssistantAssociationsCommand = async (output, context) => {
1362
1356
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1363
- return deserializeAws_restJson1ListAssistantAssociationsCommandError(output, context);
1357
+ return de_ListAssistantAssociationsCommandError(output, context);
1364
1358
  }
1365
1359
  const contents = map({
1366
1360
  $metadata: deserializeMetadata(output),
1367
1361
  });
1368
1362
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1369
1363
  if (data.assistantAssociationSummaries != null) {
1370
- contents.assistantAssociationSummaries = deserializeAws_restJson1AssistantAssociationSummaryList(data.assistantAssociationSummaries, context);
1364
+ contents.assistantAssociationSummaries = de_AssistantAssociationSummaryList(data.assistantAssociationSummaries, context);
1371
1365
  }
1372
1366
  if (data.nextToken != null) {
1373
1367
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1374
1368
  }
1375
1369
  return contents;
1376
1370
  };
1377
- exports.deserializeAws_restJson1ListAssistantAssociationsCommand = deserializeAws_restJson1ListAssistantAssociationsCommand;
1378
- const deserializeAws_restJson1ListAssistantAssociationsCommandError = async (output, context) => {
1371
+ exports.de_ListAssistantAssociationsCommand = de_ListAssistantAssociationsCommand;
1372
+ const de_ListAssistantAssociationsCommandError = async (output, context) => {
1379
1373
  const parsedOutput = {
1380
1374
  ...output,
1381
1375
  body: await parseErrorBody(output.body, context),
@@ -1384,13 +1378,13 @@ const deserializeAws_restJson1ListAssistantAssociationsCommandError = async (out
1384
1378
  switch (errorCode) {
1385
1379
  case "AccessDeniedException":
1386
1380
  case "com.amazonaws.wisdom#AccessDeniedException":
1387
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1381
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1388
1382
  case "ResourceNotFoundException":
1389
1383
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1390
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1384
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1391
1385
  case "ValidationException":
1392
1386
  case "com.amazonaws.wisdom#ValidationException":
1393
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1387
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1394
1388
  default:
1395
1389
  const parsedBody = parsedOutput.body;
1396
1390
  (0, smithy_client_1.throwDefaultError)({
@@ -1401,24 +1395,24 @@ const deserializeAws_restJson1ListAssistantAssociationsCommandError = async (out
1401
1395
  });
1402
1396
  }
1403
1397
  };
1404
- const deserializeAws_restJson1ListAssistantsCommand = async (output, context) => {
1398
+ const de_ListAssistantsCommand = async (output, context) => {
1405
1399
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1406
- return deserializeAws_restJson1ListAssistantsCommandError(output, context);
1400
+ return de_ListAssistantsCommandError(output, context);
1407
1401
  }
1408
1402
  const contents = map({
1409
1403
  $metadata: deserializeMetadata(output),
1410
1404
  });
1411
1405
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1412
1406
  if (data.assistantSummaries != null) {
1413
- contents.assistantSummaries = deserializeAws_restJson1AssistantList(data.assistantSummaries, context);
1407
+ contents.assistantSummaries = de_AssistantList(data.assistantSummaries, context);
1414
1408
  }
1415
1409
  if (data.nextToken != null) {
1416
1410
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1417
1411
  }
1418
1412
  return contents;
1419
1413
  };
1420
- exports.deserializeAws_restJson1ListAssistantsCommand = deserializeAws_restJson1ListAssistantsCommand;
1421
- const deserializeAws_restJson1ListAssistantsCommandError = async (output, context) => {
1414
+ exports.de_ListAssistantsCommand = de_ListAssistantsCommand;
1415
+ const de_ListAssistantsCommandError = async (output, context) => {
1422
1416
  const parsedOutput = {
1423
1417
  ...output,
1424
1418
  body: await parseErrorBody(output.body, context),
@@ -1427,10 +1421,10 @@ const deserializeAws_restJson1ListAssistantsCommandError = async (output, contex
1427
1421
  switch (errorCode) {
1428
1422
  case "AccessDeniedException":
1429
1423
  case "com.amazonaws.wisdom#AccessDeniedException":
1430
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1424
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1431
1425
  case "ValidationException":
1432
1426
  case "com.amazonaws.wisdom#ValidationException":
1433
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1427
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1434
1428
  default:
1435
1429
  const parsedBody = parsedOutput.body;
1436
1430
  (0, smithy_client_1.throwDefaultError)({
@@ -1441,24 +1435,24 @@ const deserializeAws_restJson1ListAssistantsCommandError = async (output, contex
1441
1435
  });
1442
1436
  }
1443
1437
  };
1444
- const deserializeAws_restJson1ListContentsCommand = async (output, context) => {
1438
+ const de_ListContentsCommand = async (output, context) => {
1445
1439
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1446
- return deserializeAws_restJson1ListContentsCommandError(output, context);
1440
+ return de_ListContentsCommandError(output, context);
1447
1441
  }
1448
1442
  const contents = map({
1449
1443
  $metadata: deserializeMetadata(output),
1450
1444
  });
1451
1445
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1452
1446
  if (data.contentSummaries != null) {
1453
- contents.contentSummaries = deserializeAws_restJson1ContentSummaryList(data.contentSummaries, context);
1447
+ contents.contentSummaries = de_ContentSummaryList(data.contentSummaries, context);
1454
1448
  }
1455
1449
  if (data.nextToken != null) {
1456
1450
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1457
1451
  }
1458
1452
  return contents;
1459
1453
  };
1460
- exports.deserializeAws_restJson1ListContentsCommand = deserializeAws_restJson1ListContentsCommand;
1461
- const deserializeAws_restJson1ListContentsCommandError = async (output, context) => {
1454
+ exports.de_ListContentsCommand = de_ListContentsCommand;
1455
+ const de_ListContentsCommandError = async (output, context) => {
1462
1456
  const parsedOutput = {
1463
1457
  ...output,
1464
1458
  body: await parseErrorBody(output.body, context),
@@ -1467,13 +1461,13 @@ const deserializeAws_restJson1ListContentsCommandError = async (output, context)
1467
1461
  switch (errorCode) {
1468
1462
  case "AccessDeniedException":
1469
1463
  case "com.amazonaws.wisdom#AccessDeniedException":
1470
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1464
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1471
1465
  case "ResourceNotFoundException":
1472
1466
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1473
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1467
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1474
1468
  case "ValidationException":
1475
1469
  case "com.amazonaws.wisdom#ValidationException":
1476
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1470
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1477
1471
  default:
1478
1472
  const parsedBody = parsedOutput.body;
1479
1473
  (0, smithy_client_1.throwDefaultError)({
@@ -1484,24 +1478,24 @@ const deserializeAws_restJson1ListContentsCommandError = async (output, context)
1484
1478
  });
1485
1479
  }
1486
1480
  };
1487
- const deserializeAws_restJson1ListKnowledgeBasesCommand = async (output, context) => {
1481
+ const de_ListKnowledgeBasesCommand = async (output, context) => {
1488
1482
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1489
- return deserializeAws_restJson1ListKnowledgeBasesCommandError(output, context);
1483
+ return de_ListKnowledgeBasesCommandError(output, context);
1490
1484
  }
1491
1485
  const contents = map({
1492
1486
  $metadata: deserializeMetadata(output),
1493
1487
  });
1494
1488
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1495
1489
  if (data.knowledgeBaseSummaries != null) {
1496
- contents.knowledgeBaseSummaries = deserializeAws_restJson1KnowledgeBaseList(data.knowledgeBaseSummaries, context);
1490
+ contents.knowledgeBaseSummaries = de_KnowledgeBaseList(data.knowledgeBaseSummaries, context);
1497
1491
  }
1498
1492
  if (data.nextToken != null) {
1499
1493
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1500
1494
  }
1501
1495
  return contents;
1502
1496
  };
1503
- exports.deserializeAws_restJson1ListKnowledgeBasesCommand = deserializeAws_restJson1ListKnowledgeBasesCommand;
1504
- const deserializeAws_restJson1ListKnowledgeBasesCommandError = async (output, context) => {
1497
+ exports.de_ListKnowledgeBasesCommand = de_ListKnowledgeBasesCommand;
1498
+ const de_ListKnowledgeBasesCommandError = async (output, context) => {
1505
1499
  const parsedOutput = {
1506
1500
  ...output,
1507
1501
  body: await parseErrorBody(output.body, context),
@@ -1510,10 +1504,10 @@ const deserializeAws_restJson1ListKnowledgeBasesCommandError = async (output, co
1510
1504
  switch (errorCode) {
1511
1505
  case "AccessDeniedException":
1512
1506
  case "com.amazonaws.wisdom#AccessDeniedException":
1513
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1507
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1514
1508
  case "ValidationException":
1515
1509
  case "com.amazonaws.wisdom#ValidationException":
1516
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1510
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1517
1511
  default:
1518
1512
  const parsedBody = parsedOutput.body;
1519
1513
  (0, smithy_client_1.throwDefaultError)({
@@ -1524,21 +1518,21 @@ const deserializeAws_restJson1ListKnowledgeBasesCommandError = async (output, co
1524
1518
  });
1525
1519
  }
1526
1520
  };
1527
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
1521
+ const de_ListTagsForResourceCommand = async (output, context) => {
1528
1522
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1529
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
1523
+ return de_ListTagsForResourceCommandError(output, context);
1530
1524
  }
1531
1525
  const contents = map({
1532
1526
  $metadata: deserializeMetadata(output),
1533
1527
  });
1534
1528
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1535
1529
  if (data.tags != null) {
1536
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1530
+ contents.tags = de_Tags(data.tags, context);
1537
1531
  }
1538
1532
  return contents;
1539
1533
  };
1540
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
1541
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1534
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1535
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1542
1536
  const parsedOutput = {
1543
1537
  ...output,
1544
1538
  body: await parseErrorBody(output.body, context),
@@ -1547,7 +1541,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1547
1541
  switch (errorCode) {
1548
1542
  case "ResourceNotFoundException":
1549
1543
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1550
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1544
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1551
1545
  default:
1552
1546
  const parsedBody = parsedOutput.body;
1553
1547
  (0, smithy_client_1.throwDefaultError)({
@@ -1558,24 +1552,24 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1558
1552
  });
1559
1553
  }
1560
1554
  };
1561
- const deserializeAws_restJson1NotifyRecommendationsReceivedCommand = async (output, context) => {
1555
+ const de_NotifyRecommendationsReceivedCommand = async (output, context) => {
1562
1556
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1563
- return deserializeAws_restJson1NotifyRecommendationsReceivedCommandError(output, context);
1557
+ return de_NotifyRecommendationsReceivedCommandError(output, context);
1564
1558
  }
1565
1559
  const contents = map({
1566
1560
  $metadata: deserializeMetadata(output),
1567
1561
  });
1568
1562
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1569
1563
  if (data.errors != null) {
1570
- contents.errors = deserializeAws_restJson1NotifyRecommendationsReceivedErrorList(data.errors, context);
1564
+ contents.errors = de_NotifyRecommendationsReceivedErrorList(data.errors, context);
1571
1565
  }
1572
1566
  if (data.recommendationIds != null) {
1573
- contents.recommendationIds = deserializeAws_restJson1RecommendationIdList(data.recommendationIds, context);
1567
+ contents.recommendationIds = de_RecommendationIdList(data.recommendationIds, context);
1574
1568
  }
1575
1569
  return contents;
1576
1570
  };
1577
- exports.deserializeAws_restJson1NotifyRecommendationsReceivedCommand = deserializeAws_restJson1NotifyRecommendationsReceivedCommand;
1578
- const deserializeAws_restJson1NotifyRecommendationsReceivedCommandError = async (output, context) => {
1571
+ exports.de_NotifyRecommendationsReceivedCommand = de_NotifyRecommendationsReceivedCommand;
1572
+ const de_NotifyRecommendationsReceivedCommandError = async (output, context) => {
1579
1573
  const parsedOutput = {
1580
1574
  ...output,
1581
1575
  body: await parseErrorBody(output.body, context),
@@ -1584,13 +1578,13 @@ const deserializeAws_restJson1NotifyRecommendationsReceivedCommandError = async
1584
1578
  switch (errorCode) {
1585
1579
  case "AccessDeniedException":
1586
1580
  case "com.amazonaws.wisdom#AccessDeniedException":
1587
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1581
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1588
1582
  case "ResourceNotFoundException":
1589
1583
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1590
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1584
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1591
1585
  case "ValidationException":
1592
1586
  case "com.amazonaws.wisdom#ValidationException":
1593
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1587
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1594
1588
  default:
1595
1589
  const parsedBody = parsedOutput.body;
1596
1590
  (0, smithy_client_1.throwDefaultError)({
@@ -1601,9 +1595,9 @@ const deserializeAws_restJson1NotifyRecommendationsReceivedCommandError = async
1601
1595
  });
1602
1596
  }
1603
1597
  };
1604
- const deserializeAws_restJson1QueryAssistantCommand = async (output, context) => {
1598
+ const de_QueryAssistantCommand = async (output, context) => {
1605
1599
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1606
- return deserializeAws_restJson1QueryAssistantCommandError(output, context);
1600
+ return de_QueryAssistantCommandError(output, context);
1607
1601
  }
1608
1602
  const contents = map({
1609
1603
  $metadata: deserializeMetadata(output),
@@ -1613,12 +1607,12 @@ const deserializeAws_restJson1QueryAssistantCommand = async (output, context) =>
1613
1607
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1614
1608
  }
1615
1609
  if (data.results != null) {
1616
- contents.results = deserializeAws_restJson1QueryResultsList(data.results, context);
1610
+ contents.results = de_QueryResultsList(data.results, context);
1617
1611
  }
1618
1612
  return contents;
1619
1613
  };
1620
- exports.deserializeAws_restJson1QueryAssistantCommand = deserializeAws_restJson1QueryAssistantCommand;
1621
- const deserializeAws_restJson1QueryAssistantCommandError = async (output, context) => {
1614
+ exports.de_QueryAssistantCommand = de_QueryAssistantCommand;
1615
+ const de_QueryAssistantCommandError = async (output, context) => {
1622
1616
  const parsedOutput = {
1623
1617
  ...output,
1624
1618
  body: await parseErrorBody(output.body, context),
@@ -1627,13 +1621,13 @@ const deserializeAws_restJson1QueryAssistantCommandError = async (output, contex
1627
1621
  switch (errorCode) {
1628
1622
  case "AccessDeniedException":
1629
1623
  case "com.amazonaws.wisdom#AccessDeniedException":
1630
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1624
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1631
1625
  case "ResourceNotFoundException":
1632
1626
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1633
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1627
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1634
1628
  case "ValidationException":
1635
1629
  case "com.amazonaws.wisdom#ValidationException":
1636
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1630
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1637
1631
  default:
1638
1632
  const parsedBody = parsedOutput.body;
1639
1633
  (0, smithy_client_1.throwDefaultError)({
@@ -1644,9 +1638,9 @@ const deserializeAws_restJson1QueryAssistantCommandError = async (output, contex
1644
1638
  });
1645
1639
  }
1646
1640
  };
1647
- const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = async (output, context) => {
1641
+ const de_RemoveKnowledgeBaseTemplateUriCommand = async (output, context) => {
1648
1642
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1649
- return deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommandError(output, context);
1643
+ return de_RemoveKnowledgeBaseTemplateUriCommandError(output, context);
1650
1644
  }
1651
1645
  const contents = map({
1652
1646
  $metadata: deserializeMetadata(output),
@@ -1654,8 +1648,8 @@ const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = async (out
1654
1648
  await collectBody(output.body, context);
1655
1649
  return contents;
1656
1650
  };
1657
- exports.deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand;
1658
- const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommandError = async (output, context) => {
1651
+ exports.de_RemoveKnowledgeBaseTemplateUriCommand = de_RemoveKnowledgeBaseTemplateUriCommand;
1652
+ const de_RemoveKnowledgeBaseTemplateUriCommandError = async (output, context) => {
1659
1653
  const parsedOutput = {
1660
1654
  ...output,
1661
1655
  body: await parseErrorBody(output.body, context),
@@ -1664,13 +1658,13 @@ const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommandError = async
1664
1658
  switch (errorCode) {
1665
1659
  case "AccessDeniedException":
1666
1660
  case "com.amazonaws.wisdom#AccessDeniedException":
1667
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1661
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1668
1662
  case "ResourceNotFoundException":
1669
1663
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1670
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1664
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1671
1665
  case "ValidationException":
1672
1666
  case "com.amazonaws.wisdom#ValidationException":
1673
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1667
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1674
1668
  default:
1675
1669
  const parsedBody = parsedOutput.body;
1676
1670
  (0, smithy_client_1.throwDefaultError)({
@@ -1681,24 +1675,24 @@ const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommandError = async
1681
1675
  });
1682
1676
  }
1683
1677
  };
1684
- const deserializeAws_restJson1SearchContentCommand = async (output, context) => {
1678
+ const de_SearchContentCommand = async (output, context) => {
1685
1679
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1686
- return deserializeAws_restJson1SearchContentCommandError(output, context);
1680
+ return de_SearchContentCommandError(output, context);
1687
1681
  }
1688
1682
  const contents = map({
1689
1683
  $metadata: deserializeMetadata(output),
1690
1684
  });
1691
1685
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1692
1686
  if (data.contentSummaries != null) {
1693
- contents.contentSummaries = deserializeAws_restJson1ContentSummaryList(data.contentSummaries, context);
1687
+ contents.contentSummaries = de_ContentSummaryList(data.contentSummaries, context);
1694
1688
  }
1695
1689
  if (data.nextToken != null) {
1696
1690
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1697
1691
  }
1698
1692
  return contents;
1699
1693
  };
1700
- exports.deserializeAws_restJson1SearchContentCommand = deserializeAws_restJson1SearchContentCommand;
1701
- const deserializeAws_restJson1SearchContentCommandError = async (output, context) => {
1694
+ exports.de_SearchContentCommand = de_SearchContentCommand;
1695
+ const de_SearchContentCommandError = async (output, context) => {
1702
1696
  const parsedOutput = {
1703
1697
  ...output,
1704
1698
  body: await parseErrorBody(output.body, context),
@@ -1707,13 +1701,13 @@ const deserializeAws_restJson1SearchContentCommandError = async (output, context
1707
1701
  switch (errorCode) {
1708
1702
  case "AccessDeniedException":
1709
1703
  case "com.amazonaws.wisdom#AccessDeniedException":
1710
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1704
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1711
1705
  case "ResourceNotFoundException":
1712
1706
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1713
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1707
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1714
1708
  case "ValidationException":
1715
1709
  case "com.amazonaws.wisdom#ValidationException":
1716
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1710
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1717
1711
  default:
1718
1712
  const parsedBody = parsedOutput.body;
1719
1713
  (0, smithy_client_1.throwDefaultError)({
@@ -1724,9 +1718,9 @@ const deserializeAws_restJson1SearchContentCommandError = async (output, context
1724
1718
  });
1725
1719
  }
1726
1720
  };
1727
- const deserializeAws_restJson1SearchSessionsCommand = async (output, context) => {
1721
+ const de_SearchSessionsCommand = async (output, context) => {
1728
1722
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1729
- return deserializeAws_restJson1SearchSessionsCommandError(output, context);
1723
+ return de_SearchSessionsCommandError(output, context);
1730
1724
  }
1731
1725
  const contents = map({
1732
1726
  $metadata: deserializeMetadata(output),
@@ -1736,12 +1730,12 @@ const deserializeAws_restJson1SearchSessionsCommand = async (output, context) =>
1736
1730
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1737
1731
  }
1738
1732
  if (data.sessionSummaries != null) {
1739
- contents.sessionSummaries = deserializeAws_restJson1SessionSummaries(data.sessionSummaries, context);
1733
+ contents.sessionSummaries = de_SessionSummaries(data.sessionSummaries, context);
1740
1734
  }
1741
1735
  return contents;
1742
1736
  };
1743
- exports.deserializeAws_restJson1SearchSessionsCommand = deserializeAws_restJson1SearchSessionsCommand;
1744
- const deserializeAws_restJson1SearchSessionsCommandError = async (output, context) => {
1737
+ exports.de_SearchSessionsCommand = de_SearchSessionsCommand;
1738
+ const de_SearchSessionsCommandError = async (output, context) => {
1745
1739
  const parsedOutput = {
1746
1740
  ...output,
1747
1741
  body: await parseErrorBody(output.body, context),
@@ -1750,13 +1744,13 @@ const deserializeAws_restJson1SearchSessionsCommandError = async (output, contex
1750
1744
  switch (errorCode) {
1751
1745
  case "AccessDeniedException":
1752
1746
  case "com.amazonaws.wisdom#AccessDeniedException":
1753
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1747
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1754
1748
  case "ResourceNotFoundException":
1755
1749
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1756
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1750
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1757
1751
  case "ValidationException":
1758
1752
  case "com.amazonaws.wisdom#ValidationException":
1759
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1753
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1760
1754
  default:
1761
1755
  const parsedBody = parsedOutput.body;
1762
1756
  (0, smithy_client_1.throwDefaultError)({
@@ -1767,16 +1761,16 @@ const deserializeAws_restJson1SearchSessionsCommandError = async (output, contex
1767
1761
  });
1768
1762
  }
1769
1763
  };
1770
- const deserializeAws_restJson1StartContentUploadCommand = async (output, context) => {
1764
+ const de_StartContentUploadCommand = async (output, context) => {
1771
1765
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1772
- return deserializeAws_restJson1StartContentUploadCommandError(output, context);
1766
+ return de_StartContentUploadCommandError(output, context);
1773
1767
  }
1774
1768
  const contents = map({
1775
1769
  $metadata: deserializeMetadata(output),
1776
1770
  });
1777
1771
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1778
1772
  if (data.headersToInclude != null) {
1779
- contents.headersToInclude = deserializeAws_restJson1Headers(data.headersToInclude, context);
1773
+ contents.headersToInclude = de_Headers(data.headersToInclude, context);
1780
1774
  }
1781
1775
  if (data.uploadId != null) {
1782
1776
  contents.uploadId = (0, smithy_client_1.expectString)(data.uploadId);
@@ -1789,8 +1783,8 @@ const deserializeAws_restJson1StartContentUploadCommand = async (output, context
1789
1783
  }
1790
1784
  return contents;
1791
1785
  };
1792
- exports.deserializeAws_restJson1StartContentUploadCommand = deserializeAws_restJson1StartContentUploadCommand;
1793
- const deserializeAws_restJson1StartContentUploadCommandError = async (output, context) => {
1786
+ exports.de_StartContentUploadCommand = de_StartContentUploadCommand;
1787
+ const de_StartContentUploadCommandError = async (output, context) => {
1794
1788
  const parsedOutput = {
1795
1789
  ...output,
1796
1790
  body: await parseErrorBody(output.body, context),
@@ -1799,13 +1793,13 @@ const deserializeAws_restJson1StartContentUploadCommandError = async (output, co
1799
1793
  switch (errorCode) {
1800
1794
  case "AccessDeniedException":
1801
1795
  case "com.amazonaws.wisdom#AccessDeniedException":
1802
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1796
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1803
1797
  case "ResourceNotFoundException":
1804
1798
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1805
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1799
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1806
1800
  case "ValidationException":
1807
1801
  case "com.amazonaws.wisdom#ValidationException":
1808
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1802
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1809
1803
  default:
1810
1804
  const parsedBody = parsedOutput.body;
1811
1805
  (0, smithy_client_1.throwDefaultError)({
@@ -1816,9 +1810,9 @@ const deserializeAws_restJson1StartContentUploadCommandError = async (output, co
1816
1810
  });
1817
1811
  }
1818
1812
  };
1819
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1813
+ const de_TagResourceCommand = async (output, context) => {
1820
1814
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1821
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1815
+ return de_TagResourceCommandError(output, context);
1822
1816
  }
1823
1817
  const contents = map({
1824
1818
  $metadata: deserializeMetadata(output),
@@ -1826,8 +1820,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1826
1820
  await collectBody(output.body, context);
1827
1821
  return contents;
1828
1822
  };
1829
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
1830
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1823
+ exports.de_TagResourceCommand = de_TagResourceCommand;
1824
+ const de_TagResourceCommandError = async (output, context) => {
1831
1825
  const parsedOutput = {
1832
1826
  ...output,
1833
1827
  body: await parseErrorBody(output.body, context),
@@ -1836,10 +1830,10 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1836
1830
  switch (errorCode) {
1837
1831
  case "ResourceNotFoundException":
1838
1832
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1839
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1833
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1840
1834
  case "TooManyTagsException":
1841
1835
  case "com.amazonaws.wisdom#TooManyTagsException":
1842
- throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
1836
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1843
1837
  default:
1844
1838
  const parsedBody = parsedOutput.body;
1845
1839
  (0, smithy_client_1.throwDefaultError)({
@@ -1850,9 +1844,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1850
1844
  });
1851
1845
  }
1852
1846
  };
1853
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1847
+ const de_UntagResourceCommand = async (output, context) => {
1854
1848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1855
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1849
+ return de_UntagResourceCommandError(output, context);
1856
1850
  }
1857
1851
  const contents = map({
1858
1852
  $metadata: deserializeMetadata(output),
@@ -1860,8 +1854,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
1860
1854
  await collectBody(output.body, context);
1861
1855
  return contents;
1862
1856
  };
1863
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
1864
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1857
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
1858
+ const de_UntagResourceCommandError = async (output, context) => {
1865
1859
  const parsedOutput = {
1866
1860
  ...output,
1867
1861
  body: await parseErrorBody(output.body, context),
@@ -1870,7 +1864,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1870
1864
  switch (errorCode) {
1871
1865
  case "ResourceNotFoundException":
1872
1866
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1873
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1867
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1874
1868
  default:
1875
1869
  const parsedBody = parsedOutput.body;
1876
1870
  (0, smithy_client_1.throwDefaultError)({
@@ -1881,21 +1875,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1881
1875
  });
1882
1876
  }
1883
1877
  };
1884
- const deserializeAws_restJson1UpdateContentCommand = async (output, context) => {
1878
+ const de_UpdateContentCommand = async (output, context) => {
1885
1879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1886
- return deserializeAws_restJson1UpdateContentCommandError(output, context);
1880
+ return de_UpdateContentCommandError(output, context);
1887
1881
  }
1888
1882
  const contents = map({
1889
1883
  $metadata: deserializeMetadata(output),
1890
1884
  });
1891
1885
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1892
1886
  if (data.content != null) {
1893
- contents.content = deserializeAws_restJson1ContentData(data.content, context);
1887
+ contents.content = de_ContentData(data.content, context);
1894
1888
  }
1895
1889
  return contents;
1896
1890
  };
1897
- exports.deserializeAws_restJson1UpdateContentCommand = deserializeAws_restJson1UpdateContentCommand;
1898
- const deserializeAws_restJson1UpdateContentCommandError = async (output, context) => {
1891
+ exports.de_UpdateContentCommand = de_UpdateContentCommand;
1892
+ const de_UpdateContentCommandError = async (output, context) => {
1899
1893
  const parsedOutput = {
1900
1894
  ...output,
1901
1895
  body: await parseErrorBody(output.body, context),
@@ -1904,16 +1898,16 @@ const deserializeAws_restJson1UpdateContentCommandError = async (output, context
1904
1898
  switch (errorCode) {
1905
1899
  case "AccessDeniedException":
1906
1900
  case "com.amazonaws.wisdom#AccessDeniedException":
1907
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1901
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1908
1902
  case "PreconditionFailedException":
1909
1903
  case "com.amazonaws.wisdom#PreconditionFailedException":
1910
- throw await deserializeAws_restJson1PreconditionFailedExceptionResponse(parsedOutput, context);
1904
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
1911
1905
  case "ResourceNotFoundException":
1912
1906
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1913
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1907
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1914
1908
  case "ValidationException":
1915
1909
  case "com.amazonaws.wisdom#ValidationException":
1916
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1910
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1917
1911
  default:
1918
1912
  const parsedBody = parsedOutput.body;
1919
1913
  (0, smithy_client_1.throwDefaultError)({
@@ -1924,21 +1918,21 @@ const deserializeAws_restJson1UpdateContentCommandError = async (output, context
1924
1918
  });
1925
1919
  }
1926
1920
  };
1927
- const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = async (output, context) => {
1921
+ const de_UpdateKnowledgeBaseTemplateUriCommand = async (output, context) => {
1928
1922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1929
- return deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommandError(output, context);
1923
+ return de_UpdateKnowledgeBaseTemplateUriCommandError(output, context);
1930
1924
  }
1931
1925
  const contents = map({
1932
1926
  $metadata: deserializeMetadata(output),
1933
1927
  });
1934
1928
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1935
1929
  if (data.knowledgeBase != null) {
1936
- contents.knowledgeBase = deserializeAws_restJson1KnowledgeBaseData(data.knowledgeBase, context);
1930
+ contents.knowledgeBase = de_KnowledgeBaseData(data.knowledgeBase, context);
1937
1931
  }
1938
1932
  return contents;
1939
1933
  };
1940
- exports.deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand;
1941
- const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommandError = async (output, context) => {
1934
+ exports.de_UpdateKnowledgeBaseTemplateUriCommand = de_UpdateKnowledgeBaseTemplateUriCommand;
1935
+ const de_UpdateKnowledgeBaseTemplateUriCommandError = async (output, context) => {
1942
1936
  const parsedOutput = {
1943
1937
  ...output,
1944
1938
  body: await parseErrorBody(output.body, context),
@@ -1947,13 +1941,13 @@ const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommandError = async
1947
1941
  switch (errorCode) {
1948
1942
  case "AccessDeniedException":
1949
1943
  case "com.amazonaws.wisdom#AccessDeniedException":
1950
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1944
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1951
1945
  case "ResourceNotFoundException":
1952
1946
  case "com.amazonaws.wisdom#ResourceNotFoundException":
1953
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1947
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1954
1948
  case "ValidationException":
1955
1949
  case "com.amazonaws.wisdom#ValidationException":
1956
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1950
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1957
1951
  default:
1958
1952
  const parsedBody = parsedOutput.body;
1959
1953
  (0, smithy_client_1.throwDefaultError)({
@@ -1965,7 +1959,7 @@ const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommandError = async
1965
1959
  }
1966
1960
  };
1967
1961
  const map = smithy_client_1.map;
1968
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1962
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1969
1963
  const contents = map({});
1970
1964
  const data = parsedOutput.body;
1971
1965
  if (data.message != null) {
@@ -1977,7 +1971,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1977
1971
  });
1978
1972
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1979
1973
  };
1980
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1974
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1981
1975
  const contents = map({});
1982
1976
  const data = parsedOutput.body;
1983
1977
  if (data.message != null) {
@@ -1989,7 +1983,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1989
1983
  });
1990
1984
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1991
1985
  };
1992
- const deserializeAws_restJson1PreconditionFailedExceptionResponse = async (parsedOutput, context) => {
1986
+ const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
1993
1987
  const contents = map({});
1994
1988
  const data = parsedOutput.body;
1995
1989
  if (data.message != null) {
@@ -2001,7 +1995,7 @@ const deserializeAws_restJson1PreconditionFailedExceptionResponse = async (parse
2001
1995
  });
2002
1996
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2003
1997
  };
2004
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1998
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2005
1999
  const contents = map({});
2006
2000
  const data = parsedOutput.body;
2007
2001
  if (data.message != null) {
@@ -2016,7 +2010,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2016
2010
  });
2017
2011
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2018
2012
  };
2019
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
2013
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2020
2014
  const contents = map({});
2021
2015
  const data = parsedOutput.body;
2022
2016
  if (data.message != null) {
@@ -2028,7 +2022,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
2028
2022
  });
2029
2023
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2030
2024
  };
2031
- const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
2025
+ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2032
2026
  const contents = map({});
2033
2027
  const data = parsedOutput.body;
2034
2028
  if (data.message != null) {
@@ -2043,7 +2037,7 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
2043
2037
  });
2044
2038
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2045
2039
  };
2046
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
2040
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
2047
2041
  const contents = map({});
2048
2042
  const data = parsedOutput.body;
2049
2043
  if (data.message != null) {
@@ -2055,21 +2049,19 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2055
2049
  });
2056
2050
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2057
2051
  };
2058
- const serializeAws_restJson1AppIntegrationsConfiguration = (input, context) => {
2052
+ const se_AppIntegrationsConfiguration = (input, context) => {
2059
2053
  return {
2060
2054
  ...(input.appIntegrationArn != null && { appIntegrationArn: input.appIntegrationArn }),
2061
- ...(input.objectFields != null && {
2062
- objectFields: serializeAws_restJson1ObjectFieldsList(input.objectFields, context),
2063
- }),
2055
+ ...(input.objectFields != null && { objectFields: se_ObjectFieldsList(input.objectFields, context) }),
2064
2056
  };
2065
2057
  };
2066
- const serializeAws_restJson1AssistantAssociationInputData = (input, context) => {
2058
+ const se_AssistantAssociationInputData = (input, context) => {
2067
2059
  return models_0_1.AssistantAssociationInputData.visit(input, {
2068
2060
  knowledgeBaseId: (value) => ({ knowledgeBaseId: value }),
2069
2061
  _: (name, value) => ({ name: value }),
2070
2062
  });
2071
2063
  };
2072
- const serializeAws_restJson1ContentMetadata = (input, context) => {
2064
+ const se_ContentMetadata = (input, context) => {
2073
2065
  return Object.entries(input).reduce((acc, [key, value]) => {
2074
2066
  if (value === null) {
2075
2067
  return acc;
@@ -2078,58 +2070,56 @@ const serializeAws_restJson1ContentMetadata = (input, context) => {
2078
2070
  return acc;
2079
2071
  }, {});
2080
2072
  };
2081
- const serializeAws_restJson1Filter = (input, context) => {
2073
+ const se_Filter = (input, context) => {
2082
2074
  return {
2083
2075
  ...(input.field != null && { field: input.field }),
2084
2076
  ...(input.operator != null && { operator: input.operator }),
2085
2077
  ...(input.value != null && { value: input.value }),
2086
2078
  };
2087
2079
  };
2088
- const serializeAws_restJson1FilterList = (input, context) => {
2080
+ const se_FilterList = (input, context) => {
2089
2081
  return input
2090
2082
  .filter((e) => e != null)
2091
2083
  .map((entry) => {
2092
- return serializeAws_restJson1Filter(entry, context);
2084
+ return se_Filter(entry, context);
2093
2085
  });
2094
2086
  };
2095
- const serializeAws_restJson1ObjectFieldsList = (input, context) => {
2087
+ const se_ObjectFieldsList = (input, context) => {
2096
2088
  return input
2097
2089
  .filter((e) => e != null)
2098
2090
  .map((entry) => {
2099
2091
  return entry;
2100
2092
  });
2101
2093
  };
2102
- const serializeAws_restJson1RecommendationIdList = (input, context) => {
2094
+ const se_RecommendationIdList = (input, context) => {
2103
2095
  return input
2104
2096
  .filter((e) => e != null)
2105
2097
  .map((entry) => {
2106
2098
  return entry;
2107
2099
  });
2108
2100
  };
2109
- const serializeAws_restJson1RenderingConfiguration = (input, context) => {
2101
+ const se_RenderingConfiguration = (input, context) => {
2110
2102
  return {
2111
2103
  ...(input.templateUri != null && { templateUri: input.templateUri }),
2112
2104
  };
2113
2105
  };
2114
- const serializeAws_restJson1SearchExpression = (input, context) => {
2106
+ const se_SearchExpression = (input, context) => {
2115
2107
  return {
2116
- ...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
2108
+ ...(input.filters != null && { filters: se_FilterList(input.filters, context) }),
2117
2109
  };
2118
2110
  };
2119
- const serializeAws_restJson1ServerSideEncryptionConfiguration = (input, context) => {
2111
+ const se_ServerSideEncryptionConfiguration = (input, context) => {
2120
2112
  return {
2121
2113
  ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
2122
2114
  };
2123
2115
  };
2124
- const serializeAws_restJson1SourceConfiguration = (input, context) => {
2116
+ const se_SourceConfiguration = (input, context) => {
2125
2117
  return models_0_1.SourceConfiguration.visit(input, {
2126
- appIntegrations: (value) => ({
2127
- appIntegrations: serializeAws_restJson1AppIntegrationsConfiguration(value, context),
2128
- }),
2118
+ appIntegrations: (value) => ({ appIntegrations: se_AppIntegrationsConfiguration(value, context) }),
2129
2119
  _: (name, value) => ({ name: value }),
2130
2120
  });
2131
2121
  };
2132
- const serializeAws_restJson1Tags = (input, context) => {
2122
+ const se_Tags = (input, context) => {
2133
2123
  return Object.entries(input).reduce((acc, [key, value]) => {
2134
2124
  if (value === null) {
2135
2125
  return acc;
@@ -2138,97 +2128,97 @@ const serializeAws_restJson1Tags = (input, context) => {
2138
2128
  return acc;
2139
2129
  }, {});
2140
2130
  };
2141
- const deserializeAws_restJson1AppIntegrationsConfiguration = (output, context) => {
2131
+ const de_AppIntegrationsConfiguration = (output, context) => {
2142
2132
  return {
2143
2133
  appIntegrationArn: (0, smithy_client_1.expectString)(output.appIntegrationArn),
2144
- objectFields: output.objectFields != null ? deserializeAws_restJson1ObjectFieldsList(output.objectFields, context) : undefined,
2134
+ objectFields: output.objectFields != null ? de_ObjectFieldsList(output.objectFields, context) : undefined,
2145
2135
  };
2146
2136
  };
2147
- const deserializeAws_restJson1AssistantAssociationData = (output, context) => {
2137
+ const de_AssistantAssociationData = (output, context) => {
2148
2138
  return {
2149
2139
  assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2150
2140
  assistantAssociationArn: (0, smithy_client_1.expectString)(output.assistantAssociationArn),
2151
2141
  assistantAssociationId: (0, smithy_client_1.expectString)(output.assistantAssociationId),
2152
2142
  assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2153
2143
  associationData: output.associationData != null
2154
- ? deserializeAws_restJson1AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
2144
+ ? de_AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
2155
2145
  : undefined,
2156
2146
  associationType: (0, smithy_client_1.expectString)(output.associationType),
2157
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2147
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2158
2148
  };
2159
2149
  };
2160
- const deserializeAws_restJson1AssistantAssociationOutputData = (output, context) => {
2150
+ const de_AssistantAssociationOutputData = (output, context) => {
2161
2151
  if (output.knowledgeBaseAssociation != null) {
2162
2152
  return {
2163
- knowledgeBaseAssociation: deserializeAws_restJson1KnowledgeBaseAssociationData(output.knowledgeBaseAssociation, context),
2153
+ knowledgeBaseAssociation: de_KnowledgeBaseAssociationData(output.knowledgeBaseAssociation, context),
2164
2154
  };
2165
2155
  }
2166
2156
  return { $unknown: Object.entries(output)[0] };
2167
2157
  };
2168
- const deserializeAws_restJson1AssistantAssociationSummary = (output, context) => {
2158
+ const de_AssistantAssociationSummary = (output, context) => {
2169
2159
  return {
2170
2160
  assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2171
2161
  assistantAssociationArn: (0, smithy_client_1.expectString)(output.assistantAssociationArn),
2172
2162
  assistantAssociationId: (0, smithy_client_1.expectString)(output.assistantAssociationId),
2173
2163
  assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2174
2164
  associationData: output.associationData != null
2175
- ? deserializeAws_restJson1AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
2165
+ ? de_AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
2176
2166
  : undefined,
2177
2167
  associationType: (0, smithy_client_1.expectString)(output.associationType),
2178
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2168
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2179
2169
  };
2180
2170
  };
2181
- const deserializeAws_restJson1AssistantAssociationSummaryList = (output, context) => {
2171
+ const de_AssistantAssociationSummaryList = (output, context) => {
2182
2172
  const retVal = (output || [])
2183
2173
  .filter((e) => e != null)
2184
2174
  .map((entry) => {
2185
2175
  if (entry === null) {
2186
2176
  return null;
2187
2177
  }
2188
- return deserializeAws_restJson1AssistantAssociationSummary(entry, context);
2178
+ return de_AssistantAssociationSummary(entry, context);
2189
2179
  });
2190
2180
  return retVal;
2191
2181
  };
2192
- const deserializeAws_restJson1AssistantData = (output, context) => {
2182
+ const de_AssistantData = (output, context) => {
2193
2183
  return {
2194
2184
  assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2195
2185
  assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2196
2186
  description: (0, smithy_client_1.expectString)(output.description),
2197
2187
  name: (0, smithy_client_1.expectString)(output.name),
2198
2188
  serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
2199
- ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2189
+ ? de_ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2200
2190
  : undefined,
2201
2191
  status: (0, smithy_client_1.expectString)(output.status),
2202
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2192
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2203
2193
  type: (0, smithy_client_1.expectString)(output.type),
2204
2194
  };
2205
2195
  };
2206
- const deserializeAws_restJson1AssistantList = (output, context) => {
2196
+ const de_AssistantList = (output, context) => {
2207
2197
  const retVal = (output || [])
2208
2198
  .filter((e) => e != null)
2209
2199
  .map((entry) => {
2210
2200
  if (entry === null) {
2211
2201
  return null;
2212
2202
  }
2213
- return deserializeAws_restJson1AssistantSummary(entry, context);
2203
+ return de_AssistantSummary(entry, context);
2214
2204
  });
2215
2205
  return retVal;
2216
2206
  };
2217
- const deserializeAws_restJson1AssistantSummary = (output, context) => {
2207
+ const de_AssistantSummary = (output, context) => {
2218
2208
  return {
2219
2209
  assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2220
2210
  assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2221
2211
  description: (0, smithy_client_1.expectString)(output.description),
2222
2212
  name: (0, smithy_client_1.expectString)(output.name),
2223
2213
  serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
2224
- ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2214
+ ? de_ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2225
2215
  : undefined,
2226
2216
  status: (0, smithy_client_1.expectString)(output.status),
2227
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2217
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2228
2218
  type: (0, smithy_client_1.expectString)(output.type),
2229
2219
  };
2230
2220
  };
2231
- const deserializeAws_restJson1ContentData = (output, context) => {
2221
+ const de_ContentData = (output, context) => {
2232
2222
  return {
2233
2223
  contentArn: (0, smithy_client_1.expectString)(output.contentArn),
2234
2224
  contentId: (0, smithy_client_1.expectString)(output.contentId),
@@ -2236,17 +2226,17 @@ const deserializeAws_restJson1ContentData = (output, context) => {
2236
2226
  knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2237
2227
  knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2238
2228
  linkOutUri: (0, smithy_client_1.expectString)(output.linkOutUri),
2239
- metadata: output.metadata != null ? deserializeAws_restJson1ContentMetadata(output.metadata, context) : undefined,
2229
+ metadata: output.metadata != null ? de_ContentMetadata(output.metadata, context) : undefined,
2240
2230
  name: (0, smithy_client_1.expectString)(output.name),
2241
2231
  revisionId: (0, smithy_client_1.expectString)(output.revisionId),
2242
2232
  status: (0, smithy_client_1.expectString)(output.status),
2243
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2233
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2244
2234
  title: (0, smithy_client_1.expectString)(output.title),
2245
2235
  url: (0, smithy_client_1.expectString)(output.url),
2246
2236
  urlExpiry: output.urlExpiry != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.urlExpiry))) : undefined,
2247
2237
  };
2248
2238
  };
2249
- const deserializeAws_restJson1ContentMetadata = (output, context) => {
2239
+ const de_ContentMetadata = (output, context) => {
2250
2240
  return Object.entries(output).reduce((acc, [key, value]) => {
2251
2241
  if (value === null) {
2252
2242
  return acc;
@@ -2255,7 +2245,7 @@ const deserializeAws_restJson1ContentMetadata = (output, context) => {
2255
2245
  return acc;
2256
2246
  }, {});
2257
2247
  };
2258
- const deserializeAws_restJson1ContentReference = (output, context) => {
2248
+ const de_ContentReference = (output, context) => {
2259
2249
  return {
2260
2250
  contentArn: (0, smithy_client_1.expectString)(output.contentArn),
2261
2251
  contentId: (0, smithy_client_1.expectString)(output.contentId),
@@ -2263,48 +2253,46 @@ const deserializeAws_restJson1ContentReference = (output, context) => {
2263
2253
  knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2264
2254
  };
2265
2255
  };
2266
- const deserializeAws_restJson1ContentSummary = (output, context) => {
2256
+ const de_ContentSummary = (output, context) => {
2267
2257
  return {
2268
2258
  contentArn: (0, smithy_client_1.expectString)(output.contentArn),
2269
2259
  contentId: (0, smithy_client_1.expectString)(output.contentId),
2270
2260
  contentType: (0, smithy_client_1.expectString)(output.contentType),
2271
2261
  knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2272
2262
  knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2273
- metadata: output.metadata != null ? deserializeAws_restJson1ContentMetadata(output.metadata, context) : undefined,
2263
+ metadata: output.metadata != null ? de_ContentMetadata(output.metadata, context) : undefined,
2274
2264
  name: (0, smithy_client_1.expectString)(output.name),
2275
2265
  revisionId: (0, smithy_client_1.expectString)(output.revisionId),
2276
2266
  status: (0, smithy_client_1.expectString)(output.status),
2277
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2267
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2278
2268
  title: (0, smithy_client_1.expectString)(output.title),
2279
2269
  };
2280
2270
  };
2281
- const deserializeAws_restJson1ContentSummaryList = (output, context) => {
2271
+ const de_ContentSummaryList = (output, context) => {
2282
2272
  const retVal = (output || [])
2283
2273
  .filter((e) => e != null)
2284
2274
  .map((entry) => {
2285
2275
  if (entry === null) {
2286
2276
  return null;
2287
2277
  }
2288
- return deserializeAws_restJson1ContentSummary(entry, context);
2278
+ return de_ContentSummary(entry, context);
2289
2279
  });
2290
2280
  return retVal;
2291
2281
  };
2292
- const deserializeAws_restJson1Document = (output, context) => {
2282
+ const de_Document = (output, context) => {
2293
2283
  return {
2294
- contentReference: output.contentReference != null
2295
- ? deserializeAws_restJson1ContentReference(output.contentReference, context)
2296
- : undefined,
2297
- excerpt: output.excerpt != null ? deserializeAws_restJson1DocumentText(output.excerpt, context) : undefined,
2298
- title: output.title != null ? deserializeAws_restJson1DocumentText(output.title, context) : undefined,
2284
+ contentReference: output.contentReference != null ? de_ContentReference(output.contentReference, context) : undefined,
2285
+ excerpt: output.excerpt != null ? de_DocumentText(output.excerpt, context) : undefined,
2286
+ title: output.title != null ? de_DocumentText(output.title, context) : undefined,
2299
2287
  };
2300
2288
  };
2301
- const deserializeAws_restJson1DocumentText = (output, context) => {
2289
+ const de_DocumentText = (output, context) => {
2302
2290
  return {
2303
- highlights: output.highlights != null ? deserializeAws_restJson1Highlights(output.highlights, context) : undefined,
2291
+ highlights: output.highlights != null ? de_Highlights(output.highlights, context) : undefined,
2304
2292
  text: (0, smithy_client_1.expectString)(output.text),
2305
2293
  };
2306
2294
  };
2307
- const deserializeAws_restJson1Headers = (output, context) => {
2295
+ const de_Headers = (output, context) => {
2308
2296
  return Object.entries(output).reduce((acc, [key, value]) => {
2309
2297
  if (value === null) {
2310
2298
  return acc;
@@ -2313,30 +2301,30 @@ const deserializeAws_restJson1Headers = (output, context) => {
2313
2301
  return acc;
2314
2302
  }, {});
2315
2303
  };
2316
- const deserializeAws_restJson1Highlight = (output, context) => {
2304
+ const de_Highlight = (output, context) => {
2317
2305
  return {
2318
2306
  beginOffsetInclusive: (0, smithy_client_1.expectInt32)(output.beginOffsetInclusive),
2319
2307
  endOffsetExclusive: (0, smithy_client_1.expectInt32)(output.endOffsetExclusive),
2320
2308
  };
2321
2309
  };
2322
- const deserializeAws_restJson1Highlights = (output, context) => {
2310
+ const de_Highlights = (output, context) => {
2323
2311
  const retVal = (output || [])
2324
2312
  .filter((e) => e != null)
2325
2313
  .map((entry) => {
2326
2314
  if (entry === null) {
2327
2315
  return null;
2328
2316
  }
2329
- return deserializeAws_restJson1Highlight(entry, context);
2317
+ return de_Highlight(entry, context);
2330
2318
  });
2331
2319
  return retVal;
2332
2320
  };
2333
- const deserializeAws_restJson1KnowledgeBaseAssociationData = (output, context) => {
2321
+ const de_KnowledgeBaseAssociationData = (output, context) => {
2334
2322
  return {
2335
2323
  knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2336
2324
  knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2337
2325
  };
2338
2326
  };
2339
- const deserializeAws_restJson1KnowledgeBaseData = (output, context) => {
2327
+ const de_KnowledgeBaseData = (output, context) => {
2340
2328
  return {
2341
2329
  description: (0, smithy_client_1.expectString)(output.description),
2342
2330
  knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
@@ -2347,30 +2335,30 @@ const deserializeAws_restJson1KnowledgeBaseData = (output, context) => {
2347
2335
  : undefined,
2348
2336
  name: (0, smithy_client_1.expectString)(output.name),
2349
2337
  renderingConfiguration: output.renderingConfiguration != null
2350
- ? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
2338
+ ? de_RenderingConfiguration(output.renderingConfiguration, context)
2351
2339
  : undefined,
2352
2340
  serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
2353
- ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2341
+ ? de_ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2354
2342
  : undefined,
2355
2343
  sourceConfiguration: output.sourceConfiguration != null
2356
- ? deserializeAws_restJson1SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
2344
+ ? de_SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
2357
2345
  : undefined,
2358
2346
  status: (0, smithy_client_1.expectString)(output.status),
2359
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2347
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2360
2348
  };
2361
2349
  };
2362
- const deserializeAws_restJson1KnowledgeBaseList = (output, context) => {
2350
+ const de_KnowledgeBaseList = (output, context) => {
2363
2351
  const retVal = (output || [])
2364
2352
  .filter((e) => e != null)
2365
2353
  .map((entry) => {
2366
2354
  if (entry === null) {
2367
2355
  return null;
2368
2356
  }
2369
- return deserializeAws_restJson1KnowledgeBaseSummary(entry, context);
2357
+ return de_KnowledgeBaseSummary(entry, context);
2370
2358
  });
2371
2359
  return retVal;
2372
2360
  };
2373
- const deserializeAws_restJson1KnowledgeBaseSummary = (output, context) => {
2361
+ const de_KnowledgeBaseSummary = (output, context) => {
2374
2362
  return {
2375
2363
  description: (0, smithy_client_1.expectString)(output.description),
2376
2364
  knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
@@ -2378,36 +2366,36 @@ const deserializeAws_restJson1KnowledgeBaseSummary = (output, context) => {
2378
2366
  knowledgeBaseType: (0, smithy_client_1.expectString)(output.knowledgeBaseType),
2379
2367
  name: (0, smithy_client_1.expectString)(output.name),
2380
2368
  renderingConfiguration: output.renderingConfiguration != null
2381
- ? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
2369
+ ? de_RenderingConfiguration(output.renderingConfiguration, context)
2382
2370
  : undefined,
2383
2371
  serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
2384
- ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2372
+ ? de_ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2385
2373
  : undefined,
2386
2374
  sourceConfiguration: output.sourceConfiguration != null
2387
- ? deserializeAws_restJson1SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
2375
+ ? de_SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
2388
2376
  : undefined,
2389
2377
  status: (0, smithy_client_1.expectString)(output.status),
2390
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2378
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2391
2379
  };
2392
2380
  };
2393
- const deserializeAws_restJson1NotifyRecommendationsReceivedError = (output, context) => {
2381
+ const de_NotifyRecommendationsReceivedError = (output, context) => {
2394
2382
  return {
2395
2383
  message: (0, smithy_client_1.expectString)(output.message),
2396
2384
  recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
2397
2385
  };
2398
2386
  };
2399
- const deserializeAws_restJson1NotifyRecommendationsReceivedErrorList = (output, context) => {
2387
+ const de_NotifyRecommendationsReceivedErrorList = (output, context) => {
2400
2388
  const retVal = (output || [])
2401
2389
  .filter((e) => e != null)
2402
2390
  .map((entry) => {
2403
2391
  if (entry === null) {
2404
2392
  return null;
2405
2393
  }
2406
- return deserializeAws_restJson1NotifyRecommendationsReceivedError(entry, context);
2394
+ return de_NotifyRecommendationsReceivedError(entry, context);
2407
2395
  });
2408
2396
  return retVal;
2409
2397
  };
2410
- const deserializeAws_restJson1ObjectFieldsList = (output, context) => {
2398
+ const de_ObjectFieldsList = (output, context) => {
2411
2399
  const retVal = (output || [])
2412
2400
  .filter((e) => e != null)
2413
2401
  .map((entry) => {
@@ -2418,32 +2406,32 @@ const deserializeAws_restJson1ObjectFieldsList = (output, context) => {
2418
2406
  });
2419
2407
  return retVal;
2420
2408
  };
2421
- const deserializeAws_restJson1QueryRecommendationTriggerData = (output, context) => {
2409
+ const de_QueryRecommendationTriggerData = (output, context) => {
2422
2410
  return {
2423
2411
  text: (0, smithy_client_1.expectString)(output.text),
2424
2412
  };
2425
2413
  };
2426
- const deserializeAws_restJson1QueryResultsList = (output, context) => {
2414
+ const de_QueryResultsList = (output, context) => {
2427
2415
  const retVal = (output || [])
2428
2416
  .filter((e) => e != null)
2429
2417
  .map((entry) => {
2430
2418
  if (entry === null) {
2431
2419
  return null;
2432
2420
  }
2433
- return deserializeAws_restJson1ResultData(entry, context);
2421
+ return de_ResultData(entry, context);
2434
2422
  });
2435
2423
  return retVal;
2436
2424
  };
2437
- const deserializeAws_restJson1RecommendationData = (output, context) => {
2425
+ const de_RecommendationData = (output, context) => {
2438
2426
  return {
2439
- document: output.document != null ? deserializeAws_restJson1Document(output.document, context) : undefined,
2427
+ document: output.document != null ? de_Document(output.document, context) : undefined,
2440
2428
  recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
2441
2429
  relevanceLevel: (0, smithy_client_1.expectString)(output.relevanceLevel),
2442
2430
  relevanceScore: (0, smithy_client_1.limitedParseDouble)(output.relevanceScore),
2443
2431
  type: (0, smithy_client_1.expectString)(output.type),
2444
2432
  };
2445
2433
  };
2446
- const deserializeAws_restJson1RecommendationIdList = (output, context) => {
2434
+ const de_RecommendationIdList = (output, context) => {
2447
2435
  const retVal = (output || [])
2448
2436
  .filter((e) => e != null)
2449
2437
  .map((entry) => {
@@ -2454,87 +2442,83 @@ const deserializeAws_restJson1RecommendationIdList = (output, context) => {
2454
2442
  });
2455
2443
  return retVal;
2456
2444
  };
2457
- const deserializeAws_restJson1RecommendationList = (output, context) => {
2445
+ const de_RecommendationList = (output, context) => {
2458
2446
  const retVal = (output || [])
2459
2447
  .filter((e) => e != null)
2460
2448
  .map((entry) => {
2461
2449
  if (entry === null) {
2462
2450
  return null;
2463
2451
  }
2464
- return deserializeAws_restJson1RecommendationData(entry, context);
2452
+ return de_RecommendationData(entry, context);
2465
2453
  });
2466
2454
  return retVal;
2467
2455
  };
2468
- const deserializeAws_restJson1RecommendationTrigger = (output, context) => {
2456
+ const de_RecommendationTrigger = (output, context) => {
2469
2457
  return {
2470
- data: output.data != null
2471
- ? deserializeAws_restJson1RecommendationTriggerData((0, smithy_client_1.expectUnion)(output.data), context)
2472
- : undefined,
2458
+ data: output.data != null ? de_RecommendationTriggerData((0, smithy_client_1.expectUnion)(output.data), context) : undefined,
2473
2459
  id: (0, smithy_client_1.expectString)(output.id),
2474
- recommendationIds: output.recommendationIds != null
2475
- ? deserializeAws_restJson1RecommendationIdList(output.recommendationIds, context)
2476
- : undefined,
2460
+ recommendationIds: output.recommendationIds != null ? de_RecommendationIdList(output.recommendationIds, context) : undefined,
2477
2461
  source: (0, smithy_client_1.expectString)(output.source),
2478
2462
  type: (0, smithy_client_1.expectString)(output.type),
2479
2463
  };
2480
2464
  };
2481
- const deserializeAws_restJson1RecommendationTriggerData = (output, context) => {
2465
+ const de_RecommendationTriggerData = (output, context) => {
2482
2466
  if (output.query != null) {
2483
2467
  return {
2484
- query: deserializeAws_restJson1QueryRecommendationTriggerData(output.query, context),
2468
+ query: de_QueryRecommendationTriggerData(output.query, context),
2485
2469
  };
2486
2470
  }
2487
2471
  return { $unknown: Object.entries(output)[0] };
2488
2472
  };
2489
- const deserializeAws_restJson1RecommendationTriggerList = (output, context) => {
2473
+ const de_RecommendationTriggerList = (output, context) => {
2490
2474
  const retVal = (output || [])
2491
2475
  .filter((e) => e != null)
2492
2476
  .map((entry) => {
2493
2477
  if (entry === null) {
2494
2478
  return null;
2495
2479
  }
2496
- return deserializeAws_restJson1RecommendationTrigger(entry, context);
2480
+ return de_RecommendationTrigger(entry, context);
2497
2481
  });
2498
2482
  return retVal;
2499
2483
  };
2500
- const deserializeAws_restJson1RenderingConfiguration = (output, context) => {
2484
+ const de_RenderingConfiguration = (output, context) => {
2501
2485
  return {
2502
2486
  templateUri: (0, smithy_client_1.expectString)(output.templateUri),
2503
2487
  };
2504
2488
  };
2505
- const deserializeAws_restJson1ResultData = (output, context) => {
2489
+ const de_ResultData = (output, context) => {
2506
2490
  return {
2507
- document: output.document != null ? deserializeAws_restJson1Document(output.document, context) : undefined,
2491
+ document: output.document != null ? de_Document(output.document, context) : undefined,
2508
2492
  relevanceScore: (0, smithy_client_1.limitedParseDouble)(output.relevanceScore),
2509
2493
  resultId: (0, smithy_client_1.expectString)(output.resultId),
2510
2494
  };
2511
2495
  };
2512
- const deserializeAws_restJson1ServerSideEncryptionConfiguration = (output, context) => {
2496
+ const de_ServerSideEncryptionConfiguration = (output, context) => {
2513
2497
  return {
2514
2498
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
2515
2499
  };
2516
2500
  };
2517
- const deserializeAws_restJson1SessionData = (output, context) => {
2501
+ const de_SessionData = (output, context) => {
2518
2502
  return {
2519
2503
  description: (0, smithy_client_1.expectString)(output.description),
2520
2504
  name: (0, smithy_client_1.expectString)(output.name),
2521
2505
  sessionArn: (0, smithy_client_1.expectString)(output.sessionArn),
2522
2506
  sessionId: (0, smithy_client_1.expectString)(output.sessionId),
2523
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2507
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
2524
2508
  };
2525
2509
  };
2526
- const deserializeAws_restJson1SessionSummaries = (output, context) => {
2510
+ const de_SessionSummaries = (output, context) => {
2527
2511
  const retVal = (output || [])
2528
2512
  .filter((e) => e != null)
2529
2513
  .map((entry) => {
2530
2514
  if (entry === null) {
2531
2515
  return null;
2532
2516
  }
2533
- return deserializeAws_restJson1SessionSummary(entry, context);
2517
+ return de_SessionSummary(entry, context);
2534
2518
  });
2535
2519
  return retVal;
2536
2520
  };
2537
- const deserializeAws_restJson1SessionSummary = (output, context) => {
2521
+ const de_SessionSummary = (output, context) => {
2538
2522
  return {
2539
2523
  assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2540
2524
  assistantId: (0, smithy_client_1.expectString)(output.assistantId),
@@ -2542,15 +2526,15 @@ const deserializeAws_restJson1SessionSummary = (output, context) => {
2542
2526
  sessionId: (0, smithy_client_1.expectString)(output.sessionId),
2543
2527
  };
2544
2528
  };
2545
- const deserializeAws_restJson1SourceConfiguration = (output, context) => {
2529
+ const de_SourceConfiguration = (output, context) => {
2546
2530
  if (output.appIntegrations != null) {
2547
2531
  return {
2548
- appIntegrations: deserializeAws_restJson1AppIntegrationsConfiguration(output.appIntegrations, context),
2532
+ appIntegrations: de_AppIntegrationsConfiguration(output.appIntegrations, context),
2549
2533
  };
2550
2534
  }
2551
2535
  return { $unknown: Object.entries(output)[0] };
2552
2536
  };
2553
- const deserializeAws_restJson1Tags = (output, context) => {
2537
+ const de_Tags = (output, context) => {
2554
2538
  return Object.entries(output).reduce((acc, [key, value]) => {
2555
2539
  if (value === null) {
2556
2540
  return acc;