statelydb 0.19.0 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48b92c6e1895bb7e7a5a27634f5012e9183b514a1210b25a54528000d8980e5d
4
- data.tar.gz: ea786444657ea16320c913c115bac7f2cc17f3a9223d4ff53466504cac3930b3
3
+ metadata.gz: f2596e8fefad5c493ca74719bd8d88366196aa67060aa8bf7f235426b4042b76
4
+ data.tar.gz: 9a01f05434b629b8d7056fa9bf24b1e310d9377b8d853779a5a2402939ecb598
5
5
  SHA512:
6
- metadata.gz: 1fa6566c111cc334eb9015880f2d5feec32e10e571522a9609e1413ee5b7a455a7858ad599c5fcc8bc0e0ecb6a42175faf1a0aca7ecb6f402426915c7f9bba04
7
- data.tar.gz: e4e5b788790d397ff220f28a78221c81a533bf0a8f8c58328dbe85d9085d3074fcce5b5f68fcf06b946c1858225b0ce8eabb7c84fe0641599244961dcc079f0b
6
+ metadata.gz: d071adf0dba8e6981ec77346b80502a69c2424a9a165c55acbbacba62ca424df341efa5e36215294da76595666371c90c0575046d78eb4527039a6b75d4499dd
7
+ data.tar.gz: 0eda4f14edcf95b3f317e5b82a70b86e5502ac2c970a6940c592f5d3bfd0b1e93ab0d302de94bb47091d71b709f411576928a9e9ac50727e423e91083108688e
@@ -41,6 +41,7 @@ module StatelyDB
41
41
 
42
42
  # Close the token provider and kill any background operations
43
43
  # This just invokes the close method on the actor which should do the cleanup
44
+ # @return [void]
44
45
  def close
45
46
  @actor.close
46
47
  end
@@ -81,6 +82,7 @@ module StatelyDB
81
82
 
82
83
  # Initialize the actor. This runs on the actor thread which means
83
84
  # we can dispatch async operations here.
85
+ # @return [void]
84
86
  def init
85
87
  # disable the async lib logger. We do our own error handling and propagation
86
88
  Console.logger.disable(Async::Task)
@@ -88,6 +90,7 @@ module StatelyDB
88
90
  end
89
91
 
90
92
  # Close the token provider and kill any background operations
93
+ # @return [void]
91
94
  def close
92
95
  @scheduled&.stop
93
96
  @token_fetcher&.close
@@ -117,7 +120,7 @@ module StatelyDB
117
120
  end
118
121
 
119
122
  # Refresh the access token
120
- # @return [Task] A task that will resolve to the new access token
123
+ # @return [::Async::Task] A task that will resolve to the new access token
121
124
  def refresh_token
122
125
  Async do
123
126
  # we use an Async::Condition to dedupe multiple requests here
@@ -187,6 +190,11 @@ module StatelyDB
187
190
  end
188
191
 
189
192
  # Persistent state for the token provider
193
+ #
194
+ # @!attribute [r] token
195
+ # @return [String] The token string.
196
+ # @!attribute [r] expires_at_unix_secs
197
+ # @return [Integer] The expiration time in unix seconds.
190
198
  class TokenState
191
199
  attr_reader :token, :expires_at_unix_secs
192
200
 
@@ -20,7 +20,7 @@ module StatelyDB
20
20
  # gRPC client unary interceptor
21
21
  #
22
22
  # @param [Object] request The request object
23
- # @param [GRPC::ActiveCall] call The active call object
23
+ # @param [::GRPC::ActiveCall] call The active call object
24
24
  # @param [Symbol] method The method being called
25
25
  # @param [Hash] metadata The metadata hash
26
26
  # @return [Object] The response object
@@ -33,7 +33,7 @@ module StatelyDB
33
33
  # gRPC client streaming interceptor
34
34
  #
35
35
  # @param [Enumerable] requests The list of requests
36
- # @param [GRPC::ActiveCall] call The active call object
36
+ # @param [::GRPC::ActiveCall] call The active call object
37
37
  # @param [Symbol] method The method being called
38
38
  # @param [Hash] metadata The metadata hash
39
39
  # @return [Enumerator] The response enumerator
@@ -46,7 +46,7 @@ module StatelyDB
46
46
  # gRPC server streaming interceptor
47
47
  #
48
48
  # @param [Object] request The request object
49
- # @param [GRPC::ActiveCall] call The active call object
49
+ # @param [::GRPC::ActiveCall] call The active call object
50
50
  # @param [Symbol] method The method being called
51
51
  # @param [Hash] metadata The metadata hash
52
52
  # @return [Enumerator] The response enumerator
@@ -59,7 +59,7 @@ module StatelyDB
59
59
  # gRPC bidirectional streaming interceptor
60
60
  #
61
61
  # @param [Enumerable] requests The list of requests
62
- # @param [GRPC::ActiveCall] call The active call object
62
+ # @param [::GRPC::ActiveCall] call The active call object
63
63
  # @param [Symbol] method The method being called
64
64
  # @param [Hash] metadata The metadata hash
65
65
  # @return [Enumerator] The response enumerator
@@ -10,6 +10,11 @@ module StatelyDB
10
10
  # A module for Stately Cloud auth code
11
11
  module Auth
12
12
  # Result from a token fetch operation
13
+ #
14
+ # @!attribute [r] token
15
+ # @return [String] The token string.
16
+ # @!attribute [r] expires_in_secs
17
+ # @return [Integer] The expiration time in seconds.
13
18
  class TokenResult
14
19
  attr_reader :token, :expires_in_secs
15
20
 
@@ -32,6 +37,7 @@ module StatelyDB
32
37
  end
33
38
 
34
39
  # Close the token provider and kill any background operations
40
+ # @return [void]
35
41
  def close
36
42
  raise "Not Implemented"
37
43
  end
@@ -39,6 +45,9 @@ module StatelyDB
39
45
 
40
46
  # StatelyAccessTokenFetcher is a TokenFetcher that fetches tokens from the StatelyDB API
41
47
  class StatelyAccessTokenFetcher < TokenFetcher
48
+ # Non-retryable errors that will not be retried.
49
+ #
50
+ # @return [Array<::GRPC::Core::StatusCodes>]
42
51
  NON_RETRYABLE_ERRORS = [
43
52
  GRPC::Core::StatusCodes::UNAUTHENTICATED,
44
53
  GRPC::Core::StatusCodes::PERMISSION_DENIED,
@@ -46,6 +55,10 @@ module StatelyDB
46
55
  GRPC::Core::StatusCodes::UNIMPLEMENTED,
47
56
  GRPC::Core::StatusCodes::INVALID_ARGUMENT
48
57
  ].freeze
