aws-sdk-lex 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50a0e82cab65f174d50dd6000044fb18d8038643
4
- data.tar.gz: a45f8a25725cbd77238e3bdfacfc66b413ca1d14
3
+ metadata.gz: 55af156cd3b33fe5e7c31e6e7563bdc43b89f045
4
+ data.tar.gz: f6b283079218e7756e119b57653040647874e0c0
5
5
  SHA512:
6
- metadata.gz: 29eda2c423a1e7bc1cfdc0e4dd9a426e25b746cc3740d3830f33d38e1755a2dcef9e9ea176defc50c4529276ec99bb3ca72270660ae5db1a25bcb9b4bb06f47e
7
- data.tar.gz: c39d891496368bd7a2f89e140a2e42b990644e004329ea353faf08c83e5611694a818a3d4a9d119abb8f0f9709859781fac09f206ba263ad5a1b4578cd476137
6
+ metadata.gz: 0fea9c58175033af1068938792a25a1bedbeb15ea1355697318016ecb0f8c16cf198b722980f2ded37f53dc47faa01f6865342245f9a8c34e9b84c3cd4c50774
7
+ data.tar.gz: f9798d7a2ac3afa54d5952e9cc6f423380ef179469a96a192d9c6897d999a2207a729b30f59a9e9beb2526a3e4ba9d1ff674eb7a1c4bab2a05ed6be1e464be6c
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lex/customizations'
42
42
  # @service
43
43
  module Aws::Lex
44
44
 
45
- GEM_VERSION = '1.2.0'
45
+ GEM_VERSION = '1.3.0'
46
46
 
47
47
  end
@@ -352,6 +352,7 @@ module Aws::Lex
352
352
  # * {Types::PostContentResponse#slots #slots} => String
353
353
  # * {Types::PostContentResponse#session_attributes #session_attributes} => String
354
354
  # * {Types::PostContentResponse#message #message} => String
355
+ # * {Types::PostContentResponse#message_format #message_format} => String
355
356
  # * {Types::PostContentResponse#dialog_state #dialog_state} => String
356
357
  # * {Types::PostContentResponse#slot_to_elicit #slot_to_elicit} => String
357
358
  # * {Types::PostContentResponse#input_transcript #input_transcript} => String
@@ -377,6 +378,7 @@ module Aws::Lex
377
378
  # resp.slots #=> String
378
379
  # resp.session_attributes #=> String
379
380
  # resp.message #=> String
381
+ # resp.message_format #=> String, one of "PlainText", "CustomPayload", "SSML", "Composite"
380
382
  # resp.dialog_state #=> String, one of "ElicitIntent", "ConfirmIntent", "ElicitSlot", "Fulfilled", "ReadyForFulfillment", "Failed"
381
383
  # resp.slot_to_elicit #=> String
382
384
  # resp.input_transcript #=> String
@@ -513,6 +515,7 @@ module Aws::Lex
513
515
  # * {Types::PostTextResponse#slots #slots} => Hash<String,String>
514
516
  # * {Types::PostTextResponse#session_attributes #session_attributes} => Hash<String,String>
515
517
  # * {Types::PostTextResponse#message #message} => String
518
+ # * {Types::PostTextResponse#message_format #message_format} => String
516
519
  # * {Types::PostTextResponse#dialog_state #dialog_state} => String
517
520
  # * {Types::PostTextResponse#slot_to_elicit #slot_to_elicit} => String
518
521
  # * {Types::PostTextResponse#response_card #response_card} => Types::ResponseCard
@@ -540,6 +543,7 @@ module Aws::Lex
540
543
  # resp.session_attributes #=> Hash
541
544
  # resp.session_attributes["String"] #=> String
542
545
  # resp.message #=> String
546
+ # resp.message_format #=> String, one of "PlainText", "CustomPayload", "SSML", "Composite"
543
547
  # resp.dialog_state #=> String, one of "ElicitIntent", "ConfirmIntent", "ElicitSlot", "Fulfilled", "ReadyForFulfillment", "Failed"
544
548
  # resp.slot_to_elicit #=> String
545
549
  # resp.response_card.version #=> String
