@aws-sdk/client-wisdom 3.53.0 → 3.55.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 (56) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/WisdomClient.js +13 -13
  3. package/dist-cjs/commands/CreateAssistantAssociationCommand.js +3 -3
  4. package/dist-cjs/commands/CreateAssistantCommand.js +3 -3
  5. package/dist-cjs/commands/CreateContentCommand.js +3 -3
  6. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +3 -3
  7. package/dist-cjs/commands/CreateSessionCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteAssistantAssociationCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteAssistantCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteContentCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +3 -3
  12. package/dist-cjs/commands/GetAssistantAssociationCommand.js +3 -3
  13. package/dist-cjs/commands/GetAssistantCommand.js +3 -3
  14. package/dist-cjs/commands/GetContentCommand.js +3 -3
  15. package/dist-cjs/commands/GetContentSummaryCommand.js +3 -3
  16. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +3 -3
  17. package/dist-cjs/commands/GetRecommendationsCommand.js +3 -3
  18. package/dist-cjs/commands/GetSessionCommand.js +3 -3
  19. package/dist-cjs/commands/ListAssistantAssociationsCommand.js +3 -3
  20. package/dist-cjs/commands/ListAssistantsCommand.js +3 -3
  21. package/dist-cjs/commands/ListContentsCommand.js +3 -3
  22. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +3 -3
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  24. package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js +3 -3
  25. package/dist-cjs/commands/QueryAssistantCommand.js +3 -3
  26. package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js +3 -3
  27. package/dist-cjs/commands/SearchContentCommand.js +3 -3
  28. package/dist-cjs/commands/SearchSessionsCommand.js +3 -3
  29. package/dist-cjs/commands/StartContentUploadCommand.js +3 -3
  30. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  31. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  32. package/dist-cjs/commands/UpdateContentCommand.js +3 -3
  33. package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js +3 -3
  34. package/dist-cjs/endpoints.js +1 -1
  35. package/dist-cjs/protocols/Aws_restJson1.js +214 -214
  36. package/dist-cjs/runtimeConfig.browser.js +4 -4
  37. package/dist-cjs/runtimeConfig.js +9 -9
  38. package/dist-cjs/runtimeConfig.native.js +1 -1
  39. package/dist-es/Wisdom.js +31 -31
  40. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +4 -4
  41. package/dist-es/pagination/ListAssistantsPaginator.js +4 -4
  42. package/dist-es/pagination/ListContentsPaginator.js +4 -4
  43. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +4 -4
  44. package/dist-es/pagination/QueryAssistantPaginator.js +4 -4
  45. package/dist-es/pagination/SearchContentPaginator.js +4 -4
  46. package/dist-es/pagination/SearchSessionsPaginator.js +4 -4
  47. package/dist-es/protocols/Aws_restJson1.js +31 -31
  48. package/dist-types/WisdomClient.d.ts +2 -2
  49. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  50. package/dist-types/runtimeConfig.d.ts +1 -1
  51. package/dist-types/runtimeConfig.native.d.ts +3 -3
  52. package/dist-types/ts3.4/WisdomClient.d.ts +2 -2
  53. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  54. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  55. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  56. package/package.json +34 -34