58
+
59
+ # Number of retry attempts for requests.
60
+ #
61
+ # @return [Integer]
49
62
  RETRY_ATTEMPTS = 10
50
63
 
51
64
  # @param [String] endpoint The endpoint of the OAuth server
@@ -76,6 +89,8 @@ module StatelyDB
76
89
  end
77
90
  end
78
91
 
92
+ # Close the token provider and kill any background operations
93
+ # @return [void]
79
94
  def close
80
95
  @channel&.close
81
96
  end
@@ -15,6 +15,7 @@ module StatelyDB
15
15
  end
16
16
 
17
17
  # Close the token provider and kill any background operations
18
+ # @return [void]
18
19
  def close
19
20
  raise "Not Implemented"
20
21
  end
@@ -9,7 +9,7 @@ module StatelyDB
9
9
  module Net
10
10
  # Create a new gRPC channel
11
11
  # @param [String] endpoint The endpoint to connect to
12
- # @return [GRPC::Core::Channel] The new channel
12
+ # @return [::GRPC::Core::Channel] The new channel
13
13
  def self.new_channel(endpoint:)
14
14
  endpoint_uri = URI(endpoint)
15
15
  creds = GRPC::Core::ChannelCredentials.new
data/lib/key_path.rb CHANGED
@@ -9,8 +9,8 @@ module StatelyDB
9
9
  end
10
10
 
11
11
  # Appends a new path segment.
12
- # @param [String] namespace
13
- # @param [String, StatelyDB::UUID, #to_s] identifier
12
+ # @param namespace [String]
13
+ # @param identifier [String, StatelyDB::UUID, #to_s]
14
14
  # @return [KeyPath]
15
15
  def with(namespace, identifier = nil)
16
16
  if identifier.nil?
@@ -37,8 +37,8 @@ module StatelyDB
37
37
  end
38
38
 
39
39
  # Appends a new path segment.
40
- # @param [String] namespace
41
- # @param [String, StatelyDB::UUID, #to_s] identifier
40
+ # @param namespace [String]
41
+ # @param identifier [String, StatelyDB::UUID, #to_s]
42
42
  # @return [KeyPath]
43
43
  #
44
44
  # @example
@@ -49,7 +49,7 @@ module StatelyDB
49
49
 
50
50
  # If the value is a binary string, encode it as a url-safe base64 string with padding removed.
51
51
  #
52
- # @param [String, StatelyDB::UUID, #to_s] value The value to convert to a key id.
52
+ # @param value [String, StatelyDB::UUID, #to_s] The value to convert to a key id.
53
53
  # @return [String]
54
54
  def self.to_key_id(value)
55
55
  if value.is_a?(StatelyDB::UUID)
data/lib/stately_codes.rb CHANGED
@@ -6,6 +6,7 @@ module StatelyCode
6
6
  #
7
7
  # - Retryable
8
8
  # This error is immediately retryable.
9
+ # @return [String]
9
10
  CACHED_SCHEMA_TOO_OLD = "CachedSchemaTooOld"
10
11
 
11
12
  # ConcurrentModification indicates the current transaction was aborted
@@ -34,6 +35,7 @@ module StatelyCode
34
35
  #
35
36
  # - Retryable
36
37
  # This error is immediately retryable.
38
+ # @return [String]
37
39
  CONCURRENT_MODIFICATION = "ConcurrentModification"
38
40
 
39
41
  # ConditionalCheckFailed indicates that conditions provided to perform an
@@ -45,6 +47,7 @@ module StatelyCode
45
47
  # - Not Retryable
46
48
  # Typically a conditional check failure is not retryable
47
49
  # unless the conditions for the operation are changed.
50
+ # @return [String]
48
51
  CONDITIONAL_CHECK_FAILED = "ConditionalCheckFailed"
49
52
 
50
53
  # ItemReusedWithDifferentKeyPath occurs when a client reads an Item, then
@@ -57,6 +60,7 @@ module StatelyCode
57
60
  # new instance of the Item rather than reusing the read result.
58
61
  #
59
62
  # - Not Retryable
63
+ # @return [String]
60
64
  ITEM_REUSED_WITH_DIFFERENT_KEY_PATH = "ItemReusedWithDifferentKeyPath"
61
65
 
62
66
  # NonRecoverableTransaction indicates that conditions required for the
@@ -68,6 +72,7 @@ module StatelyCode
68
72
  # independent records with aliases pointing to the same item.
69
73
  #
70
74
  # - Not Retryable
75
+ # @return [String]
71
76
  NON_RECOVERABLE_TRANSACTION = "NonRecoverableTransaction"
72
77
 
73
78
  # StoreInUse indicates that the underlying Store is currently in being
@@ -76,6 +81,7 @@ module StatelyCode
76
81
  #
77
82
  # - Retryable
78
83
  # This can be retried with backoff.
84
+ # @return [String]
79
85
  STORE_IN_USE = "StoreInUse"
80
86
 
81
87
  # StoreRequestLimitExceeded indicates that an attempt to modify a Store has
@@ -85,6 +91,7 @@ module StatelyCode
85
91
  # please contact support.
86
92
  #
87
93
  # - Retryable
94
+ # @return [String]
88
95
  STORE_REQUEST_LIMIT_EXCEEDED = "StoreRequestLimitExceeded"
89
96
 
90
97
  # StoreThroughputExceeded indicates that the underlying Store does not have
@@ -94,5 +101,6 @@ module StatelyCode
94
101
  #
95
102
  # - Retryable
96
103
  # With an exponential backoff.
104
+ # @return [String]
97
105
  STORE_THROUGHPUT_EXCEEDED = "StoreThroughputExceeded"
98
106
  end
data/lib/statelydb.rb CHANGED
@@ -369,7 +369,7 @@ module StatelyDB
369
369
  # then the default endpoint will be returned.
370
370
  #
371
371
  # @param endpoint [String] the endpoint to connect to
372
- # @param region [Region] the region to connect to
372
+ # @param region [String] the region to connect to
373
373
  # @return [String] the constructed endpoint
374
374
  def self.make_endpoint(endpoint: nil, region: nil)
