privy_ruby 0.1.0 → 0.2.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.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/privy/client.rb +5 -4
  5. data/lib/privy/models/analytics_event_input.rb +2 -2
  6. data/lib/privy/models/bitcoin_address.rb +7 -0
  7. data/lib/privy/models/bridge_destination_asset.rb +1 -0
  8. data/lib/privy/models/bridge_fiat_virtual_account_destination.rb +6 -1
  9. data/lib/privy/models/bridge_fiat_virtual_account_request.rb +6 -2
  10. data/lib/privy/models/bridge_fiat_virtual_account_response.rb +2 -1
  11. data/lib/privy/models/bridge_fiat_virtual_account_source.rb +4 -1
  12. data/lib/privy/models/bridge_sandbox_fiat_virtual_account_request.rb +6 -2
  13. data/lib/privy/models/bridge_sandbox_fiat_virtual_account_response.rb +2 -1
  14. data/lib/privy/models/bridge_source_asset.rb +1 -0
  15. data/lib/privy/models/create_stripe_onramp_session_response.rb +16 -1
  16. data/lib/privy/models/device_verify_action.rb +16 -0
  17. data/lib/privy/models/device_verify_request_body.rb +27 -0
  18. data/lib/privy/models/device_verify_response.rb +18 -0
  19. data/lib/privy/models/evm_address.rb +7 -0
  20. data/lib/privy/models/evm_checksum_address.rb +7 -0
  21. data/lib/privy/models/gas.rb +35 -0
  22. data/lib/privy/models/hyperliquid_token_address.rb +7 -0
  23. data/lib/privy/models/linked_account_embedded_wallet.rb +1 -0
  24. data/lib/privy/models/oauth_grant.rb +54 -0
  25. data/lib/privy/models/oauth_grant_list_response.rb +18 -0
  26. data/lib/privy/models/oauth_grant_revoke_response.rb +30 -0
  27. data/lib/privy/models/oauth_token_authorization_code_request_body.rb +59 -0
  28. data/lib/privy/models/oauth_token_device_code_pending_error.rb +50 -0
  29. data/lib/privy/models/oauth_token_device_code_request_body.rb +36 -0
  30. data/lib/privy/models/oauth_token_grant_type.rb +17 -0
  31. data/lib/privy/models/oauth_token_refresh_token_request_body.rb +36 -0
  32. data/lib/privy/models/oauth_token_request_body.rb +24 -0
  33. data/lib/privy/models/oauth_token_success_response.rb +58 -0
  34. data/lib/privy/models/onramp_session_fees.rb +23 -0
  35. data/lib/privy/models/onramp_session_transaction_details.rb +59 -0
  36. data/lib/privy/models/solana_address.rb +7 -0
  37. data/lib/privy/models/swap_action_response.rb +38 -1
  38. data/lib/privy/models/swap_quote_request_body.rb +3 -3
  39. data/lib/privy/models/swap_quote_response.rb +18 -5
  40. data/lib/privy/models/swap_request_body.rb +3 -3
  41. data/lib/privy/models/token_transfer_destination.rb +2 -2
  42. data/lib/privy/models/transfer_action_response.rb +29 -3
  43. data/lib/privy/models/transfer_quote_request_body.rb +3 -2
  44. data/lib/privy/models/transfer_quote_response.rb +10 -1
  45. data/lib/privy/models/transfer_received_transaction_detail.rb +5 -0
  46. data/lib/privy/models/transfer_request_body.rb +3 -2
  47. data/lib/privy/models/transfer_sent_transaction_detail.rb +5 -0
  48. data/lib/privy/models/tron_address.rb +7 -0
  49. data/lib/privy/models/wallet_asset.rb +1 -0
  50. data/lib/privy/models/wallet_batch_create_response.rb +1 -0
  51. data/lib/privy/models/wallet_create_batch_params.rb +14 -0
  52. data/lib/privy/models/wallet_ethereum_asset.rb +1 -0
  53. data/lib/privy/models/wallets/balance_get_params.rb +11 -0
  54. data/lib/privy/models/wallets/balance_get_response.rb +5 -0
  55. data/lib/privy/models/wallets/transaction_get_params.rb +3 -0
  56. data/lib/privy/models.rb +46 -0
  57. data/lib/privy/resources/intents.rb +2 -1
  58. data/lib/privy/resources/wallets/swap.rb +2 -2
  59. data/lib/privy/resources/wallets.rb +25 -1
  60. data/lib/privy/version.rb +1 -1
  61. data/lib/privy.rb +24 -1
  62. data/rbi/privy/client.rbi +4 -3
  63. data/rbi/privy/models/analytics_event_input.rbi +3 -6
  64. data/rbi/privy/models/bitcoin_address.rbi +7 -0
  65. data/rbi/privy/models/bridge_destination_asset.rbi +1 -0
  66. data/rbi/privy/models/bridge_fiat_virtual_account_destination.rbi +8 -1
  67. data/rbi/privy/models/bridge_fiat_virtual_account_request.rbi +9 -1
  68. data/rbi/privy/models/bridge_fiat_virtual_account_response.rbi +2 -0
  69. data/rbi/privy/models/bridge_fiat_virtual_account_source.rbi +6 -1
  70. data/rbi/privy/models/bridge_sandbox_fiat_virtual_account_request.rbi +9 -1
  71. data/rbi/privy/models/bridge_sandbox_fiat_virtual_account_response.rbi +2 -0
  72. data/rbi/privy/models/bridge_source_asset.rbi +1 -0
  73. data/rbi/privy/models/create_stripe_onramp_session_response.rbi +61 -3
  74. data/rbi/privy/models/device_verify_action.rbi +22 -0
  75. data/rbi/privy/models/device_verify_request_body.rbi +44 -0
  76. data/rbi/privy/models/device_verify_response.rbi +28 -0
  77. data/rbi/privy/models/evm_address.rbi +7 -0
  78. data/rbi/privy/models/evm_checksum_address.rbi +7 -0
  79. data/rbi/privy/models/gas.rbi +46 -0
  80. data/rbi/privy/models/hyperliquid_token_address.rbi +7 -0
  81. data/rbi/privy/models/linked_account_embedded_wallet.rbi +1 -0
  82. data/rbi/privy/models/oauth_grant.rbi +78 -0
  83. data/rbi/privy/models/oauth_grant_list_response.rbi +32 -0
  84. data/rbi/privy/models/oauth_grant_revoke_response.rbi +58 -0
  85. data/rbi/privy/models/oauth_token_authorization_code_request_body.rbi +115 -0
  86. data/rbi/privy/models/oauth_token_device_code_pending_error.rbi +106 -0
  87. data/rbi/privy/models/oauth_token_device_code_request_body.rbi +78 -0
  88. data/rbi/privy/models/oauth_token_grant_type.rbi +29 -0
  89. data/rbi/privy/models/oauth_token_refresh_token_request_body.rbi +78 -0
  90. data/rbi/privy/models/oauth_token_request_body.rbi +23 -0
  91. data/rbi/privy/models/oauth_token_success_response.rbi +95 -0
  92. data/rbi/privy/models/onramp_session_fees.rbi +39 -0
  93. data/rbi/privy/models/onramp_session_transaction_details.rbi +95 -0
  94. data/rbi/privy/models/solana_address.rbi +7 -0
  95. data/rbi/privy/models/swap_action_response.rbi +84 -0
  96. data/rbi/privy/models/swap_quote_request_body.rbi +4 -4
  97. data/rbi/privy/models/swap_quote_response.rbi +19 -4
  98. data/rbi/privy/models/swap_request_body.rbi +4 -4
  99. data/rbi/privy/models/token_transfer_destination.rbi +2 -2
  100. data/rbi/privy/models/transfer_action_response.rbi +57 -2
  101. data/rbi/privy/models/transfer_quote_request_body.rbi +4 -2
  102. data/rbi/privy/models/transfer_quote_response.rbi +16 -3
  103. data/rbi/privy/models/transfer_received_transaction_detail.rbi +15 -0
  104. data/rbi/privy/models/transfer_request_body.rbi +4 -2
  105. data/rbi/privy/models/transfer_sent_transaction_detail.rbi +15 -0
  106. data/rbi/privy/models/tron_address.rbi +7 -0
  107. data/rbi/privy/models/wallet_asset.rbi +1 -0
  108. data/rbi/privy/models/wallet_batch_create_response.rbi +2 -19
  109. data/rbi/privy/models/wallet_batch_create_result.rbi +4 -4
  110. data/rbi/privy/models/wallet_create_batch_params.rbi +27 -0
  111. data/rbi/privy/models/wallet_ethereum_asset.rbi +1 -0
  112. data/rbi/privy/models/wallets/balance_get_params.rbi +22 -0
  113. data/rbi/privy/models/wallets/balance_get_response.rbi +15 -0
  114. data/rbi/privy/models/wallets/transaction_get_params.rbi +5 -0
  115. data/rbi/privy/models.rbi +51 -0
  116. data/rbi/privy/resources/intents.rbi +4 -1
  117. data/rbi/privy/resources/wallets/swap.rbi +2 -2
  118. data/rbi/privy/resources/wallets.rbi +19 -1
  119. data/sig/privy/client.rbs +2 -2
  120. data/sig/privy/models/analytics_event_input.rbs +4 -6
  121. data/sig/privy/models/bitcoin_address.rbs +5 -0
  122. data/sig/privy/models/create_stripe_onramp_session_response.rbs +29 -3
  123. data/sig/privy/models/device_verify_action.rbs +14 -0
  124. data/sig/privy/models/device_verify_request_body.rbs +22 -0
  125. data/sig/privy/models/device_verify_response.rbs +13 -0
  126. data/sig/privy/models/evm_address.rbs +5 -0
  127. data/sig/privy/models/evm_checksum_address.rbs +5 -0
  128. data/sig/privy/models/gas.rbs +21 -0
  129. data/sig/privy/models/hyperliquid_token_address.rbs +5 -0
  130. data/sig/privy/models/oauth_grant.rbs +45 -0
  131. data/sig/privy/models/oauth_grant_list_response.rbs +13 -0
  132. data/sig/privy/models/oauth_grant_revoke_response.rbs +28 -0
  133. data/sig/privy/models/oauth_token_authorization_code_request_body.rbs +56 -0
  134. data/sig/privy/models/oauth_token_device_code_pending_error.rbs +48 -0
  135. data/sig/privy/models/oauth_token_device_code_request_body.rbs +35 -0
  136. data/sig/privy/models/oauth_token_grant_type.rbs +18 -0
  137. data/sig/privy/models/oauth_token_refresh_token_request_body.rbs +35 -0
  138. data/sig/privy/models/oauth_token_request_body.rbs +14 -0
  139. data/sig/privy/models/oauth_token_success_response.rbs +49 -0
  140. data/sig/privy/models/onramp_session_fees.rbs +22 -0
  141. data/sig/privy/models/onramp_session_transaction_details.rbs +53 -0
  142. data/sig/privy/models/solana_address.rbs +5 -0
  143. data/sig/privy/models/swap_action_response.rbs +32 -0
  144. data/sig/privy/models/swap_quote_request_body.rbs +5 -5
  145. data/sig/privy/models/swap_quote_response.rbs +7 -0
  146. data/sig/privy/models/swap_request_body.rbs +5 -5
  147. data/sig/privy/models/transfer_action_response.rbs +23 -0
  148. data/sig/privy/models/transfer_quote_response.rbs +10 -3
  149. data/sig/privy/models/transfer_received_transaction_detail.rbs +15 -1
  150. data/sig/privy/models/transfer_sent_transaction_detail.rbs +15 -1
  151. data/sig/privy/models/tron_address.rbs +5 -0
  152. data/sig/privy/models/wallet_asset.rbs +2 -1
  153. data/sig/privy/models/wallet_create_batch_params.rbs +15 -0
  154. data/sig/privy/models/wallet_ethereum_asset.rbs +2 -1
  155. data/sig/privy/models/wallets/balance_get_params.rbs +10 -0
  156. data/sig/privy/models/wallets/balance_get_response.rbs +6 -0
  157. data/sig/privy/models/wallets/transaction_get_params.rbs +2 -0
  158. data/sig/privy/models.rbs +46 -0
  159. data/sig/privy/resources/wallets/swap.rbs +2 -2
  160. data/sig/privy/resources/wallets.rbs +5 -0
  161. metadata +71 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24f26f4a50959cdf4a425471cc6eccb7bf9c9b12ee3beaeac5180c8cc3764cf1
