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