lithic 0.1.0.pre.alpha.26 → 0.1.0.pre.alpha.27

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +94 -54
  4. data/lib/lithic/internal/type/array_of.rb +8 -0
  5. data/lib/lithic/internal/type/base_model.rb +15 -0
  6. data/lib/lithic/internal/type/boolean.rb +8 -0
  7. data/lib/lithic/internal/type/enum.rb +12 -0
  8. data/lib/lithic/internal/type/file_input.rb +7 -0
  9. data/lib/lithic/internal/type/hash_of.rb +8 -0
  10. data/lib/lithic/internal/type/union.rb +12 -0
  11. data/lib/lithic/internal/type/unknown.rb +8 -0
  12. data/lib/lithic/internal/util.rb +45 -0
  13. data/lib/lithic/internal.rb +3 -0
  14. data/lib/lithic/models/account_holder_update_response.rb +0 -9
  15. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +0 -4
  16. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -20
  17. data/lib/lithic/models/auth_rules/v2_create_params.rb +0 -10
  18. data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -20
  19. data/lib/lithic/models/auth_rules/v2_draft_params.rb +0 -10
  20. data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -20
  21. data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -20
  22. data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -20
  23. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -20
  24. data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -20
  25. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +0 -4
  26. data/lib/lithic/models.rb +30 -19
  27. data/lib/lithic/version.rb +1 -1
  28. data/rbi/lithic/internal/type/array_of.rbi +6 -0
  29. data/rbi/lithic/internal/type/base_model.rbi +5 -0
  30. data/rbi/lithic/internal/type/boolean.rbi +6 -0
  31. data/rbi/lithic/internal/type/enum.rbi +5 -0
  32. data/rbi/lithic/internal/type/file_input.rbi +5 -0
  33. data/rbi/lithic/internal/type/hash_of.rbi +6 -0
  34. data/rbi/lithic/internal/type/union.rbi +5 -0
  35. data/rbi/lithic/internal/type/unknown.rbi +6 -0
  36. data/rbi/lithic/internal/util.rbi +31 -0
  37. data/rbi/lithic/internal.rbi +3 -0
  38. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +12 -4
  39. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +4 -20
  40. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -20
  41. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -20
  42. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -20
  43. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -20
  44. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -20
  45. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -20
  46. data/rbi/lithic/resources/account_holders.rbi +1 -6
  47. data/sig/lithic/internal/type/array_of.rbs +3 -0
  48. data/sig/lithic/internal/type/base_model.rbs +2 -0
  49. data/sig/lithic/internal/type/boolean.rbs +3 -0
  50. data/sig/lithic/internal/type/enum.rbs +2 -0
  51. data/sig/lithic/internal/type/file_input.rbs +2 -0
  52. data/sig/lithic/internal/type/hash_of.rbs +3 -0
  53. data/sig/lithic/internal/type/union.rbs +2 -0
  54. data/sig/lithic/internal/type/unknown.rbs +3 -0
  55. data/sig/lithic/internal/util.rbs +12 -0
  56. data/sig/lithic/internal.rbs +2 -0
  57. metadata +2 -2
@@ -168,11 +168,7 @@ module Lithic
168
168
  # Parameters for the Auth Rule
169
169
  sig do
170
170
  returns(
171
- T.any(
172
- Lithic::AuthRules::ConditionalBlockParameters,
173
- Lithic::AuthRules::VelocityLimitParams,
174
- Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
175
- )
171
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Variants
176
172
  )
177
173
  end
178
174
  attr_accessor :parameters
@@ -206,11 +202,7 @@ module Lithic
206
202
  override.returns(
207
203
  {
208
204
  parameters:
209
- T.any(
210
- Lithic::AuthRules::ConditionalBlockParameters,
211
- Lithic::AuthRules::VelocityLimitParams,
212
- Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
213
- ),
205
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Variants,
214
206
  version: Integer
215
207
  }
216
208
  )
