privy_ruby 0.5.0 → 0.7.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 (170) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/privy/models/balance_asset_by_chain.rb +2 -2
  5. data/lib/privy/models/currency.rb +5 -2
  6. data/lib/privy/models/custom_token_transfer_source.rb +1 -1
  7. data/lib/privy/models/email_mfa_method.rb +33 -0
  8. data/lib/privy/models/ethereum_personal_sign_rpc_input.rb +2 -2
  9. data/lib/privy/models/ethereum_secp_256k_1_sign_rpc_input_params.rb +2 -2
  10. data/lib/privy/models/ethereum_secp_256k_1_sign_rpc_response_data.rb +2 -2
  11. data/lib/privy/models/ethereum_send_calls_call.rb +2 -2
  12. data/lib/privy/models/ethereum_send_calls_rpc_input.rb +4 -4
  13. data/lib/privy/models/ethereum_send_calls_rpc_response_data.rb +5 -2
  14. data/lib/privy/models/ethereum_send_transaction_rpc_input.rb +4 -4
  15. data/lib/privy/models/ethereum_send_transaction_rpc_response_data.rb +2 -2
  16. data/lib/privy/models/ethereum_sign_7702_authorization.rb +4 -4
  17. data/lib/privy/models/ethereum_sign_typed_data_rpc_input.rb +2 -2
  18. data/lib/privy/models/ethereum_vault_details_response.rb +2 -2
  19. data/lib/privy/models/ethereum_yield_claim_input.rb +6 -2
  20. data/lib/privy/models/ethereum_yield_claim_response.rb +6 -2
  21. data/lib/privy/models/fiat_onramp_destination.rb +3 -3
  22. data/lib/privy/models/linked_mfa_method.rb +4 -1
  23. data/lib/privy/models/mfa_email_enroll_request_body.rb +23 -0
  24. data/lib/privy/models/mfa_email_init_enroll_input.rb +33 -0
  25. data/lib/privy/models/mfa_email_init_request_body.rb +19 -0
  26. data/lib/privy/models/mfa_email_init_verify_input.rb +27 -0
  27. data/lib/privy/models/mfa_email_verify_request_body.rb +17 -0
  28. data/lib/privy/models/mfa_method.rb +1 -0
  29. data/lib/privy/models/named_token_transfer_source.rb +4 -4
  30. data/lib/privy/models/quantity.rb +1 -1
  31. data/lib/privy/models/raw_sign_hash_params.rb +2 -2
  32. data/lib/privy/models/raw_sign_response_data.rb +2 -2
  33. data/lib/privy/models/solana_sign_and_send_transaction_rpc_input.rb +5 -2
  34. data/lib/privy/models/solana_sign_and_send_transaction_rpc_response_data.rb +5 -2
  35. data/lib/privy/models/swap_source.rb +6 -2
  36. data/lib/privy/models/tempo_aa_authorization.rb +2 -2
  37. data/lib/privy/models/tempo_call.rb +2 -2
  38. data/lib/privy/models/tempo_fee_payer_signature.rb +4 -4
  39. data/lib/privy/models/token_transfer_destination.rb +1 -1
  40. data/lib/privy/models/transaction_broadcasted_webhook_payload.rb +3 -2
  41. data/lib/privy/models/transaction_chain_name_input.rb +1 -0
  42. data/lib/privy/models/transaction_confirmed_webhook_payload.rb +3 -2
  43. data/lib/privy/models/transaction_execution_reverted_webhook_payload.rb +3 -2
  44. data/lib/privy/models/transaction_failed_webhook_payload.rb +3 -2
  45. data/lib/privy/models/transaction_provider_error_webhook_payload.rb +3 -2
  46. data/lib/privy/models/transaction_replaced_webhook_payload.rb +3 -2
  47. data/lib/privy/models/transaction_still_pending_webhook_payload.rb +3 -2
  48. data/lib/privy/models/transfer_received_transaction_detail.rb +3 -0
  49. data/lib/privy/models/transfer_sent_transaction_detail.rb +3 -0
  50. data/lib/privy/models/tron_send_transaction_rpc_input.rb +5 -2
  51. data/lib/privy/models/tron_send_transaction_rpc_response_data.rb +5 -2
  52. data/lib/privy/models/unsigned_standard_ethereum_transaction.rb +2 -2
  53. data/lib/privy/models/user.rb +2 -2
  54. data/lib/privy/models/user_operation_input.rb +37 -21
  55. data/lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb +2 -2
  56. data/lib/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rb +2 -2
  57. data/lib/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rb +2 -2
  58. data/lib/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rb +2 -2
  59. data/lib/privy/models/wallet_action_transfer_created_webhook_payload.rb +2 -2
  60. data/lib/privy/models/wallet_action_transfer_failed_webhook_payload.rb +2 -2
  61. data/lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb +2 -2
  62. data/lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb +2 -2
  63. data/lib/privy/models/wallet_asset.rb +1 -0
  64. data/lib/privy/models/wallet_ethereum_asset.rb +1 -0
  65. data/lib/privy/models/wallets/aave_vault_details.rb +2 -2
  66. data/lib/privy/models/wallets/balance_get_params.rb +9 -6
  67. data/lib/privy/models/wallets/balance_get_response.rb +3 -0
  68. data/lib/privy/models/wallets/earn_incentive_claim_action_response.rb +2 -2
  69. data/lib/privy/models/wallets/earn_incentive_claim_request_body.rb +2 -2
  70. data/lib/privy/models/wallets/earn_incentive_rewards_query.rb +2 -2
  71. data/lib/privy/models/wallets/morpho_vault_details.rb +2 -2
  72. data/lib/privy/models/wallets/transaction_get_params.rb +3 -0
  73. data/lib/privy/models/wallets/transfer_action_response.rb +2 -2
  74. data/lib/privy/models/wallets/veda_vault_details.rb +2 -2
  75. data/lib/privy/models.rb +12 -0
  76. data/lib/privy/resources/wallets/balance.rb +2 -2
  77. data/lib/privy/version.rb +1 -1
  78. data/lib/privy.rb +6 -0
  79. data/rbi/privy/models/balance_asset_by_chain.rbi +2 -2
  80. data/rbi/privy/models/currency.rbi +2 -2
  81. data/rbi/privy/models/custom_token_transfer_source.rbi +2 -2
  82. data/rbi/privy/models/email_mfa_method.rbi +53 -0
  83. data/rbi/privy/models/ethereum_personal_sign_rpc_input.rbi +2 -2
  84. data/rbi/privy/models/ethereum_secp_256k_1_sign_rpc_input_params.rbi +2 -2
  85. data/rbi/privy/models/ethereum_secp_256k_1_sign_rpc_response_data.rbi +2 -2
  86. data/rbi/privy/models/ethereum_send_calls_call.rbi +2 -2
  87. data/rbi/privy/models/ethereum_send_calls_rpc_input.rbi +4 -4
  88. data/rbi/privy/models/ethereum_send_calls_rpc_response_data.rbi +2 -2
  89. data/rbi/privy/models/ethereum_send_transaction_rpc_input.rbi +4 -4
  90. data/rbi/privy/models/ethereum_send_transaction_rpc_response_data.rbi +2 -2
  91. data/rbi/privy/models/ethereum_sign_7702_authorization.rbi +4 -4
  92. data/rbi/privy/models/ethereum_sign_typed_data_rpc_input.rbi +2 -2
  93. data/rbi/privy/models/ethereum_vault_details_response.rbi +2 -2
  94. data/rbi/privy/models/ethereum_yield_claim_input.rbi +4 -2
  95. data/rbi/privy/models/ethereum_yield_claim_response.rbi +4 -2
  96. data/rbi/privy/models/fiat_onramp_destination.rbi +4 -4
  97. data/rbi/privy/models/linked_mfa_method.rbi +2 -1
  98. data/rbi/privy/models/mfa_email_enroll_request_body.rbi +29 -0
  99. data/rbi/privy/models/mfa_email_init_enroll_input.rbi +58 -0
  100. data/rbi/privy/models/mfa_email_init_request_body.rbi +21 -0
  101. data/rbi/privy/models/mfa_email_init_verify_input.rbi +51 -0
  102. data/rbi/privy/models/mfa_email_verify_request_body.rbi +24 -0
  103. data/rbi/privy/models/mfa_method.rbi +1 -0
  104. data/rbi/privy/models/named_token_transfer_source.rbi +6 -6
  105. data/rbi/privy/models/raw_sign_hash_params.rbi +2 -2
  106. data/rbi/privy/models/raw_sign_response_data.rbi +2 -2
  107. data/rbi/privy/models/solana_sign_and_send_transaction_rpc_input.rbi +2 -2
  108. data/rbi/privy/models/solana_sign_and_send_transaction_rpc_response_data.rbi +2 -2
  109. data/rbi/privy/models/swap_source.rbi +4 -2
  110. data/rbi/privy/models/tempo_aa_authorization.rbi +2 -2
  111. data/rbi/privy/models/tempo_call.rbi +2 -2
  112. data/rbi/privy/models/tempo_fee_payer_signature.rbi +4 -4
  113. data/rbi/privy/models/token_transfer_destination.rbi +2 -2
  114. data/rbi/privy/models/transaction_broadcasted_webhook_payload.rbi +4 -2
  115. data/rbi/privy/models/transaction_chain_name_input.rbi +2 -0
  116. data/rbi/privy/models/transaction_confirmed_webhook_payload.rbi +4 -2
  117. data/rbi/privy/models/transaction_execution_reverted_webhook_payload.rbi +4 -2
  118. data/rbi/privy/models/transaction_failed_webhook_payload.rbi +4 -2
  119. data/rbi/privy/models/transaction_provider_error_webhook_payload.rbi +4 -2
  120. data/rbi/privy/models/transaction_replaced_webhook_payload.rbi +4 -2
  121. data/rbi/privy/models/transaction_still_pending_webhook_payload.rbi +4 -2
  122. data/rbi/privy/models/transfer_received_transaction_detail.rbi +5 -0
  123. data/rbi/privy/models/transfer_sent_transaction_detail.rbi +5 -0
  124. data/rbi/privy/models/tron_send_transaction_rpc_input.rbi +2 -2
  125. data/rbi/privy/models/tron_send_transaction_rpc_response_data.rbi +2 -2
  126. data/rbi/privy/models/unsigned_standard_ethereum_transaction.rbi +2 -2
  127. data/rbi/privy/models/user.rbi +2 -1
  128. data/rbi/privy/models/user_operation_input.rbi +42 -20
  129. data/rbi/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rbi +2 -2
  130. data/rbi/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rbi +2 -2
  131. data/rbi/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rbi +2 -2
  132. data/rbi/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rbi +2 -2
  133. data/rbi/privy/models/wallet_action_transfer_created_webhook_payload.rbi +2 -2
  134. data/rbi/privy/models/wallet_action_transfer_failed_webhook_payload.rbi +2 -2
  135. data/rbi/privy/models/wallet_action_transfer_rejected_webhook_payload.rbi +2 -2
  136. data/rbi/privy/models/wallet_action_transfer_succeeded_webhook_payload.rbi +2 -2
  137. data/rbi/privy/models/wallet_asset.rbi +1 -0
  138. data/rbi/privy/models/wallet_ethereum_asset.rbi +1 -0
  139. data/rbi/privy/models/wallets/aave_vault_details.rbi +2 -2
  140. data/rbi/privy/models/wallets/balance_get_params.rbi +11 -6
  141. data/rbi/privy/models/wallets/balance_get_response.rbi +5 -0
  142. data/rbi/privy/models/wallets/earn_incentive_claim_action_response.rbi +2 -2
  143. data/rbi/privy/models/wallets/earn_incentive_claim_request_body.rbi +4 -4
  144. data/rbi/privy/models/wallets/earn_incentive_rewards_query.rbi +2 -2
  145. data/rbi/privy/models/wallets/morpho_vault_details.rbi +2 -2
  146. data/rbi/privy/models/wallets/transaction_get_params.rbi +5 -0
  147. data/rbi/privy/models/wallets/transfer_action_response.rbi +2 -2
  148. data/rbi/privy/models/wallets/veda_vault_details.rbi +2 -2
  149. data/rbi/privy/models.rbi +12 -0
  150. data/rbi/privy/resources/wallets/balance.rbi +2 -2
  151. data/rbi/privy/resources/wallets/earn/ethereum/incentive.rbi +2 -2
  152. data/sig/privy/models/email_mfa_method.rbs +32 -0
  153. data/sig/privy/models/linked_mfa_method.rbs +4 -1
  154. data/sig/privy/models/mfa_email_enroll_request_body.rbs +15 -0
  155. data/sig/privy/models/mfa_email_init_enroll_input.rbs +35 -0
  156. data/sig/privy/models/mfa_email_init_request_body.rbs +12 -0
  157. data/sig/privy/models/mfa_email_init_verify_input.rbs +26 -0
  158. data/sig/privy/models/mfa_email_verify_request_body.rbs +13 -0
  159. data/sig/privy/models/mfa_method.rbs +2 -1
  160. data/sig/privy/models/transaction_chain_name_input.rbs +2 -0
  161. data/sig/privy/models/transfer_received_transaction_detail.rbs +2 -0
  162. data/sig/privy/models/transfer_sent_transaction_detail.rbs +2 -0
  163. data/sig/privy/models/user_operation_input.rbs +14 -0
  164. data/sig/privy/models/wallet_asset.rbs +2 -0
  165. data/sig/privy/models/wallet_ethereum_asset.rbs +11 -1
  166. data/sig/privy/models/wallets/balance_get_params.rbs +2 -0
  167. data/sig/privy/models/wallets/balance_get_response.rbs +2 -0
  168. data/sig/privy/models/wallets/transaction_get_params.rbs +2 -0
  169. data/sig/privy/models.rbs +12 -0
  170. metadata +20 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae2f643444a092682a054d66cc2ef71d539ff6a4b6ce1edc826bed962af24d3a
