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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/privy/client.rb +5 -4
- data/lib/privy/models/analytics_event_input.rb +2 -2
- data/lib/privy/models/bitcoin_address.rb +7 -0
- data/lib/privy/models/bridge_destination_asset.rb +1 -0
- data/lib/privy/models/bridge_fiat_virtual_account_destination.rb +6 -1
- data/lib/privy/models/bridge_fiat_virtual_account_request.rb +6 -2
- data/lib/privy/models/bridge_fiat_virtual_account_response.rb +2 -1
- data/lib/privy/models/bridge_fiat_virtual_account_source.rb +4 -1
- data/lib/privy/models/bridge_sandbox_fiat_virtual_account_request.rb +6 -2
- data/lib/privy/models/bridge_sandbox_fiat_virtual_account_response.rb +2 -1
- data/lib/privy/models/bridge_source_asset.rb +1 -0
- data/lib/privy/models/create_stripe_onramp_session_response.rb +16 -1
- data/lib/privy/models/device_verify_action.rb +16 -0
- data/lib/privy/models/device_verify_request_body.rb +27 -0
- data/lib/privy/models/device_verify_response.rb +18 -0
- data/lib/privy/models/evm_address.rb +7 -0
- data/lib/privy/models/evm_checksum_address.rb +7 -0
- data/lib/privy/models/gas.rb +35 -0
- data/lib/privy/models/hyperliquid_token_address.rb +7 -0
- data/lib/privy/models/linked_account_embedded_wallet.rb +1 -0
- data/lib/privy/models/oauth_grant.rb +54 -0
- data/lib/privy/models/oauth_grant_list_response.rb +18 -0
- data/lib/privy/models/oauth_grant_revoke_response.rb +30 -0
- data/lib/privy/models/oauth_token_authorization_code_request_body.rb +59 -0
- data/lib/privy/models/oauth_token_device_code_pending_error.rb +50 -0
- data/lib/privy/models/oauth_token_device_code_request_body.rb +36 -0
- data/lib/privy/models/oauth_token_grant_type.rb +17 -0
- data/lib/privy/models/oauth_token_refresh_token_request_body.rb +36 -0
- data/lib/privy/models/oauth_token_request_body.rb +24 -0
- data/lib/privy/models/oauth_token_success_response.rb +58 -0
- data/lib/privy/models/onramp_session_fees.rb +23 -0
- data/lib/privy/models/onramp_session_transaction_details.rb +59 -0
- data/lib/privy/models/solana_address.rb +7 -0
- data/lib/privy/models/swap_action_response.rb +38 -1
- data/lib/privy/models/swap_quote_request_body.rb +3 -3
- data/lib/privy/models/swap_quote_response.rb +18 -5
- data/lib/privy/models/swap_request_body.rb +3 -3
- data/lib/privy/models/token_transfer_destination.rb +2 -2
- data/lib/privy/models/transfer_action_response.rb +29 -3
- data/lib/privy/models/transfer_quote_request_body.rb +3 -2
- data/lib/privy/models/transfer_quote_response.rb +10 -1
- data/lib/privy/models/transfer_received_transaction_detail.rb +5 -0
- data/lib/privy/models/transfer_request_body.rb +3 -2
- data/lib/privy/models/transfer_sent_transaction_detail.rb +5 -0
- data/lib/privy/models/tron_address.rb +7 -0
- data/lib/privy/models/wallet_asset.rb +1 -0
- data/lib/privy/models/wallet_batch_create_response.rb +1 -0
- data/lib/privy/models/wallet_create_batch_params.rb +14 -0
- data/lib/privy/models/wallet_ethereum_asset.rb +1 -0
- data/lib/privy/models/wallets/balance_get_params.rb +11 -0
- data/lib/privy/models/wallets/balance_get_response.rb +5 -0
- data/lib/privy/models/wallets/transaction_get_params.rb +3 -0
- data/lib/privy/models.rb +46 -0
- data/lib/privy/resources/intents.rb +2 -1
- data/lib/privy/resources/wallets/swap.rb +2 -2
- data/lib/privy/resources/wallets.rb +25 -1
- data/lib/privy/version.rb +1 -1
- data/lib/privy.rb +24 -1
- data/rbi/privy/client.rbi +4 -3
- data/rbi/privy/models/analytics_event_input.rbi +3 -6
- data/rbi/privy/models/bitcoin_address.rbi +7 -0
- data/rbi/privy/models/bridge_destination_asset.rbi +1 -0
- data/rbi/privy/models/bridge_fiat_virtual_account_destination.rbi +8 -1
- data/rbi/privy/models/bridge_fiat_virtual_account_request.rbi +9 -1
- data/rbi/privy/models/bridge_fiat_virtual_account_response.rbi +2 -0
- data/rbi/privy/models/bridge_fiat_virtual_account_source.rbi +6 -1
- data/rbi/privy/models/bridge_sandbox_fiat_virtual_account_request.rbi +9 -1
- data/rbi/privy/models/bridge_sandbox_fiat_virtual_account_response.rbi +2 -0
- data/rbi/privy/models/bridge_source_asset.rbi +1 -0
- data/rbi/privy/models/create_stripe_onramp_session_response.rbi +61 -3
- data/rbi/privy/models/device_verify_action.rbi +22 -0
- data/rbi/privy/models/device_verify_request_body.rbi +44 -0
- data/rbi/privy/models/device_verify_response.rbi +28 -0
- data/rbi/privy/models/evm_address.rbi +7 -0
- data/rbi/privy/models/evm_checksum_address.rbi +7 -0
- data/rbi/privy/models/gas.rbi +46 -0
- data/rbi/privy/models/hyperliquid_token_address.rbi +7 -0
- data/rbi/privy/models/linked_account_embedded_wallet.rbi +1 -0
- data/rbi/privy/models/oauth_grant.rbi +78 -0
- data/rbi/privy/models/oauth_grant_list_response.rbi +32 -0
- data/rbi/privy/models/oauth_grant_revoke_response.rbi +58 -0
- data/rbi/privy/models/oauth_token_authorization_code_request_body.rbi +115 -0
- data/rbi/privy/models/oauth_token_device_code_pending_error.rbi +106 -0
- data/rbi/privy/models/oauth_token_device_code_request_body.rbi +78 -0
- data/rbi/privy/models/oauth_token_grant_type.rbi +29 -0
- data/rbi/privy/models/oauth_token_refresh_token_request_body.rbi +78 -0
- data/rbi/privy/models/oauth_token_request_body.rbi +23 -0
- data/rbi/privy/models/oauth_token_success_response.rbi +95 -0
- data/rbi/privy/models/onramp_session_fees.rbi +39 -0
- data/rbi/privy/models/onramp_session_transaction_details.rbi +95 -0
- data/rbi/privy/models/solana_address.rbi +7 -0
- data/rbi/privy/models/swap_action_response.rbi +84 -0
- data/rbi/privy/models/swap_quote_request_body.rbi +4 -4
- data/rbi/privy/models/swap_quote_response.rbi +19 -4
- data/rbi/privy/models/swap_request_body.rbi +4 -4
- data/rbi/privy/models/token_transfer_destination.rbi +2 -2
- data/rbi/privy/models/transfer_action_response.rbi +57 -2
- data/rbi/privy/models/transfer_quote_request_body.rbi +4 -2
- data/rbi/privy/models/transfer_quote_response.rbi +16 -3
- data/rbi/privy/models/transfer_received_transaction_detail.rbi +15 -0
- data/rbi/privy/models/transfer_request_body.rbi +4 -2
- data/rbi/privy/models/transfer_sent_transaction_detail.rbi +15 -0
- data/rbi/privy/models/tron_address.rbi +7 -0
- data/rbi/privy/models/wallet_asset.rbi +1 -0
- data/rbi/privy/models/wallet_batch_create_response.rbi +2 -19
- data/rbi/privy/models/wallet_batch_create_result.rbi +4 -4
- data/rbi/privy/models/wallet_create_batch_params.rbi +27 -0
- data/rbi/privy/models/wallet_ethereum_asset.rbi +1 -0
- data/rbi/privy/models/wallets/balance_get_params.rbi +22 -0
- data/rbi/privy/models/wallets/balance_get_response.rbi +15 -0
- data/rbi/privy/models/wallets/transaction_get_params.rbi +5 -0
- data/rbi/privy/models.rbi +51 -0
- data/rbi/privy/resources/intents.rbi +4 -1
- data/rbi/privy/resources/wallets/swap.rbi +2 -2
- data/rbi/privy/resources/wallets.rbi +19 -1
- data/sig/privy/client.rbs +2 -2
- data/sig/privy/models/analytics_event_input.rbs +4 -6
- data/sig/privy/models/bitcoin_address.rbs +5 -0
- data/sig/privy/models/create_stripe_onramp_session_response.rbs +29 -3
- data/sig/privy/models/device_verify_action.rbs +14 -0
- data/sig/privy/models/device_verify_request_body.rbs +22 -0
- data/sig/privy/models/device_verify_response.rbs +13 -0
- data/sig/privy/models/evm_address.rbs +5 -0
- data/sig/privy/models/evm_checksum_address.rbs +5 -0
- data/sig/privy/models/gas.rbs +21 -0
- data/sig/privy/models/hyperliquid_token_address.rbs +5 -0
- data/sig/privy/models/oauth_grant.rbs +45 -0
- data/sig/privy/models/oauth_grant_list_response.rbs +13 -0
- data/sig/privy/models/oauth_grant_revoke_response.rbs +28 -0
- data/sig/privy/models/oauth_token_authorization_code_request_body.rbs +56 -0
- data/sig/privy/models/oauth_token_device_code_pending_error.rbs +48 -0
- data/sig/privy/models/oauth_token_device_code_request_body.rbs +35 -0
- data/sig/privy/models/oauth_token_grant_type.rbs +18 -0
- data/sig/privy/models/oauth_token_refresh_token_request_body.rbs +35 -0
- data/sig/privy/models/oauth_token_request_body.rbs +14 -0
- data/sig/privy/models/oauth_token_success_response.rbs +49 -0
- data/sig/privy/models/onramp_session_fees.rbs +22 -0
- data/sig/privy/models/onramp_session_transaction_details.rbs +53 -0
- data/sig/privy/models/solana_address.rbs +5 -0
- data/sig/privy/models/swap_action_response.rbs +32 -0
- data/sig/privy/models/swap_quote_request_body.rbs +5 -5
- data/sig/privy/models/swap_quote_response.rbs +7 -0
- data/sig/privy/models/swap_request_body.rbs +5 -5
- data/sig/privy/models/transfer_action_response.rbs +23 -0
- data/sig/privy/models/transfer_quote_response.rbs +10 -3
- data/sig/privy/models/transfer_received_transaction_detail.rbs +15 -1
- data/sig/privy/models/transfer_sent_transaction_detail.rbs +15 -1
- data/sig/privy/models/tron_address.rbs +5 -0
- data/sig/privy/models/wallet_asset.rbs +2 -1
- data/sig/privy/models/wallet_create_batch_params.rbs +15 -0
- data/sig/privy/models/wallet_ethereum_asset.rbs +2 -1
- data/sig/privy/models/wallets/balance_get_params.rbs +10 -0
- data/sig/privy/models/wallets/balance_get_response.rbs +6 -0
- data/sig/privy/models/wallets/transaction_get_params.rbs +2 -0
- data/sig/privy/models.rbs +46 -0
- data/sig/privy/resources/wallets/swap.rbs +2 -2
- data/sig/privy/resources/wallets.rbs +5 -0
- metadata +71 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '084a5766c69229fc0513f76be1dfcfa93c88b440b257ae3627ec99b02d86add9'
|
|
4
|
+
data.tar.gz: 3f2a1597ecd5f94da344fb7186fe9b5933ffd09a4cc80775e42c3f8a85366bf5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
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
|
|
@@ -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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
#
|
|
@@ -13,11 +13,26 @@ module Privy
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :session_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
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,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,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
|