375
375
  return endpoint unless endpoint.nil?
@@ -384,7 +384,7 @@ module StatelyDB
384
384
 
385
385
  # Process a list response from begin_list or continue_list
386
386
  #
387
- # @param resp [Stately::Db::ListResponse] the response to process
387
+ # @param resp [::Stately::Db::ListResponse] the response to process
388
388
  # @return [(Array<StatelyDB::Item>, StatelyDB::Token)] the list of Items and the token
389
389
  # @api private
390
390
  # @!visibility private
@@ -410,7 +410,7 @@ module StatelyDB
410
410
 
411
411
  # Process a sync response from sync_list
412
412
  #
413
- # @param resp [Stately::Db::SyncResponse] the response to process
413
+ # @param resp [::Stately::Db::SyncResponse] the response to process
414
414
  # @return [StatelyDB::SyncResult] the result of the sync operation
415
415
  # @api private
416
416
  # @!visibility private
@@ -42,9 +42,9 @@ module StatelyDB
42
42
 
43
43
  # Initialize a new Transaction
44
44
  #
45
- # @param stub [Stately::Db::DatabaseService::Stub] a StatelyDB gRPC stub
45
+ # @param stub [::Stately::Db::DatabaseService::Stub] a StatelyDB gRPC stub
46
46
  # @param store_id [Integer] the StatelyDB Store to transact against
47
- # @param schema [StatelyDB::Schema] the schema to use for marshalling and unmarshalling Items
47
+ # @param schema [::StatelyDB::Schema] the schema to use for marshalling and unmarshalling Items
48
48
  def initialize(stub:, store_id:, schema:)
49
49
  @stub = stub
50
50
  @store_id = store_id
@@ -57,8 +57,8 @@ module StatelyDB
57
57
 
58
58
  # Send a request and wait for a response
59
59
  #
60
- # @param req [Stately::Db::TransactionRequest] the request to send
61
- # @return [Stately::Db::TransactionResponse] the response
60
+ # @param req [::Stately::Db::TransactionRequest] the request to send
61
+ # @return [::Stately::Db::TransactionResponse] the response
62
62
  # @api private
63
63
  # @!visibility private
64
64
  def request_response(req)
@@ -78,7 +78,7 @@ module StatelyDB
78
78
 
79
79
  # Send a request and don't wait for a response
80
80
  #
81
- # @param req [Stately::Db::TransactionRequest] the request to send
81
+ # @param req [::Stately::Db::TransactionRequest] the request to send
82
82
  # @return [void] nil
83
83
  # @api private
84
84
  # @!visibility private
@@ -91,9 +91,9 @@ module StatelyDB
91
91
  # Send a request and process all responses, until we receive a finished message. This is used for list operations.
92
92
  # Each response is processed by the block passed to this method, and the response for this method is a token.
93
93
  #
94
- # @param req [Stately::Db::TransactionRequest] the request to send
95
- # @yieldparam resp [Stately::Db::TransactionListResponse] the response
96
- # @return [Stately::Db::ListToken] the token
94
+ # @param req [::Stately::Db::TransactionRequest] the request to send
95
+ # @yieldparam resp [::Stately::Db::TransactionListResponse] the response
96
+ # @return [::Stately::Db::ListToken] the token
97
97
  # @example
98
98
  # request_list_responses(req) do |resp|
99
99
  # resp.result.items.each do |result|
@@ -153,7 +153,7 @@ module StatelyDB
153
153
  end
154
154
 
155
155
  # Abort a transaction. Abort is called implicitly if an exception is raised within the block passed to transaction.
156
- # @return [Stately::Db::TransactionResponse]
156
+ # @return [::Stately::Db::TransactionResponse]
157
157
  # @api private
158
158
  # @!visibility private
159
159
  def abort
@@ -333,7 +333,7 @@ module StatelyDB
333
333
  # @param limit [Integer] the maximum number of items to return
334
334
  # @param sort_property [String] the property to sort by
335
335
  # @param sort_direction [Symbol] the direction to sort by (:ascending or :descending)
336
- # @return [(Array<StatelyDB::Item>, Stately::Db::ListToken)] the list of Items and the token
336
+ # @return [(Array<StatelyDB::Item>, ::Stately::Db::ListToken)] the list of Items and the token
337
337
  #
338
338
  # Example:
339
339
  # client.data.transaction do |txn|
@@ -363,9 +363,9 @@ module StatelyDB
363
363
 
364
364
  # Continue listing Items from a StatelyDB Store using a token.
365
365
  #
366
- # @param token [Stately::Db::ListToken] the token to continue from
366
+ # @param token [::Stately::Db::ListToken] the token to continue from
367
367
  # @param continue_direction [Symbol] the direction to continue by (:forward or :backward)
368
- # @return [(Array<StatelyDB::Item>, Stately::Db::ListToken)] the list of Items and the token
368
+ # @return [(Array<StatelyDB::Item>, ::Stately::Db::ListToken)] the list of Items and the token
369
369
  #
370
370
  # Example:
371
371
  # client.data.transaction do |txn|
@@ -388,8 +388,8 @@ module StatelyDB
388
388
 
389
389
  # Processes a list response from begin_list or continue_list
390
390
  #
391
- # @param req [Stately::Db::TransactionRequest] the request to send
392
- # @return [(Array<StatelyDB::Item>, Stately::Db::ListToken)] the list of Items and the token
391
+ # @param req [::Stately::Db::TransactionRequest] the request to send
392
+ # @return [(Array<StatelyDB::Item>, ::Stately::Db::ListToken)] the list of Items and the token
393
393
  # @api private
394
394
  # @!visibility private
395
395
  def do_list_request_response(req)
@@ -405,7 +405,7 @@ module StatelyDB
405
405
  # We are using a oneof inside the TransactionRequest to determine the type of request. The ruby
406
406
  # generated code does not have a helper for the internal request type so we need to infer it.
407
407
  #
408
- # @param req [Stately::Db::TransactionRequest] the request
408
+ # @param req [::Stately::Db::TransactionRequest] the request
409
409
  # @return [Class] the response type
410
410
  # @api private
411
411
  # @!visibility private
@@ -422,7 +422,7 @@ module StatelyDB
422
422
  # We are using a oneof inside the TransactionResponse to determine the type of response. The ruby
423
423
  # generated code does not have a helper for the internal response type so we need to infer it.
424
424
  #
