aws-sdk-lexruntimev2 1.0.0 → 1.3.1

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
  SHA256:
3
- metadata.gz: 3b27294a6b8c0c120c13aa0f5dfe5eadac1a2e0f7c6748aebb0e4f7548b0b811
4
- data.tar.gz: 894edbde9056b387e6779f01f567b847a5fbfd2e8b0792b6b6994c3e0c5d21c7
3
+ metadata.gz: c57c84248f9e4ee9bdeda2ab7c5907c3aaa7588122c184609ff1249d25d8baa5
4
+ data.tar.gz: 137af9498fb41fd6abf63ac2e17cb4abaadd6582c5e03710de6840047973db11
5
5
  SHA512:
6
- metadata.gz: bfd3fa23a174a2fbbab448a4c6096fb50cd561e649f03690243d68529d15330b878d15f62b1cff5fe7e856070fd97b67b28baa86ffa0ad53e2ab0968c4fd0fa0
7
- data.tar.gz: 3517fa666e4405f0a0b68a0f20987730aff9e291620944c7767b35eec3687d660102f082ddfa7dfca0eff4621098630f4e8173e81eb87a7a1fa5ba5b04a71c12
6
+ metadata.gz: 9e8a89f47550bbfffa049f3e5166ce6947a74bea098843edcff1b64f1673b37c017f7b33d6ddeef4c77718240e27bee2f7ac67fbde057cce67bc0e781ee8d721
7
+ data.tar.gz: 6ce8c51123e78eb6b66a1001715972b69b378ade1c2a90020608a156b83c746da6746c7123dee8ddcd1f078d92f711356cfbdce4ad5a4ce3970d6d0ffe126015
data/CHANGELOG.md ADDED
@@ -0,0 +1,27 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.3.1 (2021-07-14)
5
+ ------------------
6
+
7
+ * Issue - Remove `content-length` header from `AsyncClient`.
8
+
9
+ 1.3.0 (2021-06-15)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for Multi Valued slots in Amazon Lex V2 APIs for runtime
13
+
14
+ 1.2.0 (2021-03-10)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.1.0 (2021-02-02)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.0.0 (2021-01-22)
25
+ ------------------
26
+
27
+ * Feature - Initial release of `aws-sdk-lexruntimev2`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.3.1
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-lexruntimev2/event_streams'
50
50
  # @!group service
51
51
  module Aws::LexRuntimeV2
52
52
 
53
- GEM_VERSION = '1.0.0'
53
+ GEM_VERSION = '1.3.1'
54
54
 
55
55
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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 events.
243
- # Amazon Lex processes the incoming events and responds with streaming
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.0.0'
593
+ context[:gem_version] = '1.3.1'
571
594
  Seahorse::Client::Request.new(handlers, context)
572
595
  end
573
596
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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 in
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 client
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 text
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 text
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 interprets the
634
- # user input using the machine learning model that it build for the bot.
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 user
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. Clients
780
- # use this API to send text and audio requests to Amazon Lex at runtime.
781
- # Amazon Lex interprets the user input using the machine learning model
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 in
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 text
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 text
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 the
843
- # response. Amazon Lex uses Amazon Polly to generate the speech using
844
- # the configuration that you specified in the `requestContentType`
845
- # parameter. For example, if you specify `audio/mpeg` as the value,
846
- # Amazon Lex returns speech in the MPEG format.
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.0.0'
984
+ context[:gem_version] = '1.3.1'
928
985
  Seahorse::Client::Request.new(handlers, context)
929
986
  end
930
987