aws-sdk-lexruntimev2 1.18.0 → 1.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c26df7492f393ad42bc3e76d4a126122a7d162735625cd3b5fac0550dc5950d
4
- data.tar.gz: 59c0fbcb9fde494f14aab28ad4dfb41452d934c6bf0ee42a164237491b6464f6
3
+ metadata.gz: 28c41696efd27606746e5b102332bea415c3369104496be9dae5d3aacbae97af
4
+ data.tar.gz: 5d6d4aa31271132dfc380d6c39715f3ca858b47692b4101061a42fbe02e4c51d
5
5
  SHA512:
6
- metadata.gz: c39e5cf6673d9b397b59eefa40ea980e1b991f01cdaac1cef9194be359bb8fe1a3317db738766c55cdfb5c816c4f8f48a5af3b9d11f2b07ebf0f729f021b51bc
7
- data.tar.gz: cac575579cf951a2fb3c62ce16686a35b3ee335de25f5d6d2f5fa25462b7ef5cc8df1ff05c5b9f64097ef7415311e3716b2a1a834b98be9afb94968f462e8461
6
+ metadata.gz: ab7957091355ef3748f8f0491ef9b248a7b1439fd492b888386e469abe9678900d70c3302ed9bb53f59125969def211b64d79537869dfc7510ded29842bde55c
7
+ data.tar.gz: 523ceff8565c96ab6f31bd8c9a02ecbd8a9f39ce1b125d4f78189ecec63ce2f51d651a6ccc1c00fb9c511a45f31291fcf25fddcfd4eb80a401bef7b702c4de16
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2023-02-09)
5
+ ------------------
6
+
7
+ * Feature - AWS Lex now supports Network of Bots.
8
+
4
9
  1.18.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.19.0
@@ -577,6 +577,8 @@ module Aws::LexRuntimeV2
577
577
  # event.request_attributes["NonEmptyString"] #=> String
578
578
  # event.session_id #=> String
579
579
  # event.event_id #=> String
580
+ # event.recognized_bot_member.bot_id #=> String
581
+ # event.recognized_bot_member.bot_name #=> String
580
582
  #
581
583
  # For :text_response_event event available at #on_text_response_event_event callback and response eventstream enumerator:
582
584
  # event.messages #=> Array
@@ -665,7 +667,7 @@ module Aws::LexRuntimeV2
665
667
  http_response: Seahorse::Client::Http::AsyncResponse.new,
666
668
  config: config)
667
669
  context[:gem_name] = 'aws-sdk-lexruntimev2'
668
- context[:gem_version] = '1.18.0'
670
+ context[:gem_version] = '1.19.0'
669
671
  Seahorse::Client::Request.new(handlers, context)
670
672
  end
671
673
 
@@ -782,6 +782,7 @@ module Aws::LexRuntimeV2
782
782
  # * {Types::RecognizeTextResponse#interpretations #interpretations} => Array<Types::Interpretation>
783
783
  # * {Types::RecognizeTextResponse#request_attributes #request_attributes} => Hash<String,String>
784
784
  # * {Types::RecognizeTextResponse#session_id #session_id} => String
785
+ # * {Types::RecognizeTextResponse#recognized_bot_member #recognized_bot_member} => Types::RecognizedBotMember
785
786
  #
786
787
  # @example Request syntax with placeholder values
787
788
  #
@@ -928,6 +929,8 @@ module Aws::LexRuntimeV2
928
929
  # resp.request_attributes #=> Hash
929
930
  # resp.request_attributes["NonEmptyString"] #=> String
930
931
  # resp.session_id #=> String
932
+ # resp.recognized_bot_member.bot_id #=> String
933
+ # resp.recognized_bot_member.bot_name #=> String
931
934
  #
932
935
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RecognizeText AWS API Documentation
933
936
  #
@@ -1059,7 +1062,7 @@ module Aws::LexRuntimeV2
1059
1062
  # * If the value begins with `audio/`, Amazon Lex V2 returns speech in
1060
1063
  # the response. Amazon Lex V2 uses Amazon Polly to generate the speech
1061
1064
  # using the configuration that you specified in the
1062
- # `requestContentType` parameter. For example, if you specify
1065
+ # `responseContentType` parameter. For example, if you specify
1063
1066
  # `audio/mpeg` as the value, Amazon Lex V2 returns speech in the MPEG
1064
1067
  # format.
1065
1068
  #
@@ -1093,6 +1096,7 @@ module Aws::LexRuntimeV2
1093
1096
  # * {Types::RecognizeUtteranceResponse#session_id #session_id} => String
1094
1097
  # * {Types::RecognizeUtteranceResponse#input_transcript #input_transcript} => String
1095
1098
  # * {Types::RecognizeUtteranceResponse#audio_stream #audio_stream} => IO
1099
+ # * {Types::RecognizeUtteranceResponse#recognized_bot_member #recognized_bot_member} => String
1096
1100
  #
1097
1101
  # @example Request syntax with placeholder values
1098
1102
  #
@@ -1119,6 +1123,7 @@ module Aws::LexRuntimeV2
1119
1123
  # resp.session_id #=> String
1120
1124
  # resp.input_transcript #=> String
1121
1125
  # resp.audio_stream #=> IO
1126
+ # resp.recognized_bot_member #=> String
1122
1127
  #
1123
1128
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RecognizeUtterance AWS API Documentation
1124
1129
  #
@@ -1142,7 +1147,7 @@ module Aws::LexRuntimeV2
1142
1147
  params: params,
1143
1148
  config: config)
1144
1149
  context[:gem_name] = 'aws-sdk-lexruntimev2'
1145
- context[:gem_version] = '1.18.0'
1150
+ context[:gem_version] = '1.19.0'
1146
1151
  Seahorse::Client::Request.new(handlers, context)
1147
1152
  end
1148
1153
 
@@ -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) && (url = Aws::Endpoints::Matchers.parse_url(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
- # `requestContentType` parameter. For example, if you specify
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
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-lexruntimev2/event_streams'
54
54
  # @!group service
55
55
  module Aws::LexRuntimeV2
56
56
 
57
- GEM_VERSION = '1.18.0'
57
+ GEM_VERSION = '1.19.0'
58
58
 
59
59
  end
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.18.0
4
+ version: 1.19.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-01-18 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core