425
- # @param resp [Stately::Db::TransactionResponse] the response
425
+ # @param resp [::Stately::Db::TransactionResponse] the response
426
426
  # @return [Class] the response type
427
427
  # @api private
428
428
  # @!visibility private
@@ -434,7 +434,7 @@ module StatelyDB
434
434
  # _@param_ `region` — the region to connect to
435
435
  #
436
436
  # _@return_ — the constructed endpoint
437
- sig { params(endpoint: T.nilable(String), region: T.nilable(Region)).returns(String) }
437
+ sig { params(endpoint: T.nilable(String), region: T.nilable(String)).returns(String) }
438
438
  def self.make_endpoint(endpoint: nil, region: nil); end
439
439
 
440
440
  # Process a list response from begin_list or continue_list
@@ -442,7 +442,7 @@ module StatelyDB
442
442
  # _@param_ `resp` — the response to process
443
443
  #
444
444
  # _@return_ — the list of Items and the token
445
- sig { params(resp: Stately::Db::ListResponse).returns([T::Array[StatelyDB::Item], StatelyDB::Token]) }
445
+ sig { params(resp: ::Stately::Db::ListResponse).returns([T::Array[StatelyDB::Item], StatelyDB::Token]) }
446
446
  def process_list_response(resp); end
447
447
 
448
448
  # Process a sync response from sync_list
@@ -450,7 +450,7 @@ module StatelyDB
450
450
  # _@param_ `resp` — the response to process
451
451
  #
452
452
  # _@return_ — the result of the sync operation
453
- sig { params(resp: Stately::Db::SyncResponse).returns(StatelyDB::SyncResult) }
453
+ sig { params(resp: ::Stately::Db::SyncResponse).returns(StatelyDB::SyncResult) }
454
454
  def process_sync_response(resp); end
455
455
  end
456
456
 
@@ -521,7 +521,7 @@ module StatelyDB
521
521
  # _@param_ `endpoint` — The endpoint to connect to
522
522
  #
523
523
  # _@return_ — The new channel
524
- sig { params(endpoint: String).returns(GRPC::Core::Channel) }
524
+ sig { params(endpoint: String).returns(::GRPC::Core::Channel) }
525
525
  def self.new_channel(endpoint:); end
526
526
  end
527
527
 
@@ -547,7 +547,7 @@ module StatelyDB
547
547
  sig do
548
548
  params(
549
549
  request: Object,
550
- call: GRPC::ActiveCall,
550
+ call: ::GRPC::ActiveCall,
551
551
  method: Symbol,
552
552
  metadata: T::Hash[T.untyped, T.untyped]
553
553
  ).returns(Object)
@@ -568,7 +568,7 @@ module StatelyDB
568
568
  sig do
569
569
  params(
570
570
  requests: T::Enumerable[T.untyped],
571
- call: GRPC::ActiveCall,
571
+ call: ::GRPC::ActiveCall,
572
572
  method: Symbol,
573
573
  metadata: T::Hash[T.untyped, T.untyped]
574
574
  ).returns(T::Enumerator[T.untyped])
@@ -589,7 +589,7 @@ module StatelyDB
589
589
  sig do
590
590
  params(
591
591
  request: Object,
592
- call: GRPC::ActiveCall,
592
+ call: ::GRPC::ActiveCall,
593
593
  method: Symbol,
594
594
  metadata: T::Hash[T.untyped, T.untyped]
595
595
  ).returns(T::Enumerator[T.untyped])
@@ -610,7 +610,7 @@ module StatelyDB
610
610
  sig do
611
611
  params(
612
612
  requests: T::Enumerable[T.untyped],
613
- call: GRPC::ActiveCall,
613
+ call: ::GRPC::ActiveCall,
614
614
  method: Symbol,
615
615
  metadata: T::Hash[T.untyped, T.untyped]
616
616
  ).returns(T::Enumerator[T.untyped])
@@ -625,6 +625,11 @@ module StatelyDB
625
625
  end
626
626
 
627
627
  # Result from a token fetch operation
628
+ #
629
+ # @!attribute [r] token
630
+ # @return [String] The token string.
631
+ # @!attribute [r] expires_in_secs
632
+ # @return [Integer] The expiration time in seconds.
628
633
  class TokenResult
629
634
  # Create a new TokenResult
630
635
  #
@@ -634,12 +639,12 @@ module StatelyDB
634
639
  sig { params(token: String, expires_in_secs: Integer).void }
635
640
  def initialize(token:, expires_in_secs:); end
636
641
 
637
- # Returns the value of attribute token.
638
- sig { returns(T.untyped) }
642
+ # _@return_ The token string.
643
+ sig { returns(String) }
639
644
  attr_reader :token
640
645
 
641
- # Returns the value of attribute expires_in_secs.
642
- sig { returns(T.untyped) }
646
+ # _@return_ The expiration time in seconds.
647
+ sig { returns(Integer) }
643
648
  attr_reader :expires_in_secs
644
649
  end
645
650
 
@@ -653,7 +658,7 @@ module StatelyDB
653
658
  def fetch; end
654
659
 
655
660
  # Close the token provider and kill any background operations
656
- sig { returns(T.untyped) }
661
+ sig { void }
657
662
  def close; end
658
663
  end
659
664
 
@@ -682,7 +687,8 @@ module StatelyDB
682
687
  sig { returns(TokenResult) }
683
688
  def fetch; end
684
689
 
685
- sig { returns(T.untyped) }
690
+ # Close the token provider and kill any background operations
691
+ sig { void }
686
692
  def close; end
687
693
 
688
694
  # Check if an error is retryable
@@ -706,7 +712,7 @@ module StatelyDB
706
712
  def get_token(force: false); end
707
713
 
708
714
  # Close the token provider and kill any background operations
709
- sig { returns(T.untyped) }
715
+ sig { void }
710
716
  def close; end
711
717
  end
712
718
 
@@ -725,7 +731,7 @@ module StatelyDB
725
731
 
726
732
  # Close the token provider and kill any background operations
727
733
  # This just invokes the close method on the actor which should do the cleanup
728
- sig { returns(T.untyped) }
734
+ sig { void }
729
735
  def close; end
730
736
 
731
737
  # Get the current access token
@@ -747,11 +753,11 @@ module StatelyDB
747
753
 
748
754
  # Initialize the actor. This runs on the actor thread which means
749
755
  # we can dispatch async operations here.
