privy_ruby 0.0.2 → 0.1.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 (177) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/privy/base58.rb +41 -0
  5. data/lib/privy/client.rb +8 -0
  6. data/lib/privy/cryptography.rb +34 -0
  7. data/lib/privy/models/create_link_auth_intent_input.rb +17 -0
  8. data/lib/privy/models/create_link_auth_intent_response.rb +36 -0
  9. data/lib/privy/models/create_stripe_onramp_session_input.rb +33 -0
  10. data/lib/privy/models/create_stripe_onramp_session_response.rb +23 -0
  11. data/lib/privy/models/device_authorization_response.rb +63 -0
  12. data/lib/privy/models/earn_incentive_reward_entry.rb +50 -0
  13. data/lib/privy/models/earn_incentive_rewards_query.rb +18 -0
  14. data/lib/privy/models/earn_incentive_rewards_response.rb +19 -0
  15. data/lib/privy/models/exchange_stripe_tokens_input.rb +23 -0
  16. data/lib/privy/models/exchange_stripe_tokens_response.rb +17 -0
  17. data/lib/privy/models/fiat_onramp_provider.rb +2 -0
  18. data/lib/privy/models/fiat_onramp_stripe_sdk_session_response.rb +45 -0
  19. data/lib/privy/models/fiat_onramp_url_session_response.rb +39 -0
  20. data/lib/privy/models/get_fiat_onramp_url_response.rb +12 -14
  21. data/lib/privy/models/get_stripe_crypto_customer_response.rb +39 -0
  22. data/lib/privy/models/kraken_embed_custom_order_cancelled_webhook_payload.rb +66 -0
  23. data/lib/privy/models/kraken_embed_custom_order_executed_webhook_payload.rb +54 -0
  24. data/lib/privy/models/kraken_embed_custom_order_execution_failed_webhook_payload.rb +67 -0
  25. data/lib/privy/models/link_auth_intent_created.rb +35 -0
  26. data/lib/privy/models/link_auth_intent_no_account.rb +27 -0
  27. data/lib/privy/models/list_stripe_consumer_wallets_response.rb +17 -0
  28. data/lib/privy/models/list_stripe_payment_tokens_response.rb +17 -0
  29. data/lib/privy/models/onramp_session_params.rb +61 -0
  30. data/lib/privy/models/refresh_stripe_quote_response.rb +18 -0
  31. data/lib/privy/models/rule_delete_intent_response.rb +63 -0
  32. data/lib/privy/models/rule_intent_response.rb +0 -1
  33. data/lib/privy/models/rule_mutate_intent_response.rb +64 -0
  34. data/lib/privy/models/stripe_consumer_wallet.rb +29 -0
  35. data/lib/privy/models/stripe_crypto_customer_active.rb +39 -0
  36. data/lib/privy/models/stripe_crypto_customer_expired.rb +33 -0
  37. data/lib/privy/models/stripe_crypto_customer_none.rb +27 -0
  38. data/lib/privy/models/stripe_onramp_checkout_response.rb +25 -0
  39. data/lib/privy/models/stripe_onramp_session_status.rb +17 -0
  40. data/lib/privy/models/stripe_payment_token.rb +23 -0
  41. data/lib/privy/models/stripe_quote.rb +17 -0
  42. data/lib/privy/models/stripe_transaction_details.rb +17 -0
  43. data/lib/privy/models/stripe_verification.rb +23 -0
  44. data/lib/privy/models/swap_action_response.rb +9 -1
  45. data/lib/privy/models/swap_destination.rb +13 -4
  46. data/lib/privy/models/swap_quote_destination.rb +15 -4
  47. data/lib/privy/models/swap_quote_request_body.rb +9 -1
  48. data/lib/privy/models/swap_quote_response.rb +25 -1
  49. data/lib/privy/models/swap_request_body.rb +9 -1
  50. data/lib/privy/models/wallets/swap_execute_params.rb +45 -0
  51. data/lib/privy/models/wallets/swap_quote_params.rb +36 -0
  52. data/lib/privy/models.rb +71 -4
  53. data/lib/privy/public_api/privy_client.rb +2 -1
  54. data/lib/privy/public_api/services/earn/ethereum/incentive.rb +61 -0
  55. data/lib/privy/public_api/services/earn/ethereum.rb +131 -0
  56. data/lib/privy/public_api/services/earn.rb +18 -0
  57. data/lib/privy/public_api/services/key_quorums.rb +7 -1
  58. data/lib/privy/public_api/services/policies.rb +21 -3
  59. data/lib/privy/public_api/services/transactions.rb +14 -0
  60. data/lib/privy/public_api/services/wallets.rb +153 -1
  61. data/lib/privy/resources/intents.rb +6 -6
  62. data/lib/privy/resources/oauth.rb +14 -0
  63. data/lib/privy/resources/onramps.rb +14 -0
  64. data/lib/privy/resources/wallets/swap.rb +105 -0
  65. data/lib/privy/resources/wallets.rb +10 -2
  66. data/lib/privy/version.rb +1 -1
  67. data/lib/privy/wallet_entropy.rb +60 -0
  68. data/lib/privy.rb +47 -4
  69. data/rbi/privy/client.rbi +6 -0
  70. data/rbi/privy/models/create_link_auth_intent_input.rbi +27 -0
  71. data/rbi/privy/models/create_link_auth_intent_response.rbi +68 -0
  72. data/rbi/privy/models/create_stripe_onramp_session_input.rbi +55 -0
  73. data/rbi/privy/models/create_stripe_onramp_session_response.rbi +30 -0
  74. data/rbi/privy/models/device_authorization_response.rbi +81 -0
  75. data/rbi/privy/models/earn_incentive_reward_entry.rbi +73 -0
  76. data/rbi/privy/models/earn_incentive_rewards_query.rbi +28 -0
  77. data/rbi/privy/models/earn_incentive_rewards_response.rbi +35 -0
  78. data/rbi/privy/models/exchange_stripe_tokens_input.rbi +33 -0
  79. data/rbi/privy/models/exchange_stripe_tokens_response.rbi +24 -0
  80. data/rbi/privy/models/fiat_onramp_provider.rbi +3 -0
  81. data/rbi/privy/models/fiat_onramp_stripe_sdk_session_response.rbi +78 -0
  82. data/rbi/privy/models/fiat_onramp_url_session_response.rbi +65 -0
  83. data/rbi/privy/models/get_fiat_onramp_url_response.rbi +12 -15
  84. data/rbi/privy/models/get_stripe_crypto_customer_response.rbi +81 -0
  85. data/rbi/privy/models/kraken_embed_custom_order_cancelled_webhook_payload.rbi +111 -0
  86. data/rbi/privy/models/kraken_embed_custom_order_executed_webhook_payload.rbi +101 -0
  87. data/rbi/privy/models/kraken_embed_custom_order_execution_failed_webhook_payload.rbi +111 -0
  88. data/rbi/privy/models/link_auth_intent_created.rbi +60 -0
  89. data/rbi/privy/models/link_auth_intent_no_account.rbi +54 -0
  90. data/rbi/privy/models/list_stripe_consumer_wallets_response.rbi +31 -0
  91. data/rbi/privy/models/list_stripe_payment_tokens_response.rbi +31 -0
  92. data/rbi/privy/models/onramp_session_params.rbi +76 -0
  93. data/rbi/privy/models/refresh_stripe_quote_response.rbi +33 -0
  94. data/rbi/privy/models/rule_delete_intent_response.rbi +113 -0
  95. data/rbi/privy/models/rule_mutate_intent_response.rbi +113 -0
  96. data/rbi/privy/models/stripe_consumer_wallet.rbi +38 -0
  97. data/rbi/privy/models/stripe_crypto_customer_active.rbi +68 -0
  98. data/rbi/privy/models/stripe_crypto_customer_expired.rbi +63 -0
  99. data/rbi/privy/models/stripe_crypto_customer_none.rbi +53 -0
  100. data/rbi/privy/models/stripe_onramp_checkout_response.rbi +51 -0
  101. data/rbi/privy/models/stripe_onramp_session_status.rbi +26 -0
  102. data/rbi/privy/models/stripe_payment_token.rbi +27 -0
  103. data/rbi/privy/models/stripe_quote.rbi +22 -0
  104. data/rbi/privy/models/stripe_transaction_details.rbi +24 -0
  105. data/rbi/privy/models/stripe_verification.rbi +27 -0
  106. data/rbi/privy/models/swap_action_response.rbi +17 -27
  107. data/rbi/privy/models/swap_destination.rbi +26 -7
  108. data/rbi/privy/models/swap_quote_destination.rbi +30 -7
  109. data/rbi/privy/models/swap_quote_request_body.rbi +11 -0
  110. data/rbi/privy/models/swap_quote_response.rbi +54 -3
  111. data/rbi/privy/models/swap_request_body.rbi +11 -0
  112. data/rbi/privy/models/wallets/swap_execute_params.rbi +71 -0
  113. data/rbi/privy/models/wallets/swap_quote_params.rbi +58 -0
  114. data/rbi/privy/models.rbi +76 -5
  115. data/rbi/privy/resources/intents.rbi +3 -3
  116. data/rbi/privy/resources/oauth.rbi +12 -0
  117. data/rbi/privy/resources/onramps.rbi +12 -0
  118. data/rbi/privy/resources/wallets/swap.rbi +94 -0
  119. data/rbi/privy/resources/wallets.rbi +9 -2
  120. data/sig/privy/client.rbs +4 -0
  121. data/sig/privy/models/create_link_auth_intent_input.rbs +15 -0
  122. data/sig/privy/models/create_link_auth_intent_response.rbs +26 -0
  123. data/sig/privy/models/create_stripe_onramp_session_input.rbs +30 -0
  124. data/sig/privy/models/create_stripe_onramp_session_response.rbs +16 -0
  125. data/sig/privy/models/device_authorization_response.rbs +45 -0
  126. data/sig/privy/models/earn_incentive_reward_entry.rbs +42 -0
  127. data/sig/privy/models/earn_incentive_rewards_query.rbs +13 -0
  128. data/sig/privy/models/earn_incentive_rewards_response.rbs +16 -0
  129. data/sig/privy/models/exchange_stripe_tokens_input.rbs +19 -0
  130. data/sig/privy/models/exchange_stripe_tokens_response.rbs +13 -0
  131. data/sig/privy/models/fiat_onramp_provider.rbs +4 -0
  132. data/sig/privy/models/fiat_onramp_stripe_sdk_session_response.rbs +45 -0
  133. data/sig/privy/models/fiat_onramp_url_session_response.rbs +40 -0
  134. data/sig/privy/models/get_fiat_onramp_url_response.rbs +6 -8
  135. data/sig/privy/models/get_stripe_crypto_customer_response.rbs +29 -0
  136. data/sig/privy/models/kraken_embed_custom_order_cancelled_webhook_payload.rbs +50 -0
  137. data/sig/privy/models/kraken_embed_custom_order_executed_webhook_payload.rbs +45 -0
  138. data/sig/privy/models/kraken_embed_custom_order_execution_failed_webhook_payload.rbs +50 -0
  139. data/sig/privy/models/link_auth_intent_created.rbs +32 -0
  140. data/sig/privy/models/link_auth_intent_no_account.rbs +26 -0
  141. data/sig/privy/models/list_stripe_consumer_wallets_response.rbs +14 -0
  142. data/sig/privy/models/list_stripe_payment_tokens_response.rbs +14 -0
  143. data/sig/privy/models/onramp_session_params.rbs +50 -0
  144. data/sig/privy/models/refresh_stripe_quote_response.rbs +13 -0
  145. data/sig/privy/models/rule_delete_intent_response.rbs +66 -0
  146. data/sig/privy/models/rule_mutate_intent_response.rbs +66 -0
  147. data/sig/privy/models/stripe_consumer_wallet.rbs +22 -0
  148. data/sig/privy/models/stripe_crypto_customer_active.rbs +40 -0
  149. data/sig/privy/models/stripe_crypto_customer_expired.rbs +35 -0
  150. data/sig/privy/models/stripe_crypto_customer_none.rbs +28 -0
  151. data/sig/privy/models/stripe_onramp_checkout_response.rbs +29 -0
  152. data/sig/privy/models/stripe_onramp_session_status.rbs +15 -0
  153. data/sig/privy/models/stripe_payment_token.rbs +15 -0
  154. data/sig/privy/models/stripe_quote.rbs +13 -0
  155. data/sig/privy/models/stripe_transaction_details.rbs +13 -0
  156. data/sig/privy/models/stripe_verification.rbs +15 -0
  157. data/sig/privy/models/swap_action_response.rbs +7 -0
  158. data/sig/privy/models/swap_destination.rbs +16 -3
  159. data/sig/privy/models/swap_quote_destination.rbs +16 -3
  160. data/sig/privy/models/swap_quote_request_body.rbs +9 -0
  161. data/sig/privy/models/swap_quote_response.rbs +26 -3
  162. data/sig/privy/models/swap_request_body.rbs +9 -0
  163. data/sig/privy/models/wallets/swap_execute_params.rbs +44 -0
  164. data/sig/privy/models/wallets/swap_quote_params.rbs +34 -0
  165. data/sig/privy/models.rbs +69 -5
  166. data/sig/privy/resources/intents.rbs +3 -3
  167. data/sig/privy/resources/oauth.rbs +7 -0
  168. data/sig/privy/resources/onramps.rbs +7 -0
  169. data/sig/privy/resources/wallets/swap.rbs +34 -0
  170. data/sig/privy/resources/wallets.rbs +2 -0
  171. metadata +125 -8
  172. data/lib/privy/models/gas_sponsorship_configuration.rb +0 -29
  173. data/lib/privy/models/gas_sponsorship_configuration_input.rb +0 -29
  174. data/rbi/privy/models/gas_sponsorship_configuration.rbi +0 -48
  175. data/rbi/privy/models/gas_sponsorship_configuration_input.rbi +0 -60
  176. data/sig/privy/models/gas_sponsorship_configuration.rbs +0 -30
  177. data/sig/privy/models/gas_sponsorship_configuration_input.rbs +0 -36