@@ -16,7 +16,7 @@ const serializeAws_restJson1CreateAssistantCommand = async (input, context) => {
16
16
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assistants";
17
17
  let body;
18
18
  body = JSON.stringify({
19
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
19
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
20
20
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
21
21
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
22
22
  ...(input.serverSideEncryptionConfiguration !== undefined &&
@@ -49,7 +49,7 @@ const serializeAws_restJson1CreateAssistantAssociationCommand = async (input, co
49
49
  if (labelValue.length <= 0) {
50
50
  throw new Error("Empty value provided for input HTTP label: assistantId.");
51
51
  }
52
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
52
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
53
53
  }
54
54
  else {
55
55
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -62,7 +62,7 @@ const serializeAws_restJson1CreateAssistantAssociationCommand = async (input, co
62
62
  }),
63
63
  ...(input.associationType !== undefined &&
64
64
  input.associationType !== null && { associationType: input.associationType }),
65
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
65
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
66
66
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
67
67
  });
68
68
  return new protocol_http_1.HttpRequest({
@@ -89,14 +89,14 @@ const serializeAws_restJson1CreateContentCommand = async (input, context) => {
89
89
  if (labelValue.length <= 0) {
90
90
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
91
91
  }
92
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
92
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
93
93
  }
94
94
  else {
95
95
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
96
96
  }
97
97
  let body;
98
98
  body = JSON.stringify({
99
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
99
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
100
100
  ...(input.metadata !== undefined &&
101
101
  input.metadata !== null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) }),
102
102
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateKnowledgeBaseCommand = async (input, context)
126
126
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases";
127
127
  let body;
128
128
  body = JSON.stringify({
129
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
129
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
130
130
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
131
131
  ...(input.knowledgeBaseType !== undefined &&
132
132
  input.knowledgeBaseType !== null && { knowledgeBaseType: input.knowledgeBaseType }),
@@ -168,14 +168,14 @@ const serializeAws_restJson1CreateSessionCommand = async (input, context) => {
168
168
  if (labelValue.length <= 0) {
169
169
  throw new Error("Empty value provided for input HTTP label: assistantId.");
170
170
  }
171
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
171
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
172
172
  }
173
173
  else {
174
174
  throw new Error("No value provided for input HTTP label: assistantId.");
175
175
  }
176
176
  let body;
177
177
  body = JSON.stringify({
178
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
178
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
179
179
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
180
180
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
181
181
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
@@ -200,7 +200,7 @@ const serializeAws_restJson1DeleteAssistantCommand = async (input, context) => {
200
200
  if (labelValue.length <= 0) {
201
201
  throw new Error("Empty value provided for input HTTP label: assistantId.");
202
202
  }
203
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
203
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
204
204
  }
205
205
  else {
206
206
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -227,7 +227,7 @@ const serializeAws_restJson1DeleteAssistantAssociationCommand = async (input, co
227
227
  if (labelValue.length <= 0) {
228
228
  throw new Error("Empty value provided for input HTTP label: assistantAssociationId.");
229
229
  }
230
- resolvedPath = resolvedPath.replace("{assistantAssociationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
230
+ resolvedPath = resolvedPath.replace("{assistantAssociationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
231
231
  }
232
232
  else {
233
233
  throw new Error("No value provided for input HTTP label: assistantAssociationId.");
@@ -237,7 +237,7 @@ const serializeAws_restJson1DeleteAssistantAssociationCommand = async (input, co
237
237
  if (labelValue.length <= 0) {
238
238
  throw new Error("Empty value provided for input HTTP label: assistantId.");
239
239
  }
240
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
240
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
241
241
  }
242
242
  else {
243
243
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -264,7 +264,7 @@ const serializeAws_restJson1DeleteContentCommand = async (input, context) => {
264
264
  if (labelValue.length <= 0) {
265
265
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
266
266
  }
267
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
267
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
268
268
  }
269
269
  else {
270
270
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -274,7 +274,7 @@ const serializeAws_restJson1DeleteContentCommand = async (input, context) => {
274
274
  if (labelValue.length <= 0) {
275
275
  throw new Error("Empty value provided for input HTTP label: contentId.");
276
276
  }
277
- resolvedPath = resolvedPath.replace("{contentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
277
+ resolvedPath = resolvedPath.replace("{contentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
278
278
  }
279
279
  else {
280
280
  throw new Error("No value provided for input HTTP label: contentId.");
@@ -300,7 +300,7 @@ const serializeAws_restJson1DeleteKnowledgeBaseCommand = async (input, context)
300
300
  if (labelValue.length <= 0) {
301
301
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
302
302
  }
303
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
303
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
304
304
  }
305
305
  else {
306
306
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -326,7 +326,7 @@ const serializeAws_restJson1GetAssistantCommand = async (input, context) => {
326
326
  if (labelValue.length <= 0) {
327
327
  throw new Error("Empty value provided for input HTTP label: assistantId.");
328
328
  }
329
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
329
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
330
330
  }
331
331
  else {
332
332
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -353,7 +353,7 @@ const serializeAws_restJson1GetAssistantAssociationCommand = async (input, conte
353
353
  if (labelValue.length <= 0) {
354
354
  throw new Error("Empty value provided for input HTTP label: assistantAssociationId.");
355
355
  }
356
- resolvedPath = resolvedPath.replace("{assistantAssociationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
356
+ resolvedPath = resolvedPath.replace("{assistantAssociationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
357
357
  }
358
358
  else {
359
359
  throw new Error("No value provided for input HTTP label: assistantAssociationId.");
@@ -363,7 +363,7 @@ const serializeAws_restJson1GetAssistantAssociationCommand = async (input, conte
363
363
  if (labelValue.length <= 0) {
364
364
  throw new Error("Empty value provided for input HTTP label: assistantId.");
365
365
  }
366
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
366
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
367
367
  }
368
368
  else {
369
369
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -390,7 +390,7 @@ const serializeAws_restJson1GetContentCommand = async (input, context) => {
390
390
  if (labelValue.length <= 0) {
391
391
  throw new Error("Empty value provided for input HTTP label: contentId.");
392
392
  }
393
- resolvedPath = resolvedPath.replace("{contentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
393
+ resolvedPath = resolvedPath.replace("{contentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
394
394
  }
395
395
  else {
396
396
  throw new Error("No value provided for input HTTP label: contentId.");
@@ -400,7 +400,7 @@ const serializeAws_restJson1GetContentCommand = async (input, context) => {
400
400
  if (labelValue.length <= 0) {
401
401
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
402
402
  }
403
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
403
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
404
404
  }
405
405
  else {
406
406
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -427,7 +427,7 @@ const serializeAws_restJson1GetContentSummaryCommand = async (input, context) =>
427
427
  if (labelValue.length <= 0) {
428
428
  throw new Error("Empty value provided for input HTTP label: contentId.");
429
429
  }
430
- resolvedPath = resolvedPath.replace("{contentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
430
+ resolvedPath = resolvedPath.replace("{contentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
431
431
  }
432
432
  else {
433
433
  throw new Error("No value provided for input HTTP label: contentId.");
@@ -437,7 +437,7 @@ const serializeAws_restJson1GetContentSummaryCommand = async (input, context) =>
437
437
  if (labelValue.length <= 0) {
438
438
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
439
439
  }
440
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
440
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
441
441
  }
442
442
  else {
443
443
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -463,7 +463,7 @@ const serializeAws_restJson1GetKnowledgeBaseCommand = async (input, context) =>
463
463
  if (labelValue.length <= 0) {
464
464
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
465
465
  }
466
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
466
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
467
467
  }
468
468
  else {
469
469
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -490,7 +490,7 @@ const serializeAws_restJson1GetRecommendationsCommand = async (input, context) =
490
490
  if (labelValue.length <= 0) {
491
491
  throw new Error("Empty value provided for input HTTP label: assistantId.");
492
492
  }
493
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
493
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
494
494
  }
495
495
  else {
496
496
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -500,7 +500,7 @@ const serializeAws_restJson1GetRecommendationsCommand = async (input, context) =
500
500
  if (labelValue.length <= 0) {
501
501
  throw new Error("Empty value provided for input HTTP label: sessionId.");
502
502
  }
503
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
503
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
504
504
  }
505
505
  else {
506
506
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -532,7 +532,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
532
532
  if (labelValue.length <= 0) {
533
533
  throw new Error("Empty value provided for input HTTP label: assistantId.");
534
534
  }
535
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
535
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
536
536
  }
537
537
  else {
538
538
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -542,7 +542,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
542
542
  if (labelValue.length <= 0) {
543
543
  throw new Error("Empty value provided for input HTTP label: sessionId.");
544
544
  }
545
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
545
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
546
546
  }
547
547
  else {
548
548
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -568,7 +568,7 @@ const serializeAws_restJson1ListAssistantAssociationsCommand = async (input, con
568
568
  if (labelValue.length <= 0) {
569
569
  throw new Error("Empty value provided for input HTTP label: assistantId.");
570
570
  }
571
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
571
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
572
572
  }
573
573
  else {
574
574
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -621,7 +621,7 @@ const serializeAws_restJson1ListContentsCommand = async (input, context) => {
621
621
  if (labelValue.length <= 0) {
622
622
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
623
623
  }
624
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
624
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
625
625
  }
626
626
  else {
627
627
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -673,7 +673,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
673
673
  if (labelValue.length <= 0) {
674
674
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
675
675
  }
676
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
676
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
677
677
  }
678
678
  else {
679
679
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -702,7 +702,7 @@ const serializeAws_restJson1NotifyRecommendationsReceivedCommand = async (input,
702
702
  if (labelValue.length <= 0) {
703
703
  throw new Error("Empty value provided for input HTTP label: assistantId.");
704
704
  }
705
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
705
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
706
706
  }
707
707
  else {
708
708
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -712,7 +712,7 @@ const serializeAws_restJson1NotifyRecommendationsReceivedCommand = async (input,
712
712
  if (labelValue.length <= 0) {
713
713
  throw new Error("Empty value provided for input HTTP label: sessionId.");
714
714
  }
715
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
715
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
716
716
  }
717
717
  else {
718
718
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -746,7 +746,7 @@ const serializeAws_restJson1QueryAssistantCommand = async (input, context) => {
746
746
  if (labelValue.length <= 0) {
747
747
  throw new Error("Empty value provided for input HTTP label: assistantId.");
748
748
  }
749
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
749
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
750
750
  }
751
751
  else {
752
752
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -778,7 +778,7 @@ const serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = async (input
778
778
  if (labelValue.length <= 0) {
779
779
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
780
780
  }
781
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
781
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
782
782
  }
783
783
  else {
784
784
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -806,7 +806,7 @@ const serializeAws_restJson1SearchContentCommand = async (input, context) => {
806
806
  if (labelValue.length <= 0) {
807
807
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
808
808
  }
809
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
809
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
810
810
  }
811
811
  else {
812
812
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -845,7 +845,7 @@ const serializeAws_restJson1SearchSessionsCommand = async (input, context) => {
845
845
  if (labelValue.length <= 0) {
846
846
  throw new Error("Empty value provided for input HTTP label: assistantId.");
847
847
  }
848
- resolvedPath = resolvedPath.replace("{assistantId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
848
+ resolvedPath = resolvedPath.replace("{assistantId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
849
849
  }
850
850
  else {
851
851
  throw new Error("No value provided for input HTTP label: assistantId.");
@@ -884,7 +884,7 @@ const serializeAws_restJson1StartContentUploadCommand = async (input, context) =
884
884
  if (labelValue.length <= 0) {
885
885
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
886
886
  }
887
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
887
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
888
888
  }
889
889
  else {
890
890
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -915,7 +915,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
915
915
  if (labelValue.length <= 0) {
916
916
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
917
917
  }
918
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
918
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
919
919
  }
920
920
  else {
921
921
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -944,7 +944,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
944
944
  if (labelValue.length <= 0) {
945
945
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
946
946
  }
947
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
947
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
948
948
  }
949
949
  else {
950
950
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -977,7 +977,7 @@ const serializeAws_restJson1UpdateContentCommand = async (input, context) => {
977
977
  if (labelValue.length <= 0) {
978
978
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
979
979
  }
980
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
980
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
981
981
  }
982
982
  else {
983
983
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -987,7 +987,7 @@ const serializeAws_restJson1UpdateContentCommand = async (input, context) => {
987
987
  if (labelValue.length <= 0) {
988
988
  throw new Error("Empty value provided for input HTTP label: contentId.");
989
989
  }
990
- resolvedPath = resolvedPath.replace("{contentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
990
+ resolvedPath = resolvedPath.replace("{contentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
991
991
  }
992
992
  else {
993
993
  throw new Error("No value provided for input HTTP label: contentId.");
@@ -1027,7 +1027,7 @@ const serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = async (input
1027
1027
  if (labelValue.length <= 0) {
1028
1028
  throw new Error("Empty value provided for input HTTP label: knowledgeBaseId.");
1029
1029
  }
1030
- resolvedPath = resolvedPath.replace("{knowledgeBaseId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1030
+ resolvedPath = resolvedPath.replace("{knowledgeBaseId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1031
1031
  }
1032
1032
  else {
1033
1033
  throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
@@ -1055,7 +1055,7 @@ const deserializeAws_restJson1CreateAssistantCommand = async (output, context) =
1055
1055
  $metadata: deserializeMetadata(output),
1056
1056
  assistant: undefined,
1057
1057
  };
1058
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1058
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1059
1059
  if (data.assistant !== undefined && data.assistant !== null) {
1060
1060
  contents.assistant = deserializeAws_restJson1AssistantData(data.assistant, context);
1061
1061
  }
@@ -1090,7 +1090,7 @@ const deserializeAws_restJson1CreateAssistantCommandError = async (output, conte
1090
1090
  $fault: "client",
1091
1091
  $metadata: deserializeMetadata(output),
1092
1092
  });
1093
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1093
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1094
1094
  }
1095
1095
  };
1096
1096
  const deserializeAws_restJson1CreateAssistantAssociationCommand = async (output, context) => {
@@ -1101,7 +1101,7 @@ const deserializeAws_restJson1CreateAssistantAssociationCommand = async (output,
1101
1101
  $metadata: deserializeMetadata(output),
1102
1102
  assistantAssociation: undefined,
1103
1103
  };
1104
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1104
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1105
1105
  if (data.assistantAssociation !== undefined && data.assistantAssociation !== null) {
1106
1106
  contents.assistantAssociation = deserializeAws_restJson1AssistantAssociationData(data.assistantAssociation, context);
1107
1107
  }
@@ -1139,7 +1139,7 @@ const deserializeAws_restJson1CreateAssistantAssociationCommandError = async (ou
1139
1139
  $fault: "client",
1140
1140
  $metadata: deserializeMetadata(output),
1141
1141
  });
1142
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1142
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1143
1143
  }
1144
1144
  };
1145
1145
  const deserializeAws_restJson1CreateContentCommand = async (output, context) => {
@@ -1150,7 +1150,7 @@ const deserializeAws_restJson1CreateContentCommand = async (output, context) =>
1150
1150
  $metadata: deserializeMetadata(output),
1151
1151
  content: undefined,
1152
1152
  };
1153
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1153
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1154
1154
  if (data.content !== undefined && data.content !== null) {
1155
1155
  contents.content = deserializeAws_restJson1ContentData(data.content, context);
1156
1156
  }
@@ -1188,7 +1188,7 @@ const deserializeAws_restJson1CreateContentCommandError = async (output, context
1188
1188
  $fault: "client",
1189
1189
  $metadata: deserializeMetadata(output),
1190
1190
  });
1191
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1191
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1192
1192
  }
1193
1193
  };
1194
1194
  const deserializeAws_restJson1CreateKnowledgeBaseCommand = async (output, context) => {
@@ -1199,7 +1199,7 @@ const deserializeAws_restJson1CreateKnowledgeBaseCommand = async (output, contex
1199
1199
  $metadata: deserializeMetadata(output),
1200
1200
  knowledgeBase: undefined,
1201
1201
  };
1202
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1202
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1203
1203
  if (data.knowledgeBase !== undefined && data.knowledgeBase !== null) {
1204
1204
  contents.knowledgeBase = deserializeAws_restJson1KnowledgeBaseData(data.knowledgeBase, context);
1205
1205
  }
@@ -1234,7 +1234,7 @@ const deserializeAws_restJson1CreateKnowledgeBaseCommandError = async (output, c
1234
1234
  $fault: "client",
1235
1235
  $metadata: deserializeMetadata(output),
1236
1236
  });
1237
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1237
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1238
1238
  }
1239
1239
  };
1240
1240
  const deserializeAws_restJson1CreateSessionCommand = async (output, context) => {
@@ -1245,7 +1245,7 @@ const deserializeAws_restJson1CreateSessionCommand = async (output, context) =>
1245
1245
  $metadata: deserializeMetadata(output),
1246
1246
  session: undefined,
1247
1247
  };
1248
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1248
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1249
1249
  if (data.session !== undefined && data.session !== null) {
1250
1250
  contents.session = deserializeAws_restJson1SessionData(data.session, context);
1251
1251
  }
@@ -1277,7 +1277,7 @@ const deserializeAws_restJson1CreateSessionCommandError = async (output, context
1277
1277
  $fault: "client",
1278
1278
  $metadata: deserializeMetadata(output),
1279
1279
  });
1280
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1280
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1281
1281
  }
1282
1282
  };
1283
1283
  const deserializeAws_restJson1DeleteAssistantCommand = async (output, context) => {
@@ -1316,7 +1316,7 @@ const deserializeAws_restJson1DeleteAssistantCommandError = async (output, conte
1316
1316
  $fault: "client",
1317
1317
  $metadata: deserializeMetadata(output),
1318
1318
  });
1319
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1319
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1320
1320
  }
1321
1321
  };
1322
1322
  const deserializeAws_restJson1DeleteAssistantAssociationCommand = async (output, context) => {
@@ -1355,7 +1355,7 @@ const deserializeAws_restJson1DeleteAssistantAssociationCommandError = async (ou
1355
1355
  $fault: "client",
1356
1356
  $metadata: deserializeMetadata(output),
1357
1357
  });
1358
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1358
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1359
1359
  }
1360
1360
  };
1361
1361
  const deserializeAws_restJson1DeleteContentCommand = async (output, context) => {
@@ -1394,7 +1394,7 @@ const deserializeAws_restJson1DeleteContentCommandError = async (output, context
1394
1394
  $fault: "client",
1395
1395
  $metadata: deserializeMetadata(output),
1396
1396
  });
1397
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1397
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1398
1398
  }
1399
1399
  };
1400
1400
  const deserializeAws_restJson1DeleteKnowledgeBaseCommand = async (output, context) => {
@@ -1433,7 +1433,7 @@ const deserializeAws_restJson1DeleteKnowledgeBaseCommandError = async (output, c
1433
1433
  $fault: "client",
1434
1434
  $metadata: deserializeMetadata(output),
1435
1435
  });
1436
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1436
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1437
1437
  }
1438
1438
  };
1439
1439
  const deserializeAws_restJson1GetAssistantCommand = async (output, context) => {
@@ -1444,7 +1444,7 @@ const deserializeAws_restJson1GetAssistantCommand = async (output, context) => {
1444
1444
  $metadata: deserializeMetadata(output),
1445
1445
  assistant: undefined,
1446
1446
  };
1447
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1447
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1448
1448
  if (data.assistant !== undefined && data.assistant !== null) {
1449
1449
  contents.assistant = deserializeAws_restJson1AssistantData(data.assistant, context);
1450
1450
  }
@@ -1476,7 +1476,7 @@ const deserializeAws_restJson1GetAssistantCommandError = async (output, context)
1476
1476
  $fault: "client",
1477
1477
  $metadata: deserializeMetadata(output),
1478
1478
  });
1479
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1479
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1480
1480
  }
1481
1481
  };
1482
1482
  const deserializeAws_restJson1GetAssistantAssociationCommand = async (output, context) => {
@@ -1487,7 +1487,7 @@ const deserializeAws_restJson1GetAssistantAssociationCommand = async (output, co
1487
1487
  $metadata: deserializeMetadata(output),
1488
1488
  assistantAssociation: undefined,
1489
1489
  };
1490
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1490
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1491
1491
  if (data.assistantAssociation !== undefined && data.assistantAssociation !== null) {
1492
1492
  contents.assistantAssociation = deserializeAws_restJson1AssistantAssociationData(data.assistantAssociation, context);
1493
1493
  }
@@ -1519,7 +1519,7 @@ const deserializeAws_restJson1GetAssistantAssociationCommandError = async (outpu
1519
1519
  $fault: "client",
1520
1520
  $metadata: deserializeMetadata(output),
1521
1521
  });
1522
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1522
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1523
1523
  }
1524
1524
  };
1525
1525
  const deserializeAws_restJson1GetContentCommand = async (output, context) => {
@@ -1530,7 +1530,7 @@ const deserializeAws_restJson1GetContentCommand = async (output, context) => {
1530
1530
  $metadata: deserializeMetadata(output),
1531
1531
  content: undefined,
1532
1532
  };
1533
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1533
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1534
1534
  if (data.content !== undefined && data.content !== null) {
1535
1535
  contents.content = deserializeAws_restJson1ContentData(data.content, context);
1536
1536
  }
@@ -1562,7 +1562,7 @@ const deserializeAws_restJson1GetContentCommandError = async (output, context) =
1562
1562
  $fault: "client",
1563
1563
  $metadata: deserializeMetadata(output),
1564
1564
  });
1565
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1565
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1566
1566
  }
1567
1567
  };
1568
1568
  const deserializeAws_restJson1GetContentSummaryCommand = async (output, context) => {
@@ -1573,7 +1573,7 @@ const deserializeAws_restJson1GetContentSummaryCommand = async (output, context)
1573
1573
  $metadata: deserializeMetadata(output),
1574
1574
  contentSummary: undefined,
1575
1575
  };
1576
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1576
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1577
1577
  if (data.contentSummary !== undefined && data.contentSummary !== null) {
1578
1578
  contents.contentSummary = deserializeAws_restJson1ContentSummary(data.contentSummary, context);
1579
1579
  }
@@ -1605,7 +1605,7 @@ const deserializeAws_restJson1GetContentSummaryCommandError = async (output, con
1605
1605
  $fault: "client",
1606
1606
  $metadata: deserializeMetadata(output),
1607
1607
  });
1608
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1608
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1609
1609
  }
1610
1610
  };
1611
1611
  const deserializeAws_restJson1GetKnowledgeBaseCommand = async (output, context) => {
@@ -1616,7 +1616,7 @@ const deserializeAws_restJson1GetKnowledgeBaseCommand = async (output, context)
1616
1616
  $metadata: deserializeMetadata(output),
1617
1617
  knowledgeBase: undefined,
1618
1618
  };
1619
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1619
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1620
1620
  if (data.knowledgeBase !== undefined && data.knowledgeBase !== null) {
1621
1621
  contents.knowledgeBase = deserializeAws_restJson1KnowledgeBaseData(data.knowledgeBase, context);
1622
1622
  }
@@ -1648,7 +1648,7 @@ const deserializeAws_restJson1GetKnowledgeBaseCommandError = async (output, cont
1648
1648
  $fault: "client",
1649
1649
  $metadata: deserializeMetadata(output),
1650
1650
  });
1651
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1651
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1652
1652
  }
1653
1653
  };
1654
1654
  const deserializeAws_restJson1GetRecommendationsCommand = async (output, context) => {
@@ -1659,7 +1659,7 @@ const deserializeAws_restJson1GetRecommendationsCommand = async (output, context
1659
1659
  $metadata: deserializeMetadata(output),
1660
1660
  recommendations: undefined,
1661
1661
  };
1662
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1662
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1663
1663
  if (data.recommendations !== undefined && data.recommendations !== null) {
1664
1664
  contents.recommendations = deserializeAws_restJson1RecommendationList(data.recommendations, context);
1665
1665
  }
@@ -1691,7 +1691,7 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
1691
1691
  $fault: "client",
1692
1692
  $metadata: deserializeMetadata(output),
1693
1693
  });
1694
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1694
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1695
1695
  }
1696
1696
  };
1697
1697
  const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
@@ -1702,7 +1702,7 @@ const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
1702
1702
  $metadata: deserializeMetadata(output),
1703
1703
  session: undefined,
1704
1704
  };
1705
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1705
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1706
1706
  if (data.session !== undefined && data.session !== null) {
1707
1707
  contents.session = deserializeAws_restJson1SessionData(data.session, context);
1708
1708
  }
@@ -1734,7 +1734,7 @@ const deserializeAws_restJson1GetSessionCommandError = async (output, context) =
1734
1734
  $fault: "client",
1735
1735
  $metadata: deserializeMetadata(output),
1736
1736
  });
1737
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1737
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1738
1738
  }
1739
1739
  };
1740
1740
  const deserializeAws_restJson1ListAssistantAssociationsCommand = async (output, context) => {
@@ -1746,12 +1746,12 @@ const deserializeAws_restJson1ListAssistantAssociationsCommand = async (output,
1746
1746
  assistantAssociationSummaries: undefined,
1747
1747
  nextToken: undefined,
1748
1748
  };
1749
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1749
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1750
1750
  if (data.assistantAssociationSummaries !== undefined && data.assistantAssociationSummaries !== null) {
1751
1751
  contents.assistantAssociationSummaries = deserializeAws_restJson1AssistantAssociationSummaryList(data.assistantAssociationSummaries, context);
1752
1752
  }
1753
1753
  if (data.nextToken !== undefined && data.nextToken !== null) {
1754
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1754
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1755
1755
  }
1756
1756
  return Promise.resolve(contents);
1757
1757
  };
@@ -1781,7 +1781,7 @@ const deserializeAws_restJson1ListAssistantAssociationsCommandError = async (out
1781
1781
  $fault: "client",
1782
1782
  $metadata: deserializeMetadata(output),
1783
1783
  });
