privy_ruby 0.4.0 → 0.5.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 +10 -0
- data/README.md +1 -1
- data/lib/privy/models/custom_token_transfer_source.rb +14 -13
- data/lib/privy/models/ethereum_yield_provider.rb +1 -0
- data/lib/privy/models/named_token_transfer_source.rb +14 -13
- data/lib/privy/models/unsafe_unwrap_webhook_event.rb +17 -1
- data/lib/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rb +153 -0
- data/lib/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rb +178 -0
- data/lib/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rb +177 -0
- data/lib/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rb +169 -0
- data/lib/privy/models/wallets/earn_fee_collect_action_response.rb +149 -0
- data/lib/privy/models/wallets/earn_fee_collect_request_body.rb +20 -0
- data/lib/privy/models/wallets/ethereum_earn_provider.rb +1 -0
- data/lib/privy/models/wallets/ethereum_earn_vault_details_response.rb +4 -1
- data/lib/privy/models/wallets/list_wallet_actions_response.rb +2 -2
- data/lib/privy/models/wallets/veda_vault_details.rb +122 -0
- data/lib/privy/models/wallets/wallet_action_response.rb +4 -1
- data/lib/privy/models/wallets/wallet_action_type.rb +1 -0
- data/lib/privy/models/webhook_payload.rb +13 -1
- data/lib/privy/models.rb +12 -0
- data/lib/privy/resources/wallets/actions.rb +1 -1
- data/lib/privy/resources/webhooks.rb +1 -1
- data/lib/privy/version.rb +1 -1
- data/lib/privy.rb +7 -0
- data/rbi/privy/models/custom_token_transfer_source.rbi +18 -13
- data/rbi/privy/models/ethereum_yield_provider.rbi +1 -0
- data/rbi/privy/models/named_token_transfer_source.rbi +18 -13
- data/rbi/privy/models/unsafe_unwrap_webhook_event.rbi +4 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rbi +232 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rbi +271 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rbi +269 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rbi +258 -0
- data/rbi/privy/models/wallets/earn_fee_collect_action_response.rbi +236 -0
- data/rbi/privy/models/wallets/earn_fee_collect_request_body.rbi +33 -0
- data/rbi/privy/models/wallets/ethereum_earn_provider.rbi +1 -0
- data/rbi/privy/models/wallets/ethereum_earn_vault_details_response.rbi +2 -1
- data/rbi/privy/models/wallets/list_wallet_actions_response.rbi +6 -3
- data/rbi/privy/models/wallets/veda_vault_details.rbi +157 -0
- data/rbi/privy/models/wallets/wallet_action_response.rbi +2 -1
- data/rbi/privy/models/wallets/wallet_action_type.rbi +5 -0
- data/rbi/privy/models/webhook_payload.rbi +5 -1
- data/rbi/privy/models.rbi +12 -0
- data/rbi/privy/resources/webhooks.rbi +4 -0
- data/sig/privy/models/custom_token_transfer_source.rbs +8 -6
- data/sig/privy/models/ethereum_yield_provider.rbs +2 -1
- data/sig/privy/models/named_token_transfer_source.rbs +7 -5
- data/sig/privy/models/unsafe_unwrap_webhook_event.rbs +4 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rbs +111 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rbs +126 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rbs +126 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rbs +121 -0
- data/sig/privy/models/wallets/earn_fee_collect_action_response.rbs +114 -0
- data/sig/privy/models/wallets/earn_fee_collect_request_body.rbs +15 -0
- data/sig/privy/models/wallets/ethereum_earn_provider.rbs +2 -1
- data/sig/privy/models/wallets/ethereum_earn_vault_details_response.rbs +3 -1
- data/sig/privy/models/wallets/veda_vault_details.rbs +87 -0
- data/sig/privy/models/wallets/wallet_action_response.rbs +1 -0
- data/sig/privy/models/wallets/wallet_action_type.rbs +2 -0
- data/sig/privy/models/webhook_payload.rbs +4 -0
- data/sig/privy/models.rbs +8 -0
- data/sig/privy/resources/webhooks.rbs +4 -0
- metadata +23 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae2f643444a092682a054d66cc2ef71d539ff6a4b6ce1edc826bed962af24d3a
|
|
4
|
+
data.tar.gz: 5765c300f397626f07d21c27c40485a4e8c26e4e6c74c318eb7b87a696875592
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e95ed204ec418306e72ec7d154087ddea6108f38f358fa74cd8b5ed8dd09fc819593c7339bee9e6db111443b56b3a52755f54d7b32cd223ae9161d0ff0864b9d
|
|
7
|
+
data.tar.gz: 492c5fe66e0bb0bb36e54a99ae9d5c6a2a638f1b104c842cc81f066466acf2cb00c0e0c64af69b2705d6cf0a5d1bb01c5aa2b5c0c8d5b0501506fb73c2e359b9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.0 (2026-07-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/privy-io/ruby-sdk/compare/v0.4.0...v0.5.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8a25375](https://github.com/privy-io/ruby-sdk/commit/8a25375fc46294e194c8f9b24dc464f0a0d19b4a))
|
|
10
|
+
* **api:** api update ([b466cdf](https://github.com/privy-io/ruby-sdk/commit/b466cdf42c0287e880ff11809c1efa617527bd8d))
|
|
11
|
+
* **api:** api update ([6ac3d03](https://github.com/privy-io/ruby-sdk/commit/6ac3d039ff6d14791d25737fd4cc7c2f5304c876))
|
|
12
|
+
|
|
3
13
|
## 0.4.0 (2026-07-07)
|
|
4
14
|
|
|
5
15
|
Full Changelog: [v0.3.0...v0.4.0](https://github.com/privy-io/ruby-sdk/compare/v0.3.0...v0.4.0)
|
data/README.md
CHANGED
|
@@ -3,16 +3,6 @@
|
|
|
3
3
|
module Privy
|
|
4
4
|
module Models
|
|
5
5
|
class CustomTokenTransferSource < Privy::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute amount
|
|
7
|
-
# @deprecated
|
|
8
|
-
#
|
|
9
|
-
# Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
|
|
10
|
-
# USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
|
|
11
|
-
# in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :amount, String
|
|
15
|
-
|
|
16
6
|
# @!attribute asset_address
|
|
17
7
|
# The token contract address (EVM) or mint address (Solana) of the asset to
|
|
18
8
|
# transfer.
|
|
@@ -28,18 +18,29 @@ module Privy
|
|
|
28
18
|
# @return [String]
|
|
29
19
|
required :chain, String
|
|
30
20
|
|
|
31
|
-
# @!
|
|
21
|
+
# @!attribute amount
|
|
22
|
+
# @deprecated
|
|
23
|
+
#
|
|
24
|
+
# Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
|
|
25
|
+
# USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
|
|
26
|
+
# in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
|
|
27
|
+
# Deprecated: use the top-level `amount` field instead.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :amount, String
|
|
31
|
+
|
|
32
|
+
# @!method initialize(asset_address:, chain:, amount: nil)
|
|
32
33
|
# Some parameter documentations has been truncated, see
|
|
33
34
|
# {Privy::Models::CustomTokenTransferSource} for more details.
|
|
34
35
|
#
|
|
35
36
|
# Source for a transfer identified by a token contract address (EVM) or mint
|
|
36
37
|
# address (Solana). Use this variant for tokens that are not first-class assets.
|
|
37
38
|
#
|
|
38
|
-
# @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
|
|
39
|
-
#
|
|
40
39
|
# @param asset_address [String] The token contract address (EVM) or mint address (Solana) of the asset to transf
|
|
41
40
|
#
|
|
42
41
|
# @param chain [String] The blockchain network on which to perform the transfer. Supported chains includ
|
|
42
|
+
#
|
|
43
|
+
# @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
|
|
43
44
|
end
|
|
44
45
|
end
|
|
45
46
|
end
|
|
@@ -3,16 +3,6 @@
|
|
|
3
3
|
module Privy
|
|
4
4
|
module Models
|
|
5
5
|
class NamedTokenTransferSource < Privy::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute amount
|
|
7
|
-
# @deprecated
|
|
8
|
-
#
|
|
9
|
-
# Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
|
|
10
|
-
# USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
|
|
11
|
-
# in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :amount, String
|
|
15
|
-
|
|
16
6
|
# @!attribute asset
|
|
17
7
|
# The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth'
|
|
18
8
|
# (native Ethereum), 'sol' (native Solana).
|
|
@@ -28,18 +18,29 @@ module Privy
|
|
|
28
18
|
# @return [String]
|
|
29
19
|
required :chain, String
|
|
30
20
|
|
|
31
|
-
# @!
|
|
21
|
+
# @!attribute amount
|
|
22
|
+
# @deprecated
|
|
23
|
+
#
|
|
24
|
+
# Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
|
|
25
|
+
# USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
|
|
26
|
+
# in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
|
|
27
|
+
# Deprecated: use the top-level `amount` field instead.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :amount, String
|
|
31
|
+
|
|
32
|
+
# @!method initialize(asset:, chain:, amount: nil)
|
|
32
33
|
# Some parameter documentations has been truncated, see
|
|
33
34
|
# {Privy::Models::NamedTokenTransferSource} for more details.
|
|
34
35
|
#
|
|
35
36
|
# Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this
|
|
36
37
|
# variant for first-class assets maintained by Privy.
|
|
37
38
|
#
|
|
38
|
-
# @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
|
|
39
|
-
#
|
|
40
39
|
# @param asset [String] The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth' (n
|
|
41
40
|
#
|
|
42
41
|
# @param chain [String] The blockchain network on which to perform the transfer. Supported chains includ
|
|
42
|
+
#
|
|
43
|
+
# @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
|
|
43
44
|
end
|
|
44
45
|
end
|
|
45
46
|
end
|
|
@@ -109,6 +109,22 @@ module Privy
|
|
|
109
109
|
variant :"wallet_action.earn_deposit.succeeded",
|
|
110
110
|
-> { Privy::WalletActionEarnDepositSucceededWebhookPayload }
|
|
111
111
|
|
|
112
|
+
# Payload for the wallet_action.earn_fee_collect.created webhook event.
|
|
113
|
+
variant :"wallet_action.earn_fee_collect.created",
|
|
114
|
+
-> { Privy::WalletActionEarnFeeCollectCreatedWebhookPayload }
|
|
115
|
+
|
|
116
|
+
# Payload for the wallet_action.earn_fee_collect.failed webhook event.
|
|
117
|
+
variant :"wallet_action.earn_fee_collect.failed",
|
|
118
|
+
-> { Privy::WalletActionEarnFeeCollectFailedWebhookPayload }
|
|
119
|
+
|
|
120
|
+
# Payload for the wallet_action.earn_fee_collect.rejected webhook event.
|
|
121
|
+
variant :"wallet_action.earn_fee_collect.rejected",
|
|
122
|
+
-> { Privy::WalletActionEarnFeeCollectRejectedWebhookPayload }
|
|
123
|
+
|
|
124
|
+
# Payload for the wallet_action.earn_fee_collect.succeeded webhook event.
|
|
125
|
+
variant :"wallet_action.earn_fee_collect.succeeded",
|
|
126
|
+
-> { Privy::WalletActionEarnFeeCollectSucceededWebhookPayload }
|
|
127
|
+
|
|
112
128
|
# Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
113
129
|
variant :"wallet_action.earn_incentive_claim.created",
|
|
114
130
|
-> { Privy::WalletActionEarnIncentiveClaimCreatedWebhookPayload }
|
|
@@ -174,7 +190,7 @@ module Privy
|
|
|
174
190
|
variant :"yield.withdraw.confirmed", -> { Privy::YieldWithdrawConfirmedWebhookPayload }
|
|
175
191
|
|
|
176
192
|
# @!method self.variants
|
|
177
|
-
# @return [Array(Privy::Models::IntentAuthorizedWebhookPayload, Privy::Models::IntentCreatedWebhookPayload, Privy::Models::IntentExecutedWebhookPayload, Privy::Models::IntentFailedWebhookPayload, Privy::Models::IntentRejectedWebhookPayload, Privy::Models::MfaDisabledWebhookPayload, Privy::Models::MfaEnabledWebhookPayload, Privy::Models::TransactionBroadcastedWebhookPayload, Privy::Models::TransactionConfirmedWebhookPayload, Privy::Models::TransactionExecutionRevertedWebhookPayload, Privy::Models::TransactionFailedWebhookPayload, Privy::Models::TransactionProviderErrorWebhookPayload, Privy::Models::TransactionReplacedWebhookPayload, Privy::Models::TransactionStillPendingWebhookPayload, Privy::Models::UserAuthenticatedWebhookPayload, Privy::Models::UserCreatedWebhookPayload, Privy::Models::UserLinkedAccountWebhookPayload, Privy::Models::UserTransferredAccountWebhookPayload, Privy::Models::UserUnlinkedAccountWebhookPayload, Privy::Models::UserUpdatedAccountWebhookPayload, Privy::Models::UserWalletCreatedWebhookPayload, Privy::Models::UserOperationCompletedWebhookPayload, Privy::Models::WalletArchivedWebhookPayload, Privy::Models::FundsDepositedWebhookPayload, Privy::Models::FundsWithdrawnWebhookPayload, Privy::Models::PrivateKeyExportWebhookPayload, Privy::Models::WalletRecoveredWebhookPayload, Privy::Models::WalletRecoverySetupWebhookPayload, Privy::Models::WalletRestoredWebhookPayload, Privy::Models::WalletActionEarnDepositCreatedWebhookPayload, Privy::Models::WalletActionEarnDepositFailedWebhookPayload, Privy::Models::WalletActionEarnDepositRejectedWebhookPayload, Privy::Models::WalletActionEarnDepositSucceededWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimFailedWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimRejectedWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimSucceededWebhookPayload, Privy::Models::WalletActionEarnWithdrawCreatedWebhookPayload, Privy::Models::WalletActionEarnWithdrawFailedWebhookPayload, Privy::Models::WalletActionEarnWithdrawRejectedWebhookPayload, Privy::Models::WalletActionEarnWithdrawSucceededWebhookPayload, Privy::Models::WalletActionSwapCreatedWebhookPayload, Privy::Models::WalletActionSwapFailedWebhookPayload, Privy::Models::WalletActionSwapRejectedWebhookPayload, Privy::Models::WalletActionSwapSucceededWebhookPayload, Privy::Models::WalletActionTransferCreatedWebhookPayload, Privy::Models::WalletActionTransferFailedWebhookPayload, Privy::Models::WalletActionTransferRejectedWebhookPayload, Privy::Models::WalletActionTransferSucceededWebhookPayload, Privy::Models::YieldClaimConfirmedWebhookPayload, Privy::Models::YieldDepositConfirmedWebhookPayload, Privy::Models::YieldWithdrawConfirmedWebhookPayload)]
|
|
193
|
+
# @return [Array(Privy::Models::IntentAuthorizedWebhookPayload, Privy::Models::IntentCreatedWebhookPayload, Privy::Models::IntentExecutedWebhookPayload, Privy::Models::IntentFailedWebhookPayload, Privy::Models::IntentRejectedWebhookPayload, Privy::Models::MfaDisabledWebhookPayload, Privy::Models::MfaEnabledWebhookPayload, Privy::Models::TransactionBroadcastedWebhookPayload, Privy::Models::TransactionConfirmedWebhookPayload, Privy::Models::TransactionExecutionRevertedWebhookPayload, Privy::Models::TransactionFailedWebhookPayload, Privy::Models::TransactionProviderErrorWebhookPayload, Privy::Models::TransactionReplacedWebhookPayload, Privy::Models::TransactionStillPendingWebhookPayload, Privy::Models::UserAuthenticatedWebhookPayload, Privy::Models::UserCreatedWebhookPayload, Privy::Models::UserLinkedAccountWebhookPayload, Privy::Models::UserTransferredAccountWebhookPayload, Privy::Models::UserUnlinkedAccountWebhookPayload, Privy::Models::UserUpdatedAccountWebhookPayload, Privy::Models::UserWalletCreatedWebhookPayload, Privy::Models::UserOperationCompletedWebhookPayload, Privy::Models::WalletArchivedWebhookPayload, Privy::Models::FundsDepositedWebhookPayload, Privy::Models::FundsWithdrawnWebhookPayload, Privy::Models::PrivateKeyExportWebhookPayload, Privy::Models::WalletRecoveredWebhookPayload, Privy::Models::WalletRecoverySetupWebhookPayload, Privy::Models::WalletRestoredWebhookPayload, Privy::Models::WalletActionEarnDepositCreatedWebhookPayload, Privy::Models::WalletActionEarnDepositFailedWebhookPayload, Privy::Models::WalletActionEarnDepositRejectedWebhookPayload, Privy::Models::WalletActionEarnDepositSucceededWebhookPayload, Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload, Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload, Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload, Privy::Models::WalletActionEarnFeeCollectSucceededWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimFailedWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimRejectedWebhookPayload, Privy::Models::WalletActionEarnIncentiveClaimSucceededWebhookPayload, Privy::Models::WalletActionEarnWithdrawCreatedWebhookPayload, Privy::Models::WalletActionEarnWithdrawFailedWebhookPayload, Privy::Models::WalletActionEarnWithdrawRejectedWebhookPayload, Privy::Models::WalletActionEarnWithdrawSucceededWebhookPayload, Privy::Models::WalletActionSwapCreatedWebhookPayload, Privy::Models::WalletActionSwapFailedWebhookPayload, Privy::Models::WalletActionSwapRejectedWebhookPayload, Privy::Models::WalletActionSwapSucceededWebhookPayload, Privy::Models::WalletActionTransferCreatedWebhookPayload, Privy::Models::WalletActionTransferFailedWebhookPayload, Privy::Models::WalletActionTransferRejectedWebhookPayload, Privy::Models::WalletActionTransferSucceededWebhookPayload, Privy::Models::YieldClaimConfirmedWebhookPayload, Privy::Models::YieldDepositConfirmedWebhookPayload, Privy::Models::YieldWithdrawConfirmedWebhookPayload)]
|
|
178
194
|
end
|
|
179
195
|
end
|
|
180
196
|
end
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class WalletActionEarnFeeCollectCreatedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute action_type
|
|
7
|
+
# Type of wallet action
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Privy::Models::Wallets::WalletActionType]
|
|
10
|
+
required :action_type, enum: -> { Privy::Wallets::WalletActionType }
|
|
11
|
+
|
|
12
|
+
# @!attribute asset_address
|
|
13
|
+
# Underlying asset token address.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :asset_address, String
|
|
17
|
+
|
|
18
|
+
# @!attribute caip2
|
|
19
|
+
# CAIP-2 chain identifier.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :caip2, String
|
|
23
|
+
|
|
24
|
+
# @!attribute created_at
|
|
25
|
+
# ISO 8601 timestamp of when the wallet action was created.
|
|
26
|
+
#
|
|
27
|
+
# @return [String]
|
|
28
|
+
required :created_at, String
|
|
29
|
+
|
|
30
|
+
# @!attribute raw_amount
|
|
31
|
+
# Base-unit amount of fees collected (e.g. "1500000").
|
|
32
|
+
#
|
|
33
|
+
# @return [String]
|
|
34
|
+
required :raw_amount, String
|
|
35
|
+
|
|
36
|
+
# @!attribute status
|
|
37
|
+
# The status of the wallet action.
|
|
38
|
+
#
|
|
39
|
+
# @return [Symbol, Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::Status]
|
|
40
|
+
required :status, enum: -> { Privy::WalletActionEarnFeeCollectCreatedWebhookPayload::Status }
|
|
41
|
+
|
|
42
|
+
# @!attribute type
|
|
43
|
+
# The type of webhook event.
|
|
44
|
+
#
|
|
45
|
+
# @return [Symbol, Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::Type]
|
|
46
|
+
required :type, enum: -> { Privy::WalletActionEarnFeeCollectCreatedWebhookPayload::Type }
|
|
47
|
+
|
|
48
|
+
# @!attribute vault_address
|
|
49
|
+
# ERC-4626 vault contract address.
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
required :vault_address, String
|
|
53
|
+
|
|
54
|
+
# @!attribute vault_id
|
|
55
|
+
# The vault ID.
|
|
56
|
+
#
|
|
57
|
+
# @return [String]
|
|
58
|
+
required :vault_id, String
|
|
59
|
+
|
|
60
|
+
# @!attribute wallet_action_id
|
|
61
|
+
# The ID of the wallet action.
|
|
62
|
+
#
|
|
63
|
+
# @return [String]
|
|
64
|
+
required :wallet_action_id, String
|
|
65
|
+
|
|
66
|
+
# @!attribute wallet_id
|
|
67
|
+
# The ID of the wallet involved in the action.
|
|
68
|
+
#
|
|
69
|
+
# @return [String]
|
|
70
|
+
required :wallet_id, String
|
|
71
|
+
|
|
72
|
+
# @!attribute amount
|
|
73
|
+
# Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
74
|
+
# the token is known in the asset registry.
|
|
75
|
+
#
|
|
76
|
+
# @return [String, nil]
|
|
77
|
+
optional :amount, String
|
|
78
|
+
|
|
79
|
+
# @!attribute asset
|
|
80
|
+
# Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
81
|
+
# the asset registry.
|
|
82
|
+
#
|
|
83
|
+
# @return [String, nil]
|
|
84
|
+
optional :asset, String
|
|
85
|
+
|
|
86
|
+
# @!attribute decimals
|
|
87
|
+
# Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
88
|
+
# present when the token is known in the asset registry.
|
|
89
|
+
#
|
|
90
|
+
# @return [Integer, nil]
|
|
91
|
+
optional :decimals, Integer
|
|
92
|
+
|
|
93
|
+
# @!method initialize(action_type:, asset_address:, caip2:, created_at:, raw_amount:, status:, type:, vault_address:, vault_id:, wallet_action_id:, wallet_id:, amount: nil, asset: nil, decimals: nil)
|
|
94
|
+
# Some parameter documentations has been truncated, see
|
|
95
|
+
# {Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload} for more
|
|
96
|
+
# details.
|
|
97
|
+
#
|
|
98
|
+
# Payload for the wallet_action.earn_fee_collect.created webhook event.
|
|
99
|
+
#
|
|
100
|
+
# @param action_type [Symbol, Privy::Models::Wallets::WalletActionType] Type of wallet action
|
|
101
|
+
#
|
|
102
|
+
# @param asset_address [String] Underlying asset token address.
|
|
103
|
+
#
|
|
104
|
+
# @param caip2 [String] CAIP-2 chain identifier.
|
|
105
|
+
#
|
|
106
|
+
# @param created_at [String] ISO 8601 timestamp of when the wallet action was created.
|
|
107
|
+
#
|
|
108
|
+
# @param raw_amount [String] Base-unit amount of fees collected (e.g. "1500000").
|
|
109
|
+
#
|
|
110
|
+
# @param status [Symbol, Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::Status] The status of the wallet action.
|
|
111
|
+
#
|
|
112
|
+
# @param type [Symbol, Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::Type] The type of webhook event.
|
|
113
|
+
#
|
|
114
|
+
# @param vault_address [String] ERC-4626 vault contract address.
|
|
115
|
+
#
|
|
116
|
+
# @param vault_id [String] The vault ID.
|
|
117
|
+
#
|
|
118
|
+
# @param wallet_action_id [String] The ID of the wallet action.
|
|
119
|
+
#
|
|
120
|
+
# @param wallet_id [String] The ID of the wallet involved in the action.
|
|
121
|
+
#
|
|
122
|
+
# @param amount [String] Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
123
|
+
#
|
|
124
|
+
# @param asset [String] Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in t
|
|
125
|
+
#
|
|
126
|
+
# @param decimals [Integer] Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
127
|
+
|
|
128
|
+
# The status of the wallet action.
|
|
129
|
+
#
|
|
130
|
+
# @see Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload#status
|
|
131
|
+
module Status
|
|
132
|
+
extend Privy::Internal::Type::Enum
|
|
133
|
+
|
|
134
|
+
PENDING = :pending
|
|
135
|
+
|
|
136
|
+
# @!method self.values
|
|
137
|
+
# @return [Array<Symbol>]
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# The type of webhook event.
|
|
141
|
+
#
|
|
142
|
+
# @see Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload#type
|
|
143
|
+
module Type
|
|
144
|
+
extend Privy::Internal::Type::Enum
|
|
145
|
+
|
|
146
|
+
WALLET_ACTION_EARN_FEE_COLLECT_CREATED = :"wallet_action.earn_fee_collect.created"
|
|
147
|
+
|
|
148
|
+
# @!method self.values
|
|
149
|
+
# @return [Array<Symbol>]
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class WalletActionEarnFeeCollectFailedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute action_type
|
|
7
|
+
# Type of wallet action
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Privy::Models::Wallets::WalletActionType]
|
|
10
|
+
required :action_type, enum: -> { Privy::Wallets::WalletActionType }
|
|
11
|
+
|
|
12
|
+
# @!attribute asset_address
|
|
13
|
+
# Underlying asset token address.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :asset_address, String
|
|
17
|
+
|
|
18
|
+
# @!attribute caip2
|
|
19
|
+
# CAIP-2 chain identifier.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :caip2, String
|
|
23
|
+
|
|
24
|
+
# @!attribute created_at
|
|
25
|
+
# ISO 8601 timestamp of when the wallet action was created.
|
|
26
|
+
#
|
|
27
|
+
# @return [String]
|
|
28
|
+
required :created_at, String
|
|
29
|
+
|
|
30
|
+
# @!attribute failed_at
|
|
31
|
+
# ISO 8601 timestamp of when the wallet action failed.
|
|
32
|
+
#
|
|
33
|
+
# @return [String]
|
|
34
|
+
required :failed_at, String
|
|
35
|
+
|
|
36
|
+
# @!attribute failure_reason
|
|
37
|
+
# A description of why a wallet action (or a step within a wallet action) failed.
|
|
38
|
+
#
|
|
39
|
+
# @return [Privy::Models::Wallets::FailureReason]
|
|
40
|
+
required :failure_reason, -> { Privy::Wallets::FailureReason }
|
|
41
|
+
|
|
42
|
+
# @!attribute raw_amount
|
|
43
|
+
# Base-unit amount of fees collected (e.g. "1500000").
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :raw_amount, String
|
|
47
|
+
|
|
48
|
+
# @!attribute status
|
|
49
|
+
# The status of the wallet action.
|
|
50
|
+
#
|
|
51
|
+
# @return [Symbol, Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::Status]
|
|
52
|
+
required :status, enum: -> { Privy::WalletActionEarnFeeCollectFailedWebhookPayload::Status }
|
|
53
|
+
|
|
54
|
+
# @!attribute steps
|
|
55
|
+
# The steps of the wallet action. Completed steps will have transaction hashes;
|
|
56
|
+
# the failing step will have a failure_reason.
|
|
57
|
+
#
|
|
58
|
+
# @return [Array<Privy::Models::Wallets::EvmTransactionWalletActionStep, Privy::Models::Wallets::EvmUserOperationWalletActionStep, Privy::Models::Wallets::SvmTransactionWalletActionStep, Privy::Models::Wallets::TvmTransactionWalletActionStep, Privy::Models::Wallets::ExternalTransactionWalletActionStep, Privy::Models::Wallets::CustodianTransactionWalletActionStep>]
|
|
59
|
+
required :steps, -> { Privy::Internal::Type::ArrayOf[union: Privy::Wallets::WalletActionStep] }
|
|
60
|
+
|
|
61
|
+
# @!attribute type
|
|
62
|
+
# The type of webhook event.
|
|
63
|
+
#
|
|
64
|
+
# @return [Symbol, Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::Type]
|
|
65
|
+
required :type, enum: -> { Privy::WalletActionEarnFeeCollectFailedWebhookPayload::Type }
|
|
66
|
+
|
|
67
|
+
# @!attribute vault_address
|
|
68
|
+
# ERC-4626 vault contract address.
|
|
69
|
+
#
|
|
70
|
+
# @return [String]
|
|
71
|
+
required :vault_address, String
|
|
72
|
+
|
|
73
|
+
# @!attribute vault_id
|
|
74
|
+
# The vault ID.
|
|
75
|
+
#
|
|
76
|
+
# @return [String]
|
|
77
|
+
required :vault_id, String
|
|
78
|
+
|
|
79
|
+
# @!attribute wallet_action_id
|
|
80
|
+
# The ID of the wallet action.
|
|
81
|
+
#
|
|
82
|
+
# @return [String]
|
|
83
|
+
required :wallet_action_id, String
|
|
84
|
+
|
|
85
|
+
# @!attribute wallet_id
|
|
86
|
+
# The ID of the wallet involved in the action.
|
|
87
|
+
#
|
|
88
|
+
# @return [String]
|
|
89
|
+
required :wallet_id, String
|
|
90
|
+
|
|
91
|
+
# @!attribute amount
|
|
92
|
+
# Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
93
|
+
# the token is known in the asset registry.
|
|
94
|
+
#
|
|
95
|
+
# @return [String, nil]
|
|
96
|
+
optional :amount, String
|
|
97
|
+
|
|
98
|
+
# @!attribute asset
|
|
99
|
+
# Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
100
|
+
# the asset registry.
|
|
101
|
+
#
|
|
102
|
+
# @return [String, nil]
|
|
103
|
+
optional :asset, String
|
|
104
|
+
|
|
105
|
+
# @!attribute decimals
|
|
106
|
+
# Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
107
|
+
# present when the token is known in the asset registry.
|
|
108
|
+
#
|
|
109
|
+
# @return [Integer, nil]
|
|
110
|
+
optional :decimals, Integer
|
|
111
|
+
|
|
112
|
+
# @!method initialize(action_type:, asset_address:, caip2:, created_at:, failed_at:, failure_reason:, raw_amount:, status:, steps:, type:, vault_address:, vault_id:, wallet_action_id:, wallet_id:, amount: nil, asset: nil, decimals: nil)
|
|
113
|
+
# Some parameter documentations has been truncated, see
|
|
114
|
+
# {Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload} for more
|
|
115
|
+
# details.
|
|
116
|
+
#
|
|
117
|
+
# Payload for the wallet_action.earn_fee_collect.failed webhook event.
|
|
118
|
+
#
|
|
119
|
+
# @param action_type [Symbol, Privy::Models::Wallets::WalletActionType] Type of wallet action
|
|
120
|
+
#
|
|
121
|
+
# @param asset_address [String] Underlying asset token address.
|
|
122
|
+
#
|
|
123
|
+
# @param caip2 [String] CAIP-2 chain identifier.
|
|
124
|
+
#
|
|
125
|
+
# @param created_at [String] ISO 8601 timestamp of when the wallet action was created.
|
|
126
|
+
#
|
|
127
|
+
# @param failed_at [String] ISO 8601 timestamp of when the wallet action failed.
|
|
128
|
+
#
|
|
129
|
+
# @param failure_reason [Privy::Models::Wallets::FailureReason] A description of why a wallet action (or a step within a wallet action) failed.
|
|
130
|
+
#
|
|
131
|
+
# @param raw_amount [String] Base-unit amount of fees collected (e.g. "1500000").
|
|
132
|
+
#
|
|
133
|
+
# @param status [Symbol, Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::Status] The status of the wallet action.
|
|
134
|
+
#
|
|
135
|
+
# @param steps [Array<Privy::Models::Wallets::EvmTransactionWalletActionStep, Privy::Models::Wallets::EvmUserOperationWalletActionStep, Privy::Models::Wallets::SvmTransactionWalletActionStep, Privy::Models::Wallets::TvmTransactionWalletActionStep, Privy::Models::Wallets::ExternalTransactionWalletActionStep, Privy::Models::Wallets::CustodianTransactionWalletActionStep>] The steps of the wallet action. Completed steps will have transaction hashes; th
|
|
136
|
+
#
|
|
137
|
+
# @param type [Symbol, Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::Type] The type of webhook event.
|
|
138
|
+
#
|
|
139
|
+
# @param vault_address [String] ERC-4626 vault contract address.
|
|
140
|
+
#
|
|
141
|
+
# @param vault_id [String] The vault ID.
|
|
142
|
+
#
|
|
143
|
+
# @param wallet_action_id [String] The ID of the wallet action.
|
|
144
|
+
#
|
|
145
|
+
# @param wallet_id [String] The ID of the wallet involved in the action.
|
|
146
|
+
#
|
|
147
|
+
# @param amount [String] Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
148
|
+
#
|
|
149
|
+
# @param asset [String] Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in t
|
|
150
|
+
#
|
|
151
|
+
# @param decimals [Integer] Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
152
|
+
|
|
153
|
+
# The status of the wallet action.
|
|
154
|
+
#
|
|
155
|
+
# @see Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload#status
|
|
156
|
+
module Status
|
|
157
|
+
extend Privy::Internal::Type::Enum
|
|
158
|
+
|
|
159
|
+
FAILED = :failed
|
|
160
|
+
|
|
161
|
+
# @!method self.values
|
|
162
|
+
# @return [Array<Symbol>]
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# The type of webhook event.
|
|
166
|
+
#
|
|
167
|
+
# @see Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload#type
|
|
168
|
+
module Type
|
|
169
|
+
extend Privy::Internal::Type::Enum
|
|
170
|
+
|
|
171
|
+
WALLET_ACTION_EARN_FEE_COLLECT_FAILED = :"wallet_action.earn_fee_collect.failed"
|
|
172
|
+
|
|
173
|
+
# @!method self.values
|
|
174
|
+
# @return [Array<Symbol>]
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|