@aws-sdk/client-lex-runtime-v2 3.54.0 → 3.56.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.
@@ -15,7 +15,7 @@ const serializeAws_restJson1DeleteSessionCommand = async (input, context) => {
15
15
  if (labelValue.length <= 0) {
16
16
  throw new Error("Empty value provided for input HTTP label: botId.");
17
17
  }
18
- resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
18
+ resolvedPath = resolvedPath.replace("{botId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
19
19
  }
20
20
  else {
21
21
  throw new Error("No value provided for input HTTP label: botId.");
@@ -25,7 +25,7 @@ const serializeAws_restJson1DeleteSessionCommand = async (input, context) => {
25
25
  if (labelValue.length <= 0) {
26
26
  throw new Error("Empty value provided for input HTTP label: botAliasId.");
27
27
  }
28
- resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
28
+ resolvedPath = resolvedPath.replace("{botAliasId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
29
29
  }
30
30
  else {
31
31
  throw new Error("No value provided for input HTTP label: botAliasId.");
@@ -35,7 +35,7 @@ const serializeAws_restJson1DeleteSessionCommand = async (input, context) => {
35
35
  if (labelValue.length <= 0) {
36
36
  throw new Error("Empty value provided for input HTTP label: localeId.");
37
37
  }
38
- resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
38
+ resolvedPath = resolvedPath.replace("{localeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
39
39
  }
40
40
  else {
41
41
  throw new Error("No value provided for input HTTP label: localeId.");
@@ -45,7 +45,7 @@ const serializeAws_restJson1DeleteSessionCommand = async (input, context) => {
45
45
  if (labelValue.length <= 0) {
46
46
  throw new Error("Empty value provided for input HTTP label: sessionId.");
47
47
  }
48
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
48
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
49
49
  }
50
50
  else {
51
51
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -72,7 +72,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
72
72
  if (labelValue.length <= 0) {
73
73
  throw new Error("Empty value provided for input HTTP label: botId.");
74
74
  }
75
- resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
75
+ resolvedPath = resolvedPath.replace("{botId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
76
76
  }
77
77
  else {
78
78
  throw new Error("No value provided for input HTTP label: botId.");
@@ -82,7 +82,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
82
82
  if (labelValue.length <= 0) {
83
83
  throw new Error("Empty value provided for input HTTP label: botAliasId.");
84
84
  }
85
- resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
85
+ resolvedPath = resolvedPath.replace("{botAliasId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
86
86
  }
87
87
  else {
88
88
  throw new Error("No value provided for input HTTP label: botAliasId.");
@@ -92,7 +92,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
92
92
  if (labelValue.length <= 0) {
93
93
  throw new Error("Empty value provided for input HTTP label: localeId.");
94
94
  }
95
- resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
95
+ resolvedPath = resolvedPath.replace("{localeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
96
96
  }
97
97
  else {
98
98
  throw new Error("No value provided for input HTTP label: localeId.");
@@ -102,7 +102,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
102
102
  if (labelValue.length <= 0) {
103
103
  throw new Error("Empty value provided for input HTTP label: sessionId.");
104
104
  }
105
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
105
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
106
106
  }
107
107
  else {
108
108
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -132,7 +132,7 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
132
132
  if (labelValue.length <= 0) {
133
133
  throw new Error("Empty value provided for input HTTP label: botId.");
134
134
  }
135
- resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
135
+ resolvedPath = resolvedPath.replace("{botId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
136
136
  }
137
137
  else {
138
138
  throw new Error("No value provided for input HTTP label: botId.");
@@ -142,7 +142,7 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
142
142
  if (labelValue.length <= 0) {
143
143
  throw new Error("Empty value provided for input HTTP label: botAliasId.");
144
144
  }
145
- resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
145
+ resolvedPath = resolvedPath.replace("{botAliasId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
146
146
  }
147
147
  else {
148
148
  throw new Error("No value provided for input HTTP label: botAliasId.");
@@ -152,7 +152,7 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
152
152
  if (labelValue.length <= 0) {
153
153
  throw new Error("Empty value provided for input HTTP label: localeId.");
154
154
  }
155
- resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
155
+ resolvedPath = resolvedPath.replace("{localeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
156
156
  }
157
157
  else {
158
158
  throw new Error("No value provided for input HTTP label: localeId.");
@@ -162,7 +162,7 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
162
162
  if (labelValue.length <= 0) {
163
163
  throw new Error("Empty value provided for input HTTP label: sessionId.");
164
164
  }
165
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
165
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
166
166
  }
167
167
  else {
168
168
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -201,7 +201,7 @@ const serializeAws_restJson1RecognizeTextCommand = async (input, context) => {
201
201
  if (labelValue.length <= 0) {
202
202
  throw new Error("Empty value provided for input HTTP label: botId.");
203
203
  }
204
- resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
204
+ resolvedPath = resolvedPath.replace("{botId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
205
205
  }
206
206
  else {
207
207
  throw new Error("No value provided for input HTTP label: botId.");
@@ -211,7 +211,7 @@ const serializeAws_restJson1RecognizeTextCommand = async (input, context) => {
211
211
  if (labelValue.length <= 0) {
212
212
  throw new Error("Empty value provided for input HTTP label: botAliasId.");
213
213
  }
214
- resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
214
+ resolvedPath = resolvedPath.replace("{botAliasId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
215
215
  }
216
216
  else {
217
217
  throw new Error("No value provided for input HTTP label: botAliasId.");
@@ -221,7 +221,7 @@ const serializeAws_restJson1RecognizeTextCommand = async (input, context) => {
221
221
  if (labelValue.length <= 0) {
222
222
  throw new Error("Empty value provided for input HTTP label: localeId.");
223
223
  }
224
- resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
224
+ resolvedPath = resolvedPath.replace("{localeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
225
225
  }
226
226
  else {
227
227
  throw new Error("No value provided for input HTTP label: localeId.");
@@ -231,7 +231,7 @@ const serializeAws_restJson1RecognizeTextCommand = async (input, context) => {
231
231
  if (labelValue.length <= 0) {
232
232
  throw new Error("Empty value provided for input HTTP label: sessionId.");
233
233
  }
234
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
234
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
235
235
  }
236
236
  else {
237
237
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -278,7 +278,7 @@ const serializeAws_restJson1RecognizeUtteranceCommand = async (input, context) =
278
278
  if (labelValue.length <= 0) {
279
279
  throw new Error("Empty value provided for input HTTP label: botId.");
280
280
  }
281
- resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
281
+ resolvedPath = resolvedPath.replace("{botId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
282
282
  }
283
283
  else {
284
284
  throw new Error("No value provided for input HTTP label: botId.");
@@ -288,7 +288,7 @@ const serializeAws_restJson1RecognizeUtteranceCommand = async (input, context) =
288
288
  if (labelValue.length <= 0) {
289
289
  throw new Error("Empty value provided for input HTTP label: botAliasId.");
290
290
  }
291
- resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
291
+ resolvedPath = resolvedPath.replace("{botAliasId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
292
292
  }
293
293
  else {
294
294
  throw new Error("No value provided for input HTTP label: botAliasId.");
@@ -298,7 +298,7 @@ const serializeAws_restJson1RecognizeUtteranceCommand = async (input, context) =
298
298
  if (labelValue.length <= 0) {
299
299
  throw new Error("Empty value provided for input HTTP label: localeId.");
300
300
  }
301
- resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
301
+ resolvedPath = resolvedPath.replace("{localeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
302
302
  }
303
303
  else {
304
304
  throw new Error("No value provided for input HTTP label: localeId.");
@@ -308,7 +308,7 @@ const serializeAws_restJson1RecognizeUtteranceCommand = async (input, context) =
308
308
  if (labelValue.length <= 0) {
309
309
  throw new Error("Empty value provided for input HTTP label: sessionId.");
310
310
  }
311
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
311
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
312
312
  }
313
313
  else {
314
314
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -342,7 +342,7 @@ const serializeAws_restJson1StartConversationCommand = async (input, context) =>
342
342
  if (labelValue.length <= 0) {
343
343
  throw new Error("Empty value provided for input HTTP label: botId.");
344
344
  }
345
- resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
345
+ resolvedPath = resolvedPath.replace("{botId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
346
346
  }
347
347
  else {
348
348
  throw new Error("No value provided for input HTTP label: botId.");
@@ -352,7 +352,7 @@ const serializeAws_restJson1StartConversationCommand = async (input, context) =>
352
352
  if (labelValue.length <= 0) {
353
353
  throw new Error("Empty value provided for input HTTP label: botAliasId.");
354
354
  }
355
- resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
355
+ resolvedPath = resolvedPath.replace("{botAliasId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
356
356
  }
357
357
  else {
358
358
  throw new Error("No value provided for input HTTP label: botAliasId.");
@@ -362,7 +362,7 @@ const serializeAws_restJson1StartConversationCommand = async (input, context) =>
362
362
  if (labelValue.length <= 0) {
363
363
  throw new Error("Empty value provided for input HTTP label: localeId.");
364
364
  }
365
- resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
365
+ resolvedPath = resolvedPath.replace("{localeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
366
366
  }
367
367
  else {
368
368
  throw new Error("No value provided for input HTTP label: localeId.");
@@ -372,7 +372,7 @@ const serializeAws_restJson1StartConversationCommand = async (input, context) =>
372
372
  if (labelValue.length <= 0) {
373
373
  throw new Error("Empty value provided for input HTTP label: sessionId.");
374
374
  }
375
- resolvedPath = resolvedPath.replace("{sessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
375
+ resolvedPath = resolvedPath.replace("{sessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
376
376
  }
377
377
  else {
378
378
  throw new Error("No value provided for input HTTP label: sessionId.");
@@ -403,18 +403,18 @@ const deserializeAws_restJson1DeleteSessionCommand = async (output, context) =>
403
403
  localeId: undefined,
404
404
  sessionId: undefined,
405
405
  };
406
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
406
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
407
407
  if (data.botAliasId !== undefined && data.botAliasId !== null) {
408
- contents.botAliasId = smithy_client_1.expectString(data.botAliasId);
408
+ contents.botAliasId = (0, smithy_client_1.expectString)(data.botAliasId);
409
409
  }
410
410
  if (data.botId !== undefined && data.botId !== null) {
411
- contents.botId = smithy_client_1.expectString(data.botId);
411
+ contents.botId = (0, smithy_client_1.expectString)(data.botId);
412
412
  }
413
413
  if (data.localeId !== undefined && data.localeId !== null) {
414
- contents.localeId = smithy_client_1.expectString(data.localeId);
414
+ contents.localeId = (0, smithy_client_1.expectString)(data.localeId);
415
415
  }
416
416
  if (data.sessionId !== undefined && data.sessionId !== null) {
417
- contents.sessionId = smithy_client_1.expectString(data.sessionId);
417
+ contents.sessionId = (0, smithy_client_1.expectString)(data.sessionId);
418
418
  }
419
419
  return Promise.resolve(contents);
420
420
  };
@@ -453,7 +453,7 @@ const deserializeAws_restJson1DeleteSessionCommandError = async (output, context
453
453
  $fault: "client",
454
454
  $metadata: deserializeMetadata(output),
455
455
  });
456
- throw smithy_client_1.decorateServiceException(response, parsedBody);
456
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
457
457
  }
458
458
  };
459
459
  const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
@@ -467,7 +467,7 @@ const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
467
467
  sessionId: undefined,
468
468
  sessionState: undefined,
469
469
  };
470
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
470
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
471
471
  if (data.interpretations !== undefined && data.interpretations !== null) {
472
472
  contents.interpretations = deserializeAws_restJson1Interpretations(data.interpretations, context);
473
473
  }
@@ -475,7 +475,7 @@ const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
475
475
  contents.messages = deserializeAws_restJson1Messages(data.messages, context);
476
476
  }
477
477
  if (data.sessionId !== undefined && data.sessionId !== null) {
478
- contents.sessionId = smithy_client_1.expectString(data.sessionId);
478
+ contents.sessionId = (0, smithy_client_1.expectString)(data.sessionId);
479
479
  }
480
480
  if (data.sessionState !== undefined && data.sessionState !== null) {
481
481
  contents.sessionState = deserializeAws_restJson1SessionState(data.sessionState, context);
@@ -514,7 +514,7 @@ const deserializeAws_restJson1GetSessionCommandError = async (output, context) =
514
514
  $fault: "client",
515
515
  $metadata: deserializeMetadata(output),
516
516
  });
517
- throw smithy_client_1.decorateServiceException(response, parsedBody);
517
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
518
518
  }
519
519
  };
520
520
  const deserializeAws_restJson1PutSessionCommand = async (output, context) => {
@@ -590,7 +590,7 @@ const deserializeAws_restJson1PutSessionCommandError = async (output, context) =
590
590
  $fault: "client",
591
591
  $metadata: deserializeMetadata(output),
592
592
  });
593
- throw smithy_client_1.decorateServiceException(response, parsedBody);
593
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
594
594
  }
595
595
  };
596
596
  const deserializeAws_restJson1RecognizeTextCommand = async (output, context) => {
@@ -605,7 +605,7 @@ const deserializeAws_restJson1RecognizeTextCommand = async (output, context) =>
605
605
  sessionId: undefined,
606
606
  sessionState: undefined,
607
607
  };
608
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
608
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
609
609
  if (data.interpretations !== undefined && data.interpretations !== null) {
610
610
  contents.interpretations = deserializeAws_restJson1Interpretations(data.interpretations, context);
611
611
  }
@@ -616,7 +616,7 @@ const deserializeAws_restJson1RecognizeTextCommand = async (output, context) =>
616
616
  contents.requestAttributes = deserializeAws_restJson1StringMap(data.requestAttributes, context);
617
617
  }
618
618
  if (data.sessionId !== undefined && data.sessionId !== null) {
619
- contents.sessionId = smithy_client_1.expectString(data.sessionId);
619
+ contents.sessionId = (0, smithy_client_1.expectString)(data.sessionId);
620
620
  }
621
621
  if (data.sessionState !== undefined && data.sessionState !== null) {
622
622
  contents.sessionState = deserializeAws_restJson1SessionState(data.sessionState, context);
@@ -664,7 +664,7 @@ const deserializeAws_restJson1RecognizeTextCommandError = async (output, context
664
664
  $fault: "client",
665
665
  $metadata: deserializeMetadata(output),
666
666
  });
667
- throw smithy_client_1.decorateServiceException(response, parsedBody);
667
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
668
668
  }
669
669
  };
670
670
  const deserializeAws_restJson1RecognizeUtteranceCommand = async (output, context) => {
@@ -752,7 +752,7 @@ const deserializeAws_restJson1RecognizeUtteranceCommandError = async (output, co
752
752
  $fault: "client",
753
753
  $metadata: deserializeMetadata(output),
754
754
  });
755
- throw smithy_client_1.decorateServiceException(response, parsedBody);
755
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
756
756
  }
757
757
  };
758
758
  const deserializeAws_restJson1StartConversationCommand = async (output, context) => {
@@ -810,7 +810,7 @@ const deserializeAws_restJson1StartConversationCommandError = async (output, con
810
810
  $fault: "client",
811
811
  $metadata: deserializeMetadata(output),
812
812
  });
813
- throw smithy_client_1.decorateServiceException(response, parsedBody);
813
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
814
814
  }
815
815
  };
816
816
  const serializeAws_restJson1StartConversationRequestEventStream_event = (input, context) => {
@@ -1077,97 +1077,97 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1077
1077
  const contents = {};
1078
1078
  const data = parsedOutput.body;
1079
1079
  if (data.message !== undefined && data.message !== null) {
1080
- contents.message = smithy_client_1.expectString(data.message);
1080
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1081
1081
  }
1082
1082
  const exception = new models_0_1.AccessDeniedException({
1083
1083
  $metadata: deserializeMetadata(parsedOutput),
1084
1084
  ...contents,
1085
1085
  });
1086
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1086
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1087
1087
  };
1088
1088
  const deserializeAws_restJson1BadGatewayExceptionResponse = async (parsedOutput, context) => {
1089
1089
  const contents = {};
1090
1090
  const data = parsedOutput.body;
1091
1091
  if (data.message !== undefined && data.message !== null) {
1092
- contents.message = smithy_client_1.expectString(data.message);
1092
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1093
1093
  }
1094
1094
  const exception = new models_0_1.BadGatewayException({
1095
1095
  $metadata: deserializeMetadata(parsedOutput),
1096
1096
  ...contents,
1097
1097
  });
1098
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1098
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1099
1099
  };
1100
1100
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1101
1101
  const contents = {};
1102
1102
  const data = parsedOutput.body;
1103
1103
  if (data.message !== undefined && data.message !== null) {
1104
- contents.message = smithy_client_1.expectString(data.message);
1104
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1105
1105
  }
1106
1106
  const exception = new models_0_1.ConflictException({
1107
1107
  $metadata: deserializeMetadata(parsedOutput),
1108
1108
  ...contents,
1109
1109
  });
1110
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1110
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1111
1111
  };
1112
1112
  const deserializeAws_restJson1DependencyFailedExceptionResponse = async (parsedOutput, context) => {
1113
1113
  const contents = {};
1114
1114
  const data = parsedOutput.body;
1115
1115
  if (data.message !== undefined && data.message !== null) {
1116
- contents.message = smithy_client_1.expectString(data.message);
1116
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1117
1117
  }
1118
1118
  const exception = new models_0_1.DependencyFailedException({
1119
1119
  $metadata: deserializeMetadata(parsedOutput),
1120
1120
  ...contents,
1121
1121
  });
1122
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1122
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1123
1123
  };
1124
1124
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1125
1125
  const contents = {};
1126
1126
  const data = parsedOutput.body;
1127
1127
  if (data.message !== undefined && data.message !== null) {
1128
- contents.message = smithy_client_1.expectString(data.message);
1128
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1129
1129
  }
1130
1130
  const exception = new models_0_1.InternalServerException({
1131
1131
  $metadata: deserializeMetadata(parsedOutput),
1132
1132
  ...contents,
1133
1133
  });
1134
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1134
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1135
1135
  };
1136
1136
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1137
1137
  const contents = {};
1138
1138
  const data = parsedOutput.body;
1139
1139
  if (data.message !== undefined && data.message !== null) {
1140
- contents.message = smithy_client_1.expectString(data.message);
1140
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1141
1141
  }
1142
1142
  const exception = new models_0_1.ResourceNotFoundException({
1143
1143
  $metadata: deserializeMetadata(parsedOutput),
1144
1144
  ...contents,
1145
1145
  });
1146
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1146
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1147
1147
  };
1148
1148
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1149
1149
  const contents = {};
1150
1150
  const data = parsedOutput.body;
1151
1151
  if (data.message !== undefined && data.message !== null) {
1152
- contents.message = smithy_client_1.expectString(data.message);
1152
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1153
1153
  }
1154
1154
  const exception = new models_0_1.ThrottlingException({
1155
1155
  $metadata: deserializeMetadata(parsedOutput),
1156
1156
  ...contents,
1157
1157
  });
1158
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1158
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1159
1159
  };
1160
1160
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1161
1161
  const contents = {};
1162
1162
  const data = parsedOutput.body;
1163
1163
  if (data.message !== undefined && data.message !== null) {
1164
- contents.message = smithy_client_1.expectString(data.message);
1164
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1165
1165
  }
1166
1166
  const exception = new models_0_1.ValidationException({
1167
1167
  $metadata: deserializeMetadata(parsedOutput),
1168
1168
  ...contents,
1169
1169
  });
1170
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1170
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1171
1171
  };
1172
1172
  const serializeAws_restJson1ActiveContext = (input, context) => {
1173
1173
  return {
@@ -1483,7 +1483,7 @@ const serializeAws_restJson1Values = (input, context) => {
1483
1483
  };
1484
1484
  const deserializeAws_restJson1AccessDeniedException = (output, context) => {
1485
1485
  return {
1486
- message: smithy_client_1.expectString(output.message),
1486
+ message: (0, smithy_client_1.expectString)(output.message),
1487
1487
  };
1488
1488
  };
1489
1489
  const deserializeAws_restJson1ActiveContext = (output, context) => {
@@ -1491,7 +1491,7 @@ const deserializeAws_restJson1ActiveContext = (output, context) => {
1491
1491
  contextAttributes: output.contextAttributes !== undefined && output.contextAttributes !== null
1492
1492
  ? deserializeAws_restJson1ActiveContextParametersMap(output.contextAttributes, context)
1493
1493
  : undefined,
1494
- name: smithy_client_1.expectString(output.name),
1494
+ name: (0, smithy_client_1.expectString)(output.name),
1495
1495
  timeToLive: output.timeToLive !== undefined && output.timeToLive !== null
1496
1496
  ? deserializeAws_restJson1ActiveContextTimeToLive(output.timeToLive, context)
1497
1497
  : undefined,
@@ -1504,7 +1504,7 @@ const deserializeAws_restJson1ActiveContextParametersMap = (output, context) =>
1504
1504
  }
1505
1505
  return {
1506
1506
  ...acc,
1507
- [key]: smithy_client_1.expectString(value),
1507
+ [key]: (0, smithy_client_1.expectString)(value),
1508
1508
  };
1509
1509
  }, {});
1510
1510
  };
@@ -1521,8 +1521,8 @@ const deserializeAws_restJson1ActiveContextsList = (output, context) => {
1521
1521
  };
1522
1522
  const deserializeAws_restJson1ActiveContextTimeToLive = (output, context) => {
1523
1523
  return {
1524
- timeToLiveInSeconds: smithy_client_1.expectInt32(output.timeToLiveInSeconds),
1525
- turnsToLive: smithy_client_1.expectInt32(output.turnsToLive),
1524
+ timeToLiveInSeconds: (0, smithy_client_1.expectInt32)(output.timeToLiveInSeconds),
1525
+ turnsToLive: (0, smithy_client_1.expectInt32)(output.turnsToLive),
1526
1526
  };
1527
1527
  };
1528
1528
  const deserializeAws_restJson1AudioResponseEvent = (output, context) => {
@@ -1530,19 +1530,19 @@ const deserializeAws_restJson1AudioResponseEvent = (output, context) => {
1530
1530
  audioChunk: output.audioChunk !== undefined && output.audioChunk !== null
1531
1531
  ? context.base64Decoder(output.audioChunk)
1532
1532
  : undefined,
1533
- contentType: smithy_client_1.expectString(output.contentType),
1534
- eventId: smithy_client_1.expectString(output.eventId),
1533
+ contentType: (0, smithy_client_1.expectString)(output.contentType),
1534
+ eventId: (0, smithy_client_1.expectString)(output.eventId),
1535
1535
  };
1536
1536
  };
1537
1537
  const deserializeAws_restJson1BadGatewayException = (output, context) => {
1538
1538
  return {
1539
- message: smithy_client_1.expectString(output.message),
1539
+ message: (0, smithy_client_1.expectString)(output.message),
1540
1540
  };
1541
1541
  };
1542
1542
  const deserializeAws_restJson1Button = (output, context) => {
1543
1543
  return {
1544
- text: smithy_client_1.expectString(output.text),
1545
- value: smithy_client_1.expectString(output.value),
1544
+ text: (0, smithy_client_1.expectString)(output.text),
1545
+ value: (0, smithy_client_1.expectString)(output.value),
1546
1546
  };
1547
1547
  };
1548
1548
  const deserializeAws_restJson1ButtonsList = (output, context) => {
@@ -1558,29 +1558,29 @@ const deserializeAws_restJson1ButtonsList = (output, context) => {
1558
1558
  };
1559
1559
  const deserializeAws_restJson1ConfidenceScore = (output, context) => {
1560
1560
  return {
1561
- score: smithy_client_1.limitedParseDouble(output.score),
1561
+ score: (0, smithy_client_1.limitedParseDouble)(output.score),
1562
1562
  };
1563
1563
  };
1564
1564
  const deserializeAws_restJson1ConflictException = (output, context) => {
1565
1565
  return {
1566
- message: smithy_client_1.expectString(output.message),
1566
+ message: (0, smithy_client_1.expectString)(output.message),
1567
1567
  };
1568
1568
  };
1569
1569
  const deserializeAws_restJson1DependencyFailedException = (output, context) => {
1570
1570
  return {
1571
- message: smithy_client_1.expectString(output.message),
1571
+ message: (0, smithy_client_1.expectString)(output.message),
1572
1572
  };
1573
1573
  };
1574
1574
  const deserializeAws_restJson1DialogAction = (output, context) => {
1575
1575
  return {
1576
- slotElicitationStyle: smithy_client_1.expectString(output.slotElicitationStyle),
1577
- slotToElicit: smithy_client_1.expectString(output.slotToElicit),
1578
- type: smithy_client_1.expectString(output.type),
1576
+ slotElicitationStyle: (0, smithy_client_1.expectString)(output.slotElicitationStyle),
1577
+ slotToElicit: (0, smithy_client_1.expectString)(output.slotToElicit),
1578
+ type: (0, smithy_client_1.expectString)(output.type),
1579
1579
  };
1580
1580
  };
1581
1581
  const deserializeAws_restJson1HeartbeatEvent = (output, context) => {
1582
1582
  return {
1583
- eventId: smithy_client_1.expectString(output.eventId),
1583
+ eventId: (0, smithy_client_1.expectString)(output.eventId),
1584
1584
  };
1585
1585
  };
1586
1586
  const deserializeAws_restJson1ImageResponseCard = (output, context) => {
@@ -1588,32 +1588,32 @@ const deserializeAws_restJson1ImageResponseCard = (output, context) => {
1588
1588
  buttons: output.buttons !== undefined && output.buttons !== null
1589
1589
  ? deserializeAws_restJson1ButtonsList(output.buttons, context)
1590
1590
  : undefined,
1591
- imageUrl: smithy_client_1.expectString(output.imageUrl),
1592
- subtitle: smithy_client_1.expectString(output.subtitle),
1593
- title: smithy_client_1.expectString(output.title),
1591
+ imageUrl: (0, smithy_client_1.expectString)(output.imageUrl),
1592
+ subtitle: (0, smithy_client_1.expectString)(output.subtitle),
1593
+ title: (0, smithy_client_1.expectString)(output.title),
1594
1594
  };
1595
1595
  };
1596
1596
  const deserializeAws_restJson1Intent = (output, context) => {
1597
1597
  return {
1598
- confirmationState: smithy_client_1.expectString(output.confirmationState),
1599
- name: smithy_client_1.expectString(output.name),
1598
+ confirmationState: (0, smithy_client_1.expectString)(output.confirmationState),
1599
+ name: (0, smithy_client_1.expectString)(output.name),
1600
1600
  slots: output.slots !== undefined && output.slots !== null
1601
1601
  ? deserializeAws_restJson1Slots(output.slots, context)
1602
1602
  : undefined,
1603
- state: smithy_client_1.expectString(output.state),
1603
+ state: (0, smithy_client_1.expectString)(output.state),
1604
1604
  };
1605
1605
  };
1606
1606
  const deserializeAws_restJson1IntentResultEvent = (output, context) => {
1607
1607
  return {
1608
- eventId: smithy_client_1.expectString(output.eventId),
1609
- inputMode: smithy_client_1.expectString(output.inputMode),
1608
+ eventId: (0, smithy_client_1.expectString)(output.eventId),
1609
+ inputMode: (0, smithy_client_1.expectString)(output.inputMode),
1610
1610
  interpretations: output.interpretations !== undefined && output.interpretations !== null
1611
1611
  ? deserializeAws_restJson1Interpretations(output.interpretations, context)
1612
1612
  : undefined,
1613
1613
  requestAttributes: output.requestAttributes !== undefined && output.requestAttributes !== null
1614
1614
  ? deserializeAws_restJson1StringMap(output.requestAttributes, context)
1615
1615
  : undefined,
1616
- sessionId: smithy_client_1.expectString(output.sessionId),
1616
+ sessionId: (0, smithy_client_1.expectString)(output.sessionId),
1617
1617
  sessionState: output.sessionState !== undefined && output.sessionState !== null
1618
1618
  ? deserializeAws_restJson1SessionState(output.sessionState, context)
1619
1619
  : undefined,
@@ -1621,7 +1621,7 @@ const deserializeAws_restJson1IntentResultEvent = (output, context) => {
1621
1621
  };
1622
1622
  const deserializeAws_restJson1InternalServerException = (output, context) => {
1623
1623
  return {
1624
- message: smithy_client_1.expectString(output.message),
1624
+ message: (0, smithy_client_1.expectString)(output.message),
1625
1625
  };
1626
1626
  };
1627
1627
  const deserializeAws_restJson1Interpretation = (output, context) => {
@@ -1650,8 +1650,8 @@ const deserializeAws_restJson1Interpretations = (output, context) => {
1650
1650
  };
1651
1651
  const deserializeAws_restJson1Message = (output, context) => {
1652
1652
  return {
1653
- content: smithy_client_1.expectString(output.content),
1654
- contentType: smithy_client_1.expectString(output.contentType),
1653
+ content: (0, smithy_client_1.expectString)(output.content),
1654
+ contentType: (0, smithy_client_1.expectString)(output.contentType),
1655
1655
  imageResponseCard: output.imageResponseCard !== undefined && output.imageResponseCard !== null
1656
1656
  ? deserializeAws_restJson1ImageResponseCard(output.imageResponseCard, context)
1657
1657
  : undefined,
@@ -1670,14 +1670,14 @@ const deserializeAws_restJson1Messages = (output, context) => {
1670
1670
  };
1671
1671
  const deserializeAws_restJson1PlaybackInterruptionEvent = (output, context) => {
1672
1672
  return {
1673
- causedByEventId: smithy_client_1.expectString(output.causedByEventId),
1674
- eventId: smithy_client_1.expectString(output.eventId),
1675
- eventReason: smithy_client_1.expectString(output.eventReason),
1673
+ causedByEventId: (0, smithy_client_1.expectString)(output.causedByEventId),
1674
+ eventId: (0, smithy_client_1.expectString)(output.eventId),
1675
+ eventReason: (0, smithy_client_1.expectString)(output.eventReason),
1676
1676
  };
1677
1677
  };
1678
1678
  const deserializeAws_restJson1ResourceNotFoundException = (output, context) => {
1679
1679
  return {
1680
- message: smithy_client_1.expectString(output.message),
1680
+ message: (0, smithy_client_1.expectString)(output.message),
1681
1681
  };
1682
1682
  };
1683
1683
  const deserializeAws_restJson1RuntimeHintDetails = (output, context) => {
@@ -1696,7 +1696,7 @@ const deserializeAws_restJson1RuntimeHints = (output, context) => {
1696
1696
  };
1697
1697
  const deserializeAws_restJson1RuntimeHintValue = (output, context) => {
1698
1698
  return {
1699
- phrase: smithy_client_1.expectString(output.phrase),
1699
+ phrase: (0, smithy_client_1.expectString)(output.phrase),
1700
1700
  };
1701
1701
  };
1702
1702
  const deserializeAws_restJson1RuntimeHintValuesList = (output, context) => {
@@ -1712,7 +1712,7 @@ const deserializeAws_restJson1RuntimeHintValuesList = (output, context) => {
1712
1712
  };
1713
1713
  const deserializeAws_restJson1SentimentResponse = (output, context) => {
1714
1714
  return {
1715
- sentiment: smithy_client_1.expectString(output.sentiment),
1715
+ sentiment: (0, smithy_client_1.expectString)(output.sentiment),
1716
1716
  sentimentScore: output.sentimentScore !== undefined && output.sentimentScore !== null
1717
1717
  ? deserializeAws_restJson1SentimentScore(output.sentimentScore, context)
1718
1718
  : undefined,
@@ -1720,10 +1720,10 @@ const deserializeAws_restJson1SentimentResponse = (output, context) => {
1720
1720
  };
1721
1721
  const deserializeAws_restJson1SentimentScore = (output, context) => {
1722
1722
  return {
1723
- mixed: smithy_client_1.limitedParseDouble(output.mixed),
1724
- negative: smithy_client_1.limitedParseDouble(output.negative),
1725
- neutral: smithy_client_1.limitedParseDouble(output.neutral),
1726
- positive: smithy_client_1.limitedParseDouble(output.positive),
1723
+ mixed: (0, smithy_client_1.limitedParseDouble)(output.mixed),
1724
+ negative: (0, smithy_client_1.limitedParseDouble)(output.negative),
1725
+ neutral: (0, smithy_client_1.limitedParseDouble)(output.neutral),
1726
+ positive: (0, smithy_client_1.limitedParseDouble)(output.positive),
1727
1727
  };
1728
1728
  };
1729
1729
  const deserializeAws_restJson1SessionState = (output, context) => {
@@ -1737,7 +1737,7 @@ const deserializeAws_restJson1SessionState = (output, context) => {
1737
1737
  intent: output.intent !== undefined && output.intent !== null
1738
1738
  ? deserializeAws_restJson1Intent(output.intent, context)
1739
1739
  : undefined,
1740
- originatingRequestId: smithy_client_1.expectString(output.originatingRequestId),
1740
+ originatingRequestId: (0, smithy_client_1.expectString)(output.originatingRequestId),
1741
1741
  runtimeHints: output.runtimeHints !== undefined && output.runtimeHints !== null
1742
1742
  ? deserializeAws_restJson1RuntimeHints(output.runtimeHints, context)
1743
1743
  : undefined,
@@ -1748,7 +1748,7 @@ const deserializeAws_restJson1SessionState = (output, context) => {
1748
1748
  };
1749
1749
  const deserializeAws_restJson1Slot = (output, context) => {
1750
1750
  return {
1751
- shape: smithy_client_1.expectString(output.shape),
1751
+ shape: (0, smithy_client_1.expectString)(output.shape),
1752
1752
  value: output.value !== undefined && output.value !== null
1753
1753
  ? deserializeAws_restJson1Value(output.value, context)
1754
1754
  : undefined,
@@ -1870,7 +1870,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
1870
1870
  if (entry === null) {
1871
1871
  return null;
1872
1872
  }
1873
- return smithy_client_1.expectString(entry);
1873
+ return (0, smithy_client_1.expectString)(entry);
1874
1874
  });
1875
1875
  return retVal;
1876
1876
  };
@@ -1881,13 +1881,13 @@ const deserializeAws_restJson1StringMap = (output, context) => {
1881
1881
  }
1882
1882
  return {
1883
1883
  ...acc,
1884
- [key]: smithy_client_1.expectString(value),
1884
+ [key]: (0, smithy_client_1.expectString)(value),
1885
1885
  };
1886
1886
  }, {});
1887
1887
  };
1888
1888
  const deserializeAws_restJson1TextResponseEvent = (output, context) => {
1889
1889
  return {
1890
- eventId: smithy_client_1.expectString(output.eventId),
1890
+ eventId: (0, smithy_client_1.expectString)(output.eventId),
1891
1891
  messages: output.messages !== undefined && output.messages !== null
1892
1892
  ? deserializeAws_restJson1Messages(output.messages, context)
1893
1893
  : undefined,
@@ -1895,24 +1895,24 @@ const deserializeAws_restJson1TextResponseEvent = (output, context) => {
1895
1895
  };
1896
1896
  const deserializeAws_restJson1ThrottlingException = (output, context) => {
1897
1897
  return {
1898
- message: smithy_client_1.expectString(output.message),
1898
+ message: (0, smithy_client_1.expectString)(output.message),
1899
1899
  };
1900
1900
  };
1901
1901
  const deserializeAws_restJson1TranscriptEvent = (output, context) => {
1902
1902
  return {
1903
- eventId: smithy_client_1.expectString(output.eventId),
1904
- transcript: smithy_client_1.expectString(output.transcript),
1903
+ eventId: (0, smithy_client_1.expectString)(output.eventId),
1904
+ transcript: (0, smithy_client_1.expectString)(output.transcript),
1905
1905
  };
1906
1906
  };
1907
1907
  const deserializeAws_restJson1ValidationException = (output, context) => {
1908
1908
  return {
1909
- message: smithy_client_1.expectString(output.message),
1909
+ message: (0, smithy_client_1.expectString)(output.message),
1910
1910
  };
1911
1911
  };
1912
1912
  const deserializeAws_restJson1Value = (output, context) => {
1913
1913
  return {
1914
- interpretedValue: smithy_client_1.expectString(output.interpretedValue),
1915
- originalValue: smithy_client_1.expectString(output.originalValue),
1914
+ interpretedValue: (0, smithy_client_1.expectString)(output.interpretedValue),
1915
+ originalValue: (0, smithy_client_1.expectString)(output.originalValue),
1916
1916
  resolvedValues: output.resolvedValues !== undefined && output.resolvedValues !== null
1917
1917
  ? deserializeAws_restJson1StringList(output.resolvedValues, context)
1918
1918
  : undefined,