aws-sdk-lexruntimev2 1.2.0 → 1.5.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 +20 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2.rb +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +30 -7
- data/lib/aws-sdk-lexruntimev2/client.rb +94 -37
- data/lib/aws-sdk-lexruntimev2/client_api.rb +8 -2
- data/lib/aws-sdk-lexruntimev2/event_streams.rb +20 -19
- data/lib/aws-sdk-lexruntimev2/types.rb +238 -139
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 493f659d261810ff63b7ae38fc10bc704914df35111be9d87ae3b20d35798e54
|
4
|
+
data.tar.gz: 69e7d4502cb78b11e2ff188595891d556cf1db8359ffdfeb610efbcada0c5bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5aedf261c44b26d8dde8cc09ebc437751e2cf652d023b018720e6d76f244c7f4401284e380e5225c2e6ae13fc67119c387ad9ac63a6a66737dcf3da480e873d
|
7
|
+
data.tar.gz: 2dbb80601666b1ed81e25408422435e6dda7d283437f5563fa4491c5bb0343391ae07af220f173a5e36c37277f7099458b947fb05dd5567a3b608831bb6a3c16
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.5.0 (2021-07-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.4.0 (2021-07-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.3.1 (2021-07-14)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - Remove `content-length` header from `AsyncClient`.
|
18
|
+
|
19
|
+
1.3.0 (2021-06-15)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds support for Multi Valued slots in Amazon Lex V2 APIs for runtime
|
23
|
+
|
4
24
|
1.2.0 (2021-03-10)
|
5
25
|
------------------
|
6
26
|
|
@@ -15,4 +35,3 @@ Unreleased Changes
|
|
15
35
|
------------------
|
16
36
|
|
17
37
|
* Feature - Initial release of `aws-sdk-lexruntimev2`.
|
18
|
-
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
data/lib/aws-sdk-lexruntimev2.rb
CHANGED
@@ -12,7 +12,6 @@ if RUBY_VERSION >= '2.1'
|
|
12
12
|
require 'http/2'
|
13
13
|
rescue LoadError; end
|
14
14
|
end
|
15
|
-
require 'seahorse/client/plugins/content_length.rb'
|
16
15
|
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
17
16
|
require 'aws-sdk-core/plugins/logging.rb'
|
18
17
|
require 'aws-sdk-core/plugins/param_converter.rb'
|
@@ -42,7 +41,6 @@ module Aws::LexRuntimeV2
|
|
42
41
|
|
43
42
|
set_api(ClientApi::API)
|
44
43
|
|
45
|
-
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
46
44
|
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
47
45
|
add_plugin(Aws::Plugins::Logging)
|
48
46
|
add_plugin(Aws::Plugins::ParamConverter)
|
@@ -239,9 +237,28 @@ module Aws::LexRuntimeV2
|
|
239
237
|
|
240
238
|
# Starts an HTTP/2 bidirectional event stream that enables you to send
|
241
239
|
# audio, text, or DTMF input in real time. After your application starts
|
242
|
-
# a conversation, users send input to Amazon Lex as a stream of
|
243
|
-
# Amazon Lex processes the incoming events and responds with
|
244
|
-
# text or audio events.
|
240
|
+
# a conversation, users send input to Amazon Lex V2 as a stream of
|
241
|
+
# events. Amazon Lex V2 processes the incoming events and responds with
|
242
|
+
# streaming text or audio events.
|
243
|
+
#
|
244
|
+
# Audio input must be in the following format: `audio/lpcm
|
245
|
+
# sample-rate=8000 sample-size-bits=16 channel-count=1;
|
246
|
+
# is-big-endian=false`.
|
247
|
+
#
|
248
|
+
# The `StartConversation` operation is supported only in the following
|
249
|
+
# SDKs:
|
250
|
+
#
|
251
|
+
# * [AWS SDK for C++][1]
|
252
|
+
#
|
253
|
+
# * [AWS SDK for Java V2][2]
|
254
|
+
#
|
255
|
+
# * [AWS SDK for Ruby V3][3]
|
256
|
+
#
|
257
|
+
#
|
258
|
+
#
|
259
|
+
# [1]: https://docs.aws.amazon.com/goto/SdkForCpp/runtime.lex.v2-2020-08-07/StartConversation
|
260
|
+
# [2]: https://docs.aws.amazon.com/goto/SdkForJavaV2/runtime.lex.v2-2020-08-07/StartConversation
|
261
|
+
# [3]: https://docs.aws.amazon.com/goto/SdkForRubyV3/runtime.lex.v2-2020-08-07/StartConversation
|
245
262
|
#
|
246
263
|
# @option params [required, String] :bot_id
|
247
264
|
# The identifier of the bot to process the request.
|
@@ -256,7 +273,7 @@ module Aws::LexRuntimeV2
|
|
256
273
|
# The identifier of the user session that is having the conversation.
|
257
274
|
#
|
258
275
|
# @option params [String] :conversation_mode
|
259
|
-
# The conversation type that you are using the Amazon Lex. If the
|
276
|
+
# The conversation type that you are using the Amazon Lex V2. If the
|
260
277
|
# conversation mode is `AUDIO` you can send both audio and DTMF
|
261
278
|
# information. If the mode is `TEXT` you can only send text.
|
262
279
|
#
|
@@ -454,6 +471,9 @@ module Aws::LexRuntimeV2
|
|
454
471
|
# event.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
455
472
|
# event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
456
473
|
# event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
474
|
+
# event.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
475
|
+
# event.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
|
476
|
+
# event.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
457
477
|
# event.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
|
458
478
|
# event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
459
479
|
# event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot"
|
@@ -464,6 +484,9 @@ module Aws::LexRuntimeV2
|
|
464
484
|
# event.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
465
485
|
# event.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
466
486
|
# event.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
487
|
+
# event.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
488
|
+
# event.session_state.intent.slots["NonEmptyString"].values #=> Array
|
489
|
+
# event.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
467
490
|
# event.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
|
468
491
|
# event.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
469
492
|
# event.session_state.active_contexts #=> Array
|
@@ -567,7 +590,7 @@ module Aws::LexRuntimeV2
|
|
567
590
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
568
591
|
config: config)
|
569
592
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
570
|
-
context[:gem_version] = '1.
|
593
|
+
context[:gem_version] = '1.5.0'
|
571
594
|
Seahorse::Client::Request.new(handlers, context)
|
572
595
|
end
|
573
596
|
|
@@ -405,7 +405,7 @@ module Aws::LexRuntimeV2
|
|
405
405
|
# For example, you can use this operation to retrieve session
|
406
406
|
# information for a user that has left a long-running session in use.
|
407
407
|
#
|
408
|
-
# If the bot, alias, or session identifier doesn't exist, Amazon Lex
|
408
|
+
# If the bot, alias, or session identifier doesn't exist, Amazon Lex V2
|
409
409
|
# returns a `BadRequestException`. If the locale doesn't exist or is
|
410
410
|
# not enabled for the alias, you receive a `BadRequestException`.
|
411
411
|
#
|
@@ -463,6 +463,9 @@ module Aws::LexRuntimeV2
|
|
463
463
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
464
464
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
465
465
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
466
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
467
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
|
468
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
466
469
|
# resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
|
467
470
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
468
471
|
# resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot"
|
@@ -473,6 +476,9 @@ module Aws::LexRuntimeV2
|
|
473
476
|
# resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
474
477
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
475
478
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
479
|
+
# resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
480
|
+
# resp.session_state.intent.slots["NonEmptyString"].values #=> Array
|
481
|
+
# resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
476
482
|
# resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
|
477
483
|
# resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
478
484
|
# resp.session_state.active_contexts #=> Array
|
@@ -495,7 +501,7 @@ module Aws::LexRuntimeV2
|
|
495
501
|
end
|
496
502
|
|
497
503
|
# Creates a new session or modifies an existing session with an Amazon
|
498
|
-
# Lex bot. Use this operation to enable your application to set the
|
504
|
+
# Lex V2 bot. Use this operation to enable your application to set the
|
499
505
|
# state of the bot.
|
500
506
|
#
|
501
507
|
# @option params [required, String] :bot_id
|
@@ -517,22 +523,22 @@ module Aws::LexRuntimeV2
|
|
517
523
|
# @option params [required, Types::SessionState] :session_state
|
518
524
|
# Sets the state of the session with the user. You can use this to set
|
519
525
|
# the current intent, attributes, context, and dialog action. Use the
|
520
|
-
# dialog action to determine the next step that Amazon Lex should use
|
521
|
-
# the conversation with the user.
|
526
|
+
# dialog action to determine the next step that Amazon Lex V2 should use
|
527
|
+
# in the conversation with the user.
|
522
528
|
#
|
523
529
|
# @option params [Hash<String,String>] :request_attributes
|
524
|
-
# Request-specific information passed between Amazon Lex and the
|
525
|
-
# application.
|
530
|
+
# Request-specific information passed between Amazon Lex V2 and the
|
531
|
+
# client application.
|
526
532
|
#
|
527
533
|
# The namespace `x-amz-lex:` is reserved for special attributes. Don't
|
528
534
|
# create any request attributes with the prefix `x-amz-lex:`.
|
529
535
|
#
|
530
536
|
# @option params [String] :response_content_type
|
531
|
-
# The message that Amazon Lex returns in the response can be either
|
532
|
-
# or speech depending on the value of this parameter.
|
537
|
+
# The message that Amazon Lex V2 returns in the response can be either
|
538
|
+
# text or speech depending on the value of this parameter.
|
533
539
|
#
|
534
|
-
# * If the value is `text/plain; charset=utf-8`, Amazon Lex returns
|
535
|
-
# in the response.
|
540
|
+
# * If the value is `text/plain; charset=utf-8`, Amazon Lex V2 returns
|
541
|
+
# text in the response.
|
536
542
|
#
|
537
543
|
# ^
|
538
544
|
#
|
@@ -555,7 +561,7 @@ module Aws::LexRuntimeV2
|
|
555
561
|
# messages: [
|
556
562
|
# {
|
557
563
|
# content: "Text",
|
558
|
-
# content_type: "CustomPayload", # accepts CustomPayload, ImageResponseCard, PlainText, SSML
|
564
|
+
# content_type: "CustomPayload", # required, accepts CustomPayload, ImageResponseCard, PlainText, SSML
|
559
565
|
# image_response_card: {
|
560
566
|
# title: "AttachmentTitle", # required
|
561
567
|
# subtitle: "AttachmentTitle",
|
@@ -583,6 +589,12 @@ module Aws::LexRuntimeV2
|
|
583
589
|
# interpreted_value: "NonEmptyString", # required
|
584
590
|
# resolved_values: ["NonEmptyString"],
|
585
591
|
# },
|
592
|
+
# shape: "Scalar", # accepts Scalar, List
|
593
|
+
# values: [
|
594
|
+
# {
|
595
|
+
# # recursive Slot
|
596
|
+
# },
|
597
|
+
# ],
|
586
598
|
# },
|
587
599
|
# },
|
588
600
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting
|
@@ -595,7 +607,7 @@ module Aws::LexRuntimeV2
|
|
595
607
|
# time_to_live_in_seconds: 1, # required
|
596
608
|
# turns_to_live: 1, # required
|
597
609
|
# },
|
598
|
-
# context_attributes: {
|
610
|
+
# context_attributes: { # required
|
599
611
|
# "ParameterName" => "Text",
|
600
612
|
# },
|
601
613
|
# },
|
@@ -629,12 +641,13 @@ module Aws::LexRuntimeV2
|
|
629
641
|
req.send_request(options, &block)
|
630
642
|
end
|
631
643
|
|
632
|
-
# Sends user input to Amazon Lex. Client applications use this API to
|
633
|
-
# send requests to Amazon Lex at runtime. Amazon Lex then
|
634
|
-
# user input using the machine learning model that it
|
644
|
+
# Sends user input to Amazon Lex V2. Client applications use this API to
|
645
|
+
# send requests to Amazon Lex V2 at runtime. Amazon Lex V2 then
|
646
|
+
# interprets the user input using the machine learning model that it
|
647
|
+
# build for the bot.
|
635
648
|
#
|
636
|
-
# In response, Amazon Lex returns the next message to convey to the
|
637
|
-
# and an optional response card to display.
|
649
|
+
# In response, Amazon Lex V2 returns the next message to convey to the
|
650
|
+
# user and an optional response card to display.
|
638
651
|
#
|
639
652
|
# @option params [required, String] :bot_id
|
640
653
|
# The identifier of the bot that processes the request.
|
@@ -649,14 +662,14 @@ module Aws::LexRuntimeV2
|
|
649
662
|
# The identifier of the user session that is having the conversation.
|
650
663
|
#
|
651
664
|
# @option params [required, String] :text
|
652
|
-
# The text that the user entered. Amazon Lex interprets this text.
|
665
|
+
# The text that the user entered. Amazon Lex V2 interprets this text.
|
653
666
|
#
|
654
667
|
# @option params [Types::SessionState] :session_state
|
655
668
|
# The current state of the dialog between the user and the bot.
|
656
669
|
#
|
657
670
|
# @option params [Hash<String,String>] :request_attributes
|
658
671
|
# Request-specific information passed between the client application and
|
659
|
-
# Amazon Lex
|
672
|
+
# Amazon Lex V2
|
660
673
|
#
|
661
674
|
# The namespace `x-amz-lex:` is reserved for special attributes. Don't
|
662
675
|
# create any request attributes with the prefix `x-amz-lex:`.
|
@@ -691,6 +704,12 @@ module Aws::LexRuntimeV2
|
|
691
704
|
# interpreted_value: "NonEmptyString", # required
|
692
705
|
# resolved_values: ["NonEmptyString"],
|
693
706
|
# },
|
707
|
+
# shape: "Scalar", # accepts Scalar, List
|
708
|
+
# values: [
|
709
|
+
# {
|
710
|
+
# # recursive Slot
|
711
|
+
# },
|
712
|
+
# ],
|
694
713
|
# },
|
695
714
|
# },
|
696
715
|
# state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting
|
@@ -703,7 +722,7 @@ module Aws::LexRuntimeV2
|
|
703
722
|
# time_to_live_in_seconds: 1, # required
|
704
723
|
# turns_to_live: 1, # required
|
705
724
|
# },
|
706
|
-
# context_attributes: {
|
725
|
+
# context_attributes: { # required
|
707
726
|
# "ParameterName" => "Text",
|
708
727
|
# },
|
709
728
|
# },
|
@@ -737,6 +756,9 @@ module Aws::LexRuntimeV2
|
|
737
756
|
# resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
738
757
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
739
758
|
# resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
759
|
+
# resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
760
|
+
# resp.session_state.intent.slots["NonEmptyString"].values #=> Array
|
761
|
+
# resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
740
762
|
# resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
|
741
763
|
# resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
742
764
|
# resp.session_state.active_contexts #=> Array
|
@@ -761,6 +783,9 @@ module Aws::LexRuntimeV2
|
|
761
783
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
|
762
784
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
|
763
785
|
# resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
|
786
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
|
787
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
|
788
|
+
# resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
|
764
789
|
# resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
|
765
790
|
# resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
|
766
791
|
# resp.request_attributes #=> Hash
|
@@ -776,10 +801,35 @@ module Aws::LexRuntimeV2
|
|
776
801
|
req.send_request(options)
|
777
802
|
end
|
778
803
|
|
779
|
-
# Sends user input to Amazon Lex. You can send text or speech.
|
780
|
-
# use this API to send text and audio requests to Amazon Lex
|
781
|
-
# Amazon Lex interprets the user input using the machine
|
782
|
-
# built for the bot.
|
804
|
+
# Sends user input to Amazon Lex V2. You can send text or speech.
|
805
|
+
# Clients use this API to send text and audio requests to Amazon Lex V2
|
806
|
+
# at runtime. Amazon Lex V2 interprets the user input using the machine
|
807
|
+
# learning model built for the bot.
|
808
|
+
#
|
809
|
+
# The following request fields must be compressed with gzip and then
|
810
|
+
# base64 encoded before you send them to Amazon Lex V2.
|
811
|
+
#
|
812
|
+
# * requestAttributes
|
813
|
+
#
|
814
|
+
# * sessionState
|
815
|
+
#
|
816
|
+
# The following response fields are compressed using gzip and then
|
817
|
+
# base64 encoded by Amazon Lex V2. Before you can use these fields, you
|
818
|
+
# must decode and decompress them.
|
819
|
+
#
|
820
|
+
# * inputTranscript
|
821
|
+
#
|
822
|
+
# * interpretations
|
823
|
+
#
|
824
|
+
# * messages
|
825
|
+
#
|
826
|
+
# * requestAttributes
|
827
|
+
#
|
828
|
+
# * sessionState
|
829
|
+
#
|
830
|
+
# The example contains a Java application that compresses and encodes a
|
831
|
+
# Java object to send to Amazon Lex V2, and a second that decodes and
|
832
|
+
# decompresses a response from Amazon Lex V2.
|
783
833
|
#
|
784
834
|
# @option params [required, String] :bot_id
|
785
835
|
# The identifier of the bot that should receive the request.
|
@@ -797,16 +847,22 @@ module Aws::LexRuntimeV2
|
|
797
847
|
# @option params [String] :session_state
|
798
848
|
# Sets the state of the session with the user. You can use this to set
|
799
849
|
# the current intent, attributes, context, and dialog action. Use the
|
800
|
-
# dialog action to determine the next step that Amazon Lex should use
|
801
|
-
# the conversation with the user.
|
850
|
+
# dialog action to determine the next step that Amazon Lex V2 should use
|
851
|
+
# in the conversation with the user.
|
852
|
+
#
|
853
|
+
# The `sessionState` field must be compressed using gzip and then base64
|
854
|
+
# encoded before sending to Amazon Lex V2.
|
802
855
|
#
|
803
856
|
# @option params [String] :request_attributes
|
804
857
|
# Request-specific information passed between the client application and
|
805
|
-
# Amazon Lex
|
858
|
+
# Amazon Lex V2
|
806
859
|
#
|
807
860
|
# The namespace `x-amz-lex:` is reserved for special attributes. Don't
|
808
861
|
# create any request attributes for prefix `x-amz-lex:`.
|
809
862
|
#
|
863
|
+
# The `requestAttributes` field must be compressed using gzip and then
|
864
|
+
# base64 encoded before sending to Amazon Lex V2.
|
865
|
+
#
|
810
866
|
# @option params [required, String] :request_content_type
|
811
867
|
# Indicates the format for audio input or that the content is text. The
|
812
868
|
# header must start with one of the following prefixes:
|
@@ -833,17 +889,18 @@ module Aws::LexRuntimeV2
|
|
833
889
|
# ^
|
834
890
|
#
|
835
891
|
# @option params [String] :response_content_type
|
836
|
-
# The message that Amazon Lex returns in the response can be either
|
837
|
-
# or speech based on the `responseContentType` value.
|
892
|
+
# The message that Amazon Lex V2 returns in the response can be either
|
893
|
+
# text or speech based on the `responseContentType` value.
|
838
894
|
#
|
839
|
-
# * If the value is `text/plain;charset=utf-8`, Amazon Lex returns
|
840
|
-
# in the response.
|
895
|
+
# * If the value is `text/plain;charset=utf-8`, Amazon Lex V2 returns
|
896
|
+
# text in the response.
|
841
897
|
#
|
842
|
-
# * If the value begins with `audio/`, Amazon Lex returns speech in
|
843
|
-
# response. Amazon Lex uses Amazon Polly to generate the speech
|
844
|
-
# the configuration that you specified in the
|
845
|
-
# parameter. For example, if you specify
|
846
|
-
# Amazon Lex returns speech in the MPEG
|
898
|
+
# * If the value begins with `audio/`, Amazon Lex V2 returns speech in
|
899
|
+
# the response. Amazon Lex V2 uses Amazon Polly to generate the speech
|
900
|
+
# using the configuration that you specified in the
|
901
|
+
# `requestContentType` parameter. For example, if you specify
|
902
|
+
# `audio/mpeg` as the value, Amazon Lex V2 returns speech in the MPEG
|
903
|
+
# format.
|
847
904
|
#
|
848
905
|
# * If the value is `audio/pcm`, the speech returned is `audio/pcm` at
|
849
906
|
# 16 KHz in 16-bit, little-endian format.
|
@@ -924,7 +981,7 @@ module Aws::LexRuntimeV2
|
|
924
981
|
params: params,
|
925
982
|
config: config)
|
926
983
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
927
|
-
context[:gem_version] = '1.
|
984
|
+
context[:gem_version] = '1.5.0'
|
928
985
|
Seahorse::Client::Request.new(handlers, context)
|
929
986
|
end
|
930
987
|
|
@@ -84,6 +84,7 @@ module Aws::LexRuntimeV2
|
|
84
84
|
SentimentType = Shapes::StringShape.new(name: 'SentimentType')
|
85
85
|
SessionId = Shapes::StringShape.new(name: 'SessionId')
|
86
86
|
SessionState = Shapes::StructureShape.new(name: 'SessionState')
|
87
|
+
Shape = Shapes::StringShape.new(name: 'Shape')
|
87
88
|
Slot = Shapes::StructureShape.new(name: 'Slot')
|
88
89
|
Slots = Shapes::MapShape.new(name: 'Slots')
|
89
90
|
StartConversationRequest = Shapes::StructureShape.new(name: 'StartConversationRequest')
|
@@ -100,13 +101,14 @@ module Aws::LexRuntimeV2
|
|
100
101
|
TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
|
101
102
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
102
103
|
Value = Shapes::StructureShape.new(name: 'Value')
|
104
|
+
Values = Shapes::ListShape.new(name: 'Values')
|
103
105
|
|
104
106
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
105
107
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
106
108
|
|
107
109
|
ActiveContext.add_member(:name, Shapes::ShapeRef.new(shape: ActiveContextName, required: true, location_name: "name"))
|
108
110
|
ActiveContext.add_member(:time_to_live, Shapes::ShapeRef.new(shape: ActiveContextTimeToLive, required: true, location_name: "timeToLive"))
|
109
|
-
ActiveContext.add_member(:context_attributes, Shapes::ShapeRef.new(shape: ActiveContextParametersMap, location_name: "contextAttributes"))
|
111
|
+
ActiveContext.add_member(:context_attributes, Shapes::ShapeRef.new(shape: ActiveContextParametersMap, required: true, location_name: "contextAttributes"))
|
110
112
|
ActiveContext.struct_class = Types::ActiveContext
|
111
113
|
|
112
114
|
ActiveContextParametersMap.key = Shapes::ShapeRef.new(shape: ParameterName)
|
@@ -227,7 +229,7 @@ module Aws::LexRuntimeV2
|
|
227
229
|
Interpretations.member = Shapes::ShapeRef.new(shape: Interpretation)
|
228
230
|
|
229
231
|
Message.add_member(:content, Shapes::ShapeRef.new(shape: Text, location_name: "content"))
|
230
|
-
Message.add_member(:content_type, Shapes::ShapeRef.new(shape: MessageContentType, location_name: "contentType"))
|
232
|
+
Message.add_member(:content_type, Shapes::ShapeRef.new(shape: MessageContentType, required: true, location_name: "contentType"))
|
231
233
|
Message.add_member(:image_response_card, Shapes::ShapeRef.new(shape: ImageResponseCard, location_name: "imageResponseCard"))
|
232
234
|
Message.struct_class = Types::Message
|
233
235
|
|
@@ -325,6 +327,8 @@ module Aws::LexRuntimeV2
|
|
325
327
|
SessionState.struct_class = Types::SessionState
|
326
328
|
|
327
329
|
Slot.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
|
330
|
+
Slot.add_member(:shape, Shapes::ShapeRef.new(shape: Shape, location_name: "shape"))
|
331
|
+
Slot.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "values"))
|
328
332
|
Slot.struct_class = Types::Slot
|
329
333
|
|
330
334
|
Slots.key = Shapes::ShapeRef.new(shape: NonEmptyString)
|
@@ -398,6 +402,8 @@ module Aws::LexRuntimeV2
|
|
398
402
|
Value.add_member(:resolved_values, Shapes::ShapeRef.new(shape: StringList, location_name: "resolvedValues"))
|
399
403
|
Value.struct_class = Types::Value
|
400
404
|
|
405
|
+
Values.member = Shapes::ShapeRef.new(shape: Slot)
|
406
|
+
|
401
407
|
|
402
408
|
# @api private
|
403
409
|
API = Seahorse::Model::Api.new.tap do |api|
|