1784
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1784
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1785
1785
  }
1786
1786
  };
1787
1787
  const deserializeAws_restJson1ListAssistantsCommand = async (output, context) => {
@@ -1793,12 +1793,12 @@ const deserializeAws_restJson1ListAssistantsCommand = async (output, context) =>
1793
1793
  assistantSummaries: undefined,
1794
1794
  nextToken: undefined,
1795
1795
  };
1796
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1796
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1797
1797
  if (data.assistantSummaries !== undefined && data.assistantSummaries !== null) {
1798
1798
  contents.assistantSummaries = deserializeAws_restJson1AssistantList(data.assistantSummaries, context);
1799
1799
  }
1800
1800
  if (data.nextToken !== undefined && data.nextToken !== null) {
1801
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1801
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1802
1802
  }
1803
1803
  return Promise.resolve(contents);
1804
1804
  };
@@ -1825,7 +1825,7 @@ const deserializeAws_restJson1ListAssistantsCommandError = async (output, contex
1825
1825
  $fault: "client",
1826
1826
  $metadata: deserializeMetadata(output),
1827
1827
  });
1828
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1828
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1829
1829
  }
1830
1830
  };
1831
1831
  const deserializeAws_restJson1ListContentsCommand = async (output, context) => {
@@ -1837,12 +1837,12 @@ const deserializeAws_restJson1ListContentsCommand = async (output, context) => {
1837
1837
  contentSummaries: undefined,
1838
1838
  nextToken: undefined,
1839
1839
  };
1840
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1840
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1841
1841
  if (data.contentSummaries !== undefined && data.contentSummaries !== null) {
1842
1842
  contents.contentSummaries = deserializeAws_restJson1ContentSummaryList(data.contentSummaries, context);
1843
1843
  }
1844
1844
  if (data.nextToken !== undefined && data.nextToken !== null) {
1845
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1845
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1846
1846
  }
1847
1847
  return Promise.resolve(contents);
1848
1848
  };