@@ -373,11 +365,7 @@ module Lithic
373
365
  # Parameters for the Auth Rule
374
366
  sig do
375
367
  returns(
376
- T.any(
377
- Lithic::AuthRules::ConditionalBlockParameters,
378
- Lithic::AuthRules::VelocityLimitParams,
379
- Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
380
- )
368
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Variants
381
369
  )
382
370
  end
383
371
  attr_accessor :parameters
@@ -411,11 +399,7 @@ module Lithic
411
399
  override.returns(
412
400
  {
413
401
  parameters:
414
- T.any(
415
- Lithic::AuthRules::ConditionalBlockParameters,
416
- Lithic::AuthRules::VelocityLimitParams,
417
- Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
418
- ),
402
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Variants,
419
403
  version: Integer
420
404
  }
421
405
  )
@@ -175,11 +175,7 @@ module Lithic
175
175
  # Parameters for the Auth Rule
176
176
  sig do
177
177
  returns(
178
- T.any(
179
- Lithic::AuthRules::ConditionalBlockParameters,
180
- Lithic::AuthRules::VelocityLimitParams,
181
- Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
182
- )
178
+ Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants
183
179
  )
184
180
  end
185
181
  attr_accessor :parameters
@@ -213,11 +209,7 @@ module Lithic
213
209
  override.returns(
214
210
  {
215
211
  parameters:
216
- T.any(
217
- Lithic::AuthRules::ConditionalBlockParameters,
218
- Lithic::AuthRules::VelocityLimitParams,
219
- Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
220
- ),
212
+ Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants,
221
213
  version: Integer
222
214
  }
223
215
  )
@@ -380,11 +372,7 @@ module Lithic
380
372
  # Parameters for the Auth Rule
381
373
  sig do
382
374
  returns(
383
- T.any(
384
- Lithic::AuthRules::ConditionalBlockParameters,
385
- Lithic::AuthRules::VelocityLimitParams,
386
- Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
387
- )
375
+ Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants
388
376
  )
389
377
  end
390
378
  attr_accessor :parameters
@@ -418,11 +406,7 @@ module Lithic
418
406
  override.returns(
419
407
  {
420
408
  parameters:
421
- T.any(
422
- Lithic::AuthRules::ConditionalBlockParameters,
423
- Lithic::AuthRules::VelocityLimitParams,
424
- Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
425
- ),
409
+ Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants,
426
410
  version: Integer
427
411
  }
428
412
  )
@@ -175,11 +175,7 @@ module Lithic
175
175
  # Parameters for the Auth Rule
176
176
  sig do
177
177
  returns(
178
- T.any(
179
- Lithic::AuthRules::ConditionalBlockParameters,
180
- Lithic::AuthRules::VelocityLimitParams,
181
- Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
182
- )
178
+ Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Variants
183
179
  )
184
180
  end
185
181
  attr_accessor :parameters
@@ -213,11 +209,7 @@ module Lithic
213
209
  override.returns(
214
210
  {
215
211
  parameters:
216
- T.any(
217
- Lithic::AuthRules::ConditionalBlockParameters,
218
- Lithic::AuthRules::VelocityLimitParams,
219
- Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
220
- ),
212
+ Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Variants,
221
213
  version: Integer
222
214
  }
223
215
  )
@@ -380,11 +372,7 @@ module Lithic
380
372
  # Parameters for the Auth Rule
381
373
  sig do
382
374
  returns(
383
- T.any(
384
- Lithic::AuthRules::ConditionalBlockParameters,
385
- Lithic::AuthRules::VelocityLimitParams,
386
- Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
387
- )
375
+ Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Variants
388
376
  )
389
377
  end
390
378
  attr_accessor :parameters
@@ -418,11 +406,7 @@ module Lithic
418
406
  override.returns(
419
407
  {
420
408
  parameters:
421
- T.any(
422
- Lithic::AuthRules::ConditionalBlockParameters,
423
- Lithic::AuthRules::VelocityLimitParams,
424
- Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
425
- ),
409
+ Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Variants,
426
410
  version: Integer
427
411
  }
428
412
  )
