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
|
@@ -101,14 +101,12 @@ module Privy
|
|
|
101
101
|
)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
# Request body for updating a wallet. `owner` and `owner_id` are mutually
|
|
105
|
+
# exclusive.
|
|
106
|
+
sig { returns(Privy::WalletUpdateRequestBody) }
|
|
105
107
|
attr_reader :body
|
|
106
108
|
|
|
107
|
-
sig
|
|
108
|
-
params(
|
|
109
|
-
body: Privy::WalletIntentResponse::RequestDetails::Body::OrHash
|
|
110
|
-
).void
|
|
111
|
-
end
|
|
109
|
+
sig { params(body: Privy::WalletUpdateRequestBody::OrHash).void }
|
|
112
110
|
attr_writer :body
|
|
113
111
|
|
|
114
112
|
sig do
|
|
@@ -124,19 +122,25 @@ module Privy
|
|
|
124
122
|
# The original wallet update request that would be sent to the wallet endpoint
|
|
125
123
|
sig do
|
|
126
124
|
params(
|
|
127
|
-
body: Privy::
|
|
125
|
+
body: Privy::WalletUpdateRequestBody::OrHash,
|
|
128
126
|
method_:
|
|
129
127
|
Privy::WalletIntentResponse::RequestDetails::Method::OrSymbol,
|
|
130
128
|
url: String
|
|
131
129
|
).returns(T.attached_class)
|
|
132
130
|
end
|
|
133
|
-
def self.new(
|
|
131
|
+
def self.new(
|
|
132
|
+
# Request body for updating a wallet. `owner` and `owner_id` are mutually
|
|
133
|
+
# exclusive.
|
|
134
|
+
body:,
|
|
135
|
+
method_:,
|
|
136
|
+
url:
|
|
137
|
+
)
|
|
134
138
|
end
|
|
135
139
|
|
|
136
140
|
sig do
|
|
137
141
|
override.returns(
|
|
138
142
|
{
|
|
139
|
-
body: Privy::
|
|
143
|
+
body: Privy::WalletUpdateRequestBody,
|
|
140
144
|
method_:
|
|
141
145
|
Privy::WalletIntentResponse::RequestDetails::Method::TaggedSymbol,
|
|
142
146
|
url: String
|
|
@@ -146,120 +150,6 @@ module Privy
|
|
|
146
150
|
def to_hash
|
|
147
151
|
end
|
|
148
152
|
|
|
149
|
-
class Body < Privy::Internal::Type::BaseModel
|
|
150
|
-
OrHash =
|
|
151
|
-
T.type_alias do
|
|
152
|
-
T.any(
|
|
153
|
-
Privy::WalletIntentResponse::RequestDetails::Body,
|
|
154
|
-
Privy::Internal::AnyHash
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
# Additional signers for the wallet.
|
|
159
|
-
sig { returns(T.nilable(T::Array[Privy::AdditionalSignerItemInput])) }
|
|
160
|
-
attr_reader :additional_signers
|
|
161
|
-
|
|
162
|
-
sig do
|
|
163
|
-
params(
|
|
164
|
-
additional_signers:
|
|
165
|
-
T::Array[Privy::AdditionalSignerItemInput::OrHash]
|
|
166
|
-
).void
|
|
167
|
-
end
|
|
168
|
-
attr_writer :additional_signers
|
|
169
|
-
|
|
170
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
171
|
-
attr_reader :authorization_key_ids
|
|
172
|
-
|
|
173
|
-
sig { params(authorization_key_ids: T::Array[String]).void }
|
|
174
|
-
attr_writer :authorization_key_ids
|
|
175
|
-
|
|
176
|
-
sig { returns(T.nilable(Float)) }
|
|
177
|
-
attr_reader :authorization_threshold
|
|
178
|
-
|
|
179
|
-
sig { params(authorization_threshold: Float).void }
|
|
180
|
-
attr_writer :authorization_threshold
|
|
181
|
-
|
|
182
|
-
sig { returns(T.nilable(String)) }
|
|
183
|
-
attr_accessor :display_name
|
|
184
|
-
|
|
185
|
-
sig { returns(T.nilable(String)) }
|
|
186
|
-
attr_reader :external_id
|
|
187
|
-
|
|
188
|
-
sig { params(external_id: String).void }
|
|
189
|
-
attr_writer :external_id
|
|
190
|
-
|
|
191
|
-
# The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
192
|
-
# null to remove the current owner.
|
|
193
|
-
sig { returns(T.nilable(Privy::OwnerInput::Variants)) }
|
|
194
|
-
attr_accessor :owner
|
|
195
|
-
|
|
196
|
-
# The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
197
|
-
# not specify an owner.
|
|
198
|
-
sig { returns(T.nilable(String)) }
|
|
199
|
-
attr_accessor :owner_id
|
|
200
|
-
|
|
201
|
-
# An optional list of up to one policy ID to enforce on the wallet.
|
|
202
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
203
|
-
attr_reader :policy_ids
|
|
204
|
-
|
|
205
|
-
sig { params(policy_ids: T::Array[String]).void }
|
|
206
|
-
attr_writer :policy_ids
|
|
207
|
-
|
|
208
|
-
sig do
|
|
209
|
-
params(
|
|
210
|
-
additional_signers:
|
|
211
|
-
T::Array[Privy::AdditionalSignerItemInput::OrHash],
|
|
212
|
-
authorization_key_ids: T::Array[String],
|
|
213
|
-
authorization_threshold: Float,
|
|
214
|
-
display_name: T.nilable(String),
|
|
215
|
-
external_id: String,
|
|
216
|
-
owner:
|
|
217
|
-
T.nilable(
|
|
218
|
-
T.any(
|
|
219
|
-
Privy::OwnerInputUser::OrHash,
|
|
220
|
-
Privy::OwnerInputPublicKey::OrHash
|
|
221
|
-
)
|
|
222
|
-
),
|
|
223
|
-
owner_id: T.nilable(String),
|
|
224
|
-
policy_ids: T::Array[String]
|
|
225
|
-
).returns(T.attached_class)
|
|
226
|
-
end
|
|
227
|
-
def self.new(
|
|
228
|
-
# Additional signers for the wallet.
|
|
229
|
-
additional_signers: nil,
|
|
230
|
-
authorization_key_ids: nil,
|
|
231
|
-
authorization_threshold: nil,
|
|
232
|
-
display_name: nil,
|
|
233
|
-
external_id: nil,
|
|
234
|
-
# The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
235
|
-
# null to remove the current owner.
|
|
236
|
-
owner: nil,
|
|
237
|
-
# The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
238
|
-
# not specify an owner.
|
|
239
|
-
owner_id: nil,
|
|
240
|
-
# An optional list of up to one policy ID to enforce on the wallet.
|
|
241
|
-
policy_ids: nil
|
|
242
|
-
)
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
sig do
|
|
246
|
-
override.returns(
|
|
247
|
-
{
|
|
248
|
-
additional_signers: T::Array[Privy::AdditionalSignerItemInput],
|
|
249
|
-
authorization_key_ids: T::Array[String],
|
|
250
|
-
authorization_threshold: Float,
|
|
251
|
-
display_name: T.nilable(String),
|
|
252
|
-
external_id: String,
|
|
253
|
-
owner: T.nilable(Privy::OwnerInput::Variants),
|
|
254
|
-
owner_id: T.nilable(String),
|
|
255
|
-
policy_ids: T::Array[String]
|
|
256
|
-
}
|
|
257
|
-
)
|
|
258
|
-
end
|
|
259
|
-
def to_hash
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
153
|
module Method
|
|
264
154
|
extend Privy::Internal::Type::Enum
|
|
265
155
|
|
|
@@ -34,11 +34,7 @@ module Privy
|
|
|
34
34
|
|
|
35
35
|
# The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
36
36
|
# null to remove the current owner.
|
|
37
|
-
sig
|
|
38
|
-
returns(
|
|
39
|
-
T.nilable(T.any(Privy::OwnerInputUser, Privy::OwnerInputPublicKey))
|
|
40
|
-
)
|
|
41
|
-
end
|
|
37
|
+
sig { returns(T.nilable(Privy::OwnerInput::Variants)) }
|
|
42
38
|
attr_accessor :owner
|
|
43
39
|
|
|
44
40
|
# The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
@@ -46,8 +42,7 @@ module Privy
|
|
|
46
42
|
sig { returns(T.nilable(String)) }
|
|
47
43
|
attr_accessor :owner_id
|
|
48
44
|
|
|
49
|
-
#
|
|
50
|
-
# per wallet.
|
|
45
|
+
# An optional list of up to one policy ID to enforce on the wallet.
|
|
51
46
|
sig { returns(T.nilable(T::Array[String])) }
|
|
52
47
|
attr_reader :policy_ids
|
|
53
48
|
|
|
@@ -88,8 +83,7 @@ module Privy
|
|
|
88
83
|
# The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
89
84
|
# not specify an owner.
|
|
90
85
|
owner_id: nil,
|
|
91
|
-
#
|
|
92
|
-
# per wallet.
|
|
86
|
+
# An optional list of up to one policy ID to enforce on the wallet.
|
|
93
87
|
policy_ids: nil
|
|
94
88
|
)
|
|
95
89
|
end
|
|
@@ -100,10 +94,7 @@ module Privy
|
|
|
100
94
|
additional_signers: T::Array[Privy::AdditionalSignerItemInput],
|
|
101
95
|
display_name: T.nilable(String),
|
|
102
96
|
external_id: String,
|
|
103
|
-
owner:
|
|
104
|
-
T.nilable(
|
|
105
|
-
T.any(Privy::OwnerInputUser, Privy::OwnerInputPublicKey)
|
|
106
|
-
),
|
|
97
|
+
owner: T.nilable(Privy::OwnerInput::Variants),
|
|
107
98
|
owner_id: T.nilable(String),
|
|
108
99
|
policy_ids: T::Array[String]
|
|
109
100
|
}
|
|
@@ -20,7 +20,7 @@ module Privy
|
|
|
20
20
|
sig { returns(String) }
|
|
21
21
|
attr_accessor :action_id
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# Include step-level details in the response.
|
|
24
24
|
sig do
|
|
25
25
|
returns(T.nilable(Privy::Wallets::WalletActionInclude::OrSymbol))
|
|
26
26
|
end
|
|
@@ -53,7 +53,7 @@ module Privy
|
|
|
53
53
|
wallet_id:,
|
|
54
54
|
# ID of the wallet action.
|
|
55
55
|
action_id:,
|
|
56
|
-
#
|
|
56
|
+
# Include step-level details in the response.
|
|
57
57
|
include: nil,
|
|
58
58
|
# Request authorization signature. If multiple signatures are required, they
|
|
59
59
|
# should be comma separated.
|
data/rbi/privy/models.rbi
CHANGED
|
@@ -37,8 +37,15 @@ module Privy
|
|
|
37
37
|
).returns(Privy::GasSpendResponseBody)
|
|
38
38
|
end
|
|
39
39
|
def get_gas_spend(
|
|
40
|
+
# Unix timestamp in milliseconds, exclusive. Must be greater than or equal to
|
|
41
|
+
# `start_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
42
|
+
# not exceed 30 days.
|
|
40
43
|
end_timestamp:,
|
|
44
|
+
# Unix timestamp in milliseconds, inclusive. Must be less than or equal to
|
|
45
|
+
# `end_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
46
|
+
# not exceed 30 days.
|
|
41
47
|
start_timestamp:,
|
|
48
|
+
# List of wallet IDs to query gas spend for. Maximum 100.
|
|
42
49
|
wallet_ids:,
|
|
43
50
|
request_options: {}
|
|
44
51
|
)
|
|
@@ -613,8 +613,7 @@ module Privy
|
|
|
613
613
|
# Body param: The key quorum ID to set as the owner of the resource. If you
|
|
614
614
|
# provide this, do not specify an owner.
|
|
615
615
|
owner_id: nil,
|
|
616
|
-
# Body param:
|
|
617
|
-
# is supported per wallet.
|
|
616
|
+
# Body param: An optional list of up to one policy ID to enforce on the wallet.
|
|
618
617
|
policy_ids: nil,
|
|
619
618
|
# Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
620
619
|
# representing the deadline by which the request must be processed.
|
|
@@ -69,7 +69,7 @@ module Privy
|
|
|
69
69
|
).returns(Privy::Policy)
|
|
70
70
|
end
|
|
71
71
|
def update(
|
|
72
|
-
# Path param
|
|
72
|
+
# Path param: A unique identifier for a policy.
|
|
73
73
|
policy_id,
|
|
74
74
|
# Body param: Name to assign to the policy, up to 100 characters.
|
|
75
75
|
name: nil,
|
|
@@ -117,6 +117,7 @@ module Privy
|
|
|
117
117
|
).returns(Privy::SuccessResponse)
|
|
118
118
|
end
|
|
119
119
|
def delete(
|
|
120
|
+
# A unique identifier for a policy.
|
|
120
121
|
policy_id,
|
|
121
122
|
# Request authorization signature. If multiple signatures are required, they
|
|
122
123
|
# should be comma separated.
|
|
@@ -165,7 +166,7 @@ module Privy
|
|
|
165
166
|
).returns(Privy::PolicyRuleResponse)
|
|
166
167
|
end
|
|
167
168
|
def create_rule(
|
|
168
|
-
# Path param
|
|
169
|
+
# Path param: A unique identifier for a policy.
|
|
169
170
|
policy_id,
|
|
170
171
|
# Body param: The action to take when a policy rule matches.
|
|
171
172
|
action:,
|
|
@@ -198,7 +199,7 @@ module Privy
|
|
|
198
199
|
def delete_rule(
|
|
199
200
|
# Path param
|
|
200
201
|
rule_id,
|
|
201
|
-
# Path param
|
|
202
|
+
# Path param: A unique identifier for a policy.
|
|
202
203
|
policy_id:,
|
|
203
204
|
# Header param: Request authorization signature. If multiple signatures are
|
|
204
205
|
# required, they should be comma separated.
|
|
@@ -217,7 +218,11 @@ module Privy
|
|
|
217
218
|
request_options: Privy::RequestOptions::OrHash
|
|
218
219
|
).returns(Privy::Policy)
|
|
219
220
|
end
|
|
220
|
-
def get(
|
|
221
|
+
def get(
|
|
222
|
+
# A unique identifier for a policy.
|
|
223
|
+
policy_id,
|
|
224
|
+
request_options: {}
|
|
225
|
+
)
|
|
221
226
|
end
|
|
222
227
|
|
|
223
228
|
# Get a rule by policy ID and rule ID.
|
|
@@ -228,7 +233,12 @@ module Privy
|
|
|
228
233
|
request_options: Privy::RequestOptions::OrHash
|
|
229
234
|
).returns(Privy::PolicyRuleResponse)
|
|
230
235
|
end
|
|
231
|
-
def get_rule(
|
|
236
|
+
def get_rule(
|
|
237
|
+
rule_id,
|
|
238
|
+
# A unique identifier for a policy.
|
|
239
|
+
policy_id:,
|
|
240
|
+
request_options: {}
|
|
241
|
+
)
|
|
232
242
|
end
|
|
233
243
|
|
|
234
244
|
# Update a rule by policy ID and rule ID.
|
|
@@ -271,7 +281,7 @@ module Privy
|
|
|
271
281
|
def update_rule(
|
|
272
282
|
# Path param
|
|
273
283
|
rule_id,
|
|
274
|
-
# Path param
|
|
284
|
+
# Path param: A unique identifier for a policy.
|
|
275
285
|
policy_id:,
|
|
276
286
|
# Body param: The action to take when a policy rule matches.
|
|
277
287
|
action:,
|
|
@@ -21,7 +21,7 @@ module Privy
|
|
|
21
21
|
action_id,
|
|
22
22
|
# Path param: ID of the wallet.
|
|
23
23
|
wallet_id:,
|
|
24
|
-
# Query param:
|
|
24
|
+
# Query param: Include step-level details in the response.
|
|
25
25
|
include: nil,
|
|
26
26
|
# Header param: Request authorization signature. If multiple signatures are
|
|
27
27
|
# required, they should be comma separated.
|
|
@@ -121,8 +121,7 @@ module Privy
|
|
|
121
121
|
# Body param: The key quorum ID to set as the owner of the resource. If you
|
|
122
122
|
# provide this, do not specify an owner.
|
|
123
123
|
owner_id: nil,
|
|
124
|
-
# Body param:
|
|
125
|
-
# is supported per wallet.
|
|
124
|
+
# Body param: An optional list of up to one policy ID to enforce on the wallet.
|
|
126
125
|
policy_ids: nil,
|
|
127
126
|
# Header param: Request authorization signature. If multiple signatures are
|
|
128
127
|
# required, they should be comma separated.
|
|
@@ -14,6 +14,7 @@ module Privy
|
|
|
14
14
|
| :ton
|
|
15
15
|
| :starknet
|
|
16
16
|
| :xrpl
|
|
17
|
+
| :canton
|
|
17
18
|
|
|
18
19
|
module CurveSigningChainType
|
|
19
20
|
extend Privy::Internal::Type::Enum
|
|
@@ -31,6 +32,7 @@ module Privy
|
|
|
31
32
|
TON: :ton
|
|
32
33
|
STARKNET: :starknet
|
|
33
34
|
XRPL: :xrpl
|
|
35
|
+
CANTON: :canton
|
|
34
36
|
|
|
35
37
|
def self?.values: -> ::Array[Privy::Models::curve_signing_chain_type]
|
|
36
38
|
end
|
|
@@ -14,6 +14,7 @@ module Privy
|
|
|
14
14
|
| :ton
|
|
15
15
|
| :starknet
|
|
16
16
|
| :xrpl
|
|
17
|
+
| :canton
|
|
17
18
|
| :spark
|
|
18
19
|
|
|
19
20
|
module ExtendedChainType
|
|
@@ -32,6 +33,7 @@ module Privy
|
|
|
32
33
|
TON: :ton
|
|
33
34
|
STARKNET: :starknet
|
|
34
35
|
XRPL: :xrpl
|
|
36
|
+
CANTON: :canton
|
|
35
37
|
SPARK: :spark
|
|
36
38
|
|
|
37
39
|
def self?.values: -> ::Array[Privy::Models::extended_chain_type]
|
|
@@ -2,18 +2,25 @@ module Privy
|
|
|
2
2
|
module Models
|
|
3
3
|
type kyc_submit_data =
|
|
4
4
|
{
|
|
5
|
+
account_purpose: String,
|
|
6
|
+
account_purpose_other: String,
|
|
7
|
+
acting_as_intermediary: bool,
|
|
5
8
|
date_of_birth: String,
|
|
6
9
|
email: String,
|
|
10
|
+
employment_status: String,
|
|
11
|
+
expected_monthly_payments_usd: String,
|
|
7
12
|
first_name: String,
|
|
8
13
|
identifying_information: ::Array[Privy::VerificationDocument],
|
|
9
14
|
kyc_screen: Privy::KyxScreen,
|
|
10
15
|
last_name: String,
|
|
11
16
|
middle_name: String,
|
|
17
|
+
most_recent_occupation: String,
|
|
12
18
|
nationalities: ::Array[String],
|
|
13
19
|
nonresident_alien_attestation: bool,
|
|
14
20
|
ofac_screen: Privy::KyxScreen,
|
|
15
21
|
phone: String,
|
|
16
22
|
residential_address: Privy::VerificationAddress,
|
|
23
|
+
source_of_funds: String,
|
|
17
24
|
stripe_link_shared_data_id: String,
|
|
18
25
|
transliterated_first_name: String,
|
|
19
26
|
transliterated_last_name: String,
|
|
@@ -25,6 +32,18 @@ module Privy
|
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
class KYCSubmitData < Privy::Internal::Type::BaseModel
|
|
35
|
+
attr_reader account_purpose: String?
|
|
36
|
+
|
|
37
|
+
def account_purpose=: (String) -> String
|
|
38
|
+
|
|
39
|
+
attr_reader account_purpose_other: String?
|
|
40
|
+
|
|
41
|
+
def account_purpose_other=: (String) -> String
|
|
42
|
+
|
|
43
|
+
attr_reader acting_as_intermediary: bool?
|
|
44
|
+
|
|
45
|
+
def acting_as_intermediary=: (bool) -> bool
|
|
46
|
+
|
|
28
47
|
attr_reader date_of_birth: String?
|
|
29
48
|
|
|
30
49
|
def date_of_birth=: (String) -> String
|
|
@@ -33,6 +52,14 @@ module Privy
|
|
|
33
52
|
|
|
34
53
|
def email=: (String) -> String
|
|
35
54
|
|
|
55
|
+
attr_reader employment_status: String?
|
|
56
|
+
|
|
57
|
+
def employment_status=: (String) -> String
|
|
58
|
+
|
|
59
|
+
attr_reader expected_monthly_payments_usd: String?
|
|
60
|
+
|
|
61
|
+
def expected_monthly_payments_usd=: (String) -> String
|
|
62
|
+
|
|
36
63
|
attr_reader first_name: String?
|
|
37
64
|
|
|
38
65
|
def first_name=: (String) -> String
|
|
@@ -55,6 +82,10 @@ module Privy
|
|
|
55
82
|
|
|
56
83
|
def middle_name=: (String) -> String
|
|
57
84
|
|
|
85
|
+
attr_reader most_recent_occupation: String?
|
|
86
|
+
|
|
87
|
+
def most_recent_occupation=: (String) -> String
|
|
88
|
+
|
|
58
89
|
attr_reader nationalities: ::Array[String]?
|
|
59
90
|
|
|
60
91
|
def nationalities=: (::Array[String]) -> ::Array[String]
|
|
@@ -77,6 +108,10 @@ module Privy
|
|
|
77
108
|
Privy::VerificationAddress
|
|
78
109
|
) -> Privy::VerificationAddress
|
|
79
110
|
|
|
111
|
+
attr_reader source_of_funds: String?
|
|
112
|
+
|
|
113
|
+
def source_of_funds=: (String) -> String
|
|
114
|
+
|
|
80
115
|
attr_reader stripe_link_shared_data_id: String?
|
|
81
116
|
|
|
82
117
|
def stripe_link_shared_data_id=: (String) -> String
|
|
@@ -118,18 +153,25 @@ module Privy
|
|
|
118
153
|
) -> Privy::Models::KYCSubmitData::verified_proof_of_address_at
|
|
119
154
|
|
|
120
155
|
def initialize: (
|
|
156
|
+
?account_purpose: String,
|
|
157
|
+
?account_purpose_other: String,
|
|
158
|
+
?acting_as_intermediary: bool,
|
|
121
159
|
?date_of_birth: String,
|
|
122
160
|
?email: String,
|
|
161
|
+
?employment_status: String,
|
|
162
|
+
?expected_monthly_payments_usd: String,
|
|
123
163
|
?first_name: String,
|
|
124
164
|
?identifying_information: ::Array[Privy::VerificationDocument],
|
|
125
165
|
?kyc_screen: Privy::KyxScreen,
|
|
126
166
|
?last_name: String,
|
|
127
167
|
?middle_name: String,
|
|
168
|
+
?most_recent_occupation: String,
|
|
128
169
|
?nationalities: ::Array[String],
|
|
129
170
|
?nonresident_alien_attestation: bool,
|
|
130
171
|
?ofac_screen: Privy::KyxScreen,
|
|
131
172
|
?phone: String,
|
|
132
173
|
?residential_address: Privy::VerificationAddress,
|
|
174
|
+
?source_of_funds: String,
|
|
133
175
|
?stripe_link_shared_data_id: String,
|
|
134
176
|
?transliterated_first_name: String,
|
|
135
177
|
?transliterated_last_name: String,
|
|
@@ -141,18 +183,25 @@ module Privy
|
|
|
141
183
|
) -> void
|
|
142
184
|
|
|
143
185
|
def to_hash: -> {
|
|
186
|
+
account_purpose: String,
|
|
187
|
+
account_purpose_other: String,
|
|
188
|
+
acting_as_intermediary: bool,
|
|
144
189
|
date_of_birth: String,
|
|
145
190
|
email: String,
|
|
191
|
+
employment_status: String,
|
|
192
|
+
expected_monthly_payments_usd: String,
|
|
146
193
|
first_name: String,
|
|
147
194
|
identifying_information: ::Array[Privy::VerificationDocument],
|
|
148
195
|
kyc_screen: Privy::KyxScreen,
|
|
149
196
|
last_name: String,
|
|
150
197
|
middle_name: String,
|
|
198
|
+
most_recent_occupation: String,
|
|
151
199
|
nationalities: ::Array[String],
|
|
152
200
|
nonresident_alien_attestation: bool,
|
|
153
201
|
ofac_screen: Privy::KyxScreen,
|
|
154
202
|
phone: String,
|
|
155
203
|
residential_address: Privy::VerificationAddress,
|
|
204
|
+
source_of_funds: String,
|
|
156
205
|
stripe_link_shared_data_id: String,
|
|
157
206
|
transliterated_first_name: String,
|
|
158
207
|
transliterated_last_name: String,
|
|
@@ -11,7 +11,9 @@ module Privy
|
|
|
11
11
|
type: Privy::Models::TmmfWalletUpdatedWebhookPayload::type_,
|
|
12
12
|
updated_at: Integer,
|
|
13
13
|
user_id: String,
|
|
14
|
-
wallet_id: String
|
|
14
|
+
wallet_id: String,
|
|
15
|
+
emitted_at: Integer,
|
|
16
|
+
sequence: Integer
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
class TmmfWalletUpdatedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
@@ -35,6 +37,14 @@ module Privy
|
|
|
35
37
|
|
|
36
38
|
attr_accessor wallet_id: String
|
|
37
39
|
|
|
40
|
+
attr_reader emitted_at: Integer?
|
|
41
|
+
|
|
42
|
+
def emitted_at=: (Integer) -> Integer
|
|
43
|
+
|
|
44
|
+
attr_reader sequence: Integer?
|
|
45
|
+
|
|
46
|
+
def sequence=: (Integer) -> Integer
|
|
47
|
+
|
|
38
48
|
def initialize: (
|
|
39
49
|
address: String,
|
|
40
50
|
chain: String,
|
|
@@ -45,7 +55,9 @@ module Privy
|
|
|
45
55
|
type: Privy::Models::TmmfWalletUpdatedWebhookPayload::type_,
|
|
46
56
|
updated_at: Integer,
|
|
47
57
|
user_id: String,
|
|
48
|
-
wallet_id: String
|
|
58
|
+
wallet_id: String,
|
|
59
|
+
?emitted_at: Integer,
|
|
60
|
+
?sequence: Integer
|
|
49
61
|
) -> void
|
|
50
62
|
|
|
51
63
|
def to_hash: -> {
|
|
@@ -58,7 +70,9 @@ module Privy
|
|
|
58
70
|
type: Privy::Models::TmmfWalletUpdatedWebhookPayload::type_,
|
|
59
71
|
updated_at: Integer,
|
|
60
72
|
user_id: String,
|
|
61
|
-
wallet_id: String
|
|
73
|
+
wallet_id: String,
|
|
74
|
+
emitted_at: Integer,
|
|
75
|
+
sequence: Integer
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
type type_ = :"tmmf.wallet.updated"
|
|
@@ -16,6 +16,7 @@ module Privy
|
|
|
16
16
|
| :ton
|
|
17
17
|
| :starknet
|
|
18
18
|
| :xrpl
|
|
19
|
+
| :canton
|
|
19
20
|
| :spark
|
|
20
21
|
|
|
21
22
|
module WalletChainType
|
|
@@ -36,6 +37,7 @@ module Privy
|
|
|
36
37
|
TON: :ton
|
|
37
38
|
STARKNET: :starknet
|
|
38
39
|
XRPL: :xrpl
|
|
40
|
+
CANTON: :canton
|
|
39
41
|
SPARK: :spark
|
|
40
42
|
|
|
41
43
|
def self?.values: -> ::Array[Privy::Models::wallet_chain_type]
|