aws-sdk-lexruntimev2 1.18.0 → 1.20.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +8 -1
- data/lib/aws-sdk-lexruntimev2/client.rb +12 -2
- data/lib/aws-sdk-lexruntimev2/client_api.rb +8 -0
- data/lib/aws-sdk-lexruntimev2/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-lexruntimev2/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-lexruntimev2/types.rb +37 -3
- data/lib/aws-sdk-lexruntimev2.rb +1 -1
- 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: 4ecf8e97718c2b975b7db5ecd12491924de22c9edf92e795ea76ab5c82b3b982
|
|
4
|
+
data.tar.gz: 16d76148320e3d63571b76405be658fbe50e7f2638dad8ca03e9da796e677ee2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2bcd248e56595c82cdb940ca8440eb56132401887a3d8e57b36efcfef3574915a49b73fda35f0597ead8e38215760771c5b9e61a74f39850bedf643d93c35a6
|
|
7
|
+
data.tar.gz: 024a2d8dc2173f278a3543e01f5dc07c982694f148859255549470d14d078a1137132903c1332dd6a34349ea52de9d23527a752ac02194a3fa4c873728188c59
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.20.0 (2023-05-31)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
8
|
+
|
|
9
|
+
1.19.0 (2023-02-09)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - AWS Lex now supports Network of Bots.
|
|
13
|
+
|
|
4
14
|
1.18.0 (2023-01-18)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.20.0
|
|
@@ -220,6 +220,11 @@ module Aws::LexRuntimeV2
|
|
|
220
220
|
# in the future.
|
|
221
221
|
#
|
|
222
222
|
#
|
|
223
|
+
# @option options [String] :sdk_ua_app_id
|
|
224
|
+
# A unique and opaque application ID that is appended to the
|
|
225
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
|
226
|
+
# maximum length of 50.
|
|
227
|
+
#
|
|
223
228
|
# @option options [String] :secret_access_key
|
|
224
229
|
#
|
|
225
230
|
# @option options [String] :session_token
|
|
@@ -577,6 +582,8 @@ module Aws::LexRuntimeV2
|
|
|
577
582
|
# event.request_attributes["NonEmptyString"] #=> String
|
|
578
583
|
# event.session_id #=> String
|
|
579
584
|
# event.event_id #=> String
|
|
585
|
+
# event.recognized_bot_member.bot_id #=> String
|
|
586
|
+
# event.recognized_bot_member.bot_name #=> String
|
|
580
587
|
#
|
|
581
588
|
# For :text_response_event event available at #on_text_response_event_event callback and response eventstream enumerator:
|
|
582
589
|
# event.messages #=> Array
|
|
@@ -665,7 +672,7 @@ module Aws::LexRuntimeV2
|
|
|
665
672
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
|
666
673
|
config: config)
|
|
667
674
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
|
668
|
-
context[:gem_version] = '1.
|
|
675
|
+
context[:gem_version] = '1.20.0'
|
|
669
676
|
Seahorse::Client::Request.new(handlers, context)
|
|
670
677
|
end
|
|
671
678
|
|
|
@@ -286,6 +286,11 @@ module Aws::LexRuntimeV2
|
|
|
286
286
|
# in the future.
|
|
287
287
|
#
|
|
288
288
|
#
|
|
289
|
+
# @option options [String] :sdk_ua_app_id
|
|
290
|
+
# A unique and opaque application ID that is appended to the
|
|
291
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
|
292
|
+
# maximum length of 50.
|
|
293
|
+
#
|
|
289
294
|
# @option options [String] :secret_access_key
|
|
290
295
|
#
|
|
291
296
|
# @option options [String] :session_token
|
|
@@ -782,6 +787,7 @@ module Aws::LexRuntimeV2
|
|
|
782
787
|
# * {Types::RecognizeTextResponse#interpretations #interpretations} => Array<Types::Interpretation>
|
|
783
788
|
# * {Types::RecognizeTextResponse#request_attributes #request_attributes} => Hash<String,String>
|
|
784
789
|
# * {Types::RecognizeTextResponse#session_id #session_id} => String
|
|
790
|
+
# * {Types::RecognizeTextResponse#recognized_bot_member #recognized_bot_member} => Types::RecognizedBotMember
|
|
785
791
|
#
|
|
786
792
|
# @example Request syntax with placeholder values
|
|
787
793
|
#
|
|
@@ -928,6 +934,8 @@ module Aws::LexRuntimeV2
|
|
|
928
934
|
# resp.request_attributes #=> Hash
|
|
929
935
|
# resp.request_attributes["NonEmptyString"] #=> String
|
|
930
936
|
# resp.session_id #=> String
|
|
937
|
+
# resp.recognized_bot_member.bot_id #=> String
|
|
938
|
+
# resp.recognized_bot_member.bot_name #=> String
|
|
931
939
|
#
|
|
932
940
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RecognizeText AWS API Documentation
|
|
933
941
|
#
|
|
@@ -1059,7 +1067,7 @@ module Aws::LexRuntimeV2
|
|
|
1059
1067
|
# * If the value begins with `audio/`, Amazon Lex V2 returns speech in
|
|
1060
1068
|
# the response. Amazon Lex V2 uses Amazon Polly to generate the speech
|
|
1061
1069
|
# using the configuration that you specified in the
|
|
1062
|
-
# `
|
|
1070
|
+
# `responseContentType` parameter. For example, if you specify
|
|
1063
1071
|
# `audio/mpeg` as the value, Amazon Lex V2 returns speech in the MPEG
|
|
1064
1072
|
# format.
|
|
1065
1073
|
#
|
|
@@ -1093,6 +1101,7 @@ module Aws::LexRuntimeV2
|
|
|
1093
1101
|
# * {Types::RecognizeUtteranceResponse#session_id #session_id} => String
|
|
1094
1102
|
# * {Types::RecognizeUtteranceResponse#input_transcript #input_transcript} => String
|
|
1095
1103
|
# * {Types::RecognizeUtteranceResponse#audio_stream #audio_stream} => IO
|
|
1104
|
+
# * {Types::RecognizeUtteranceResponse#recognized_bot_member #recognized_bot_member} => String
|
|
1096
1105
|
#
|
|
1097
1106
|
# @example Request syntax with placeholder values
|
|
1098
1107
|
#
|
|
@@ -1119,6 +1128,7 @@ module Aws::LexRuntimeV2
|
|
|
1119
1128
|
# resp.session_id #=> String
|
|
1120
1129
|
# resp.input_transcript #=> String
|
|
1121
1130
|
# resp.audio_stream #=> IO
|
|
1131
|
+
# resp.recognized_bot_member #=> String
|
|
1122
1132
|
#
|
|
1123
1133
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RecognizeUtterance AWS API Documentation
|
|
1124
1134
|
#
|
|
@@ -1142,7 +1152,7 @@ module Aws::LexRuntimeV2
|
|
|
1142
1152
|
params: params,
|
|
1143
1153
|
config: config)
|
|
1144
1154
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
|
1145
|
-
context[:gem_version] = '1.
|
|
1155
|
+
context[:gem_version] = '1.20.0'
|
|
1146
1156
|
Seahorse::Client::Request.new(handlers, context)
|
|
1147
1157
|
end
|
|
1148
1158
|
|
|
@@ -79,6 +79,7 @@ module Aws::LexRuntimeV2
|
|
|
79
79
|
RecognizeTextResponse = Shapes::StructureShape.new(name: 'RecognizeTextResponse')
|
|
80
80
|
RecognizeUtteranceRequest = Shapes::StructureShape.new(name: 'RecognizeUtteranceRequest')
|
|
81
81
|
RecognizeUtteranceResponse = Shapes::StructureShape.new(name: 'RecognizeUtteranceResponse')
|
|
82
|
+
RecognizedBotMember = Shapes::StructureShape.new(name: 'RecognizedBotMember')
|
|
82
83
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
83
84
|
RuntimeHintDetails = Shapes::StructureShape.new(name: 'RuntimeHintDetails')
|
|
84
85
|
RuntimeHintPhrase = Shapes::StringShape.new(name: 'RuntimeHintPhrase')
|
|
@@ -232,6 +233,7 @@ module Aws::LexRuntimeV2
|
|
|
232
233
|
IntentResultEvent.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
|
|
233
234
|
IntentResultEvent.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
|
|
234
235
|
IntentResultEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
|
|
236
|
+
IntentResultEvent.add_member(:recognized_bot_member, Shapes::ShapeRef.new(shape: RecognizedBotMember, location_name: "recognizedBotMember"))
|
|
235
237
|
IntentResultEvent.struct_class = Types::IntentResultEvent
|
|
236
238
|
|
|
237
239
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
@@ -294,6 +296,7 @@ module Aws::LexRuntimeV2
|
|
|
294
296
|
RecognizeTextResponse.add_member(:interpretations, Shapes::ShapeRef.new(shape: Interpretations, location_name: "interpretations"))
|
|
295
297
|
RecognizeTextResponse.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
|
|
296
298
|
RecognizeTextResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
|
|
299
|
+
RecognizeTextResponse.add_member(:recognized_bot_member, Shapes::ShapeRef.new(shape: RecognizedBotMember, location_name: "recognizedBotMember"))
|
|
297
300
|
RecognizeTextResponse.struct_class = Types::RecognizeTextResponse
|
|
298
301
|
|
|
299
302
|
RecognizeUtteranceRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
|
|
@@ -318,10 +321,15 @@ module Aws::LexRuntimeV2
|
|
|
318
321
|
RecognizeUtteranceResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amz-lex-session-id"))
|
|
319
322
|
RecognizeUtteranceResponse.add_member(:input_transcript, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-input-transcript"))
|
|
320
323
|
RecognizeUtteranceResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
|
|
324
|
+
RecognizeUtteranceResponse.add_member(:recognized_bot_member, Shapes::ShapeRef.new(shape: NonEmptyString, location: "header", location_name: "x-amz-lex-recognized-bot-member"))
|
|
321
325
|
RecognizeUtteranceResponse.struct_class = Types::RecognizeUtteranceResponse
|
|
322
326
|
RecognizeUtteranceResponse[:payload] = :audio_stream
|
|
323
327
|
RecognizeUtteranceResponse[:payload_member] = RecognizeUtteranceResponse.member(:audio_stream)
|
|
324
328
|
|
|
329
|
+
RecognizedBotMember.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location_name: "botId"))
|
|
330
|
+
RecognizedBotMember.add_member(:bot_name, Shapes::ShapeRef.new(shape: Name, location_name: "botName"))
|
|
331
|
+
RecognizedBotMember.struct_class = Types::RecognizedBotMember
|
|
332
|
+
|
|
325
333
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
326
334
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
327
335
|
|
|
@@ -50,6 +50,9 @@ module Aws::LexRuntimeV2
|
|
|
50
50
|
|
|
51
51
|
def initialize(options = {})
|
|
52
52
|
self[:region] = options[:region]
|
|
53
|
+
if self[:region].nil?
|
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
|
55
|
+
end
|
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
|
55
58
|
if self[:use_dual_stack].nil?
|
|
@@ -15,7 +15,7 @@ module Aws::LexRuntimeV2
|
|
|
15
15
|
use_fips = parameters.use_fips
|
|
16
16
|
endpoint = parameters.endpoint
|
|
17
17
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
19
19
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
20
20
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
21
21
|
end
|
|
@@ -704,6 +704,10 @@ module Aws::LexRuntimeV2
|
|
|
704
704
|
# current session.
|
|
705
705
|
# @return [String]
|
|
706
706
|
#
|
|
707
|
+
# @!attribute [rw] recognized_bot_member
|
|
708
|
+
# The bot member that is processing the intent.
|
|
709
|
+
# @return [Types::RecognizedBotMember]
|
|
710
|
+
#
|
|
707
711
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/IntentResultEvent AWS API Documentation
|
|
708
712
|
#
|
|
709
713
|
class IntentResultEvent < Struct.new(
|
|
@@ -713,6 +717,7 @@ module Aws::LexRuntimeV2
|
|
|
713
717
|
:request_attributes,
|
|
714
718
|
:session_id,
|
|
715
719
|
:event_id,
|
|
720
|
+
:recognized_bot_member,
|
|
716
721
|
:event_type)
|
|
717
722
|
SENSITIVE = []
|
|
718
723
|
include Aws::Structure
|
|
@@ -1036,6 +1041,10 @@ module Aws::LexRuntimeV2
|
|
|
1036
1041
|
# The identifier of the session in use.
|
|
1037
1042
|
# @return [String]
|
|
1038
1043
|
#
|
|
1044
|
+
# @!attribute [rw] recognized_bot_member
|
|
1045
|
+
# The bot member that recognized the text.
|
|
1046
|
+
# @return [Types::RecognizedBotMember]
|
|
1047
|
+
#
|
|
1039
1048
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RecognizeTextResponse AWS API Documentation
|
|
1040
1049
|
#
|
|
1041
1050
|
class RecognizeTextResponse < Struct.new(
|
|
@@ -1043,7 +1052,8 @@ module Aws::LexRuntimeV2
|
|
|
1043
1052
|
:session_state,
|
|
1044
1053
|
:interpretations,
|
|
1045
1054
|
:request_attributes,
|
|
1046
|
-
:session_id
|
|
1055
|
+
:session_id,
|
|
1056
|
+
:recognized_bot_member)
|
|
1047
1057
|
SENSITIVE = []
|
|
1048
1058
|
include Aws::Structure
|
|
1049
1059
|
end
|
|
@@ -1122,7 +1132,7 @@ module Aws::LexRuntimeV2
|
|
|
1122
1132
|
# * If the value begins with `audio/`, Amazon Lex V2 returns speech in
|
|
1123
1133
|
# the response. Amazon Lex V2 uses Amazon Polly to generate the
|
|
1124
1134
|
# speech using the configuration that you specified in the
|
|
1125
|
-
# `
|
|
1135
|
+
# `responseContentType` parameter. For example, if you specify
|
|
1126
1136
|
# `audio/mpeg` as the value, Amazon Lex V2 returns speech in the
|
|
1127
1137
|
# MPEG format.
|
|
1128
1138
|
#
|
|
@@ -1251,6 +1261,10 @@ module Aws::LexRuntimeV2
|
|
|
1251
1261
|
# Amazon Lex V2 sends that message in the response.
|
|
1252
1262
|
# @return [IO]
|
|
1253
1263
|
#
|
|
1264
|
+
# @!attribute [rw] recognized_bot_member
|
|
1265
|
+
# The bot member that recognized the utterance.
|
|
1266
|
+
# @return [String]
|
|
1267
|
+
#
|
|
1254
1268
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RecognizeUtteranceResponse AWS API Documentation
|
|
1255
1269
|
#
|
|
1256
1270
|
class RecognizeUtteranceResponse < Struct.new(
|
|
@@ -1262,7 +1276,27 @@ module Aws::LexRuntimeV2
|
|
|
1262
1276
|
:request_attributes,
|
|
1263
1277
|
:session_id,
|
|
1264
1278
|
:input_transcript,
|
|
1265
|
-
:audio_stream
|
|
1279
|
+
:audio_stream,
|
|
1280
|
+
:recognized_bot_member)
|
|
1281
|
+
SENSITIVE = []
|
|
1282
|
+
include Aws::Structure
|
|
1283
|
+
end
|
|
1284
|
+
|
|
1285
|
+
# The bot member that processes the request.
|
|
1286
|
+
#
|
|
1287
|
+
# @!attribute [rw] bot_id
|
|
1288
|
+
# The identifier of the bot member that processes the request.
|
|
1289
|
+
# @return [String]
|
|
1290
|
+
#
|
|
1291
|
+
# @!attribute [rw] bot_name
|
|
1292
|
+
# The name of the bot member that processes the request.
|
|
1293
|
+
# @return [String]
|
|
1294
|
+
#
|
|
1295
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RecognizedBotMember AWS API Documentation
|
|
1296
|
+
#
|
|
1297
|
+
class RecognizedBotMember < Struct.new(
|
|
1298
|
+
:bot_id,
|
|
1299
|
+
:bot_name)
|
|
1266
1300
|
SENSITIVE = []
|
|
1267
1301
|
include Aws::Structure
|
|
1268
1302
|
end
|
data/lib/aws-sdk-lexruntimev2.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-lexruntimev2
|
|
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: 2023-
|
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
version: '3'
|
|
20
20
|
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 3.
|
|
22
|
+
version: 3.174.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
version: '3'
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 3.
|
|
32
|
+
version: 3.174.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|