@@ -0,0 +1,35 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_crypto_customer_expired =
4
+ {
5
+ crypto_customer_id: String,
6
+ status: Privy::Models::StripeCryptoCustomerExpired::status
7
+ }
8
+
9
+ class StripeCryptoCustomerExpired < Privy::Internal::Type::BaseModel
10
+ attr_accessor crypto_customer_id: String
11
+
12
+ attr_accessor status: Privy::Models::StripeCryptoCustomerExpired::status
13
+
14
+ def initialize: (
15
+ crypto_customer_id: String,
16
+ status: Privy::Models::StripeCryptoCustomerExpired::status
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ crypto_customer_id: String,
21
+ status: Privy::Models::StripeCryptoCustomerExpired::status
22
+ }
23
+
24
+ type status = :expired
25
+
26
+ module Status
27
+ extend Privy::Internal::Type::Enum
28
+
29
+ EXPIRED: :expired
30
+
31
+ def self?.values: -> ::Array[Privy::Models::StripeCryptoCustomerExpired::status]
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,28 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_crypto_customer_none =
4
+ { status: Privy::Models::StripeCryptoCustomerNone::status }
5
+
6
+ class StripeCryptoCustomerNone < Privy::Internal::Type::BaseModel
7
+ attr_accessor status: Privy::Models::StripeCryptoCustomerNone::status
8
+
9
+ def initialize: (
10
+ status: Privy::Models::StripeCryptoCustomerNone::status
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ status: Privy::Models::StripeCryptoCustomerNone::status
15
+ }
16
+
17
+ type status = :none
18
+
19
+ module Status
20
+ extend Privy::Internal::Type::Enum
21
+
22
+ NONE: :none
23
+
24
+ def self?.values: -> ::Array[Privy::Models::StripeCryptoCustomerNone::status]
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,29 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_onramp_checkout_response =
4
+ {
5
+ client_secret: String,
6
+ transaction_details: Privy::StripeTransactionDetails
7
+ }
8
+
9
+ class StripeOnrampCheckoutResponse < Privy::Internal::Type::BaseModel
10
+ attr_accessor client_secret: String
11
+
12
+ attr_reader transaction_details: Privy::StripeTransactionDetails?
13
+
14
+ def transaction_details=: (
15
+ Privy::StripeTransactionDetails
16
+ ) -> Privy::StripeTransactionDetails
17
+
18
+ def initialize: (
19
+ client_secret: String,
20
+ ?transaction_details: Privy::StripeTransactionDetails
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ client_secret: String,
25
+ transaction_details: Privy::StripeTransactionDetails
26
+ }
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,15 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_onramp_session_status = :active | :expired | :none
4
+
5
+ module StripeOnrampSessionStatus
6
+ extend Privy::Internal::Type::Enum
7
+
8
+ ACTIVE: :active
9
+ EXPIRED: :expired
10
+ NONE: :none
11
+
12
+ def self?.values: -> ::Array[Privy::Models::stripe_onramp_session_status]
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_payment_token = { id: String, type: String }
4
+
5
+ class StripePaymentToken < Privy::Internal::Type::BaseModel
6
+ attr_accessor id: String
7
+
8
+ attr_accessor type: String
9
+
10
+ def initialize: (id: String, type: String) -> void
11
+
12
+ def to_hash: -> { id: String, type: String }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_quote = { expires_at: Float }
4
+
5
+ class StripeQuote < Privy::Internal::Type::BaseModel
6
+ attr_accessor expires_at: Float
7
+
8
+ def initialize: (expires_at: Float) -> void
9
+
10
+ def to_hash: -> { expires_at: Float }
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_transaction_details = { last_error: String? }
4
+
5
+ class StripeTransactionDetails < Privy::Internal::Type::BaseModel
6
+ attr_accessor last_error: String?
7
+
8
+ def initialize: (?last_error: String?) -> void
9
+
10
+ def to_hash: -> { last_error: String? }
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ module Privy
2
+ module Models
3
+ type stripe_verification = { name: String, status: String }
4
+
5
+ class StripeVerification < Privy::Internal::Type::BaseModel
6
+ attr_accessor name: String
7
+
8
+ attr_accessor status: String
9
+
10
+ def initialize: (name: String, status: String) -> void
11
+
12
+ def to_hash: -> { name: String, status: String }
13
+ end
14
+ end
15
+ end
@@ -12,6 +12,7 @@ module Privy
12
12
  status: Privy::Models::wallet_action_status,
