@aws-sdk/client-lex-runtime-v2 3.489.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1831 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LexRuntimeV2ServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./LexRuntimeV2Client"), exports);
6
- tslib_1.__exportStar(require("./LexRuntimeV2"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- var LexRuntimeV2ServiceException_1 = require("./models/LexRuntimeV2ServiceException");
11
- Object.defineProperty(exports, "LexRuntimeV2ServiceException", { enumerable: true, get: function () { return LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ ActiveContextFilterSensitiveLog: () => ActiveContextFilterSensitiveLog,
26
+ BadGatewayException: () => BadGatewayException,
27
+ ConfigurationEventFilterSensitiveLog: () => ConfigurationEventFilterSensitiveLog,
28
+ ConfirmationState: () => ConfirmationState,
29
+ ConflictException: () => ConflictException,
30
+ ConversationMode: () => ConversationMode,
31
+ DTMFInputEventFilterSensitiveLog: () => DTMFInputEventFilterSensitiveLog,
32
+ DeleteSessionCommand: () => DeleteSessionCommand,
33
+ DependencyFailedException: () => DependencyFailedException,
34
+ DialogActionType: () => DialogActionType,
35
+ GetSessionCommand: () => GetSessionCommand,
36
+ GetSessionResponseFilterSensitiveLog: () => GetSessionResponseFilterSensitiveLog,
37
+ InputMode: () => InputMode,
38
+ IntentResultEventFilterSensitiveLog: () => IntentResultEventFilterSensitiveLog,
39
+ IntentState: () => IntentState,
40
+ InternalServerException: () => InternalServerException,
41
+ InterpretationSource: () => InterpretationSource,
42
+ LexRuntimeV2: () => LexRuntimeV2,
43
+ LexRuntimeV2Client: () => LexRuntimeV2Client,
44
+ LexRuntimeV2ServiceException: () => LexRuntimeV2ServiceException,
45
+ MessageContentType: () => MessageContentType,
46
+ MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
47
+ PlaybackInterruptionReason: () => PlaybackInterruptionReason,
48
+ PutSessionCommand: () => PutSessionCommand,
49
+ PutSessionRequestFilterSensitiveLog: () => PutSessionRequestFilterSensitiveLog,
50
+ PutSessionResponseFilterSensitiveLog: () => PutSessionResponseFilterSensitiveLog,
51
+ RecognizeTextCommand: () => RecognizeTextCommand,
52
+ RecognizeTextRequestFilterSensitiveLog: () => RecognizeTextRequestFilterSensitiveLog,
53
+ RecognizeTextResponseFilterSensitiveLog: () => RecognizeTextResponseFilterSensitiveLog,
54
+ RecognizeUtteranceCommand: () => RecognizeUtteranceCommand,
55
+ RecognizeUtteranceRequestFilterSensitiveLog: () => RecognizeUtteranceRequestFilterSensitiveLog,
56
+ RecognizeUtteranceResponseFilterSensitiveLog: () => RecognizeUtteranceResponseFilterSensitiveLog,
57
+ ResourceNotFoundException: () => ResourceNotFoundException,
58
+ SentimentType: () => SentimentType,
59
+ SessionStateFilterSensitiveLog: () => SessionStateFilterSensitiveLog,
60
+ Shape: () => Shape,
61
+ StartConversationCommand: () => StartConversationCommand,
62
+ StartConversationRequestEventStream: () => StartConversationRequestEventStream,
63
+ StartConversationRequestEventStreamFilterSensitiveLog: () => StartConversationRequestEventStreamFilterSensitiveLog,
64
+ StartConversationRequestFilterSensitiveLog: () => StartConversationRequestFilterSensitiveLog,
65
+ StartConversationResponseEventStream: () => StartConversationResponseEventStream,
66
+ StartConversationResponseEventStreamFilterSensitiveLog: () => StartConversationResponseEventStreamFilterSensitiveLog,
67
+ StartConversationResponseFilterSensitiveLog: () => StartConversationResponseFilterSensitiveLog,
68
+ StyleType: () => StyleType,
69
+ TextInputEventFilterSensitiveLog: () => TextInputEventFilterSensitiveLog,
70
+ TextResponseEventFilterSensitiveLog: () => TextResponseEventFilterSensitiveLog,
71
+ ThrottlingException: () => ThrottlingException,
72
+ ValidationException: () => ValidationException,
73
+ __Client: () => import_smithy_client.Client
74
+ });
75
+ module.exports = __toCommonJS(src_exports);
76
+
77
+ // src/LexRuntimeV2Client.ts
78
+ var import_middleware_eventstream = require("@aws-sdk/middleware-eventstream");
79
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
80
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
81
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
82
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
83
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
84
+ var import_config_resolver = require("@smithy/config-resolver");
85
+ var import_eventstream_serde_config_resolver = require("@smithy/eventstream-serde-config-resolver");
86
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
87
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
88
+ var import_middleware_retry = require("@smithy/middleware-retry");
89
+
90
+
91
+ // src/endpoint/EndpointParameters.ts
92
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
93
+ return {
94
+ ...options,
95
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
96
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
97
+ defaultSigningName: "lex"
98
+ };
99
+ }, "resolveClientEndpointParameters");
100
+ var commonParams = {
101
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
102
+ Endpoint: { type: "builtInParams", name: "endpoint" },
103
+ Region: { type: "builtInParams", name: "region" },
104
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
105
+ };
106
+
107
+ // src/LexRuntimeV2Client.ts
108
+ var import_runtimeConfig = require("././runtimeConfig");
109
+
110
+ // src/runtimeExtensions.ts
111
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
112
+ var import_protocol_http = require("@smithy/protocol-http");
113
+ var import_smithy_client = require("@smithy/smithy-client");
114
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
115
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
116
+ const extensionConfiguration = {
117
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
118
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
119
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
120
+ };
121
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
122
+ return {
123
+ ...runtimeConfig,
124
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
125
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
126
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
127
+ };
128
+ }, "resolveRuntimeExtensions");
129
+
130
+ // src/LexRuntimeV2Client.ts
131
+ var _LexRuntimeV2Client = class _LexRuntimeV2Client extends import_smithy_client.Client {
132
+ constructor(...[configuration]) {
133
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
134
+ const _config_1 = resolveClientEndpointParameters(_config_0);
135
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
136
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
137
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
138
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
139
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
140
+ const _config_7 = (0, import_middleware_eventstream.resolveEventStreamConfig)(_config_6);
141
+ const _config_8 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_7);
142
+ const _config_9 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_8);
143
+ const _config_10 = resolveRuntimeExtensions(_config_9, (configuration == null ? void 0 : configuration.extensions) || []);
144
+ super(_config_10);
145
+ this.config = _config_10;
146
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
147
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
148
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
149
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
150
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
151
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
152
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
153
+ }
154
+ /**
155
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
156
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
157
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
158
+ */
159
+ destroy() {
160
+ super.destroy();
161
+ }
162
+ };
163
+ __name(_LexRuntimeV2Client, "LexRuntimeV2Client");
164
+ var LexRuntimeV2Client = _LexRuntimeV2Client;
165
+
166
+ // src/LexRuntimeV2.ts
167
+
168
+
169
+ // src/commands/DeleteSessionCommand.ts
170
+
171
+ var import_middleware_serde = require("@smithy/middleware-serde");
172
+
173
+ var import_types = require("@smithy/types");
174
+
175
+ // src/protocols/Aws_restJson1.ts
176
+ var import_core = require("@smithy/core");
177
+
178
+
179
+ // src/models/LexRuntimeV2ServiceException.ts
180
+
181
+ var _LexRuntimeV2ServiceException = class _LexRuntimeV2ServiceException extends import_smithy_client.ServiceException {
182
+ /**
183
+ * @internal
184
+ */
185
+ constructor(options) {
186
+ super(options);
187
+ Object.setPrototypeOf(this, _LexRuntimeV2ServiceException.prototype);
188
+ }
189
+ };
190
+ __name(_LexRuntimeV2ServiceException, "LexRuntimeV2ServiceException");
191
+ var LexRuntimeV2ServiceException = _LexRuntimeV2ServiceException;
192
+
193
+ // src/models/models_0.ts
194
+
195
+ var _AccessDeniedException = class _AccessDeniedException extends LexRuntimeV2ServiceException {
196
+ /**
197
+ * @internal
198
+ */
199
+ constructor(opts) {
200
+ super({
201
+ name: "AccessDeniedException",
202
+ $fault: "client",
203
+ ...opts
204
+ });
205
+ this.name = "AccessDeniedException";
206
+ this.$fault = "client";
207
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
208
+ }
209
+ };
210
+ __name(_AccessDeniedException, "AccessDeniedException");
211
+ var AccessDeniedException = _AccessDeniedException;
212
+ var _ConflictException = class _ConflictException extends LexRuntimeV2ServiceException {
213
+ /**
214
+ * @internal
215
+ */
216
+ constructor(opts) {
217
+ super({
218
+ name: "ConflictException",
219
+ $fault: "client",
220
+ ...opts
221
+ });
222
+ this.name = "ConflictException";
223
+ this.$fault = "client";
224
+ Object.setPrototypeOf(this, _ConflictException.prototype);
225
+ }
226
+ };
227
+ __name(_ConflictException, "ConflictException");
228
+ var ConflictException = _ConflictException;
229
+ var _InternalServerException = class _InternalServerException extends LexRuntimeV2ServiceException {
230
+ /**
231
+ * @internal
232
+ */
233
+ constructor(opts) {
234
+ super({
235
+ name: "InternalServerException",
236
+ $fault: "server",
237
+ ...opts
238
+ });
239
+ this.name = "InternalServerException";
240
+ this.$fault = "server";
241
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
242
+ }
243
+ };
244
+ __name(_InternalServerException, "InternalServerException");
245
+ var InternalServerException = _InternalServerException;
246
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends LexRuntimeV2ServiceException {
247
+ /**
248
+ * @internal
249
+ */
250
+ constructor(opts) {
251
+ super({
252
+ name: "ResourceNotFoundException",
253
+ $fault: "client",
254
+ ...opts
255
+ });
256
+ this.name = "ResourceNotFoundException";
257
+ this.$fault = "client";
258
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
259
+ }
260
+ };
261
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
262
+ var ResourceNotFoundException = _ResourceNotFoundException;
263
+ var _ThrottlingException = class _ThrottlingException extends LexRuntimeV2ServiceException {
264
+ /**
265
+ * @internal
266
+ */
267
+ constructor(opts) {
268
+ super({
269
+ name: "ThrottlingException",
270
+ $fault: "client",
271
+ ...opts
272
+ });
273
+ this.name = "ThrottlingException";
274
+ this.$fault = "client";
275
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
276
+ }
277
+ };
278
+ __name(_ThrottlingException, "ThrottlingException");
279
+ var ThrottlingException = _ThrottlingException;
280
+ var _ValidationException = class _ValidationException extends LexRuntimeV2ServiceException {
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(opts) {
285
+ super({
286
+ name: "ValidationException",
287
+ $fault: "client",
288
+ ...opts
289
+ });
290
+ this.name = "ValidationException";
291
+ this.$fault = "client";
292
+ Object.setPrototypeOf(this, _ValidationException.prototype);
293
+ }
294
+ };
295
+ __name(_ValidationException, "ValidationException");
296
+ var ValidationException = _ValidationException;
297
+ var ConfirmationState = {
298
+ CONFIRMED: "Confirmed",
299
+ DENIED: "Denied",
300
+ NONE: "None"
301
+ };
302
+ var Shape = {
303
+ COMPOSITE: "Composite",
304
+ LIST: "List",
305
+ SCALAR: "Scalar"
306
+ };
307
+ var IntentState = {
308
+ FAILED: "Failed",
309
+ FULFILLED: "Fulfilled",
310
+ FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
311
+ IN_PROGRESS: "InProgress",
312
+ READY_FOR_FULFILLMENT: "ReadyForFulfillment",
313
+ WAITING: "Waiting"
314
+ };
315
+ var InterpretationSource = {
316
+ BEDROCK: "Bedrock",
317
+ LEX: "Lex"
318
+ };
319
+ var SentimentType = {
320
+ MIXED: "MIXED",
321
+ NEGATIVE: "NEGATIVE",
322
+ NEUTRAL: "NEUTRAL",
323
+ POSITIVE: "POSITIVE"
324
+ };
325
+ var MessageContentType = {
326
+ CUSTOM_PAYLOAD: "CustomPayload",
327
+ IMAGE_RESPONSE_CARD: "ImageResponseCard",
328
+ PLAIN_TEXT: "PlainText",
329
+ SSML: "SSML"
330
+ };
331
+ var StyleType = {
332
+ DEFAULT: "Default",
333
+ SPELL_BY_LETTER: "SpellByLetter",
334
+ SPELL_BY_WORD: "SpellByWord"
335
+ };
336
+ var DialogActionType = {
337
+ CLOSE: "Close",
338
+ CONFIRM_INTENT: "ConfirmIntent",
339
+ DELEGATE: "Delegate",
340
+ ELICIT_INTENT: "ElicitIntent",
341
+ ELICIT_SLOT: "ElicitSlot",
342
+ NONE: "None"
343
+ };
344
+ var _BadGatewayException = class _BadGatewayException extends LexRuntimeV2ServiceException {
345
+ /**
346
+ * @internal
347
+ */
348
+ constructor(opts) {
349
+ super({
350
+ name: "BadGatewayException",
351
+ $fault: "server",
352
+ ...opts
353
+ });
354
+ this.name = "BadGatewayException";
355
+ this.$fault = "server";
356
+ Object.setPrototypeOf(this, _BadGatewayException.prototype);
357
+ }
358
+ };
359
+ __name(_BadGatewayException, "BadGatewayException");
360
+ var BadGatewayException = _BadGatewayException;
361
+ var _DependencyFailedException = class _DependencyFailedException extends LexRuntimeV2ServiceException {
362
+ /**
363
+ * @internal
364
+ */
365
+ constructor(opts) {
366
+ super({
367
+ name: "DependencyFailedException",
368
+ $fault: "client",
369
+ ...opts
370
+ });
371
+ this.name = "DependencyFailedException";
372
+ this.$fault = "client";
373
+ Object.setPrototypeOf(this, _DependencyFailedException.prototype);
374
+ }
375
+ };
376
+ __name(_DependencyFailedException, "DependencyFailedException");
377
+ var DependencyFailedException = _DependencyFailedException;
378
+ var ConversationMode = {
379
+ AUDIO: "AUDIO",
380
+ TEXT: "TEXT"
381
+ };
382
+ var InputMode = {
383
+ DTMF: "DTMF",
384
+ SPEECH: "Speech",
385
+ TEXT: "Text"
386
+ };
387
+ var PlaybackInterruptionReason = {
388
+ DTMF_START_DETECTED: "DTMF_START_DETECTED",
389
+ TEXT_DETECTED: "TEXT_DETECTED",
390
+ VOICE_START_DETECTED: "VOICE_START_DETECTED"
391
+ };
392
+ var StartConversationRequestEventStream;
393
+ ((StartConversationRequestEventStream2) => {
394
+ StartConversationRequestEventStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
395
+ if (value.ConfigurationEvent !== void 0)
396
+ return visitor.ConfigurationEvent(value.ConfigurationEvent);
397
+ if (value.AudioInputEvent !== void 0)
398
+ return visitor.AudioInputEvent(value.AudioInputEvent);
399
+ if (value.DTMFInputEvent !== void 0)
400
+ return visitor.DTMFInputEvent(value.DTMFInputEvent);
401
+ if (value.TextInputEvent !== void 0)
402
+ return visitor.TextInputEvent(value.TextInputEvent);
403
+ if (value.PlaybackCompletionEvent !== void 0)
404
+ return visitor.PlaybackCompletionEvent(value.PlaybackCompletionEvent);
405
+ if (value.DisconnectionEvent !== void 0)
406
+ return visitor.DisconnectionEvent(value.DisconnectionEvent);
407
+ return visitor._(value.$unknown[0], value.$unknown[1]);
408
+ }, "visit");
409
+ })(StartConversationRequestEventStream || (StartConversationRequestEventStream = {}));
410
+ var StartConversationResponseEventStream;
411
+ ((StartConversationResponseEventStream3) => {
412
+ StartConversationResponseEventStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
413
+ if (value.PlaybackInterruptionEvent !== void 0)
414
+ return visitor.PlaybackInterruptionEvent(value.PlaybackInterruptionEvent);
415
+ if (value.TranscriptEvent !== void 0)
416
+ return visitor.TranscriptEvent(value.TranscriptEvent);
417
+ if (value.IntentResultEvent !== void 0)
418
+ return visitor.IntentResultEvent(value.IntentResultEvent);
419
+ if (value.TextResponseEvent !== void 0)
420
+ return visitor.TextResponseEvent(value.TextResponseEvent);
421
+ if (value.AudioResponseEvent !== void 0)
422
+ return visitor.AudioResponseEvent(value.AudioResponseEvent);
423
+ if (value.HeartbeatEvent !== void 0)
424
+ return visitor.HeartbeatEvent(value.HeartbeatEvent);
425
+ if (value.AccessDeniedException !== void 0)
426
+ return visitor.AccessDeniedException(value.AccessDeniedException);
427
+ if (value.ResourceNotFoundException !== void 0)
428
+ return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
429
+ if (value.ValidationException !== void 0)
430
+ return visitor.ValidationException(value.ValidationException);
431
+ if (value.ThrottlingException !== void 0)
432
+ return visitor.ThrottlingException(value.ThrottlingException);
433
+ if (value.InternalServerException !== void 0)
434
+ return visitor.InternalServerException(value.InternalServerException);
435
+ if (value.ConflictException !== void 0)
436
+ return visitor.ConflictException(value.ConflictException);
437
+ if (value.DependencyFailedException !== void 0)
438
+ return visitor.DependencyFailedException(value.DependencyFailedException);
439
+ if (value.BadGatewayException !== void 0)
440
+ return visitor.BadGatewayException(value.BadGatewayException);
441
+ return visitor._(value.$unknown[0], value.$unknown[1]);
442
+ }, "visit");
443
+ })(StartConversationResponseEventStream || (StartConversationResponseEventStream = {}));
444
+ var ActiveContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
445
+ ...obj,
446
+ ...obj.contextAttributes && { contextAttributes: import_smithy_client.SENSITIVE_STRING }
447
+ }), "ActiveContextFilterSensitiveLog");
448
+ var MessageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
449
+ ...obj,
450
+ ...obj.content && { content: import_smithy_client.SENSITIVE_STRING }
451
+ }), "MessageFilterSensitiveLog");
452
+ var PutSessionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
453
+ ...obj
454
+ }), "PutSessionResponseFilterSensitiveLog");
455
+ var RecognizeUtteranceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
456
+ ...obj,
457
+ ...obj.sessionState && { sessionState: import_smithy_client.SENSITIVE_STRING },
458
+ ...obj.requestAttributes && { requestAttributes: import_smithy_client.SENSITIVE_STRING }
459
+ }), "RecognizeUtteranceRequestFilterSensitiveLog");
460
+ var RecognizeUtteranceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
461
+ ...obj
462
+ }), "RecognizeUtteranceResponseFilterSensitiveLog");
463
+ var DTMFInputEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
464
+ ...obj,
465
+ ...obj.inputCharacter && { inputCharacter: import_smithy_client.SENSITIVE_STRING }
466
+ }), "DTMFInputEventFilterSensitiveLog");
467
+ var TextInputEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
468
+ ...obj,
469
+ ...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
470
+ }), "TextInputEventFilterSensitiveLog");
471
+ var TextResponseEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
472
+ ...obj,
473
+ ...obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }
474
+ }), "TextResponseEventFilterSensitiveLog");
475
+ var SessionStateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
476
+ ...obj,
477
+ ...obj.activeContexts && {
478
+ activeContexts: obj.activeContexts.map((item) => ActiveContextFilterSensitiveLog(item))
479
+ }
480
+ }), "SessionStateFilterSensitiveLog");
481
+ var ConfigurationEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
482
+ ...obj,
483
+ ...obj.welcomeMessages && { welcomeMessages: obj.welcomeMessages.map((item) => MessageFilterSensitiveLog(item)) }
484
+ }), "ConfigurationEventFilterSensitiveLog");
485
+ var PutSessionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
486
+ ...obj,
487
+ ...obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }
488
+ }), "PutSessionRequestFilterSensitiveLog");
489
+ var RecognizeTextRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
490
+ ...obj,
491
+ ...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
492
+ }), "RecognizeTextRequestFilterSensitiveLog");
493
+ var StartConversationRequestEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
494
+ if (obj.ConfigurationEvent !== void 0)
495
+ return { ConfigurationEvent: ConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
496
+ if (obj.AudioInputEvent !== void 0)
497
+ return { AudioInputEvent: obj.AudioInputEvent };
498
+ if (obj.DTMFInputEvent !== void 0)
499
+ return { DTMFInputEvent: DTMFInputEventFilterSensitiveLog(obj.DTMFInputEvent) };
500
+ if (obj.TextInputEvent !== void 0)
501
+ return { TextInputEvent: TextInputEventFilterSensitiveLog(obj.TextInputEvent) };
502
+ if (obj.PlaybackCompletionEvent !== void 0)
503
+ return { PlaybackCompletionEvent: obj.PlaybackCompletionEvent };
504
+ if (obj.DisconnectionEvent !== void 0)
505
+ return { DisconnectionEvent: obj.DisconnectionEvent };
506
+ if (obj.$unknown !== void 0)
507
+ return { [obj.$unknown[0]]: "UNKNOWN" };
508
+ }, "StartConversationRequestEventStreamFilterSensitiveLog");
509
+ var StartConversationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
510
+ ...obj,
511
+ ...obj.requestEventStream && { requestEventStream: "STREAMING_CONTENT" }
512
+ }), "StartConversationRequestFilterSensitiveLog");
513
+ var GetSessionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
514
+ ...obj,
515
+ ...obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }
516
+ }), "GetSessionResponseFilterSensitiveLog");
517
+ var IntentResultEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
518
+ ...obj
519
+ }), "IntentResultEventFilterSensitiveLog");
520
+ var RecognizeTextResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
521
+ ...obj,
522
+ ...obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }
523
+ }), "RecognizeTextResponseFilterSensitiveLog");
524
+ var StartConversationResponseEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
525
+ if (obj.PlaybackInterruptionEvent !== void 0)
526
+ return { PlaybackInterruptionEvent: obj.PlaybackInterruptionEvent };
527
+ if (obj.TranscriptEvent !== void 0)
528
+ return { TranscriptEvent: obj.TranscriptEvent };
529
+ if (obj.IntentResultEvent !== void 0)
530
+ return { IntentResultEvent: IntentResultEventFilterSensitiveLog(obj.IntentResultEvent) };
531
+ if (obj.TextResponseEvent !== void 0)
532
+ return { TextResponseEvent: TextResponseEventFilterSensitiveLog(obj.TextResponseEvent) };
533
+ if (obj.AudioResponseEvent !== void 0)
534
+ return { AudioResponseEvent: obj.AudioResponseEvent };
535
+ if (obj.HeartbeatEvent !== void 0)
536
+ return { HeartbeatEvent: obj.HeartbeatEvent };
537
+ if (obj.AccessDeniedException !== void 0)
538
+ return { AccessDeniedException: obj.AccessDeniedException };
539
+ if (obj.ResourceNotFoundException !== void 0)
540
+ return { ResourceNotFoundException: obj.ResourceNotFoundException };
541
+ if (obj.ValidationException !== void 0)
542
+ return { ValidationException: obj.ValidationException };
543
+ if (obj.ThrottlingException !== void 0)
544
+ return { ThrottlingException: obj.ThrottlingException };
545
+ if (obj.InternalServerException !== void 0)
546
+ return { InternalServerException: obj.InternalServerException };
547
+ if (obj.ConflictException !== void 0)
548
+ return { ConflictException: obj.ConflictException };
549
+ if (obj.DependencyFailedException !== void 0)
550
+ return { DependencyFailedException: obj.DependencyFailedException };
551
+ if (obj.BadGatewayException !== void 0)
552
+ return { BadGatewayException: obj.BadGatewayException };
553
+ if (obj.$unknown !== void 0)
554
+ return { [obj.$unknown[0]]: "UNKNOWN" };
555
+ }, "StartConversationResponseEventStreamFilterSensitiveLog");
556
+ var StartConversationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
557
+ ...obj,
558
+ ...obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }
559
+ }), "StartConversationResponseFilterSensitiveLog");
560
+
561
+ // src/protocols/Aws_restJson1.ts
562
+ var se_DeleteSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
563
+ const b = (0, import_core.requestBuilder)(input, context);
564
+ const headers = {};
565
+ b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}");
566
+ b.p("botId", () => input.botId, "{botId}", false);
567
+ b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
568
+ b.p("localeId", () => input.localeId, "{localeId}", false);
569
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
570
+ let body;
571
+ b.m("DELETE").h(headers).b(body);
572
+ return b.build();
573
+ }, "se_DeleteSessionCommand");
574
+ var se_GetSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
575
+ const b = (0, import_core.requestBuilder)(input, context);
576
+ const headers = {};
577
+ b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}");
578
+ b.p("botId", () => input.botId, "{botId}", false);
579
+ b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
580
+ b.p("localeId", () => input.localeId, "{localeId}", false);
581
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
582
+ let body;
583
+ b.m("GET").h(headers).b(body);
584
+ return b.build();
585
+ }, "se_GetSessionCommand");
586
+ var se_PutSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
587
+ const b = (0, import_core.requestBuilder)(input, context);
588
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
589
+ "content-type": "application/json",
590
+ [_r]: input[_rCT]
591
+ });
592
+ b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}");
593
+ b.p("botId", () => input.botId, "{botId}", false);
594
+ b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
595
+ b.p("localeId", () => input.localeId, "{localeId}", false);
596
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
597
+ let body;
598
+ body = JSON.stringify(
599
+ (0, import_smithy_client.take)(input, {
600
+ messages: (_) => (0, import_smithy_client._json)(_),
601
+ requestAttributes: (_) => (0, import_smithy_client._json)(_),
602
+ sessionState: (_) => se_SessionState(_, context)
603
+ })
604
+ );
605
+ b.m("POST").h(headers).b(body);
606
+ return b.build();
607
+ }, "se_PutSessionCommand");
608
+ var se_RecognizeTextCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const b = (0, import_core.requestBuilder)(input, context);
610
+ const headers = {
611
+ "content-type": "application/json"
612
+ };
613
+ b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text");
614
+ b.p("botId", () => input.botId, "{botId}", false);
615
+ b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
616
+ b.p("localeId", () => input.localeId, "{localeId}", false);
617
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
618
+ let body;
619
+ body = JSON.stringify(
620
+ (0, import_smithy_client.take)(input, {
621
+ requestAttributes: (_) => (0, import_smithy_client._json)(_),
622
+ sessionState: (_) => se_SessionState(_, context),
623
+ text: []
624
+ })
625
+ );
626
+ b.m("POST").h(headers).b(body);
627
+ return b.build();
628
+ }, "se_RecognizeTextCommand");
629
+ var se_RecognizeUtteranceCommand = /* @__PURE__ */ __name(async (input, context) => {
630
+ const b = (0, import_core.requestBuilder)(input, context);
631
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
632
+ "x-amz-content-sha256": "UNSIGNED-PAYLOAD",
633
+ [_ct]: input[_rCTe] || "application/octet-stream",
634
+ [_xalss]: input[_sS],
635
+ [_xalra]: input[_rA],
636
+ [_rct]: input[_rCT]
637
+ });
638
+ b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance");
639
+ b.p("botId", () => input.botId, "{botId}", false);
640
+ b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
641
+ b.p("localeId", () => input.localeId, "{localeId}", false);
642
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
643
+ let body;
644
+ if (input.inputStream !== void 0) {
645
+ body = input.inputStream;
646
+ }
647
+ b.m("POST").h(headers).b(body);
648
+ return b.build();
649
+ }, "se_RecognizeUtteranceCommand");
650
+ var se_StartConversationCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const b = (0, import_core.requestBuilder)(input, context);
652
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
653
+ [_xalcm]: input[_cM]
654
+ });
655
+ b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation");
656
+ b.p("botId", () => input.botId, "{botId}", false);
657
+ b.p("botAliasId", () => input.botAliasId, "{botAliasId}", false);
658
+ b.p("localeId", () => input.localeId, "{localeId}", false);
659
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
660
+ let body;
661
+ if (input.requestEventStream !== void 0) {
662
+ body = se_StartConversationRequestEventStream(input.requestEventStream, context);
663
+ }
664
+ b.m("POST").h(headers).b(body);
665
+ return b.build();
666
+ }, "se_StartConversationCommand");
667
+ var de_DeleteSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
668
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
669
+ return de_DeleteSessionCommandError(output, context);
670
+ }
671
+ const contents = (0, import_smithy_client.map)({
672
+ $metadata: deserializeMetadata(output)
673
+ });
674
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
675
+ const doc = (0, import_smithy_client.take)(data, {
676
+ botAliasId: import_smithy_client.expectString,
677
+ botId: import_smithy_client.expectString,
678
+ localeId: import_smithy_client.expectString,
679
+ sessionId: import_smithy_client.expectString
680
+ });
681
+ Object.assign(contents, doc);
682
+ return contents;
683
+ }, "de_DeleteSessionCommand");
684
+ var de_DeleteSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
685
+ const parsedOutput = {
686
+ ...output,
687
+ body: await parseErrorBody(output.body, context)
688
+ };
689
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
690
+ switch (errorCode) {
691
+ case "AccessDeniedException":
692
+ case "com.amazonaws.lexruntimev2#AccessDeniedException":
693
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
694
+ case "ConflictException":
695
+ case "com.amazonaws.lexruntimev2#ConflictException":
696
+ throw await de_ConflictExceptionRes(parsedOutput, context);
697
+ case "InternalServerException":
698
+ case "com.amazonaws.lexruntimev2#InternalServerException":
699
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
700
+ case "ResourceNotFoundException":
701
+ case "com.amazonaws.lexruntimev2#ResourceNotFoundException":
702
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
703
+ case "ThrottlingException":
704
+ case "com.amazonaws.lexruntimev2#ThrottlingException":
705
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
706
+ case "ValidationException":
707
+ case "com.amazonaws.lexruntimev2#ValidationException":
708
+ throw await de_ValidationExceptionRes(parsedOutput, context);
709
+ default:
710
+ const parsedBody = parsedOutput.body;
711
+ return throwDefaultError({
712
+ output,
713
+ parsedBody,
714
+ errorCode
715
+ });
716
+ }
717
+ }, "de_DeleteSessionCommandError");
718
+ var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
719
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
720
+ return de_GetSessionCommandError(output, context);
721
+ }
722
+ const contents = (0, import_smithy_client.map)({
723
+ $metadata: deserializeMetadata(output)
724
+ });
725
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
726
+ const doc = (0, import_smithy_client.take)(data, {
727
+ interpretations: (_) => de_Interpretations(_, context),
728
+ messages: import_smithy_client._json,
729
+ sessionId: import_smithy_client.expectString,
730
+ sessionState: (_) => de_SessionState(_, context)
731
+ });
732
+ Object.assign(contents, doc);
733
+ return contents;
734
+ }, "de_GetSessionCommand");
735
+ var de_GetSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
736
+ const parsedOutput = {
737
+ ...output,
738
+ body: await parseErrorBody(output.body, context)
739
+ };
740
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
741
+ switch (errorCode) {
742
+ case "AccessDeniedException":
743
+ case "com.amazonaws.lexruntimev2#AccessDeniedException":
744
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
745
+ case "InternalServerException":
746
+ case "com.amazonaws.lexruntimev2#InternalServerException":
747
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
748
+ case "ResourceNotFoundException":
749
+ case "com.amazonaws.lexruntimev2#ResourceNotFoundException":
750
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
751
+ case "ThrottlingException":
752
+ case "com.amazonaws.lexruntimev2#ThrottlingException":
753
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
754
+ case "ValidationException":
755
+ case "com.amazonaws.lexruntimev2#ValidationException":
756
+ throw await de_ValidationExceptionRes(parsedOutput, context);
757
+ default:
758
+ const parsedBody = parsedOutput.body;
759
+ return throwDefaultError({
760
+ output,
761
+ parsedBody,
762
+ errorCode
763
+ });
764
+ }
765
+ }, "de_GetSessionCommandError");
766
+ var de_PutSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
767
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
768
+ return de_PutSessionCommandError(output, context);
769
+ }
770
+ const contents = (0, import_smithy_client.map)({
771
+ $metadata: deserializeMetadata(output),
772
+ [_cT]: [, output.headers[_ct]],
773
+ [_m]: [, output.headers[_xalm]],
774
+ [_sS]: [, output.headers[_xalss]],
775
+ [_rA]: [, output.headers[_xalra]],
776
+ [_sI]: [, output.headers[_xalsi]]
777
+ });
778
+ const data = output.body;
779
+ context.sdkStreamMixin(data);
780
+ contents.audioStream = data;
781
+ return contents;
782
+ }, "de_PutSessionCommand");
783
+ var de_PutSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
784
+ const parsedOutput = {
785
+ ...output,
786
+ body: await parseErrorBody(output.body, context)
787
+ };
788
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
789
+ switch (errorCode) {
790
+ case "AccessDeniedException":
791
+ case "com.amazonaws.lexruntimev2#AccessDeniedException":
792
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
793
+ case "BadGatewayException":
794
+ case "com.amazonaws.lexruntimev2#BadGatewayException":
795
+ throw await de_BadGatewayExceptionRes(parsedOutput, context);
796
+ case "ConflictException":
797
+ case "com.amazonaws.lexruntimev2#ConflictException":
798
+ throw await de_ConflictExceptionRes(parsedOutput, context);
799
+ case "DependencyFailedException":
800
+ case "com.amazonaws.lexruntimev2#DependencyFailedException":
801
+ throw await de_DependencyFailedExceptionRes(parsedOutput, context);
802
+ case "InternalServerException":
803
+ case "com.amazonaws.lexruntimev2#InternalServerException":
804
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
805
+ case "ResourceNotFoundException":
806
+ case "com.amazonaws.lexruntimev2#ResourceNotFoundException":
807
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
808
+ case "ThrottlingException":
809
+ case "com.amazonaws.lexruntimev2#ThrottlingException":
810
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
811
+ case "ValidationException":
812
+ case "com.amazonaws.lexruntimev2#ValidationException":
813
+ throw await de_ValidationExceptionRes(parsedOutput, context);
814
+ default:
815
+ const parsedBody = parsedOutput.body;
816
+ return throwDefaultError({
817
+ output,
818
+ parsedBody,
819
+ errorCode
820
+ });
821
+ }
822
+ }, "de_PutSessionCommandError");
823
+ var de_RecognizeTextCommand = /* @__PURE__ */ __name(async (output, context) => {
824
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
825
+ return de_RecognizeTextCommandError(output, context);
826
+ }
827
+ const contents = (0, import_smithy_client.map)({
828
+ $metadata: deserializeMetadata(output)
829
+ });
830
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
831
+ const doc = (0, import_smithy_client.take)(data, {
832
+ interpretations: (_) => de_Interpretations(_, context),
833
+ messages: import_smithy_client._json,
834
+ recognizedBotMember: import_smithy_client._json,
835
+ requestAttributes: import_smithy_client._json,
836
+ sessionId: import_smithy_client.expectString,
837
+ sessionState: (_) => de_SessionState(_, context)
838
+ });
839
+ Object.assign(contents, doc);
840
+ return contents;
841
+ }, "de_RecognizeTextCommand");
842
+ var de_RecognizeTextCommandError = /* @__PURE__ */ __name(async (output, context) => {
843
+ const parsedOutput = {
844
+ ...output,
845
+ body: await parseErrorBody(output.body, context)
846
+ };
847
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
848
+ switch (errorCode) {
849
+ case "AccessDeniedException":
850
+ case "com.amazonaws.lexruntimev2#AccessDeniedException":
851
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
852
+ case "BadGatewayException":
853
+ case "com.amazonaws.lexruntimev2#BadGatewayException":
854
+ throw await de_BadGatewayExceptionRes(parsedOutput, context);
855
+ case "ConflictException":
856
+ case "com.amazonaws.lexruntimev2#ConflictException":
857
+ throw await de_ConflictExceptionRes(parsedOutput, context);
858
+ case "DependencyFailedException":
859
+ case "com.amazonaws.lexruntimev2#DependencyFailedException":
860
+ throw await de_DependencyFailedExceptionRes(parsedOutput, context);
861
+ case "InternalServerException":
862
+ case "com.amazonaws.lexruntimev2#InternalServerException":
863
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
864
+ case "ResourceNotFoundException":
865
+ case "com.amazonaws.lexruntimev2#ResourceNotFoundException":
866
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
867
+ case "ThrottlingException":
868
+ case "com.amazonaws.lexruntimev2#ThrottlingException":
869
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
870
+ case "ValidationException":
871
+ case "com.amazonaws.lexruntimev2#ValidationException":
872
+ throw await de_ValidationExceptionRes(parsedOutput, context);
873
+ default:
874
+ const parsedBody = parsedOutput.body;
875
+ return throwDefaultError({
876
+ output,
877
+ parsedBody,
878
+ errorCode
879
+ });
880
+ }
881
+ }, "de_RecognizeTextCommandError");
882
+ var de_RecognizeUtteranceCommand = /* @__PURE__ */ __name(async (output, context) => {
883
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
884
+ return de_RecognizeUtteranceCommandError(output, context);
885
+ }
886
+ const contents = (0, import_smithy_client.map)({
887
+ $metadata: deserializeMetadata(output),
888
+ [_iM]: [, output.headers[_xalim]],
889
+ [_cT]: [, output.headers[_ct]],
890
+ [_m]: [, output.headers[_xalm]],
891
+ [_i]: [, output.headers[_xali]],
892
+ [_sS]: [, output.headers[_xalss]],
893
+ [_rA]: [, output.headers[_xalra]],
894
+ [_sI]: [, output.headers[_xalsi]],
895
+ [_iT]: [, output.headers[_xalit]],
896
+ [_rBM]: [, output.headers[_xalrbm]]
897
+ });
898
+ const data = output.body;
899
+ context.sdkStreamMixin(data);
900
+ contents.audioStream = data;
901
+ return contents;
902
+ }, "de_RecognizeUtteranceCommand");
903
+ var de_RecognizeUtteranceCommandError = /* @__PURE__ */ __name(async (output, context) => {
904
+ const parsedOutput = {
905
+ ...output,
906
+ body: await parseErrorBody(output.body, context)
907
+ };
908
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
909
+ switch (errorCode) {
910
+ case "AccessDeniedException":
911
+ case "com.amazonaws.lexruntimev2#AccessDeniedException":
912
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
913
+ case "BadGatewayException":
914
+ case "com.amazonaws.lexruntimev2#BadGatewayException":
915
+ throw await de_BadGatewayExceptionRes(parsedOutput, context);
916
+ case "ConflictException":
917
+ case "com.amazonaws.lexruntimev2#ConflictException":
918
+ throw await de_ConflictExceptionRes(parsedOutput, context);
919
+ case "DependencyFailedException":
920
+ case "com.amazonaws.lexruntimev2#DependencyFailedException":
921
+ throw await de_DependencyFailedExceptionRes(parsedOutput, context);
922
+ case "InternalServerException":
923
+ case "com.amazonaws.lexruntimev2#InternalServerException":
924
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
925
+ case "ResourceNotFoundException":
926
+ case "com.amazonaws.lexruntimev2#ResourceNotFoundException":
927
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
928
+ case "ThrottlingException":
929
+ case "com.amazonaws.lexruntimev2#ThrottlingException":
930
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
931
+ case "ValidationException":
932
+ case "com.amazonaws.lexruntimev2#ValidationException":
933
+ throw await de_ValidationExceptionRes(parsedOutput, context);
934
+ default:
935
+ const parsedBody = parsedOutput.body;
936
+ return throwDefaultError({
937
+ output,
938
+ parsedBody,
939
+ errorCode
940
+ });
941
+ }
942
+ }, "de_RecognizeUtteranceCommandError");
943
+ var de_StartConversationCommand = /* @__PURE__ */ __name(async (output, context) => {
944
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
945
+ return de_StartConversationCommandError(output, context);
946
+ }
947
+ const contents = (0, import_smithy_client.map)({
948
+ $metadata: deserializeMetadata(output)
949
+ });
950
+ const data = output.body;
951
+ contents.responseEventStream = de_StartConversationResponseEventStream(data, context);
952
+ return contents;
953
+ }, "de_StartConversationCommand");
954
+ var de_StartConversationCommandError = /* @__PURE__ */ __name(async (output, context) => {
955
+ const parsedOutput = {
956
+ ...output,
957
+ body: await parseErrorBody(output.body, context)
958
+ };
959
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
960
+ switch (errorCode) {
961
+ case "AccessDeniedException":
962
+ case "com.amazonaws.lexruntimev2#AccessDeniedException":
963
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
964
+ case "InternalServerException":
965
+ case "com.amazonaws.lexruntimev2#InternalServerException":
966
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
967
+ case "ThrottlingException":
968
+ case "com.amazonaws.lexruntimev2#ThrottlingException":
969
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
970
+ case "ValidationException":
971
+ case "com.amazonaws.lexruntimev2#ValidationException":
972
+ throw await de_ValidationExceptionRes(parsedOutput, context);
973
+ default:
974
+ const parsedBody = parsedOutput.body;
975
+ return throwDefaultError({
976
+ output,
977
+ parsedBody,
978
+ errorCode
979
+ });
980
+ }
981
+ }, "de_StartConversationCommandError");
982
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(LexRuntimeV2ServiceException);
983
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
984
+ const contents = (0, import_smithy_client.map)({});
985
+ const data = parsedOutput.body;
986
+ const doc = (0, import_smithy_client.take)(data, {
987
+ message: import_smithy_client.expectString
988
+ });
989
+ Object.assign(contents, doc);
990
+ const exception = new AccessDeniedException({
991
+ $metadata: deserializeMetadata(parsedOutput),
992
+ ...contents
993
+ });
994
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
995
+ }, "de_AccessDeniedExceptionRes");
996
+ var de_BadGatewayExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
997
+ const contents = (0, import_smithy_client.map)({});
998
+ const data = parsedOutput.body;
999
+ const doc = (0, import_smithy_client.take)(data, {
1000
+ message: import_smithy_client.expectString
1001
+ });
1002
+ Object.assign(contents, doc);
1003
+ const exception = new BadGatewayException({
1004
+ $metadata: deserializeMetadata(parsedOutput),
1005
+ ...contents
1006
+ });
1007
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1008
+ }, "de_BadGatewayExceptionRes");
1009
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1010
+ const contents = (0, import_smithy_client.map)({});
1011
+ const data = parsedOutput.body;
1012
+ const doc = (0, import_smithy_client.take)(data, {
1013
+ message: import_smithy_client.expectString
1014
+ });
1015
+ Object.assign(contents, doc);
1016
+ const exception = new ConflictException({
1017
+ $metadata: deserializeMetadata(parsedOutput),
1018
+ ...contents
1019
+ });
1020
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1021
+ }, "de_ConflictExceptionRes");
1022
+ var de_DependencyFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1023
+ const contents = (0, import_smithy_client.map)({});
1024
+ const data = parsedOutput.body;
1025
+ const doc = (0, import_smithy_client.take)(data, {
1026
+ message: import_smithy_client.expectString
1027
+ });
1028
+ Object.assign(contents, doc);
1029
+ const exception = new DependencyFailedException({
1030
+ $metadata: deserializeMetadata(parsedOutput),
1031
+ ...contents
1032
+ });
1033
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1034
+ }, "de_DependencyFailedExceptionRes");
1035
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1036
+ const contents = (0, import_smithy_client.map)({});
1037
+ const data = parsedOutput.body;
1038
+ const doc = (0, import_smithy_client.take)(data, {
1039
+ message: import_smithy_client.expectString
1040
+ });
1041
+ Object.assign(contents, doc);
1042
+ const exception = new InternalServerException({
1043
+ $metadata: deserializeMetadata(parsedOutput),
1044
+ ...contents
1045
+ });
1046
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1047
+ }, "de_InternalServerExceptionRes");
1048
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1049
+ const contents = (0, import_smithy_client.map)({});
1050
+ const data = parsedOutput.body;
1051
+ const doc = (0, import_smithy_client.take)(data, {
1052
+ message: import_smithy_client.expectString
1053
+ });
1054
+ Object.assign(contents, doc);
1055
+ const exception = new ResourceNotFoundException({
1056
+ $metadata: deserializeMetadata(parsedOutput),
1057
+ ...contents
1058
+ });
1059
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1060
+ }, "de_ResourceNotFoundExceptionRes");
1061
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1062
+ const contents = (0, import_smithy_client.map)({});
1063
+ const data = parsedOutput.body;
1064
+ const doc = (0, import_smithy_client.take)(data, {
1065
+ message: import_smithy_client.expectString
1066
+ });
1067
+ Object.assign(contents, doc);
1068
+ const exception = new ThrottlingException({
1069
+ $metadata: deserializeMetadata(parsedOutput),
1070
+ ...contents
1071
+ });
1072
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1073
+ }, "de_ThrottlingExceptionRes");
1074
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1075
+ const contents = (0, import_smithy_client.map)({});
1076
+ const data = parsedOutput.body;
1077
+ const doc = (0, import_smithy_client.take)(data, {
1078
+ message: import_smithy_client.expectString
1079
+ });
1080
+ Object.assign(contents, doc);
1081
+ const exception = new ValidationException({
1082
+ $metadata: deserializeMetadata(parsedOutput),
1083
+ ...contents
1084
+ });
1085
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1086
+ }, "de_ValidationExceptionRes");
1087
+ var se_StartConversationRequestEventStream = /* @__PURE__ */ __name((input, context) => {
1088
+ const eventMarshallingVisitor = /* @__PURE__ */ __name((event) => StartConversationRequestEventStream.visit(event, {
1089
+ ConfigurationEvent: (value) => se_ConfigurationEvent_event(value, context),
1090
+ AudioInputEvent: (value) => se_AudioInputEvent_event(value, context),
1091
+ DTMFInputEvent: (value) => se_DTMFInputEvent_event(value, context),
1092
+ TextInputEvent: (value) => se_TextInputEvent_event(value, context),
1093
+ PlaybackCompletionEvent: (value) => se_PlaybackCompletionEvent_event(value, context),
1094
+ DisconnectionEvent: (value) => se_DisconnectionEvent_event(value, context),
1095
+ _: (value) => value
1096
+ }), "eventMarshallingVisitor");
1097
+ return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
1098
+ }, "se_StartConversationRequestEventStream");
1099
+ var se_AudioInputEvent_event = /* @__PURE__ */ __name((input, context) => {
1100
+ const headers = {
1101
+ ":event-type": { type: "string", value: "AudioInputEvent" },
1102
+ ":message-type": { type: "string", value: "event" },
1103
+ ":content-type": { type: "string", value: "application/json" }
1104
+ };
1105
+ let body = new Uint8Array();
1106
+ body = se_AudioInputEvent(input, context);
1107
+ body = context.utf8Decoder(JSON.stringify(body));
1108
+ return { headers, body };
1109
+ }, "se_AudioInputEvent_event");
1110
+ var se_ConfigurationEvent_event = /* @__PURE__ */ __name((input, context) => {
1111
+ const headers = {
1112
+ ":event-type": { type: "string", value: "ConfigurationEvent" },
1113
+ ":message-type": { type: "string", value: "event" },
1114
+ ":content-type": { type: "string", value: "application/json" }
1115
+ };
1116
+ let body = new Uint8Array();
1117
+ body = se_ConfigurationEvent(input, context);
1118
+ body = context.utf8Decoder(JSON.stringify(body));
1119
+ return { headers, body };
1120
+ }, "se_ConfigurationEvent_event");
1121
+ var se_DisconnectionEvent_event = /* @__PURE__ */ __name((input, context) => {
1122
+ const headers = {
1123
+ ":event-type": { type: "string", value: "DisconnectionEvent" },
1124
+ ":message-type": { type: "string", value: "event" },
1125
+ ":content-type": { type: "string", value: "application/json" }
1126
+ };
1127
+ let body = new Uint8Array();
1128
+ body = (0, import_smithy_client._json)(input);
1129
+ body = context.utf8Decoder(JSON.stringify(body));
1130
+ return { headers, body };
1131
+ }, "se_DisconnectionEvent_event");
1132
+ var se_DTMFInputEvent_event = /* @__PURE__ */ __name((input, context) => {
1133
+ const headers = {
1134
+ ":event-type": { type: "string", value: "DTMFInputEvent" },
1135
+ ":message-type": { type: "string", value: "event" },
1136
+ ":content-type": { type: "string", value: "application/json" }
1137
+ };
1138
+ let body = new Uint8Array();
1139
+ body = (0, import_smithy_client._json)(input);
1140
+ body = context.utf8Decoder(JSON.stringify(body));
1141
+ return { headers, body };
1142
+ }, "se_DTMFInputEvent_event");
1143
+ var se_PlaybackCompletionEvent_event = /* @__PURE__ */ __name((input, context) => {
1144
+ const headers = {
1145
+ ":event-type": { type: "string", value: "PlaybackCompletionEvent" },
1146
+ ":message-type": { type: "string", value: "event" },
1147
+ ":content-type": { type: "string", value: "application/json" }
1148
+ };
1149
+ let body = new Uint8Array();
1150
+ body = (0, import_smithy_client._json)(input);
1151
+ body = context.utf8Decoder(JSON.stringify(body));
1152
+ return { headers, body };
1153
+ }, "se_PlaybackCompletionEvent_event");
1154
+ var se_TextInputEvent_event = /* @__PURE__ */ __name((input, context) => {
1155
+ const headers = {
1156
+ ":event-type": { type: "string", value: "TextInputEvent" },
1157
+ ":message-type": { type: "string", value: "event" },
1158
+ ":content-type": { type: "string", value: "application/json" }
1159
+ };
1160
+ let body = new Uint8Array();
1161
+ body = (0, import_smithy_client._json)(input);
1162
+ body = context.utf8Decoder(JSON.stringify(body));
1163
+ return { headers, body };
1164
+ }, "se_TextInputEvent_event");
1165
+ var de_StartConversationResponseEventStream = /* @__PURE__ */ __name((output, context) => {
1166
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
1167
+ if (event["PlaybackInterruptionEvent"] != null) {
1168
+ return {
1169
+ PlaybackInterruptionEvent: await de_PlaybackInterruptionEvent_event(
1170
+ event["PlaybackInterruptionEvent"],
1171
+ context
1172
+ )
1173
+ };
1174
+ }
1175
+ if (event["TranscriptEvent"] != null) {
1176
+ return {
1177
+ TranscriptEvent: await de_TranscriptEvent_event(event["TranscriptEvent"], context)
1178
+ };
1179
+ }
1180
+ if (event["IntentResultEvent"] != null) {
1181
+ return {
1182
+ IntentResultEvent: await de_IntentResultEvent_event(event["IntentResultEvent"], context)
1183
+ };
1184
+ }
1185
+ if (event["TextResponseEvent"] != null) {
1186
+ return {
1187
+ TextResponseEvent: await de_TextResponseEvent_event(event["TextResponseEvent"], context)
1188
+ };
1189
+ }
1190
+ if (event["AudioResponseEvent"] != null) {
1191
+ return {
1192
+ AudioResponseEvent: await de_AudioResponseEvent_event(event["AudioResponseEvent"], context)
1193
+ };
1194
+ }
1195
+ if (event["HeartbeatEvent"] != null) {
1196
+ return {
1197
+ HeartbeatEvent: await de_HeartbeatEvent_event(event["HeartbeatEvent"], context)
1198
+ };
1199
+ }
1200
+ if (event["AccessDeniedException"] != null) {
1201
+ return {
1202
+ AccessDeniedException: await de_AccessDeniedException_event(event["AccessDeniedException"], context)
1203
+ };
1204
+ }
1205
+ if (event["ResourceNotFoundException"] != null) {
1206
+ return {
1207
+ ResourceNotFoundException: await de_ResourceNotFoundException_event(
1208
+ event["ResourceNotFoundException"],
1209
+ context
1210
+ )
1211
+ };
1212
+ }
1213
+ if (event["ValidationException"] != null) {
1214
+ return {
1215
+ ValidationException: await de_ValidationException_event(event["ValidationException"], context)
1216
+ };
1217
+ }
1218
+ if (event["ThrottlingException"] != null) {
1219
+ return {
1220
+ ThrottlingException: await de_ThrottlingException_event(event["ThrottlingException"], context)
1221
+ };
1222
+ }
1223
+ if (event["InternalServerException"] != null) {
1224
+ return {
1225
+ InternalServerException: await de_InternalServerException_event(event["InternalServerException"], context)
1226
+ };
1227
+ }
1228
+ if (event["ConflictException"] != null) {
1229
+ return {
1230
+ ConflictException: await de_ConflictException_event(event["ConflictException"], context)
1231
+ };
1232
+ }
1233
+ if (event["DependencyFailedException"] != null) {
1234
+ return {
1235
+ DependencyFailedException: await de_DependencyFailedException_event(
1236
+ event["DependencyFailedException"],
1237
+ context
1238
+ )
1239
+ };
1240
+ }
1241
+ if (event["BadGatewayException"] != null) {
1242
+ return {
1243
+ BadGatewayException: await de_BadGatewayException_event(event["BadGatewayException"], context)
1244
+ };
1245
+ }
1246
+ return { $unknown: output };
1247
+ });
1248
+ }, "de_StartConversationResponseEventStream");
1249
+ var de_AccessDeniedException_event = /* @__PURE__ */ __name(async (output, context) => {
1250
+ const parsedOutput = {
1251
+ ...output,
1252
+ body: await parseBody(output.body, context)
1253
+ };
1254
+ return de_AccessDeniedExceptionRes(parsedOutput, context);
1255
+ }, "de_AccessDeniedException_event");
1256
+ var de_AudioResponseEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1257
+ const contents = {};
1258
+ const data = await parseBody(output.body, context);
1259
+ Object.assign(contents, de_AudioResponseEvent(data, context));
1260
+ return contents;
1261
+ }, "de_AudioResponseEvent_event");
1262
+ var de_BadGatewayException_event = /* @__PURE__ */ __name(async (output, context) => {
1263
+ const parsedOutput = {
1264
+ ...output,
1265
+ body: await parseBody(output.body, context)
1266
+ };
1267
+ return de_BadGatewayExceptionRes(parsedOutput, context);
1268
+ }, "de_BadGatewayException_event");
1269
+ var de_ConflictException_event = /* @__PURE__ */ __name(async (output, context) => {
1270
+ const parsedOutput = {
1271
+ ...output,
1272
+ body: await parseBody(output.body, context)
1273
+ };
1274
+ return de_ConflictExceptionRes(parsedOutput, context);
1275
+ }, "de_ConflictException_event");
1276
+ var de_DependencyFailedException_event = /* @__PURE__ */ __name(async (output, context) => {
1277
+ const parsedOutput = {
1278
+ ...output,
1279
+ body: await parseBody(output.body, context)
1280
+ };
1281
+ return de_DependencyFailedExceptionRes(parsedOutput, context);
1282
+ }, "de_DependencyFailedException_event");
1283
+ var de_HeartbeatEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1284
+ const contents = {};
1285
+ const data = await parseBody(output.body, context);
1286
+ Object.assign(contents, (0, import_smithy_client._json)(data));
1287
+ return contents;
1288
+ }, "de_HeartbeatEvent_event");
1289
+ var de_IntentResultEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1290
+ const contents = {};
1291
+ const data = await parseBody(output.body, context);
1292
+ Object.assign(contents, de_IntentResultEvent(data, context));
1293
+ return contents;
1294
+ }, "de_IntentResultEvent_event");
1295
+ var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, context) => {
1296
+ const parsedOutput = {
1297
+ ...output,
1298
+ body: await parseBody(output.body, context)
1299
+ };
1300
+ return de_InternalServerExceptionRes(parsedOutput, context);
1301
+ }, "de_InternalServerException_event");
1302
+ var de_PlaybackInterruptionEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1303
+ const contents = {};
1304
+ const data = await parseBody(output.body, context);
1305
+ Object.assign(contents, (0, import_smithy_client._json)(data));
1306
+ return contents;
1307
+ }, "de_PlaybackInterruptionEvent_event");
1308
+ var de_ResourceNotFoundException_event = /* @__PURE__ */ __name(async (output, context) => {
1309
+ const parsedOutput = {
1310
+ ...output,
1311
+ body: await parseBody(output.body, context)
1312
+ };
1313
+ return de_ResourceNotFoundExceptionRes(parsedOutput, context);
1314
+ }, "de_ResourceNotFoundException_event");
1315
+ var de_TextResponseEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1316
+ const contents = {};
1317
+ const data = await parseBody(output.body, context);
1318
+ Object.assign(contents, (0, import_smithy_client._json)(data));
1319
+ return contents;
1320
+ }, "de_TextResponseEvent_event");
1321
+ var de_ThrottlingException_event = /* @__PURE__ */ __name(async (output, context) => {
1322
+ const parsedOutput = {
1323
+ ...output,
1324
+ body: await parseBody(output.body, context)
1325
+ };
1326
+ return de_ThrottlingExceptionRes(parsedOutput, context);
1327
+ }, "de_ThrottlingException_event");
1328
+ var de_TranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1329
+ const contents = {};
1330
+ const data = await parseBody(output.body, context);
1331
+ Object.assign(contents, (0, import_smithy_client._json)(data));
1332
+ return contents;
1333
+ }, "de_TranscriptEvent_event");
1334
+ var de_ValidationException_event = /* @__PURE__ */ __name(async (output, context) => {
1335
+ const parsedOutput = {
1336
+ ...output,
1337
+ body: await parseBody(output.body, context)
1338
+ };
1339
+ return de_ValidationExceptionRes(parsedOutput, context);
1340
+ }, "de_ValidationException_event");
1341
+ var se_AudioInputEvent = /* @__PURE__ */ __name((input, context) => {
1342
+ return (0, import_smithy_client.take)(input, {
1343
+ audioChunk: context.base64Encoder,
1344
+ clientTimestampMillis: [],
1345
+ contentType: [],
1346
+ eventId: []
1347
+ });
1348
+ }, "se_AudioInputEvent");
1349
+ var se_ConfigurationEvent = /* @__PURE__ */ __name((input, context) => {
1350
+ return (0, import_smithy_client.take)(input, {
1351
+ clientTimestampMillis: [],
1352
+ disablePlayback: [],
1353
+ eventId: [],
1354
+ requestAttributes: import_smithy_client._json,
1355
+ responseContentType: [],
1356
+ sessionState: (_) => se_SessionState(_, context),
1357
+ welcomeMessages: import_smithy_client._json
1358
+ });
1359
+ }, "se_ConfigurationEvent");
1360
+ var se_DialogAction = /* @__PURE__ */ __name((input, context) => {
1361
+ return (0, import_smithy_client.take)(input, {
1362
+ slotElicitationStyle: [],
1363
+ slotToElicit: [],
1364
+ subSlotToElicit: (_) => se_ElicitSubSlot(_, context),
1365
+ type: []
1366
+ });
1367
+ }, "se_DialogAction");
1368
+ var se_ElicitSubSlot = /* @__PURE__ */ __name((input, context) => {
1369
+ return (0, import_smithy_client.take)(input, {
1370
+ name: [],
1371
+ subSlotToElicit: (_) => se_ElicitSubSlot(_, context)
1372
+ });
1373
+ }, "se_ElicitSubSlot");
1374
+ var se_Intent = /* @__PURE__ */ __name((input, context) => {
1375
+ return (0, import_smithy_client.take)(input, {
1376
+ confirmationState: [],
1377
+ name: [],
1378
+ slots: (_) => se_Slots(_, context),
1379
+ state: []
1380
+ });
1381
+ }, "se_Intent");
1382
+ var se_RuntimeHintDetails = /* @__PURE__ */ __name((input, context) => {
1383
+ return (0, import_smithy_client.take)(input, {
1384
+ runtimeHintValues: import_smithy_client._json,
1385
+ subSlotHints: (_) => se_SlotHintsSlotMap(_, context)
1386
+ });
1387
+ }, "se_RuntimeHintDetails");
1388
+ var se_RuntimeHints = /* @__PURE__ */ __name((input, context) => {
1389
+ return (0, import_smithy_client.take)(input, {
1390
+ slotHints: (_) => se_SlotHintsIntentMap(_, context)
1391
+ });
1392
+ }, "se_RuntimeHints");
1393
+ var se_SessionState = /* @__PURE__ */ __name((input, context) => {
1394
+ return (0, import_smithy_client.take)(input, {
1395
+ activeContexts: import_smithy_client._json,
1396
+ dialogAction: (_) => se_DialogAction(_, context),
1397
+ intent: (_) => se_Intent(_, context),
1398
+ originatingRequestId: [],
1399
+ runtimeHints: (_) => se_RuntimeHints(_, context),
1400
+ sessionAttributes: import_smithy_client._json
1401
+ });
1402
+ }, "se_SessionState");
1403
+ var se_Slot = /* @__PURE__ */ __name((input, context) => {
1404
+ return (0, import_smithy_client.take)(input, {
1405
+ shape: [],
1406
+ subSlots: (_) => se_Slots(_, context),
1407
+ value: import_smithy_client._json,
1408
+ values: (_) => se_Values(_, context)
1409
+ });
1410
+ }, "se_Slot");
1411
+ var se_SlotHintsIntentMap = /* @__PURE__ */ __name((input, context) => {
1412
+ return Object.entries(input).reduce((acc, [key, value]) => {
1413
+ if (value === null) {
1414
+ return acc;
1415
+ }
1416
+ acc[key] = se_SlotHintsSlotMap(value, context);
1417
+ return acc;
1418
+ }, {});
1419
+ }, "se_SlotHintsIntentMap");
1420
+ var se_SlotHintsSlotMap = /* @__PURE__ */ __name((input, context) => {
1421
+ return Object.entries(input).reduce((acc, [key, value]) => {
1422
+ if (value === null) {
1423
+ return acc;
1424
+ }
1425
+ acc[key] = se_RuntimeHintDetails(value, context);
1426
+ return acc;
1427
+ }, {});
1428
+ }, "se_SlotHintsSlotMap");
1429
+ var se_Slots = /* @__PURE__ */ __name((input, context) => {
1430
+ return Object.entries(input).reduce((acc, [key, value]) => {
1431
+ if (value === null) {
1432
+ return acc;
1433
+ }
1434
+ acc[key] = se_Slot(value, context);
1435
+ return acc;
1436
+ }, {});
1437
+ }, "se_Slots");
1438
+ var se_Values = /* @__PURE__ */ __name((input, context) => {
1439
+ return input.filter((e) => e != null).map((entry) => {
1440
+ return se_Slot(entry, context);
1441
+ });
1442
+ }, "se_Values");
1443
+ var de_AudioResponseEvent = /* @__PURE__ */ __name((output, context) => {
1444
+ return (0, import_smithy_client.take)(output, {
1445
+ audioChunk: context.base64Decoder,
1446
+ contentType: import_smithy_client.expectString,
1447
+ eventId: import_smithy_client.expectString
1448
+ });
1449
+ }, "de_AudioResponseEvent");
1450
+ var de_ConfidenceScore = /* @__PURE__ */ __name((output, context) => {
1451
+ return (0, import_smithy_client.take)(output, {
1452
+ score: import_smithy_client.limitedParseDouble
1453
+ });
1454
+ }, "de_ConfidenceScore");
1455
+ var de_DialogAction = /* @__PURE__ */ __name((output, context) => {
1456
+ return (0, import_smithy_client.take)(output, {
1457
+ slotElicitationStyle: import_smithy_client.expectString,
1458
+ slotToElicit: import_smithy_client.expectString,
1459
+ subSlotToElicit: (_) => de_ElicitSubSlot(_, context),
1460
+ type: import_smithy_client.expectString
1461
+ });
1462
+ }, "de_DialogAction");
1463
+ var de_ElicitSubSlot = /* @__PURE__ */ __name((output, context) => {
1464
+ return (0, import_smithy_client.take)(output, {
1465
+ name: import_smithy_client.expectString,
1466
+ subSlotToElicit: (_) => de_ElicitSubSlot(_, context)
1467
+ });
1468
+ }, "de_ElicitSubSlot");
1469
+ var de_Intent = /* @__PURE__ */ __name((output, context) => {
1470
+ return (0, import_smithy_client.take)(output, {
1471
+ confirmationState: import_smithy_client.expectString,
1472
+ name: import_smithy_client.expectString,
1473
+ slots: (_) => de_Slots(_, context),
1474
+ state: import_smithy_client.expectString
1475
+ });
1476
+ }, "de_Intent");
1477
+ var de_IntentResultEvent = /* @__PURE__ */ __name((output, context) => {
1478
+ return (0, import_smithy_client.take)(output, {
1479
+ eventId: import_smithy_client.expectString,
1480
+ inputMode: import_smithy_client.expectString,
1481
+ interpretations: (_) => de_Interpretations(_, context),
1482
+ recognizedBotMember: import_smithy_client._json,
1483
+ requestAttributes: import_smithy_client._json,
1484
+ sessionId: import_smithy_client.expectString,
1485
+ sessionState: (_) => de_SessionState(_, context)
1486
+ });
1487
+ }, "de_IntentResultEvent");
1488
+ var de_Interpretation = /* @__PURE__ */ __name((output, context) => {
1489
+ return (0, import_smithy_client.take)(output, {
1490
+ intent: (_) => de_Intent(_, context),
1491
+ interpretationSource: import_smithy_client.expectString,
1492
+ nluConfidence: (_) => de_ConfidenceScore(_, context),
1493
+ sentimentResponse: (_) => de_SentimentResponse(_, context)
1494
+ });
1495
+ }, "de_Interpretation");
1496
+ var de_Interpretations = /* @__PURE__ */ __name((output, context) => {
1497
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1498
+ return de_Interpretation(entry, context);
1499
+ });
1500
+ return retVal;
1501
+ }, "de_Interpretations");
1502
+ var de_RuntimeHintDetails = /* @__PURE__ */ __name((output, context) => {
1503
+ return (0, import_smithy_client.take)(output, {
1504
+ runtimeHintValues: import_smithy_client._json,
1505
+ subSlotHints: (_) => de_SlotHintsSlotMap(_, context)
1506
+ });
1507
+ }, "de_RuntimeHintDetails");
1508
+ var de_RuntimeHints = /* @__PURE__ */ __name((output, context) => {
1509
+ return (0, import_smithy_client.take)(output, {
1510
+ slotHints: (_) => de_SlotHintsIntentMap(_, context)
1511
+ });
1512
+ }, "de_RuntimeHints");
1513
+ var de_SentimentResponse = /* @__PURE__ */ __name((output, context) => {
1514
+ return (0, import_smithy_client.take)(output, {
1515
+ sentiment: import_smithy_client.expectString,
1516
+ sentimentScore: (_) => de_SentimentScore(_, context)
1517
+ });
1518
+ }, "de_SentimentResponse");
1519
+ var de_SentimentScore = /* @__PURE__ */ __name((output, context) => {
1520
+ return (0, import_smithy_client.take)(output, {
1521
+ mixed: import_smithy_client.limitedParseDouble,
1522
+ negative: import_smithy_client.limitedParseDouble,
1523
+ neutral: import_smithy_client.limitedParseDouble,
1524
+ positive: import_smithy_client.limitedParseDouble
1525
+ });
1526
+ }, "de_SentimentScore");
1527
+ var de_SessionState = /* @__PURE__ */ __name((output, context) => {
1528
+ return (0, import_smithy_client.take)(output, {
1529
+ activeContexts: import_smithy_client._json,
1530
+ dialogAction: (_) => de_DialogAction(_, context),
1531
+ intent: (_) => de_Intent(_, context),
1532
+ originatingRequestId: import_smithy_client.expectString,
1533
+ runtimeHints: (_) => de_RuntimeHints(_, context),
1534
+ sessionAttributes: import_smithy_client._json
1535
+ });
1536
+ }, "de_SessionState");
1537
+ var de_Slot = /* @__PURE__ */ __name((output, context) => {
1538
+ return (0, import_smithy_client.take)(output, {
1539
+ shape: import_smithy_client.expectString,
1540
+ subSlots: (_) => de_Slots(_, context),
1541
+ value: import_smithy_client._json,
1542
+ values: (_) => de_Values(_, context)
1543
+ });
1544
+ }, "de_Slot");
1545
+ var de_SlotHintsIntentMap = /* @__PURE__ */ __name((output, context) => {
1546
+ return Object.entries(output).reduce(
1547
+ (acc, [key, value]) => {
1548
+ if (value === null) {
1549
+ return acc;
1550
+ }
1551
+ acc[key] = de_SlotHintsSlotMap(value, context);
1552
+ return acc;
1553
+ },
1554
+ {}
1555
+ );
1556
+ }, "de_SlotHintsIntentMap");
1557
+ var de_SlotHintsSlotMap = /* @__PURE__ */ __name((output, context) => {
1558
+ return Object.entries(output).reduce((acc, [key, value]) => {
1559
+ if (value === null) {
1560
+ return acc;
1561
+ }
1562
+ acc[key] = de_RuntimeHintDetails(value, context);
1563
+ return acc;
1564
+ }, {});
1565
+ }, "de_SlotHintsSlotMap");
1566
+ var de_Slots = /* @__PURE__ */ __name((output, context) => {
1567
+ return Object.entries(output).reduce((acc, [key, value]) => {
1568
+ if (value === null) {
1569
+ return acc;
1570
+ }
1571
+ acc[key] = de_Slot(value, context);
1572
+ return acc;
1573
+ }, {});
1574
+ }, "de_Slots");
1575
+ var de_Values = /* @__PURE__ */ __name((output, context) => {
1576
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1577
+ return de_Slot(entry, context);
1578
+ });
1579
+ return retVal;
1580
+ }, "de_Values");
1581
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1582
+ httpStatusCode: output.statusCode,
1583
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1584
+ extendedRequestId: output.headers["x-amz-id-2"],
1585
+ cfId: output.headers["x-amz-cf-id"]
1586
+ }), "deserializeMetadata");
1587
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1588
+ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
1589
+ var _cM = "conversationMode";
1590
+ var _cT = "contentType";
1591
+ var _ct = "content-type";
1592
+ var _i = "interpretations";
1593
+ var _iM = "inputMode";
1594
+ var _iT = "inputTranscript";
1595
+ var _m = "messages";
1596
+ var _r = "responsecontenttype";
1597
+ var _rA = "requestAttributes";
1598
+ var _rBM = "recognizedBotMember";
1599
+ var _rCT = "responseContentType";
1600
+ var _rCTe = "requestContentType";
1601
+ var _rct = "response-content-type";
1602
+ var _sI = "sessionId";
1603
+ var _sS = "sessionState";
1604
+ var _xalcm = "x-amz-lex-conversation-mode";
1605
+ var _xali = "x-amz-lex-interpretations";
1606
+ var _xalim = "x-amz-lex-input-mode";
1607
+ var _xalit = "x-amz-lex-input-transcript";
1608
+ var _xalm = "x-amz-lex-messages";
1609
+ var _xalra = "x-amz-lex-request-attributes";
1610
+ var _xalrbm = "x-amz-lex-recognized-bot-member";
1611
+ var _xalsi = "x-amz-lex-session-id";
1612
+ var _xalss = "x-amz-lex-session-state";
1613
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1614
+ if (encoded.length) {
1615
+ return JSON.parse(encoded);
1616
+ }
1617
+ return {};
1618
+ }), "parseBody");
1619
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1620
+ const value = await parseBody(errorBody, context);
1621
+ value.message = value.message ?? value.Message;
1622
+ return value;
1623
+ }, "parseErrorBody");
1624
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1625
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1626
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1627
+ let cleanValue = rawValue;
1628
+ if (typeof cleanValue === "number") {
1629
+ cleanValue = cleanValue.toString();
1630
+ }
1631
+ if (cleanValue.indexOf(",") >= 0) {
1632
+ cleanValue = cleanValue.split(",")[0];
1633
+ }
1634
+ if (cleanValue.indexOf(":") >= 0) {
1635
+ cleanValue = cleanValue.split(":")[0];
1636
+ }
1637
+ if (cleanValue.indexOf("#") >= 0) {
1638
+ cleanValue = cleanValue.split("#")[1];
1639
+ }
1640
+ return cleanValue;
1641
+ }, "sanitizeErrorCode");
1642
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1643
+ if (headerKey !== void 0) {
1644
+ return sanitizeErrorCode(output.headers[headerKey]);
1645
+ }
1646
+ if (data.code !== void 0) {
1647
+ return sanitizeErrorCode(data.code);
1648
+ }
1649
+ if (data["__type"] !== void 0) {
1650
+ return sanitizeErrorCode(data["__type"]);
1651
+ }
1652
+ }, "loadRestJsonErrorCode");
1653
+
1654
+ // src/commands/DeleteSessionCommand.ts
1655
+ var _DeleteSessionCommand = class _DeleteSessionCommand extends import_smithy_client.Command.classBuilder().ep({
1656
+ ...commonParams
1657
+ }).m(function(Command, cs, config, o) {
1658
+ return [
1659
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1660
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1661
+ ];
1662
+ }).s("AWSDeepSenseRunTimeServiceApi2_0", "DeleteSession", {}).n("LexRuntimeV2Client", "DeleteSessionCommand").f(void 0, void 0).ser(se_DeleteSessionCommand).de(de_DeleteSessionCommand).build() {
1663
+ };
1664
+ __name(_DeleteSessionCommand, "DeleteSessionCommand");
1665
+ var DeleteSessionCommand = _DeleteSessionCommand;
1666
+
1667
+ // src/commands/GetSessionCommand.ts
1668
+
1669
+
1670
+
1671
+
1672
+ var _GetSessionCommand = class _GetSessionCommand extends import_smithy_client.Command.classBuilder().ep({
1673
+ ...commonParams
1674
+ }).m(function(Command, cs, config, o) {
1675
+ return [
1676
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1677
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1678
+ ];
1679
+ }).s("AWSDeepSenseRunTimeServiceApi2_0", "GetSession", {}).n("LexRuntimeV2Client", "GetSessionCommand").f(void 0, GetSessionResponseFilterSensitiveLog).ser(se_GetSessionCommand).de(de_GetSessionCommand).build() {
1680
+ };
1681
+ __name(_GetSessionCommand, "GetSessionCommand");
1682
+ var GetSessionCommand = _GetSessionCommand;
1683
+
1684
+ // src/commands/PutSessionCommand.ts
1685
+
1686
+
1687
+
1688
+
1689
+ var _PutSessionCommand = class _PutSessionCommand extends import_smithy_client.Command.classBuilder().ep({
1690
+ ...commonParams
1691
+ }).m(function(Command, cs, config, o) {
1692
+ return [
1693
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1694
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1695
+ ];
1696
+ }).s("AWSDeepSenseRunTimeServiceApi2_0", "PutSession", {}).n("LexRuntimeV2Client", "PutSessionCommand").f(PutSessionRequestFilterSensitiveLog, PutSessionResponseFilterSensitiveLog).ser(se_PutSessionCommand).de(de_PutSessionCommand).build() {
1697
+ };
1698
+ __name(_PutSessionCommand, "PutSessionCommand");
1699
+ var PutSessionCommand = _PutSessionCommand;
1700
+
1701
+ // src/commands/RecognizeTextCommand.ts
1702
+
1703
+
1704
+
1705
+
1706
+ var _RecognizeTextCommand = class _RecognizeTextCommand extends import_smithy_client.Command.classBuilder().ep({
1707
+ ...commonParams
1708
+ }).m(function(Command, cs, config, o) {
1709
+ return [
1710
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1711
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1712
+ ];
1713
+ }).s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeText", {}).n("LexRuntimeV2Client", "RecognizeTextCommand").f(RecognizeTextRequestFilterSensitiveLog, RecognizeTextResponseFilterSensitiveLog).ser(se_RecognizeTextCommand).de(de_RecognizeTextCommand).build() {
1714
+ };
1715
+ __name(_RecognizeTextCommand, "RecognizeTextCommand");
1716
+ var RecognizeTextCommand = _RecognizeTextCommand;
1717
+
1718
+ // src/commands/RecognizeUtteranceCommand.ts
1719
+
1720
+
1721
+
1722
+
1723
+ var _RecognizeUtteranceCommand = class _RecognizeUtteranceCommand extends import_smithy_client.Command.classBuilder().ep({
1724
+ ...commonParams
1725
+ }).m(function(Command, cs, config, o) {
1726
+ return [
1727
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1728
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1729
+ ];
1730
+ }).s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeUtterance", {}).n("LexRuntimeV2Client", "RecognizeUtteranceCommand").f(RecognizeUtteranceRequestFilterSensitiveLog, RecognizeUtteranceResponseFilterSensitiveLog).ser(se_RecognizeUtteranceCommand).de(de_RecognizeUtteranceCommand).build() {
1731
+ };
1732
+ __name(_RecognizeUtteranceCommand, "RecognizeUtteranceCommand");
1733
+ var RecognizeUtteranceCommand = _RecognizeUtteranceCommand;
1734
+
1735
+ // src/commands/StartConversationCommand.ts
1736
+
1737
+
1738
+
1739
+
1740
+
1741
+ var _StartConversationCommand = class _StartConversationCommand extends import_smithy_client.Command.classBuilder().ep({
1742
+ ...commonParams
1743
+ }).m(function(Command, cs, config, o) {
1744
+ return [
1745
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1746
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1747
+ (0, import_middleware_eventstream.getEventStreamPlugin)(config)
1748
+ ];
1749
+ }).s("AWSDeepSenseRunTimeServiceApi2_0", "StartConversation", {
1750
+ /**
1751
+ * @internal
1752
+ */
1753
+ eventStream: {
1754
+ input: true,
1755
+ output: true
1756
+ }
1757
+ }).n("LexRuntimeV2Client", "StartConversationCommand").f(StartConversationRequestFilterSensitiveLog, StartConversationResponseFilterSensitiveLog).ser(se_StartConversationCommand).de(de_StartConversationCommand).build() {
1758
+ };
1759
+ __name(_StartConversationCommand, "StartConversationCommand");
1760
+ var StartConversationCommand = _StartConversationCommand;
1761
+
1762
+ // src/LexRuntimeV2.ts
1763
+ var commands = {
1764
+ DeleteSessionCommand,
1765
+ GetSessionCommand,
1766
+ PutSessionCommand,
1767
+ RecognizeTextCommand,
1768
+ RecognizeUtteranceCommand,
1769
+ StartConversationCommand
1770
+ };
1771
+ var _LexRuntimeV2 = class _LexRuntimeV2 extends LexRuntimeV2Client {
1772
+ };
1773
+ __name(_LexRuntimeV2, "LexRuntimeV2");
1774
+ var LexRuntimeV2 = _LexRuntimeV2;
1775
+ (0, import_smithy_client.createAggregatedClient)(commands, LexRuntimeV2);
1776
+
1777
+ // src/index.ts
1778
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1779
+ // Annotate the CommonJS export names for ESM import in node:
1780
+ 0 && (module.exports = {
1781
+ AccessDeniedException,
1782
+ ActiveContextFilterSensitiveLog,
1783
+ BadGatewayException,
1784
+ ConfigurationEventFilterSensitiveLog,
1785
+ ConfirmationState,
1786
+ ConflictException,
1787
+ ConversationMode,
1788
+ DTMFInputEventFilterSensitiveLog,
1789
+ DeleteSessionCommand,
1790
+ DependencyFailedException,
1791
+ DialogActionType,
1792
+ GetSessionCommand,
1793
+ GetSessionResponseFilterSensitiveLog,
1794
+ InputMode,
1795
+ IntentResultEventFilterSensitiveLog,
1796
+ IntentState,
1797
+ InternalServerException,
1798
+ InterpretationSource,
1799
+ LexRuntimeV2,
1800
+ LexRuntimeV2Client,
1801
+ LexRuntimeV2ServiceException,
1802
+ MessageContentType,
1803
+ MessageFilterSensitiveLog,
1804
+ PlaybackInterruptionReason,
1805
+ PutSessionCommand,
1806
+ PutSessionRequestFilterSensitiveLog,
1807
+ PutSessionResponseFilterSensitiveLog,
1808
+ RecognizeTextCommand,
1809
+ RecognizeTextRequestFilterSensitiveLog,
1810
+ RecognizeTextResponseFilterSensitiveLog,
1811
+ RecognizeUtteranceCommand,
1812
+ RecognizeUtteranceRequestFilterSensitiveLog,
1813
+ RecognizeUtteranceResponseFilterSensitiveLog,
1814
+ ResourceNotFoundException,
1815
+ SentimentType,
1816
+ SessionStateFilterSensitiveLog,
1817
+ Shape,
1818
+ StartConversationCommand,
1819
+ StartConversationRequestEventStream,
1820
+ StartConversationRequestEventStreamFilterSensitiveLog,
1821
+ StartConversationRequestFilterSensitiveLog,
1822
+ StartConversationResponseEventStream,
1823
+ StartConversationResponseEventStreamFilterSensitiveLog,
1824
+ StartConversationResponseFilterSensitiveLog,
1825
+ StyleType,
1826
+ TextInputEventFilterSensitiveLog,
1827
+ TextResponseEventFilterSensitiveLog,
1828
+ ThrottlingException,
1829
+ ValidationException,
1830
+ __Client
1831
+ });