4
- data.tar.gz: 75f5e38ff6e8ff9a1be67f976e7a56165bc4d0f7ba8c7d7290d2a687b1a84342
3
+ metadata.gz: '084a5766c69229fc0513f76be1dfcfa93c88b440b257ae3627ec99b02d86add9'
4
+ data.tar.gz: 3f2a1597ecd5f94da344fb7186fe9b5933ffd09a4cc80775e42c3f8a85366bf5
5
5
  SHA512:
6
- metadata.gz: a2e6be7e846dfb8d5698713754e0f745a37aa3a2bb7ba886bf797b8ba4820f6b937aa496eacdc10051279917e7c50899da410a688ba5ef57cc76abbead4edf6a
7
- data.tar.gz: '0857860b67f021ba365409f8341fcb3e6f11672e13fc1e8449e5bab77710b934d9e0cecf6492e53f96d86f65b980a89e6ea9511131c11854187d68fa042556d6'
6
+ metadata.gz: bb46a564adc43b1a0f2027f2ec18d6bac81caf465027ec4094beaacd0b52f0b38459ac2fc569bbf917a35bf3ba7d8631aa9fa0fb0f6dd54e049e941a6ba03872
7
+ data.tar.gz: 3fe7e9539f2c0a495f20af158b2d3ab314c13ebdef98f3ad12266f00cca040b76d884a2d87de241cd958d41eeb1c620b3f12c8a8f081ae65a83d2619ac9b6cd3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0 (2026-06-05)
4
+
5
+ Full Changelog: [v0.1.0...v0.2.0](https://github.com/privy-io/ruby-sdk/compare/v0.1.0...v0.2.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([28c0f44](https://github.com/privy-io/ruby-sdk/commit/28c0f443e0bf9844b899845f2d2974c613fc0866))
10
+ * **api:** api update ([5ef4349](https://github.com/privy-io/ruby-sdk/commit/5ef4349cc57bc7d8438eb0645f24a5befd532710))
11
+ * **api:** api update ([263594f](https://github.com/privy-io/ruby-sdk/commit/263594fb816a62e0f5bd91c3e15a311161fdacbe))
12
+ * **api:** api update ([ec23c50](https://github.com/privy-io/ruby-sdk/commit/ec23c50b5b2be99a30e3fecb60a611186620b257))
13
+ * **api:** api update ([4b9daed](https://github.com/privy-io/ruby-sdk/commit/4b9daed0e62564e63a4629fc5cb0b1ea3406558e))
14
+ * **api:** api update ([cead6ea](https://github.com/privy-io/ruby-sdk/commit/cead6eaa5b7f14ea4d53cb57031df82a604960f9))
15
+
3
16
  ## 0.1.0 (2026-06-01)
4
17
 
5
18
  Full Changelog: [v0.0.2...v0.1.0](https://github.com/privy-io/ruby-sdk/compare/v0.0.2...v0.1.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "privy_ruby", "~> 0.1.0"
20
+ gem "privy_ruby", "~> 0.2.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
data/lib/privy/client.rb CHANGED
@@ -47,6 +47,7 @@ module Privy
47
47
  # @return [Privy::Resources::KeyQuorums]
48
48
  attr_reader :key_quorums
49
49
 
50
+ # Operations related to authorization intents for wallet actions
50
51
  # @return [Privy::Resources::Intents]
51
52
  attr_reader :intents
52
53
 
@@ -72,6 +73,9 @@ module Privy
72
73
  # @return [Privy::Resources::ClientAuth]
73
74
  attr_reader :client_auth
74
75
 
76
+ # @return [Privy::Resources::Shared]
77
+ attr_reader :shared
78
+
75
79
  # @return [Privy::Resources::Onramps]
76
80
  attr_reader :onramps
77
81
 
@@ -84,9 +88,6 @@ module Privy
84
88
  # @return [Privy::Resources::CrossApp]
85
89
  attr_reader :cross_app
86
90
 
87
- # @return [Privy::Resources::Shared]
88
- attr_reader :shared
89
-
90
91
  # @return [Privy::Resources::OAuth]
91
92
  attr_reader :oauth
92
93
 
@@ -196,11 +197,11 @@ module Privy
196
197
  @embedded_wallets = Privy::Resources::EmbeddedWallets.new(client: self)
197
198
  @analytics = Privy::Resources::Analytics.new(client: self)
198
199
  @client_auth = Privy::Resources::ClientAuth.new(client: self)
200
+ @shared = Privy::Resources::Shared.new(client: self)
199
201
  @onramps = Privy::Resources::Onramps.new(client: self)
200
202
  @funding = Privy::Resources::Funding.new(client: self)
201
203
  @organizations = Privy::Resources::Organizations.new(client: self)
202
204
  @cross_app = Privy::Resources::CrossApp.new(client: self)
203
- @shared = Privy::Resources::Shared.new(client: self)
204
205
  @oauth = Privy::Resources::OAuth.new(client: self)
205
206
  @wallet_actions = Privy::Resources::WalletActions.new(client: self)
206
207
  @yield_ = Privy::Resources::Yield.new(client: self)
@@ -11,7 +11,7 @@ module Privy
11
11
  # @!attribute client_id
12
12
  #
13
13
  # @return [String, nil]
14
- optional :client_id, String
14
+ optional :client_id, String, nil?: true
15
15
 
16
16
  # @!attribute payload
17
17
  #
@@ -22,7 +22,7 @@ module Privy
22
22
  # The input for capturing an analytics event.
23
23
  #
24
24
  # @param event_name [String]
25
- # @param client_id [String]
25
+ # @param client_id [String, nil]
26
26
  # @param payload [Hash{Symbol=>Object}]
27
27
  end
28
28
  end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ BitcoinAddress = String
6
+ end
7
+ end
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Privy
4
4
  module Models
5
+ # Supported destination stablecoin assets for fiat-to-crypto transfers.
5
6
  module BridgeDestinationAsset
6
7
  extend Privy::Internal::Type::Enum
7
8
 
@@ -9,6 +9,7 @@ module Privy
9
9
  required :address, String
10
10
 
11
11
  # @!attribute asset
12
+ # Supported destination stablecoin assets for fiat-to-crypto transfers.
12
13
  #
13
14
  # @return [Symbol, Privy::Models::BridgeDestinationAsset]
14
15
  required :asset, enum: -> { Privy::BridgeDestinationAsset }
@@ -19,8 +20,12 @@ module Privy
19
20
  required :chain, String
20
21
 
21
22
  # @!method initialize(address:, asset:, chain:)
23
+ # The destination chain, asset, and address for a virtual account transfer.
24
+ #
22
25
  # @param address [String]
23
- # @param asset [Symbol, Privy::Models::BridgeDestinationAsset]
26
+ #
27
+ # @param asset [Symbol, Privy::Models::BridgeDestinationAsset] Supported destination stablecoin assets for fiat-to-crypto transfers.
28
+ #
24
29
  # @param chain [String]
25
30
  end
26
31
  end
@@ -4,6 +4,7 @@ module Privy
4
4
  module Models
5
5
  class BridgeFiatVirtualAccountRequest < Privy::Internal::Type::BaseModel
6
6
  # @!attribute destination
7
+ # The destination chain, asset, and address for a virtual account transfer.
7
8
  #
8
9
  # @return [Privy::Models::BridgeFiatVirtualAccountDestination]
9
10
  required :destination, -> { Privy::BridgeFiatVirtualAccountDestination }
@@ -14,6 +15,7 @@ module Privy
14
15
  required :provider, enum: -> { Privy::BridgeFiatVirtualAccountRequest::Provider }
15
16
 
16
17
  # @!attribute source
18
+ # The source fiat currency configuration for a virtual account.
17
19
  #
18
20
  # @return [Privy::Models::BridgeFiatVirtualAccountSource]
19
21
  required :source, -> { Privy::BridgeFiatVirtualAccountSource }
@@ -21,9 +23,11 @@ module Privy
21
23
  # @!method initialize(destination:, provider:, source:)
22
24
  # The request input for creating virtual account.
23
25
  #
24
- # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination]
26
+ # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination] The destination chain, asset, and address for a virtual account transfer.
27
+ #
25
28
  # @param provider [Symbol, Privy::Models::BridgeFiatVirtualAccountRequest::Provider]
26
- # @param source [Privy::Models::BridgeFiatVirtualAccountSource]
29
+ #
30
+ # @param source [Privy::Models::BridgeFiatVirtualAccountSource] The source fiat currency configuration for a virtual account.
27
31
 
28
32
  # @see Privy::Models::BridgeFiatVirtualAccountRequest#provider
29
33
  module Provider
@@ -10,6 +10,7 @@ module Privy
10
10
  required :deposit_instructions, union: -> { Privy::BridgeFiatVirtualAccountDepositInstructions }
11
11
 
12
12
  # @!attribute destination
13
+ # The destination chain, asset, and address for a virtual account transfer.
13
14
  #
14
15
  # @return [Privy::Models::BridgeFiatVirtualAccountDestination]
15
16
  required :destination, -> { Privy::BridgeFiatVirtualAccountDestination }
@@ -29,7 +30,7 @@ module Privy
29
30
  #
30
31
  # @param deposit_instructions [Privy::Models::BridgeUsdFiatVirtualAccountDepositInstructions, Privy::Models::BridgeEurFiatVirtualAccountDepositInstructions, Privy::Models::BridgeMxnFiatVirtualAccountDepositInstructions, Privy::Models::BridgeBrlFiatVirtualAccountDepositInstructions, Privy::Models::BridgeGbpFiatVirtualAccountDepositInstructions] The deposit instructions for a virtual account.
31
32
  #
32
- # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination]
33
+ # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination] The destination chain, asset, and address for a virtual account transfer.
33
34
  #
34
35
  # @param provider [Symbol, Privy::Models::BridgeFiatVirtualAccountResponse::Provider]
35
36
  #
@@ -4,12 +4,15 @@ module Privy
4
4
  module Models
5
5
  class BridgeFiatVirtualAccountSource < Privy::Internal::Type::BaseModel
6
6
  # @!attribute asset
7
+ # Supported source fiat currencies for virtual account deposits.
7
8
  #
8
9
  # @return [Symbol, Privy::Models::BridgeSourceAsset]
9
10
  required :asset, enum: -> { Privy::BridgeSourceAsset }
10
11
 
11
12
  # @!method initialize(asset:)
12
- # @param asset [Symbol, Privy::Models::BridgeSourceAsset]
13
+ # The source fiat currency configuration for a virtual account.
14
+ #
15
+ # @param asset [Symbol, Privy::Models::BridgeSourceAsset] Supported source fiat currencies for virtual account deposits.
13
16
  end
14
17
  end
15
18
  end
@@ -4,6 +4,7 @@ module Privy
4
4
  module Models
5
5
  class BridgeSandboxFiatVirtualAccountRequest < Privy::Internal::Type::BaseModel
6
6
  # @!attribute destination
7
+ # The destination chain, asset, and address for a virtual account transfer.
7
8
  #
8
9
  # @return [Privy::Models::BridgeFiatVirtualAccountDestination]
9
10
  required :destination, -> { Privy::BridgeFiatVirtualAccountDestination }
@@ -14,6 +15,7 @@ module Privy
14
15
  required :provider, enum: -> { Privy::BridgeSandboxFiatVirtualAccountRequest::Provider }
15
16
 
16
17
  # @!attribute source
18
+ # The source fiat currency configuration for a virtual account.
17
19
  #
18
20
  # @return [Privy::Models::BridgeFiatVirtualAccountSource]
19
21
  required :source, -> { Privy::BridgeFiatVirtualAccountSource }
@@ -21,9 +23,11 @@ module Privy
21
23
  # @!method initialize(destination:, provider:, source:)
22
24
  # The request input for creating virtual account.
23
25
  #
24
- # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination]
26
+ # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination] The destination chain, asset, and address for a virtual account transfer.
27
+ #
25
28
  # @param provider [Symbol, Privy::Models::BridgeSandboxFiatVirtualAccountRequest::Provider]
26
- # @param source [Privy::Models::BridgeFiatVirtualAccountSource]
29
+ #
30
+ # @param source [Privy::Models::BridgeFiatVirtualAccountSource] The source fiat currency configuration for a virtual account.
27
31
 
28
32
  # @see Privy::Models::BridgeSandboxFiatVirtualAccountRequest#provider
29
33
  module Provider
@@ -10,6 +10,7 @@ module Privy
10
10
  required :deposit_instructions, union: -> { Privy::BridgeFiatVirtualAccountDepositInstructions }
11
11
 
12
12
  # @!attribute destination
13
+ # The destination chain, asset, and address for a virtual account transfer.
13
14
  #
14
15
  # @return [Privy::Models::BridgeFiatVirtualAccountDestination]
15
16
  required :destination, -> { Privy::BridgeFiatVirtualAccountDestination }
@@ -29,7 +30,7 @@ module Privy
29
30
  #
30
31
  # @param deposit_instructions [Privy::Models::BridgeUsdFiatVirtualAccountDepositInstructions, Privy::Models::BridgeEurFiatVirtualAccountDepositInstructions, Privy::Models::BridgeMxnFiatVirtualAccountDepositInstructions, Privy::Models::BridgeBrlFiatVirtualAccountDepositInstructions, Privy::Models::BridgeGbpFiatVirtualAccountDepositInstructions] The deposit instructions for a virtual account.
31
32
  #
32
- # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination]
33
+ # @param destination [Privy::Models::BridgeFiatVirtualAccountDestination] The destination chain, asset, and address for a virtual account transfer.
33
34
  #
34
35
  # @param provider [Symbol, Privy::Models::BridgeSandboxFiatVirtualAccountResponse::Provider]
35
36
  #
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Privy
4
4
  module Models
5
+ # Supported source fiat currencies for virtual account deposits.
5
6
  module BridgeSourceAsset
6
7
  extend Privy::Internal::Type::Enum
7
8
 
@@ -13,11 +13,26 @@ module Privy
13
13
  # @return [String]
14
14
  required :session_id, String
15
15
 
16
- # @!method initialize(id:, session_id:)
16
+ # @!attribute transaction_details
17
+ # Transaction details returned from a Stripe onramp session.
18
+ #
19
+ # @return [Privy::Models::CreateStripeOnrampSessionResponse::TransactionDetails, nil]
20
+ optional :transaction_details, -> { Privy::CreateStripeOnrampSessionResponse::TransactionDetails }
21
+
22
+ # @!method initialize(id:, session_id:, transaction_details: nil)
17
23
  # The created onramp session.
18
24
  #
19
25
  # @param id [String]
26
+ #
20
27
  # @param session_id [String]
28
+ #
29
+ # @param transaction_details [Privy::Models::CreateStripeOnrampSessionResponse::TransactionDetails] Transaction details returned from a Stripe onramp session.
30
+
31
+ # @see Privy::Models::CreateStripeOnrampSessionResponse#transaction_details
32
+ class TransactionDetails < Privy::Models::OnrampSessionTransactionDetails
33
+ # @!method initialize
34
+ # Transaction details returned from a Stripe onramp session.
35
+ end
21
36
  end
22
37
  end
23
38
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ # The action to take on the device authorization request.
6
+ module DeviceVerifyAction
7
+ extend Privy::Internal::Type::Enum
8
+
9
+ APPROVE = :approve
10
+ DENY = :deny
11
+
12
+ # @!method self.values
13
+ # @return [Array<Symbol>]
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class DeviceVerifyRequestBody < Privy::Internal::Type::BaseModel
6
+ # @!attribute action
7
+ # The action to take on the device authorization request.
8
+ #
9
+ # @return [Symbol, Privy::Models::DeviceVerifyAction]
10
+ required :action, enum: -> { Privy::DeviceVerifyAction }
11
+
12
+ # @!attribute user_code
13
+ # The user code displayed on the CLI device.
14
+ #
15
+ # @return [String]
16
+ required :user_code, String
17
+
18
+ # @!method initialize(action:, user_code:)
19
+ # Request body for approving or denying a device authorization request. The user
20
+ # must be authenticated and belong to the target app.
21
+ #
22
+ # @param action [Symbol, Privy::Models::DeviceVerifyAction] The action to take on the device authorization request.
23
+ #
24
+ # @param user_code [String] The user code displayed on the CLI device.
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class DeviceVerifyResponse < Privy::Internal::Type::BaseModel
6
+ # @!attribute success
7
+ # Whether the action was processed successfully.
8
+ #
9
+ # @return [Boolean]
10
+ required :success, Privy::Internal::Type::Boolean
11
+
12
+ # @!method initialize(success:)
13
+ # Response indicating the device authorization action was processed.
14
+ #
15
+ # @param success [Boolean] Whether the action was processed successfully.
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ EvmAddress = String
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ EvmChecksumAddress = String
6
+ end
7
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class Gas < Privy::Internal::Type::BaseModel
6
+ # @!attribute amount
7
+ # Gas cost in the gas token as a human-readable decimal string (e.g. "0.0001").
8
+ #
9
+ # @return [String]
10
+ required :amount, String
11
+
12
+ # @!attribute base_amount
13
+ # Gas cost in the gas token's base units (e.g. wei).
14
+ #
15
+ # @return [String]
16
+ required :base_amount, String
17
+
18
+ # @!attribute gas_asset
19
+ # Gas token symbol (e.g. "ETH", "USDC").
20
+ #
21
+ # @return [String]
22
+ required :gas_asset, String
23
+
24
+ # @!method initialize(amount:, base_amount:, gas_asset:)
25
+ # Gas cost for a blockchain action. Includes both raw base-unit amount and a
26
+ # human-readable decimal string, plus the gas token symbol.
27
+ #
28
+ # @param amount [String] Gas cost in the gas token as a human-readable decimal string (e.g. "0.0001").
29
+ #
30
+ # @param base_amount [String] Gas cost in the gas token's base units (e.g. wei).
31
+ #
32
+ # @param gas_asset [String] Gas token symbol (e.g. "ETH", "USDC").
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ HyperliquidTokenAddress = String
6
+ end
7
+ end
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Privy
4
4
  module Models
5
+ # A linked embedded wallet account across all supported chain types.
5
6
  module LinkedAccountEmbeddedWallet
6
7
  extend Privy::Internal::Type::Union
7
8
 
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class OAuthGrant < Privy::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # The grant identifier.
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute created_at
13
+ # When the grant was first created.
14
+ #
15
+ # @return [Time]
16
+ required :created_at, Time
17
+
18
+ # @!attribute grant_type
19
+ # The OAuth grant type that created this grant.
20
+ #
21
+ # @return [Symbol, Privy::Models::OAuthGrant::GrantType]
22
+ required :grant_type, enum: -> { Privy::OAuthGrant::GrantType }
23
+
24
+ # @!attribute last_used_at
25
+ # When the grant was last used (e.g. token refreshed).
26
+ #
27
+ # @return [Time]
28
+ required :last_used_at, Time
29
+
30
+ # @!method initialize(id:, created_at:, grant_type:, last_used_at:)
31
+ # An active OAuth grant representing an authorized session.
32
+ #
33
+ # @param id [String] The grant identifier.
34
+ #
35
+ # @param created_at [Time] When the grant was first created.
36
+ #
37
+ # @param grant_type [Symbol, Privy::Models::OAuthGrant::GrantType] The OAuth grant type that created this grant.
38
+ #
39
+ # @param last_used_at [Time] When the grant was last used (e.g. token refreshed).
40
+
41
+ # The OAuth grant type that created this grant.
42
+ #
43
+ # @see Privy::Models::OAuthGrant#grant_type
44
+ module GrantType
45
+ extend Privy::Internal::Type::Enum
46
+
47
+ DEVICE_CODE = :device_code
48
+
49
+ # @!method self.values
50
+ # @return [Array<Symbol>]
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class OAuthGrantListResponse < Privy::Internal::Type::BaseModel
6
+ # @!attribute data
7
+ # Active grants.
8
+ #
9
+ # @return [Array<Privy::Models::OAuthGrant>]
10
+ required :data, -> { Privy::Internal::Type::ArrayOf[Privy::OAuthGrant] }
11
+
12
+ # @!method initialize(data:)
13
+ # List of active OAuth grants for the authenticated user.
14
+ #
15
+ # @param data [Array<Privy::Models::OAuthGrant>] Active grants.
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class OAuthGrantRevokeResponse < Privy::Internal::Type::BaseModel
6
+ # @!attribute success
7
+ # Whether the revocation was processed.
8
+ #
9
+ # @return [Boolean, Privy::Models::OAuthGrantRevokeResponse::Success]
10
+ required :success, enum: -> { Privy::OAuthGrantRevokeResponse::Success }
11
+
12
+ # @!method initialize(success:)
13
+ # Response from revoking an OAuth grant.
14
+ #
15
+ # @param success [Boolean, Privy::Models::OAuthGrantRevokeResponse::Success] Whether the revocation was processed.
16
+
17
+ # Whether the revocation was processed.
18
+ #
19
+ # @see Privy::Models::OAuthGrantRevokeResponse#success
20
+ module Success
21
+ extend Privy::Internal::Type::Enum
22
+
23
+ TRUE = true
24
+
25
+ # @!method self.values
26
+ # @return [Array<Boolean>]
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class OAuthTokenAuthorizationCodeRequestBody < Privy::Internal::Type::BaseModel
6
+ # @!attribute code
7
+ # The authorization code received from the authorization endpoint.
8
+ #
9
+ # @return [String]
10
+ required :code, String
11
+
12
+ # @!attribute grant_type
13
+ #
14
+ # @return [Symbol, Privy::Models::OAuthTokenAuthorizationCodeRequestBody::GrantType]
15
+ required :grant_type, enum: -> { Privy::OAuthTokenAuthorizationCodeRequestBody::GrantType }
16
+
17
+ # @!attribute client_id
18
+ # The client ID. Alternative to Basic auth header.
19
+ #
20
+ # @return [String, nil]
21
+ optional :client_id, String
22
+
23
+ # @!attribute client_secret
24
+ # The client secret. Alternative to Basic auth header.
25
+ #
26
+ # @return [String, nil]
27
+ optional :client_secret, String
28
+
29
+ # @!attribute redirect_uri
30
+ # The redirect URI used in the authorization request.
31
+ #
32
+ # @return [String, nil]
33
+ optional :redirect_uri, String
34
+
35
+ # @!method initialize(code:, grant_type:, client_id: nil, client_secret: nil, redirect_uri: nil)
36
+ # Request body for the authorization_code grant type.
37
+ #
38
+ # @param code [String] The authorization code received from the authorization endpoint.
39
+ #
40
+ # @param grant_type [Symbol, Privy::Models::OAuthTokenAuthorizationCodeRequestBody::GrantType]
41
+ #
42
+ # @param client_id [String] The client ID. Alternative to Basic auth header.
43
+ #
44
+ # @param client_secret [String] The client secret. Alternative to Basic auth header.
45
+ #
46
+ # @param redirect_uri [String] The redirect URI used in the authorization request.
47
+
48
+ # @see Privy::Models::OAuthTokenAuthorizationCodeRequestBody#grant_type
49
+ module GrantType
50
+ extend Privy::Internal::Type::Enum
51
+
52
+ AUTHORIZATION_CODE = :authorization_code
53
+
54
+ # @!method self.values
55
+ # @return [Array<Symbol>]
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class OAuthTokenDeviceCodePendingError < Privy::Internal::Type::BaseModel
6
+ # @!attribute error
7
+ # The error code indicating why the token request failed.
8
+ #
9
+ # @return [Symbol, Privy::Models::OAuthTokenDeviceCodePendingError::Error]
10
+ required :error, enum: -> { Privy::OAuthTokenDeviceCodePendingError::Error }
11
+
12
+ # @!attribute error_description
13
+ # Human-readable description of the error.
14
+ #
15
+ # @return [String, nil]
16
+ optional :error_description, String
17
+
18
+ # @!attribute interval
19
+ # The minimum polling interval in seconds.
20
+ #
21
+ # @return [Float, nil]
22
+ optional :interval, Float
23
+
24
+ # @!method initialize(error:, error_description: nil, interval: nil)
25
+ # Error response returned while the device authorization is still pending (RFC
26
+ # 8628 Section 3.5).
27
+ #
28
+ # @param error [Symbol, Privy::Models::OAuthTokenDeviceCodePendingError::Error] The error code indicating why the token request failed.
29
+ #
30
+ # @param error_description [String] Human-readable description of the error.
31
+ #
32
+ # @param interval [Float] The minimum polling interval in seconds.
33
+
34
+ # The error code indicating why the token request failed.
35
+ #
36
+ # @see Privy::Models::OAuthTokenDeviceCodePendingError#error
37
+ module Error
38
+ extend Privy::Internal::Type::Enum
39
+
40
+ AUTHORIZATION_PENDING = :authorization_pending
41
+ SLOW_DOWN = :slow_down
42
+ ACCESS_DENIED = :access_denied
43
+ EXPIRED_TOKEN = :expired_token
44
+
45
+ # @!method self.values
46
+ # @return [Array<Symbol>]
47
+ end
48
+ end
49
+ end
50
+ end