aws-lex-conversation 6.2.0 → 6.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a4ab092d321df0c71e5f16cf1021e87358b1b39ab025eaf5555e3e3da7894c1
4
- data.tar.gz: a0332c4f2f73b35972c83a0740e1adfa4d724fe5d9861087d348e905e3e15633
3
+ metadata.gz: 33df2c318e3e0d2e3157ebe43e27b38855334518efa5fa957be0e1035e6454f2
4
+ data.tar.gz: 5f7db4ab55ef155967688aae6a85781b1fca26860574d45280cfceb2e410b730
5
5
  SHA512:
6
- metadata.gz: 734b1ec8921c8982a3e123520b08b0d0b9e655159c781f7df18d106b8de635815bc026862fd6a4ec7a3d2665d47393bb8d977cf530a1331e2f3c2bea543b4a94
7
- data.tar.gz: 2c4c43bafd522791d6f5f39596c7b594d3788098876b51fc8294cf2304a23c42a06fd6635e15e791410bc824273599f9afab3935fd853981f81b732672d03d96
6
+ metadata.gz: 4831b1eed996b95384635c446a2432efbb765900a8ef814c089ab4bbbfa5311708b0f71fe080d5b4910110448c698dfe855747bc2d9b9a8b19643743581b9c86
7
+ data.tar.gz: 53cdad241f6ace96a3ea1cb7be904f3518edbab40a403c8ab0641ea26cc6629ae1e0ce16b642cf08217a6f06017936e5865ac01be74e3fdeb620f4654edad52c
data/.rubocop.yml CHANGED
@@ -45,6 +45,8 @@ Style/Lambda:
45
45
  EnforcedStyle: literal
46
46
  Style/GuardClause:
47
47
  Enabled: false
48
+ Style/OpenStructUse:
49
+ Enabled: false
48
50
  Style/RedundantFetchBlock:
49
51
  Enabled: false
50
52
  Style/SlicingWithRange:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # 6.3.0 - Nov 22, 2021
2
+
3
+ * Add support for the recently added `slotElicitationStyle` property when generating an `ElicitSlot` repsonse ([documentation](https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html)).
4
+
5
+ You can generate an `ElicitSlot` response now with an optional `slot_elicitation_style` property to allow for spelling support:
6
+
7
+ ```ruby
8
+ conversation.elicit_slot(
9
+ slot_to_elicit: 'LastName',
10
+ slot_elicitation_style: 'SpellByWord' # one of Default, SpellByLetter, or SpellByWord
11
+ )
12
+ ```
13
+
1
14
  # 6.2.0 - Sept 28, 2021
2
15
 
3
16
  * Add a `Aws::Lex::Conversation#restore_from!` method that accepts a checkpoint parameter. This method modifies the underlying conversation state to match the data from the saved checkpoint.
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.license = 'MIT'
27
27
  spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
28
28
  spec.metadata['homepage_uri'] = spec.homepage
29
+ spec.metadata['rubygems_mfa_required'] = 'true'
29
30
 
30
31
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
31
32
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -25,6 +25,7 @@ require_relative 'type/sentiment_score'
25
25
  require_relative 'type/sentiment_response'
26
26
  require_relative 'type/invocation_source'
27
27
  require_relative 'type/dialog_action_type'
28
+ require_relative 'type/slot_elicitation_style'
28
29
  require_relative 'type/dialog_action'
29
30
  require_relative 'type/confirmation_state'
30
31
  require_relative 'type/fulfillment_state'
@@ -5,7 +5,7 @@ module Aws
5
5
  class Conversation
6
6
  module Response
7
7
  class ElicitSlot < Base
8
- attr_accessor :slot_to_elicit
8
+ attr_accessor :slot_to_elicit, :slot_elicitation_style
9
9
 
10
10
  def initialize(opts = {})
11
11
  super
@@ -16,7 +16,8 @@ module Aws
16
16
  def dialog_action
17
17
  Aws::Lex::Conversation::Type::DialogAction.shrink_wrap(
18
18
  type: 'ElicitSlot',
19
- slotToElicit: slot_to_elicit
19
+ slotToElicit: slot_to_elicit,
20
+ slotElicitationStyle: slot_elicitation_style
20
21
  )
21
22
  end
22
23
  end
@@ -8,10 +8,12 @@ module Aws
8
8
  include Base
9
9
 
10
10
  optional :slot_to_elicit
11
+ optional :slot_elicitation_style, default: -> { 'Default' }
11
12
  required :type
12
13
 
13
14
  coerce(
14
- type: DialogActionType
15
+ type: DialogActionType,
16
+ slot_elicitation_style: SlotElicitationStyle
15
17
  )
16
18
  end
17
19
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws
4
+ module Lex
5
+ class Conversation
6
+ module Type
7
+ class SlotElicitationStyle
8
+ include Enumeration
9
+
10
+ enumeration('Default')
11
+ enumeration('SpellByLetter')
12
+ enumeration('SpellByWord')
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -3,7 +3,7 @@
3
3
  module Aws
4
4
  module Lex
5
5
  class Conversation
6
- VERSION = '6.2.0'
6
+ VERSION = '6.3.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-lex-conversation
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Doyle
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2021-09-28 00:00:00.000000000 Z
15
+ date: 2021-11-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: shrink_wrap
@@ -101,6 +101,7 @@ files:
101
101
  - lib/aws/lex/conversation/type/session_attributes.rb
102
102
  - lib/aws/lex/conversation/type/session_state.rb
103
103
  - lib/aws/lex/conversation/type/slot.rb
104
+ - lib/aws/lex/conversation/type/slot_elicitation_style.rb
104
105
  - lib/aws/lex/conversation/type/slot_shape.rb
105
106
  - lib/aws/lex/conversation/type/slot_value.rb
106
107
  - lib/aws/lex/conversation/type/time_to_live.rb
@@ -110,6 +111,7 @@ licenses:
110
111
  - MIT
111
112
  metadata:
112
113
  homepage_uri: https://github.com/amaabca/aws-lex-conversation
114
+ rubygems_mfa_required: 'true'
113
115
  post_install_message:
114
116
  rdoc_options: []
115
117
  require_paths: