@aws-sdk/client-lex-runtime-v2 3.758.0 → 3.774.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 +82 -116
- package/package.json +7 -7
package/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
25
|
ActiveContextFilterSensitiveLog: () => ActiveContextFilterSensitiveLog,
|
|
26
26
|
BadGatewayException: () => BadGatewayException,
|
|
@@ -72,7 +72,7 @@ __export(src_exports, {
|
|
|
72
72
|
ValidationException: () => ValidationException,
|
|
73
73
|
__Client: () => import_smithy_client.Client
|
|
74
74
|
});
|
|
75
|
-
module.exports = __toCommonJS(
|
|
75
|
+
module.exports = __toCommonJS(index_exports);
|
|
76
76
|
|
|
77
77
|
// src/LexRuntimeV2Client.ts
|
|
78
78
|
var import_middleware_eventstream = require("@aws-sdk/middleware-eventstream");
|
|
@@ -203,9 +203,9 @@ var LexRuntimeV2Client = class extends import_smithy_client.Client {
|
|
|
203
203
|
this.middlewareStack.use(
|
|
204
204
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
205
205
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultLexRuntimeV2HttpAuthSchemeParametersProvider,
|
|
206
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
206
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
207
207
|
"aws.auth#sigv4": config.credentials
|
|
208
|
-
})
|
|
208
|
+
}), "identityProviderConfigProvider")
|
|
209
209
|
})
|
|
210
210
|
);
|
|
211
211
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -458,18 +458,13 @@ var PlaybackInterruptionReason = {
|
|
|
458
458
|
var StartConversationRequestEventStream;
|
|
459
459
|
((StartConversationRequestEventStream2) => {
|
|
460
460
|
StartConversationRequestEventStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
461
|
-
if (value.ConfigurationEvent !== void 0)
|
|
462
|
-
|
|
463
|
-
if (value.
|
|
464
|
-
|
|
465
|
-
if (value.DTMFInputEvent !== void 0)
|
|
466
|
-
return visitor.DTMFInputEvent(value.DTMFInputEvent);
|
|
467
|
-
if (value.TextInputEvent !== void 0)
|
|
468
|
-
return visitor.TextInputEvent(value.TextInputEvent);
|
|
461
|
+
if (value.ConfigurationEvent !== void 0) return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
462
|
+
if (value.AudioInputEvent !== void 0) return visitor.AudioInputEvent(value.AudioInputEvent);
|
|
463
|
+
if (value.DTMFInputEvent !== void 0) return visitor.DTMFInputEvent(value.DTMFInputEvent);
|
|
464
|
+
if (value.TextInputEvent !== void 0) return visitor.TextInputEvent(value.TextInputEvent);
|
|
469
465
|
if (value.PlaybackCompletionEvent !== void 0)
|
|
470
466
|
return visitor.PlaybackCompletionEvent(value.PlaybackCompletionEvent);
|
|
471
|
-
if (value.DisconnectionEvent !== void 0)
|
|
472
|
-
return visitor.DisconnectionEvent(value.DisconnectionEvent);
|
|
467
|
+
if (value.DisconnectionEvent !== void 0) return visitor.DisconnectionEvent(value.DisconnectionEvent);
|
|
473
468
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
474
469
|
}, "visit");
|
|
475
470
|
})(StartConversationRequestEventStream || (StartConversationRequestEventStream = {}));
|
|
@@ -478,32 +473,22 @@ var StartConversationResponseEventStream;
|
|
|
478
473
|
StartConversationResponseEventStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
479
474
|
if (value.PlaybackInterruptionEvent !== void 0)
|
|
480
475
|
return visitor.PlaybackInterruptionEvent(value.PlaybackInterruptionEvent);
|
|
481
|
-
if (value.TranscriptEvent !== void 0)
|
|
482
|
-
|
|
483
|
-
if (value.
|
|
484
|
-
|
|
485
|
-
if (value.
|
|
486
|
-
|
|
487
|
-
if (value.AudioResponseEvent !== void 0)
|
|
488
|
-
return visitor.AudioResponseEvent(value.AudioResponseEvent);
|
|
489
|
-
if (value.HeartbeatEvent !== void 0)
|
|
490
|
-
return visitor.HeartbeatEvent(value.HeartbeatEvent);
|
|
491
|
-
if (value.AccessDeniedException !== void 0)
|
|
492
|
-
return visitor.AccessDeniedException(value.AccessDeniedException);
|
|
476
|
+
if (value.TranscriptEvent !== void 0) return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
477
|
+
if (value.IntentResultEvent !== void 0) return visitor.IntentResultEvent(value.IntentResultEvent);
|
|
478
|
+
if (value.TextResponseEvent !== void 0) return visitor.TextResponseEvent(value.TextResponseEvent);
|
|
479
|
+
if (value.AudioResponseEvent !== void 0) return visitor.AudioResponseEvent(value.AudioResponseEvent);
|
|
480
|
+
if (value.HeartbeatEvent !== void 0) return visitor.HeartbeatEvent(value.HeartbeatEvent);
|
|
481
|
+
if (value.AccessDeniedException !== void 0) return visitor.AccessDeniedException(value.AccessDeniedException);
|
|
493
482
|
if (value.ResourceNotFoundException !== void 0)
|
|
494
483
|
return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
|
|
495
|
-
if (value.ValidationException !== void 0)
|
|
496
|
-
|
|
497
|
-
if (value.ThrottlingException !== void 0)
|
|
498
|
-
return visitor.ThrottlingException(value.ThrottlingException);
|
|
484
|
+
if (value.ValidationException !== void 0) return visitor.ValidationException(value.ValidationException);
|
|
485
|
+
if (value.ThrottlingException !== void 0) return visitor.ThrottlingException(value.ThrottlingException);
|
|
499
486
|
if (value.InternalServerException !== void 0)
|
|
500
487
|
return visitor.InternalServerException(value.InternalServerException);
|
|
501
|
-
if (value.ConflictException !== void 0)
|
|
502
|
-
return visitor.ConflictException(value.ConflictException);
|
|
488
|
+
if (value.ConflictException !== void 0) return visitor.ConflictException(value.ConflictException);
|
|
503
489
|
if (value.DependencyFailedException !== void 0)
|
|
504
490
|
return visitor.DependencyFailedException(value.DependencyFailedException);
|
|
505
|
-
if (value.BadGatewayException !== void 0)
|
|
506
|
-
return visitor.BadGatewayException(value.BadGatewayException);
|
|
491
|
+
if (value.BadGatewayException !== void 0) return visitor.BadGatewayException(value.BadGatewayException);
|
|
507
492
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
508
493
|
}, "visit");
|
|
509
494
|
})(StartConversationResponseEventStream || (StartConversationResponseEventStream = {}));
|
|
@@ -559,18 +544,12 @@ var RecognizeTextRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
559
544
|
var StartConversationRequestEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
560
545
|
if (obj.ConfigurationEvent !== void 0)
|
|
561
546
|
return { ConfigurationEvent: ConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
|
|
562
|
-
if (obj.AudioInputEvent !== void 0)
|
|
563
|
-
|
|
564
|
-
if (obj.
|
|
565
|
-
|
|
566
|
-
if (obj.
|
|
567
|
-
|
|
568
|
-
if (obj.PlaybackCompletionEvent !== void 0)
|
|
569
|
-
return { PlaybackCompletionEvent: obj.PlaybackCompletionEvent };
|
|
570
|
-
if (obj.DisconnectionEvent !== void 0)
|
|
571
|
-
return { DisconnectionEvent: obj.DisconnectionEvent };
|
|
572
|
-
if (obj.$unknown !== void 0)
|
|
573
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
547
|
+
if (obj.AudioInputEvent !== void 0) return { AudioInputEvent: obj.AudioInputEvent };
|
|
548
|
+
if (obj.DTMFInputEvent !== void 0) return { DTMFInputEvent: DTMFInputEventFilterSensitiveLog(obj.DTMFInputEvent) };
|
|
549
|
+
if (obj.TextInputEvent !== void 0) return { TextInputEvent: TextInputEventFilterSensitiveLog(obj.TextInputEvent) };
|
|
550
|
+
if (obj.PlaybackCompletionEvent !== void 0) return { PlaybackCompletionEvent: obj.PlaybackCompletionEvent };
|
|
551
|
+
if (obj.DisconnectionEvent !== void 0) return { DisconnectionEvent: obj.DisconnectionEvent };
|
|
552
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
574
553
|
}, "StartConversationRequestEventStreamFilterSensitiveLog");
|
|
575
554
|
var StartConversationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
576
555
|
...obj,
|
|
@@ -588,36 +567,23 @@ var RecognizeTextResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
588
567
|
...obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }
|
|
589
568
|
}), "RecognizeTextResponseFilterSensitiveLog");
|
|
590
569
|
var StartConversationResponseEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
591
|
-
if (obj.PlaybackInterruptionEvent !== void 0)
|
|
592
|
-
|
|
593
|
-
if (obj.TranscriptEvent !== void 0)
|
|
594
|
-
return { TranscriptEvent: obj.TranscriptEvent };
|
|
570
|
+
if (obj.PlaybackInterruptionEvent !== void 0) return { PlaybackInterruptionEvent: obj.PlaybackInterruptionEvent };
|
|
571
|
+
if (obj.TranscriptEvent !== void 0) return { TranscriptEvent: obj.TranscriptEvent };
|
|
595
572
|
if (obj.IntentResultEvent !== void 0)
|
|
596
573
|
return { IntentResultEvent: IntentResultEventFilterSensitiveLog(obj.IntentResultEvent) };
|
|
597
574
|
if (obj.TextResponseEvent !== void 0)
|
|
598
575
|
return { TextResponseEvent: TextResponseEventFilterSensitiveLog(obj.TextResponseEvent) };
|
|
599
|
-
if (obj.AudioResponseEvent !== void 0)
|
|
600
|
-
|
|
601
|
-
if (obj.
|
|
602
|
-
|
|
603
|
-
if (obj.
|
|
604
|
-
|
|
605
|
-
if (obj.
|
|
606
|
-
|
|
607
|
-
if (obj.
|
|
608
|
-
|
|
609
|
-
if (obj
|
|
610
|
-
return { ThrottlingException: obj.ThrottlingException };
|
|
611
|
-
if (obj.InternalServerException !== void 0)
|
|
612
|
-
return { InternalServerException: obj.InternalServerException };
|
|
613
|
-
if (obj.ConflictException !== void 0)
|
|
614
|
-
return { ConflictException: obj.ConflictException };
|
|
615
|
-
if (obj.DependencyFailedException !== void 0)
|
|
616
|
-
return { DependencyFailedException: obj.DependencyFailedException };
|
|
617
|
-
if (obj.BadGatewayException !== void 0)
|
|
618
|
-
return { BadGatewayException: obj.BadGatewayException };
|
|
619
|
-
if (obj.$unknown !== void 0)
|
|
620
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
576
|
+
if (obj.AudioResponseEvent !== void 0) return { AudioResponseEvent: obj.AudioResponseEvent };
|
|
577
|
+
if (obj.HeartbeatEvent !== void 0) return { HeartbeatEvent: obj.HeartbeatEvent };
|
|
578
|
+
if (obj.AccessDeniedException !== void 0) return { AccessDeniedException: obj.AccessDeniedException };
|
|
579
|
+
if (obj.ResourceNotFoundException !== void 0) return { ResourceNotFoundException: obj.ResourceNotFoundException };
|
|
580
|
+
if (obj.ValidationException !== void 0) return { ValidationException: obj.ValidationException };
|
|
581
|
+
if (obj.ThrottlingException !== void 0) return { ThrottlingException: obj.ThrottlingException };
|
|
582
|
+
if (obj.InternalServerException !== void 0) return { InternalServerException: obj.InternalServerException };
|
|
583
|
+
if (obj.ConflictException !== void 0) return { ConflictException: obj.ConflictException };
|
|
584
|
+
if (obj.DependencyFailedException !== void 0) return { DependencyFailedException: obj.DependencyFailedException };
|
|
585
|
+
if (obj.BadGatewayException !== void 0) return { BadGatewayException: obj.BadGatewayException };
|
|
586
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
621
587
|
}, "StartConversationResponseEventStreamFilterSensitiveLog");
|
|
622
588
|
var StartConversationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
623
589
|
...obj,
|
|
@@ -663,9 +629,9 @@ var se_PutSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
663
629
|
let body;
|
|
664
630
|
body = JSON.stringify(
|
|
665
631
|
(0, import_smithy_client.take)(input, {
|
|
666
|
-
messages: (_) => (0, import_smithy_client._json)(_),
|
|
667
|
-
requestAttributes: (_) => (0, import_smithy_client._json)(_),
|
|
668
|
-
sessionState: (_) => se_SessionState(_, context)
|
|
632
|
+
messages: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "messages"),
|
|
633
|
+
requestAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "requestAttributes"),
|
|
634
|
+
sessionState: /* @__PURE__ */ __name((_) => se_SessionState(_, context), "sessionState")
|
|
669
635
|
})
|
|
670
636
|
);
|
|
671
637
|
b.m("POST").h(headers).b(body);
|
|
@@ -684,8 +650,8 @@ var se_RecognizeTextCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
684
650
|
let body;
|
|
685
651
|
body = JSON.stringify(
|
|
686
652
|
(0, import_smithy_client.take)(input, {
|
|
687
|
-
requestAttributes: (_) => (0, import_smithy_client._json)(_),
|
|
688
|
-
sessionState: (_) => se_SessionState(_, context),
|
|
653
|
+
requestAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "requestAttributes"),
|
|
654
|
+
sessionState: /* @__PURE__ */ __name((_) => se_SessionState(_, context), "sessionState"),
|
|
689
655
|
text: []
|
|
690
656
|
})
|
|
691
657
|
);
|
|
@@ -757,10 +723,10 @@ var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
757
723
|
});
|
|
758
724
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
759
725
|
const doc = (0, import_smithy_client.take)(data, {
|
|
760
|
-
interpretations: (_) => de_Interpretations(_, context),
|
|
726
|
+
interpretations: /* @__PURE__ */ __name((_) => de_Interpretations(_, context), "interpretations"),
|
|
761
727
|
messages: import_smithy_client._json,
|
|
762
728
|
sessionId: import_smithy_client.expectString,
|
|
763
|
-
sessionState: (_) => de_SessionState(_, context)
|
|
729
|
+
sessionState: /* @__PURE__ */ __name((_) => de_SessionState(_, context), "sessionState")
|
|
764
730
|
});
|
|
765
731
|
Object.assign(contents, doc);
|
|
766
732
|
return contents;
|
|
@@ -791,12 +757,12 @@ var de_RecognizeTextCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
791
757
|
});
|
|
792
758
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
793
759
|
const doc = (0, import_smithy_client.take)(data, {
|
|
794
|
-
interpretations: (_) => de_Interpretations(_, context),
|
|
760
|
+
interpretations: /* @__PURE__ */ __name((_) => de_Interpretations(_, context), "interpretations"),
|
|
795
761
|
messages: import_smithy_client._json,
|
|
796
762
|
recognizedBotMember: import_smithy_client._json,
|
|
797
763
|
requestAttributes: import_smithy_client._json,
|
|
798
764
|
sessionId: import_smithy_client.expectString,
|
|
799
|
-
sessionState: (_) => de_SessionState(_, context)
|
|
765
|
+
sessionState: /* @__PURE__ */ __name((_) => de_SessionState(_, context), "sessionState")
|
|
800
766
|
});
|
|
801
767
|
Object.assign(contents, doc);
|
|
802
768
|
return contents;
|
|
@@ -980,13 +946,13 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
980
946
|
}, "de_ValidationExceptionRes");
|
|
981
947
|
var se_StartConversationRequestEventStream = /* @__PURE__ */ __name((input, context) => {
|
|
982
948
|
const eventMarshallingVisitor = /* @__PURE__ */ __name((event) => StartConversationRequestEventStream.visit(event, {
|
|
983
|
-
ConfigurationEvent: (value) => se_ConfigurationEvent_event(value, context),
|
|
984
|
-
AudioInputEvent: (value) => se_AudioInputEvent_event(value, context),
|
|
985
|
-
DTMFInputEvent: (value) => se_DTMFInputEvent_event(value, context),
|
|
986
|
-
TextInputEvent: (value) => se_TextInputEvent_event(value, context),
|
|
987
|
-
PlaybackCompletionEvent: (value) => se_PlaybackCompletionEvent_event(value, context),
|
|
988
|
-
DisconnectionEvent: (value) => se_DisconnectionEvent_event(value, context),
|
|
989
|
-
_: (value) => value
|
|
949
|
+
ConfigurationEvent: /* @__PURE__ */ __name((value) => se_ConfigurationEvent_event(value, context), "ConfigurationEvent"),
|
|
950
|
+
AudioInputEvent: /* @__PURE__ */ __name((value) => se_AudioInputEvent_event(value, context), "AudioInputEvent"),
|
|
951
|
+
DTMFInputEvent: /* @__PURE__ */ __name((value) => se_DTMFInputEvent_event(value, context), "DTMFInputEvent"),
|
|
952
|
+
TextInputEvent: /* @__PURE__ */ __name((value) => se_TextInputEvent_event(value, context), "TextInputEvent"),
|
|
953
|
+
PlaybackCompletionEvent: /* @__PURE__ */ __name((value) => se_PlaybackCompletionEvent_event(value, context), "PlaybackCompletionEvent"),
|
|
954
|
+
DisconnectionEvent: /* @__PURE__ */ __name((value) => se_DisconnectionEvent_event(value, context), "DisconnectionEvent"),
|
|
955
|
+
_: /* @__PURE__ */ __name((value) => value, "_")
|
|
990
956
|
}), "eventMarshallingVisitor");
|
|
991
957
|
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
992
958
|
}, "se_StartConversationRequestEventStream");
|
|
@@ -1247,7 +1213,7 @@ var se_ConfigurationEvent = /* @__PURE__ */ __name((input, context) => {
|
|
|
1247
1213
|
eventId: [],
|
|
1248
1214
|
requestAttributes: import_smithy_client._json,
|
|
1249
1215
|
responseContentType: [],
|
|
1250
|
-
sessionState: (_) => se_SessionState(_, context),
|
|
1216
|
+
sessionState: /* @__PURE__ */ __name((_) => se_SessionState(_, context), "sessionState"),
|
|
1251
1217
|
welcomeMessages: import_smithy_client._json
|
|
1252
1218
|
});
|
|
1253
1219
|
}, "se_ConfigurationEvent");
|
|
@@ -1255,51 +1221,51 @@ var se_DialogAction = /* @__PURE__ */ __name((input, context) => {
|
|
|
1255
1221
|
return (0, import_smithy_client.take)(input, {
|
|
1256
1222
|
slotElicitationStyle: [],
|
|
1257
1223
|
slotToElicit: [],
|
|
1258
|
-
subSlotToElicit: (_) => se_ElicitSubSlot(_, context),
|
|
1224
|
+
subSlotToElicit: /* @__PURE__ */ __name((_) => se_ElicitSubSlot(_, context), "subSlotToElicit"),
|
|
1259
1225
|
type: []
|
|
1260
1226
|
});
|
|
1261
1227
|
}, "se_DialogAction");
|
|
1262
1228
|
var se_ElicitSubSlot = /* @__PURE__ */ __name((input, context) => {
|
|
1263
1229
|
return (0, import_smithy_client.take)(input, {
|
|
1264
1230
|
name: [],
|
|
1265
|
-
subSlotToElicit: (_) => se_ElicitSubSlot(_, context)
|
|
1231
|
+
subSlotToElicit: /* @__PURE__ */ __name((_) => se_ElicitSubSlot(_, context), "subSlotToElicit")
|
|
1266
1232
|
});
|
|
1267
1233
|
}, "se_ElicitSubSlot");
|
|
1268
1234
|
var se_Intent = /* @__PURE__ */ __name((input, context) => {
|
|
1269
1235
|
return (0, import_smithy_client.take)(input, {
|
|
1270
1236
|
confirmationState: [],
|
|
1271
1237
|
name: [],
|
|
1272
|
-
slots: (_) => se_Slots(_, context),
|
|
1238
|
+
slots: /* @__PURE__ */ __name((_) => se_Slots(_, context), "slots"),
|
|
1273
1239
|
state: []
|
|
1274
1240
|
});
|
|
1275
1241
|
}, "se_Intent");
|
|
1276
1242
|
var se_RuntimeHintDetails = /* @__PURE__ */ __name((input, context) => {
|
|
1277
1243
|
return (0, import_smithy_client.take)(input, {
|
|
1278
1244
|
runtimeHintValues: import_smithy_client._json,
|
|
1279
|
-
subSlotHints: (_) => se_SlotHintsSlotMap(_, context)
|
|
1245
|
+
subSlotHints: /* @__PURE__ */ __name((_) => se_SlotHintsSlotMap(_, context), "subSlotHints")
|
|
1280
1246
|
});
|
|
1281
1247
|
}, "se_RuntimeHintDetails");
|
|
1282
1248
|
var se_RuntimeHints = /* @__PURE__ */ __name((input, context) => {
|
|
1283
1249
|
return (0, import_smithy_client.take)(input, {
|
|
1284
|
-
slotHints: (_) => se_SlotHintsIntentMap(_, context)
|
|
1250
|
+
slotHints: /* @__PURE__ */ __name((_) => se_SlotHintsIntentMap(_, context), "slotHints")
|
|
1285
1251
|
});
|
|
1286
1252
|
}, "se_RuntimeHints");
|
|
1287
1253
|
var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
1288
1254
|
return (0, import_smithy_client.take)(input, {
|
|
1289
1255
|
activeContexts: import_smithy_client._json,
|
|
1290
|
-
dialogAction: (_) => se_DialogAction(_, context),
|
|
1291
|
-
intent: (_) => se_Intent(_, context),
|
|
1256
|
+
dialogAction: /* @__PURE__ */ __name((_) => se_DialogAction(_, context), "dialogAction"),
|
|
1257
|
+
intent: /* @__PURE__ */ __name((_) => se_Intent(_, context), "intent"),
|
|
1292
1258
|
originatingRequestId: [],
|
|
1293
|
-
runtimeHints: (_) => se_RuntimeHints(_, context),
|
|
1259
|
+
runtimeHints: /* @__PURE__ */ __name((_) => se_RuntimeHints(_, context), "runtimeHints"),
|
|
1294
1260
|
sessionAttributes: import_smithy_client._json
|
|
1295
1261
|
});
|
|
1296
1262
|
}, "se_SessionState");
|
|
1297
1263
|
var se_Slot = /* @__PURE__ */ __name((input, context) => {
|
|
1298
1264
|
return (0, import_smithy_client.take)(input, {
|
|
1299
1265
|
shape: [],
|
|
1300
|
-
subSlots: (_) => se_Slots(_, context),
|
|
1266
|
+
subSlots: /* @__PURE__ */ __name((_) => se_Slots(_, context), "subSlots"),
|
|
1301
1267
|
value: import_smithy_client._json,
|
|
1302
|
-
values: (_) => se_Values(_, context)
|
|
1268
|
+
values: /* @__PURE__ */ __name((_) => se_Values(_, context), "values")
|
|
1303
1269
|
});
|
|
1304
1270
|
}, "se_Slot");
|
|
1305
1271
|
var se_SlotHintsIntentMap = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -1350,21 +1316,21 @@ var de_DialogAction = /* @__PURE__ */ __name((output, context) => {
|
|
|
1350
1316
|
return (0, import_smithy_client.take)(output, {
|
|
1351
1317
|
slotElicitationStyle: import_smithy_client.expectString,
|
|
1352
1318
|
slotToElicit: import_smithy_client.expectString,
|
|
1353
|
-
subSlotToElicit: (_) => de_ElicitSubSlot(_, context),
|
|
1319
|
+
subSlotToElicit: /* @__PURE__ */ __name((_) => de_ElicitSubSlot(_, context), "subSlotToElicit"),
|
|
1354
1320
|
type: import_smithy_client.expectString
|
|
1355
1321
|
});
|
|
1356
1322
|
}, "de_DialogAction");
|
|
1357
1323
|
var de_ElicitSubSlot = /* @__PURE__ */ __name((output, context) => {
|
|
1358
1324
|
return (0, import_smithy_client.take)(output, {
|
|
1359
1325
|
name: import_smithy_client.expectString,
|
|
1360
|
-
subSlotToElicit: (_) => de_ElicitSubSlot(_, context)
|
|
1326
|
+
subSlotToElicit: /* @__PURE__ */ __name((_) => de_ElicitSubSlot(_, context), "subSlotToElicit")
|
|
1361
1327
|
});
|
|
1362
1328
|
}, "de_ElicitSubSlot");
|
|
1363
1329
|
var de_Intent = /* @__PURE__ */ __name((output, context) => {
|
|
1364
1330
|
return (0, import_smithy_client.take)(output, {
|
|
1365
1331
|
confirmationState: import_smithy_client.expectString,
|
|
1366
1332
|
name: import_smithy_client.expectString,
|
|
1367
|
-
slots: (_) => de_Slots(_, context),
|
|
1333
|
+
slots: /* @__PURE__ */ __name((_) => de_Slots(_, context), "slots"),
|
|
1368
1334
|
state: import_smithy_client.expectString
|
|
1369
1335
|
});
|
|
1370
1336
|
}, "de_Intent");
|
|
@@ -1372,19 +1338,19 @@ var de_IntentResultEvent = /* @__PURE__ */ __name((output, context) => {
|
|
|
1372
1338
|
return (0, import_smithy_client.take)(output, {
|
|
1373
1339
|
eventId: import_smithy_client.expectString,
|
|
1374
1340
|
inputMode: import_smithy_client.expectString,
|
|
1375
|
-
interpretations: (_) => de_Interpretations(_, context),
|
|
1341
|
+
interpretations: /* @__PURE__ */ __name((_) => de_Interpretations(_, context), "interpretations"),
|
|
1376
1342
|
recognizedBotMember: import_smithy_client._json,
|
|
1377
1343
|
requestAttributes: import_smithy_client._json,
|
|
1378
1344
|
sessionId: import_smithy_client.expectString,
|
|
1379
|
-
sessionState: (_) => de_SessionState(_, context)
|
|
1345
|
+
sessionState: /* @__PURE__ */ __name((_) => de_SessionState(_, context), "sessionState")
|
|
1380
1346
|
});
|
|
1381
1347
|
}, "de_IntentResultEvent");
|
|
1382
1348
|
var de_Interpretation = /* @__PURE__ */ __name((output, context) => {
|
|
1383
1349
|
return (0, import_smithy_client.take)(output, {
|
|
1384
|
-
intent: (_) => de_Intent(_, context),
|
|
1350
|
+
intent: /* @__PURE__ */ __name((_) => de_Intent(_, context), "intent"),
|
|
1385
1351
|
interpretationSource: import_smithy_client.expectString,
|
|
1386
|
-
nluConfidence: (_) => de_ConfidenceScore(_, context),
|
|
1387
|
-
sentimentResponse: (_) => de_SentimentResponse(_, context)
|
|
1352
|
+
nluConfidence: /* @__PURE__ */ __name((_) => de_ConfidenceScore(_, context), "nluConfidence"),
|
|
1353
|
+
sentimentResponse: /* @__PURE__ */ __name((_) => de_SentimentResponse(_, context), "sentimentResponse")
|
|
1388
1354
|
});
|
|
1389
1355
|
}, "de_Interpretation");
|
|
1390
1356
|
var de_Interpretations = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1396,18 +1362,18 @@ var de_Interpretations = /* @__PURE__ */ __name((output, context) => {
|
|
|
1396
1362
|
var de_RuntimeHintDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1397
1363
|
return (0, import_smithy_client.take)(output, {
|
|
1398
1364
|
runtimeHintValues: import_smithy_client._json,
|
|
1399
|
-
subSlotHints: (_) => de_SlotHintsSlotMap(_, context)
|
|
1365
|
+
subSlotHints: /* @__PURE__ */ __name((_) => de_SlotHintsSlotMap(_, context), "subSlotHints")
|
|
1400
1366
|
});
|
|
1401
1367
|
}, "de_RuntimeHintDetails");
|
|
1402
1368
|
var de_RuntimeHints = /* @__PURE__ */ __name((output, context) => {
|
|
1403
1369
|
return (0, import_smithy_client.take)(output, {
|
|
1404
|
-
slotHints: (_) => de_SlotHintsIntentMap(_, context)
|
|
1370
|
+
slotHints: /* @__PURE__ */ __name((_) => de_SlotHintsIntentMap(_, context), "slotHints")
|
|
1405
1371
|
});
|
|
1406
1372
|
}, "de_RuntimeHints");
|
|
1407
1373
|
var de_SentimentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1408
1374
|
return (0, import_smithy_client.take)(output, {
|
|
1409
1375
|
sentiment: import_smithy_client.expectString,
|
|
1410
|
-
sentimentScore: (_) => de_SentimentScore(_, context)
|
|
1376
|
+
sentimentScore: /* @__PURE__ */ __name((_) => de_SentimentScore(_, context), "sentimentScore")
|
|
1411
1377
|
});
|
|
1412
1378
|
}, "de_SentimentResponse");
|
|
1413
1379
|
var de_SentimentScore = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1421,19 +1387,19 @@ var de_SentimentScore = /* @__PURE__ */ __name((output, context) => {
|
|
|
1421
1387
|
var de_SessionState = /* @__PURE__ */ __name((output, context) => {
|
|
1422
1388
|
return (0, import_smithy_client.take)(output, {
|
|
1423
1389
|
activeContexts: import_smithy_client._json,
|
|
1424
|
-
dialogAction: (_) => de_DialogAction(_, context),
|
|
1425
|
-
intent: (_) => de_Intent(_, context),
|
|
1390
|
+
dialogAction: /* @__PURE__ */ __name((_) => de_DialogAction(_, context), "dialogAction"),
|
|
1391
|
+
intent: /* @__PURE__ */ __name((_) => de_Intent(_, context), "intent"),
|
|
1426
1392
|
originatingRequestId: import_smithy_client.expectString,
|
|
1427
|
-
runtimeHints: (_) => de_RuntimeHints(_, context),
|
|
1393
|
+
runtimeHints: /* @__PURE__ */ __name((_) => de_RuntimeHints(_, context), "runtimeHints"),
|
|
1428
1394
|
sessionAttributes: import_smithy_client._json
|
|
1429
1395
|
});
|
|
1430
1396
|
}, "de_SessionState");
|
|
1431
1397
|
var de_Slot = /* @__PURE__ */ __name((output, context) => {
|
|
1432
1398
|
return (0, import_smithy_client.take)(output, {
|
|
1433
1399
|
shape: import_smithy_client.expectString,
|
|
1434
|
-
subSlots: (_) => de_Slots(_, context),
|
|
1400
|
+
subSlots: /* @__PURE__ */ __name((_) => de_Slots(_, context), "subSlots"),
|
|
1435
1401
|
value: import_smithy_client._json,
|
|
1436
|
-
values: (_) => de_Values(_, context)
|
|
1402
|
+
values: /* @__PURE__ */ __name((_) => de_Values(_, context), "values")
|
|
1437
1403
|
});
|
|
1438
1404
|
}, "de_Slot");
|
|
1439
1405
|
var de_SlotHintsIntentMap = /* @__PURE__ */ __name((output, context) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.774.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-lex-runtime-v2",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.774.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.774.0",
|
|
25
25
|
"@aws-sdk/eventstream-handler-node": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-eventstream": "3.734.0",
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.774.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.772.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.774.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
32
32
|
"@aws-sdk/types": "3.734.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.743.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.774.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.0.1",
|
|
37
37
|
"@smithy/core": "^3.1.5",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^4.0.1",
|