4
- data.tar.gz: 5765c300f397626f07d21c27c40485a4e8c26e4e6c74c318eb7b87a696875592
3
+ metadata.gz: c82b0e50ec621b415bcb7bc1e4ded35b4775d968292691314327dfd5098bfa0c
4
+ data.tar.gz: ef68a60535831d5bea867e53ef601d9affbc12dd421952401de42ac548e8bd87
5
5
  SHA512:
6
- metadata.gz: e95ed204ec418306e72ec7d154087ddea6108f38f358fa74cd8b5ed8dd09fc819593c7339bee9e6db111443b56b3a52755f54d7b32cd223ae9161d0ff0864b9d
7
- data.tar.gz: 492c5fe66e0bb0bb36e54a99ae9d5c6a2a638f1b104c842cc81f066466acf2cb00c0e0c64af69b2705d6cf0a5d1bb01c5aa2b5c0c8d5b0501506fb73c2e359b9
6
+ metadata.gz: 1c2152123a4bddacb2f75215b228952900aa225a38a8884e9a5773a8c73e962263dee2aafd13f27c65f39618a2906ba2cc0d956e8068e318338cb99cfd0de6b9
7
+ data.tar.gz: b60fdcfc4817d95559bb08d58eedccb81169795fb56ece5fcb269673e71754b4d62d1e3128a7652db29902d33bbd996290195bee85c081a8cfcf2663b6bd86e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0 (2026-07-24)
4
+
5
+ Full Changelog: [v0.6.0...v0.7.0](https://github.com/privy-io/ruby-sdk/compare/v0.6.0...v0.7.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([2e2009e](https://github.com/privy-io/ruby-sdk/commit/2e2009e70fec4091485f25cc1902179f364eeb84))
10
+
11
+ ## 0.6.0 (2026-07-22)
12
+
13
+ Full Changelog: [v0.5.0...v0.6.0](https://github.com/privy-io/ruby-sdk/compare/v0.5.0...v0.6.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([44a9457](https://github.com/privy-io/ruby-sdk/commit/44a94575bfba4240a63f13f1ed190d90cd8acada))
18
+ * **api:** api update ([24431b8](https://github.com/privy-io/ruby-sdk/commit/24431b8cf491a36dabdf0bbe51c33ba1b2599913))
19
+ * **api:** api update ([3b76c00](https://github.com/privy-io/ruby-sdk/commit/3b76c00f2ebc28e1636a90b7e182698c49f2c293))
20
+ * **api:** api update ([d2d1208](https://github.com/privy-io/ruby-sdk/commit/d2d12088c0336ec81d3505e254a62a695738c556))
21
+ * **stlc:** configurable CI runner and private-production-repo support in workflow templates ([4620ce8](https://github.com/privy-io/ruby-sdk/commit/4620ce8b862b39b7449446b5bf7eadea38d2e107))
22
+
3
23
  ## 0.5.0 (2026-07-10)
4
24
 
5
25
  Full Changelog: [v0.4.0...v0.5.0](https://github.com/privy-io/ruby-sdk/compare/v0.4.0...v0.5.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.5.0"
20
+ gem "privy_ruby", "~> 0.7.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -11,7 +11,7 @@ module Privy
11
11
  required :amount, String
12
12
 
13
13
  # @!attribute chain_id
14
- # The CAIP-2 chain identifier (e.g. eip155:8453).
14
+ # The CAIP-2 chain identifier (e.g. eip155:4217 for Tempo, eip155:8453 for Base).
15
15
  #
16
16
  # @return [String]
17
17
  required :chain_id, String
@@ -36,7 +36,7 @@ module Privy
36
36
  #
37
37
  # @param amount [String] The amount of the asset held on this chain, denominated in the unit of the asset
38
38
  #
39
- # @param chain_id [String] The CAIP-2 chain identifier (e.g. eip155:8453).
39
+ # @param chain_id [String] The CAIP-2 chain identifier (e.g. eip155:4217 for Tempo, eip155:8453 for Base).
40
40
  #
41
41
  # @param price [Privy::Models::CurrencyAmount] A monetary value with its currency denomination.
42
42
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class Currency < Privy::Internal::Type::BaseModel
6
6
  # @!attribute chain
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :chain, String
@@ -16,9 +16,12 @@ module Privy
16
16
  optional :asset, enum: -> { Privy::CurrencyAsset }
17
17
 
18
18
  # @!method initialize(chain:, asset: nil)
19
+ # Some parameter documentations has been truncated, see {Privy::Models::Currency}
20
+ # for more details.
21
+ #
19
22
  # A crypto currency identified by a CAIP-2 chain ID and optional asset.
20
23
  #
21
- # @param chain [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
24
+ # @param chain [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
22
25
  #
23
26
  # @param asset [Symbol, Privy::Models::CurrencyAsset] A currency asset type.
24
27
  end
@@ -12,7 +12,7 @@ module Privy
12
12
 
13
13
  # @!attribute chain
14
14
  # The blockchain network on which to perform the transfer. Supported chains
15
- # include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
15
+ # include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
16
16
  # respective testnets.
17
17
  #
18
18
  # @return [String]
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class EmailMfaMethod < Privy::Internal::Type::BaseModel
6
+ # @!attribute type
7
+ #
8
+ # @return [Symbol, Privy::Models::EmailMfaMethod::Type]
9
+ required :type, enum: -> { Privy::EmailMfaMethod::Type }
10
+
11
+ # @!attribute verified_at
12
+ #
13
+ # @return [Float]
14
+ required :verified_at, Float
15
+
16
+ # @!method initialize(type:, verified_at:)
17
+ # An Email MFA method.
18
+ #
19
+ # @param type [Symbol, Privy::Models::EmailMfaMethod::Type]
20
+ # @param verified_at [Float]
21
+
22
+ # @see Privy::Models::EmailMfaMethod#type
23
+ module Type
24
+ extend Privy::Internal::Type::Enum
25
+
26
+ EMAIL = :email
27
+
28
+ # @!method self.values
29
+ # @return [Array<Symbol>]
30
+ end
31
+ end
32
+ end
33
+ end
@@ -20,7 +20,7 @@ module Privy
20
20
  optional :address, String
21
21
 
22
22
  # @!attribute caip2
23
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
23
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
24
24
  #
25
25
  # @return [String, nil]
26
26
  optional :caip2, String
@@ -54,7 +54,7 @@ module Privy
54
54
  #
55
55
  # @param address [String]
56
56
  #
57
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
57
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
58
58
  #
59
59
  # @param chain_type [Symbol, Privy::Models::EthereumPersonalSignRpcInput::ChainType]
60
60
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSecp256k1SignRpcInputParams < Privy::Internal::Type::BaseModel
6
6
  # @!attribute hash_
7
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
7
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
8
8
  # bytes).
9
9
  #
10
10
  # @return [String]
@@ -16,7 +16,7 @@ module Privy
16
16
  #
17
17
  # Parameters for the EVM `secp256k1_sign` RPC.
18
18
  #
19
- # @param hash_ [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
19
+ # @param hash_ [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
20
20
  end
21
21
  end
22
22
  end
@@ -9,7 +9,7 @@ module Privy
9
9
  required :encoding, enum: -> { Privy::EthereumSecp256k1SignRpcResponseData::Encoding }
10
10
 
11
11
  # @!attribute signature
12
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
12
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
13
13
  # bytes).
14
14
  #
15
15
  # @return [String]
@@ -23,7 +23,7 @@ module Privy
23
23
  #
24
24
  # @param encoding [Symbol, Privy::Models::EthereumSecp256k1SignRpcResponseData::Encoding]
25
25
  #
26
- # @param signature [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
26
+ # @param signature [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
27
27
 
28
28
  # @see Privy::Models::EthereumSecp256k1SignRpcResponseData#encoding
29
29
  module Encoding
@@ -9,7 +9,7 @@ module Privy
9
9
  required :to, String
10
10
 
11
11
  # @!attribute data
12
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
12
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
13
13
  # bytes).
14
14
  #
15
15
  # @return [String, nil]
@@ -30,7 +30,7 @@ module Privy
30
30
  #
31
31
  # @param to [String]
32
32
  #
33
- # @param data [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
33
+ # @param data [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
34
34
  #
35
35
  # @param value [String, Integer] A quantity value that can be either a hex string starting with '0x' or a non-neg
36
36
  end
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendCallsRpcInput < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -31,7 +31,7 @@ module Privy
31
31
  optional :chain_type, enum: -> { Privy::EthereumSendCallsRpcInput::ChainType }
32
32
 
33
33
  # @!attribute experimental_data_suffix
34
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
34
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
35
35
  # bytes).
36
36
  #
37
37
  # @return [String, nil]
@@ -54,7 +54,7 @@ module Privy
54
54
  # Executes the `wallet_sendCalls` RPC (EIP-5792) to batch multiple calls into a
55
55
  # single atomic transaction.
56
56
  #
57
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
57
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
58
58
  #
59
59
  # @param method_ [Symbol, Privy::Models::EthereumSendCallsRpcInput::Method]
60
60
  #
@@ -64,7 +64,7 @@ module Privy
64
64
  #
65
65
  # @param chain_type [Symbol, Privy::Models::EthereumSendCallsRpcInput::ChainType]
66
66
  #
67
- # @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
67
+ # @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
68
68
  #
69
69
  # @param sponsor [Boolean]
70
70
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendCallsRpcResponseData < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -15,9 +15,12 @@ module Privy
15
15
  required :transaction_id, String
16
16
 
17
17
  # @!method initialize(caip2:, transaction_id:)
18
+ # Some parameter documentations has been truncated, see
19
+ # {Privy::Models::EthereumSendCallsRpcResponseData} for more details.
20
+ #
18
21
  # Data returned by the `wallet_sendCalls` RPC.
19
22
  #
20
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
23
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
21
24
  #
22
25
  # @param transaction_id [String]
23
26
  end
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendTransactionRpcInput < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -31,7 +31,7 @@ module Privy
31
31
  optional :chain_type, enum: -> { Privy::EthereumSendTransactionRpcInput::ChainType }
32
32
 
33
33
  # @!attribute experimental_data_suffix
34
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
34
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
35
35
  # bytes).
36
36
  #
37
37
  # @return [String, nil]
@@ -58,7 +58,7 @@ module Privy
58
58
  #
59
59
  # Executes the EVM `eth_sendTransaction` RPC to sign and broadcast a transaction.
60
60
  #
61
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
61
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
62
62
  #
63
63
  # @param method_ [Symbol, Privy::Models::EthereumSendTransactionRpcInput::Method]
64
64
  #
@@ -68,7 +68,7 @@ module Privy
68
68
  #
69
69
  # @param chain_type [Symbol, Privy::Models::EthereumSendTransactionRpcInput::ChainType]
70
70
  #
71
- # @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
71
+ # @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
72
72
  #
73
73
  # @param reference_id [String]
74
74
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendTransactionRpcResponseData < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -42,7 +42,7 @@ module Privy
42
42
  #
43
43
  # Data returned by the EVM `eth_sendTransaction` RPC.
44
44
  #
45
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
45
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
46
46
  #
47
47
  # @param hash_ [String]
48
48
  #
@@ -23,14 +23,14 @@ module Privy
23
23
  required :nonce, union: -> { Privy::Quantity }
24
24
 
25
25
  # @!attribute r
26
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
26
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
27
27
  # bytes).
28
28
  #
29
29
  # @return [String]
30
30
  required :r, String
31
31
 
32
32
  # @!attribute s
33
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
33
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
34
34
  # bytes).
35
35
  #
36
36
  # @return [String]
@@ -54,9 +54,9 @@ module Privy
54
54
  #
55
55
  # @param nonce [String, Integer] A quantity value that can be either a hex string starting with '0x' or a non-neg
56
56
  #
57
- # @param r [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
57
+ # @param r [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
58
58
  #
59
- # @param s [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
59
+ # @param s [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
60
60
  #
61
61
  # @param y_parity [Float]
62
62
  end
@@ -20,7 +20,7 @@ module Privy
20
20
  optional :address, String
21
21
 
22
22
  # @!attribute caip2
23
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
23
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
24
24
  #
25
25
  # @return [String, nil]
26
26
  optional :caip2, String
@@ -55,7 +55,7 @@ module Privy
55
55
  #
56
56
  # @param address [String]
57
57
  #
58
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
58
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
59
59
  #
60
60
  # @param chain_type [Symbol, Privy::Models::EthereumSignTypedDataRpcInput::ChainType]
61
61
  #
@@ -29,7 +29,7 @@ module Privy
29
29
  required :available_liquidity_usd, Float, nil?: true
30
30
 
31
31
  # @!attribute caip2
32
- # Chain identifier (e.g., eip155:8453).
32
+ # Chain identifier (e.g., eip155:4217 for Tempo, eip155:8453 for Base).
33
33
  #
34
34
  # @return [String]
35
35
  required :caip2, String
@@ -79,7 +79,7 @@ module Privy
79
79
  #
80
80
  # @param available_liquidity_usd [Float, nil] Assets available for instant withdrawal in USD.
81
81
  #
82
- # @param caip2 [String] Chain identifier (e.g., eip155:8453).
82
+ # @param caip2 [String] Chain identifier (e.g., eip155:4217 for Tempo, eip155:8453 for Base).
83
83
  #
84
84
  # @param name [String] Human-readable vault name from the yield provider.
85
85
  #
@@ -4,15 +4,19 @@ module Privy
4
4
  module Models
5
5
  class EthereumYieldClaimInput < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
7
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
8
+ # Base).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
11
12
 
12
13
  # @!method initialize(caip2:)
14
+ # Some parameter documentations has been truncated, see
15
+ # {Privy::Models::EthereumYieldClaimInput} for more details.
16
+ #
13
17
  # Input for claiming incentive rewards from vault participation.
14
18
  #
15
- # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
19
+ # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
16
20
  end
17
21
  end
18
22
  end
@@ -10,7 +10,8 @@ module Privy
10
10
  required :id, String
11
11
 
12
12
  # @!attribute caip2
13
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
13
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
14
+ # Base).
14
15
  #
15
16
  # @return [String]
16
17
  required :caip2, String
@@ -40,11 +41,14 @@ module Privy
40
41
  required :updated_at, Float
41
42
 
42
43
  # @!method initialize(id:, caip2:, created_at:, rewards:, status:, updated_at:)
44
+ # Some parameter documentations has been truncated, see
45
+ # {Privy::Models::EthereumYieldClaimResponse} for more details.
46
+ #
43
47
  # Response from a yield reward claim operation.
44
48
  #
45
49
  # @param id [String] Privy transaction record ID for the claim operation.
46
50
  #
47
- # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
51
+ # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
48
52
  #
49
53
  # @param created_at [Float] Unix timestamp of when the claim was created, in milliseconds.
50
54
  #
@@ -17,8 +17,8 @@ module Privy
17
17
  required :asset, String
18
18
 
19
19
  # @!attribute chain
20
- # A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
21
- # Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
20
+ # A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:4217" for
21
+ # Tempo or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
22
22
  #
23
23
  # @return [String]
24
24
  required :chain, String
@@ -33,7 +33,7 @@ module Privy
33
33
  #
34
34
  # @param asset [String] Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
35
35
  #
36
- # @param chain [String] A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for Eth
36
+ # @param chain [String] A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:4217" for
37
37
  end
38
38
  end
39
39
  end
@@ -17,8 +17,11 @@ module Privy
17
17
  # A Passkey MFA method.
18
18
  variant :passkey, -> { Privy::PasskeyMfaMethod }
19
19
 
20
+ # An Email MFA method.
21
+ variant :email, -> { Privy::EmailMfaMethod }
22
+
20
23
  # @!method self.variants
21
- # @return [Array(Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod)]
24
+ # @return [Array(Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod, Privy::Models::EmailMfaMethod)]
22
25
  end
23
26
  end
24
27
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class MfaEmailEnrollRequestBody < Privy::Internal::Type::BaseModel
6
+ # @!attribute code
7
+ #
8
+ # @return [String]
9
+ required :code, String
10
+
11
+ # @!attribute email_address
12
+ #
13
+ # @return [String]
14
+ required :email_address, String
15
+
16
+ # @!method initialize(code:, email_address:)
17
+ # The request body for enrolling an email MFA code.
18
+ #
19
+ # @param code [String]
20
+ # @param email_address [String]
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class MfaEmailInitEnrollInput < Privy::Internal::Type::BaseModel
6
+ # @!attribute action
7
+ #
8
+ # @return [Symbol, Privy::Models::MfaEmailInitEnrollInput::Action]
9
+ required :action, enum: -> { Privy::MfaEmailInitEnrollInput::Action }
10
+
11
+ # @!attribute email_address
12
+ #
13
+ # @return [String]
14
+ required :email_address, String
15
+
16
+ # @!method initialize(action:, email_address:)
17
+ # Input for enrolling email MFA.
18
+ #
19
+ # @param action [Symbol, Privy::Models::MfaEmailInitEnrollInput::Action]
20
+ # @param email_address [String]
21
+
22
+ # @see Privy::Models::MfaEmailInitEnrollInput#action
23
+ module Action
24
+ extend Privy::Internal::Type::Enum
25
+
26
+ ENROLL = :enroll
27
+
28
+ # @!method self.values
29
+ # @return [Array<Symbol>]
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ # The request body for initiating an email MFA flow.
6
+ module MfaEmailInitRequestBody
7
+ extend Privy::Internal::Type::Union
8
+
9
+ # Input for verifying email MFA.
10
+ variant -> { Privy::MfaEmailInitVerifyInput }
11
+
12
+ # Input for enrolling email MFA.
13
+ variant -> { Privy::MfaEmailInitEnrollInput }
14
+
15
+ # @!method self.variants
16
+ # @return [Array(Privy::Models::MfaEmailInitVerifyInput, Privy::Models::MfaEmailInitEnrollInput)]
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class MfaEmailInitVerifyInput < Privy::Internal::Type::BaseModel
6
+ # @!attribute action
7
+ #
8
+ # @return [Symbol, Privy::Models::MfaEmailInitVerifyInput::Action]
9
+ required :action, enum: -> { Privy::MfaEmailInitVerifyInput::Action }
10
+
11
+ # @!method initialize(action:)
12
+ # Input for verifying email MFA.
13
+ #
14
+ # @param action [Symbol, Privy::Models::MfaEmailInitVerifyInput::Action]
15
+
16
+ # @see Privy::Models::MfaEmailInitVerifyInput#action
17
+ module Action
18
+ extend Privy::Internal::Type::Enum
19
+
20
+ VERIFY = :verify
21
+
22
+ # @!method self.values
23
+ # @return [Array<Symbol>]
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Privy
4
+ module Models
5
+ class MfaEmailVerifyRequestBody < Privy::Internal::Type::BaseModel
6
+ # @!attribute code
7
+ #
8
+ # @return [String]
9
+ required :code, String
10
+
11
+ # @!method initialize(code:)
12
+ # The request body for verifying an email MFA code.
13
+ #
14
+ # @param code [String]
15
+ end
16
+ end
17
+ end
@@ -9,6 +9,7 @@ module Privy
9
9
  SMS = :sms
10
10
  TOTP = :totp
11
11
  PASSKEY = :passkey
12
+ EMAIL = :email
12
13
 
13
14
  # @!method self.values
14
15
  # @return [Array<Symbol>]
@@ -4,15 +4,15 @@ module Privy
4
4
  module Models
5
5
  class NamedTokenTransferSource < Privy::Internal::Type::BaseModel
6
6
  # @!attribute asset
7
- # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth'
8
- # (native Ethereum), 'sol' (native Solana).
7
+ # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'pathusd'
8
+ # (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
9
9
  #
10
10
  # @return [String]
11
11
  required :asset, String
12
12
 
13
13
  # @!attribute chain
14
14
  # The blockchain network on which to perform the transfer. Supported chains
15
- # include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
15
+ # include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
16
16
  # respective testnets.
17
17
  #
18
18
  # @return [String]
@@ -36,7 +36,7 @@ module Privy
36
36
  # Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this
37
37
  # variant for first-class assets maintained by Privy.
38
38
  #
39
- # @param asset [String] The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth' (n
39
+ # @param asset [String] The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'pathusd' (stablecoins
40
40
  #
41
41
  # @param chain [String] The blockchain network on which to perform the transfer. Supported chains includ
42
42
  #
@@ -7,7 +7,7 @@ module Privy
7
7
  module Quantity
8
8
  extend Privy::Internal::Type::Union
9
9
 
10
- # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 bytes).
10
+ # A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 bytes).
11
11
  variant -> { Privy::Hex }
12
12
 
13
13
  variant Integer