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
|
@@ -6,6 +6,29 @@ module Privy
|
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias { T.any(Privy::KYCSubmitData, Privy::Internal::AnyHash) }
|
|
8
8
|
|
|
9
|
+
# Primary purpose of the individual's account, as one of the provider's
|
|
10
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
11
|
+
sig { returns(T.nilable(String)) }
|
|
12
|
+
attr_reader :account_purpose
|
|
13
|
+
|
|
14
|
+
sig { params(account_purpose: String).void }
|
|
15
|
+
attr_writer :account_purpose
|
|
16
|
+
|
|
17
|
+
# Free-text account purpose, required by the provider when `account_purpose` is
|
|
18
|
+
# `other`.
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_reader :account_purpose_other
|
|
21
|
+
|
|
22
|
+
sig { params(account_purpose_other: String).void }
|
|
23
|
+
attr_writer :account_purpose_other
|
|
24
|
+
|
|
25
|
+
# Whether the individual is acting as an intermediary for a third party.
|
|
26
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
27
|
+
attr_reader :acting_as_intermediary
|
|
28
|
+
|
|
29
|
+
sig { params(acting_as_intermediary: T::Boolean).void }
|
|
30
|
+
attr_writer :acting_as_intermediary
|
|
31
|
+
|
|
9
32
|
# Date of birth in YYYY-MM-DD format.
|
|
10
33
|
sig { returns(T.nilable(String)) }
|
|
11
34
|
attr_reader :date_of_birth
|
|
@@ -20,6 +43,22 @@ module Privy
|
|
|
20
43
|
sig { params(email: String).void }
|
|
21
44
|
attr_writer :email
|
|
22
45
|
|
|
46
|
+
# The individual's employment status, as one of the provider's
|
|
47
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
48
|
+
sig { returns(T.nilable(String)) }
|
|
49
|
+
attr_reader :employment_status
|
|
50
|
+
|
|
51
|
+
sig { params(employment_status: String).void }
|
|
52
|
+
attr_writer :employment_status
|
|
53
|
+
|
|
54
|
+
# The individual's expected monthly payments, as one of the provider's
|
|
55
|
+
# [USD buckets](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
56
|
+
sig { returns(T.nilable(String)) }
|
|
57
|
+
attr_reader :expected_monthly_payments_usd
|
|
58
|
+
|
|
59
|
+
sig { params(expected_monthly_payments_usd: String).void }
|
|
60
|
+
attr_writer :expected_monthly_payments_usd
|
|
61
|
+
|
|
23
62
|
# Legal first name.
|
|
24
63
|
sig { returns(T.nilable(String)) }
|
|
25
64
|
attr_reader :first_name
|
|
@@ -60,6 +99,14 @@ module Privy
|
|
|
60
99
|
sig { params(middle_name: String).void }
|
|
61
100
|
attr_writer :middle_name
|
|
62
101
|
|
|
102
|
+
# The individual's most recent occupation, as an ISCO code, passed through to the
|
|
103
|
+
# provider.
|
|
104
|
+
sig { returns(T.nilable(String)) }
|
|
105
|
+
attr_reader :most_recent_occupation
|
|
106
|
+
|
|
107
|
+
sig { params(most_recent_occupation: String).void }
|
|
108
|
+
attr_writer :most_recent_occupation
|
|
109
|
+
|
|
63
110
|
# ISO 3166-1 alpha-3 codes for all nationalities held.
|
|
64
111
|
sig { returns(T.nilable(T::Array[String])) }
|
|
65
112
|
attr_reader :nationalities
|
|
@@ -99,6 +146,14 @@ module Privy
|
|
|
99
146
|
end
|
|
100
147
|
attr_writer :residential_address
|
|
101
148
|
|
|
149
|
+
# Primary source of the individual's funds, as one of the provider's
|
|
150
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
151
|
+
sig { returns(T.nilable(String)) }
|
|
152
|
+
attr_reader :source_of_funds
|
|
153
|
+
|
|
154
|
+
sig { params(source_of_funds: String).void }
|
|
155
|
+
attr_writer :source_of_funds
|
|
156
|
+
|
|
102
157
|
# Stripe Link shared data ID that supplies name, date of birth, address, and US
|
|
103
158
|
# SSN (omit those fields); retrieval errors surface in endorsements[].issues.
|
|
104
159
|
sig { returns(T.nilable(String)) }
|
|
@@ -188,19 +243,26 @@ module Privy
|
|
|
188
243
|
# KYC verification data for headless submission.
|
|
189
244
|
sig do
|
|
190
245
|
params(
|
|
246
|
+
account_purpose: String,
|
|
247
|
+
account_purpose_other: String,
|
|
248
|
+
acting_as_intermediary: T::Boolean,
|
|
191
249
|
date_of_birth: String,
|
|
192
250
|
email: String,
|
|
251
|
+
employment_status: String,
|
|
252
|
+
expected_monthly_payments_usd: String,
|
|
193
253
|
first_name: String,
|
|
194
254
|
identifying_information:
|
|
195
255
|
T::Array[Privy::VerificationDocument::OrHash],
|
|
196
256
|
kyc_screen: Privy::KyxScreen::OrHash,
|
|
197
257
|
last_name: String,
|
|
198
258
|
middle_name: String,
|
|
259
|
+
most_recent_occupation: String,
|
|
199
260
|
nationalities: T::Array[String],
|
|
200
261
|
nonresident_alien_attestation: T::Boolean,
|
|
201
262
|
ofac_screen: Privy::KyxScreen::OrHash,
|
|
202
263
|
phone: String,
|
|
203
264
|
residential_address: Privy::VerificationAddress::OrHash,
|
|
265
|
+
source_of_funds: String,
|
|
204
266
|
stripe_link_shared_data_id: String,
|
|
205
267
|
transliterated_first_name: String,
|
|
206
268
|
transliterated_last_name: String,
|
|
@@ -215,10 +277,24 @@ module Privy
|
|
|
215
277
|
).returns(T.attached_class)
|
|
216
278
|
end
|
|
217
279
|
def self.new(
|
|
280
|
+
# Primary purpose of the individual's account, as one of the provider's
|
|
281
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
282
|
+
account_purpose: nil,
|
|
283
|
+
# Free-text account purpose, required by the provider when `account_purpose` is
|
|
284
|
+
# `other`.
|
|
285
|
+
account_purpose_other: nil,
|
|
286
|
+
# Whether the individual is acting as an intermediary for a third party.
|
|
287
|
+
acting_as_intermediary: nil,
|
|
218
288
|
# Date of birth in YYYY-MM-DD format.
|
|
219
289
|
date_of_birth: nil,
|
|
220
290
|
# Email address.
|
|
221
291
|
email: nil,
|
|
292
|
+
# The individual's employment status, as one of the provider's
|
|
293
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
294
|
+
employment_status: nil,
|
|
295
|
+
# The individual's expected monthly payments, as one of the provider's
|
|
296
|
+
# [USD buckets](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
297
|
+
expected_monthly_payments_usd: nil,
|
|
222
298
|
# Legal first name.
|
|
223
299
|
first_name: nil,
|
|
224
300
|
# Identifying documents.
|
|
@@ -230,6 +306,9 @@ module Privy
|
|
|
230
306
|
last_name: nil,
|
|
231
307
|
# Legal middle name.
|
|
232
308
|
middle_name: nil,
|
|
309
|
+
# The individual's most recent occupation, as an ISCO code, passed through to the
|
|
310
|
+
# provider.
|
|
311
|
+
most_recent_occupation: nil,
|
|
233
312
|
# ISO 3166-1 alpha-3 codes for all nationalities held.
|
|
234
313
|
nationalities: nil,
|
|
235
314
|
# Attests the user is a nonresident alien to satisfy identification without a US
|
|
@@ -242,6 +321,9 @@ module Privy
|
|
|
242
321
|
phone: nil,
|
|
243
322
|
# A postal address used in KYC and KYB data submission.
|
|
244
323
|
residential_address: nil,
|
|
324
|
+
# Primary source of the individual's funds, as one of the provider's
|
|
325
|
+
# [accepted values](https://apidocs.bridge.xyz/platform/customers/customers/api).
|
|
326
|
+
source_of_funds: nil,
|
|
245
327
|
# Stripe Link shared data ID that supplies name, date of birth, address, and US
|
|
246
328
|
# SSN (omit those fields); retrieval errors surface in endorsements[].issues.
|
|
247
329
|
stripe_link_shared_data_id: nil,
|
|
@@ -268,18 +350,25 @@ module Privy
|
|
|
268
350
|
sig do
|
|
269
351
|
override.returns(
|
|
270
352
|
{
|
|
353
|
+
account_purpose: String,
|
|
354
|
+
account_purpose_other: String,
|
|
355
|
+
acting_as_intermediary: T::Boolean,
|
|
271
356
|
date_of_birth: String,
|
|
272
357
|
email: String,
|
|
358
|
+
employment_status: String,
|
|
359
|
+
expected_monthly_payments_usd: String,
|
|
273
360
|
first_name: String,
|
|
274
361
|
identifying_information: T::Array[Privy::VerificationDocument],
|
|
275
362
|
kyc_screen: Privy::KyxScreen,
|
|
276
363
|
last_name: String,
|
|
277
364
|
middle_name: String,
|
|
365
|
+
most_recent_occupation: String,
|
|
278
366
|
nationalities: T::Array[String],
|
|
279
367
|
nonresident_alien_attestation: T::Boolean,
|
|
280
368
|
ofac_screen: Privy::KyxScreen,
|
|
281
369
|
phone: String,
|
|
282
370
|
residential_address: Privy::VerificationAddress,
|
|
371
|
+
source_of_funds: String,
|
|
283
372
|
stripe_link_shared_data_id: String,
|
|
284
373
|
transliterated_first_name: String,
|
|
285
374
|
transliterated_last_name: String,
|
|
@@ -11,9 +11,11 @@ module Privy
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Items in this page.
|
|
14
15
|
sig { returns(T::Array[Privy::CryptoDepositAddressRoute]) }
|
|
15
16
|
attr_accessor :data
|
|
16
17
|
|
|
18
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
17
19
|
sig { returns(T.nilable(String)) }
|
|
18
20
|
attr_accessor :next_cursor
|
|
19
21
|
|
|
@@ -24,7 +26,12 @@ module Privy
|
|
|
24
26
|
next_cursor: T.nilable(String)
|
|
25
27
|
).returns(T.attached_class)
|
|
26
28
|
end
|
|
27
|
-
def self.new(
|
|
29
|
+
def self.new(
|
|
30
|
+
# Items in this page.
|
|
31
|
+
data:,
|
|
32
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
33
|
+
next_cursor:
|
|
34
|
+
)
|
|
28
35
|
end
|
|
29
36
|
|
|
30
37
|
sig do
|
|
@@ -8,9 +8,11 @@ module Privy
|
|
|
8
8
|
T.any(Privy::OrganizationsListResponse, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# Items in this page.
|
|
11
12
|
sig { returns(T::Array[Privy::Organization]) }
|
|
12
13
|
attr_accessor :data
|
|
13
14
|
|
|
15
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
14
16
|
sig { returns(T.nilable(String)) }
|
|
15
17
|
attr_accessor :next_cursor
|
|
16
18
|
|
|
@@ -21,7 +23,12 @@ module Privy
|
|
|
21
23
|
next_cursor: T.nilable(String)
|
|
22
24
|
).returns(T.attached_class)
|
|
23
25
|
end
|
|
24
|
-
def self.new(
|
|
26
|
+
def self.new(
|
|
27
|
+
# Items in this page.
|
|
28
|
+
data:,
|
|
29
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
30
|
+
next_cursor:
|
|
31
|
+
)
|
|
25
32
|
end
|
|
26
33
|
|
|
27
34
|
sig do
|
|
@@ -12,7 +12,7 @@ module Privy
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
#
|
|
15
|
+
# Items in this page.
|
|
16
16
|
sig { returns(T::Array[Privy::ConditionSet]) }
|
|
17
17
|
attr_accessor :data
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ module Privy
|
|
|
28
28
|
).returns(T.attached_class)
|
|
29
29
|
end
|
|
30
30
|
def self.new(
|
|
31
|
-
#
|
|
31
|
+
# Items in this page.
|
|
32
32
|
data:,
|
|
33
33
|
# Cursor for the next page. Null when there are no further pages.
|
|
34
34
|
next_cursor:
|
|
@@ -8,7 +8,7 @@ module Privy
|
|
|
8
8
|
T.any(Privy::PoliciesResponse, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Items in this page.
|
|
12
12
|
sig { returns(T::Array[Privy::PolicyListItem]) }
|
|
13
13
|
attr_accessor :data
|
|
14
14
|
|
|
@@ -24,7 +24,7 @@ module Privy
|
|
|
24
24
|
).returns(T.attached_class)
|
|
25
25
|
end
|
|
26
26
|
def self.new(
|
|
27
|
-
#
|
|
27
|
+
# Items in this page.
|
|
28
28
|
data:,
|
|
29
29
|
# Cursor for the next page. Null when there are no further pages.
|
|
30
30
|
next_cursor:
|
data/rbi/privy/models/policy.rbi
CHANGED
|
@@ -5,8 +5,7 @@ module Privy
|
|
|
5
5
|
class Policy < Privy::Internal::Type::BaseModel
|
|
6
6
|
OrHash = T.type_alias { T.any(Privy::Policy, Privy::Internal::AnyHash) }
|
|
7
7
|
|
|
8
|
-
#
|
|
9
|
-
# the policy in the future.
|
|
8
|
+
# A unique identifier for a policy.
|
|
10
9
|
sig { returns(String) }
|
|
11
10
|
attr_accessor :id
|
|
12
11
|
|
|
@@ -46,8 +45,7 @@ module Privy
|
|
|
46
45
|
).returns(T.attached_class)
|
|
47
46
|
end
|
|
48
47
|
def self.new(
|
|
49
|
-
#
|
|
50
|
-
# the policy in the future.
|
|
48
|
+
# A unique identifier for a policy.
|
|
51
49
|
id:,
|
|
52
50
|
# The wallet chain types.
|
|
53
51
|
chain_type:,
|
|
@@ -11,6 +11,7 @@ module Privy
|
|
|
11
11
|
T.any(Privy::PolicyCreateRuleParams, Privy::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A unique identifier for a policy.
|
|
14
15
|
sig { returns(String) }
|
|
15
16
|
attr_accessor :policy_id
|
|
16
17
|
|
|
@@ -39,6 +40,7 @@ module Privy
|
|
|
39
40
|
).returns(T.attached_class)
|
|
40
41
|
end
|
|
41
42
|
def self.new(
|
|
43
|
+
# A unique identifier for a policy.
|
|
42
44
|
policy_id:,
|
|
43
45
|
# Request authorization signature. If multiple signatures are required, they
|
|
44
46
|
# should be comma separated.
|
|
@@ -11,6 +11,7 @@ module Privy
|
|
|
11
11
|
T.any(Privy::PolicyDeleteParams, Privy::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A unique identifier for a policy.
|
|
14
15
|
sig { returns(String) }
|
|
15
16
|
attr_accessor :policy_id
|
|
16
17
|
|
|
@@ -39,6 +40,7 @@ module Privy
|
|
|
39
40
|
).returns(T.attached_class)
|
|
40
41
|
end
|
|
41
42
|
def self.new(
|
|
43
|
+
# A unique identifier for a policy.
|
|
42
44
|
policy_id:,
|
|
43
45
|
# Request authorization signature. If multiple signatures are required, they
|
|
44
46
|
# should be comma separated.
|
|
@@ -11,6 +11,7 @@ module Privy
|
|
|
11
11
|
T.any(Privy::PolicyDeleteRuleParams, Privy::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A unique identifier for a policy.
|
|
14
15
|
sig { returns(String) }
|
|
15
16
|
attr_accessor :policy_id
|
|
16
17
|
|
|
@@ -43,6 +44,7 @@ module Privy
|
|
|
43
44
|
).returns(T.attached_class)
|
|
44
45
|
end
|
|
45
46
|
def self.new(
|
|
47
|
+
# A unique identifier for a policy.
|
|
46
48
|
policy_id:,
|
|
47
49
|
rule_id:,
|
|
48
50
|
# Request authorization signature. If multiple signatures are required, they
|
|
@@ -9,6 +9,7 @@ module Privy
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias { T.any(Privy::PolicyGetParams, Privy::Internal::AnyHash) }
|
|
11
11
|
|
|
12
|
+
# A unique identifier for a policy.
|
|
12
13
|
sig { returns(String) }
|
|
13
14
|
attr_accessor :policy_id
|
|
14
15
|
|
|
@@ -18,7 +19,11 @@ module Privy
|
|
|
18
19
|
request_options: Privy::RequestOptions::OrHash
|
|
19
20
|
).returns(T.attached_class)
|
|
20
21
|
end
|
|
21
|
-
def self.new(
|
|
22
|
+
def self.new(
|
|
23
|
+
# A unique identifier for a policy.
|
|
24
|
+
policy_id:,
|
|
25
|
+
request_options: {}
|
|
26
|
+
)
|
|
22
27
|
end
|
|
23
28
|
|
|
24
29
|
sig do
|
|
@@ -11,6 +11,7 @@ module Privy
|
|
|
11
11
|
T.any(Privy::PolicyGetRuleParams, Privy::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A unique identifier for a policy.
|
|
14
15
|
sig { returns(String) }
|
|
15
16
|
attr_accessor :policy_id
|
|
16
17
|
|
|
@@ -24,7 +25,12 @@ module Privy
|
|
|
24
25
|
request_options: Privy::RequestOptions::OrHash
|
|
25
26
|
).returns(T.attached_class)
|
|
26
27
|
end
|
|
27
|
-
def self.new(
|
|
28
|
+
def self.new(
|
|
29
|
+
# A unique identifier for a policy.
|
|
30
|
+
policy_id:,
|
|
31
|
+
rule_id:,
|
|
32
|
+
request_options: {}
|
|
33
|
+
)
|
|
28
34
|
end
|
|
29
35
|
|
|
30
36
|
sig do
|
|
@@ -6,8 +6,7 @@ module Privy
|
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias { T.any(Privy::PolicyListItem, Privy::Internal::AnyHash) }
|
|
8
8
|
|
|
9
|
-
#
|
|
10
|
-
# the policy in the future.
|
|
9
|
+
# A unique identifier for a policy.
|
|
11
10
|
sig { returns(String) }
|
|
12
11
|
attr_accessor :id
|
|
13
12
|
|
|
@@ -43,8 +42,7 @@ module Privy
|
|
|
43
42
|
).returns(T.attached_class)
|
|
44
43
|
end
|
|
45
44
|
def self.new(
|
|
46
|
-
#
|
|
47
|
-
# the policy in the future.
|
|
45
|
+
# A unique identifier for a policy.
|
|
48
46
|
id:,
|
|
49
47
|
# The wallet chain types.
|
|
50
48
|
chain_type:,
|
|
@@ -8,12 +8,16 @@ module Privy
|
|
|
8
8
|
T.any(Privy::PolicyRequestBody, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
sig { returns(String) }
|
|
12
13
|
attr_accessor :policy_id
|
|
13
14
|
|
|
14
15
|
# Unique ID of the policy to take actions on.
|
|
15
16
|
sig { params(policy_id: String).returns(T.attached_class) }
|
|
16
|
-
def self.new(
|
|
17
|
+
def self.new(
|
|
18
|
+
# A unique identifier for a policy.
|
|
19
|
+
policy_id:
|
|
20
|
+
)
|
|
17
21
|
end
|
|
18
22
|
|
|
19
23
|
sig { override.returns({ policy_id: String }) }
|
|
@@ -8,6 +8,7 @@ module Privy
|
|
|
8
8
|
T.any(Privy::PolicyRuleRequestParams, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# A unique identifier for a policy.
|
|
11
12
|
sig { returns(String) }
|
|
12
13
|
attr_accessor :policy_id
|
|
13
14
|
|
|
@@ -18,7 +19,11 @@ module Privy
|
|
|
18
19
|
sig do
|
|
19
20
|
params(policy_id: String, rule_id: String).returns(T.attached_class)
|
|
20
21
|
end
|
|
21
|
-
def self.new(
|
|
22
|
+
def self.new(
|
|
23
|
+
# A unique identifier for a policy.
|
|
24
|
+
policy_id:,
|
|
25
|
+
rule_id:
|
|
26
|
+
)
|
|
22
27
|
end
|
|
23
28
|
|
|
24
29
|
sig { override.returns({ policy_id: String, rule_id: String }) }
|
|
@@ -11,6 +11,7 @@ module Privy
|
|
|
11
11
|
T.any(Privy::PolicyUpdateParams, Privy::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A unique identifier for a policy.
|
|
14
15
|
sig { returns(String) }
|
|
15
16
|
attr_accessor :policy_id
|
|
16
17
|
|
|
@@ -76,6 +77,7 @@ module Privy
|
|
|
76
77
|
).returns(T.attached_class)
|
|
77
78
|
end
|
|
78
79
|
def self.new(
|
|
80
|
+
# A unique identifier for a policy.
|
|
79
81
|
policy_id:,
|
|
80
82
|
# Name to assign to the policy, up to 100 characters.
|
|
81
83
|
name: nil,
|
|
@@ -11,6 +11,7 @@ module Privy
|
|
|
11
11
|
T.any(Privy::PolicyUpdateRuleParams, Privy::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# A unique identifier for a policy.
|
|
14
15
|
sig { returns(String) }
|
|
15
16
|
attr_accessor :policy_id
|
|
16
17
|
|
|
@@ -43,6 +44,7 @@ module Privy
|
|
|
43
44
|
).returns(T.attached_class)
|
|
44
45
|
end
|
|
45
46
|
def self.new(
|
|
47
|
+
# A unique identifier for a policy.
|
|
46
48
|
policy_id:,
|
|
47
49
|
rule_id:,
|
|
48
50
|
# Request authorization signature. If multiple signatures are required, they
|
|
@@ -57,8 +57,24 @@ module Privy
|
|
|
57
57
|
sig { returns(String) }
|
|
58
58
|
attr_accessor :wallet_id
|
|
59
59
|
|
|
60
|
-
#
|
|
61
|
-
#
|
|
60
|
+
# Unix timestamp in milliseconds when the provider emitted the event of the
|
|
61
|
+
# change; absent when no provider event reported it.
|
|
62
|
+
sig { returns(T.nilable(Integer)) }
|
|
63
|
+
attr_reader :emitted_at
|
|
64
|
+
|
|
65
|
+
sig { params(emitted_at: Integer).void }
|
|
66
|
+
attr_writer :emitted_at
|
|
67
|
+
|
|
68
|
+
# The provider's sequence number of the change, higher for later changes to the
|
|
69
|
+
# resource; absent when no provider event reported it.
|
|
70
|
+
sig { returns(T.nilable(Integer)) }
|
|
71
|
+
attr_reader :sequence
|
|
72
|
+
|
|
73
|
+
sig { params(sequence: Integer).void }
|
|
74
|
+
attr_writer :sequence
|
|
75
|
+
|
|
76
|
+
# Payload for the tmmf.wallet.updated webhook event: the status of a tMMF wallet
|
|
77
|
+
# with the provider changed.
|
|
62
78
|
sig do
|
|
63
79
|
params(
|
|
64
80
|
address: String,
|
|
@@ -73,7 +89,9 @@ module Privy
|
|
|
73
89
|
type: Privy::TmmfWalletUpdatedWebhookPayload::Type::OrSymbol,
|
|
74
90
|
updated_at: Integer,
|
|
75
91
|
user_id: String,
|
|
76
|
-
wallet_id: String
|
|
92
|
+
wallet_id: String,
|
|
93
|
+
emitted_at: Integer,
|
|
94
|
+
sequence: Integer
|
|
77
95
|
).returns(T.attached_class)
|
|
78
96
|
end
|
|
79
97
|
def self.new(
|
|
@@ -98,7 +116,13 @@ module Privy
|
|
|
98
116
|
# ID of the Privy user the wallet is registered for.
|
|
99
117
|
user_id:,
|
|
100
118
|
# ID of the Privy wallet registered to trade and hold fund shares.
|
|
101
|
-
wallet_id
|
|
119
|
+
wallet_id:,
|
|
120
|
+
# Unix timestamp in milliseconds when the provider emitted the event of the
|
|
121
|
+
# change; absent when no provider event reported it.
|
|
122
|
+
emitted_at: nil,
|
|
123
|
+
# The provider's sequence number of the change, higher for later changes to the
|
|
124
|
+
# resource; absent when no provider event reported it.
|
|
125
|
+
sequence: nil
|
|
102
126
|
)
|
|
103
127
|
end
|
|
104
128
|
|
|
@@ -115,7 +139,9 @@ module Privy
|
|
|
115
139
|
type: Privy::TmmfWalletUpdatedWebhookPayload::Type::TaggedSymbol,
|
|
116
140
|
updated_at: Integer,
|
|
117
141
|
user_id: String,
|
|
118
|
-
wallet_id: String
|
|
142
|
+
wallet_id: String,
|
|
143
|
+
emitted_at: Integer,
|
|
144
|
+
sequence: Integer
|
|
119
145
|
}
|
|
120
146
|
)
|
|
121
147
|
end
|
|
@@ -11,9 +11,11 @@ module Privy
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Items in this page.
|
|
14
15
|
sig { returns(T::Array[Privy::WalletAutomationExecutionResponse]) }
|
|
15
16
|
attr_accessor :data
|
|
16
17
|
|
|
18
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
17
19
|
sig { returns(T.nilable(String)) }
|
|
18
20
|
attr_accessor :next_cursor
|
|
19
21
|
|
|
@@ -24,7 +26,12 @@ module Privy
|
|
|
24
26
|
next_cursor: T.nilable(String)
|
|
25
27
|
).returns(T.attached_class)
|
|
26
28
|
end
|
|
27
|
-
def self.new(
|
|
29
|
+
def self.new(
|
|
30
|
+
# Items in this page.
|
|
31
|
+
data:,
|
|
32
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
33
|
+
next_cursor:
|
|
34
|
+
)
|
|
28
35
|
end
|
|
29
36
|
|
|
30
37
|
sig do
|
|
@@ -8,9 +8,11 @@ module Privy
|
|
|
8
8
|
T.any(Privy::WalletAutomationListResponse, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# Items in this page.
|
|
11
12
|
sig { returns(T::Array[Privy::WalletAutomationResponse]) }
|
|
12
13
|
attr_accessor :data
|
|
13
14
|
|
|
15
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
14
16
|
sig { returns(T.nilable(String)) }
|
|
15
17
|
attr_accessor :next_cursor
|
|
16
18
|
|
|
@@ -21,7 +23,12 @@ module Privy
|
|
|
21
23
|
next_cursor: T.nilable(String)
|
|
22
24
|
).returns(T.attached_class)
|
|
23
25
|
end
|
|
24
|
-
def self.new(
|
|
26
|
+
def self.new(
|
|
27
|
+
# Items in this page.
|
|
28
|
+
data:,
|
|
29
|
+
# Cursor for the next page. Null when there are no further pages.
|
|
30
|
+
next_cursor:
|
|
31
|
+
)
|
|
25
32
|
end
|
|
26
33
|
|
|
27
34
|
sig do
|
|
@@ -26,6 +26,7 @@ module Privy
|
|
|
26
26
|
TON = T.let(:ton, Privy::WalletChainType::TaggedSymbol)
|
|
27
27
|
STARKNET = T.let(:starknet, Privy::WalletChainType::TaggedSymbol)
|
|
28
28
|
XRPL = T.let(:xrpl, Privy::WalletChainType::TaggedSymbol)
|
|
29
|
+
CANTON = T.let(:canton, Privy::WalletChainType::TaggedSymbol)
|
|
29
30
|
SPARK = T.let(:spark, Privy::WalletChainType::TaggedSymbol)
|
|
30
31
|
|
|
31
32
|
sig { override.returns(T::Array[Privy::WalletChainType::TaggedSymbol]) }
|