@@ -575,7 +579,7 @@ module Aws::Lex
575
579
  params: params,
576
580
  config: config)
577
581
  context[:gem_name] = 'aws-sdk-lex'
578
- context[:gem_version] = '1.2.0'
582
+ context[:gem_version] = '1.3.0'
579
583
  Seahorse::Client::Request.new(handlers, context)
580
584
  end
581
585
 
@@ -32,6 +32,7 @@ module Aws::Lex
32
32
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
33
33
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
34
34
  LoopDetectedException = Shapes::StructureShape.new(name: 'LoopDetectedException')
35
+ MessageFormatType = Shapes::StringShape.new(name: 'MessageFormatType')
35
36
  NotAcceptableException = Shapes::StructureShape.new(name: 'NotAcceptableException')
36
37
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
37
38
  PostContentRequest = Shapes::StructureShape.new(name: 'PostContentRequest')
@@ -78,6 +79,7 @@ module Aws::Lex
78
79
  PostContentResponse.add_member(:slots, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slots", metadata: {"jsonvalue"=>true}))
79
80
  PostContentResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-attributes", metadata: {"jsonvalue"=>true}))
80
81
  PostContentResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location: "header", location_name: "x-amz-lex-message"))
82
+ PostContentResponse.add_member(:message_format, Shapes::ShapeRef.new(shape: MessageFormatType, location: "header", location_name: "x-amz-lex-message-format"))
81
83
  PostContentResponse.add_member(:dialog_state, Shapes::ShapeRef.new(shape: DialogState, location: "header", location_name: "x-amz-lex-dialog-state"))
82
84
  PostContentResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slot-to-elicit"))
83
85
  PostContentResponse.add_member(:input_transcript, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-input-transcript"))
@@ -98,6 +100,7 @@ module Aws::Lex
98
100
  PostTextResponse.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
99
101
  PostTextResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
100
102
  PostTextResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location_name: "message"))
103
+ PostTextResponse.add_member(:message_format, Shapes::ShapeRef.new(shape: MessageFormatType, location_name: "messageFormat"))
101
104
  PostTextResponse.add_member(:dialog_state, Shapes::ShapeRef.new(shape: DialogState, location_name: "dialogState"))
102
105
  PostTextResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location_name: "slotToElicit"))
103
106
  PostTextResponse.add_member(:response_card, Shapes::ShapeRef.new(shape: ResponseCard, location_name: "responseCard"))
@@ -261,19 +261,39 @@ module Aws::Lex
261
261
  # @return [String]
262
262
  #
263
263
  # @!attribute [rw] message
264
- # Message to convey to the user. It can come from the bot's
265
- # configuration or a code hook (Lambda function). If the current
266
- # intent is not configured with a code hook or if the code hook
267
- # returned `Delegate` as the `dialogAction.type` in its response, then
268
- # Amazon Lex decides the next course of action and selects an
269
- # appropriate message from the bot configuration based on the current
270
- # user interaction context. For example, if Amazon Lex is not able to
271
- # understand the user input, it uses a clarification prompt message
272
- # (For more information, see the Error Handling section in the Amazon
273
- # Lex console). Another example: if the intent requires confirmation
274
- # before fulfillment, then Amazon Lex uses the confirmation prompt
275
- # message in the intent configuration. If the code hook returns a
276
- # message, Amazon Lex passes it as-is in its response to the client.
264
+ # The message to convey to the user. The message can come from the
265
+ # bot's configuration or from a Lambda function.
266
+ #
267
+ # If the intent is not configured with a Lambda function, or if the
268
+ # Lambda function returned `Delegate` as the `dialogAction.type` its
269
+ # response, Amazon Lex decides on the next course of action and
270
+ # selects an appropriate message from the bot's configuration based
271
+ # on the current interaction context. For example, if Amazon Lex
272
+ # isn't able to understand user input, it uses a clarification prompt
273
+ # message.
274
+ #
275
+ # When you create an intent you can assign messages to groups. When
276
+ # messages are assigned to groups Amazon Lex returns one message from
277
+ # each group in the response. The message field is an escaped JSON
278
+ # string containing the messages. For more information about the
279
+ # structure of the JSON string returned, see msg-prompts-formats.
280
+ #
281
+ # If the Lambda function returns a message, Amazon Lex passes it to
282
+ # the client in its response.
283
+ # @return [String]
284
+ #
285
+ # @!attribute [rw] message_format
286
+ # The format of the response message. One of the following values:
287
+ #
288
+ # * `PlainText` - The message contains plain UTF-8 text.
289
+ #
290
+ # * `CustomPayload` - The message is a custom format for the client.
291
+ #
292
+ # * `SSML` - The message contains text formatted for voice output.
293
+ #
294
+ # * `Composite` - The message contains an escaped JSON object
295
+ # containing one or more messages from the groups that messages were
296
+ # assigned to when the intent was created.
277
297
  # @return [String]