750
- sig { returns(T.untyped) }
756
+ sig { void }
751
757
  def init; end
752
758
 
753
759
  # Close the token provider and kill any background operations
754
- sig { returns(T.untyped) }
760
+ sig { void }
755
761
  def close; end
756
762
 
757
763
  # Get the current access token
@@ -771,7 +777,7 @@ module StatelyDB
771
777
  # Refresh the access token
772
778
  #
773
779
  # _@return_ — A task that will resolve to the new access token
774
- sig { returns(Task) }
780
+ sig { returns(::Async::Task) }
775
781
  def refresh_token; end
776
782
 
777
783
  # Refresh the access token implementation
@@ -782,6 +788,11 @@ module StatelyDB
782
788
  end
783
789
 
784
790
  # Persistent state for the token provider
791
+ #
792
+ # @!attribute [r] token
793
+ # @return [String] The token string.
794
+ # @!attribute [r] expires_at_unix_secs
795
+ # @return [Integer] The expiration time in unix seconds.
785
796
  class TokenState
786
797
  # Create a new TokenState
787
798
  #
@@ -791,12 +802,12 @@ module StatelyDB
791
802
  sig { params(token: String, expires_at_unix_secs: Integer).void }
792
803
  def initialize(token:, expires_at_unix_secs:); end
793
804
 
794
- # Returns the value of attribute token.
795
- sig { returns(T.untyped) }
805
+ # _@return_ The token string.
806
+ sig { returns(String) }
796
807
  attr_reader :token
797
808
 
798
- # Returns the value of attribute expires_at_unix_secs.
799
- sig { returns(T.untyped) }
809
+ # _@return_ The expiration time in unix seconds.
810
+ sig { returns(Integer) }
800
811
  attr_reader :expires_at_unix_secs
801
812
  end
802
813
  end
@@ -852,7 +863,7 @@ module StatelyDB
852
863
  # _@param_ `store_id` — the StatelyDB Store to transact against
853
864
  #
854
865
  # _@param_ `schema` — the schema to use for marshalling and unmarshalling Items
855
- sig { params(stub: Stately::Db::DatabaseService::Stub, store_id: Integer, schema: StatelyDB::Schema).void }
866
+ sig { params(stub: ::Stately::Db::DatabaseService::Stub, store_id: Integer, schema: ::StatelyDB::Schema).void }
856
867
  def initialize(stub:, store_id:, schema:); end
857
868
 
858
869
  # Send a request and wait for a response
@@ -860,7 +871,7 @@ module StatelyDB
860
871
  # _@param_ `req` — the request to send
861
872
  #
862
873
  # _@return_ — the response
863
- sig { params(req: Stately::Db::TransactionRequest).returns(Stately::Db::TransactionResponse) }
874
+ sig { params(req: ::Stately::Db::TransactionRequest).returns(::Stately::Db::TransactionResponse) }
864
875
  def request_response(req); end
865
876
 
866
877
  # Send a request and don't wait for a response
@@ -868,7 +879,7 @@ module StatelyDB
868
879
  # _@param_ `req` — the request to send
869
880
  #
870
881
  # _@return_ — nil
871
- sig { params(req: Stately::Db::TransactionRequest).void }
882
+ sig { params(req: ::Stately::Db::TransactionRequest).void }
872
883
  def request_only(req); end
873
884
 
874
885
  # Send a request and process all responses, until we receive a finished message. This is used for list operations.
@@ -884,7 +895,7 @@ module StatelyDB
884
895
  # puts result.item.key_path
885
896
  # end
886
897
  # ```
887
- sig { params(req: Stately::Db::TransactionRequest, blk: T.proc.params(resp: Stately::Db::TransactionListResponse).void).returns(Stately::Db::ListToken) }
898
+ sig { params(req: ::Stately::Db::TransactionRequest, blk: T.proc.params(resp: ::Stately::Db::TransactionListResponse).void).returns(::Stately::Db::ListToken) }
888
899
  def request_list_responses(req, &blk); end
889
900
 
890
901
  # Begin a transaction. Begin is called implicitly when the block passed to transaction is called.
@@ -898,7 +909,7 @@ module StatelyDB
898
909
  def commit; end
899
910
 
900
911
  # Abort a transaction. Abort is called implicitly if an exception is raised within the block passed to transaction.
901
- sig { returns(Stately::Db::TransactionResponse) }
912
+ sig { returns(::Stately::Db::TransactionResponse) }
902
913
  def abort; end
903
914
 
904
915
  # Check if a transaction is open. A transaction is open if begin has been called and commit or abort has not been called.
@@ -1021,7 +1032,7 @@ module StatelyDB
1021
1032
  limit: Integer,
1022
1033
  sort_property: T.nilable(String),
1023
1034
  sort_direction: Symbol
1024
- ).returns([T::Array[StatelyDB::Item], Stately::Db::ListToken])
1035
+ ).returns([T::Array[StatelyDB::Item], ::Stately::Db::ListToken])
1025
1036
  end
1026
1037
  def begin_list(prefix, limit: 100, sort_property: nil, sort_direction: :ascending); end
1027
1038
 
@@ -1038,7 +1049,7 @@ module StatelyDB
1038
1049
  # _@param_ `continue_direction` — the direction to continue by (:forward or :backward)
1039
1050
  #
1040
1051
  # _@return_ — the list of Items and the token
1041
- sig { params(token: Stately::Db::ListToken, continue_direction: Symbol).returns([T::Array[StatelyDB::Item], Stately::Db::ListToken]) }
1052
+ sig { params(token: ::Stately::Db::ListToken, continue_direction: Symbol).returns([T::Array[StatelyDB::Item], ::Stately::Db::ListToken]) }
1042
1053
  def continue_list(token, continue_direction: :forward); end
1043
1054
 
1044
1055
  # Processes a list response from begin_list or continue_list
@@ -1046,7 +1057,7 @@ module StatelyDB
1046
1057
  # _@param_ `req` — the request to send
1047
1058
  #
1048
1059
  # _@return_ — the list of Items and the token
1049
- sig { params(req: Stately::Db::TransactionRequest).returns([T::Array[StatelyDB::Item], Stately::Db::ListToken]) }
1060
+ sig { params(req: ::Stately::Db::TransactionRequest).returns([T::Array[StatelyDB::Item], ::Stately::Db::ListToken]) }
1050
1061
  def do_list_request_response(req); end
1051
1062
 