@@ -1872,7 +1872,7 @@ const deserializeAws_restJson1ListContentsCommandError = async (output, context)
1872
1872
  $fault: "client",
1873
1873
  $metadata: deserializeMetadata(output),
1874
1874
  });
1875
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1875
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1876
1876
  }
1877
1877
  };
1878
1878
  const deserializeAws_restJson1ListKnowledgeBasesCommand = async (output, context) => {
@@ -1884,12 +1884,12 @@ const deserializeAws_restJson1ListKnowledgeBasesCommand = async (output, context
1884
1884
  knowledgeBaseSummaries: undefined,
1885
1885
  nextToken: undefined,
1886
1886
  };
1887
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1887
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1888
1888
  if (data.knowledgeBaseSummaries !== undefined && data.knowledgeBaseSummaries !== null) {
1889
1889
  contents.knowledgeBaseSummaries = deserializeAws_restJson1KnowledgeBaseList(data.knowledgeBaseSummaries, context);
1890
1890
  }
1891
1891
  if (data.nextToken !== undefined && data.nextToken !== null) {
1892
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1892
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1893
1893
  }
1894
1894
  return Promise.resolve(contents);
1895
1895
  };
@@ -1916,7 +1916,7 @@ const deserializeAws_restJson1ListKnowledgeBasesCommandError = async (output, co
1916
1916
  $fault: "client",
1917
1917
  $metadata: deserializeMetadata(output),
1918
1918
  });
1919
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1919
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1920
1920
  }
1921
1921
  };
1922
1922
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -1927,7 +1927,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
1927
1927
  $metadata: deserializeMetadata(output),
1928
1928
  tags: undefined,
1929
1929
  };
1930
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1930
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1931
1931
  if (data.tags !== undefined && data.tags !== null) {
1932
1932
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1933
1933
  }
@@ -1953,7 +1953,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1953
1953
  $fault: "client",
1954
1954
  $metadata: deserializeMetadata(output),
1955
1955
  });
1956
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1956
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1957
1957
  }
1958
1958
  };
1959
1959
  const deserializeAws_restJson1NotifyRecommendationsReceivedCommand = async (output, context) => {
@@ -1965,7 +1965,7 @@ const deserializeAws_restJson1NotifyRecommendationsReceivedCommand = async (outp
1965
1965
  errors: undefined,
1966
1966
  recommendationIds: undefined,
1967
1967
  };
1968
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1968
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1969
1969
  if (data.errors !== undefined && data.errors !== null) {
1970
1970
  contents.errors = deserializeAws_restJson1NotifyRecommendationsReceivedErrorList(data.errors, context);
1971
1971
  }
@@ -2000,7 +2000,7 @@ const deserializeAws_restJson1NotifyRecommendationsReceivedCommandError = async
2000
2000
  $fault: "client",
2001
2001
  $metadata: deserializeMetadata(output),
2002
2002
  });
2003
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2003
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2004
2004
  }
2005
2005
  };
2006
2006
  const deserializeAws_restJson1QueryAssistantCommand = async (output, context) => {
@@ -2012,9 +2012,9 @@ const deserializeAws_restJson1QueryAssistantCommand = async (output, context) =>
2012
2012
  nextToken: undefined,
2013
2013
  results: undefined,
2014
2014
  };