13
13
  type: Privy::Models::SwapActionResponse::type_,
14
14
  wallet_id: String,
15
+ :destination_caip2 => String,
15
16
  failure_reason: Privy::FailureReason,
16
17
  steps: ::Array[Privy::Models::wallet_action_step]
17
18
  }
@@ -37,6 +38,10 @@ module Privy
37
38
 
38
39
  attr_accessor wallet_id: String
39
40
 
41
+ attr_reader destination_caip2: String?
42
+
43
+ def destination_caip2=: (String) -> String
44
+
40
45
  attr_reader failure_reason: Privy::FailureReason?
41
46
 
42
47
  def failure_reason=: (Privy::FailureReason) -> Privy::FailureReason
@@ -58,6 +63,7 @@ module Privy
58
63
  status: Privy::Models::wallet_action_status,
59
64
  type: Privy::Models::SwapActionResponse::type_,
60
65
  wallet_id: String,
66
+ ?destination_caip2: String,
61
67
  ?failure_reason: Privy::FailureReason,
62
68
  ?steps: ::Array[Privy::Models::wallet_action_step]
63
69
  ) -> void
@@ -73,6 +79,7 @@ module Privy
73
79
  status: Privy::Models::wallet_action_status,
74
80
  type: Privy::Models::SwapActionResponse::type_,
75
81
  wallet_id: String,
82
+ :destination_caip2 => String,
76
83
  failure_reason: Privy::FailureReason,
77
84
  steps: ::Array[Privy::Models::wallet_action_step]
78
85
  }
@@ -1,6 +1,7 @@
1
1
  module Privy
2
2
  module Models
3
- type swap_destination = { asset_address: String, :caip2 => String }
3
+ type swap_destination =
4
+ { asset_address: String, :caip2 => String, destination_address: String }
4
5
 
5
6
  class SwapDestination < Privy::Internal::Type::BaseModel
6
7
  attr_accessor asset_address: String
@@ -9,9 +10,21 @@ module Privy
9
10
 
10
11
  def caip2=: (String) -> String
11
12
 
12
- def initialize: (asset_address: String, ?caip2: String) -> void
13
+ attr_reader destination_address: String?
13
14
 
14
- def to_hash: -> { asset_address: String, :caip2 => String }
15
+ def destination_address=: (String) -> String
16
+
17
+ def initialize: (
18
+ asset_address: String,
19
+ ?caip2: String,
20
+ ?destination_address: String
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ asset_address: String,
25
+ :caip2 => String,
26
+ destination_address: String
27
+ }
15
28
  end
16
29
  end
17
30
  end
@@ -1,6 +1,7 @@
1
1
  module Privy
