privy_ruby 0.6.0 → 0.7.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 +8 -0
- data/README.md +1 -1
- data/lib/privy/models/email_mfa_method.rb +33 -0
- data/lib/privy/models/ethereum_secp_256k_1_sign_rpc_input_params.rb +2 -2
- data/lib/privy/models/ethereum_secp_256k_1_sign_rpc_response_data.rb +2 -2
- data/lib/privy/models/ethereum_send_calls_call.rb +2 -2
- data/lib/privy/models/ethereum_send_calls_rpc_input.rb +2 -2
- data/lib/privy/models/ethereum_send_transaction_rpc_input.rb +2 -2
- data/lib/privy/models/ethereum_sign_7702_authorization.rb +4 -4
- data/lib/privy/models/linked_mfa_method.rb +4 -1
- data/lib/privy/models/mfa_email_enroll_request_body.rb +23 -0
- data/lib/privy/models/mfa_email_init_enroll_input.rb +33 -0
- data/lib/privy/models/mfa_email_init_request_body.rb +19 -0
- data/lib/privy/models/mfa_email_init_verify_input.rb +27 -0
- data/lib/privy/models/mfa_email_verify_request_body.rb +17 -0
- data/lib/privy/models/mfa_method.rb +1 -0
- data/lib/privy/models/quantity.rb +1 -1
- data/lib/privy/models/raw_sign_hash_params.rb +2 -2
- data/lib/privy/models/raw_sign_response_data.rb +2 -2
- data/lib/privy/models/tempo_aa_authorization.rb +2 -2
- data/lib/privy/models/tempo_call.rb +2 -2
- data/lib/privy/models/tempo_fee_payer_signature.rb +4 -4
- data/lib/privy/models/unsigned_standard_ethereum_transaction.rb +2 -2
- data/lib/privy/models/user.rb +2 -2
- data/lib/privy/models/user_operation_input.rb +22 -22
- data/lib/privy/models.rb +12 -0
- data/lib/privy/version.rb +1 -1
- data/lib/privy.rb +6 -0
- data/rbi/privy/models/email_mfa_method.rbi +53 -0
- data/rbi/privy/models/ethereum_secp_256k_1_sign_rpc_input_params.rbi +2 -2
- data/rbi/privy/models/ethereum_secp_256k_1_sign_rpc_response_data.rbi +2 -2
- data/rbi/privy/models/ethereum_send_calls_call.rbi +2 -2
- data/rbi/privy/models/ethereum_send_calls_rpc_input.rbi +2 -2
- data/rbi/privy/models/ethereum_send_transaction_rpc_input.rbi +2 -2
- data/rbi/privy/models/ethereum_sign_7702_authorization.rbi +4 -4
- data/rbi/privy/models/linked_mfa_method.rbi +2 -1
- data/rbi/privy/models/mfa_email_enroll_request_body.rbi +29 -0
- data/rbi/privy/models/mfa_email_init_enroll_input.rbi +58 -0
- data/rbi/privy/models/mfa_email_init_request_body.rbi +21 -0
- data/rbi/privy/models/mfa_email_init_verify_input.rbi +51 -0
- data/rbi/privy/models/mfa_email_verify_request_body.rbi +24 -0
- data/rbi/privy/models/mfa_method.rbi +1 -0
- data/rbi/privy/models/raw_sign_hash_params.rbi +2 -2
- data/rbi/privy/models/raw_sign_response_data.rbi +2 -2
- data/rbi/privy/models/tempo_aa_authorization.rbi +2 -2
- data/rbi/privy/models/tempo_call.rbi +2 -2
- data/rbi/privy/models/tempo_fee_payer_signature.rbi +4 -4
- data/rbi/privy/models/unsigned_standard_ethereum_transaction.rbi +2 -2
- data/rbi/privy/models/user.rbi +2 -1
- data/rbi/privy/models/user_operation_input.rbi +22 -22
- data/rbi/privy/models.rbi +12 -0
- data/sig/privy/models/email_mfa_method.rbs +32 -0
- data/sig/privy/models/linked_mfa_method.rbs +4 -1
- data/sig/privy/models/mfa_email_enroll_request_body.rbs +15 -0
- data/sig/privy/models/mfa_email_init_enroll_input.rbs +35 -0
- data/sig/privy/models/mfa_email_init_request_body.rbs +12 -0
- data/sig/privy/models/mfa_email_init_verify_input.rbs +26 -0
- data/sig/privy/models/mfa_email_verify_request_body.rbs +13 -0
- data/sig/privy/models/mfa_method.rbs +2 -1
- data/sig/privy/models.rbs +12 -0
- metadata +20 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c82b0e50ec621b415bcb7bc1e4ded35b4775d968292691314327dfd5098bfa0c
|
|
4
|
+
data.tar.gz: ef68a60535831d5bea867e53ef601d9affbc12dd421952401de42ac548e8bd87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c2152123a4bddacb2f75215b228952900aa225a38a8884e9a5773a8c73e962263dee2aafd13f27c65f39618a2906ba2cc0d956e8068e318338cb99cfd0de6b9
|
|
7
|
+
data.tar.gz: b60fdcfc4817d95559bb08d58eedccb81169795fb56ece5fcb269673e71754b4d62d1e3128a7652db29902d33bbd996290195bee85c081a8cfcf2663b6bd86e1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.0 (2026-07-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.6.0...v0.7.0](https://github.com/privy-io/ruby-sdk/compare/v0.6.0...v0.7.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([2e2009e](https://github.com/privy-io/ruby-sdk/commit/2e2009e70fec4091485f25cc1902179f364eeb84))
|
|
10
|
+
|
|
3
11
|
## 0.6.0 (2026-07-22)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.5.0...v0.6.0](https://github.com/privy-io/ruby-sdk/compare/v0.5.0...v0.6.0)
|
data/README.md
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class EmailMfaMethod < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute type
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Privy::Models::EmailMfaMethod::Type]
|
|
9
|
+
required :type, enum: -> { Privy::EmailMfaMethod::Type }
|
|
10
|
+
|
|
11
|
+
# @!attribute verified_at
|
|
12
|
+
#
|
|
13
|
+
# @return [Float]
|
|
14
|
+
required :verified_at, Float
|
|
15
|
+
|
|
16
|
+
# @!method initialize(type:, verified_at:)
|
|
17
|
+
# An Email MFA method.
|
|
18
|
+
#
|
|
19
|
+
# @param type [Symbol, Privy::Models::EmailMfaMethod::Type]
|
|
20
|
+
# @param verified_at [Float]
|
|
21
|
+
|
|
22
|
+
# @see Privy::Models::EmailMfaMethod#type
|
|
23
|
+
module Type
|
|
24
|
+
extend Privy::Internal::Type::Enum
|
|
25
|
+
|
|
26
|
+
EMAIL = :email
|
|
27
|
+
|
|
28
|
+
# @!method self.values
|
|
29
|
+
# @return [Array<Symbol>]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -4,7 +4,7 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class EthereumSecp256k1SignRpcInputParams < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute hash_
|
|
7
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
7
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
8
8
|
# bytes).
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
@@ -16,7 +16,7 @@ module Privy
|
|
|
16
16
|
#
|
|
17
17
|
# Parameters for the EVM `secp256k1_sign` RPC.
|
|
18
18
|
#
|
|
19
|
-
# @param hash_ [String] A hex-encoded string prefixed with '0x', capped at
|
|
19
|
+
# @param hash_ [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
end
|
|
@@ -9,7 +9,7 @@ module Privy
|
|
|
9
9
|
required :encoding, enum: -> { Privy::EthereumSecp256k1SignRpcResponseData::Encoding }
|
|
10
10
|
|
|
11
11
|
# @!attribute signature
|
|
12
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
12
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
13
13
|
# bytes).
|
|
14
14
|
#
|
|
15
15
|
# @return [String]
|
|
@@ -23,7 +23,7 @@ module Privy
|
|
|
23
23
|
#
|
|
24
24
|
# @param encoding [Symbol, Privy::Models::EthereumSecp256k1SignRpcResponseData::Encoding]
|
|
25
25
|
#
|
|
26
|
-
# @param signature [String] A hex-encoded string prefixed with '0x', capped at
|
|
26
|
+
# @param signature [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
27
27
|
|
|
28
28
|
# @see Privy::Models::EthereumSecp256k1SignRpcResponseData#encoding
|
|
29
29
|
module Encoding
|
|
@@ -9,7 +9,7 @@ module Privy
|
|
|
9
9
|
required :to, String
|
|
10
10
|
|
|
11
11
|
# @!attribute data
|
|
12
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
12
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
13
13
|
# bytes).
|
|
14
14
|
#
|
|
15
15
|
# @return [String, nil]
|
|
@@ -30,7 +30,7 @@ module Privy
|
|
|
30
30
|
#
|
|
31
31
|
# @param to [String]
|
|
32
32
|
#
|
|
33
|
-
# @param data [String] A hex-encoded string prefixed with '0x', capped at
|
|
33
|
+
# @param data [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
34
34
|
#
|
|
35
35
|
# @param value [String, Integer] A quantity value that can be either a hex string starting with '0x' or a non-neg
|
|
36
36
|
end
|
|
@@ -31,7 +31,7 @@ module Privy
|
|
|
31
31
|
optional :chain_type, enum: -> { Privy::EthereumSendCallsRpcInput::ChainType }
|
|
32
32
|
|
|
33
33
|
# @!attribute experimental_data_suffix
|
|
34
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
34
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
35
35
|
# bytes).
|
|
36
36
|
#
|
|
37
37
|
# @return [String, nil]
|
|
@@ -64,7 +64,7 @@ module Privy
|
|
|
64
64
|
#
|
|
65
65
|
# @param chain_type [Symbol, Privy::Models::EthereumSendCallsRpcInput::ChainType]
|
|
66
66
|
#
|
|
67
|
-
# @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at
|
|
67
|
+
# @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
68
68
|
#
|
|
69
69
|
# @param sponsor [Boolean]
|
|
70
70
|
#
|
|
@@ -31,7 +31,7 @@ module Privy
|
|
|
31
31
|
optional :chain_type, enum: -> { Privy::EthereumSendTransactionRpcInput::ChainType }
|
|
32
32
|
|
|
33
33
|
# @!attribute experimental_data_suffix
|
|
34
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
34
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
35
35
|
# bytes).
|
|
36
36
|
#
|
|
37
37
|
# @return [String, nil]
|
|
@@ -68,7 +68,7 @@ module Privy
|
|
|
68
68
|
#
|
|
69
69
|
# @param chain_type [Symbol, Privy::Models::EthereumSendTransactionRpcInput::ChainType]
|
|
70
70
|
#
|
|
71
|
-
# @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at
|
|
71
|
+
# @param experimental_data_suffix [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
72
72
|
#
|
|
73
73
|
# @param reference_id [String]
|
|
74
74
|
#
|
|
@@ -23,14 +23,14 @@ module Privy
|
|
|
23
23
|
required :nonce, union: -> { Privy::Quantity }
|
|
24
24
|
|
|
25
25
|
# @!attribute r
|
|
26
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
26
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
27
27
|
# bytes).
|
|
28
28
|
#
|
|
29
29
|
# @return [String]
|
|
30
30
|
required :r, String
|
|
31
31
|
|
|
32
32
|
# @!attribute s
|
|
33
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
33
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
34
34
|
# bytes).
|
|
35
35
|
#
|
|
36
36
|
# @return [String]
|
|
@@ -54,9 +54,9 @@ module Privy
|
|
|
54
54
|
#
|
|
55
55
|
# @param nonce [String, Integer] A quantity value that can be either a hex string starting with '0x' or a non-neg
|
|
56
56
|
#
|
|
57
|
-
# @param r [String] A hex-encoded string prefixed with '0x', capped at
|
|
57
|
+
# @param r [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
58
58
|
#
|
|
59
|
-
# @param s [String] A hex-encoded string prefixed with '0x', capped at
|
|
59
|
+
# @param s [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
60
60
|
#
|
|
61
61
|
# @param y_parity [Float]
|
|
62
62
|
end
|
|
@@ -17,8 +17,11 @@ module Privy
|
|
|
17
17
|
# A Passkey MFA method.
|
|
18
18
|
variant :passkey, -> { Privy::PasskeyMfaMethod }
|
|
19
19
|
|
|
20
|
+
# An Email MFA method.
|
|
21
|
+
variant :email, -> { Privy::EmailMfaMethod }
|
|
22
|
+
|
|
20
23
|
# @!method self.variants
|
|
21
|
-
# @return [Array(Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod)]
|
|
24
|
+
# @return [Array(Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod, Privy::Models::EmailMfaMethod)]
|
|
22
25
|
end
|
|
23
26
|
end
|
|
24
27
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class MfaEmailEnrollRequestBody < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute code
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :code, String
|
|
10
|
+
|
|
11
|
+
# @!attribute email_address
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :email_address, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(code:, email_address:)
|
|
17
|
+
# The request body for enrolling an email MFA code.
|
|
18
|
+
#
|
|
19
|
+
# @param code [String]
|
|
20
|
+
# @param email_address [String]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class MfaEmailInitEnrollInput < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute action
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Privy::Models::MfaEmailInitEnrollInput::Action]
|
|
9
|
+
required :action, enum: -> { Privy::MfaEmailInitEnrollInput::Action }
|
|
10
|
+
|
|
11
|
+
# @!attribute email_address
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :email_address, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(action:, email_address:)
|
|
17
|
+
# Input for enrolling email MFA.
|
|
18
|
+
#
|
|
19
|
+
# @param action [Symbol, Privy::Models::MfaEmailInitEnrollInput::Action]
|
|
20
|
+
# @param email_address [String]
|
|
21
|
+
|
|
22
|
+
# @see Privy::Models::MfaEmailInitEnrollInput#action
|
|
23
|
+
module Action
|
|
24
|
+
extend Privy::Internal::Type::Enum
|
|
25
|
+
|
|
26
|
+
ENROLL = :enroll
|
|
27
|
+
|
|
28
|
+
# @!method self.values
|
|
29
|
+
# @return [Array<Symbol>]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
# The request body for initiating an email MFA flow.
|
|
6
|
+
module MfaEmailInitRequestBody
|
|
7
|
+
extend Privy::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
# Input for verifying email MFA.
|
|
10
|
+
variant -> { Privy::MfaEmailInitVerifyInput }
|
|
11
|
+
|
|
12
|
+
# Input for enrolling email MFA.
|
|
13
|
+
variant -> { Privy::MfaEmailInitEnrollInput }
|
|
14
|
+
|
|
15
|
+
# @!method self.variants
|
|
16
|
+
# @return [Array(Privy::Models::MfaEmailInitVerifyInput, Privy::Models::MfaEmailInitEnrollInput)]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
class MfaEmailInitVerifyInput < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute action
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Privy::Models::MfaEmailInitVerifyInput::Action]
|
|
9
|
+
required :action, enum: -> { Privy::MfaEmailInitVerifyInput::Action }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(action:)
|
|
12
|
+
# Input for verifying email MFA.
|
|
13
|
+
#
|
|
14
|
+
# @param action [Symbol, Privy::Models::MfaEmailInitVerifyInput::Action]
|
|
15
|
+
|
|
16
|
+
# @see Privy::Models::MfaEmailInitVerifyInput#action
|
|
17
|
+
module Action
|
|
18
|
+
extend Privy::Internal::Type::Enum
|
|
19
|
+
|
|
20
|
+
VERIFY = :verify
|
|
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 MfaEmailVerifyRequestBody < Privy::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute code
|
|
7
|
+
#
|
|
8
|
+
# @return [String]
|
|
9
|
+
required :code, String
|
|
10
|
+
|
|
11
|
+
# @!method initialize(code:)
|
|
12
|
+
# The request body for verifying an email MFA code.
|
|
13
|
+
#
|
|
14
|
+
# @param code [String]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -7,7 +7,7 @@ module Privy
|
|
|
7
7
|
module Quantity
|
|
8
8
|
extend Privy::Internal::Type::Union
|
|
9
9
|
|
|
10
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
10
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 bytes).
|
|
11
11
|
variant -> { Privy::Hex }
|
|
12
12
|
|
|
13
13
|
variant Integer
|
|
@@ -4,7 +4,7 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class RawSignHashParams < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute hash_
|
|
7
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
7
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
8
8
|
# bytes).
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
@@ -16,7 +16,7 @@ module Privy
|
|
|
16
16
|
#
|
|
17
17
|
# Parameters for signing a pre-computed hash with the `raw_sign` RPC.
|
|
18
18
|
#
|
|
19
|
-
# @param hash_ [String] A hex-encoded string prefixed with '0x', capped at
|
|
19
|
+
# @param hash_ [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
end
|
|
@@ -9,7 +9,7 @@ module Privy
|
|
|
9
9
|
required :encoding, enum: -> { Privy::RawSignResponseData::Encoding }
|
|
10
10
|
|
|
11
11
|
# @!attribute signature
|
|
12
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
12
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
13
13
|
# bytes).
|
|
14
14
|
#
|
|
15
15
|
# @return [String]
|
|
@@ -23,7 +23,7 @@ module Privy
|
|
|
23
23
|
#
|
|
24
24
|
# @param encoding [Symbol, Privy::Models::RawSignResponseData::Encoding]
|
|
25
25
|
#
|
|
26
|
-
# @param signature [String] A hex-encoded string prefixed with '0x', capped at
|
|
26
|
+
# @param signature [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
27
27
|
|
|
28
28
|
# @see Privy::Models::RawSignResponseData#encoding
|
|
29
29
|
module Encoding
|
|
@@ -23,7 +23,7 @@ module Privy
|
|
|
23
23
|
required :nonce, union: -> { Privy::Quantity }
|
|
24
24
|
|
|
25
25
|
# @!attribute signature
|
|
26
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
26
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
27
27
|
# bytes).
|
|
28
28
|
#
|
|
29
29
|
# @return [String]
|
|
@@ -41,7 +41,7 @@ module Privy
|
|
|
41
41
|
#
|
|
42
42
|
# @param nonce [String, Integer] A quantity value that can be either a hex string starting with '0x' or a non-neg
|
|
43
43
|
#
|
|
44
|
-
# @param signature [String] A hex-encoded string prefixed with '0x', capped at
|
|
44
|
+
# @param signature [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
end
|
|
@@ -9,7 +9,7 @@ module Privy
|
|
|
9
9
|
required :to, String
|
|
10
10
|
|
|
11
11
|
# @!attribute data
|
|
12
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
12
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
13
13
|
# bytes).
|
|
14
14
|
#
|
|
15
15
|
# @return [String, nil]
|
|
@@ -30,7 +30,7 @@ module Privy
|
|
|
30
30
|
#
|
|
31
31
|
# @param to [String]
|
|
32
32
|
#
|
|
33
|
-
# @param data [String] A hex-encoded string prefixed with '0x', capped at
|
|
33
|
+
# @param data [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
34
34
|
#
|
|
35
35
|
# @param value [String, Integer] A quantity value that can be either a hex string starting with '0x' or a non-neg
|
|
36
36
|
end
|
|
@@ -4,14 +4,14 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class TempoFeePayerSignature < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute r
|
|
7
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
7
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
8
8
|
# bytes).
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :r, String
|
|
12
12
|
|
|
13
13
|
# @!attribute s
|
|
14
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
14
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
15
15
|
# bytes).
|
|
16
16
|
#
|
|
17
17
|
# @return [String]
|
|
@@ -28,9 +28,9 @@ module Privy
|
|
|
28
28
|
#
|
|
29
29
|
# A fee payer signature for sponsored Tempo transactions (secp256k1 only).
|
|
30
30
|
#
|
|
31
|
-
# @param r [String] A hex-encoded string prefixed with '0x', capped at
|
|
31
|
+
# @param r [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
32
32
|
#
|
|
33
|
-
# @param s [String] A hex-encoded string prefixed with '0x', capped at
|
|
33
|
+
# @param s [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
34
34
|
#
|
|
35
35
|
# @param y_parity [Float, Privy::Models::TempoFeePayerSignature::YParity]
|
|
36
36
|
|
|
@@ -16,7 +16,7 @@ module Privy
|
|
|
16
16
|
optional :chain_id, union: -> { Privy::Quantity }
|
|
17
17
|
|
|
18
18
|
# @!attribute data
|
|
19
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
19
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
20
20
|
# bytes).
|
|
21
21
|
#
|
|
22
22
|
# @return [String, nil]
|
|
@@ -90,7 +90,7 @@ module Privy
|
|
|
90
90
|
#
|
|
91
91
|
# @param chain_id [String, Integer] A quantity value that can be either a hex string starting with '0x' or a non-neg
|
|
92
92
|
#
|
|
93
|
-
# @param data [String] A hex-encoded string prefixed with '0x', capped at
|
|
93
|
+
# @param data [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
94
94
|
#
|
|
95
95
|
# @param from [String]
|
|
96
96
|
#
|
data/lib/privy/models/user.rb
CHANGED
|
@@ -34,7 +34,7 @@ module Privy
|
|
|
34
34
|
|
|
35
35
|
# @!attribute mfa_methods
|
|
36
36
|
#
|
|
37
|
-
# @return [Array<Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod>]
|
|
37
|
+
# @return [Array<Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod, Privy::Models::EmailMfaMethod>]
|
|
38
38
|
required :mfa_methods, -> { Privy::Internal::Type::ArrayOf[union: Privy::LinkedMfaMethod] }
|
|
39
39
|
|
|
40
40
|
# @!attribute custom_metadata
|
|
@@ -56,7 +56,7 @@ module Privy
|
|
|
56
56
|
#
|
|
57
57
|
# @param linked_accounts [Array<Privy::Models::LinkedAccountEmail, Privy::Models::LinkedAccountPhone, Privy::Models::LinkedAccountEthereum, Privy::Models::LinkedAccountSolana, Privy::Models::LinkedAccountSmartWallet, Privy::Models::LinkedAccountEthereumEmbeddedWallet, Privy::Models::LinkedAccountSolanaEmbeddedWallet, Privy::Models::LinkedAccountBitcoinSegwitEmbeddedWallet, Privy::Models::LinkedAccountBitcoinTaprootEmbeddedWallet, Privy::Models::LinkedAccountCurveSigningEmbeddedWallet, Privy::Models::LinkedAccountGoogleOAuth, Privy::Models::LinkedAccountTwitterOAuth, Privy::Models::LinkedAccountDiscordOAuth, Privy::Models::LinkedAccountGitHubOAuth, Privy::Models::LinkedAccountSpotifyOAuth, Privy::Models::LinkedAccountInstagramOAuth, Privy::Models::LinkedAccountTiktokOAuth, Privy::Models::LinkedAccountLineOAuth, Privy::Models::LinkedAccountTwitchOAuth, Privy::Models::LinkedAccountLinkedInOAuth, Privy::Models::LinkedAccountAppleOAuth, Privy::Models::LinkedAccountCustomOAuth, Privy::Models::LinkedAccountCustomJwt, Privy::Models::LinkedAccountFarcaster, Privy::Models::LinkedAccountPasskey, Privy::Models::LinkedAccountTelegram, Privy::Models::LinkedAccountCrossApp, Privy::Models::LinkedAccountAuthorizationKey>]
|
|
58
58
|
#
|
|
59
|
-
# @param mfa_methods [Array<Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod>]
|
|
59
|
+
# @param mfa_methods [Array<Privy::Models::SMSMfaMethod, Privy::Models::TotpMfaMethod, Privy::Models::PasskeyMfaMethod, Privy::Models::EmailMfaMethod>]
|
|
60
60
|
#
|
|
61
61
|
# @param custom_metadata [Hash{Symbol=>String, Float, Boolean}] Custom metadata associated with the user.
|
|
62
62
|
end
|
|
@@ -4,42 +4,42 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class UserOperationInput < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute call_data
|
|
7
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
7
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
8
8
|
# bytes).
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :call_data, String
|
|
12
12
|
|
|
13
13
|
# @!attribute call_gas_limit
|
|
14
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
14
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
15
15
|
# bytes).
|
|
16
16
|
#
|
|
17
17
|
# @return [String]
|
|
18
18
|
required :call_gas_limit, String
|
|
19
19
|
|
|
20
20
|
# @!attribute max_fee_per_gas
|
|
21
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
21
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
22
22
|
# bytes).
|
|
23
23
|
#
|
|
24
24
|
# @return [String]
|
|
25
25
|
required :max_fee_per_gas, String
|
|
26
26
|
|
|
27
27
|
# @!attribute max_priority_fee_per_gas
|
|
28
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
28
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
29
29
|
# bytes).
|
|
30
30
|
#
|
|
31
31
|
# @return [String]
|
|
32
32
|
required :max_priority_fee_per_gas, String
|
|
33
33
|
|
|
34
34
|
# @!attribute nonce
|
|
35
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
35
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
36
36
|
# bytes).
|
|
37
37
|
#
|
|
38
38
|
# @return [String]
|
|
39
39
|
required :nonce, String
|
|
40
40
|
|
|
41
41
|
# @!attribute pre_verification_gas
|
|
42
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
42
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
43
43
|
# bytes).
|
|
44
44
|
#
|
|
45
45
|
# @return [String]
|
|
@@ -51,7 +51,7 @@ module Privy
|
|
|
51
51
|
required :sender, String
|
|
52
52
|
|
|
53
53
|
# @!attribute verification_gas_limit
|
|
54
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
54
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
55
55
|
# bytes).
|
|
56
56
|
#
|
|
57
57
|
# @return [String]
|
|
@@ -63,7 +63,7 @@ module Privy
|
|
|
63
63
|
optional :factory, String
|
|
64
64
|
|
|
65
65
|
# @!attribute factory_data
|
|
66
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
66
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
67
67
|
# bytes).
|
|
68
68
|
#
|
|
69
69
|
# @return [String, nil]
|
|
@@ -75,21 +75,21 @@ module Privy
|
|
|
75
75
|
optional :paymaster, String
|
|
76
76
|
|
|
77
77
|
# @!attribute paymaster_data
|
|
78
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
78
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
79
79
|
# bytes).
|
|
80
80
|
#
|
|
81
81
|
# @return [String, nil]
|
|
82
82
|
optional :paymaster_data, String
|
|
83
83
|
|
|
84
84
|
# @!attribute paymaster_post_op_gas_limit
|
|
85
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
85
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
86
86
|
# bytes).
|
|
87
87
|
#
|
|
88
88
|
# @return [String, nil]
|
|
89
89
|
optional :paymaster_post_op_gas_limit, String
|
|
90
90
|
|
|
91
91
|
# @!attribute paymaster_verification_gas_limit
|
|
92
|
-
# A hex-encoded string prefixed with '0x', capped at
|
|
92
|
+
# A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000
|
|
93
93
|
# bytes).
|
|
94
94
|
#
|
|
95
95
|
# @return [String, nil]
|
|
@@ -101,33 +101,33 @@ module Privy
|
|
|
101
101
|
#
|
|
102
102
|
# An ERC-4337 user operation.
|
|
103
103
|
#
|
|
104
|
-
# @param call_data [String] A hex-encoded string prefixed with '0x', capped at
|
|
104
|
+
# @param call_data [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
105
105
|
#
|
|
106
|
-
# @param call_gas_limit [String] A hex-encoded string prefixed with '0x', capped at
|
|
106
|
+
# @param call_gas_limit [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
107
107
|
#
|
|
108
|
-
# @param max_fee_per_gas [String] A hex-encoded string prefixed with '0x', capped at
|
|
108
|
+
# @param max_fee_per_gas [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
109
109
|
#
|
|
110
|
-
# @param max_priority_fee_per_gas [String] A hex-encoded string prefixed with '0x', capped at
|
|
110
|
+
# @param max_priority_fee_per_gas [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
111
111
|
#
|
|
112
|
-
# @param nonce [String] A hex-encoded string prefixed with '0x', capped at
|
|
112
|
+
# @param nonce [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
113
113
|
#
|
|
114
|
-
# @param pre_verification_gas [String] A hex-encoded string prefixed with '0x', capped at
|
|
114
|
+
# @param pre_verification_gas [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
115
115
|
#
|
|
116
116
|
# @param sender [String]
|
|
117
117
|
#
|
|
118
|
-
# @param verification_gas_limit [String] A hex-encoded string prefixed with '0x', capped at
|
|
118
|
+
# @param verification_gas_limit [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
119
119
|
#
|
|
120
120
|
# @param factory [String]
|
|
121
121
|
#
|
|
122
|
-
# @param factory_data [String] A hex-encoded string prefixed with '0x', capped at
|
|
122
|
+
# @param factory_data [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
123
123
|
#
|
|
124
124
|
# @param paymaster [String]
|
|
125
125
|
#
|
|
126
|
-
# @param paymaster_data [String] A hex-encoded string prefixed with '0x', capped at
|
|
126
|
+
# @param paymaster_data [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
127
127
|
#
|
|
128
|
-
# @param paymaster_post_op_gas_limit [String] A hex-encoded string prefixed with '0x', capped at
|
|
128
|
+
# @param paymaster_post_op_gas_limit [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
129
129
|
#
|
|
130
|
-
# @param paymaster_verification_gas_limit [String] A hex-encoded string prefixed with '0x', capped at
|
|
130
|
+
# @param paymaster_verification_gas_limit [String] A hex-encoded string prefixed with '0x', capped at 300002 characters (150,000 by
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
end
|