aws-sdk-lex 1.35.0 → 1.36.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lex.rb +1 -1
- data/lib/aws-sdk-lex/client.rb +7 -1
- data/lib/aws-sdk-lex/client_api.rb +8 -3
- data/lib/aws-sdk-lex/types.rb +65 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 003d1d236865d2cd33ddedaa0b76cdc75ec3451ed94ee059d716bda4b702a4b1
|
|
4
|
+
data.tar.gz: 697a4c92b6f048a92250000e1a247bcf5f911f9c1b17224a18050b08baed3431
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dba2f9f2c6525e5ee8f45d5cf6077489588518f1f6303907a3cc618721ea6762e004b0a25f37bfbc16520f528210b0b1709bb35c4f80a6fa1932490468267bcf
|
|
7
|
+
data.tar.gz: b8388a77a850e370f6ce228589492bef4f815ac66a2cd2c0b141cdb47d95be0535e7d1bcabc2d3d6cea2c979106dc969670057ad4f7b480d5115f28c98820d2a
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.36.0
|
data/lib/aws-sdk-lex.rb
CHANGED
data/lib/aws-sdk-lex/client.rb
CHANGED
|
@@ -669,10 +669,12 @@ module Aws::Lex
|
|
|
669
669
|
# * {Types::PostContentResponse#session_attributes #session_attributes} => String
|
|
670
670
|
# * {Types::PostContentResponse#sentiment_response #sentiment_response} => String
|
|
671
671
|
# * {Types::PostContentResponse#message #message} => String
|
|
672
|
+
# * {Types::PostContentResponse#encoded_message #encoded_message} => String
|
|
672
673
|
# * {Types::PostContentResponse#message_format #message_format} => String
|
|
673
674
|
# * {Types::PostContentResponse#dialog_state #dialog_state} => String
|
|
674
675
|
# * {Types::PostContentResponse#slot_to_elicit #slot_to_elicit} => String
|
|
675
676
|
# * {Types::PostContentResponse#input_transcript #input_transcript} => String
|
|
677
|
+
# * {Types::PostContentResponse#encoded_input_transcript #encoded_input_transcript} => String
|
|
676
678
|
# * {Types::PostContentResponse#audio_stream #audio_stream} => IO
|
|
677
679
|
# * {Types::PostContentResponse#bot_version #bot_version} => String
|
|
678
680
|
# * {Types::PostContentResponse#session_id #session_id} => String
|
|
@@ -702,10 +704,12 @@ module Aws::Lex
|
|
|
702
704
|
# resp.session_attributes #=> String
|
|
703
705
|
# resp.sentiment_response #=> String
|
|
704
706
|
# resp.message #=> String
|
|
707
|
+
# resp.encoded_message #=> String
|
|
705
708
|
# resp.message_format #=> String, one of "PlainText", "CustomPayload", "SSML", "Composite"
|
|
706
709
|
# resp.dialog_state #=> String, one of "ElicitIntent", "ConfirmIntent", "ElicitSlot", "Fulfilled", "ReadyForFulfillment", "Failed"
|
|
707
710
|
# resp.slot_to_elicit #=> String
|
|
708
711
|
# resp.input_transcript #=> String
|
|
712
|
+
# resp.encoded_input_transcript #=> String
|
|
709
713
|
# resp.audio_stream #=> IO
|
|
710
714
|
# resp.bot_version #=> String
|
|
711
715
|
# resp.session_id #=> String
|
|
@@ -1031,6 +1035,7 @@ module Aws::Lex
|
|
|
1031
1035
|
# * {Types::PutSessionResponse#slots #slots} => String
|
|
1032
1036
|
# * {Types::PutSessionResponse#session_attributes #session_attributes} => String
|
|
1033
1037
|
# * {Types::PutSessionResponse#message #message} => String
|
|
1038
|
+
# * {Types::PutSessionResponse#encoded_message #encoded_message} => String
|
|
1034
1039
|
# * {Types::PutSessionResponse#message_format #message_format} => String
|
|
1035
1040
|
# * {Types::PutSessionResponse#dialog_state #dialog_state} => String
|
|
1036
1041
|
# * {Types::PutSessionResponse#slot_to_elicit #slot_to_elicit} => String
|
|
@@ -1093,6 +1098,7 @@ module Aws::Lex
|
|
|
1093
1098
|
# resp.slots #=> String
|
|
1094
1099
|
# resp.session_attributes #=> String
|
|
1095
1100
|
# resp.message #=> String
|
|
1101
|
+
# resp.encoded_message #=> String
|
|
1096
1102
|
# resp.message_format #=> String, one of "PlainText", "CustomPayload", "SSML", "Composite"
|
|
1097
1103
|
# resp.dialog_state #=> String, one of "ElicitIntent", "ConfirmIntent", "ElicitSlot", "Fulfilled", "ReadyForFulfillment", "Failed"
|
|
1098
1104
|
# resp.slot_to_elicit #=> String
|
|
@@ -1122,7 +1128,7 @@ module Aws::Lex
|
|
|
1122
1128
|
params: params,
|
|
1123
1129
|
config: config)
|
|
1124
1130
|
context[:gem_name] = 'aws-sdk-lex'
|
|
1125
|
-
context[:gem_version] = '1.
|
|
1131
|
+
context[:gem_version] = '1.36.0'
|
|
1126
1132
|
Seahorse::Client::Request.new(handlers, context)
|
|
1127
1133
|
end
|
|
1128
1134
|
|
|
@@ -70,6 +70,8 @@ module Aws::Lex
|
|
|
70
70
|
PutSessionResponse = Shapes::StructureShape.new(name: 'PutSessionResponse')
|
|
71
71
|
RequestTimeoutException = Shapes::StructureShape.new(name: 'RequestTimeoutException')
|
|
72
72
|
ResponseCard = Shapes::StructureShape.new(name: 'ResponseCard')
|
|
73
|
+
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
|
74
|
+
SensitiveStringUnbounded = Shapes::StringShape.new(name: 'SensitiveStringUnbounded')
|
|
73
75
|
SentimentLabel = Shapes::StringShape.new(name: 'SentimentLabel')
|
|
74
76
|
SentimentResponse = Shapes::StructureShape.new(name: 'SentimentResponse')
|
|
75
77
|
SentimentScore = Shapes::StringShape.new(name: 'SentimentScore')
|
|
@@ -205,11 +207,13 @@ module Aws::Lex
|
|
|
205
207
|
PostContentResponse.add_member(:slots, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slots", metadata: {"jsonvalue"=>true}))
|
|
206
208
|
PostContentResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-attributes", metadata: {"jsonvalue"=>true}))
|
|
207
209
|
PostContentResponse.add_member(:sentiment_response, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-sentiment"))
|
|
208
|
-
PostContentResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location: "header", location_name: "x-amz-lex-message"))
|
|
210
|
+
PostContentResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, deprecated: true, location: "header", location_name: "x-amz-lex-message", metadata: {"deprecatedMessage"=>"The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales."}))
|
|
211
|
+
PostContentResponse.add_member(:encoded_message, Shapes::ShapeRef.new(shape: SensitiveString, location: "header", location_name: "x-amz-lex-encoded-message"))
|
|
209
212
|
PostContentResponse.add_member(:message_format, Shapes::ShapeRef.new(shape: MessageFormatType, location: "header", location_name: "x-amz-lex-message-format"))
|
|
210
213
|
PostContentResponse.add_member(:dialog_state, Shapes::ShapeRef.new(shape: DialogState, location: "header", location_name: "x-amz-lex-dialog-state"))
|
|
211
214
|
PostContentResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slot-to-elicit"))
|
|
212
|
-
PostContentResponse.add_member(:input_transcript, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-input-transcript"))
|
|
215
|
+
PostContentResponse.add_member(:input_transcript, Shapes::ShapeRef.new(shape: String, deprecated: true, location: "header", location_name: "x-amz-lex-input-transcript", metadata: {"deprecatedMessage"=>"The inputTranscript field is deprecated, use the encodedInputTranscript field instead. The inputTranscript field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales."}))
|
|
216
|
+
PostContentResponse.add_member(:encoded_input_transcript, Shapes::ShapeRef.new(shape: SensitiveStringUnbounded, location: "header", location_name: "x-amz-lex-encoded-input-transcript"))
|
|
213
217
|
PostContentResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
|
|
214
218
|
PostContentResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location: "header", location_name: "x-amz-lex-bot-version"))
|
|
215
219
|
PostContentResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-id"))
|
|
@@ -262,7 +266,8 @@ module Aws::Lex
|
|
|
262
266
|
PutSessionResponse.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location: "header", location_name: "x-amz-lex-intent-name"))
|
|
263
267
|
PutSessionResponse.add_member(:slots, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slots", metadata: {"jsonvalue"=>true}))
|
|
264
268
|
PutSessionResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-attributes", metadata: {"jsonvalue"=>true}))
|
|
265
|
-
PutSessionResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location: "header", location_name: "x-amz-lex-message"))
|
|
269
|
+
PutSessionResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, deprecated: true, location: "header", location_name: "x-amz-lex-message", metadata: {"deprecatedMessage"=>"The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales."}))
|
|
270
|
+
PutSessionResponse.add_member(:encoded_message, Shapes::ShapeRef.new(shape: SensitiveString, location: "header", location_name: "x-amz-lex-encoded-message"))
|
|
266
271
|
PutSessionResponse.add_member(:message_format, Shapes::ShapeRef.new(shape: MessageFormatType, location: "header", location_name: "x-amz-lex-message-format"))
|
|
267
272
|
PutSessionResponse.add_member(:dialog_state, Shapes::ShapeRef.new(shape: DialogState, location: "header", location_name: "x-amz-lex-dialog-state"))
|
|
268
273
|
PutSessionResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slot-to-elicit"))
|
data/lib/aws-sdk-lex/types.rb
CHANGED
|
@@ -890,6 +890,33 @@ module Aws::Lex
|
|
|
890
890
|
# @return [String]
|
|
891
891
|
#
|
|
892
892
|
# @!attribute [rw] message
|
|
893
|
+
# You can only use this field in the de-DE, en-AU, en-GB, en-US,
|
|
894
|
+
# es-419, es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other
|
|
895
|
+
# locales, the `message` field is null. You should use the
|
|
896
|
+
# `encodedMessage` field instead.
|
|
897
|
+
#
|
|
898
|
+
# The message to convey to the user. The message can come from the
|
|
899
|
+
# bot's configuration or from a Lambda function.
|
|
900
|
+
#
|
|
901
|
+
# If the intent is not configured with a Lambda function, or if the
|
|
902
|
+
# Lambda function returned `Delegate` as the `dialogAction.type` in
|
|
903
|
+
# its response, Amazon Lex decides on the next course of action and
|
|
904
|
+
# selects an appropriate message from the bot's configuration based
|
|
905
|
+
# on the current interaction context. For example, if Amazon Lex
|
|
906
|
+
# isn't able to understand user input, it uses a clarification prompt
|
|
907
|
+
# message.
|
|
908
|
+
#
|
|
909
|
+
# When you create an intent you can assign messages to groups. When
|
|
910
|
+
# messages are assigned to groups Amazon Lex returns one message from
|
|
911
|
+
# each group in the response. The message field is an escaped JSON
|
|
912
|
+
# string containing the messages. For more information about the
|
|
913
|
+
# structure of the JSON string returned, see msg-prompts-formats.
|
|
914
|
+
#
|
|
915
|
+
# If the Lambda function returns a message, Amazon Lex passes it to
|
|
916
|
+
# the client in its response.
|
|
917
|
+
# @return [String]
|
|
918
|
+
#
|
|
919
|
+
# @!attribute [rw] encoded_message
|
|
893
920
|
# The message to convey to the user. The message can come from the
|
|
894
921
|
# bot's configuration or from a Lambda function.
|
|
895
922
|
#
|
|
@@ -909,6 +936,9 @@ module Aws::Lex
|
|
|
909
936
|
#
|
|
910
937
|
# If the Lambda function returns a message, Amazon Lex passes it to
|
|
911
938
|
# the client in its response.
|
|
939
|
+
#
|
|
940
|
+
# The `encodedMessage` field is base-64 encoded. You must decode the
|
|
941
|
+
# field before you can use the value.
|
|
912
942
|
# @return [String]
|
|
913
943
|
#
|
|
914
944
|
# @!attribute [rw] message_format
|
|
@@ -981,6 +1011,11 @@ module Aws::Lex
|
|
|
981
1011
|
# @!attribute [rw] input_transcript
|
|
982
1012
|
# The text used to process the request.
|
|
983
1013
|
#
|
|
1014
|
+
# You can use this field only in the de-DE, en-AU, en-GB, en-US,
|
|
1015
|
+
# es-419, es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other
|
|
1016
|
+
# locales, the `inputTranscript` field is null. You should use the
|
|
1017
|
+
# `encodedInputTranscript` field instead.
|
|
1018
|
+
#
|
|
984
1019
|
# If the input was an audio stream, the `inputTranscript` field
|
|
985
1020
|
# contains the text extracted from the audio stream. This is the text
|
|
986
1021
|
# that is actually processed to recognize intents and slot values. You
|
|
@@ -988,6 +1023,19 @@ module Aws::Lex
|
|
|
988
1023
|
# processing the audio that you send.
|
|
989
1024
|
# @return [String]
|
|
990
1025
|
#
|
|
1026
|
+
# @!attribute [rw] encoded_input_transcript
|
|
1027
|
+
# The text used to process the request.
|
|
1028
|
+
#
|
|
1029
|
+
# If the input was an audio stream, the `encodedInputTranscript` field
|
|
1030
|
+
# contains the text extracted from the audio stream. This is the text
|
|
1031
|
+
# that is actually processed to recognize intents and slot values. You
|
|
1032
|
+
# can use this information to determine if Amazon Lex is correctly
|
|
1033
|
+
# processing the audio that you send.
|
|
1034
|
+
#
|
|
1035
|
+
# The `encodedInputTranscript` field is base-64 encoded. You must
|
|
1036
|
+
# decode the field before you can use the value.
|
|
1037
|
+
# @return [String]
|
|
1038
|
+
#
|
|
991
1039
|
# @!attribute [rw] audio_stream
|
|
992
1040
|
# The prompt (or statement) to convey to the user. This is based on
|
|
993
1041
|
# the bot configuration and context. For example, if Amazon Lex did
|
|
@@ -1029,15 +1077,17 @@ module Aws::Lex
|
|
|
1029
1077
|
:session_attributes,
|
|
1030
1078
|
:sentiment_response,
|
|
1031
1079
|
:message,
|
|
1080
|
+
:encoded_message,
|
|
1032
1081
|
:message_format,
|
|
1033
1082
|
:dialog_state,
|
|
1034
1083
|
:slot_to_elicit,
|
|
1035
1084
|
:input_transcript,
|
|
1085
|
+
:encoded_input_transcript,
|
|
1036
1086
|
:audio_stream,
|
|
1037
1087
|
:bot_version,
|
|
1038
1088
|
:session_id,
|
|
1039
1089
|
:active_contexts)
|
|
1040
|
-
SENSITIVE = [:message, :active_contexts]
|
|
1090
|
+
SENSITIVE = [:message, :encoded_message, :encoded_input_transcript, :active_contexts]
|
|
1041
1091
|
include Aws::Structure
|
|
1042
1092
|
end
|
|
1043
1093
|
|
|
@@ -1563,6 +1613,18 @@ module Aws::Lex
|
|
|
1563
1613
|
#
|
|
1564
1614
|
# @!attribute [rw] message
|
|
1565
1615
|
# The next message that should be presented to the user.
|
|
1616
|
+
#
|
|
1617
|
+
# You can only use this field in the de-DE, en-AU, en-GB, en-US,
|
|
1618
|
+
# es-419, es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other
|
|
1619
|
+
# locales, the `message` field is null. You should use the
|
|
1620
|
+
# `encodedMessage` field instead.
|
|
1621
|
+
# @return [String]
|
|
1622
|
+
#
|
|
1623
|
+
# @!attribute [rw] encoded_message
|
|
1624
|
+
# The next message that should be presented to the user.
|
|
1625
|
+
#
|
|
1626
|
+
# The `encodedMessage` field is base-64 encoded. You must decode the
|
|
1627
|
+
# field before you can use the value.
|
|
1566
1628
|
# @return [String]
|
|
1567
1629
|
#
|
|
1568
1630
|
# @!attribute [rw] message_format
|
|
@@ -1625,13 +1687,14 @@ module Aws::Lex
|
|
|
1625
1687
|
:slots,
|
|
1626
1688
|
:session_attributes,
|
|
1627
1689
|
:message,
|
|
1690
|
+
:encoded_message,
|
|
1628
1691
|
:message_format,
|
|
1629
1692
|
:dialog_state,
|
|
1630
1693
|
:slot_to_elicit,
|
|
1631
1694
|
:audio_stream,
|
|
1632
1695
|
:session_id,
|
|
1633
1696
|
:active_contexts)
|
|
1634
|
-
SENSITIVE = [:message, :active_contexts]
|
|
1697
|
+
SENSITIVE = [:message, :encoded_message, :active_contexts]
|
|
1635
1698
|
include Aws::Structure
|
|
1636
1699
|
end
|
|
1637
1700
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-lex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.36.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
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|
|
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
|
|
|
66
66
|
licenses:
|
|
67
67
|
- Apache-2.0
|
|
68
68
|
metadata:
|
|
69
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
|
70
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
|
69
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-lex
|
|
70
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-lex/CHANGELOG.md
|
|
71
71
|
post_install_message:
|
|
72
72
|
rdoc_options: []
|
|
73
73
|
require_paths:
|