2
2
  module Models
3
- type swap_quote_destination = { asset_address: String, :caip2 => String }
3
+ type swap_quote_destination =
4
+ { asset_address: String, :caip2 => String, destination_address: String }
4
5
 
5
6
  class SwapQuoteDestination < Privy::Internal::Type::BaseModel
6
7
  attr_accessor asset_address: String
@@ -9,9 +10,21 @@ module Privy
9
10
 
10
11
  def caip2=: (String) -> String
11
12
 
12
- def initialize: (asset_address: String, ?caip2: String) -> void
13
+ attr_reader destination_address: String?
13
14
 
14
- def to_hash: -> { asset_address: String, :caip2 => String }
15
+ def destination_address=: (String) -> String
16
+
17
+ def initialize: (
18
+ asset_address: String,
19
+ ?caip2: String,
20
+ ?destination_address: String
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ asset_address: String,
25
+ :caip2 => String,
26
+ destination_address: String
27
+ }
15
28
  end
16
29
  end
17
30
  end
@@ -6,6 +6,7 @@ module Privy
6
6
  destination: Privy::SwapQuoteDestination,
7
7
  source: Privy::SwapSource,
8
8
  amount_type: Privy::Models::amount_type,
9
+ fee_configuration: Privy::FeeConfiguration,
9
10
  slippage_bps: Float
10
11
  }
11
12
 
@@ -22,6 +23,12 @@ module Privy
22
23
  Privy::Models::amount_type
23
24
  ) -> Privy::Models::amount_type
24
25
 
26
+ attr_reader fee_configuration: Privy::FeeConfiguration?
27
+
28
+ def fee_configuration=: (
29
+ Privy::FeeConfiguration
30
+ ) -> Privy::FeeConfiguration
31
+
25
32
  attr_reader slippage_bps: Float?
26
33
 
27
34
  def slippage_bps=: (Float) -> Float
@@ -31,6 +38,7 @@ module Privy
31
38
  destination: Privy::SwapQuoteDestination,
32
39
  source: Privy::SwapSource,
33
40
  ?amount_type: Privy::Models::amount_type,
41
+ ?fee_configuration: Privy::FeeConfiguration,
34
42
  ?slippage_bps: Float
35
43
  ) -> void
36
44
 
@@ -39,6 +47,7 @@ module Privy
39
47
  destination: Privy::SwapQuoteDestination,
40
48
  source: Privy::SwapSource,
41
49
  amount_type: Privy::Models::amount_type,
50
+ fee_configuration: Privy::FeeConfiguration,
42
51
  slippage_bps: Float
43
52
  }
44
53
  end
@@ -8,7 +8,10 @@ module Privy
8
8
  input_amount: String,
9
9
  input_token: String,
10
10
  minimum_output_amount: String,
11
- output_token: String
11
+ output_token: String,
12
+ :destination_caip2 => String,
13
+ estimated_fees: ::Array[Privy::Models::fee_line_item],
14
+ expires_at: Float
12
15
  }
13
16
 
14
17
  class SwapQuoteResponse < Privy::Internal::Type::BaseModel
@@ -26,6 +29,20 @@ module Privy
26
29
 
27
30
  attr_accessor output_token: String
28
31
 
32
+ attr_reader destination_caip2: String?
33
+
34
+ def destination_caip2=: (String) -> String
35
+
36
+ attr_reader estimated_fees: ::Array[Privy::Models::fee_line_item]?
37
+
38
+ def estimated_fees=: (
39
+ ::Array[Privy::Models::fee_line_item]
40
+ ) -> ::Array[Privy::Models::fee_line_item]
41
+
42
+ attr_reader expires_at: Float?
43
+
44
+ def expires_at=: (Float) -> Float
45
+
29
46
  def initialize: (
30
47
  caip2: String,
31
48
  est_output_amount: String,
@@ -33,7 +50,10 @@ module Privy
33
50
  input_amount: String,
34
51
  input_token: String,
35
52
  minimum_output_amount: String,
36
- output_token: String
53
+ output_token: String,
54
+ ?destination_caip2: String,
55
+ ?estimated_fees: ::Array[Privy::Models::fee_line_item],
56
+ ?expires_at: Float
37
57
  ) -> void
38
58
 
39
59
  def to_hash: -> {
@@ -43,7 +63,10 @@ module Privy
43
63
  input_amount: String,
44
64
  input_token: String,
45
65
  minimum_output_amount: String,
46
- output_token: String
66
+ output_token: String,
67
+ :destination_caip2 => String,
68
+ estimated_fees: ::Array[Privy::Models::fee_line_item],
69
+ expires_at: Float
47
70
  }
48
71
  end
49
72
  end
@@ -6,6 +6,7 @@ module Privy
6
6
  destination: Privy::SwapDestination,
7
7
  source: Privy::SwapSource,