2015
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2015
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2016
2016
  if (data.nextToken !== undefined && data.nextToken !== null) {
2017
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2017
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2018
2018
  }
2019
2019
  if (data.results !== undefined && data.results !== null) {
2020
2020
  contents.results = deserializeAws_restJson1QueryResultsList(data.results, context);
@@ -2047,7 +2047,7 @@ const deserializeAws_restJson1QueryAssistantCommandError = async (output, contex
2047
2047
  $fault: "client",
2048
2048
  $metadata: deserializeMetadata(output),
2049
2049
  });
2050
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2050
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2051
2051
  }
2052
2052
  };
2053
2053
  const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = async (output, context) => {
@@ -2086,7 +2086,7 @@ const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommandError = async
2086
2086
  $fault: "client",
2087
2087
  $metadata: deserializeMetadata(output),
2088
2088
  });
2089
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2089
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2090
2090
  }
2091
2091
  };
2092
2092
  const deserializeAws_restJson1SearchContentCommand = async (output, context) => {
@@ -2098,12 +2098,12 @@ const deserializeAws_restJson1SearchContentCommand = async (output, context) =>
2098
2098
  contentSummaries: undefined,
2099
2099
  nextToken: undefined,
2100
2100
  };
2101
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2101
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2102
2102
  if (data.contentSummaries !== undefined && data.contentSummaries !== null) {
2103
2103
  contents.contentSummaries = deserializeAws_restJson1ContentSummaryList(data.contentSummaries, context);
2104
2104
  }
2105
2105
  if (data.nextToken !== undefined && data.nextToken !== null) {
2106
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2106
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2107
2107
  }
2108
2108
  return Promise.resolve(contents);
2109
2109
  };
@@ -2133,7 +2133,7 @@ const deserializeAws_restJson1SearchContentCommandError = async (output, context
2133
2133
  $fault: "client",
2134
2134
  $metadata: deserializeMetadata(output),
2135
2135
  });
2136
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2136
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2137
2137
  }
2138
2138
  };
2139
2139
  const deserializeAws_restJson1SearchSessionsCommand = async (output, context) => {
@@ -2145,9 +2145,9 @@ const deserializeAws_restJson1SearchSessionsCommand = async (output, context) =>
2145
2145
  nextToken: undefined,
2146
2146
  sessionSummaries: undefined,
2147
2147
  };
2148
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2148
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2149
2149
  if (data.nextToken !== undefined && data.nextToken !== null) {
2150
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2150
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2151
2151
  }
2152
2152
  if (data.sessionSummaries !== undefined && data.sessionSummaries !== null) {
2153
2153
  contents.sessionSummaries = deserializeAws_restJson1SessionSummaries(data.sessionSummaries, context);
@@ -2180,7 +2180,7 @@ const deserializeAws_restJson1SearchSessionsCommandError = async (output, contex
2180
2180
  $fault: "client",
2181
2181
  $metadata: deserializeMetadata(output),
2182
2182
  });
2183
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2183
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2184
2184
  }
2185
2185
  };
2186
2186
  const deserializeAws_restJson1StartContentUploadCommand = async (output, context) => {
@@ -2194,18 +2194,18 @@ const deserializeAws_restJson1StartContentUploadCommand = async (output, context
2194
2194
  url: undefined,
2195
2195
  urlExpiry: undefined,
2196
2196
  };
2197
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2197
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2198
2198
  if (data.headersToInclude !== undefined && data.headersToInclude !== null) {
2199
2199
  contents.headersToInclude = deserializeAws_restJson1Headers(data.headersToInclude, context);
2200
2200
  }
2201
2201
  if (data.uploadId !== undefined && data.uploadId !== null) {
2202
- contents.uploadId = smithy_client_1.expectString(data.uploadId);
2202
+ contents.uploadId = (0, smithy_client_1.expectString)(data.uploadId);
2203
2203
  }
2204
2204
  if (data.url !== undefined && data.url !== null) {
2205
- contents.url = smithy_client_1.expectString(data.url);
2205
+ contents.url = (0, smithy_client_1.expectString)(data.url);
2206
2206
  }
2207
2207
  if (data.urlExpiry !== undefined && data.urlExpiry !== null) {
2208
- contents.urlExpiry = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.urlExpiry)));
2208
+ contents.urlExpiry = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.urlExpiry)));
2209
2209
  }
2210
2210
  return Promise.resolve(contents);
2211
2211
  };
@@ -2235,7 +2235,7 @@ const deserializeAws_restJson1StartContentUploadCommandError = async (output, co
2235
2235
  $fault: "client",
2236
2236
  $metadata: deserializeMetadata(output),
2237
2237
  });
2238
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2238
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2239
2239
  }
2240
2240
  };
2241
2241
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -2271,7 +2271,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2271
2271
  $fault: "client",
2272
2272
  $metadata: deserializeMetadata(output),
2273
2273
  });
2274
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2274
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2275
2275
  }
2276
2276
  };
2277
2277
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -2304,7 +2304,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2304
2304
  $fault: "client",
2305
2305
  $metadata: deserializeMetadata(output),
2306
2306
  });
2307
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2307
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2308
2308
  }
2309
2309
  };
2310
2310
  const deserializeAws_restJson1UpdateContentCommand = async (output, context) => {
@@ -2315,7 +2315,7 @@ const deserializeAws_restJson1UpdateContentCommand = async (output, context) =>
2315
2315
  $metadata: deserializeMetadata(output),
2316
2316
  content: undefined,
2317
2317
  };
2318
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2318
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2319
2319
  if (data.content !== undefined && data.content !== null) {
2320
2320
  contents.content = deserializeAws_restJson1ContentData(data.content, context);
2321
2321
  }
@@ -2350,7 +2350,7 @@ const deserializeAws_restJson1UpdateContentCommandError = async (output, context
2350
2350
  $fault: "client",
2351
2351
  $metadata: deserializeMetadata(output),
2352
2352
  });
2353
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2353
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2354
2354
  }
2355
2355
  };
2356
2356
  const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = async (output, context) => {
@@ -2361,7 +2361,7 @@ const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = async (out
2361
2361
  $metadata: deserializeMetadata(output),
2362
2362
  knowledgeBase: undefined,
2363
2363
  };
2364
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2364
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2365
2365
  if (data.knowledgeBase !== undefined && data.knowledgeBase !== null) {
2366
2366
  contents.knowledgeBase = deserializeAws_restJson1KnowledgeBaseData(data.knowledgeBase, context);
2367
2367
  }
@@ -2393,98 +2393,98 @@ const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommandError = async
2393
2393
  $fault: "client",
2394
2394
  $metadata: deserializeMetadata(output),
2395
2395
  });
2396
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2396
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2397
2397
  }
2398
2398
  };
2399
2399
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2400
2400
  const contents = {};
2401
2401
  const data = parsedOutput.body;
2402
2402
  if (data.message !== undefined && data.message !== null) {
2403
- contents.message = smithy_client_1.expectString(data.message);
2403
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2404
2404
  }
2405
2405
  const exception = new models_0_1.AccessDeniedException({
2406
2406
  $metadata: deserializeMetadata(parsedOutput),
2407
2407
  ...contents,
2408
2408
  });
2409
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2409
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2410
2410
  };
2411
2411
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
2412
2412
  const contents = {};
2413
2413
  const data = parsedOutput.body;
2414
2414
  if (data.message !== undefined && data.message !== null) {
2415
- contents.message = smithy_client_1.expectString(data.message);
2415
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2416
2416
  }
2417
2417
  const exception = new models_0_1.ConflictException({
2418
2418
  $metadata: deserializeMetadata(parsedOutput),
2419
2419
  ...contents,
2420
2420
  });
2421
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2421
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2422
2422
  };
2423
2423
  const deserializeAws_restJson1PreconditionFailedExceptionResponse = async (parsedOutput, context) => {
2424
2424
  const contents = {};
2425
2425
  const data = parsedOutput.body;
2426
2426
  if (data.message !== undefined && data.message !== null) {
2427
- contents.message = smithy_client_1.expectString(data.message);
2427
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2428
2428
  }
2429
2429
  const exception = new models_0_1.PreconditionFailedException({
2430
2430
  $metadata: deserializeMetadata(parsedOutput),
2431
2431
  ...contents,
2432
2432
  });
2433
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2433
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2434
2434
  };
2435
2435
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
2436
2436
  const contents = {};
2437
2437
  const data = parsedOutput.body;
2438
2438
  if (data.message !== undefined && data.message !== null) {
2439
- contents.message = smithy_client_1.expectString(data.message);
2439
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2440
2440
  }
2441
2441
  if (data.resourceName !== undefined && data.resourceName !== null) {
2442
- contents.resourceName = smithy_client_1.expectString(data.resourceName);
2442
+ contents.resourceName = (0, smithy_client_1.expectString)(data.resourceName);
2443
2443
  }
2444
2444
  const exception = new models_0_1.ResourceNotFoundException({
2445
2445
  $metadata: deserializeMetadata(parsedOutput),
2446
2446
  ...contents,
2447
2447
  });
2448
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2448
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2449
2449
  };
2450
2450
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
2451
2451
  const contents = {};
2452
2452
  const data = parsedOutput.body;
2453
2453
  if (data.message !== undefined && data.message !== null) {
2454
- contents.message = smithy_client_1.expectString(data.message);
2454
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2455
2455
  }
2456
2456
  const exception = new models_0_1.ServiceQuotaExceededException({
2457
2457
  $metadata: deserializeMetadata(parsedOutput),
2458
2458
  ...contents,
2459
2459
  });
2460
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2460
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2461
2461
  };
2462
2462
  const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
2463
2463
  const contents = {};
2464
2464
  const data = parsedOutput.body;
2465
2465
  if (data.message !== undefined && data.message !== null) {
2466
- contents.message = smithy_client_1.expectString(data.message);
2466
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2467
2467
  }
2468
2468
  if (data.resourceName !== undefined && data.resourceName !== null) {
2469
- contents.resourceName = smithy_client_1.expectString(data.resourceName);
2469
+ contents.resourceName = (0, smithy_client_1.expectString)(data.resourceName);
2470
2470
  }
2471
2471
  const exception = new models_0_1.TooManyTagsException({
2472
2472
  $metadata: deserializeMetadata(parsedOutput),
2473
2473
  ...contents,
2474
2474
  });
2475
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2475
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2476
2476
  };
2477
2477
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
2478
2478
  const contents = {};
2479
2479
  const data = parsedOutput.body;
2480
2480
  if (data.message !== undefined && data.message !== null) {
2481
- contents.message = smithy_client_1.expectString(data.message);
2481
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2482
2482
  }
2483
2483
  const exception = new models_0_1.ValidationException({
2484
2484
  $metadata: deserializeMetadata(parsedOutput),
2485
2485
  ...contents,
2486
2486
  });
2487
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2487
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2488
2488
  };
2489
2489
  const serializeAws_restJson1AppIntegrationsConfiguration = (input, context) => {
2490
2490
  return {
@@ -2587,7 +2587,7 @@ const serializeAws_restJson1Tags = (input, context) => {
2587
2587
  };
2588
2588
  const deserializeAws_restJson1AppIntegrationsConfiguration = (output, context) => {
2589
2589
  return {
2590
- appIntegrationArn: smithy_client_1.expectString(output.appIntegrationArn),
2590
+ appIntegrationArn: (0, smithy_client_1.expectString)(output.appIntegrationArn),
2591
2591
  objectFields: output.objectFields !== undefined && output.objectFields !== null
2592
2592
  ? deserializeAws_restJson1ObjectFieldsList(output.objectFields, context)
2593
2593
  : undefined,
@@ -2595,14 +2595,14 @@ const deserializeAws_restJson1AppIntegrationsConfiguration = (output, context) =
2595
2595
  };
2596
2596
  const deserializeAws_restJson1AssistantAssociationData = (output, context) => {
2597
2597
  return {
2598
- assistantArn: smithy_client_1.expectString(output.assistantArn),
2599
- assistantAssociationArn: smithy_client_1.expectString(output.assistantAssociationArn),
2600
- assistantAssociationId: smithy_client_1.expectString(output.assistantAssociationId),
2601
- assistantId: smithy_client_1.expectString(output.assistantId),
2598
+ assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2599
+ assistantAssociationArn: (0, smithy_client_1.expectString)(output.assistantAssociationArn),
2600
+ assistantAssociationId: (0, smithy_client_1.expectString)(output.assistantAssociationId),
2601
+ assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2602
2602
  associationData: output.associationData !== undefined && output.associationData !== null
2603
- ? deserializeAws_restJson1AssistantAssociationOutputData(smithy_client_1.expectUnion(output.associationData), context)
2603
+ ? deserializeAws_restJson1AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
2604
2604
  : undefined,
2605
- associationType: smithy_client_1.expectString(output.associationType),
2605
+ associationType: (0, smithy_client_1.expectString)(output.associationType),
2606
2606
  tags: output.tags !== undefined && output.tags !== null
2607
2607
  ? deserializeAws_restJson1Tags(output.tags, context)
2608
2608
  : undefined,
@@ -2618,14 +2618,14 @@ const deserializeAws_restJson1AssistantAssociationOutputData = (output, context)
2618
2618
  };
2619
2619
  const deserializeAws_restJson1AssistantAssociationSummary = (output, context) => {
2620
2620
  return {
2621
- assistantArn: smithy_client_1.expectString(output.assistantArn),
2622
- assistantAssociationArn: smithy_client_1.expectString(output.assistantAssociationArn),
2623
- assistantAssociationId: smithy_client_1.expectString(output.assistantAssociationId),
2624
- assistantId: smithy_client_1.expectString(output.assistantId),
2621
+ assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2622
+ assistantAssociationArn: (0, smithy_client_1.expectString)(output.assistantAssociationArn),
2623
+ assistantAssociationId: (0, smithy_client_1.expectString)(output.assistantAssociationId),
2624
+ assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2625
2625
  associationData: output.associationData !== undefined && output.associationData !== null
2626
- ? deserializeAws_restJson1AssistantAssociationOutputData(smithy_client_1.expectUnion(output.associationData), context)
2626
+ ? deserializeAws_restJson1AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
2627
2627
  : undefined,
2628
- associationType: smithy_client_1.expectString(output.associationType),
2628
+ associationType: (0, smithy_client_1.expectString)(output.associationType),
2629
2629
  tags: output.tags !== undefined && output.tags !== null
2630
2630
  ? deserializeAws_restJson1Tags(output.tags, context)
2631
2631
  : undefined,
@@ -2644,18 +2644,18 @@ const deserializeAws_restJson1AssistantAssociationSummaryList = (output, context
2644
2644
  };
2645
2645
  const deserializeAws_restJson1AssistantData = (output, context) => {
2646
2646
  return {
2647
- assistantArn: smithy_client_1.expectString(output.assistantArn),
2648
- assistantId: smithy_client_1.expectString(output.assistantId),
2649
- description: smithy_client_1.expectString(output.description),
2650
- name: smithy_client_1.expectString(output.name),
2647
+ assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2648
+ assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2649
+ description: (0, smithy_client_1.expectString)(output.description),
2650
+ name: (0, smithy_client_1.expectString)(output.name),
2651
2651
  serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration !== undefined && output.serverSideEncryptionConfiguration !== null
2652
2652
  ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2653
2653
  : undefined,
2654
- status: smithy_client_1.expectString(output.status),
2654
+ status: (0, smithy_client_1.expectString)(output.status),
2655
2655
  tags: output.tags !== undefined && output.tags !== null
2656
2656
  ? deserializeAws_restJson1Tags(output.tags, context)
2657
2657
  : undefined,
2658
- type: smithy_client_1.expectString(output.type),
2658
+ type: (0, smithy_client_1.expectString)(output.type),
2659
2659
  };
2660
2660
  };
2661
2661
  const deserializeAws_restJson1AssistantList = (output, context) => {
@@ -2671,41 +2671,41 @@ const deserializeAws_restJson1AssistantList = (output, context) => {
2671
2671
  };
2672
2672
  const deserializeAws_restJson1AssistantSummary = (output, context) => {
2673
2673
  return {
2674
- assistantArn: smithy_client_1.expectString(output.assistantArn),
2675
- assistantId: smithy_client_1.expectString(output.assistantId),
2676
- description: smithy_client_1.expectString(output.description),
2677
- name: smithy_client_1.expectString(output.name),
2674
+ assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2675
+ assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2676
+ description: (0, smithy_client_1.expectString)(output.description),
2677
+ name: (0, smithy_client_1.expectString)(output.name),
2678
2678
  serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration !== undefined && output.serverSideEncryptionConfiguration !== null
2679
2679
  ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2680
2680
  : undefined,
2681
- status: smithy_client_1.expectString(output.status),
2681
+ status: (0, smithy_client_1.expectString)(output.status),
2682
2682
  tags: output.tags !== undefined && output.tags !== null
2683
2683
  ? deserializeAws_restJson1Tags(output.tags, context)
2684
2684
  : undefined,
2685
- type: smithy_client_1.expectString(output.type),
2685
+ type: (0, smithy_client_1.expectString)(output.type),
2686
2686
  };
2687
2687
  };
2688
2688
  const deserializeAws_restJson1ContentData = (output, context) => {
2689
2689
  return {
2690
- contentArn: smithy_client_1.expectString(output.contentArn),
2691
- contentId: smithy_client_1.expectString(output.contentId),
2692
- contentType: smithy_client_1.expectString(output.contentType),
2693
- knowledgeBaseArn: smithy_client_1.expectString(output.knowledgeBaseArn),
2694
- knowledgeBaseId: smithy_client_1.expectString(output.knowledgeBaseId),
2695
- linkOutUri: smithy_client_1.expectString(output.linkOutUri),
2690
+ contentArn: (0, smithy_client_1.expectString)(output.contentArn),
2691
+ contentId: (0, smithy_client_1.expectString)(output.contentId),
2692
+ contentType: (0, smithy_client_1.expectString)(output.contentType),
2693
+ knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2694
+ knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2695
+ linkOutUri: (0, smithy_client_1.expectString)(output.linkOutUri),
2696
2696
  metadata: output.metadata !== undefined && output.metadata !== null
2697
2697
  ? deserializeAws_restJson1ContentMetadata(output.metadata, context)
2698
2698
  : undefined,
2699
- name: smithy_client_1.expectString(output.name),
2700
- revisionId: smithy_client_1.expectString(output.revisionId),
2701
- status: smithy_client_1.expectString(output.status),
2699
+ name: (0, smithy_client_1.expectString)(output.name),
2700
+ revisionId: (0, smithy_client_1.expectString)(output.revisionId),
2701
+ status: (0, smithy_client_1.expectString)(output.status),
2702
2702
  tags: output.tags !== undefined && output.tags !== null
2703
2703
  ? deserializeAws_restJson1Tags(output.tags, context)
2704
2704
  : undefined,
2705
- title: smithy_client_1.expectString(output.title),
2706
- url: smithy_client_1.expectString(output.url),
2705
+ title: (0, smithy_client_1.expectString)(output.title),
2706
+ url: (0, smithy_client_1.expectString)(output.url),
2707
2707
  urlExpiry: output.urlExpiry !== undefined && output.urlExpiry !== null
2708
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.urlExpiry)))
2708
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.urlExpiry)))
2709
2709
  : undefined,
2710
2710
  };
2711
2711
  };
@@ -2716,35 +2716,35 @@ const deserializeAws_restJson1ContentMetadata = (output, context) => {
2716
2716
  }
2717
2717
  return {
2718
2718
  ...acc,
2719
- [key]: smithy_client_1.expectString(value),
2719
+ [key]: (0, smithy_client_1.expectString)(value),
2720
2720
  };
2721
2721
  }, {});
