aws-sdk-lexruntimev2 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +2 -1
- data/lib/aws-sdk-lexruntimev2/client.rb +5 -1
- data/lib/aws-sdk-lexruntimev2/client_api.rb +2 -0
- data/lib/aws-sdk-lexruntimev2/types.rb +25 -1
- data/lib/aws-sdk-lexruntimev2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a4622081b32c296f9ffa89ca12c2dd1a5c1dfb3fa8c3c518c5ae6bcb26c451d
|
4
|
+
data.tar.gz: 860d4645a9db8771529581791bb4a28bae7ab94e65845b25d736614da60fd681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b43e440748c3c627c8c08b32a0e1415ba95f4ed097f7cbf681aee96ff15331fef8a4a7611e00d27ceac9697ac54ebcc59773aca1c456b6271424bae6edc9f7b
|
7
|
+
data.tar.gz: 3d050d057b84c15de88e25b6168968cce5df2e7aa8233ec9bd85646e934b941042cc891ae103f749279af80c49138353d696363fadf02f5a0c395739a6325b09
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.10.0 (2021-11-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Now supports styled slots in Lex V2 runtime. Customers can provide inputs like "a as in apple b for beta" which will be resolved to "ab" as slot value.
|
8
|
+
|
4
9
|
1.9.0 (2021-11-04)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.10.0
|
@@ -514,6 +514,7 @@ module Aws::LexRuntimeV2
|
|
514
514
|
# event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
515
515
|
# event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
516
516
|
# event.session_state.dialog_action.slot_to_elicit #=> String
|
517
|
+
# event.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
517
518
|
# event.session_state.intent.name #=> String
|
518
519
|
# event.session_state.intent.slots #=> Hash
|
519
520
|
# event.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
@@ -626,7 +627,7 @@ module Aws::LexRuntimeV2
|
|
626
627
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
627
628
|
config: config)
|
628
629
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
629
|
-
context[:gem_version] = '1.
|
630
|
+
context[:gem_version] = '1.10.0'
|
630
631
|
Seahorse::Client::Request.new(handlers, context)
|
631
632
|
end
|
632
633
|
|
@@ -479,6 +479,7 @@ module Aws::LexRuntimeV2
|
|
479
479
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
480
480
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
481
481
|
# resp.session_state.dialog_action.slot_to_elicit #=> String
|
482
|
+
# resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
482
483
|
# resp.session_state.intent.name #=> String
|
483
484
|
# resp.session_state.intent.slots #=> Hash
|
484
485
|
# resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
@@ -588,6 +589,7 @@ module Aws::LexRuntimeV2
|
|
588
589
|
# dialog_action: {
|
589
590
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
590
591
|
# slot_to_elicit: "NonEmptyString",
|
592
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
591
593
|
# },
|
592
594
|
# intent: {
|
593
595
|
# name: "NonEmptyString", # required
|
@@ -727,6 +729,7 @@ module Aws::LexRuntimeV2
|
|
727
729
|
# dialog_action: {
|
728
730
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
729
731
|
# slot_to_elicit: "NonEmptyString",
|
732
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
730
733
|
# },
|
731
734
|
# intent: {
|
732
735
|
# name: "NonEmptyString", # required
|
@@ -783,6 +786,7 @@ module Aws::LexRuntimeV2
|
|
783
786
|
# resp.messages[0].image_response_card.buttons[0].value #=> String
|
784
787
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
|
785
788
|
# resp.session_state.dialog_action.slot_to_elicit #=> String
|
789
|
+
# resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
|
786
790
|
# resp.session_state.intent.name #=> String
|
787
791
|
# resp.session_state.intent.slots #=> Hash
|
788
792
|
# resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
|
@@ -1038,7 +1042,7 @@ module Aws::LexRuntimeV2
|
|
1038
1042
|
params: params,
|
1039
1043
|
config: config)
|
1040
1044
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
1041
|
-
context[:gem_version] = '1.
|
1045
|
+
context[:gem_version] = '1.10.0'
|
1042
1046
|
Seahorse::Client::Request.new(handlers, context)
|
1043
1047
|
end
|
1044
1048
|
|
@@ -94,6 +94,7 @@ module Aws::LexRuntimeV2
|
|
94
94
|
String = Shapes::StringShape.new(name: 'String')
|
95
95
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
96
96
|
StringMap = Shapes::MapShape.new(name: 'StringMap')
|
97
|
+
StyleType = Shapes::StringShape.new(name: 'StyleType')
|
97
98
|
Text = Shapes::StringShape.new(name: 'Text')
|
98
99
|
TextInputEvent = Shapes::StructureShape.new(name: 'TextInputEvent')
|
99
100
|
TextResponseEvent = Shapes::StructureShape.new(name: 'TextResponseEvent')
|
@@ -177,6 +178,7 @@ module Aws::LexRuntimeV2
|
|
177
178
|
|
178
179
|
DialogAction.add_member(:type, Shapes::ShapeRef.new(shape: DialogActionType, required: true, location_name: "type"))
|
179
180
|
DialogAction.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "slotToElicit"))
|
181
|
+
DialogAction.add_member(:slot_elicitation_style, Shapes::ShapeRef.new(shape: StyleType, location_name: "slotElicitationStyle"))
|
180
182
|
DialogAction.struct_class = Types::DialogAction
|
181
183
|
|
182
184
|
DisconnectionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
|
@@ -258,6 +258,7 @@ module Aws::LexRuntimeV2
|
|
258
258
|
# dialog_action: {
|
259
259
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
260
260
|
# slot_to_elicit: "NonEmptyString",
|
261
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
261
262
|
# },
|
262
263
|
# intent: {
|
263
264
|
# name: "NonEmptyString", # required
|
@@ -538,6 +539,7 @@ module Aws::LexRuntimeV2
|
|
538
539
|
# {
|
539
540
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
540
541
|
# slot_to_elicit: "NonEmptyString",
|
542
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
541
543
|
# }
|
542
544
|
#
|
543
545
|
# @!attribute [rw] type
|
@@ -562,11 +564,29 @@ module Aws::LexRuntimeV2
|
|
562
564
|
# The name of the slot that should be elicited from the user.
|
563
565
|
# @return [String]
|
564
566
|
#
|
567
|
+
# @!attribute [rw] slot_elicitation_style
|
568
|
+
# Configures the slot to use spell-by-letter or spell-by-word style.
|
569
|
+
# When you use a style on a slot, users can spell out their input to
|
570
|
+
# make it clear to your bot.
|
571
|
+
#
|
572
|
+
# * Spell by letter - "b" "o" "b"
|
573
|
+
#
|
574
|
+
# * Spell by word - "b as in boy" "o as in oscar" "b as in boy"
|
575
|
+
#
|
576
|
+
# For more information, see [ Using spelling to enter slot values
|
577
|
+
# ][1].
|
578
|
+
#
|
579
|
+
#
|
580
|
+
#
|
581
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html
|
582
|
+
# @return [String]
|
583
|
+
#
|
565
584
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/DialogAction AWS API Documentation
|
566
585
|
#
|
567
586
|
class DialogAction < Struct.new(
|
568
587
|
:type,
|
569
|
-
:slot_to_elicit
|
588
|
+
:slot_to_elicit,
|
589
|
+
:slot_elicitation_style)
|
570
590
|
SENSITIVE = []
|
571
591
|
include Aws::Structure
|
572
592
|
end
|
@@ -1047,6 +1067,7 @@ module Aws::LexRuntimeV2
|
|
1047
1067
|
# dialog_action: {
|
1048
1068
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1049
1069
|
# slot_to_elicit: "NonEmptyString",
|
1070
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1050
1071
|
# },
|
1051
1072
|
# intent: {
|
1052
1073
|
# name: "NonEmptyString", # required
|
@@ -1212,6 +1233,7 @@ module Aws::LexRuntimeV2
|
|
1212
1233
|
# dialog_action: {
|
1213
1234
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1214
1235
|
# slot_to_elicit: "NonEmptyString",
|
1236
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1215
1237
|
# },
|
1216
1238
|
# intent: {
|
1217
1239
|
# name: "NonEmptyString", # required
|
@@ -1664,6 +1686,7 @@ module Aws::LexRuntimeV2
|
|
1664
1686
|
# dialog_action: {
|
1665
1687
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
1666
1688
|
# slot_to_elicit: "NonEmptyString",
|
1689
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
1667
1690
|
# },
|
1668
1691
|
# intent: {
|
1669
1692
|
# name: "NonEmptyString", # required
|
@@ -2024,6 +2047,7 @@ module Aws::LexRuntimeV2
|
|
2024
2047
|
# dialog_action: {
|
2025
2048
|
# type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
|
2026
2049
|
# slot_to_elicit: "NonEmptyString",
|
2050
|
+
# slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
|
2027
2051
|
# },
|
2028
2052
|
# intent: {
|
2029
2053
|
# name: "NonEmptyString", # required
|
data/lib/aws-sdk-lexruntimev2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexruntimev2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|