8
8
  amount_type: Privy::Models::amount_type,
9
+ fee_configuration: Privy::FeeConfiguration,
9
10
  slippage_bps: Float
10
11
  }
11
12
 
@@ -22,6 +23,12 @@ module Privy
22
23
  Privy::Models::amount_type
23
24
  ) -> Privy::Models::amount_type
24
25
 
26
+ attr_reader fee_configuration: Privy::FeeConfiguration?
27
+
28
+ def fee_configuration=: (
29
+ Privy::FeeConfiguration
30
+ ) -> Privy::FeeConfiguration
31
+
25
32
  attr_reader slippage_bps: Float?
26
33
 
27
34
  def slippage_bps=: (Float) -> Float
@@ -31,6 +38,7 @@ module Privy
31
38
  destination: Privy::SwapDestination,
32
39
  source: Privy::SwapSource,
33
40
  ?amount_type: Privy::Models::amount_type,
41
+ ?fee_configuration: Privy::FeeConfiguration,
34
42
  ?slippage_bps: Float
35
43
  ) -> void
36
44
 
@@ -39,6 +47,7 @@ module Privy
39
47
  destination: Privy::SwapDestination,
40
48
  source: Privy::SwapSource,
41
49
  amount_type: Privy::Models::amount_type,
50
+ fee_configuration: Privy::FeeConfiguration,
42
51
  slippage_bps: Float
43
52
  }
44
53
  end
@@ -0,0 +1,44 @@
1
+ module Privy
2
+ module Models
3
+ module Wallets
4
+ type swap_execute_params =
5
+ {
6
+ wallet_id: String,
7
+ privy_authorization_signature: String,
8
+ privy_idempotency_key: String
9
+ }
10
+ & Privy::Internal::Type::request_parameters
11
+
12
+ class SwapExecuteParams < Privy::Models::SwapRequestBody
13
+ extend Privy::Internal::Type::RequestParameters::Converter
14
+ include Privy::Internal::Type::RequestParameters
15
+
16
+ def wallet_id: -> String
17
+
18
+ def wallet_id=: (String _) -> String
19
+
20
+ def privy_authorization_signature: -> String?
21
+
22
+ def privy_authorization_signature=: (String _) -> String
23
+
24
+ def privy_idempotency_key: -> String?
25
+
26
+ def privy_idempotency_key=: (String _) -> String
27
+
28
+ def initialize: (
29
+ wallet_id: String,
30
+ ?privy_authorization_signature: String,
31
+ ?privy_idempotency_key: String,
32
+ ?request_options: Privy::request_opts
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ wallet_id: String,
37
+ privy_authorization_signature: String,
38
+ privy_idempotency_key: String,
39
+ request_options: Privy::RequestOptions
40
+ }
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,34 @@
1
+ module Privy
2
+ module Models
3
+ module Wallets
4
+ type swap_quote_params =
5
+ { wallet_id: String, privy_authorization_signature: String }
6
+ & Privy::Internal::Type::request_parameters
7
+
8
+ class SwapQuoteParams < Privy::Models::SwapQuoteRequestBody
9
+ extend Privy::Internal::Type::RequestParameters::Converter
10
+ include Privy::Internal::Type::RequestParameters
11
+
12
+ def wallet_id: -> String
13
+
14
+ def wallet_id=: (String _) -> String
15
+
16
+ def privy_authorization_signature: -> String?
17
+
18
+ def privy_authorization_signature=: (String _) -> String
19
+
20
+ def initialize: (
21
+ wallet_id: String,
22
+ ?privy_authorization_signature: String,
23
+ ?request_options: Privy::request_opts
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ wallet_id: String,
28
+ privy_authorization_signature: String,
29
+ request_options: Privy::RequestOptions
30
+ }
31
+ end
32
+ end
33
+ end
34
+ end
data/sig/privy/models.rbs CHANGED
@@ -205,10 +205,18 @@ module Privy
205
205
 
206
206
  module CreateAccountInput = Privy::Models::CreateAccountInput
207
207
 
208
+ class CreateLinkAuthIntentInput = Privy::Models::CreateLinkAuthIntentInput
209
+
210
+ class CreateLinkAuthIntentResponse = Privy::Models::CreateLinkAuthIntentResponse
211
+
208
212
  class CreateOrganizationSecretResponse = Privy::Models::CreateOrganizationSecretResponse
209
213
 
210
214
  class CreateOrUpdateFiatCustomerRequestInput = Privy::Models::CreateOrUpdateFiatCustomerRequestInput
211
215
 
216
+ class CreateStripeOnrampSessionInput = Privy::Models::CreateStripeOnrampSessionInput
217
+
218
+ class CreateStripeOnrampSessionResponse = Privy::Models::CreateStripeOnrampSessionResponse
219
+
212
220
  class CrossAppConnection = Privy::Models::CrossAppConnection
213
221
 
214
222
  class CrossAppConnectionsResponse = Privy::Models::CrossAppConnectionsResponse
@@ -251,6 +259,8 @@ module Privy
251
259
 
252
260
  class DeveloperFee = Privy::Models::DeveloperFee
253
261
 
262
+ class DeviceAuthorizationResponse = Privy::Models::DeviceAuthorizationResponse
263
+
254
264
  class EarnAsset = Privy::Models::EarnAsset
