privy_ruby 0.8.0 → 0.9.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 +12 -0
- data/README.md +1 -1
- data/lib/privy/models/app_get_gas_spend_params.rb +16 -3
- data/lib/privy/models/card_issuing_cards_response.rb +5 -2
- data/lib/privy/models/card_issuing_transactions_response.rb +5 -2
- data/lib/privy/models/curve_signing_chain_type.rb +1 -0
- data/lib/privy/models/extended_chain_type.rb +1 -0
- data/lib/privy/models/key_quorums_response.rb +2 -2
- data/lib/privy/models/kyc_submit_data.rb +63 -1
- data/lib/privy/models/list_crypto_deposit_accounts_response.rb +5 -2
- data/lib/privy/models/organizations_list_response.rb +5 -2
- data/lib/privy/models/policies/condition_sets_response.rb +2 -2
- data/lib/privy/models/policies_response.rb +2 -2
- data/lib/privy/models/policy.rb +2 -6
- data/lib/privy/models/policy_create_rule_params.rb +2 -1
- data/lib/privy/models/policy_delete_params.rb +2 -1
- data/lib/privy/models/policy_delete_rule_params.rb +2 -1
- data/lib/privy/models/policy_get_params.rb +3 -1
- data/lib/privy/models/policy_get_rule_params.rb +4 -1
- data/lib/privy/models/policy_id.rb +7 -0
- data/lib/privy/models/policy_list_item.rb +2 -6
- data/lib/privy/models/policy_request_body.rb +2 -1
- data/lib/privy/models/policy_rule_request_params.rb +3 -1
- data/lib/privy/models/policy_update_params.rb +2 -1
- data/lib/privy/models/policy_update_rule_params.rb +2 -1
- data/lib/privy/models/tmmf_wallet_updated_webhook_payload.rb +21 -3
- data/lib/privy/models/unsafe_unwrap_webhook_event.rb +1 -1
- data/lib/privy/models/wallet_automation_execution_list_response.rb +5 -2
- data/lib/privy/models/wallet_automation_list_response.rb +5 -2
- data/lib/privy/models/wallet_chain_type.rb +1 -0
- data/lib/privy/models/wallet_intent_response.rb +10 -72
- data/lib/privy/models/wallet_update_request_body.rb +2 -3
- data/lib/privy/models/wallets/action_get_params.rb +2 -2
- data/lib/privy/models/wallets/tmmf_provider_wallet_status.rb +3 -0
- data/lib/privy/models/webhook_payload.rb +1 -1
- data/lib/privy/models.rb +2 -0
- data/lib/privy/resources/apps.rb +9 -3
- data/lib/privy/resources/intents.rb +1 -1
- data/lib/privy/resources/policies.rb +10 -7
- data/lib/privy/resources/wallets/actions.rb +1 -1
- data/lib/privy/resources/wallets.rb +1 -1
- data/lib/privy/version.rb +1 -1
- data/lib/privy.rb +1 -0
- data/rbi/privy/models/app_get_gas_spend_params.rbi +14 -0
- data/rbi/privy/models/card_issuing_cards_response.rbi +8 -1
- data/rbi/privy/models/card_issuing_transactions_response.rbi +8 -1
- data/rbi/privy/models/curve_signing_chain_type.rbi +1 -0
- data/rbi/privy/models/extended_chain_type.rbi +1 -0
- data/rbi/privy/models/key_quorums_response.rbi +2 -2
- data/rbi/privy/models/kyc_submit_data.rbi +89 -0
- data/rbi/privy/models/list_crypto_deposit_accounts_response.rbi +8 -1
- data/rbi/privy/models/organizations_list_response.rbi +8 -1
- data/rbi/privy/models/policies/condition_sets_response.rbi +2 -2
- data/rbi/privy/models/policies_response.rbi +2 -2
- data/rbi/privy/models/policy.rbi +2 -4
- data/rbi/privy/models/policy_create_rule_params.rbi +2 -0
- data/rbi/privy/models/policy_delete_params.rbi +2 -0
- data/rbi/privy/models/policy_delete_rule_params.rbi +2 -0
- data/rbi/privy/models/policy_get_params.rbi +6 -1
- data/rbi/privy/models/policy_get_rule_params.rbi +7 -1
- data/rbi/privy/models/policy_id.rbi +7 -0
- data/rbi/privy/models/policy_list_item.rbi +2 -4
- data/rbi/privy/models/policy_request_body.rbi +5 -1
- data/rbi/privy/models/policy_rule_request_params.rbi +6 -1
- data/rbi/privy/models/policy_update_params.rbi +2 -0
- data/rbi/privy/models/policy_update_rule_params.rbi +2 -0
- data/rbi/privy/models/tmmf_wallet_updated_webhook_payload.rbi +31 -5
- data/rbi/privy/models/wallet_automation_execution_list_response.rbi +8 -1
- data/rbi/privy/models/wallet_automation_list_response.rbi +8 -1
- data/rbi/privy/models/wallet_chain_type.rbi +1 -0
- data/rbi/privy/models/wallet_intent_response.rbi +13 -123
- data/rbi/privy/models/wallet_update_request_body.rbi +4 -13
- data/rbi/privy/models/wallets/action_get_params.rbi +2 -2
- data/rbi/privy/models/wallets/tmmf_provider_wallet_status.rbi +5 -0
- data/rbi/privy/models.rbi +2 -0
- data/rbi/privy/resources/apps.rbi +7 -0
- data/rbi/privy/resources/intents.rbi +1 -2
- data/rbi/privy/resources/policies.rbi +16 -6
- data/rbi/privy/resources/wallets/actions.rbi +1 -1
- data/rbi/privy/resources/wallets.rbi +1 -2
- data/sig/privy/models/curve_signing_chain_type.rbs +2 -0
- data/sig/privy/models/extended_chain_type.rbs +2 -0
- data/sig/privy/models/kyc_submit_data.rbs +49 -0
- data/sig/privy/models/policy_id.rbs +5 -0
- data/sig/privy/models/tmmf_wallet_updated_webhook_payload.rbs +17 -3
- data/sig/privy/models/wallet_chain_type.rbs +2 -0
- data/sig/privy/models/wallet_intent_response.rbs +4 -70
- data/sig/privy/models/wallet_update_request_body.rbs +7 -5
- data/sig/privy/models/wallets/tmmf_provider_wallet_status.rbs +2 -1
- data/sig/privy/models.rbs +2 -0
- data/sig/privy/resources/intents.rbs +1 -1
- data/sig/privy/resources/wallets.rbs +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac158f202b4461a1b6aa0036ff93c66a05e99ac984afabef015f75e412f04ad8
|
|
4
|
+
data.tar.gz: cd8c148537b2167e9d447c13969295b690e061094ca68eb5d94bd79694a96c88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b1418dd7d645d119411225047b94a5dd6bfc76e86397054759dccaf8115967f37b2aaada523c5f42b619f69d0f966a9def2ab6e0ea06fa1fc00de98514a4628
|
|
7
|
+
data.tar.gz: ccfa18f79643441a3b2135260cebb0f4c64b17aace0c2a7a962cff7612ee0cd5357c4358391b96a0d750287fb6fd4b7ea462c0e669039096eba14c3e9ea24963
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.0](https://github.com/privy-io/ruby-sdk-private/compare/v0.8.0...v0.9.0) (2026-11-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([e7d3e11](https://github.com/privy-io/ruby-sdk-private/commit/e7d3e11d505d617a9f31000d40419e8d39d97a72))
|
|
9
|
+
* **api:** api update ([37ab83c](https://github.com/privy-io/ruby-sdk-private/commit/37ab83c2c062d247af7f60b336a77c4ff65cf10c))
|
|
10
|
+
* **api:** api update ([cebc76a](https://github.com/privy-io/ruby-sdk-private/commit/cebc76a551f8eab62773c304c52217dcd421e253))
|
|
11
|
+
* **api:** api update ([b727332](https://github.com/privy-io/ruby-sdk-private/commit/b727332f8db093ca1db1985570646562662042a9))
|
|
12
|
+
* **api:** api update ([be5b6fc](https://github.com/privy-io/ruby-sdk-private/commit/be5b6fcc85e0b51582c4d069773d383a5ac2c4c1))
|
|
13
|
+
* **api:** api update ([901db9a](https://github.com/privy-io/ruby-sdk-private/commit/901db9a4db573ffd20472e751d7a7cbde22b3f03))
|
|
14
|
+
|
|
3
15
|
## [0.8.0](https://github.com/privy-io/ruby-sdk-private/compare/v0.7.0...v0.8.0) (2026-11-13)
|
|
4
16
|
|
|
5
17
|
|
data/README.md
CHANGED
|
@@ -8,24 +8,37 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute end_timestamp
|
|
11
|
+
# Unix timestamp in milliseconds, exclusive. Must be greater than or equal to
|
|
12
|
+
# `start_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
13
|
+
# not exceed 30 days.
|
|
11
14
|
#
|
|
12
15
|
# @return [Float]
|
|
13
16
|
required :end_timestamp, Float
|
|
14
17
|
|
|
15
18
|
# @!attribute start_timestamp
|
|
19
|
+
# Unix timestamp in milliseconds, inclusive. Must be less than or equal to
|
|
20
|
+
# `end_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
21
|
+
# not exceed 30 days.
|
|
16
22
|
#
|
|
17
23
|
# @return [Float]
|
|
18
24
|
required :start_timestamp, Float
|
|
19
25
|
|
|
20
26
|
# @!attribute wallet_ids
|
|
27
|
+
# List of wallet IDs to query gas spend for. Maximum 100.
|
|
21
28
|
#
|
|
22
29
|
# @return [Array<String>]
|
|
23
30
|
required :wallet_ids, Privy::Internal::Type::ArrayOf[String]
|
|
24
31
|
|
|
25
32
|
# @!method initialize(end_timestamp:, start_timestamp:, wallet_ids:, request_options: {})
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Privy::Models::AppGetGasSpendParams} for more details.
|
|
35
|
+
#
|
|
36
|
+
# @param end_timestamp [Float] Unix timestamp in milliseconds, exclusive. Must be greater than or equal to `sta
|
|
37
|
+
#
|
|
38
|
+
# @param start_timestamp [Float] Unix timestamp in milliseconds, inclusive. Must be less than or equal to `end_ti
|
|
39
|
+
#
|
|
40
|
+
# @param wallet_ids [Array<String>] List of wallet IDs to query gas spend for. Maximum 100.
|
|
41
|
+
#
|
|
29
42
|
# @param request_options [Privy::RequestOptions, Hash{Symbol=>Object}]
|
|
30
43
|
end
|
|
31
44
|
end
|
|
@@ -4,11 +4,13 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class CardIssuingCardsResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
+
# Items in this page.
|
|
7
8
|
#
|
|
8
9
|
# @return [Array<Privy::Models::CardIssuingCardResponse>]
|
|
9
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::CardIssuingCardResponse] }
|
|
10
11
|
|
|
11
12
|
# @!attribute next_cursor
|
|
13
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
12
14
|
#
|
|
13
15
|
# @return [String, nil]
|
|
14
16
|
required :next_cursor, String, nil?: true
|
|
@@ -16,8 +18,9 @@ module Privy
|
|
|
16
18
|
# @!method initialize(data:, next_cursor:)
|
|
17
19
|
# Stripe Issuing cards bound to the authenticated Privy user.
|
|
18
20
|
#
|
|
19
|
-
# @param data [Array<Privy::Models::CardIssuingCardResponse>]
|
|
20
|
-
#
|
|
21
|
+
# @param data [Array<Privy::Models::CardIssuingCardResponse>] Items in this page.
|
|
22
|
+
#
|
|
23
|
+
# @param next_cursor [String, nil] Cursor for the next page. Null when there are no further pages.
|
|
21
24
|
end
|
|
22
25
|
end
|
|
23
26
|
end
|
|
@@ -4,11 +4,13 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class CardIssuingTransactionsResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
+
# Items in this page.
|
|
7
8
|
#
|
|
8
9
|
# @return [Array<Privy::Models::CardIssuingTransactionResponse>]
|
|
9
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::CardIssuingTransactionResponse] }
|
|
10
11
|
|
|
11
12
|
# @!attribute next_cursor
|
|
13
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
12
14
|
#
|
|
13
15
|
# @return [String, nil]
|
|
14
16
|
required :next_cursor, String, nil?: true
|
|
@@ -16,8 +18,9 @@ module Privy
|
|
|
16
18
|
# @!method initialize(data:, next_cursor:)
|
|
17
19
|
# A chronological list of card activity.
|
|
18
20
|
#
|
|
19
|
-
# @param data [Array<Privy::Models::CardIssuingTransactionResponse>]
|
|
20
|
-
#
|
|
21
|
+
# @param data [Array<Privy::Models::CardIssuingTransactionResponse>] Items in this page.
|
|
22
|
+
#
|
|
23
|
+
# @param next_cursor [String, nil] Cursor for the next page. Null when there are no further pages.
|
|
21
24
|
end
|
|
22
25
|
end
|
|
23
26
|
end
|
|
@@ -4,7 +4,7 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class KeyQuorumsResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
-
#
|
|
7
|
+
# Items in this page.
|
|
8
8
|
#
|
|
9
9
|
# @return [Array<Privy::Models::KeyQuorum>]
|
|
10
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::KeyQuorum] }
|
|
@@ -18,7 +18,7 @@ module Privy
|
|
|
18
18
|
# @!method initialize(data:, next_cursor:)
|
|
19
19
|
# Paginated list of key quorums in an app.
|
|
20
20
|
#
|
|
21
|
-
# @param data [Array<Privy::Models::KeyQuorum>]
|
|
21
|
+
# @param data [Array<Privy::Models::KeyQuorum>] Items in this page.
|
|
22
22
|
#
|
|
23
23
|
# @param next_cursor [String, nil] Cursor for the next page. Null when there are no further pages.
|
|
24
24
|
end
|
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
module Privy
|
|
4
4
|
module Models
|
|
5
5
|
class KYCSubmitData < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute account_purpose
|
|
7
|
+
# Primary purpose of the individual's account, as one of the provider's
|
|
8
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :account_purpose, String
|
|
12
|
+
|
|
13
|
+
# @!attribute account_purpose_other
|
|
14
|
+
# Free-text account purpose, required by the provider when `account_purpose` is
|
|
15
|
+
# `other`.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
optional :account_purpose_other, String
|
|
19
|
+
|
|
20
|
+
# @!attribute acting_as_intermediary
|
|
21
|
+
# Whether the individual is acting as an intermediary for a third party.
|
|
22
|
+
#
|
|
23
|
+
# @return [Boolean, nil]
|
|
24
|
+
optional :acting_as_intermediary, Privy::Internal::Type::Boolean
|
|
25
|
+
|
|
6
26
|
# @!attribute date_of_birth
|
|
7
27
|
# Date of birth in YYYY-MM-DD format.
|
|
8
28
|
#
|
|
@@ -15,6 +35,20 @@ module Privy
|
|
|
15
35
|
# @return [String, nil]
|
|
16
36
|
optional :email, String
|
|
17
37
|
|
|
38
|
+
# @!attribute employment_status
|
|
39
|
+
# The individual's employment status, as one of the provider's
|
|
40
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
optional :employment_status, String
|
|
44
|
+
|
|
45
|
+
# @!attribute expected_monthly_payments_usd
|
|
46
|
+
# The individual's expected monthly payments, as one of the provider's
|
|
47
|
+
# [USD buckets](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :expected_monthly_payments_usd, String
|
|
51
|
+
|
|
18
52
|
# @!attribute first_name
|
|
19
53
|
# Legal first name.
|
|
20
54
|
#
|
|
@@ -46,6 +80,13 @@ module Privy
|
|
|
46
80
|
# @return [String, nil]
|
|
47
81
|
optional :middle_name, String
|
|
48
82
|
|
|
83
|
+
# @!attribute most_recent_occupation
|
|
84
|
+
# The individual's most recent occupation, as an ISCO code, passed through to the
|
|
85
|
+
# provider.
|
|
86
|
+
#
|
|
87
|
+
# @return [String, nil]
|
|
88
|
+
optional :most_recent_occupation, String
|
|
89
|
+
|
|
49
90
|
# @!attribute nationalities
|
|
50
91
|
# ISO 3166-1 alpha-3 codes for all nationalities held.
|
|
51
92
|
#
|
|
@@ -78,6 +119,13 @@ module Privy
|
|
|
78
119
|
# @return [Privy::Models::VerificationAddress, nil]
|
|
79
120
|
optional :residential_address, -> { Privy::VerificationAddress }
|
|
80
121
|
|
|
122
|
+
# @!attribute source_of_funds
|
|
123
|
+
# Primary source of the individual's funds, as one of the provider's
|
|
124
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
125
|
+
#
|
|
126
|
+
# @return [String, nil]
|
|
127
|
+
optional :source_of_funds, String
|
|
128
|
+
|
|
81
129
|
# @!attribute stripe_link_shared_data_id
|
|
82
130
|
# Stripe Link shared data ID that supplies name, date of birth, address, and US
|
|
83
131
|
# SSN (omit those fields); retrieval errors surface in endorsements[].issues.
|
|
@@ -130,16 +178,26 @@ module Privy
|
|
|
130
178
|
# @return [Time, Date, nil]
|
|
131
179
|
optional :verified_proof_of_address_at, union: -> { Privy::KYCSubmitData::VerifiedProofOfAddressAt }
|
|
132
180
|
|
|
133
|
-
# @!method initialize(date_of_birth: nil, email: nil, first_name: nil, identifying_information: nil, kyc_screen: nil, last_name: nil, middle_name: nil, nationalities: nil, nonresident_alien_attestation: nil, ofac_screen: nil, phone: nil, residential_address: nil, stripe_link_shared_data_id: nil, transliterated_first_name: nil, transliterated_last_name: nil, transliterated_middle_name: nil, transliterated_residential_address: nil, verified_database_at: nil, verified_govid_at: nil, verified_proof_of_address_at: nil)
|
|
181
|
+
# @!method initialize(account_purpose: nil, account_purpose_other: nil, acting_as_intermediary: nil, date_of_birth: nil, email: nil, employment_status: nil, expected_monthly_payments_usd: nil, first_name: nil, identifying_information: nil, kyc_screen: nil, last_name: nil, middle_name: nil, most_recent_occupation: nil, nationalities: nil, nonresident_alien_attestation: nil, ofac_screen: nil, phone: nil, residential_address: nil, source_of_funds: nil, stripe_link_shared_data_id: nil, transliterated_first_name: nil, transliterated_last_name: nil, transliterated_middle_name: nil, transliterated_residential_address: nil, verified_database_at: nil, verified_govid_at: nil, verified_proof_of_address_at: nil)
|
|
134
182
|
# Some parameter documentations has been truncated, see
|
|
135
183
|
# {Privy::Models::KYCSubmitData} for more details.
|
|
136
184
|
#
|
|
137
185
|
# KYC verification data for headless submission.
|
|
138
186
|
#
|
|
187
|
+
# @param account_purpose [String] Primary purpose of the individual's account, as one of the provider's [accepted
|
|
188
|
+
#
|
|
189
|
+
# @param account_purpose_other [String] Free-text account purpose, required by the provider when `account_purpose` is `o
|
|
190
|
+
#
|
|
191
|
+
# @param acting_as_intermediary [Boolean] Whether the individual is acting as an intermediary for a third party.
|
|
192
|
+
#
|
|
139
193
|
# @param date_of_birth [String] Date of birth in YYYY-MM-DD format.
|
|
140
194
|
#
|
|
141
195
|
# @param email [String] Email address.
|
|
142
196
|
#
|
|
197
|
+
# @param employment_status [String] The individual's employment status, as one of the provider's [accepted values](h
|
|
198
|
+
#
|
|
199
|
+
# @param expected_monthly_payments_usd [String] The individual's expected monthly payments, as one of the provider's [USD bucket
|
|
200
|
+
#
|
|
143
201
|
# @param first_name [String] Legal first name.
|
|
144
202
|
#
|
|
145
203
|
# @param identifying_information [Array<Privy::Models::VerificationDocument>] Identifying documents.
|
|
@@ -150,6 +208,8 @@ module Privy
|
|
|
150
208
|
#
|
|
151
209
|
# @param middle_name [String] Legal middle name.
|
|
152
210
|
#
|
|
211
|
+
# @param most_recent_occupation [String] The individual's most recent occupation, as an ISCO code, passed through to the
|
|
212
|
+
#
|
|
153
213
|
# @param nationalities [Array<String>] ISO 3166-1 alpha-3 codes for all nationalities held.
|
|
154
214
|
#
|
|
155
215
|
# @param nonresident_alien_attestation [Boolean] Attests the user is a nonresident alien to satisfy identification without a US t
|
|
@@ -160,6 +220,8 @@ module Privy
|
|
|
160
220
|
#
|
|
161
221
|
# @param residential_address [Privy::Models::VerificationAddress] A postal address used in KYC and KYB data submission.
|
|
162
222
|
#
|
|
223
|
+
# @param source_of_funds [String] Primary source of the individual's funds, as one of the provider's [accepted val
|
|
224
|
+
#
|
|
163
225
|
# @param stripe_link_shared_data_id [String] Stripe Link shared data ID that supplies name, date of birth, address, and US SS
|
|
164
226
|
#
|
|
165
227
|
# @param transliterated_first_name [String] Latin-1 transliteration of the first name. Required for non-Latin-1 names.
|
|
@@ -4,11 +4,13 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class ListCryptoDepositAccountsResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
+
# Items in this page.
|
|
7
8
|
#
|
|
8
9
|
# @return [Array<Privy::Models::CryptoDepositAddressRoute>]
|
|
9
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::CryptoDepositAddressRoute] }
|
|
10
11
|
|
|
11
12
|
# @!attribute next_cursor
|
|
13
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
12
14
|
#
|
|
13
15
|
# @return [String, nil]
|
|
14
16
|
required :next_cursor, String, nil?: true
|
|
@@ -16,8 +18,9 @@ module Privy
|
|
|
16
18
|
# @!method initialize(data:, next_cursor:)
|
|
17
19
|
# A page of active crypto deposit accounts for a destination wallet.
|
|
18
20
|
#
|
|
19
|
-
# @param data [Array<Privy::Models::CryptoDepositAddressRoute>]
|
|
20
|
-
#
|
|
21
|
+
# @param data [Array<Privy::Models::CryptoDepositAddressRoute>] Items in this page.
|
|
22
|
+
#
|
|
23
|
+
# @param next_cursor [String, nil] Cursor for the next page. Null when there are no further pages.
|
|
21
24
|
end
|
|
22
25
|
end
|
|
23
26
|
end
|
|
@@ -4,11 +4,13 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class OrganizationsListResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
+
# Items in this page.
|
|
7
8
|
#
|
|
8
9
|
# @return [Array<Privy::Models::Organization>]
|
|
9
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::Organization] }
|
|
10
11
|
|
|
11
12
|
# @!attribute next_cursor
|
|
13
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
12
14
|
#
|
|
13
15
|
# @return [String, nil]
|
|
14
16
|
required :next_cursor, String, nil?: true
|
|
@@ -16,8 +18,9 @@ module Privy
|
|
|
16
18
|
# @!method initialize(data:, next_cursor:)
|
|
17
19
|
# Response returned when listing organizations for an app.
|
|
18
20
|
#
|
|
19
|
-
# @param data [Array<Privy::Models::Organization>]
|
|
20
|
-
#
|
|
21
|
+
# @param data [Array<Privy::Models::Organization>] Items in this page.
|
|
22
|
+
#
|
|
23
|
+
# @param next_cursor [String, nil] Cursor for the next page. Null when there are no further pages.
|
|
21
24
|
end
|
|
22
25
|
end
|
|
23
26
|
end
|
|
@@ -5,7 +5,7 @@ module Privy
|
|
|
5
5
|
module Policies
|
|
6
6
|
class ConditionSetsResponse < Privy::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
|
-
#
|
|
8
|
+
# Items in this page.
|
|
9
9
|
#
|
|
10
10
|
# @return [Array<Privy::Models::ConditionSet>]
|
|
11
11
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::ConditionSet] }
|
|
@@ -19,7 +19,7 @@ module Privy
|
|
|
19
19
|
# @!method initialize(data:, next_cursor:)
|
|
20
20
|
# Paginated list of condition sets in an app.
|
|
21
21
|
#
|
|
22
|
-
# @param data [Array<Privy::Models::ConditionSet>]
|
|
22
|
+
# @param data [Array<Privy::Models::ConditionSet>] Items in this page.
|
|
23
23
|
#
|
|
24
24
|
# @param next_cursor [String, nil] Cursor for the next page. Null when there are no further pages.
|
|
25
25
|
end
|
|
@@ -4,7 +4,7 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class PoliciesResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
-
#
|
|
7
|
+
# Items in this page.
|
|
8
8
|
#
|
|
9
9
|
# @return [Array<Privy::Models::PolicyListItem>]
|
|
10
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::PolicyListItem] }
|
|
@@ -18,7 +18,7 @@ module Privy
|
|
|
18
18
|
# @!method initialize(data:, next_cursor:)
|
|
19
19
|
# Paginated list of policies in an app.
|
|
20
20
|
#
|
|
21
|
-
# @param data [Array<Privy::Models::PolicyListItem>]
|
|
21
|
+
# @param data [Array<Privy::Models::PolicyListItem>] Items in this page.
|
|
22
22
|
#
|
|
23
23
|
# @param next_cursor [String, nil] Cursor for the next page. Null when there are no further pages.
|
|
24
24
|
end
|
data/lib/privy/models/policy.rb
CHANGED
|
@@ -5,8 +5,7 @@ module Privy
|
|
|
5
5
|
# @see Privy::Resources::Policies#create
|
|
6
6
|
class Policy < Privy::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
#
|
|
9
|
-
# the policy in the future.
|
|
8
|
+
# A unique identifier for a policy.
|
|
10
9
|
#
|
|
11
10
|
# @return [String]
|
|
12
11
|
required :id, String
|
|
@@ -47,12 +46,9 @@ module Privy
|
|
|
47
46
|
required :version, enum: -> { Privy::Policy::Version }
|
|
48
47
|
|
|
49
48
|
# @!method initialize(id:, chain_type:, created_at:, name:, owner_id:, rules:, version:)
|
|
50
|
-
# Some parameter documentations has been truncated, see {Privy::Models::Policy}
|
|
51
|
-
# for more details.
|
|
52
|
-
#
|
|
53
49
|
# A policy for controlling wallet operations.
|
|
54
50
|
#
|
|
55
|
-
# @param id [String]
|
|
51
|
+
# @param id [String] A unique identifier for a policy.
|
|
56
52
|
#
|
|
57
53
|
# @param chain_type [Symbol, Privy::Models::WalletChainType] The wallet chain types.
|
|
58
54
|
#
|
|
@@ -8,6 +8,7 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute policy_id
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :policy_id, String
|
|
@@ -30,7 +31,7 @@ module Privy
|
|
|
30
31
|
# Some parameter documentations has been truncated, see
|
|
31
32
|
# {Privy::Models::PolicyCreateRuleParams} for more details.
|
|
32
33
|
#
|
|
33
|
-
# @param policy_id [String]
|
|
34
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
34
35
|
#
|
|
35
36
|
# @param privy_authorization_signature [String] Request authorization signature. If multiple signatures are required, they shoul
|
|
36
37
|
#
|
|
@@ -8,6 +8,7 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute policy_id
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :policy_id, String
|
|
@@ -30,7 +31,7 @@ module Privy
|
|
|
30
31
|
# Some parameter documentations has been truncated, see
|
|
31
32
|
# {Privy::Models::PolicyDeleteParams} for more details.
|
|
32
33
|
#
|
|
33
|
-
# @param policy_id [String]
|
|
34
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
34
35
|
#
|
|
35
36
|
# @param privy_authorization_signature [String] Request authorization signature. If multiple signatures are required, they shoul
|
|
36
37
|
#
|
|
@@ -8,6 +8,7 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute policy_id
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :policy_id, String
|
|
@@ -35,7 +36,7 @@ module Privy
|
|
|
35
36
|
# Some parameter documentations has been truncated, see
|
|
36
37
|
# {Privy::Models::PolicyDeleteRuleParams} for more details.
|
|
37
38
|
#
|
|
38
|
-
# @param policy_id [String]
|
|
39
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
39
40
|
#
|
|
40
41
|
# @param rule_id [String]
|
|
41
42
|
#
|
|
@@ -8,12 +8,14 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute policy_id
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :policy_id, String
|
|
14
15
|
|
|
15
16
|
# @!method initialize(policy_id:, request_options: {})
|
|
16
|
-
# @param policy_id [String]
|
|
17
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
18
|
+
#
|
|
17
19
|
# @param request_options [Privy::RequestOptions, Hash{Symbol=>Object}]
|
|
18
20
|
end
|
|
19
21
|
end
|
|
@@ -8,6 +8,7 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute policy_id
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :policy_id, String
|
|
@@ -18,8 +19,10 @@ module Privy
|
|
|
18
19
|
required :rule_id, String
|
|
19
20
|
|
|
20
21
|
# @!method initialize(policy_id:, rule_id:, request_options: {})
|
|
21
|
-
# @param policy_id [String]
|
|
22
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
23
|
+
#
|
|
22
24
|
# @param rule_id [String]
|
|
25
|
+
#
|
|
23
26
|
# @param request_options [Privy::RequestOptions, Hash{Symbol=>Object}]
|
|
24
27
|
end
|
|
25
28
|
end
|
|
@@ -5,8 +5,7 @@ module Privy
|
|
|
5
5
|
# @see Privy::Resources::Policies#list
|
|
6
6
|
class PolicyListItem < Privy::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
#
|
|
9
|
-
# the policy in the future.
|
|
8
|
+
# A unique identifier for a policy.
|
|
10
9
|
#
|
|
11
10
|
# @return [String]
|
|
12
11
|
required :id, String
|
|
@@ -42,12 +41,9 @@ module Privy
|
|
|
42
41
|
required :version, enum: -> { Privy::PolicyListItem::Version }
|
|
43
42
|
|
|
44
43
|
# @!method initialize(id:, chain_type:, created_at:, name:, owner_id:, version:)
|
|
45
|
-
# Some parameter documentations has been truncated, see
|
|
46
|
-
# {Privy::Models::PolicyListItem} for more details.
|
|
47
|
-
#
|
|
48
44
|
# A policy without its rules, as returned when listing policies.
|
|
49
45
|
#
|
|
50
|
-
# @param id [String]
|
|
46
|
+
# @param id [String] A unique identifier for a policy.
|
|
51
47
|
#
|
|
52
48
|
# @param chain_type [Symbol, Privy::Models::WalletChainType] The wallet chain types.
|
|
53
49
|
#
|
|
@@ -4,6 +4,7 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class PolicyRequestBody < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute policy_id
|
|
7
|
+
# A unique identifier for a policy.
|
|
7
8
|
#
|
|
8
9
|
# @return [String]
|
|
9
10
|
required :policy_id, String
|
|
@@ -11,7 +12,7 @@ module Privy
|
|
|
11
12
|
# @!method initialize(policy_id:)
|
|
12
13
|
# Unique ID of the policy to take actions on.
|
|
13
14
|
#
|
|
14
|
-
# @param policy_id [String]
|
|
15
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
end
|
|
@@ -4,6 +4,7 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class PolicyRuleRequestParams < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute policy_id
|
|
7
|
+
# A unique identifier for a policy.
|
|
7
8
|
#
|
|
8
9
|
# @return [String]
|
|
9
10
|
required :policy_id, String
|
|
@@ -16,7 +17,8 @@ module Privy
|
|
|
16
17
|
# @!method initialize(policy_id:, rule_id:)
|
|
17
18
|
# Unique IDs of the policy and the rule within the policy to take actions on.
|
|
18
19
|
#
|
|
19
|
-
# @param policy_id [String]
|
|
20
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
21
|
+
#
|
|
20
22
|
# @param rule_id [String]
|
|
21
23
|
end
|
|
22
24
|
end
|
|
@@ -8,6 +8,7 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute policy_id
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :policy_id, String
|
|
@@ -55,7 +56,7 @@ module Privy
|
|
|
55
56
|
# Some parameter documentations has been truncated, see
|
|
56
57
|
# {Privy::Models::PolicyUpdateParams} for more details.
|
|
57
58
|
#
|
|
58
|
-
# @param policy_id [String]
|
|
59
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
59
60
|
#
|
|
60
61
|
# @param name [String] Name to assign to the policy, up to 100 characters.
|
|
61
62
|
#
|
|
@@ -8,6 +8,7 @@ module Privy
|
|
|
8
8
|
include Privy::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute policy_id
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :policy_id, String
|
|
@@ -35,7 +36,7 @@ module Privy
|
|
|
35
36
|
# Some parameter documentations has been truncated, see
|
|
36
37
|
# {Privy::Models::PolicyUpdateRuleParams} for more details.
|
|
37
38
|
#
|
|
38
|
-
# @param policy_id [String]
|
|
39
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
39
40
|
#
|
|
40
41
|
# @param rule_id [String]
|
|
41
42
|
#
|
|
@@ -65,12 +65,26 @@ module Privy
|
|
|
65
65
|
# @return [String]
|
|
66
66
|
required :wallet_id, String
|
|
67
67
|
|
|
68
|
-
# @!
|
|
68
|
+
# @!attribute emitted_at
|
|
69
|
+
# Unix timestamp in milliseconds when the provider emitted the event of the
|
|
70
|
+
# change; absent when no provider event reported it.
|
|
71
|
+
#
|
|
72
|
+
# @return [Integer, nil]
|
|
73
|
+
optional :emitted_at, Integer
|
|
74
|
+
|
|
75
|
+
# @!attribute sequence
|
|
76
|
+
# The provider's sequence number of the change, higher for later changes to the
|
|
77
|
+
# resource; absent when no provider event reported it.
|
|
78
|
+
#
|
|
79
|
+
# @return [Integer, nil]
|
|
80
|
+
optional :sequence, Integer
|
|
81
|
+
|
|
82
|
+
# @!method initialize(address:, chain:, created_at:, event_id:, provider:, status:, type:, updated_at:, user_id:, wallet_id:, emitted_at: nil, sequence: nil)
|
|
69
83
|
# Some parameter documentations has been truncated, see
|
|
70
84
|
# {Privy::Models::TmmfWalletUpdatedWebhookPayload} for more details.
|
|
71
85
|
#
|
|
72
|
-
# Payload for the tmmf.wallet.updated webhook event:
|
|
73
|
-
#
|
|
86
|
+
# Payload for the tmmf.wallet.updated webhook event: the status of a tMMF wallet
|
|
87
|
+
# with the provider changed.
|
|
74
88
|
#
|
|
75
89
|
# @param address [String] Blockchain address of the registered wallet.
|
|
76
90
|
#
|
|
@@ -91,6 +105,10 @@ module Privy
|
|
|
91
105
|
# @param user_id [String] ID of the Privy user the wallet is registered for.
|
|
92
106
|
#
|
|
93
107
|
# @param wallet_id [String] ID of the Privy wallet registered to trade and hold fund shares.
|
|
108
|
+
#
|
|
109
|
+
# @param emitted_at [Integer] Unix timestamp in milliseconds when the provider emitted the event of the change
|
|
110
|
+
#
|
|
111
|
+
# @param sequence [Integer] The provider's sequence number of the change, higher for later changes to the re
|
|
94
112
|
|
|
95
113
|
# The type of webhook event.
|
|
96
114
|
#
|
|
@@ -31,7 +31,7 @@ module Privy
|
|
|
31
31
|
|
|
32
32
|
variant :"organization.kyb.updated", -> { Privy::OrganizationKYBUpdatedWebhookEvent }
|
|
33
33
|
|
|
34
|
-
# Payload for the tmmf.wallet.updated webhook event:
|
|
34
|
+
# Payload for the tmmf.wallet.updated webhook event: the status of a tMMF wallet with the provider changed.
|
|
35
35
|
variant :"tmmf.wallet.updated", -> { Privy::TmmfWalletUpdatedWebhookPayload }
|
|
36
36
|
|
|
37
37
|
# Payload for the transaction.broadcasted webhook event.
|