278
298
  #
279
299
  # @!attribute [rw] dialog_state
@@ -358,6 +378,7 @@ module Aws::Lex
358
378
  :slots,
359
379
  :session_attributes,
360
380
  :message,
381
+ :message_format,
361
382
  :dialog_state,
362
383
  :slot_to_elicit,
363
384
  :input_transcript,
@@ -483,19 +504,40 @@ module Aws::Lex
483
504
  # @return [Hash<String,String>]
484
505
  #
485
506
  # @!attribute [rw] message
486
- # A message to convey to the user. It can come from the bot's
487
- # configuration or a code hook (Lambda function). If the current
488
- # intent is not configured with a code hook or the code hook returned
489
- # `Delegate` as the `dialogAction.type` in its response, then Amazon
490
- # Lex decides the next course of action and selects an appropriate
491
- # message from the bot configuration based on the current user
492
- # interaction context. For example, if Amazon Lex is not able to
493
- # understand the user input, it uses a clarification prompt message
494
- # (for more information, see the Error Handling section in the Amazon
495
- # Lex console). Another example: if the intent requires confirmation
496
- # before fulfillment, then Amazon Lex uses the confirmation prompt
497
- # message in the intent configuration. If the code hook returns a
498
- # message, Amazon Lex passes it as-is in its response to the client.
507
+ # The message to convey to the user. The message can come from the
508
+ # bot's configuration or from a Lambda function.
509
+ #
510
+ # If the intent is not configured with a Lambda function, or if the
511
+ # Lambda function returned `Delegate` as the `dialogAction.type` its
512
+ # response, Amazon Lex decides on the next course of action and
513
+ # selects an appropriate message from the bot's configuration based
514
+ # on the current interaction context. For example, if Amazon Lex
515
+ # isn't able to understand user input, it uses a clarification prompt
516
+ # message.
517
+ #
518
+ # When you create an intent you can assign messages to groups. When
519
+ # messages are assigned to groups Amazon Lex returns one message from
520
+ # each group in the response. The message field is an escaped JSON
521
+ # string containing the messages. For more information about the
522
+ # structure of the JSON string returned, see msg-prompts-formats.
523
+ #
524
+ # If the Lambda function returns a message, Amazon Lex passes it to
525
+ # the client in its response.
526
+ # @return [String]
527
+ #
528
+ # @!attribute [rw] message_format
529
+ # The format of the response message. One of the following values:
530
+ #
531
+ # * `PlainText` - The message contains plain UTF-8 text.
532
+ #
533
+ # * `CustomPayload` - The message is a custom format defined by the
534
+ # Lambda function.
535
+ #
536
+ # * `SSML` - The message contains text formatted for voice output.
537
+ #
538
+ # * `Composite` - The message contains an escaped JSON object
539
+ # containing one or more messages from the groups that messages were
540
+ # assigned to when the intent was created.
499
541
  # @return [String]
500
542
  #
501
543
  # @!attribute [rw] dialog_state
@@ -566,6 +608,7 @@ module Aws::Lex
566
608
  :slots,
567
609
  :session_attributes,
568
610
  :message,
611
+ :message_format,
569
612
  :dialog_state,
570
613
  :slot_to_elicit,
571
614
  :response_card)
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.2.0
4
+ version: 1.3.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: 2017-09-20 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core