aws-sdk-lexruntimev2 1.29.0 → 1.31.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: 59026ec64e5bfc0676d3cc24bc1af00a107a9ae144eec1c3ce6799f157233d3c
4
- data.tar.gz: b2d21ddfaf9c2a6ac55f1f95d2293105c179420d01ec62ec247d8a55be492572
3
+ metadata.gz: bfe86f1d719d762f4fcf5cc897564a6305aac13c8ff573a7cbf7eb76eb2d14ad
4
+ data.tar.gz: ac1fa3089b077173ab4d5cf794932f9c8552100678ddba4f43e695d35c198b4d
5
5
  SHA512:
6
- metadata.gz: d26b85aacf705eaaef863419123f8d8def30d0dce101edf2c64594c8c1c2391157ade6b5ac4878b13f3bdce6d3ed5a7321647752651917e39194329541e87cd9
7
- data.tar.gz: 36e3d4a30cc59f40db30e31510c18d4889d5e3190e02b0ba09e68778680a331bddd07fe38c86b5932ade8a18e0df88b0d6f6118b1580250a2cb9103264242cd6
6
+ metadata.gz: 335a3300e81c9c78458f9d64aa210c5dc2fa280dba1df5dccaf0367cb64fcd62aa81699d85aa7add78b3bc1a46591f1d3e18a1e83ad0c8c245150858c79cce6c
7
+ data.tar.gz: '0790139937b5c0d712f4f9b944188c1db2ac2870612a705fc1e7addbb5c18c57750e1a2fd81981c4e6ecac715a6d6b04f6a2681d9d6428c3fc4bb4d62bd9b86b'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.31.0 (2024-04-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.30.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.29.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.29.0
1
+ 1.31.0
@@ -21,13 +21,13 @@ require 'aws-sdk-core/plugins/global_configuration.rb'
21
21
  require 'aws-sdk-core/plugins/regional_endpoint.rb'
22
22
  require 'aws-sdk-core/plugins/stub_responses.rb'
23
23
  require 'aws-sdk-core/plugins/idempotency_token.rb'
24
+ require 'aws-sdk-core/plugins/invocation_id.rb'
24
25
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
25
26
  require 'aws-sdk-core/plugins/http_checksum.rb'
26
27
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
27
28
  require 'aws-sdk-core/plugins/request_compression.rb'
28
29
  require 'aws-sdk-core/plugins/defaults_mode.rb'
29
30
  require 'aws-sdk-core/plugins/recursion_detection.rb'
30
- require 'aws-sdk-core/plugins/invocation_id.rb'
31
31
  require 'aws-sdk-core/plugins/sign.rb'
32
32
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
33
33
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
@@ -54,13 +54,13 @@ module Aws::LexRuntimeV2
54
54
  add_plugin(Aws::Plugins::RegionalEndpoint)
55
55
  add_plugin(Aws::Plugins::StubResponses)
56
56
  add_plugin(Aws::Plugins::IdempotencyToken)
57
+ add_plugin(Aws::Plugins::InvocationId)
57
58
  add_plugin(Aws::Plugins::JsonvalueConverter)
58
59
  add_plugin(Aws::Plugins::HttpChecksum)
59
60
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
60
61
  add_plugin(Aws::Plugins::RequestCompression)
61
62
  add_plugin(Aws::Plugins::DefaultsMode)
62
63
  add_plugin(Aws::Plugins::RecursionDetection)
63
- add_plugin(Aws::Plugins::InvocationId)
64
64
  add_plugin(Aws::Plugins::Sign)
65
65
  add_plugin(Aws::Plugins::Protocols::RestJson)
66
66
  add_plugin(Aws::Plugins::EventStreamConfiguration)
@@ -147,10 +147,17 @@ module Aws::LexRuntimeV2
147
147
  # When set to 'true' the request body will not be compressed
148
148
  # for supported operations.
149
149
  #
150
- # @option options [String] :endpoint
151
- # The client endpoint is normally constructed from the `:region`
152
- # option. You should only configure an `:endpoint` when connecting
153
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
150
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
151
+ # Normally you should not configure the `:endpoint` option
152
+ # directly. This is normally constructed from the `:region`
153
+ # option. Configuring `:endpoint` is normally reserved for
154
+ # connecting to test or custom endpoints. The endpoint should
155
+ # be a URI formatted like:
156
+ #
157
+ # 'http://example.com'
158
+ # 'https://example.com'
159
+ # 'http://example.com:123'
160
+ #
154
161
  #
155
162
  # @option options [Proc] :event_stream_handler
156
163
  # When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
@@ -282,6 +289,44 @@ module Aws::LexRuntimeV2
282
289
  # @option options [Aws::LexRuntimeV2::EndpointProvider] :endpoint_provider
283
290
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LexRuntimeV2::EndpointParameters`
284
291
  #
292
+ # @option options [Integer] :connection_read_timeout (60)
293
+ # Connection read timeout in seconds, defaults to 60 sec.
294
+ #
295
+ # @option options [Integer] :connection_timeout (60)
296
+ # Connection timeout in seconds, defaults to 60 sec.
297
+ #
298
+ # @option options [Boolean] :enable_alpn (false)
299
+ # Set to `true` to enable ALPN in HTTP2 over TLS. Requires Openssl version >= 1.0.2.
300
+ # Defaults to false. Note: not all service HTTP2 operations supports ALPN on server
301
+ # side, please refer to service documentation.
302
+ #
303
+ # @option options [Boolean] :http_wire_trace (false)
304
+ # When `true`, HTTP2 debug output will be sent to the `:logger`.
305
+ #
306
+ # @option options [Integer] :max_concurrent_streams (100)
307
+ # Maximum concurrent streams used in HTTP2 connection, defaults to 100. Note that server may send back
308
+ # :settings_max_concurrent_streams value which will take priority when initializing new streams.
309
+ #
310
+ # @option options [Boolean] :raise_response_errors (true)
311
+ # Defaults to `true`, raises errors if exist when #wait or #join! is called upon async response.
312
+ #
313
+ # @option options [Integer] :read_chunk_size (1024)
314
+ #
315
+ # @option options [String] :ssl_ca_bundle
316
+ # Full path to the SSL certificate authority bundle file that should be used when
317
+ # verifying peer certificates. If you do not pass `:ssl_ca_directory` or `:ssl_ca_bundle`
318
+ # the system default will be used if available.
319
+ #
320
+ # @option options [String] :ssl_ca_directory
321
+ # Full path of the directory that contains the unbundled SSL certificate authority
322
+ # files for verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
323
+ # `:ssl_ca_directory` the system default will be used if available.
324
+ #
325
+ # @option options [String] :ssl_ca_store
326
+ #
327
+ # @option options [Boolean] :ssl_verify_peer (true)
328
+ # When `true`, SSL peer certificates are verified when establishing a connection.
329
+ #
285
330
  def initialize(*args)
286
331
  unless Kernel.const_defined?("HTTP2")
287
332
  raise "Must include http/2 gem to use AsyncClient instances."
@@ -368,19 +413,20 @@ module Aws::LexRuntimeV2
368
413
  #
369
414
  # @example Bi-directional EventStream Operation Example
370
415
  #
371
- # You can signal input events after initial request is
372
- # established, events will be sent to stream
373
- # immediately (once stream connection is established successfully).
416
+ # You can signal input events after the initial request is established. Events
417
+ # will be sent to the stream immediately once the stream connection is
418
+ # established successfully.
374
419
  #
375
- # To signal events, you can call #signal methods from an Aws::LexRuntimeV2::EventStreams::StartConversationRequestEventStream object.
376
- # Make sure signal events before calling #wait or #join! at async response.
420
+ # To signal events, you can call the #signal methods from an Aws::LexRuntimeV2::EventStreams::StartConversationRequestEventStream
421
+ # object. You must signal events before calling #wait or #join! on the async response.
377
422
  #
378
423
  # input_stream = Aws::LexRuntimeV2::EventStreams::StartConversationRequestEventStream.new
379
424
  #
380
- # async_resp = client.start_conversation( # params input,
425
+ # async_resp = client.start_conversation(
426
+ # # params input
381
427
  # input_event_stream_handler: input_stream) do |out_stream|
382
428
  #
383
- # # register callbacks for events arrival
429
+ # # register callbacks for events
384
430
  # out_stream.on_playback_interruption_event_event do |event|
385
431
  # event # => Aws::LexRuntimeV2::Types::PlaybackInterruptionEvent
386
432
  # end
@@ -425,7 +471,7 @@ module Aws::LexRuntimeV2
425
471
  # end
426
472
  #
427
473
  # end
428
- # # => returns Aws::Seahorse::Client::AsyncResponse
474
+ # # => Aws::Seahorse::Client::AsyncResponse
429
475
  #
430
476
  # # signal events
431
477
  # input_stream.signal_configuration_event_event( ... )
@@ -435,19 +481,19 @@ module Aws::LexRuntimeV2
435
481
  # input_stream.signal_playback_completion_event_event( ... )
436
482
  # input_stream.signal_disconnection_event_event( ... )
437
483
  #
438
- # # make sure signaling :end_stream in the end
484
+ # # make sure to signal :end_stream at the end
439
485
  # input_stream.signal_end_stream
440
486
  #
441
- # # wait until stream is closed before finalizing sync response
487
+ # # wait until stream is closed before finalizing the sync response
442
488
  # resp = async_resp.wait
443
- # # Or close stream and finalizing sync response immediately
489
+ # # Or close the stream and finalize sync response immediately
444
490
  # # resp = async_resp.join!
445
491
  #
446
- # Inorder to streamingly processing events received, you can also provide an Aws::LexRuntimeV2::EventStreams::StartConversationResponseEventStream
447
- # object to register callbacks before initializing request instead of processing from request block
492
+ # You can also provide an Aws::LexRuntimeV2::EventStreams::StartConversationResponseEventStream object to register callbacks
493
+ # before initializing the request instead of processing from the request block.
448
494
  #
449
495
  # output_stream = Aws::LexRuntimeV2::EventStreams::StartConversationResponseEventStream.new
450
- # # register callbacks for events arrival
496
+ # # register callbacks for output events
451
497
  # output_stream.on_playback_interruption_event_event do |event|
452
498
  # event # => Aws::LexRuntimeV2::Types::PlaybackInterruptionEvent
453
499
  # end
@@ -499,15 +545,15 @@ module Aws::LexRuntimeV2
499
545
  # # event.error_message => String
500
546
  # end
501
547
  #
502
- # async_resp = client.start_conversation ( #params input,
548
+ # async_resp = client.start_conversation (
549
+ # # params input
503
550
  # input_event_stream_handler: input_stream
504
551
  # output_event_stream_handler: output_stream
505
552
  # )
506
553
  #
507
- # resp = async_resp.wait!
554
+ # resp = async_resp.join!
508
555
  #
509
- # Besides above usage patterns for process events when they arrive immediately, you can also
510
- # iterate through events after response complete.
556
+ # You can also iterate through events after the response is complete.
511
557
  #
512
558
  # Events are available at resp.response_event_stream # => Enumerator
513
559
  #
@@ -688,7 +734,7 @@ module Aws::LexRuntimeV2
688
734
  http_response: Seahorse::Client::Http::AsyncResponse.new,
689
735
  config: config)
690
736
  context[:gem_name] = 'aws-sdk-lexruntimev2'
691
- context[:gem_version] = '1.29.0'
737
+ context[:gem_version] = '1.31.0'
692
738
  Seahorse::Client::Request.new(handlers, context)
693
739
  end
694
740
 
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -73,6 +74,7 @@ module Aws::LexRuntimeV2
73
74
  add_plugin(Aws::Plugins::ResponsePaging)
74
75
  add_plugin(Aws::Plugins::StubResponses)
75
76
  add_plugin(Aws::Plugins::IdempotencyToken)
77
+ add_plugin(Aws::Plugins::InvocationId)
76
78
  add_plugin(Aws::Plugins::JsonvalueConverter)
77
79
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
78
80
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -198,10 +200,17 @@ module Aws::LexRuntimeV2
198
200
  # When set to 'true' the request body will not be compressed
199
201
  # for supported operations.
200
202
  #
201
- # @option options [String] :endpoint
202
- # The client endpoint is normally constructed from the `:region`
203
- # option. You should only configure an `:endpoint` when connecting
204
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
203
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
204
+ # Normally you should not configure the `:endpoint` option
205
+ # directly. This is normally constructed from the `:region`
206
+ # option. Configuring `:endpoint` is normally reserved for
207
+ # connecting to test or custom endpoints. The endpoint should
208
+ # be a URI formatted like:
209
+ #
210
+ # 'http://example.com'
211
+ # 'https://example.com'
212
+ # 'http://example.com:123'
213
+ #
205
214
  #
206
215
  # @option options [Integer] :endpoint_cache_max_entries (1000)
207
216
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -348,50 +357,65 @@ module Aws::LexRuntimeV2
348
357
  # @option options [Aws::LexRuntimeV2::EndpointProvider] :endpoint_provider
349
358
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LexRuntimeV2::EndpointParameters`
350
359
  #
351
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
352
- # requests through. Formatted like 'http://proxy.com:123'.
353
- #
354
- # @option options [Float] :http_open_timeout (15) The number of
355
- # seconds to wait when opening a HTTP session before raising a
356
- # `Timeout::Error`.
357
- #
358
- # @option options [Float] :http_read_timeout (60) The default
359
- # number of seconds to wait for response data. This value can
360
- # safely be set per-request on the session.
361
- #
362
- # @option options [Float] :http_idle_timeout (5) The number of
363
- # seconds a connection is allowed to sit idle before it is
364
- # considered stale. Stale connections are closed and removed
365
- # from the pool before making a request.
366
- #
367
- # @option options [Float] :http_continue_timeout (1) The number of
368
- # seconds to wait for a 100-continue response before sending the
369
- # request body. This option has no effect unless the request has
370
- # "Expect" header set to "100-continue". Defaults to `nil` which
371
- # disables this behaviour. This value can safely be set per
372
- # request on the session.
373
- #
374
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
375
- # in seconds.
360
+ # @option options [Float] :http_continue_timeout (1)
361
+ # The number of seconds to wait for a 100-continue response before sending the
362
+ # request body. This option has no effect unless the request has "Expect"
363
+ # header set to "100-continue". Defaults to `nil` which disables this
364
+ # behaviour. This value can safely be set per request on the session.
365
+ #
366
+ # @option options [Float] :http_idle_timeout (5)
367
+ # The number of seconds a connection is allowed to sit idle before it
368
+ # is considered stale. Stale connections are closed and removed from the
369
+ # pool before making a request.
370
+ #
371
+ # @option options [Float] :http_open_timeout (15)
372
+ # The default number of seconds to wait for response data.
373
+ # This value can safely be set per-request on the session.
374
+ #
375
+ # @option options [URI::HTTP,String] :http_proxy
376
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
377
+ #
378
+ # @option options [Float] :http_read_timeout (60)
379
+ # The default number of seconds to wait for response data.
380
+ # This value can safely be set per-request on the session.
381
+ #
382
+ # @option options [Boolean] :http_wire_trace (false)
383
+ # When `true`, HTTP debug output will be sent to the `:logger`.
384
+ #
385
+ # @option options [Proc] :on_chunk_received
386
+ # When a Proc object is provided, it will be used as callback when each chunk
387
+ # of the response body is received. It provides three arguments: the chunk,
388
+ # the number of bytes received, and the total number of
389
+ # bytes in the response (or nil if the server did not send a `content-length`).
390
+ #
391
+ # @option options [Proc] :on_chunk_sent
392
+ # When a Proc object is provided, it will be used as callback when each chunk
393
+ # of the request body is sent. It provides three arguments: the chunk,
394
+ # the number of bytes read from the body, and the total number of
395
+ # bytes in the body.
396
+ #
397
+ # @option options [Boolean] :raise_response_errors (true)
398
+ # When `true`, response errors are raised.
399
+ #
400
+ # @option options [String] :ssl_ca_bundle
401
+ # Full path to the SSL certificate authority bundle file that should be used when
402
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
403
+ # `:ssl_ca_directory` the the system default will be used if available.
404
+ #
405
+ # @option options [String] :ssl_ca_directory
406
+ # Full path of the directory that contains the unbundled SSL certificate
407
+ # authority files for verifying peer certificates. If you do
408
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
409
+ # default will be used if available.
376
410
  #
377
- # @option options [Boolean] :http_wire_trace (false) When `true`,
378
- # HTTP debug output will be sent to the `:logger`.
411
+ # @option options [String] :ssl_ca_store
412
+ # Sets the X509::Store to verify peer certificate.
379
413
  #
380
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
381
- # SSL peer certificates are verified when establishing a
382
- # connection.
414
+ # @option options [Float] :ssl_timeout
415
+ # Sets the SSL timeout in seconds
383
416
  #
384
- # @option options [String] :ssl_ca_bundle Full path to the SSL
385
- # certificate authority bundle file that should be used when
386
- # verifying peer certificates. If you do not pass
387
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
388
- # will be used if available.
389
- #
390
- # @option options [String] :ssl_ca_directory Full path of the
391
- # directory that contains the unbundled SSL certificate
392
- # authority files for verifying peer certificates. If you do
393
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
394
- # system default will be used if available.
417
+ # @option options [Boolean] :ssl_verify_peer (true)
418
+ # When `true`, SSL peer certificates are verified when establishing a connection.
395
419
  #
396
420
  def initialize(*args)
397
421
  super
@@ -1169,7 +1193,7 @@ module Aws::LexRuntimeV2
1169
1193
  params: params,
1170
1194
  config: config)