1052
1063
  # We are using a oneof inside the TransactionRequest to determine the type of request. The ruby
@@ -1055,7 +1066,7 @@ module StatelyDB
1055
1066
  # _@param_ `req` — the request
1056
1067
  #
1057
1068
  # _@return_ — the response type
1058
- sig { params(req: Stately::Db::TransactionRequest).returns(Class) }
1069
+ sig { params(req: ::Stately::Db::TransactionRequest).returns(Class) }
1059
1070
  def infer_response_type_from_request(req); end
1060
1071
 
1061
1072
  # We are using a oneof inside the TransactionResponse to determine the type of response. The ruby
@@ -1064,7 +1075,7 @@ module StatelyDB
1064
1075
  # _@param_ `resp` — the response
1065
1076
  #
1066
1077
  # _@return_ — the response type
1067
- sig { params(resp: Stately::Db::TransactionResponse).returns(Class) }
1078
+ sig { params(resp: ::Stately::Db::TransactionResponse).returns(Class) }
1068
1079
  def infer_response_type_from_response(resp); end
1069
1080
 
1070
1081
  # Result represents the results of a transaction
data/sig/statelydb.rbs CHANGED
@@ -380,21 +380,21 @@ module StatelyDB
380
380
  # _@param_ `region` — the region to connect to
381
381
  #
382
382
  # _@return_ — the constructed endpoint
383
- def self.make_endpoint: (?endpoint: String?, ?region: Region?) -> String
383
+ def self.make_endpoint: (?endpoint: String?, ?region: String?) -> String
384
384
 
385
385
  # Process a list response from begin_list or continue_list
386
386
  #
387
387
  # _@param_ `resp` — the response to process
388
388
  #
389
389
  # _@return_ — the list of Items and the token
390
- def process_list_response: (Stately::Db::ListResponse resp) -> [::Array[StatelyDB::Item], StatelyDB::Token]
390
+ def process_list_response: (::Stately::Db::ListResponse resp) -> [::Array[StatelyDB::Item], StatelyDB::Token]
391
391
 
392
392
  # Process a sync response from sync_list
393
393
  #
394
394
  # _@param_ `resp` — the response to process
395
395
  #
396
396
  # _@return_ — the result of the sync operation
397
- def process_sync_response: (Stately::Db::SyncResponse resp) -> StatelyDB::SyncResult
397
+ def process_sync_response: (::Stately::Db::SyncResponse resp) -> StatelyDB::SyncResult
398
398
  end
399
399
 
400
400
  # SyncResult represents the results of a sync operation.
@@ -456,7 +456,7 @@ module StatelyDB
456
456
  # _@param_ `endpoint` — The endpoint to connect to
457
457
  #
458
458
  # _@return_ — The new channel
459
- def self.new_channel: (endpoint: String) -> GRPC::Core::Channel
459
+ def self.new_channel: (endpoint: String) -> ::GRPC::Core::Channel
460
460
  end
461
461
 
462
462
  # A module for Stately Cloud auth code
@@ -479,7 +479,7 @@ module StatelyDB
479
479
  # _@return_ — The response object
480
480
  def request_response: (
481
481
  request: Object,
482
- call: GRPC::ActiveCall,
482
+ call: ::GRPC::ActiveCall,
483
483
  method: Symbol,
484
484
  metadata: ::Hash[untyped, untyped]
485
485
  ) -> Object
@@ -497,7 +497,7 @@ module StatelyDB
497
497
  # _@return_ — The response enumerator
498
498
  def client_streamer: (
499
499
  requests: ::Enumerable[untyped],
500
- call: GRPC::ActiveCall,
500
+ call: ::GRPC::ActiveCall,
501
501
  method: Symbol,
502
502
  metadata: ::Hash[untyped, untyped]
503
503
  ) -> ::Enumerator[untyped]
@@ -515,7 +515,7 @@ module StatelyDB
515
515
  # _@return_ — The response enumerator
516
516
  def server_streamer: (
517
517
  request: Object,
518
- call: GRPC::ActiveCall,
518
+ call: ::GRPC::ActiveCall,
519
519
  method: Symbol,
520
520
  metadata: ::Hash[untyped, untyped]
521
521
  ) -> ::Enumerator[untyped]
@@ -533,7 +533,7 @@ module StatelyDB
533
533
  # _@return_ — The response enumerator
534
534
  def bidi_streamer: (
535
535
  requests: ::Enumerable[untyped],
536
- call: GRPC::ActiveCall,
536
+ call: ::GRPC::ActiveCall,
537
537
  method: Symbol,
538
538
  metadata: ::Hash[untyped, untyped]
539
539
  ) -> ::Enumerator[untyped]
@@ -545,6 +545,11 @@ module StatelyDB
545
545
  end
546
546
 
547
547
  # Result from a token fetch operation
548
+ #
549
+ # @!attribute [r] token
550
+ # @return [String] The token string.
551
+ # @!attribute [r] expires_in_secs
552
+ # @return [Integer] The expiration time in seconds.
548
553
  class TokenResult
549
554
  # Create a new TokenResult
550
555
  #
@@ -553,11 +558,11 @@ module StatelyDB
553
558
  # _@param_ `expires_in_secs` — The number of seconds until the token expires
554
559
  def initialize: (token: String, expires_in_secs: Integer) -> void
555
560
 
556
- # Returns the value of attribute token.
557
- attr_reader token: untyped
561
+ # _@return_ The token string.
562
+ attr_reader token: String
558
563
 
559
- # Returns the value of attribute expires_in_secs.
560
- attr_reader expires_in_secs: untyped
564
+ # _@return_ The expiration time in seconds.
565
+ attr_reader expires_in_secs: Integer
561
566
  end
562
567
 
563
568
  # TokenFetcher is an abstract base class that should be extended
@@ -569,13 +574,13 @@ module StatelyDB
569
574
  def fetch: () -> TokenResult
570
575
 
571
576
  # Close the token provider and kill any background operations
572
- def close: () -> untyped
577
+ def close: () -> void
573
578
  end
574
579
 
575
580
  # StatelyAccessTokenFetcher is a TokenFetcher that fetches tokens from the StatelyDB API
576
581
  class StatelyAccessTokenFetcher < StatelyDB::Common::Auth::TokenFetcher
577
- NON_RETRYABLE_ERRORS: untyped
578
- RETRY_ATTEMPTS: untyped
582
+ NON_RETRYABLE_ERRORS: ::Array[::GRPC::Core::StatusCodes]
583
+ RETRY_ATTEMPTS: Integer
579
584
 