2722
2722
  };
2723
2723
  const deserializeAws_restJson1ContentReference = (output, context) => {
2724
2724
  return {
2725
- contentArn: smithy_client_1.expectString(output.contentArn),
2726
- contentId: smithy_client_1.expectString(output.contentId),
2727
- knowledgeBaseArn: smithy_client_1.expectString(output.knowledgeBaseArn),
2728
- knowledgeBaseId: smithy_client_1.expectString(output.knowledgeBaseId),
2725
+ contentArn: (0, smithy_client_1.expectString)(output.contentArn),
2726
+ contentId: (0, smithy_client_1.expectString)(output.contentId),
2727
+ knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2728
+ knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2729
2729
  };
2730
2730
  };
2731
2731
  const deserializeAws_restJson1ContentSummary = (output, context) => {
2732
2732
  return {
2733
- contentArn: smithy_client_1.expectString(output.contentArn),
2734
- contentId: smithy_client_1.expectString(output.contentId),
2735
- contentType: smithy_client_1.expectString(output.contentType),
2736
- knowledgeBaseArn: smithy_client_1.expectString(output.knowledgeBaseArn),
2737
- knowledgeBaseId: smithy_client_1.expectString(output.knowledgeBaseId),
2733
+ contentArn: (0, smithy_client_1.expectString)(output.contentArn),
2734
+ contentId: (0, smithy_client_1.expectString)(output.contentId),
2735
+ contentType: (0, smithy_client_1.expectString)(output.contentType),
2736
+ knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2737
+ knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2738
2738
  metadata: output.metadata !== undefined && output.metadata !== null
2739
2739
  ? deserializeAws_restJson1ContentMetadata(output.metadata, context)
2740
2740
  : undefined,
2741
- name: smithy_client_1.expectString(output.name),
2742
- revisionId: smithy_client_1.expectString(output.revisionId),
2743
- status: smithy_client_1.expectString(output.status),
2741
+ name: (0, smithy_client_1.expectString)(output.name),
2742
+ revisionId: (0, smithy_client_1.expectString)(output.revisionId),
2743
+ status: (0, smithy_client_1.expectString)(output.status),
2744
2744
  tags: output.tags !== undefined && output.tags !== null
2745
2745
  ? deserializeAws_restJson1Tags(output.tags, context)
2746
2746
  : undefined,
2747
- title: smithy_client_1.expectString(output.title),
2747
+ title: (0, smithy_client_1.expectString)(output.title),
2748
2748
  };
2749
2749
  };
2750
2750
  const deserializeAws_restJson1ContentSummaryList = (output, context) => {
@@ -2776,7 +2776,7 @@ const deserializeAws_restJson1DocumentText = (output, context) => {
2776
2776
  highlights: output.highlights !== undefined && output.highlights !== null
2777
2777
  ? deserializeAws_restJson1Highlights(output.highlights, context)
2778
2778
  : undefined,
2779
- text: smithy_client_1.expectString(output.text),
2779
+ text: (0, smithy_client_1.expectString)(output.text),
2780
2780
  };
2781
2781
  };
2782
2782
  const deserializeAws_restJson1Headers = (output, context) => {
@@ -2786,14 +2786,14 @@ const deserializeAws_restJson1Headers = (output, context) => {
2786
2786
  }
2787
2787
  return {
2788
2788
  ...acc,
2789
- [key]: smithy_client_1.expectString(value),
2789
+ [key]: (0, smithy_client_1.expectString)(value),
2790
2790
  };
2791
2791
  }, {});
2792
2792
  };
2793
2793
  const deserializeAws_restJson1Highlight = (output, context) => {
2794
2794
  return {
2795
- beginOffsetInclusive: smithy_client_1.expectInt32(output.beginOffsetInclusive),
2796
- endOffsetExclusive: smithy_client_1.expectInt32(output.endOffsetExclusive),
2795
+ beginOffsetInclusive: (0, smithy_client_1.expectInt32)(output.beginOffsetInclusive),
2796
+ endOffsetExclusive: (0, smithy_client_1.expectInt32)(output.endOffsetExclusive),
2797
2797
  };
2798
2798
  };
2799
2799
  const deserializeAws_restJson1Highlights = (output, context) => {
@@ -2809,20 +2809,20 @@ const deserializeAws_restJson1Highlights = (output, context) => {
2809
2809
  };
2810
2810
  const deserializeAws_restJson1KnowledgeBaseAssociationData = (output, context) => {
2811
2811
  return {
2812
- knowledgeBaseArn: smithy_client_1.expectString(output.knowledgeBaseArn),
2813
- knowledgeBaseId: smithy_client_1.expectString(output.knowledgeBaseId),
2812
+ knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2813
+ knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2814
2814
  };
2815
2815
  };
2816
2816
  const deserializeAws_restJson1KnowledgeBaseData = (output, context) => {
2817
2817
  return {
2818
- description: smithy_client_1.expectString(output.description),
2819
- knowledgeBaseArn: smithy_client_1.expectString(output.knowledgeBaseArn),
2820
- knowledgeBaseId: smithy_client_1.expectString(output.knowledgeBaseId),
2821
- knowledgeBaseType: smithy_client_1.expectString(output.knowledgeBaseType),
2818
+ description: (0, smithy_client_1.expectString)(output.description),
2819
+ knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2820
+ knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2821
+ knowledgeBaseType: (0, smithy_client_1.expectString)(output.knowledgeBaseType),
2822
2822
  lastContentModificationTime: output.lastContentModificationTime !== undefined && output.lastContentModificationTime !== null
2823
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastContentModificationTime)))
2823
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastContentModificationTime)))
2824
2824
  : undefined,
2825
- name: smithy_client_1.expectString(output.name),
2825
+ name: (0, smithy_client_1.expectString)(output.name),
2826
2826
  renderingConfiguration: output.renderingConfiguration !== undefined && output.renderingConfiguration !== null
2827
2827
  ? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
2828
2828
  : undefined,
