aws-sdk-lex 1.19.0 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lex.rb +1 -1
- data/lib/aws-sdk-lex/client.rb +49 -5
- data/lib/aws-sdk-lex/client_api.rb +5 -1
- data/lib/aws-sdk-lex/types.rb +77 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 382ee6fceff41acd3572caa8f1f15a078c3fd318
|
4
|
+
data.tar.gz: f04eaf269b788e6df73b49286d964f8d5d9034ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac669033490f40372fb6c6c12a2eb606c29e23c113c5f3d902010ac9f33461dd2ae8d313106dedbdd7392b74cb50cd6aa9ca86f7a531c24d3bad9af85e085d0f
|
7
|
+
data.tar.gz: 38abdafbabe6b417be7af6f69651115dacd2777f913a374f260ae53f22468f4766df7fb66117ab9307487f8e9b378992f5234803af3afa338571f9cd97080cc6
|
data/lib/aws-sdk-lex.rb
CHANGED
data/lib/aws-sdk-lex/client.rb
CHANGED
@@ -308,6 +308,13 @@ module Aws::Lex
|
|
308
308
|
# The ID of the client application user. Amazon Lex uses this to
|
309
309
|
# identify a user's conversation with your bot.
|
310
310
|
#
|
311
|
+
# @option params [String] :checkpoint_label_filter
|
312
|
+
# A string used to filter the intents returned in the
|
313
|
+
# `recentIntentSummaryView` structure.
|
314
|
+
#
|
315
|
+
# When you specify a filter, only intents with their `checkpointLabel`
|
316
|
+
# field set to that string are returned.
|
317
|
+
#
|
311
318
|
# @return [Types::GetSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
312
319
|
#
|
313
320
|
# * {Types::GetSessionResponse#recent_intent_summary_view #recent_intent_summary_view} => Array<Types::IntentSummary>
|
@@ -321,12 +328,14 @@ module Aws::Lex
|
|
321
328
|
# bot_name: "BotName", # required
|
322
329
|
# bot_alias: "BotAlias", # required
|
323
330
|
# user_id: "UserId", # required
|
331
|
+
# checkpoint_label_filter: "IntentSummaryCheckpointLabel",
|
324
332
|
# })
|
325
333
|
#
|
326
334
|
# @example Response structure
|
327
335
|
#
|
328
336
|
# resp.recent_intent_summary_view #=> Array
|
329
337
|
# resp.recent_intent_summary_view[0].intent_name #=> String
|
338
|
+
# resp.recent_intent_summary_view[0].checkpoint_label #=> String
|
330
339
|
# resp.recent_intent_summary_view[0].slots #=> Hash
|
331
340
|
# resp.recent_intent_summary_view[0].slots["String"] #=> String
|
332
341
|
# resp.recent_intent_summary_view[0].confirmation_status #=> String, one of "None", "Confirmed", "Denied"
|
@@ -605,10 +614,9 @@ module Aws::Lex
|
|
605
614
|
req.send_request(options, &block)
|
606
615
|
end
|
607
616
|
|
608
|
-
# Sends user input
|
609
|
-
#
|
610
|
-
#
|
611
|
-
# built for the bot.
|
617
|
+
# Sends user input to Amazon Lex. Client applications can use this API
|
618
|
+
# to send requests to Amazon Lex at runtime. Amazon Lex then interprets
|
619
|
+
# the user input using the machine learning model it built for the bot.
|
612
620
|
#
|
613
621
|
# In response, Amazon Lex returns the next `message` to convey to the
|
614
622
|
# user an optional `responseCard` to display. Consider the following
|
@@ -807,6 +815,29 @@ module Aws::Lex
|
|
807
815
|
# Sets the next action that the bot should take to fulfill the
|
808
816
|
# conversation.
|
809
817
|
#
|
818
|
+
# @option params [Array<Types::IntentSummary>] :recent_intent_summary_view
|
819
|
+
# A summary of the recent intents for the bot. You can use the intent
|
820
|
+
# summary view to set a checkpoint label on an intent and modify
|
821
|
+
# attributes of intents. You can also use it to remove or add intent
|
822
|
+
# summary objects to the list.
|
823
|
+
#
|
824
|
+
# An intent that you modify or add to the list must make sense for the
|
825
|
+
# bot. For example, the intent name must be valid for the bot. You must
|
826
|
+
# provide valid values for:
|
827
|
+
#
|
828
|
+
# * `intentName`
|
829
|
+
#
|
830
|
+
# * slot names
|
831
|
+
#
|
832
|
+
# * `slotToElict`
|
833
|
+
#
|
834
|
+
# If you send the `recentIntentSummaryView` parameter in a `PutSession`
|
835
|
+
# request, the contents of the new summary view replaces the old summary
|
836
|
+
# view. For example, if a `GetSession` request returns three intents in
|
837
|
+
# the summary view and you call `PutSession` with one intent in the
|
838
|
+
# summary view, the next call to `GetSession` will only return one
|
839
|
+
# intent.
|
840
|
+
#
|
810
841
|
# @option params [String] :accept
|
811
842
|
# The message that Amazon Lex returns in the response can be either text
|
812
843
|
# or speech based depending on the value of this field.
|
@@ -868,6 +899,19 @@ module Aws::Lex
|
|
868
899
|
# message: "Text",
|
869
900
|
# message_format: "PlainText", # accepts PlainText, CustomPayload, SSML, Composite
|
870
901
|
# },
|
902
|
+
# recent_intent_summary_view: [
|
903
|
+
# {
|
904
|
+
# intent_name: "IntentName",
|
905
|
+
# checkpoint_label: "IntentSummaryCheckpointLabel",
|
906
|
+
# slots: {
|
907
|
+
# "String" => "String",
|
908
|
+
# },
|
909
|
+
# confirmation_status: "None", # accepts None, Confirmed, Denied
|
910
|
+
# dialog_action_type: "ElicitIntent", # required, accepts ElicitIntent, ConfirmIntent, ElicitSlot, Close, Delegate
|
911
|
+
# fulfillment_state: "Fulfilled", # accepts Fulfilled, Failed, ReadyForFulfillment
|
912
|
+
# slot_to_elicit: "String",
|
913
|
+
# },
|
914
|
+
# ],
|
871
915
|
# accept: "Accept",
|
872
916
|
# })
|
873
917
|
#
|
@@ -906,7 +950,7 @@ module Aws::Lex
|
|
906
950
|
params: params,
|
907
951
|
config: config)
|
908
952
|
context[:gem_name] = 'aws-sdk-lex'
|
909
|
-
context[:gem_version] = '1.
|
953
|
+
context[:gem_version] = '1.20.0'
|
910
954
|
Seahorse::Client::Request.new(handlers, context)
|
911
955
|
end
|
912
956
|
|
@@ -38,6 +38,7 @@ module Aws::Lex
|
|
38
38
|
HttpContentType = Shapes::StringShape.new(name: 'HttpContentType')
|
39
39
|
IntentName = Shapes::StringShape.new(name: 'IntentName')
|
40
40
|
IntentSummary = Shapes::StructureShape.new(name: 'IntentSummary')
|
41
|
+
IntentSummaryCheckpointLabel = Shapes::StringShape.new(name: 'IntentSummaryCheckpointLabel')
|
41
42
|
IntentSummaryList = Shapes::ListShape.new(name: 'IntentSummaryList')
|
42
43
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
43
44
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
@@ -109,6 +110,7 @@ module Aws::Lex
|
|
109
110
|
GetSessionRequest.add_member(:bot_name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "botName"))
|
110
111
|
GetSessionRequest.add_member(:bot_alias, Shapes::ShapeRef.new(shape: BotAlias, required: true, location: "uri", location_name: "botAlias"))
|
111
112
|
GetSessionRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "userId"))
|
113
|
+
GetSessionRequest.add_member(:checkpoint_label_filter, Shapes::ShapeRef.new(shape: IntentSummaryCheckpointLabel, location: "querystring", location_name: "checkpointLabelFilter"))
|
112
114
|
GetSessionRequest.struct_class = Types::GetSessionRequest
|
113
115
|
|
114
116
|
GetSessionResponse.add_member(:recent_intent_summary_view, Shapes::ShapeRef.new(shape: IntentSummaryList, location_name: "recentIntentSummaryView"))
|
@@ -118,6 +120,7 @@ module Aws::Lex
|
|
118
120
|
GetSessionResponse.struct_class = Types::GetSessionResponse
|
119
121
|
|
120
122
|
IntentSummary.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
|
123
|
+
IntentSummary.add_member(:checkpoint_label, Shapes::ShapeRef.new(shape: IntentSummaryCheckpointLabel, location_name: "checkpointLabel"))
|
121
124
|
IntentSummary.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
|
122
125
|
IntentSummary.add_member(:confirmation_status, Shapes::ShapeRef.new(shape: ConfirmationStatus, location_name: "confirmationStatus"))
|
123
126
|
IntentSummary.add_member(:dialog_action_type, Shapes::ShapeRef.new(shape: DialogActionType, required: true, location_name: "dialogActionType"))
|
@@ -192,6 +195,7 @@ module Aws::Lex
|
|
192
195
|
PutSessionRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "userId"))
|
193
196
|
PutSessionRequest.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
|
194
197
|
PutSessionRequest.add_member(:dialog_action, Shapes::ShapeRef.new(shape: DialogAction, location_name: "dialogAction"))
|
198
|
+
PutSessionRequest.add_member(:recent_intent_summary_view, Shapes::ShapeRef.new(shape: IntentSummaryList, location_name: "recentIntentSummaryView"))
|
195
199
|
PutSessionRequest.add_member(:accept, Shapes::ShapeRef.new(shape: Accept, location: "header", location_name: "Accept"))
|
196
200
|
PutSessionRequest.struct_class = Types::PutSessionRequest
|
197
201
|
|
@@ -261,7 +265,7 @@ module Aws::Lex
|
|
261
265
|
api.add_operation(:get_session, Seahorse::Model::Operation.new.tap do |o|
|
262
266
|
o.name = "GetSession"
|
263
267
|
o.http_method = "GET"
|
264
|
-
o.http_request_uri = "/bot/{botName}/alias/{botAlias}/user/{userId}/session"
|
268
|
+
o.http_request_uri = "/bot/{botName}/alias/{botAlias}/user/{userId}/session/"
|
265
269
|
o.input = Shapes::ShapeRef.new(shape: GetSessionRequest)
|
266
270
|
o.output = Shapes::ShapeRef.new(shape: GetSessionResponse)
|
267
271
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
data/lib/aws-sdk-lex/types.rb
CHANGED
@@ -291,6 +291,7 @@ module Aws::Lex
|
|
291
291
|
# bot_name: "BotName", # required
|
292
292
|
# bot_alias: "BotAlias", # required
|
293
293
|
# user_id: "UserId", # required
|
294
|
+
# checkpoint_label_filter: "IntentSummaryCheckpointLabel",
|
294
295
|
# }
|
295
296
|
#
|
296
297
|
# @!attribute [rw] bot_name
|
@@ -306,12 +307,21 @@ module Aws::Lex
|
|
306
307
|
# identify a user's conversation with your bot.
|
307
308
|
# @return [String]
|
308
309
|
#
|
310
|
+
# @!attribute [rw] checkpoint_label_filter
|
311
|
+
# A string used to filter the intents returned in the
|
312
|
+
# `recentIntentSummaryView` structure.
|
313
|
+
#
|
314
|
+
# When you specify a filter, only intents with their `checkpointLabel`
|
315
|
+
# field set to that string are returned.
|
316
|
+
# @return [String]
|
317
|
+
#
|
309
318
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/GetSessionRequest AWS API Documentation
|
310
319
|
#
|
311
320
|
class GetSessionRequest < Struct.new(
|
312
321
|
:bot_name,
|
313
322
|
:bot_alias,
|
314
|
-
:user_id
|
323
|
+
:user_id,
|
324
|
+
:checkpoint_label_filter)
|
315
325
|
include Aws::Structure
|
316
326
|
end
|
317
327
|
|
@@ -320,6 +330,9 @@ module Aws::Lex
|
|
320
330
|
# array can contain a maximum of three summaries. If more than three
|
321
331
|
# intents are used in the session, the `recentIntentSummaryView`
|
322
332
|
# operation contains information about the last three intents used.
|
333
|
+
#
|
334
|
+
# If you set the `checkpointLabelFilter` parameter in the request, the
|
335
|
+
# array contains only the intents with the specified label.
|
323
336
|
# @return [Array<Types::IntentSummary>]
|
324
337
|
#
|
325
338
|
# @!attribute [rw] session_attributes
|
@@ -351,10 +364,34 @@ module Aws::Lex
|
|
351
364
|
# process the intent, or so that you can return the intent to its
|
352
365
|
# previous state.
|
353
366
|
#
|
367
|
+
# @note When making an API call, you may pass IntentSummary
|
368
|
+
# data as a hash:
|
369
|
+
#
|
370
|
+
# {
|
371
|
+
# intent_name: "IntentName",
|
372
|
+
# checkpoint_label: "IntentSummaryCheckpointLabel",
|
373
|
+
# slots: {
|
374
|
+
# "String" => "String",
|
375
|
+
# },
|
376
|
+
# confirmation_status: "None", # accepts None, Confirmed, Denied
|
377
|
+
# dialog_action_type: "ElicitIntent", # required, accepts ElicitIntent, ConfirmIntent, ElicitSlot, Close, Delegate
|
378
|
+
# fulfillment_state: "Fulfilled", # accepts Fulfilled, Failed, ReadyForFulfillment
|
379
|
+
# slot_to_elicit: "String",
|
380
|
+
# }
|
381
|
+
#
|
354
382
|
# @!attribute [rw] intent_name
|
355
383
|
# The name of the intent.
|
356
384
|
# @return [String]
|
357
385
|
#
|
386
|
+
# @!attribute [rw] checkpoint_label
|
387
|
+
# A user-defined label that identifies a particular intent. You can
|
388
|
+
# use this label to return to a previous intent.
|
389
|
+
#
|
390
|
+
# Use the `checkpointLabelFilter` parameter of the `GetSessionRequest`
|
391
|
+
# operation to filter the intents returned by the operation to those
|
392
|
+
# with only the specified label.
|
393
|
+
# @return [String]
|
394
|
+
#
|
358
395
|
# @!attribute [rw] slots
|
359
396
|
# Map of the slots that have been gathered and their values.
|
360
397
|
# @return [Hash<String,String>]
|
@@ -418,6 +455,7 @@ module Aws::Lex
|
|
418
455
|
#
|
419
456
|
class IntentSummary < Struct.new(
|
420
457
|
:intent_name,
|
458
|
+
:checkpoint_label,
|
421
459
|
:slots,
|
422
460
|
:confirmation_status,
|
423
461
|
:dialog_action_type,
|
@@ -1068,6 +1106,19 @@ module Aws::Lex
|
|
1068
1106
|
# message: "Text",
|
1069
1107
|
# message_format: "PlainText", # accepts PlainText, CustomPayload, SSML, Composite
|
1070
1108
|
# },
|
1109
|
+
# recent_intent_summary_view: [
|
1110
|
+
# {
|
1111
|
+
# intent_name: "IntentName",
|
1112
|
+
# checkpoint_label: "IntentSummaryCheckpointLabel",
|
1113
|
+
# slots: {
|
1114
|
+
# "String" => "String",
|
1115
|
+
# },
|
1116
|
+
# confirmation_status: "None", # accepts None, Confirmed, Denied
|
1117
|
+
# dialog_action_type: "ElicitIntent", # required, accepts ElicitIntent, ConfirmIntent, ElicitSlot, Close, Delegate
|
1118
|
+
# fulfillment_state: "Fulfilled", # accepts Fulfilled, Failed, ReadyForFulfillment
|
1119
|
+
# slot_to_elicit: "String",
|
1120
|
+
# },
|
1121
|
+
# ],
|
1071
1122
|
# accept: "Accept",
|
1072
1123
|
# }
|
1073
1124
|
#
|
@@ -1095,6 +1146,30 @@ module Aws::Lex
|
|
1095
1146
|
# conversation.
|
1096
1147
|
# @return [Types::DialogAction]
|
1097
1148
|
#
|
1149
|
+
# @!attribute [rw] recent_intent_summary_view
|
1150
|
+
# A summary of the recent intents for the bot. You can use the intent
|
1151
|
+
# summary view to set a checkpoint label on an intent and modify
|
1152
|
+
# attributes of intents. You can also use it to remove or add intent
|
1153
|
+
# summary objects to the list.
|
1154
|
+
#
|
1155
|
+
# An intent that you modify or add to the list must make sense for the
|
1156
|
+
# bot. For example, the intent name must be valid for the bot. You
|
1157
|
+
# must provide valid values for:
|
1158
|
+
#
|
1159
|
+
# * `intentName`
|
1160
|
+
#
|
1161
|
+
# * slot names
|
1162
|
+
#
|
1163
|
+
# * `slotToElict`
|
1164
|
+
#
|
1165
|
+
# If you send the `recentIntentSummaryView` parameter in a
|
1166
|
+
# `PutSession` request, the contents of the new summary view replaces
|
1167
|
+
# the old summary view. For example, if a `GetSession` request returns
|
1168
|
+
# three intents in the summary view and you call `PutSession` with one
|
1169
|
+
# intent in the summary view, the next call to `GetSession` will only
|
1170
|
+
# return one intent.
|
1171
|
+
# @return [Array<Types::IntentSummary>]
|
1172
|
+
#
|
1098
1173
|
# @!attribute [rw] accept
|
1099
1174
|
# The message that Amazon Lex returns in the response can be either
|
1100
1175
|
# text or speech based depending on the value of this field.
|
@@ -1132,6 +1207,7 @@ module Aws::Lex
|
|
1132
1207
|
:user_id,
|
1133
1208
|
:session_attributes,
|
1134
1209
|
:dialog_action,
|
1210
|
+
:recent_intent_summary_view,
|
1135
1211
|
:accept)
|
1136
1212
|
include Aws::Structure
|
1137
1213
|
end
|
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.20.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: 2019-
|
11
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|