255
265
 
256
266
  class EarnDepositActionResponse = Privy::Models::EarnDepositActionResponse
@@ -261,6 +271,12 @@ module Privy
261
271
 
262
272
  class EarnIncentiveClaimRequestBody = Privy::Models::EarnIncentiveClaimRequestBody
263
273
 
274
+ class EarnIncentiveRewardEntry = Privy::Models::EarnIncentiveRewardEntry
275
+
276
+ class EarnIncentiveRewardsQuery = Privy::Models::EarnIncentiveRewardsQuery
277
+
278
+ class EarnIncentiveRewardsResponse = Privy::Models::EarnIncentiveRewardsResponse
279
+
264
280
  class EarnIncetiveClaimRewardEntry = Privy::Models::EarnIncetiveClaimRewardEntry
265
281
 
266
282
  class EarnWithdrawActionResponse = Privy::Models::EarnWithdrawActionResponse
@@ -421,6 +437,10 @@ module Privy
421
437
 
422
438
  module EvmWalletActionStepStatus = Privy::Models::EvmWalletActionStepStatus
423
439
 
440
+ class ExchangeStripeTokensInput = Privy::Models::ExchangeStripeTokensInput
441
+
442
+ class ExchangeStripeTokensResponse = Privy::Models::ExchangeStripeTokensResponse
443
+
424
444
  class ExportPrivateKeyRpcInput = Privy::Models::ExportPrivateKeyRpcInput
425
445
 
426
446
  class ExportPrivateKeyRpcResponse = Privy::Models::ExportPrivateKeyRpcResponse
@@ -517,8 +537,12 @@ module Privy
517
537
 
518
538
  class FiatOnrampSource = Privy::Models::FiatOnrampSource
519
539
 
540
+ class FiatOnrampStripeSDKSessionResponse = Privy::Models::FiatOnrampStripeSDKSessionResponse
541
+
520
542
  module FiatOnrampTransactionStatus = Privy::Models::FiatOnrampTransactionStatus
521
543
 
544
+ class FiatOnrampURLSessionResponse = Privy::Models::FiatOnrampURLSessionResponse
545
+
522
546
  module FiatVirtualAccountRequest = Privy::Models::FiatVirtualAccountRequest
523
547
 
524
548
  module FiatVirtualAccountResponse = Privy::Models::FiatVirtualAccountResponse
@@ -541,10 +565,6 @@ module Privy
541
565
 
542
566
  class GasSpendResponseBody = Privy::Models::GasSpendResponseBody
543
567
 
544
- class GasSponsorshipConfiguration = Privy::Models::GasSponsorshipConfiguration
545
-
546
- class GasSponsorshipConfigurationInput = Privy::Models::GasSponsorshipConfigurationInput
547
-
548
568
  class GetByWalletAddressRequestBody = Privy::Models::GetByWalletAddressRequestBody
549
569
 
550
570
  class GetFiatCustomerRequestInput = Privy::Models::GetFiatCustomerRequestInput
@@ -559,7 +579,9 @@ module Privy
559
579
 
560
580
  class GetFiatOnrampURLInput = Privy::Models::GetFiatOnrampURLInput
561
581
 
562
- class GetFiatOnrampURLResponse = Privy::Models::GetFiatOnrampURLResponse
582
+ module GetFiatOnrampURLResponse = Privy::Models::GetFiatOnrampURLResponse
583
+
584
+ class GetStripeCryptoCustomerResponse = Privy::Models::GetStripeCryptoCustomerResponse
563
585
 
564
586
  class GuestAuthenticateRequestBody = Privy::Models::GuestAuthenticateRequestBody
565
587
 
@@ -667,6 +689,12 @@ module Privy
667
689
 
668
690
  class KrakenEmbedCustomOrderAmount = Privy::Models::KrakenEmbedCustomOrderAmount
669
691
 
692
+ class KrakenEmbedCustomOrderCancelledWebhookPayload = Privy::Models::KrakenEmbedCustomOrderCancelledWebhookPayload
693
+
694
+ class KrakenEmbedCustomOrderExecutedWebhookPayload = Privy::Models::KrakenEmbedCustomOrderExecutedWebhookPayload
695
+
696
+ class KrakenEmbedCustomOrderExecutionFailedWebhookPayload = Privy::Models::KrakenEmbedCustomOrderExecutionFailedWebhookPayload
697
+
670
698
  class KrakenEmbedCustomOrderOccurrence = Privy::Models::KrakenEmbedCustomOrderOccurrence
671
699
 
672
700
  class KrakenEmbedCustomOrderOccurrenceExecutedAction = Privy::Models::KrakenEmbedCustomOrderOccurrenceExecutedAction
@@ -773,6 +801,10 @@ module Privy
773
801
 
774
802
  class KrakenEmbedUserVerifiedWebhookPayload = Privy::Models::KrakenEmbedUserVerifiedWebhookPayload
775
803
 
804
+ class LinkAuthIntentCreated = Privy::Models::LinkAuthIntentCreated
805
+
806
+ class LinkAuthIntentNoAccount = Privy::Models::LinkAuthIntentNoAccount
807
+
776
808
  module LinkedAccount = Privy::Models::LinkedAccount
777
809
 
778
810
  class LinkedAccountAppleInput = Privy::Models::LinkedAccountAppleInput