@@ -2830,9 +2830,9 @@ const deserializeAws_restJson1KnowledgeBaseData = (output, context) => {
2830
2830
  ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2831
2831
  : undefined,
2832
2832
  sourceConfiguration: output.sourceConfiguration !== undefined && output.sourceConfiguration !== null
2833
- ? deserializeAws_restJson1SourceConfiguration(smithy_client_1.expectUnion(output.sourceConfiguration), context)
2833
+ ? deserializeAws_restJson1SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
2834
2834
  : undefined,
2835
- status: smithy_client_1.expectString(output.status),
2835
+ status: (0, smithy_client_1.expectString)(output.status),
2836
2836
  tags: output.tags !== undefined && output.tags !== null
2837
2837
  ? deserializeAws_restJson1Tags(output.tags, context)
2838
2838
  : undefined,
@@ -2851,11 +2851,11 @@ const deserializeAws_restJson1KnowledgeBaseList = (output, context) => {
2851
2851
  };
2852
2852
  const deserializeAws_restJson1KnowledgeBaseSummary = (output, context) => {
2853
2853
  return {
2854
- description: smithy_client_1.expectString(output.description),
2855
- knowledgeBaseArn: smithy_client_1.expectString(output.knowledgeBaseArn),
2856
- knowledgeBaseId: smithy_client_1.expectString(output.knowledgeBaseId),
2857
- knowledgeBaseType: smithy_client_1.expectString(output.knowledgeBaseType),
2858
- name: smithy_client_1.expectString(output.name),
2854
+ description: (0, smithy_client_1.expectString)(output.description),
2855
+ knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
2856
+ knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
2857
+ knowledgeBaseType: (0, smithy_client_1.expectString)(output.knowledgeBaseType),
2858
+ name: (0, smithy_client_1.expectString)(output.name),
2859
2859
  renderingConfiguration: output.renderingConfiguration !== undefined && output.renderingConfiguration !== null
2860
2860
  ? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
2861
2861
  : undefined,
@@ -2863,9 +2863,9 @@ const deserializeAws_restJson1KnowledgeBaseSummary = (output, context) => {
2863
2863
  ? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
2864
2864
  : undefined,
2865
2865
  sourceConfiguration: output.sourceConfiguration !== undefined && output.sourceConfiguration !== null
2866
- ? deserializeAws_restJson1SourceConfiguration(smithy_client_1.expectUnion(output.sourceConfiguration), context)
2866
+ ? deserializeAws_restJson1SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
2867
2867
  : undefined,
2868
- status: smithy_client_1.expectString(output.status),
2868
+ status: (0, smithy_client_1.expectString)(output.status),
2869
2869
  tags: output.tags !== undefined && output.tags !== null
2870
2870
  ? deserializeAws_restJson1Tags(output.tags, context)
2871
2871
  : undefined,
@@ -2873,8 +2873,8 @@ const deserializeAws_restJson1KnowledgeBaseSummary = (output, context) => {
2873
2873
  };
2874
2874
  const deserializeAws_restJson1NotifyRecommendationsReceivedError = (output, context) => {
2875
2875
  return {
2876
- message: smithy_client_1.expectString(output.message),
2877
- recommendationId: smithy_client_1.expectString(output.recommendationId),
2876
+ message: (0, smithy_client_1.expectString)(output.message),
2877
+ recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
2878
2878
  };
2879
2879
  };
2880
2880
  const deserializeAws_restJson1NotifyRecommendationsReceivedErrorList = (output, context) => {
@@ -2895,7 +2895,7 @@ const deserializeAws_restJson1ObjectFieldsList = (output, context) => {
2895
2895
  if (entry === null) {
2896
2896
  return null;
2897
2897
  }
2898
- return smithy_client_1.expectString(entry);
2898
+ return (0, smithy_client_1.expectString)(entry);
2899
2899
  });
2900
2900
  return retVal;
2901
2901
  };
@@ -2915,9 +2915,9 @@ const deserializeAws_restJson1RecommendationData = (output, context) => {
2915
2915
  document: output.document !== undefined && output.document !== null
2916
2916
  ? deserializeAws_restJson1Document(output.document, context)
2917
2917
  : undefined,
2918
- recommendationId: smithy_client_1.expectString(output.recommendationId),
2919
- relevanceLevel: smithy_client_1.expectString(output.relevanceLevel),
2920
- relevanceScore: smithy_client_1.limitedParseDouble(output.relevanceScore),
2918
+ recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
2919
+ relevanceLevel: (0, smithy_client_1.expectString)(output.relevanceLevel),
2920
+ relevanceScore: (0, smithy_client_1.limitedParseDouble)(output.relevanceScore),
2921
2921
  };
2922
2922
  };
2923
2923
  const deserializeAws_restJson1RecommendationIdList = (output, context) => {
@@ -2927,7 +2927,7 @@ const deserializeAws_restJson1RecommendationIdList = (output, context) => {
2927
2927
  if (entry === null) {
2928
2928
  return null;
2929
2929
  }
2930
- return smithy_client_1.expectString(entry);
2930
+ return (0, smithy_client_1.expectString)(entry);
2931
2931
  });
2932
2932
  return retVal;
2933
2933
  };
@@ -2944,7 +2944,7 @@ const deserializeAws_restJson1RecommendationList = (output, context) => {
2944
2944
  };
2945
2945
  const deserializeAws_restJson1RenderingConfiguration = (output, context) => {
2946
2946
  return {
2947
- templateUri: smithy_client_1.expectString(output.templateUri),
2947
+ templateUri: (0, smithy_client_1.expectString)(output.templateUri),
2948
2948
  };
2949
2949
  };
2950
2950
  const deserializeAws_restJson1ResultData = (output, context) => {
@@ -2952,21 +2952,21 @@ const deserializeAws_restJson1ResultData = (output, context) => {
2952
2952
  document: output.document !== undefined && output.document !== null
2953
2953
  ? deserializeAws_restJson1Document(output.document, context)
2954
2954
  : undefined,
2955
- relevanceScore: smithy_client_1.limitedParseDouble(output.relevanceScore),
2956
- resultId: smithy_client_1.expectString(output.resultId),
2955
+ relevanceScore: (0, smithy_client_1.limitedParseDouble)(output.relevanceScore),
2956
+ resultId: (0, smithy_client_1.expectString)(output.resultId),
2957
2957
  };
2958
2958
  };
2959
2959
  const deserializeAws_restJson1ServerSideEncryptionConfiguration = (output, context) => {
2960
2960
  return {
2961
- kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
2961
+ kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
2962
2962
  };
2963
2963
  };
2964
2964
  const deserializeAws_restJson1SessionData = (output, context) => {
2965
2965
  return {
2966
- description: smithy_client_1.expectString(output.description),
2967
- name: smithy_client_1.expectString(output.name),
2968
- sessionArn: smithy_client_1.expectString(output.sessionArn),
2969
- sessionId: smithy_client_1.expectString(output.sessionId),
2966
+ description: (0, smithy_client_1.expectString)(output.description),
2967
+ name: (0, smithy_client_1.expectString)(output.name),
2968
+ sessionArn: (0, smithy_client_1.expectString)(output.sessionArn),
2969
+ sessionId: (0, smithy_client_1.expectString)(output.sessionId),
2970
2970
  tags: output.tags !== undefined && output.tags !== null
2971
2971
  ? deserializeAws_restJson1Tags(output.tags, context)
2972
2972
  : undefined,
@@ -2985,10 +2985,10 @@ const deserializeAws_restJson1SessionSummaries = (output, context) => {
2985
2985
  };
2986
2986
  const deserializeAws_restJson1SessionSummary = (output, context) => {
2987
2987
  return {
2988
- assistantArn: smithy_client_1.expectString(output.assistantArn),
2989
- assistantId: smithy_client_1.expectString(output.assistantId),
2990
- sessionArn: smithy_client_1.expectString(output.sessionArn),
2991
- sessionId: smithy_client_1.expectString(output.sessionId),
2988
+ assistantArn: (0, smithy_client_1.expectString)(output.assistantArn),
2989
+ assistantId: (0, smithy_client_1.expectString)(output.assistantId),
2990
+ sessionArn: (0, smithy_client_1.expectString)(output.sessionArn),
2991
+ sessionId: (0, smithy_client_1.expectString)(output.sessionId),
2992
2992
  };
2993
2993
  };
2994
2994
  const deserializeAws_restJson1SourceConfiguration = (output, context) => {
@@ -3006,7 +3006,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
3006
3006
  }
3007
3007
  return {
3008
3008
  ...acc,
3009
- [key]: smithy_client_1.expectString(value),
3009
+ [key]: (0, smithy_client_1.expectString)(value),
3010
3010
  };
3011
3011
  }, {});
3012
3012
  };