580
585
  # _@param_ `endpoint` — The endpoint of the OAuth server
581
586
  #
@@ -589,7 +594,8 @@ module StatelyDB
589
594
  # _@return_ — The fetched TokenResult
590
595
  def fetch: () -> TokenResult
591
596
 
592
- def close: () -> untyped
597
+ # Close the token provider and kill any background operations
598
+ def close: () -> void
593
599
 
594
600
  # Check if an error is retryable
595
601
  #
@@ -610,7 +616,7 @@ module StatelyDB
610
616
  def get_token: (?force: bool) -> String
611
617
 
612
618
  # Close the token provider and kill any background operations
613
- def close: () -> untyped
619
+ def close: () -> void
614
620
  end
615
621
 
616
622
  # AuthTokenProvider is an implementation of the TokenProvider abstract base class
@@ -627,7 +633,7 @@ module StatelyDB
627
633
 
628
634
  # Close the token provider and kill any background operations
629
635
  # This just invokes the close method on the actor which should do the cleanup
630
- def close: () -> untyped
636
+ def close: () -> void
631
637
 
632
638
  # Get the current access token
633
639
  #
@@ -646,10 +652,10 @@ module StatelyDB
646
652
 
647
653
  # Initialize the actor. This runs on the actor thread which means
648
654
  # we can dispatch async operations here.
649
- def init: () -> untyped
655
+ def init: () -> void
650
656
 
651
657
  # Close the token provider and kill any background operations
652
- def close: () -> untyped
658
+ def close: () -> void
653
659
 
654
660
  # Get the current access token
655
661
  #
@@ -666,7 +672,7 @@ module StatelyDB
666
672
  # Refresh the access token
667
673
  #
668
674
  # _@return_ — A task that will resolve to the new access token
669
- def refresh_token: () -> Task
675
+ def refresh_token: () -> ::Async::Task
670
676
 
671
677
  # Refresh the access token implementation
672
678
  #
@@ -675,6 +681,11 @@ module StatelyDB
675
681
  end
676
682
 
677
683
  # Persistent state for the token provider
684
+ #
685
+ # @!attribute [r] token
686
+ # @return [String] The token string.
687
+ # @!attribute [r] expires_at_unix_secs
688
+ # @return [Integer] The expiration time in unix seconds.
678
689
  class TokenState
679
690
  # Create a new TokenState
680
691
  #
@@ -683,11 +694,11 @@ module StatelyDB
683
694
  # _@param_ `expires_at_unix_secs` — The unix timestamp when the token expires
684
695
  def initialize: (token: String, expires_at_unix_secs: Integer) -> void
685
696
 
686
- # Returns the value of attribute token.
687
- attr_reader token: untyped
697
+ # _@return_ The token string.
698
+ attr_reader token: String
688
699
 
689
- # Returns the value of attribute expires_at_unix_secs.
690
- attr_reader expires_at_unix_secs: untyped
700
+ # _@return_ The expiration time in unix seconds.
701
+ attr_reader expires_at_unix_secs: Integer
691
702
  end
692
703
  end
693
704
  end
@@ -737,21 +748,21 @@ module StatelyDB
737
748
  # _@param_ `store_id` — the StatelyDB Store to transact against
738
749
  #
739
750
  # _@param_ `schema` — the schema to use for marshalling and unmarshalling Items
740
- def initialize: (stub: Stately::Db::DatabaseService::Stub, store_id: Integer, schema: StatelyDB::Schema) -> void
751
+ def initialize: (stub: ::Stately::Db::DatabaseService::Stub, store_id: Integer, schema: ::StatelyDB::Schema) -> void
741
752
 
742
753
  # Send a request and wait for a response
743
754
  #
744
755
  # _@param_ `req` — the request to send
745
756
  #
746
757
  # _@return_ — the response
747
- def request_response: (Stately::Db::TransactionRequest req) -> Stately::Db::TransactionResponse
758
+ def request_response: (::Stately::Db::TransactionRequest req) -> ::Stately::Db::TransactionResponse
748
759
 
749
760
  # Send a request and don't wait for a response
750
761
  #
751
762
  # _@param_ `req` — the request to send
752
763
  #
753
764
  # _@return_ — nil
754
- def request_only: (Stately::Db::TransactionRequest req) -> void
765
+ def request_only: (::Stately::Db::TransactionRequest req) -> void
755
766
 
756
767
  # Send a request and process all responses, until we receive a finished message. This is used for list operations.
757
768
  # Each response is processed by the block passed to this method, and the response for this method is a token.
@@ -766,7 +777,7 @@ module StatelyDB
766
777
  # puts result.item.key_path
767
778
  # end
768
779
  # ```
769
- def request_list_responses: (Stately::Db::TransactionRequest req) ?{ (Stately::Db::TransactionListResponse resp) -> void } -> Stately::Db::ListToken
780
+ def request_list_responses: (::Stately::Db::TransactionRequest req) ?{ (::Stately::Db::TransactionListResponse resp) -> void } -> ::Stately::Db::ListToken
770
781
 
771
782
  # Begin a transaction. Begin is called implicitly when the block passed to transaction is called.
772
783
  #
@@ -777,7 +788,7 @@ module StatelyDB
777
788
  def commit: () -> StatelyDB::Transaction::Transaction::Result
778
789
 
779
790
  # Abort a transaction. Abort is called implicitly if an exception is raised within the block passed to transaction.
780
- def abort: () -> Stately::Db::TransactionResponse
791
+ def abort: () -> ::Stately::Db::TransactionResponse
781
792
 
782
793
  # Check if a transaction is open. A transaction is open if begin has been called and commit or abort has not been called.
783
794
  #
@@ -892,7 +903,7 @@ module StatelyDB
892
903
  ?limit: Integer,
893
904
  ?sort_property: String?,
894
905
  ?sort_direction: Symbol
895
- ) -> [::Array[StatelyDB::Item], Stately::Db::ListToken]
906
+ ) -> [::Array[StatelyDB::Item], ::Stately::Db::ListToken]
896
907
 
897
908
  # Continue listing Items from a StatelyDB Store using a token.
898
909
  #
@@ -907,14 +918,14 @@ module StatelyDB
907
918
  # _@param_ `continue_direction` — the direction to continue by (:forward or :backward)
908
919
  #
