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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +1 -1
- data/lib/privy/base58.rb +41 -0
- data/lib/privy/client.rb +8 -0
- data/lib/privy/cryptography.rb +34 -0
- data/lib/privy/models/create_link_auth_intent_input.rb +17 -0
- data/lib/privy/models/create_link_auth_intent_response.rb +36 -0
- data/lib/privy/models/create_stripe_onramp_session_input.rb +33 -0
- data/lib/privy/models/create_stripe_onramp_session_response.rb +23 -0
- data/lib/privy/models/device_authorization_response.rb +63 -0
- data/lib/privy/models/earn_incentive_reward_entry.rb +50 -0
- data/lib/privy/models/earn_incentive_rewards_query.rb +18 -0
- data/lib/privy/models/earn_incentive_rewards_response.rb +19 -0
- data/lib/privy/models/exchange_stripe_tokens_input.rb +23 -0
- data/lib/privy/models/exchange_stripe_tokens_response.rb +17 -0
- data/lib/privy/models/fiat_onramp_provider.rb +2 -0
- data/lib/privy/models/fiat_onramp_stripe_sdk_session_response.rb +45 -0
- data/lib/privy/models/fiat_onramp_url_session_response.rb +39 -0
- data/lib/privy/models/get_fiat_onramp_url_response.rb +12 -14
- data/lib/privy/models/get_stripe_crypto_customer_response.rb +39 -0
- data/lib/privy/models/kraken_embed_custom_order_cancelled_webhook_payload.rb +66 -0
- data/lib/privy/models/kraken_embed_custom_order_executed_webhook_payload.rb +54 -0
- data/lib/privy/models/kraken_embed_custom_order_execution_failed_webhook_payload.rb +67 -0
- data/lib/privy/models/link_auth_intent_created.rb +35 -0
- data/lib/privy/models/link_auth_intent_no_account.rb +27 -0
- data/lib/privy/models/list_stripe_consumer_wallets_response.rb +17 -0
- data/lib/privy/models/list_stripe_payment_tokens_response.rb +17 -0
- data/lib/privy/models/onramp_session_params.rb +61 -0
- data/lib/privy/models/refresh_stripe_quote_response.rb +18 -0
- data/lib/privy/models/rule_delete_intent_response.rb +63 -0
- data/lib/privy/models/rule_intent_response.rb +0 -1
- data/lib/privy/models/rule_mutate_intent_response.rb +64 -0
- data/lib/privy/models/stripe_consumer_wallet.rb +29 -0
- data/lib/privy/models/stripe_crypto_customer_active.rb +39 -0
- data/lib/privy/models/stripe_crypto_customer_expired.rb +33 -0
- data/lib/privy/models/stripe_crypto_customer_none.rb +27 -0
- data/lib/privy/models/stripe_onramp_checkout_response.rb +25 -0
- data/lib/privy/models/stripe_onramp_session_status.rb +17 -0
- data/lib/privy/models/stripe_payment_token.rb +23 -0
- data/lib/privy/models/stripe_quote.rb +17 -0
- data/lib/privy/models/stripe_transaction_details.rb +17 -0
- data/lib/privy/models/stripe_verification.rb +23 -0
- data/lib/privy/models/swap_action_response.rb +9 -1
- data/lib/privy/models/swap_destination.rb +13 -4
- data/lib/privy/models/swap_quote_destination.rb +15 -4
- data/lib/privy/models/swap_quote_request_body.rb +9 -1
- data/lib/privy/models/swap_quote_response.rb +25 -1
- data/lib/privy/models/swap_request_body.rb +9 -1
- data/lib/privy/models/wallets/swap_execute_params.rb +45 -0
- data/lib/privy/models/wallets/swap_quote_params.rb +36 -0
- data/lib/privy/models.rb +71 -4
- data/lib/privy/public_api/privy_client.rb +2 -1
- data/lib/privy/public_api/services/earn/ethereum/incentive.rb +61 -0
- data/lib/privy/public_api/services/earn/ethereum.rb +131 -0
- data/lib/privy/public_api/services/earn.rb +18 -0
- data/lib/privy/public_api/services/key_quorums.rb +7 -1
- data/lib/privy/public_api/services/policies.rb +21 -3
- data/lib/privy/public_api/services/transactions.rb +14 -0
- data/lib/privy/public_api/services/wallets.rb +153 -1
- data/lib/privy/resources/intents.rb +6 -6
- data/lib/privy/resources/oauth.rb +14 -0
- data/lib/privy/resources/onramps.rb +14 -0
- data/lib/privy/resources/wallets/swap.rb +105 -0
- data/lib/privy/resources/wallets.rb +10 -2
- data/lib/privy/version.rb +1 -1
- data/lib/privy/wallet_entropy.rb +60 -0
- data/lib/privy.rb +47 -4
- data/rbi/privy/client.rbi +6 -0
- data/rbi/privy/models/create_link_auth_intent_input.rbi +27 -0
- data/rbi/privy/models/create_link_auth_intent_response.rbi +68 -0
- data/rbi/privy/models/create_stripe_onramp_session_input.rbi +55 -0
- data/rbi/privy/models/create_stripe_onramp_session_response.rbi +30 -0
- data/rbi/privy/models/device_authorization_response.rbi +81 -0
- data/rbi/privy/models/earn_incentive_reward_entry.rbi +73 -0
- data/rbi/privy/models/earn_incentive_rewards_query.rbi +28 -0
- data/rbi/privy/models/earn_incentive_rewards_response.rbi +35 -0
- data/rbi/privy/models/exchange_stripe_tokens_input.rbi +33 -0
- data/rbi/privy/models/exchange_stripe_tokens_response.rbi +24 -0
- data/rbi/privy/models/fiat_onramp_provider.rbi +3 -0
- data/rbi/privy/models/fiat_onramp_stripe_sdk_session_response.rbi +78 -0
- data/rbi/privy/models/fiat_onramp_url_session_response.rbi +65 -0
- data/rbi/privy/models/get_fiat_onramp_url_response.rbi +12 -15
- data/rbi/privy/models/get_stripe_crypto_customer_response.rbi +81 -0
- data/rbi/privy/models/kraken_embed_custom_order_cancelled_webhook_payload.rbi +111 -0
- data/rbi/privy/models/kraken_embed_custom_order_executed_webhook_payload.rbi +101 -0
- data/rbi/privy/models/kraken_embed_custom_order_execution_failed_webhook_payload.rbi +111 -0
- data/rbi/privy/models/link_auth_intent_created.rbi +60 -0
- data/rbi/privy/models/link_auth_intent_no_account.rbi +54 -0
- data/rbi/privy/models/list_stripe_consumer_wallets_response.rbi +31 -0
- data/rbi/privy/models/list_stripe_payment_tokens_response.rbi +31 -0
- data/rbi/privy/models/onramp_session_params.rbi +76 -0
- data/rbi/privy/models/refresh_stripe_quote_response.rbi +33 -0
- data/rbi/privy/models/rule_delete_intent_response.rbi +113 -0
- data/rbi/privy/models/rule_mutate_intent_response.rbi +113 -0
- data/rbi/privy/models/stripe_consumer_wallet.rbi +38 -0
- data/rbi/privy/models/stripe_crypto_customer_active.rbi +68 -0
- data/rbi/privy/models/stripe_crypto_customer_expired.rbi +63 -0
- data/rbi/privy/models/stripe_crypto_customer_none.rbi +53 -0
- data/rbi/privy/models/stripe_onramp_checkout_response.rbi +51 -0
- data/rbi/privy/models/stripe_onramp_session_status.rbi +26 -0
- data/rbi/privy/models/stripe_payment_token.rbi +27 -0
- data/rbi/privy/models/stripe_quote.rbi +22 -0
- data/rbi/privy/models/stripe_transaction_details.rbi +24 -0
- data/rbi/privy/models/stripe_verification.rbi +27 -0
- data/rbi/privy/models/swap_action_response.rbi +17 -27
- data/rbi/privy/models/swap_destination.rbi +26 -7
- data/rbi/privy/models/swap_quote_destination.rbi +30 -7
- data/rbi/privy/models/swap_quote_request_body.rbi +11 -0
- data/rbi/privy/models/swap_quote_response.rbi +54 -3
- data/rbi/privy/models/swap_request_body.rbi +11 -0
- data/rbi/privy/models/wallets/swap_execute_params.rbi +71 -0
- data/rbi/privy/models/wallets/swap_quote_params.rbi +58 -0
- data/rbi/privy/models.rbi +76 -5
- data/rbi/privy/resources/intents.rbi +3 -3
- data/rbi/privy/resources/oauth.rbi +12 -0
- data/rbi/privy/resources/onramps.rbi +12 -0
- data/rbi/privy/resources/wallets/swap.rbi +94 -0
- data/rbi/privy/resources/wallets.rbi +9 -2
- data/sig/privy/client.rbs +4 -0
- data/sig/privy/models/create_link_auth_intent_input.rbs +15 -0
- data/sig/privy/models/create_link_auth_intent_response.rbs +26 -0
- data/sig/privy/models/create_stripe_onramp_session_input.rbs +30 -0
- data/sig/privy/models/create_stripe_onramp_session_response.rbs +16 -0
- data/sig/privy/models/device_authorization_response.rbs +45 -0
- data/sig/privy/models/earn_incentive_reward_entry.rbs +42 -0
- data/sig/privy/models/earn_incentive_rewards_query.rbs +13 -0
- data/sig/privy/models/earn_incentive_rewards_response.rbs +16 -0
- data/sig/privy/models/exchange_stripe_tokens_input.rbs +19 -0
- data/sig/privy/models/exchange_stripe_tokens_response.rbs +13 -0
- data/sig/privy/models/fiat_onramp_provider.rbs +4 -0
- data/sig/privy/models/fiat_onramp_stripe_sdk_session_response.rbs +45 -0
- data/sig/privy/models/fiat_onramp_url_session_response.rbs +40 -0
- data/sig/privy/models/get_fiat_onramp_url_response.rbs +6 -8
- data/sig/privy/models/get_stripe_crypto_customer_response.rbs +29 -0
- data/sig/privy/models/kraken_embed_custom_order_cancelled_webhook_payload.rbs +50 -0
- data/sig/privy/models/kraken_embed_custom_order_executed_webhook_payload.rbs +45 -0
- data/sig/privy/models/kraken_embed_custom_order_execution_failed_webhook_payload.rbs +50 -0
- data/sig/privy/models/link_auth_intent_created.rbs +32 -0
- data/sig/privy/models/link_auth_intent_no_account.rbs +26 -0
- data/sig/privy/models/list_stripe_consumer_wallets_response.rbs +14 -0
- data/sig/privy/models/list_stripe_payment_tokens_response.rbs +14 -0
- data/sig/privy/models/onramp_session_params.rbs +50 -0
- data/sig/privy/models/refresh_stripe_quote_response.rbs +13 -0
- data/sig/privy/models/rule_delete_intent_response.rbs +66 -0
- data/sig/privy/models/rule_mutate_intent_response.rbs +66 -0
- data/sig/privy/models/stripe_consumer_wallet.rbs +22 -0
- data/sig/privy/models/stripe_crypto_customer_active.rbs +40 -0
- data/sig/privy/models/stripe_crypto_customer_expired.rbs +35 -0
- data/sig/privy/models/stripe_crypto_customer_none.rbs +28 -0
- data/sig/privy/models/stripe_onramp_checkout_response.rbs +29 -0
- data/sig/privy/models/stripe_onramp_session_status.rbs +15 -0
- data/sig/privy/models/stripe_payment_token.rbs +15 -0
- data/sig/privy/models/stripe_quote.rbs +13 -0
- data/sig/privy/models/stripe_transaction_details.rbs +13 -0
- data/sig/privy/models/stripe_verification.rbs +15 -0
- data/sig/privy/models/swap_action_response.rbs +7 -0
- data/sig/privy/models/swap_destination.rbs +16 -3
- data/sig/privy/models/swap_quote_destination.rbs +16 -3
- data/sig/privy/models/swap_quote_request_body.rbs +9 -0
- data/sig/privy/models/swap_quote_response.rbs +26 -3
- data/sig/privy/models/swap_request_body.rbs +9 -0
- data/sig/privy/models/wallets/swap_execute_params.rbs +44 -0
- data/sig/privy/models/wallets/swap_quote_params.rbs +34 -0
- data/sig/privy/models.rbs +69 -5
- data/sig/privy/resources/intents.rbs +3 -3
- data/sig/privy/resources/oauth.rbs +7 -0
- data/sig/privy/resources/onramps.rbs +7 -0
- data/sig/privy/resources/wallets/swap.rbs +34 -0
- data/sig/privy/resources/wallets.rbs +2 -0
- metadata +125 -8
- data/lib/privy/models/gas_sponsorship_configuration.rb +0 -29
- data/lib/privy/models/gas_sponsorship_configuration_input.rb +0 -29
- data/rbi/privy/models/gas_sponsorship_configuration.rbi +0 -48
- data/rbi/privy/models/gas_sponsorship_configuration_input.rbi +0 -60
- data/sig/privy/models/gas_sponsorship_configuration.rbs +0 -30
- data/sig/privy/models/gas_sponsorship_configuration_input.rbs +0 -36
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class KrakenEmbedCustomOrderCancelledWebhookPayload < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute cancelled_at
|
|
7
|
+
# ISO 8601 timestamp of when the custom order was cancelled.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :cancelled_at, String
|
|
11
|
+
|
|
12
|
+
# @!attribute custom_order_id
|
|
13
|
+
# The ID of the cancelled custom order.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :custom_order_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute reason
|
|
19
|
+
# A human-readable description of why the custom order was cancelled. Intended for
|
|
20
|
+
# display and logging purposes only.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :reason, String
|
|
24
|
+
|
|
25
|
+
# @!attribute type
|
|
26
|
+
# The type of webhook event.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Privy::Models::KrakenEmbedCustomOrderCancelledWebhookPayload::Type]
|
|
29
|
+
required :type, enum: -> { Privy::KrakenEmbedCustomOrderCancelledWebhookPayload::Type }
|
|
30
|
+
|
|
31
|
+
# @!attribute user_id
|
|
32
|
+
# The ID of the user.
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
required :user_id, String
|
|
36
|
+
|
|
37
|
+
# @!method initialize(cancelled_at:, custom_order_id:, reason:, type:, user_id:)
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Privy::Models::KrakenEmbedCustomOrderCancelledWebhookPayload} for more details.
|
|
40
|
+
#
|
|
41
|
+
# Payload for the kraken_embed.custom_order.cancelled webhook event.
|
|
42
|
+
#
|
|
43
|
+
# @param cancelled_at [String] ISO 8601 timestamp of when the custom order was cancelled.
|
|
44
|
+
#
|
|
45
|
+
# @param custom_order_id [String] The ID of the cancelled custom order.
|
|
46
|
+
#
|
|
47
|
+
# @param reason [String] A human-readable description of why the custom order was cancelled. Intended for
|
|
48
|
+
#
|
|
49
|
+
# @param type [Symbol, Privy::Models::KrakenEmbedCustomOrderCancelledWebhookPayload::Type] The type of webhook event.
|
|
50
|
+
#
|
|
51
|
+
# @param user_id [String] The ID of the user.
|
|
52
|
+
|
|
53
|
+
# The type of webhook event.
|
|
54
|
+
#
|
|
55
|
+
# @see Privy::Models::KrakenEmbedCustomOrderCancelledWebhookPayload#type
|
|
56
|
+
module Type
|
|
57
|
+
extend Privy::Internal::Type::Enum
|
|
58
|
+
|
|
59
|
+
KRAKEN_EMBED_CUSTOM_ORDER_CANCELLED = :"kraken_embed.custom_order.cancelled"
|
|
60
|
+
|
|
61
|
+
# @!method self.values
|
|
62
|
+
# @return [Array<Symbol>]
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class KrakenEmbedCustomOrderExecutedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute custom_order_id
|
|
7
|
+
# The ID of the executed custom order.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :custom_order_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute executed_at
|
|
13
|
+
# ISO 8601 timestamp of when the custom order was executed.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :executed_at, String
|
|
17
|
+
|
|
18
|
+
# @!attribute type
|
|
19
|
+
# The type of webhook event.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Privy::Models::KrakenEmbedCustomOrderExecutedWebhookPayload::Type]
|
|
22
|
+
required :type, enum: -> { Privy::KrakenEmbedCustomOrderExecutedWebhookPayload::Type }
|
|
23
|
+
|
|
24
|
+
# @!attribute user_id
|
|
25
|
+
# The ID of the user.
|
|
26
|
+
#
|
|
27
|
+
# @return [String]
|
|
28
|
+
required :user_id, String
|
|
29
|
+
|
|
30
|
+
# @!method initialize(custom_order_id:, executed_at:, type:, user_id:)
|
|
31
|
+
# Payload for the kraken_embed.custom_order.executed webhook event.
|
|
32
|
+
#
|
|
33
|
+
# @param custom_order_id [String] The ID of the executed custom order.
|
|
34
|
+
#
|
|
35
|
+
# @param executed_at [String] ISO 8601 timestamp of when the custom order was executed.
|
|
36
|
+
#
|
|
37
|
+
# @param type [Symbol, Privy::Models::KrakenEmbedCustomOrderExecutedWebhookPayload::Type] The type of webhook event.
|
|
38
|
+
#
|
|
39
|
+
# @param user_id [String] The ID of the user.
|
|
40
|
+
|
|
41
|
+
# The type of webhook event.
|
|
42
|
+
#
|
|
43
|
+
# @see Privy::Models::KrakenEmbedCustomOrderExecutedWebhookPayload#type
|
|
44
|
+
module Type
|
|
45
|
+
extend Privy::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
KRAKEN_EMBED_CUSTOM_ORDER_EXECUTED = :"kraken_embed.custom_order.executed"
|
|
48
|
+
|
|
49
|
+
# @!method self.values
|
|
50
|
+
# @return [Array<Symbol>]
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class KrakenEmbedCustomOrderExecutionFailedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute custom_order_id
|
|
7
|
+
# The ID of the custom order that failed to execute.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :custom_order_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute failed_at
|
|
13
|
+
# ISO 8601 timestamp of when the custom order execution failed.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :failed_at, String
|
|
17
|
+
|
|
18
|
+
# @!attribute reason
|
|
19
|
+
# A human-readable description of why the custom order execution failed. Intended
|
|
20
|
+
# for display and logging purposes only.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :reason, String
|
|
24
|
+
|
|
25
|
+
# @!attribute type
|
|
26
|
+
# The type of webhook event.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Privy::Models::KrakenEmbedCustomOrderExecutionFailedWebhookPayload::Type]
|
|
29
|
+
required :type, enum: -> { Privy::KrakenEmbedCustomOrderExecutionFailedWebhookPayload::Type }
|
|
30
|
+
|
|
31
|
+
# @!attribute user_id
|
|
32
|
+
# The ID of the user.
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
required :user_id, String
|
|
36
|
+
|
|
37
|
+
# @!method initialize(custom_order_id:, failed_at:, reason:, type:, user_id:)
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Privy::Models::KrakenEmbedCustomOrderExecutionFailedWebhookPayload} for more
|
|
40
|
+
# details.
|
|
41
|
+
#
|
|
42
|
+
# Payload for the kraken_embed.custom_order.execution_failed webhook event.
|
|
43
|
+
#
|
|
44
|
+
# @param custom_order_id [String] The ID of the custom order that failed to execute.
|
|
45
|
+
#
|
|
46
|
+
# @param failed_at [String] ISO 8601 timestamp of when the custom order execution failed.
|
|
47
|
+
#
|
|
48
|
+
# @param reason [String] A human-readable description of why the custom order execution failed. Intended
|
|
49
|
+
#
|
|
50
|
+
# @param type [Symbol, Privy::Models::KrakenEmbedCustomOrderExecutionFailedWebhookPayload::Type] The type of webhook event.
|
|
51
|
+
#
|
|
52
|
+
# @param user_id [String] The ID of the user.
|
|
53
|
+
|
|
54
|
+
# The type of webhook event.
|
|
55
|
+
#
|
|
56
|
+
# @see Privy::Models::KrakenEmbedCustomOrderExecutionFailedWebhookPayload#type
|
|
57
|
+
module Type
|
|
58
|
+
extend Privy::Internal::Type::Enum
|
|
59
|
+
|
|
60
|
+
KRAKEN_EMBED_CUSTOM_ORDER_EXECUTION_FAILED = :"kraken_embed.custom_order.execution_failed"
|
|
61
|
+
|
|
62
|
+
# @!method self.values
|
|
63
|
+
# @return [Array<Symbol>]
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class LinkAuthIntentCreated < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The Link auth intent ID.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute status
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Privy::Models::LinkAuthIntentCreated::Status]
|
|
15
|
+
required :status, enum: -> { Privy::LinkAuthIntentCreated::Status }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(id:, status:)
|
|
18
|
+
# Auth intent created. Pass id to authenticate().
|
|
19
|
+
#
|
|
20
|
+
# @param id [String] The Link auth intent ID.
|
|
21
|
+
#
|
|
22
|
+
# @param status [Symbol, Privy::Models::LinkAuthIntentCreated::Status]
|
|
23
|
+
|
|
24
|
+
# @see Privy::Models::LinkAuthIntentCreated#status
|
|
25
|
+
module Status
|
|
26
|
+
extend Privy::Internal::Type::Enum
|
|
27
|
+
|
|
28
|
+
CREATED = :created
|
|
29
|
+
|
|
30
|
+
# @!method self.values
|
|
31
|
+
# @return [Array<Symbol>]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class LinkAuthIntentNoAccount < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute status
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Privy::Models::LinkAuthIntentNoAccount::Status]
|
|
9
|
+
required :status, enum: -> { Privy::LinkAuthIntentNoAccount::Status }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(status:)
|
|
12
|
+
# No Link account for this email. Call registerLinkUser() then retry.
|
|
13
|
+
#
|
|
14
|
+
# @param status [Symbol, Privy::Models::LinkAuthIntentNoAccount::Status]
|
|
15
|
+
|
|
16
|
+
# @see Privy::Models::LinkAuthIntentNoAccount#status
|
|
17
|
+
module Status
|
|
18
|
+
extend Privy::Internal::Type::Enum
|
|
19
|
+
|
|
20
|
+
NO_ACCOUNT = :no_account
|
|
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 ListStripeConsumerWalletsResponse < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute data
|
|
7
|
+
#
|
|
8
|
+
# @return [Array<Privy::Models::StripeConsumerWallet>]
|
|
9
|
+
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::StripeConsumerWallet] }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(data:)
|
|
12
|
+
# List of registered wallets for a crypto customer.
|
|
13
|
+
#
|
|
14
|
+
# @param data [Array<Privy::Models::StripeConsumerWallet>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class ListStripePaymentTokensResponse < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute data
|
|
7
|
+
#
|
|
8
|
+
# @return [Array<Privy::Models::StripePaymentToken>]
|
|
9
|
+
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::StripePaymentToken] }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(data:)
|
|
12
|
+
# List of payment tokens for a crypto customer.
|
|
13
|
+
#
|
|
14
|
+
# @param data [Array<Privy::Models::StripePaymentToken>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class OnrampSessionParams < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute crypto_customer_id
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :crypto_customer_id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute destination_currency
|
|
12
|
+
# Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :destination_currency, String
|
|
16
|
+
|
|
17
|
+
# @!attribute destination_network
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :destination_network, String
|
|
21
|
+
|
|
22
|
+
# @!attribute payment_token
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :payment_token, String
|
|
26
|
+
|
|
27
|
+
# @!attribute source_amount
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :source_amount, String
|
|
31
|
+
|
|
32
|
+
# @!attribute source_currency
|
|
33
|
+
# ISO 4217 fiat currency code. Three uppercase ASCII letters.
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
required :source_currency, String
|
|
37
|
+
|
|
38
|
+
# @!attribute wallet_address
|
|
39
|
+
#
|
|
40
|
+
# @return [String]
|
|
41
|
+
required :wallet_address, String
|
|
42
|
+
|
|
43
|
+
# @!method initialize(crypto_customer_id:, destination_currency:, destination_network:, payment_token:, source_amount:, source_currency:, wallet_address:)
|
|
44
|
+
# Parameters for creating a Stripe onramp session.
|
|
45
|
+
#
|
|
46
|
+
# @param crypto_customer_id [String]
|
|
47
|
+
#
|
|
48
|
+
# @param destination_currency [String] Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
|
|
49
|
+
#
|
|
50
|
+
# @param destination_network [String]
|
|
51
|
+
#
|
|
52
|
+
# @param payment_token [String]
|
|
53
|
+
#
|
|
54
|
+
# @param source_amount [String]
|
|
55
|
+
#
|
|
56
|
+
# @param source_currency [String] ISO 4217 fiat currency code. Three uppercase ASCII letters.
|
|
57
|
+
#
|
|
58
|
+
# @param wallet_address [String]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class RefreshStripeQuoteResponse < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute quote
|
|
7
|
+
# A refreshed quote.
|
|
8
|
+
#
|
|
9
|
+
# @return [Privy::Models::StripeQuote]
|
|
10
|
+
required :quote, -> { Privy::StripeQuote }
|
|
11
|
+
|
|
12
|
+
# @!method initialize(quote:)
|
|
13
|
+
# Refreshed quote with new expiry.
|
|
14
|
+
#
|
|
15
|
+
# @param quote [Privy::Models::StripeQuote] A refreshed quote.
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
# @see Privy::Resources::Intents#delete_policy_rule
|
|
6
|
+
class RuleDeleteIntentResponse < Privy::Models::BaseIntentResponse
|
|
7
|
+
# @!attribute intent_type
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Privy::Models::RuleDeleteIntentResponse::IntentType]
|
|
10
|
+
required :intent_type, enum: -> { Privy::RuleDeleteIntentResponse::IntentType }
|
|
11
|
+
|
|
12
|
+
# @!attribute request_details
|
|
13
|
+
# Request details for deleting a rule via intent.
|
|
14
|
+
#
|
|
15
|
+
# @return [Privy::Models::RuleIntentDeleteRequestDetails]
|
|
16
|
+
required :request_details, -> { Privy::RuleIntentDeleteRequestDetails }
|
|
17
|
+
|
|
18
|
+
# @!attribute action_result
|
|
19
|
+
# Result of rule execution (only present if status is 'executed' or 'failed')
|
|
20
|
+
#
|
|
21
|
+
# @return [Privy::Models::BaseActionResult, nil]
|
|
22
|
+
optional :action_result, -> { Privy::BaseActionResult }
|
|
23
|
+
|
|
24
|
+
# @!attribute current_resource_data
|
|
25
|
+
# A rule that defines the conditions and action to take if the conditions are
|
|
26
|
+
# true.
|
|
27
|
+
#
|
|
28
|
+
# @return [Privy::Models::PolicyRuleResponse, nil]
|
|
29
|
+
optional :current_resource_data, -> { Privy::PolicyRuleResponse }
|
|
30
|
+
|
|
31
|
+
# @!attribute policy
|
|
32
|
+
# A policy for controlling wallet operations.
|
|
33
|
+
#
|
|
34
|
+
# @return [Privy::Models::Policy, nil]
|
|
35
|
+
optional :policy, -> { Privy::Policy }
|
|
36
|
+
|
|
37
|
+
# @!method initialize(intent_type:, request_details:, action_result: nil, current_resource_data: nil, policy: nil)
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Privy::Models::RuleDeleteIntentResponse} for more details.
|
|
40
|
+
#
|
|
41
|
+
# Response for a delete rule intent
|
|
42
|
+
#
|
|
43
|
+
# @param intent_type [Symbol, Privy::Models::RuleDeleteIntentResponse::IntentType]
|
|
44
|
+
#
|
|
45
|
+
# @param request_details [Privy::Models::RuleIntentDeleteRequestDetails] Request details for deleting a rule via intent.
|
|
46
|
+
#
|
|
47
|
+
# @param action_result [Privy::Models::BaseActionResult] Result of rule execution (only present if status is 'executed' or 'failed')
|
|
48
|
+
#
|
|
49
|
+
# @param current_resource_data [Privy::Models::PolicyRuleResponse] A rule that defines the conditions and action to take if the conditions are true
|
|
50
|
+
#
|
|
51
|
+
# @param policy [Privy::Models::Policy] A policy for controlling wallet operations.
|
|
52
|
+
|
|
53
|
+
module IntentType
|
|
54
|
+
extend Privy::Internal::Type::Enum
|
|
55
|
+
|
|
56
|
+
RULE = :RULE
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
# @see Privy::Resources::Intents#create_policy_rule
|
|
6
|
+
class RuleMutateIntentResponse < Privy::Models::BaseIntentResponse
|
|
7
|
+
# @!attribute intent_type
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Privy::Models::RuleMutateIntentResponse::IntentType]
|
|
10
|
+
required :intent_type, enum: -> { Privy::RuleMutateIntentResponse::IntentType }
|
|
11
|
+
|
|
12
|
+
# @!attribute request_details
|
|
13
|
+
# The original rule request. Method is POST (create), PATCH (update), or DELETE
|
|
14
|
+
# (delete)
|
|
15
|
+
#
|
|
16
|
+
# @return [Privy::Models::RuleIntentCreateRequestDetails, Privy::Models::RuleIntentUpdateRequestDetails, Privy::Models::RuleIntentDeleteRequestDetails]
|
|
17
|
+
required :request_details, union: -> { Privy::RuleIntentRequestDetails }
|
|
18
|
+
|
|
19
|
+
# @!attribute action_result
|
|
20
|
+
# Result of rule execution (only present if status is 'executed' or 'failed')
|
|
21
|
+
#
|
|
22
|
+
# @return [Privy::Models::BaseActionResult, nil]
|
|
23
|
+
optional :action_result, -> { Privy::BaseActionResult }
|
|
24
|
+
|
|
25
|
+
# @!attribute current_resource_data
|
|
26
|
+
# A rule that defines the conditions and action to take if the conditions are
|
|
27
|
+
# true.
|
|
28
|
+
#
|
|
29
|
+
# @return [Privy::Models::PolicyRuleResponse, nil]
|
|
30
|
+
optional :current_resource_data, -> { Privy::PolicyRuleResponse }
|
|
31
|
+
|
|
32
|
+
# @!attribute policy
|
|
33
|
+
# A policy for controlling wallet operations.
|
|
34
|
+
#
|
|
35
|
+
# @return [Privy::Models::Policy, nil]
|
|
36
|
+
optional :policy, -> { Privy::Policy }
|
|
37
|
+
|
|
38
|
+
# @!method initialize(intent_type:, request_details:, action_result: nil, current_resource_data: nil, policy: nil)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Privy::Models::RuleMutateIntentResponse} for more details.
|
|
41
|
+
#
|
|
42
|
+
# Response for a create or update rule intent
|
|
43
|
+
#
|
|
44
|
+
# @param intent_type [Symbol, Privy::Models::RuleMutateIntentResponse::IntentType]
|
|
45
|
+
#
|
|
46
|
+
# @param request_details [Privy::Models::RuleIntentCreateRequestDetails, Privy::Models::RuleIntentUpdateRequestDetails, Privy::Models::RuleIntentDeleteRequestDetails] The original rule request. Method is POST (create), PATCH (update), or DELETE (d
|
|
47
|
+
#
|
|
48
|
+
# @param action_result [Privy::Models::BaseActionResult] Result of rule execution (only present if status is 'executed' or 'failed')
|
|
49
|
+
#
|
|
50
|
+
# @param current_resource_data [Privy::Models::PolicyRuleResponse] A rule that defines the conditions and action to take if the conditions are true
|
|
51
|
+
#
|
|
52
|
+
# @param policy [Privy::Models::Policy] A policy for controlling wallet operations.
|
|
53
|
+
|
|
54
|
+
module IntentType
|
|
55
|
+
extend Privy::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
RULE = :RULE
|
|
58
|
+
|
|
59
|
+
# @!method self.values
|
|
60
|
+
# @return [Array<Symbol>]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class StripeConsumerWallet < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute network
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :network, String
|
|
15
|
+
|
|
16
|
+
# @!attribute wallet_address
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :wallet_address, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(id:, network:, wallet_address:)
|
|
22
|
+
# A registered consumer wallet.
|
|
23
|
+
#
|
|
24
|
+
# @param id [String]
|
|
25
|
+
# @param network [String]
|
|
26
|
+
# @param wallet_address [String]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class StripeCryptoCustomerActive < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute crypto_customer_id
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :crypto_customer_id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute status
|
|
12
|
+
#
|
|
13
|
+
# @return [Symbol, Privy::Models::StripeCryptoCustomerActive::Status]
|
|
14
|
+
required :status, enum: -> { Privy::StripeCryptoCustomerActive::Status }
|
|
15
|
+
|
|
16
|
+
# @!attribute verifications
|
|
17
|
+
#
|
|
18
|
+
# @return [Array<Privy::Models::StripeVerification>]
|
|
19
|
+
required :verifications, -> { Privy::Internal::Type::ArrayOf[Privy::StripeVerification] }
|
|
20
|
+
|
|
21
|
+
# @!method initialize(crypto_customer_id:, status:, verifications:)
|
|
22
|
+
# Active onramp session with customer verifications.
|
|
23
|
+
#
|
|
24
|
+
# @param crypto_customer_id [String]
|
|
25
|
+
# @param status [Symbol, Privy::Models::StripeCryptoCustomerActive::Status]
|
|
26
|
+
# @param verifications [Array<Privy::Models::StripeVerification>]
|
|
27
|
+
|
|
28
|
+
# @see Privy::Models::StripeCryptoCustomerActive#status
|
|
29
|
+
module Status
|
|
30
|
+
extend Privy::Internal::Type::Enum
|
|
31
|
+
|
|
32
|
+
ACTIVE = :active
|
|
33
|
+
|
|
34
|
+
# @!method self.values
|
|
35
|
+
# @return [Array<Symbol>]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class StripeCryptoCustomerExpired < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute crypto_customer_id
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :crypto_customer_id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute status
|
|
12
|
+
#
|
|
13
|
+
# @return [Symbol, Privy::Models::StripeCryptoCustomerExpired::Status]
|
|
14
|
+
required :status, enum: -> { Privy::StripeCryptoCustomerExpired::Status }
|
|
15
|
+
|
|
16
|
+
# @!method initialize(crypto_customer_id:, status:)
|
|
17
|
+
# Expired onramp session. Token refresh failed, re-authentication required.
|
|
18
|
+
#
|
|
19
|
+
# @param crypto_customer_id [String]
|
|
20
|
+
# @param status [Symbol, Privy::Models::StripeCryptoCustomerExpired::Status]
|
|
21
|
+
|
|
22
|
+
# @see Privy::Models::StripeCryptoCustomerExpired#status
|
|
23
|
+
module Status
|
|
24
|
+
extend Privy::Internal::Type::Enum
|
|
25
|
+
|
|
26
|
+
EXPIRED = :expired
|
|
27
|
+
|
|
28
|
+
# @!method self.values
|
|
29
|
+
# @return [Array<Symbol>]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class StripeCryptoCustomerNone < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute status
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Privy::Models::StripeCryptoCustomerNone::Status]
|
|
9
|
+
required :status, enum: -> { Privy::StripeCryptoCustomerNone::Status }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(status:)
|
|
12
|
+
# No onramp session. User must authenticate via Link.
|
|
13
|
+
#
|
|
14
|
+
# @param status [Symbol, Privy::Models::StripeCryptoCustomerNone::Status]
|
|
15
|
+
|
|
16
|
+
# @see Privy::Models::StripeCryptoCustomerNone#status
|
|
17
|
+
module Status
|
|
18
|
+
extend Privy::Internal::Type::Enum
|
|
19
|
+
|
|
20
|
+
NONE = :none
|
|
21
|
+
|
|
22
|
+
# @!method self.values
|
|
23
|
+
# @return [Array<Symbol>]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class StripeOnrampCheckoutResponse < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute client_secret
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :client_secret, String
|
|
10
|
+
|
|
11
|
+
# @!attribute transaction_details
|
|
12
|
+
# Transaction details from checkout.
|
|
13
|
+
#
|
|
14
|
+
# @return [Privy::Models::StripeTransactionDetails, nil]
|
|
15
|
+
optional :transaction_details, -> { Privy::StripeTransactionDetails }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(client_secret:, transaction_details: nil)
|
|
18
|
+
# Checkout confirmation with client secret.
|
|
19
|
+
#
|
|
20
|
+
# @param client_secret [String]
|
|
21
|
+
#
|
|
22
|
+
# @param transaction_details [Privy::Models::StripeTransactionDetails] Transaction details from checkout.
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
# The state of the user's Stripe onramp session.
|
|
6
|
+
module StripeOnrampSessionStatus
|
|
7
|
+
extend Privy::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
ACTIVE = :active
|
|
10
|
+
EXPIRED = :expired
|
|
11
|
+
NONE = :none
|
|
12
|
+
|
|
13
|
+
# @!method self.values
|
|
14
|
+
# @return [Array<Symbol>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|