@@ -881,6 +913,10 @@ module Privy
881
913
 
882
914
  class LinkJwtInput = Privy::Models::LinkJwtInput
883
915
 
916
+ class ListStripeConsumerWalletsResponse = Privy::Models::ListStripeConsumerWalletsResponse
917
+
918
+ class ListStripePaymentTokensResponse = Privy::Models::ListStripePaymentTokensResponse
919
+
884
920
  class MfaDisabledWebhookPayload = Privy::Models::MfaDisabledWebhookPayload
885
921
 
886
922
  class MfaEnabledWebhookPayload = Privy::Models::MfaEnabledWebhookPayload
@@ -975,6 +1011,8 @@ module Privy
975
1011
 
976
1012
  module OnrampProvider = Privy::Models::OnrampProvider
977
1013
 
1014
+ class OnrampSessionParams = Privy::Models::OnrampSessionParams
1015
+
978
1016
  class OptionalRefreshTokenInput = Privy::Models::OptionalRefreshTokenInput
979
1017
 
980
1018
  class OrganizationSecretIDInput = Privy::Models::OrganizationSecretIDInput
@@ -1147,6 +1185,8 @@ module Privy
1147
1185
 
1148
1186
  module RecoveryType = Privy::Models::RecoveryType
1149
1187
 
1188
+ class RefreshStripeQuoteResponse = Privy::Models::RefreshStripeQuoteResponse
1189
+
1150
1190
  class RelayerFee = Privy::Models::RelayerFee
1151
1191
 
1152
1192
  class ResponsePasskeyInitAuthenticate = Privy::Models::ResponsePasskeyInitAuthenticate
@@ -1159,6 +1199,8 @@ module Privy
1159
1199
 
1160
1200
  class RpcIntentResponse = Privy::Models::RpcIntentResponse
1161
1201
 
1202
+ class RuleDeleteIntentResponse = Privy::Models::RuleDeleteIntentResponse
1203
+
1162
1204
  class RuleIntentCreateRequestDetails = Privy::Models::RuleIntentCreateRequestDetails
1163
1205
 
1164
1206
  class RuleIntentDeleteRequestDetails = Privy::Models::RuleIntentDeleteRequestDetails
@@ -1169,6 +1211,8 @@ module Privy
1169
1211
 
1170
1212
  class RuleIntentUpdateRequestDetails = Privy::Models::RuleIntentUpdateRequestDetails
1171
1213
 
1214
+ class RuleMutateIntentResponse = Privy::Models::RuleMutateIntentResponse
1215
+
1172
1216
  class SeedPhraseExportInput = Privy::Models::SeedPhraseExportInput
1173
1217
 
1174
1218
  class SeedPhraseExportResponse = Privy::Models::SeedPhraseExportResponse
@@ -1359,6 +1403,26 @@ module Privy
1359
1403
 
1360
1404
  class SparkWalletLeaf = Privy::Models::SparkWalletLeaf
1361
1405
 
1406
+ class StripeConsumerWallet = Privy::Models::StripeConsumerWallet
1407
+
1408
+ class StripeCryptoCustomerActive = Privy::Models::StripeCryptoCustomerActive
1409
+
1410
+ class StripeCryptoCustomerExpired = Privy::Models::StripeCryptoCustomerExpired
1411
+
1412
+ class StripeCryptoCustomerNone = Privy::Models::StripeCryptoCustomerNone
1413
+
1414
+ class StripeOnrampCheckoutResponse = Privy::Models::StripeOnrampCheckoutResponse
1415
+
1416
+ module StripeOnrampSessionStatus = Privy::Models::StripeOnrampSessionStatus
1417
+
1418
+ class StripePaymentToken = Privy::Models::StripePaymentToken
1419
+
1420
+ class StripeQuote = Privy::Models::StripeQuote
1421
+
1422
+ class StripeTransactionDetails = Privy::Models::StripeTransactionDetails
1423
+
1424
+ class StripeVerification = Privy::Models::StripeVerification
1425
+
1362
1426
  class SuccessResponse = Privy::Models::SuccessResponse
1363
1427
 
1364
1428
  module SuiCommandName = Privy::Models::SuiCommandName
@@ -22,14 +22,14 @@ module Privy
22
22
  name: String,
23
23
  ?privy_request_expiry: String,
24
24
  ?request_options: Privy::request_opts
25
- ) -> Privy::RuleIntentResponse
25
+ ) -> Privy::RuleMutateIntentResponse
26
26
 
27
27
  def delete_policy_rule: (
28
28
  String rule_id,
29
29
  policy_id: String,
30
30
  ?privy_request_expiry: String,
31
31
  ?request_options: Privy::request_opts
32
- ) -> Privy::RuleIntentResponse
32
+ ) -> Privy::RuleDeleteIntentResponse
33
33
 
34
34
  def get: (
35
35
  String intent_id,
@@ -84,7 +84,7 @@ module Privy
84
84
  name: String,
85
85
  ?privy_request_expiry: String,
86
86
  ?request_options: Privy::request_opts
87
- ) -> Privy::RuleIntentResponse
87
+ ) -> Privy::RuleMutateIntentResponse
88
88
 
89
89
  def update_wallet: (
90
90
  String wallet_id,