909
920
  # _@return_ — the list of Items and the token
910
- def continue_list: (Stately::Db::ListToken token, ?continue_direction: Symbol) -> [::Array[StatelyDB::Item], Stately::Db::ListToken]
921
+ def continue_list: (::Stately::Db::ListToken token, ?continue_direction: Symbol) -> [::Array[StatelyDB::Item], ::Stately::Db::ListToken]
911
922
 
912
923
  # Processes a list response from begin_list or continue_list
913
924
  #
914
925
  # _@param_ `req` — the request to send
915
926
  #
916
927
  # _@return_ — the list of Items and the token
917
- def do_list_request_response: (Stately::Db::TransactionRequest req) -> [::Array[StatelyDB::Item], Stately::Db::ListToken]
928
+ def do_list_request_response: (::Stately::Db::TransactionRequest req) -> [::Array[StatelyDB::Item], ::Stately::Db::ListToken]
918
929
 
919
930
  # We are using a oneof inside the TransactionRequest to determine the type of request. The ruby
920
931
  # generated code does not have a helper for the internal request type so we need to infer it.
@@ -922,7 +933,7 @@ module StatelyDB
922
933
  # _@param_ `req` — the request
923
934
  #
924
935
  # _@return_ — the response type
925
- def infer_response_type_from_request: (Stately::Db::TransactionRequest req) -> Class
936
+ def infer_response_type_from_request: (::Stately::Db::TransactionRequest req) -> Class
926
937
 
927
938
  # We are using a oneof inside the TransactionResponse to determine the type of response. The ruby
928
939
  # generated code does not have a helper for the internal response type so we need to infer it.
@@ -930,7 +941,7 @@ module StatelyDB
930
941
  # _@param_ `resp` — the response
931
942
  #
932
943
  # _@return_ — the response type
933
- def infer_response_type_from_response: (Stately::Db::TransactionResponse resp) -> Class
944
+ def infer_response_type_from_response: (::Stately::Db::TransactionResponse resp) -> Class
934
945
 
935
946
  # Result represents the results of a transaction
936
947
  #
@@ -1036,12 +1047,12 @@ module Stately
1036
1047
  end
1037
1048
 
1038
1049
  module StatelyCode
1039
- CACHED_SCHEMA_TOO_OLD: untyped
1040
- CONCURRENT_MODIFICATION: untyped
1041
- CONDITIONAL_CHECK_FAILED: untyped
1042
- ITEM_REUSED_WITH_DIFFERENT_KEY_PATH: untyped
1043
- NON_RECOVERABLE_TRANSACTION: untyped
1044
- STORE_IN_USE: untyped
1045
- STORE_REQUEST_LIMIT_EXCEEDED: untyped
1046
- STORE_THROUGHPUT_EXCEEDED: untyped
1050
+ CACHED_SCHEMA_TOO_OLD: String
1051
+ CONCURRENT_MODIFICATION: String
1052
+ CONDITIONAL_CHECK_FAILED: String
1053
+ ITEM_REUSED_WITH_DIFFERENT_KEY_PATH: String
1054
+ NON_RECOVERABLE_TRANSACTION: String
1055
+ STORE_IN_USE: String
1056
+ STORE_REQUEST_LIMIT_EXCEEDED: String
1057
+ STORE_THROUGHPUT_EXCEEDED: String
1047
1058
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statelydb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stately Cloud, Inc.
@@ -107,8 +107,7 @@ files:
107
107
  - lib/transaction/queue.rb
108
108
  - lib/transaction/transaction.rb
109
109
  - lib/uuid.rb
110
- - sig/grpc.rbs
111
- - sig/statelydb.rbi
110
+ - rbi/statelydb.rbi
112
111
  - sig/statelydb.rbs
113
112
  homepage: https://docs.stately.cloud/clients/ruby/
114
113
  licenses:
data/sig/grpc.rbs DELETED
@@ -1,80 +0,0 @@
1
- module GRPC
2
- class ActiveCall
3
- end
4
-
5
- class Interceptor
6
- end
7
- class ClientInterceptor < Interceptor
8
- # gRPC client unary interceptor
9
- #
10
- # _@param_ `request` — The request object
11
- #
12
- # _@param_ `call` — The active call object
13
- #
14
- # _@param_ `method` — The method being called
15
- #
16
- # _@param_ `metadata` — The metadata hash
17
- #
18
- # _@return_ — The response object
19
- def request_response: (
20
- request: Object,
21
- call: GRPC::ActiveCall,
22
- method: Symbol,
23
- metadata: ::Hash[untyped, untyped]
24
- ) -> Object
25
-
26
- # gRPC client streaming interceptor
27
- #
28
- # _@param_ `requests` — The list of requests
29
- #
30
- # _@param_ `call` — The active call object
31
- #
32
- # _@param_ `method` — The method being called
33
- #
34
- # _@param_ `metadata` — The metadata hash
35
- #
36
- # _@return_ — The response enumerator
37
- def client_streamer: (
38
- requests: ::Enumerable[untyped],
39
- call: GRPC::ActiveCall,
40
- method: Symbol,
41
- metadata: ::Hash[untyped, untyped]
42
- ) -> ::Enumerator[untyped]
43
-
44
- # gRPC server streaming interceptor
45
- #
46
- # _@param_ `request` — The request object
47
- #
48
- # _@param_ `call` — The active call object
49
- #
50
- # _@param_ `method` — The method being called
51
- #
52
- # _@param_ `metadata` — The metadata hash
53
- #
54
- # _@return_ — The response enumerator
55
- def server_streamer: (
56
- request: Object,
57
- call: GRPC::ActiveCall,
58
- method: Symbol,
59
- metadata: ::Hash[untyped, untyped]
60
- ) -> ::Enumerator[untyped]
61
-
62
- # gRPC bidirectional streaming interceptor
63
- #
64
- # _@param_ `requests` — The list of requests
65
- #
66
- # _@param_ `call` — The active call object
67
- #
68
- # _@param_ `method` — The method being called
69
- #
70
- # _@param_ `metadata` — The metadata hash
71
- #
72
- # _@return_ — The response enumerator
73
- def bidi_streamer: (
74
- requests: ::Enumerable[untyped],
75
- call: GRPC::ActiveCall,
76
- method: Symbol,
77
- metadata: ::Hash[untyped, untyped]
78
- ) -> ::Enumerator[untyped]
79
- end
80
- end