@@ -172,11 +172,7 @@ module Lithic
172
172
  # Parameters for the Auth Rule
173
173
  sig do
174
174
  returns(
175
- T.any(
176
- Lithic::AuthRules::ConditionalBlockParameters,
177
- Lithic::AuthRules::VelocityLimitParams,
178
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
179
- )
175
+ Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Variants
180
176
  )
181
177
  end
182
178
  attr_accessor :parameters
@@ -210,11 +206,7 @@ module Lithic
210
206
  override.returns(
211
207
  {
212
208
  parameters:
213
- T.any(
214
- Lithic::AuthRules::ConditionalBlockParameters,
215
- Lithic::AuthRules::VelocityLimitParams,
216
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
217
- ),
209
+ Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Variants,
218
210
  version: Integer
219
211
  }
220
212
  )
@@ -377,11 +369,7 @@ module Lithic
377
369
  # Parameters for the Auth Rule
378
370
  sig do
379
371
  returns(
380
- T.any(
381
- Lithic::AuthRules::ConditionalBlockParameters,
382
- Lithic::AuthRules::VelocityLimitParams,
383
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
384
- )
372
+ Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Variants
385
373
  )
386
374
  end
387
375
  attr_accessor :parameters
@@ -415,11 +403,7 @@ module Lithic
415
403
  override.returns(
416
404
  {
417
405
  parameters:
418
- T.any(
419
- Lithic::AuthRules::ConditionalBlockParameters,
420
- Lithic::AuthRules::VelocityLimitParams,
421
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
422
- ),
406
+ Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Variants,
423
407
  version: Integer
424
408
  }
425
409
  )
@@ -166,12 +166,7 @@ module Lithic
166
166
  legal_business_name: String,
167
167
  phone_number: String,
168
168
  request_options: Lithic::RequestOptions::OrHash
169
- ).returns(
170
- T.any(
171
- Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse,
172
- Lithic::Models::AccountHolderUpdateResponse::PatchResponse
173
- )
174
- )
169
+ ).returns(Lithic::Models::AccountHolderUpdateResponse::Variants)
175
170
  end
176
171
  def update(
177
172
  # Globally unique identifier for the account holder.
@@ -3,6 +3,7 @@ module Lithic
3
3
  module Type
4
4
  class ArrayOf[Elem]
5
5
  include Lithic::Internal::Type::Converter
6
+ include Lithic::Internal::Util::SorbetRuntimeSupport
6
7
 
7
8
  def self.[]: (
8
9
  ::Hash[Symbol, top]
@@ -27,6 +28,8 @@ module Lithic
27
28
  state: Lithic::Internal::Type::Converter::dump_state
28
29
  ) -> (::Array[top] | top)
29
30
 
31
+ def to_sorbet_type: -> top
32
+
30
33
  def item_type: -> Elem
31
34
 
32
35
  def nilable?: -> bool
@@ -68,6 +68,8 @@ module Lithic
68
68
  state: Lithic::Internal::Type::Converter::dump_state
69
69
  ) -> (::Hash[top, top] | top)
70
70
 
71
+ def self.to_sorbet_type: -> top
72
+
71
73
  def self.recursively_to_h: (
72
74
  Lithic::Internal::Type::BaseModel model,
73
75
  convert: bool
@@ -3,6 +3,7 @@ module Lithic
3
3
  module Type
4
4
  class Boolean
5
5
  extend Lithic::Internal::Type::Converter
6
+ extend Lithic::Internal::Util::SorbetRuntimeSupport
6
7
 
7
8
  def self.===: (top other) -> bool
8
9
 
@@ -17,6 +18,8 @@ module Lithic
17
18
  bool | top value,
18
19
  state: Lithic::Internal::Type::Converter::dump_state
19
20
  ) -> (bool | top)