1171
1195
  context[:gem_name] = 'aws-sdk-lexruntimev2'
1172
- context[:gem_version] = '1.29.0'
1196
+ context[:gem_version] = '1.31.0'
1173
1197
  Seahorse::Client::Request.new(handlers, context)
1174
1198
  end
1175
1199
 
@@ -14,6 +14,7 @@ module Aws::LexRuntimeV2
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::LexRuntimeV2::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -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.29.0'
57
+ GEM_VERSION = '1.31.0'
58
58
 
59
59
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,311 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module LexRuntimeV2
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?event_stream_handler: Proc,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?input_event_stream_handler: Proc,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?output_event_stream_handler: Proc,
43
+ ?profile: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?stub_responses: untyped,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> instance
75
+ | (?Hash[Symbol, untyped]) -> instance
76
+
77
+
78
+ interface _DeleteSessionResponseSuccess
79
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSessionResponse]
80
+ def bot_id: () -> ::String
81
+ def bot_alias_id: () -> ::String
82
+ def locale_id: () -> ::String
83
+ def session_id: () -> ::String
84
+ end
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Client.html#delete_session-instance_method
86
+ def delete_session: (
87
+ bot_id: ::String,
88
+ bot_alias_id: ::String,
89
+ locale_id: ::String,
90
+ session_id: ::String
91
+ ) -> _DeleteSessionResponseSuccess
92
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSessionResponseSuccess
93
+
94
+ interface _GetSessionResponseSuccess
95
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetSessionResponse]
96
+ def session_id: () -> ::String
97
+ def messages: () -> ::Array[Types::Message]
98
+ def interpretations: () -> ::Array[Types::Interpretation]
99
+ def session_state: () -> Types::SessionState
100
+ end
101
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Client.html#get_session-instance_method
102
+ def get_session: (
103
+ bot_id: ::String,
104
+ bot_alias_id: ::String,
105
+ locale_id: ::String,
106
+ session_id: ::String
107
+ ) -> _GetSessionResponseSuccess
108
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSessionResponseSuccess
109
+
110
+ interface _PutSessionResponseSuccess
111
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutSessionResponse]
112
+ def content_type: () -> ::String
113
+ def messages: () -> ::String
114
+ def session_state: () -> ::String
115
+ def request_attributes: () -> ::String
116
+ def session_id: () -> ::String
117
+ def audio_stream: () -> ::IO
118
+ end
119
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Client.html#put_session-instance_method
120
+ def put_session: (
121
+ bot_id: ::String,
122
+ bot_alias_id: ::String,
123
+ locale_id: ::String,
124
+ session_id: ::String,
125
+ ?messages: Array[
126
+ {
127
+ content: ::String?,
128
+ content_type: ("CustomPayload" | "ImageResponseCard" | "PlainText" | "SSML"),
129
+ image_response_card: {
130
+ title: ::String,
131
+ subtitle: ::String?,
132
+ image_url: ::String?,
133
+ buttons: Array[
134
+ {
135
+ text: ::String,
136
+ value: ::String
137
+ },
138
+ ]?
139
+ }?
140
+ },
141
+ ],
142
+ session_state: {
143
+ dialog_action: {
144
+ type: ("Close" | "ConfirmIntent" | "Delegate" | "ElicitIntent" | "ElicitSlot" | "None"),
145
+ slot_to_elicit: ::String?,
146
+ slot_elicitation_style: ("Default" | "SpellByLetter" | "SpellByWord")?,
147
+ sub_slot_to_elicit: {
148
+ name: ::String,
149
+ sub_slot_to_elicit: untyped?
150
+ }?
151
+ }?,
152
+ intent: {
153
+ name: ::String,
154
+ slots: Hash[::String, {
155
+ value: {
156
+ original_value: ::String?,
157
+ interpreted_value: ::String,
158
+ resolved_values: Array[::String]?
159
+ }?,
160
+ shape: ("Scalar" | "List" | "Composite")?,
161
+ values: Array[
162
+ untyped,
163
+ ]?,
164
+ sub_slots: untyped?
165
+ }]?,
166
+ state: ("Failed" | "Fulfilled" | "InProgress" | "ReadyForFulfillment" | "Waiting" | "FulfillmentInProgress")?,
167
+ confirmation_state: ("Confirmed" | "Denied" | "None")?
168
+ }?,
169
+ active_contexts: Array[
170
+ {
171
+ name: ::String,
172
+ time_to_live: {
173
+ time_to_live_in_seconds: ::Integer,
174
+ turns_to_live: ::Integer
175
+ },
176
+ context_attributes: Hash[::String, ::String]
177
+ },
178
+ ]?,
179
+ session_attributes: Hash[::String, ::String]?,
180
+ originating_request_id: ::String?,
181
+ runtime_hints: {
182
+ slot_hints: Hash[::String, Hash[::String, {
183
+ runtime_hint_values: Array[
184
+ {
185
+ phrase: ::String
186
+ },
187
+ ]?,
188
+ sub_slot_hints: untyped?
189
+ }]]?
190
+ }?
191
+ },
192
+ ?request_attributes: Hash[::String, ::String],
193
+ ?response_content_type: ::String
194
+ ) ?{ (*untyped) -> void } -> _PutSessionResponseSuccess
195
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _PutSessionResponseSuccess
196
+
197
+ interface _RecognizeTextResponseSuccess
198
+ include ::Seahorse::Client::_ResponseSuccess[Types::RecognizeTextResponse]
199
+ def messages: () -> ::Array[Types::Message]
200
+ def session_state: () -> Types::SessionState
201
+ def interpretations: () -> ::Array[Types::Interpretation]
202
+ def request_attributes: () -> ::Hash[::String, ::String]
203
+ def session_id: () -> ::String
204
+ def recognized_bot_member: () -> Types::RecognizedBotMember
205
+ end
206
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Client.html#recognize_text-instance_method
207
+ def recognize_text: (
208
+ bot_id: ::String,
209
+ bot_alias_id: ::String,
210
+ locale_id: ::String,
211
+ session_id: ::String,
212
+ text: ::String,
213
+ ?session_state: {
214
+ dialog_action: {
215
+ type: ("Close" | "ConfirmIntent" | "Delegate" | "ElicitIntent" | "ElicitSlot" | "None"),
216
+ slot_to_elicit: ::String?,
217
+ slot_elicitation_style: ("Default" | "SpellByLetter" | "SpellByWord")?,
218
+ sub_slot_to_elicit: {
219
+ name: ::String,
220
+ sub_slot_to_elicit: untyped?
221
+ }?
222
+ }?,
223
+ intent: {
224
+ name: ::String,
225
+ slots: Hash[::String, {
226
+ value: {
227
+ original_value: ::String?,
228
+ interpreted_value: ::String,
229
+ resolved_values: Array[::String]?
230
+ }?,
231
+ shape: ("Scalar" | "List" | "Composite")?,
232
+ values: Array[
233
+ untyped,
234
+ ]?,
235
+ sub_slots: untyped?
236
+ }]?,
237
+ state: ("Failed" | "Fulfilled" | "InProgress" | "ReadyForFulfillment" | "Waiting" | "FulfillmentInProgress")?,
238
+ confirmation_state: ("Confirmed" | "Denied" | "None")?
239
+ }?,
240
+ active_contexts: Array[
241
+ {
242
+ name: ::String,
243
+ time_to_live: {
244
+ time_to_live_in_seconds: ::Integer,
245
+ turns_to_live: ::Integer
246
+ },
247
+ context_attributes: Hash[::String, ::String]
248
+ },
249
+ ]?,
250
+ session_attributes: Hash[::String, ::String]?,
251
+ originating_request_id: ::String?,
252
+ runtime_hints: {
253
+ slot_hints: Hash[::String, Hash[::String, {
254
+ runtime_hint_values: Array[
255
+ {
256
+ phrase: ::String
257
+ },
258
+ ]?,
259
+ sub_slot_hints: untyped?
260
+ }]]?
261
+ }?
262
+ },
263
+ ?request_attributes: Hash[::String, ::String]
264
+ ) -> _RecognizeTextResponseSuccess
265
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RecognizeTextResponseSuccess
266
+
267
+ interface _RecognizeUtteranceResponseSuccess
268
+ include ::Seahorse::Client::_ResponseSuccess[Types::RecognizeUtteranceResponse]
269
+ def input_mode: () -> ::String
270
+ def content_type: () -> ::String
271
+ def messages: () -> ::String
272
+ def interpretations: () -> ::String
273
+ def session_state: () -> ::String
274
+ def request_attributes: () -> ::String
275
+ def session_id: () -> ::String
276
+ def input_transcript: () -> ::String
277
+ def audio_stream: () -> ::IO
278
+ def recognized_bot_member: () -> ::String
279
+ end
280
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Client.html#recognize_utterance-instance_method
281
+ def recognize_utterance: (
282
+ bot_id: ::String,
283
+ bot_alias_id: ::String,
284
+ locale_id: ::String,
285
+ session_id: ::String,
286
+ ?session_state: ::String,
287
+ ?request_attributes: ::String,
288
+ request_content_type: ::String,
289
+ ?response_content_type: ::String,
290
+ ?input_stream: ::String
291
+ ) ?{ (*untyped) -> void } -> _RecognizeUtteranceResponseSuccess
292
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _RecognizeUtteranceResponseSuccess
293
+
294
+ interface _StartConversationResponseSuccess
295
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartConversationResponse]
296
+ def response_event_stream: () -> Types::StartConversationResponseEventStream
297
+ end
298
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Client.html#start_conversation-instance_method
299
+ def start_conversation: (
300
+ bot_id: ::String,
301
+ bot_alias_id: ::String,
302
+ locale_id: ::String,
303
+ session_id: ::String,
304
+ ?conversation_mode: ("AUDIO" | "TEXT"),
305
+ input_event_stream_hander: untyped
306
+ ) ?{ (*untyped) -> void } -> _StartConversationResponseSuccess
307
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _StartConversationResponseSuccess
308
+ end
309
+ end
310
+ end
311
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,16 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module LexRuntimeV2
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ end
15
+ end
16
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,82 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module LexRuntimeV2
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LexRuntimeV2/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?event_stream_handler: Proc,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?input_event_stream_handler: Proc,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?output_event_stream_handler: Proc,
43
+ ?profile: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?stub_responses: untyped,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> void
75
+ | (?Hash[Symbol, untyped]) -> void
76
+
77
+ def client: () -> Client
78
+
79
+
80
+ end
81
+ end
82
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,413 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::LexRuntimeV2
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ attr_accessor event_type: untyped
14
+ SENSITIVE: []
15
+ end
16
+
17
+ class ActiveContext
18
+ attr_accessor name: ::String
19
+ attr_accessor time_to_live: Types::ActiveContextTimeToLive
20
+ attr_accessor context_attributes: ::Hash[::String, ::String]
21
+ SENSITIVE: []
22
+ end
23
+
24
+ class ActiveContextTimeToLive
25
+ attr_accessor time_to_live_in_seconds: ::Integer
26
+ attr_accessor turns_to_live: ::Integer
27
+ SENSITIVE: []
28
+ end
29
+
30
+ class AudioInputEvent
31
+ attr_accessor audio_chunk: ::String
32
+ attr_accessor content_type: ::String
33
+ attr_accessor event_id: ::String
34
+ attr_accessor client_timestamp_millis: ::Integer
35
+ attr_accessor event_type: untyped
36
+ SENSITIVE: []
37
+ end
38
+
39
+ class AudioResponseEvent
40
+ attr_accessor audio_chunk: ::String
41
+ attr_accessor content_type: ::String
42
+ attr_accessor event_id: ::String
43
+ attr_accessor event_type: untyped
44
+ SENSITIVE: []
45
+ end
46
+
47
+ class BadGatewayException
48
+ attr_accessor message: ::String
49
+ attr_accessor event_type: untyped
50
+ SENSITIVE: []
51
+ end
52
+
53
+ class Button
54
+ attr_accessor text: ::String
55
+ attr_accessor value: ::String
56
+ SENSITIVE: []
57
+ end
58
+
59
+ class ConfidenceScore
60
+ attr_accessor score: ::Float
61
+ SENSITIVE: []
62
+ end
63
+
64
+ class ConfigurationEvent
65
+ attr_accessor request_attributes: ::Hash[::String, ::String]
66
+ attr_accessor response_content_type: ::String
67
+ attr_accessor session_state: Types::SessionState
68
+ attr_accessor welcome_messages: ::Array[Types::Message]
69
+ attr_accessor disable_playback: bool
70
+ attr_accessor event_id: ::String
71
+ attr_accessor client_timestamp_millis: ::Integer
72
+ attr_accessor event_type: untyped
73
+ SENSITIVE: []
74
+ end
75
+
76
+ class ConflictException
77
+ attr_accessor message: ::String
78
+ attr_accessor event_type: untyped
79
+ SENSITIVE: []
80
+ end
81
+
82
+ class DTMFInputEvent
83
+ attr_accessor input_character: ::String
84
+ attr_accessor event_id: ::String
85
+ attr_accessor client_timestamp_millis: ::Integer
86
+ attr_accessor event_type: untyped
87
+ SENSITIVE: [:input_character]
88
+ end
89
+
90
+ class DeleteSessionRequest
91
+ attr_accessor bot_id: ::String
92
+ attr_accessor bot_alias_id: ::String
93
+ attr_accessor locale_id: ::String
94
+ attr_accessor session_id: ::String
95
+ SENSITIVE: []
96
+ end
97
+
98
+ class DeleteSessionResponse
99
+ attr_accessor bot_id: ::String
100
+ attr_accessor bot_alias_id: ::String
101
+ attr_accessor locale_id: ::String
102
+ attr_accessor session_id: ::String
103
+ SENSITIVE: []
104
+ end
105
+
106
+ class DependencyFailedException
107
+ attr_accessor message: ::String
108
+ attr_accessor event_type: untyped
109
+ SENSITIVE: []
110
+ end
111
+
112
+ class DialogAction
113
+ attr_accessor type: ("Close" | "ConfirmIntent" | "Delegate" | "ElicitIntent" | "ElicitSlot" | "None")
114
+ attr_accessor slot_to_elicit: ::String
115
+ attr_accessor slot_elicitation_style: ("Default" | "SpellByLetter" | "SpellByWord")
116
+ attr_accessor sub_slot_to_elicit: Types::ElicitSubSlot
117
+ SENSITIVE: []
118
+ end
119
+
120
+ class DisconnectionEvent
121
+ attr_accessor event_id: ::String
122
+ attr_accessor client_timestamp_millis: ::Integer
123
+ attr_accessor event_type: untyped
124
+ SENSITIVE: []
125
+ end
126
+
127
+ class ElicitSubSlot
128
+ attr_accessor name: ::String
129
+ attr_accessor sub_slot_to_elicit: Types::ElicitSubSlot
130
+ SENSITIVE: []
131
+ end
132
+
133
+ class GetSessionRequest
134
+ attr_accessor bot_id: ::String
135
+ attr_accessor bot_alias_id: ::String
136
+ attr_accessor locale_id: ::String
137
+ attr_accessor session_id: ::String
138
+ SENSITIVE: []
139
+ end
140
+
141
+ class GetSessionResponse
142
+ attr_accessor session_id: ::String
143
+ attr_accessor messages: ::Array[Types::Message]
144
+ attr_accessor interpretations: ::Array[Types::Interpretation]
145
+ attr_accessor session_state: Types::SessionState
146
+ SENSITIVE: []
147
+ end
148
+
149
+ class HeartbeatEvent
150
+ attr_accessor event_id: ::String
151
+ attr_accessor event_type: untyped
152
+ SENSITIVE: []
153
+ end
154
+
155
+ class ImageResponseCard
156
+ attr_accessor title: ::String
157
+ attr_accessor subtitle: ::String
158
+ attr_accessor image_url: ::String
159
+ attr_accessor buttons: ::Array[Types::Button]
160
+ SENSITIVE: []
161
+ end
162
+
163
+ class Intent
164
+ attr_accessor name: ::String
165
+ attr_accessor slots: ::Hash[::String, Types::Slot]
166
+ attr_accessor state: ("Failed" | "Fulfilled" | "InProgress" | "ReadyForFulfillment" | "Waiting" | "FulfillmentInProgress")
167
+ attr_accessor confirmation_state: ("Confirmed" | "Denied" | "None")
168
+ SENSITIVE: []
169
+ end
170
+
171
+ class IntentResultEvent
172
+ attr_accessor input_mode: ("Text" | "Speech" | "DTMF")
173
+ attr_accessor interpretations: ::Array[Types::Interpretation]
174
+ attr_accessor session_state: Types::SessionState
175
+ attr_accessor request_attributes: ::Hash[::String, ::String]
176
+ attr_accessor session_id: ::String
177
+ attr_accessor event_id: ::String
178
+ attr_accessor recognized_bot_member: Types::RecognizedBotMember
179
+ attr_accessor event_type: untyped
180
+ SENSITIVE: []
181
+ end
182
+
183
+ class InternalServerException
184
+ attr_accessor message: ::String
185
+ attr_accessor event_type: untyped
186
+ SENSITIVE: []
187
+ end
188
+
189
+ class Interpretation
190
+ attr_accessor nlu_confidence: Types::ConfidenceScore
191
+ attr_accessor sentiment_response: Types::SentimentResponse
192
+ attr_accessor intent: Types::Intent
193
+ attr_accessor interpretation_source: ("Bedrock" | "Lex")
194
+ SENSITIVE: []
195
+ end
196
+
197
+ class Message
198
+ attr_accessor content: ::String
199
+ attr_accessor content_type: ("CustomPayload" | "ImageResponseCard" | "PlainText" | "SSML")
200
+ attr_accessor image_response_card: Types::ImageResponseCard
201
+ SENSITIVE: [:content]
202
+ end
203
+
204
+ class PlaybackCompletionEvent
205
+ attr_accessor event_id: ::String
206
+ attr_accessor client_timestamp_millis: ::Integer
207
+ attr_accessor event_type: untyped
208
+ SENSITIVE: []
209
+ end
210
+
211
+ class PlaybackInterruptionEvent
212
+ attr_accessor event_reason: ("DTMF_START_DETECTED" | "TEXT_DETECTED" | "VOICE_START_DETECTED")
213
+ attr_accessor caused_by_event_id: ::String
214
+ attr_accessor event_id: ::String
215
+ attr_accessor event_type: untyped
216
+ SENSITIVE: []
217
+ end
218
+
219
+ class PutSessionRequest
220
+ attr_accessor bot_id: ::String
221
+ attr_accessor bot_alias_id: ::String
222
+ attr_accessor locale_id: ::String
223
+ attr_accessor session_id: ::String
224
+ attr_accessor messages: ::Array[Types::Message]
225
+ attr_accessor session_state: Types::SessionState
226
+ attr_accessor request_attributes: ::Hash[::String, ::String]
227
+ attr_accessor response_content_type: ::String
228
+ SENSITIVE: []
229
+ end
230
+
231
+ class PutSessionResponse
232
+ attr_accessor content_type: ::String
233
+ attr_accessor messages: ::String
234
+ attr_accessor session_state: ::String
235
+ attr_accessor request_attributes: ::String
236
+ attr_accessor session_id: ::String
237
+ attr_accessor audio_stream: ::IO
238
+ SENSITIVE: []
239
+ end
240
+
241
+ class RecognizeTextRequest
242
+ attr_accessor bot_id: ::String
243
+ attr_accessor bot_alias_id: ::String
244
+ attr_accessor locale_id: ::String
245
+ attr_accessor session_id: ::String
246
+ attr_accessor text: ::String
247
+ attr_accessor session_state: Types::SessionState
248
+ attr_accessor request_attributes: ::Hash[::String, ::String]
249
+ SENSITIVE: [:text]
250
+ end
251
+
252
+ class RecognizeTextResponse
253
+ attr_accessor messages: ::Array[Types::Message]
254
+ attr_accessor session_state: Types::SessionState
255
+ attr_accessor interpretations: ::Array[Types::Interpretation]
256
+ attr_accessor request_attributes: ::Hash[::String, ::String]
257
+ attr_accessor session_id: ::String
258
+ attr_accessor recognized_bot_member: Types::RecognizedBotMember
259
+ SENSITIVE: []
260
+ end
261
+
262
+ class RecognizeUtteranceRequest
263
+ attr_accessor bot_id: ::String
264
+ attr_accessor bot_alias_id: ::String
265
+ attr_accessor locale_id: ::String
266
+ attr_accessor session_id: ::String
267
+ attr_accessor session_state: ::String
268
+ attr_accessor request_attributes: ::String
269
+ attr_accessor request_content_type: ::String
270
+ attr_accessor response_content_type: ::String
271
+ attr_accessor input_stream: ::IO
272
+ SENSITIVE: [:session_state, :request_attributes]
273
+ end
274
+
275
+ class RecognizeUtteranceResponse
276
+ attr_accessor input_mode: ::String
277
+ attr_accessor content_type: ::String
278
+ attr_accessor messages: ::String
279
+ attr_accessor interpretations: ::String
280
+ attr_accessor session_state: ::String
281
+ attr_accessor request_attributes: ::String
282
+ attr_accessor session_id: ::String
283
+ attr_accessor input_transcript: ::String
284
+ attr_accessor audio_stream: ::IO
285
+ attr_accessor recognized_bot_member: ::String
286
+ SENSITIVE: []
287
+ end
288
+
289
+ class RecognizedBotMember
290
+ attr_accessor bot_id: ::String
291
+ attr_accessor bot_name: ::String
292
+ SENSITIVE: []
293
+ end
294
+
295
+ class ResourceNotFoundException
296
+ attr_accessor message: ::String
297
+ attr_accessor event_type: untyped
298
+ SENSITIVE: []
299
+ end
300
+
301
+ class RuntimeHintDetails
302
+ attr_accessor runtime_hint_values: ::Array[Types::RuntimeHintValue]
303
+ attr_accessor sub_slot_hints: ::Hash[::String, Types::RuntimeHintDetails]
304
+ SENSITIVE: []
305
+ end
306
+
307
+ class RuntimeHintValue
308
+ attr_accessor phrase: ::String
309
+ SENSITIVE: []
310
+ end
311
+
312
+ class RuntimeHints
313
+ attr_accessor slot_hints: ::Hash[::String, ::Hash[::String, Types::RuntimeHintDetails]]
314
+ SENSITIVE: []
315
+ end
316
+
317
+ class SentimentResponse
318
+ attr_accessor sentiment: ("MIXED" | "NEGATIVE" | "NEUTRAL" | "POSITIVE")
319
+ attr_accessor sentiment_score: Types::SentimentScore
320
+ SENSITIVE: []
321
+ end
322
+
323
+ class SentimentScore
324
+ attr_accessor positive: ::Float
325
+ attr_accessor negative: ::Float
326
+ attr_accessor neutral: ::Float
327
+ attr_accessor mixed: ::Float
328
+ SENSITIVE: []
329
+ end
330
+
331
+ class SessionState
332
+ attr_accessor dialog_action: Types::DialogAction
333
+ attr_accessor intent: Types::Intent
334
+ attr_accessor active_contexts: ::Array[Types::ActiveContext]
335
+ attr_accessor session_attributes: ::Hash[::String, ::String]
336
+ attr_accessor originating_request_id: ::String
337
+ attr_accessor runtime_hints: Types::RuntimeHints
338
+ SENSITIVE: []
339
+ end
340
+
341
+ class Slot
342
+ attr_accessor value: Types::Value
343
+ attr_accessor shape: ("Scalar" | "List" | "Composite")
344
+ attr_accessor values: ::Array[Types::Slot]
345
+ attr_accessor sub_slots: ::Hash[::String, Types::Slot]
346
+ SENSITIVE: []
347
+ end
348
+
349
+ class StartConversationRequest
350
+ attr_accessor bot_id: ::String
351
+ attr_accessor bot_alias_id: ::String
352
+ attr_accessor locale_id: ::String
353
+ attr_accessor session_id: ::String
354
+ attr_accessor conversation_mode: ("AUDIO" | "TEXT")
355
+ attr_accessor request_event_stream: Types::StartConversationRequestEventStream
356
+ SENSITIVE: []
357
+ end
358
+
359
+ class StartConversationResponse
360
+ attr_accessor response_event_stream: Types::StartConversationResponseEventStream
361
+ SENSITIVE: []
362
+ end
363
+
364
+ class TextInputEvent
365
+ attr_accessor text: ::String
366
+ attr_accessor event_id: ::String
367
+ attr_accessor client_timestamp_millis: ::Integer
368
+ attr_accessor event_type: untyped
369
+ SENSITIVE: [:text]
370
+ end
371
+
372
+ class TextResponseEvent
373
+ attr_accessor messages: ::Array[Types::Message]
374
+ attr_accessor event_id: ::String
375
+ attr_accessor event_type: untyped
376
+ SENSITIVE: []
377
+ end
378
+
379
+ class ThrottlingException
380
+ attr_accessor message: ::String
381
+ attr_accessor event_type: untyped
382
+ SENSITIVE: []
383
+ end
384
+
385
+ class TranscriptEvent
386
+ attr_accessor transcript: ::String
387
+ attr_accessor event_id: ::String
388
+ attr_accessor event_type: untyped
389
+ SENSITIVE: []
390
+ end
391
+
392
+ class ValidationException
393
+ attr_accessor message: ::String
394
+ attr_accessor event_type: untyped
395
+ SENSITIVE: []
396
+ end
397
+
398
+ class Value
399
+ attr_accessor original_value: ::String
400
+ attr_accessor interpreted_value: ::String
401
+ attr_accessor resolved_values: ::Array[::String]
402
+ SENSITIVE: []
403
+ end
404
+
405
+ class StartConversationRequestEventStream < Enumerator[untyped, untyped]
406
+ def event_types: () -> [:configuration_event, :audio_input_event, :dtmf_input_event, :text_input_event, :playback_completion_event, :disconnection_event]
407
+ end
408
+
409
+ class StartConversationResponseEventStream < Enumerator[untyped, untyped]
410
+ def event_types: () -> [:playback_interruption_event, :transcript_event, :intent_result_event, :text_response_event, :audio_response_event, :heartbeat_event, :access_denied_exception, :resource_not_found_exception, :validation_exception, :throttling_exception, :internal_server_exception, :conflict_exception, :dependency_failed_exception, :bad_gateway_exception]
411
+ end
412
+ end
413
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module LexRuntimeV2
10
+ module Waiters
11
+ end
12
+ end
13
+ 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.29.0
4
+ version: 1.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-04-25 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.188.0
22
+ version: 3.193.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.188.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -68,13 +68,18 @@ files:
68
68
  - lib/aws-sdk-lexruntimev2/plugins/endpoints.rb
69
69
  - lib/aws-sdk-lexruntimev2/resource.rb
70
70
  - lib/aws-sdk-lexruntimev2/types.rb
71
+ - sig/client.rbs
72
+ - sig/errors.rbs
73
+ - sig/resource.rbs
74
+ - sig/types.rbs
75
+ - sig/waiters.rbs
71
76
  homepage: https://github.com/aws/aws-sdk-ruby
72
77
  licenses:
73
78
  - Apache-2.0
74
79
  metadata:
75
80
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-lexruntimev2
76
81
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-lexruntimev2/CHANGELOG.md
77
- post_install_message:
82
+ post_install_message:
78
83
  rdoc_options: []
79
84
  require_paths:
80
85
  - lib
@@ -89,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
94
  - !ruby/object:Gem::Version
90
95
  version: '0'
91
96
  requirements: []
92
- rubygems_version: 3.1.6
93
- signing_key:
97
+ rubygems_version: 3.4.10
98
+ signing_key:
94
99
  specification_version: 4
95
100
  summary: AWS SDK for Ruby - Lex Runtime V2
96
101
  test_files: []