21
+
22
+ def self.to_sorbet_type: -> top
20
23
  end
21
24
  end
22
25
  end
@@ -23,6 +23,8 @@ module Lithic
23
23
  state: Lithic::Internal::Type::Converter::dump_state
24
24
  ) -> (Symbol | top)
25
25
 
26
+ def to_sorbet_type: -> top
27
+
26
28
  def inspect: (?depth: Integer) -> String
27
29
  end
28
30
  end
@@ -17,6 +17,8 @@ module Lithic
17
17
  Pathname | StringIO | IO | String | top value,
18
18
  state: Lithic::Internal::Type::Converter::dump_state
19
19
  ) -> (Pathname | StringIO | IO | String | top)
20
+
21
+ def self.to_sorbet_type: -> top
20
22
  end
21
23
  end
22
24
  end
@@ -3,6 +3,7 @@ module Lithic
3
3
  module Type
4
4
  class HashOf[Elem]
5
5
  include Lithic::Internal::Type::Converter
6
+ include Lithic::Internal::Util::SorbetRuntimeSupport
6
7
 
7
8
  def self.[]: (
8
9
  ::Hash[Symbol, top]
@@ -27,6 +28,8 @@ module Lithic
27
28
  state: Lithic::Internal::Type::Converter::dump_state
28
29
  ) -> (::Hash[Symbol, top] | top)
29
30
 
31
+ def to_sorbet_type: -> top
32
+
30
33
  def item_type: -> Elem
31
34
 
32
35
  def nilable?: -> bool
@@ -43,6 +43,8 @@ module Lithic
43
43
  state: Lithic::Internal::Type::Converter::dump_state
44
44
  ) -> top
45
45
 
46
+ def to_sorbet_type: -> top
47
+
46
48
  def inspect: (?depth: Integer) -> String
47
49
  end
48
50
  end
@@ -3,6 +3,7 @@ module Lithic
3
3
  module Type
4
4
  class Unknown
5
5
  extend Lithic::Internal::Type::Converter
6
+ extend Lithic::Internal::Util::SorbetRuntimeSupport
6
7
 
7
8
  def self.===: (top other) -> bool
8
9
 
@@ -17,6 +18,8 @@ module Lithic
17
18
  top value,
18
19
  state: Lithic::Internal::Type::Converter::dump_state
19
20
  ) -> top
21
+
22
+ def self.to_sorbet_type: -> top
20
23
  end
21
24
  end
22
25
  end
@@ -5,6 +5,10 @@ module Lithic
5
5
 
6
6
  def self?.monotonic_secs: -> Float
7
7
 
8
+ def self?.walk_namespaces: (
9
+ Module | Class ns
10
+ ) -> Enumerable[(Module | Class)]
11
+
8
12
  def self?.arch: -> String
9
13
 
10
14
  def self?.os: -> String
@@ -166,7 +170,15 @@ module Lithic
166
170
 
167
171
  def const_missing: (Symbol name) -> void
168
172
 
173
+ def sorbet_constant_defined?: (Symbol name) -> bool
174
+
169
175
  def define_sorbet_constant!: (Symbol name) { -> top } -> void
176
+
177
+ def to_sorbet_type: -> top
178
+
179
+ def self.to_sorbet_type: (
180
+ Lithic::Internal::Util::SorbetRuntimeSupport | top `type`
181
+ ) -> top
170
182
  end
171
183
  end
172
184
  end
@@ -2,6 +2,8 @@ module Lithic
2
2
  module Internal
3
3
  extend Lithic::Internal::Util::SorbetRuntimeSupport
4
4
 
5
+ type file_input = Pathname | StringIO | IO | String | Lithic::FilePart
6
+
5
7
  OMIT: Object
6
8
  end
7
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lithic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.26
4
+ version: 0.1.0.pre.alpha.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-14 00:00:00.000000000 Z
11
+ date: 2025-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool