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
|
@@ -4,11 +4,13 @@ module Privy
|
|
|
4
4
|
module Models
|
|
5
5
|
class WalletAutomationExecutionListResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
+
# Items in this page.
|
|
7
8
|
#
|
|
8
9
|
# @return [Array<Privy::Models::WalletAutomationExecutionResponse>]
|
|
9
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::WalletAutomationExecutionResponse] }
|
|
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
|
# Paginated list of wallet automation executions.
|
|
18
20
|
#
|
|
19
|
-
# @param data [Array<Privy::Models::WalletAutomationExecutionResponse>]
|
|
20
|
-
#
|
|
21
|
+
# @param data [Array<Privy::Models::WalletAutomationExecutionResponse>] 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 WalletAutomationListResponse < Privy::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute data
|
|
7
|
+
# Items in this page.
|
|
7
8
|
#
|
|
8
9
|
# @return [Array<Privy::Models::WalletAutomationResponse>]
|
|
9
10
|
required :data, -> { Privy::Internal::Type::ArrayOf[Privy::WalletAutomationResponse] }
|
|
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
|
# Paginated list of wallet automations.
|
|
18
20
|
#
|
|
19
|
-
# @param data [Array<Privy::Models::WalletAutomationResponse>]
|
|
20
|
-
#
|
|
21
|
+
# @param data [Array<Privy::Models::WalletAutomationResponse>] 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
|
|
@@ -53,9 +53,11 @@ module Privy
|
|
|
53
53
|
|
|
54
54
|
class RequestDetails < Privy::Internal::Type::BaseModel
|
|
55
55
|
# @!attribute body
|
|
56
|
+
# Request body for updating a wallet. `owner` and `owner_id` are mutually
|
|
57
|
+
# exclusive.
|
|
56
58
|
#
|
|
57
|
-
# @return [Privy::Models::
|
|
58
|
-
required :body, -> { Privy::
|
|
59
|
+
# @return [Privy::Models::WalletUpdateRequestBody]
|
|
60
|
+
required :body, -> { Privy::WalletUpdateRequestBody }
|
|
59
61
|
|
|
60
62
|
# @!attribute method_
|
|
61
63
|
#
|
|
@@ -68,81 +70,17 @@ module Privy
|
|
|
68
70
|
required :url, String
|
|
69
71
|
|
|
70
72
|
# @!method initialize(body:, method_:, url:)
|
|
73
|
+
# Some parameter documentations has been truncated, see
|
|
74
|
+
# {Privy::Models::WalletIntentResponse::RequestDetails} for more details.
|
|
75
|
+
#
|
|
71
76
|
# The original wallet update request that would be sent to the wallet endpoint
|
|
72
77
|
#
|
|
73
|
-
# @param body [Privy::Models::
|
|
78
|
+
# @param body [Privy::Models::WalletUpdateRequestBody] Request body for updating a wallet. `owner` and `owner_id` are mutually exclusiv
|
|
79
|
+
#
|
|
74
80
|
# @param method_ [Symbol, Privy::Models::WalletIntentResponse::RequestDetails::Method]
|
|
81
|
+
#
|
|
75
82
|
# @param url [String]
|
|
76
83
|
|
|
77
|
-
# @see Privy::Models::WalletIntentResponse::RequestDetails#body
|
|
78
|
-
class Body < Privy::Internal::Type::BaseModel
|
|
79
|
-
# @!attribute additional_signers
|
|
80
|
-
# Additional signers for the wallet.
|
|
81
|
-
#
|
|
82
|
-
# @return [Array<Privy::Models::AdditionalSignerItemInput>, nil]
|
|
83
|
-
optional :additional_signers, -> { Privy::Internal::Type::ArrayOf[Privy::AdditionalSignerItemInput] }
|
|
84
|
-
|
|
85
|
-
# @!attribute authorization_key_ids
|
|
86
|
-
#
|
|
87
|
-
# @return [Array<String>, nil]
|
|
88
|
-
optional :authorization_key_ids, Privy::Internal::Type::ArrayOf[String]
|
|
89
|
-
|
|
90
|
-
# @!attribute authorization_threshold
|
|
91
|
-
#
|
|
92
|
-
# @return [Float, nil]
|
|
93
|
-
optional :authorization_threshold, Float
|
|
94
|
-
|
|
95
|
-
# @!attribute display_name
|
|
96
|
-
#
|
|
97
|
-
# @return [String, nil]
|
|
98
|
-
optional :display_name, String, nil?: true
|
|
99
|
-
|
|
100
|
-
# @!attribute external_id
|
|
101
|
-
#
|
|
102
|
-
# @return [String, nil]
|
|
103
|
-
optional :external_id, String
|
|
104
|
-
|
|
105
|
-
# @!attribute owner
|
|
106
|
-
# The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
107
|
-
# null to remove the current owner.
|
|
108
|
-
#
|
|
109
|
-
# @return [Privy::Models::OwnerInputUser, Privy::Models::OwnerInputPublicKey, nil]
|
|
110
|
-
optional :owner, union: -> { Privy::OwnerInput }, nil?: true
|
|
111
|
-
|
|
112
|
-
# @!attribute owner_id
|
|
113
|
-
# The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
114
|
-
# not specify an owner.
|
|
115
|
-
#
|
|
116
|
-
# @return [String, nil]
|
|
117
|
-
optional :owner_id, String, nil?: true
|
|
118
|
-
|
|
119
|
-
# @!attribute policy_ids
|
|
120
|
-
# An optional list of up to one policy ID to enforce on the wallet.
|
|
121
|
-
#
|
|
122
|
-
# @return [Array<String>, nil]
|
|
123
|
-
optional :policy_ids, Privy::Internal::Type::ArrayOf[String]
|
|
124
|
-
|
|
125
|
-
# @!method initialize(additional_signers: nil, authorization_key_ids: nil, authorization_threshold: nil, display_name: nil, external_id: nil, owner: nil, owner_id: nil, policy_ids: nil)
|
|
126
|
-
# Some parameter documentations has been truncated, see
|
|
127
|
-
# {Privy::Models::WalletIntentResponse::RequestDetails::Body} for more details.
|
|
128
|
-
#
|
|
129
|
-
# @param additional_signers [Array<Privy::Models::AdditionalSignerItemInput>] Additional signers for the wallet.
|
|
130
|
-
#
|
|
131
|
-
# @param authorization_key_ids [Array<String>]
|
|
132
|
-
#
|
|
133
|
-
# @param authorization_threshold [Float]
|
|
134
|
-
#
|
|
135
|
-
# @param display_name [String, nil]
|
|
136
|
-
#
|
|
137
|
-
# @param external_id [String]
|
|
138
|
-
#
|
|
139
|
-
# @param owner [Privy::Models::OwnerInputUser, Privy::Models::OwnerInputPublicKey, nil] The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
140
|
-
#
|
|
141
|
-
# @param owner_id [String, nil] The key quorum ID to set as the owner of the resource. If you provide this, do n
|
|
142
|
-
#
|
|
143
|
-
# @param policy_ids [Array<String>] An optional list of up to one policy ID to enforce on the wallet.
|
|
144
|
-
end
|
|
145
|
-
|
|
146
84
|
# @see Privy::Models::WalletIntentResponse::RequestDetails#method_
|
|
147
85
|
module Method
|
|
148
86
|
extend Privy::Internal::Type::Enum
|
|
@@ -38,8 +38,7 @@ module Privy
|
|
|
38
38
|
optional :owner_id, String, nil?: true
|
|
39
39
|
|
|
40
40
|
# @!attribute policy_ids
|
|
41
|
-
#
|
|
42
|
-
# per wallet.
|
|
41
|
+
# An optional list of up to one policy ID to enforce on the wallet.
|
|
43
42
|
#
|
|
44
43
|
# @return [Array<String>, nil]
|
|
45
44
|
optional :policy_ids, Privy::Internal::Type::ArrayOf[String]
|
|
@@ -61,7 +60,7 @@ module Privy
|
|
|
61
60
|
#
|
|
62
61
|
# @param owner_id [String, nil] The key quorum ID to set as the owner of the resource. If you provide this, do n
|
|
63
62
|
#
|
|
64
|
-
# @param policy_ids [Array<String>]
|
|
63
|
+
# @param policy_ids [Array<String>] An optional list of up to one policy ID to enforce on the wallet.
|
|
65
64
|
end
|
|
66
65
|
end
|
|
67
66
|
end
|
|
@@ -21,7 +21,7 @@ module Privy
|
|
|
21
21
|
required :action_id, String
|
|
22
22
|
|
|
23
23
|
# @!attribute include
|
|
24
|
-
#
|
|
24
|
+
# Include step-level details in the response.
|
|
25
25
|
#
|
|
26
26
|
# @return [Symbol, Privy::Models::Wallets::WalletActionInclude, nil]
|
|
27
27
|
optional :include, enum: -> { Privy::Wallets::WalletActionInclude }
|
|
@@ -41,7 +41,7 @@ module Privy
|
|
|
41
41
|
#
|
|
42
42
|
# @param action_id [String] ID of the wallet action.
|
|
43
43
|
#
|
|
44
|
-
# @param include [Symbol, Privy::Models::Wallets::WalletActionInclude]
|
|
44
|
+
# @param include [Symbol, Privy::Models::Wallets::WalletActionInclude] Include step-level details in the response.
|
|
45
45
|
#
|
|
46
46
|
# @param privy_authorization_signature [String] Request authorization signature. If multiple signatures are required, they shoul
|
|
47
47
|
#
|
|
@@ -14,6 +14,8 @@ module Privy
|
|
|
14
14
|
|
|
15
15
|
variant const: -> { Privy::Models::Wallets::TmmfProviderWalletStatus::REJECTED }
|
|
16
16
|
|
|
17
|
+
variant const: -> { Privy::Models::Wallets::TmmfProviderWalletStatus::DEACTIVATED }
|
|
18
|
+
|
|
17
19
|
variant String
|
|
18
20
|
|
|
19
21
|
# @!method self.variants
|
|
@@ -28,6 +30,7 @@ module Privy
|
|
|
28
30
|
CREATED = :created
|
|
29
31
|
APPROVED = :approved
|
|
30
32
|
REJECTED = :rejected
|
|
33
|
+
DEACTIVATED = :deactivated
|
|
31
34
|
|
|
32
35
|
# @!endgroup
|
|
33
36
|
end
|
|
@@ -90,7 +90,7 @@ module Privy
|
|
|
90
90
|
# Payload for the yield.claim.confirmed webhook event.
|
|
91
91
|
variant -> { Privy::YieldClaimConfirmedWebhookPayload }
|
|
92
92
|
|
|
93
|
-
# Payload for the tmmf.wallet.updated webhook event:
|
|
93
|
+
# Payload for the tmmf.wallet.updated webhook event: the status of a tMMF wallet with the provider changed.
|
|
94
94
|
variant -> { Privy::TmmfWalletUpdatedWebhookPayload }
|
|
95
95
|
|
|
96
96
|
# Payload for the user_operation.completed webhook event.
|
data/lib/privy/models.rb
CHANGED
data/lib/privy/resources/apps.rb
CHANGED
|
@@ -32,14 +32,20 @@ module Privy
|
|
|
32
32
|
)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# Some parameter documentations has been truncated, see
|
|
36
|
+
# {Privy::Models::AppGetGasSpendParams} for more details.
|
|
37
|
+
#
|
|
35
38
|
# Get aggregated Privy gas credits charged for a set of wallets over a time range.
|
|
36
39
|
# Maximum 100 wallet IDs and 30-day range per request.
|
|
37
40
|
#
|
|
38
41
|
# @overload get_gas_spend(end_timestamp:, start_timestamp:, wallet_ids:, request_options: {})
|
|
39
42
|
#
|
|
40
|
-
# @param end_timestamp [Float]
|
|
41
|
-
#
|
|
42
|
-
# @param
|
|
43
|
+
# @param end_timestamp [Float] Unix timestamp in milliseconds, exclusive. Must be greater than or equal to `sta
|
|
44
|
+
#
|
|
45
|
+
# @param start_timestamp [Float] Unix timestamp in milliseconds, inclusive. Must be less than or equal to `end_ti
|
|
46
|
+
#
|
|
47
|
+
# @param wallet_ids [Array<String>] List of wallet IDs to query gas spend for. Maximum 100.
|
|
48
|
+
#
|
|
43
49
|
# @param request_options [Privy::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
44
50
|
#
|
|
45
51
|
# @return [Privy::Models::GasSpendResponseBody]
|
|
@@ -639,7 +639,7 @@ module Privy
|
|
|
639
639
|
#
|
|
640
640
|
# @param owner_id [String, nil] Body param: The key quorum ID to set as the owner of the resource. If you provid
|
|
641
641
|
#
|
|
642
|
-
# @param policy_ids [Array<String>] Body param:
|
|
642
|
+
# @param policy_ids [Array<String>] Body param: An optional list of up to one policy ID to enforce on the wallet.
|
|
643
643
|
#
|
|
644
644
|
# @param privy_request_expiry [String] Header param: Request expiry. Value is a Unix timestamp in milliseconds represen
|
|
645
645
|
#
|
|
@@ -54,7 +54,7 @@ module Privy
|
|
|
54
54
|
#
|
|
55
55
|
# @overload update(policy_id, name: nil, owner: nil, owner_id: nil, rules: nil, privy_authorization_signature: nil, privy_request_expiry: nil, request_options: {})
|
|
56
56
|
#
|
|
57
|
-
# @param policy_id [String] Path param
|
|
57
|
+
# @param policy_id [String] Path param: A unique identifier for a policy.
|
|
58
58
|
#
|
|
59
59
|
# @param name [String] Body param: Name to assign to the policy, up to 100 characters.
|
|
60
60
|
#
|
|
@@ -123,7 +123,7 @@ module Privy
|
|
|
123
123
|
#
|
|
124
124
|
# @overload delete(policy_id, privy_authorization_signature: nil, privy_request_expiry: nil, request_options: {})
|
|
125
125
|
#
|
|
126
|
-
# @param policy_id [String]
|
|
126
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
127
127
|
#
|
|
128
128
|
# @param privy_authorization_signature [String] Request authorization signature. If multiple signatures are required, they shoul
|
|
129
129
|
#
|
|
@@ -155,7 +155,7 @@ module Privy
|
|
|
155
155
|
#
|
|
156
156
|
# @overload create_rule(policy_id, action:, conditions:, method_:, name:, privy_authorization_signature: nil, privy_request_expiry: nil, request_options: {})
|
|
157
157
|
#
|
|
158
|
-
# @param policy_id [String] Path param
|
|
158
|
+
# @param policy_id [String] Path param: A unique identifier for a policy.
|
|
159
159
|
#
|
|
160
160
|
# @param action [Symbol, Privy::Models::PolicyAction] Body param: The action to take when a policy rule matches.
|
|
161
161
|
#
|
|
@@ -200,7 +200,7 @@ module Privy
|
|
|
200
200
|
#
|
|
201
201
|
# @param rule_id [String] Path param
|
|
202
202
|
#
|
|
203
|
-
# @param policy_id [String] Path param
|
|
203
|
+
# @param policy_id [String] Path param: A unique identifier for a policy.
|
|
204
204
|
#
|
|
205
205
|
# @param privy_authorization_signature [String] Header param: Request authorization signature. If multiple signatures are requir
|
|
206
206
|
#
|
|
@@ -233,7 +233,8 @@ module Privy
|
|
|
233
233
|
#
|
|
234
234
|
# @overload get(policy_id, request_options: {})
|
|
235
235
|
#
|
|
236
|
-
# @param policy_id [String]
|
|
236
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
237
|
+
#
|
|
237
238
|
# @param request_options [Privy::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
238
239
|
#
|
|
239
240
|
# @return [Privy::Models::Policy]
|
|
@@ -253,7 +254,9 @@ module Privy
|
|
|
253
254
|
# @overload get_rule(rule_id, policy_id:, request_options: {})
|
|
254
255
|
#
|
|
255
256
|
# @param rule_id [String]
|
|
256
|
-
#
|
|
257
|
+
#
|
|
258
|
+
# @param policy_id [String] A unique identifier for a policy.
|
|
259
|
+
#
|
|
257
260
|
# @param request_options [Privy::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
258
261
|
#
|
|
259
262
|
# @return [Privy::Models::PolicyRuleResponse]
|
|
@@ -282,7 +285,7 @@ module Privy
|
|
|
282
285
|
#
|
|
283
286
|
# @param rule_id [String] Path param
|
|
284
287
|
#
|
|
285
|
-
# @param policy_id [String] Path param
|
|
288
|
+
# @param policy_id [String] Path param: A unique identifier for a policy.
|
|
286
289
|
#
|
|
287
290
|
# @param action [Symbol, Privy::Models::PolicyAction] Body param: The action to take when a policy rule matches.
|
|
288
291
|
#
|
|
@@ -17,7 +17,7 @@ module Privy
|
|
|
17
17
|
#
|
|
18
18
|
# @param wallet_id [String] Path param: ID of the wallet.
|
|
19
19
|
#
|
|
20
|
-
# @param include [Symbol, Privy::Models::Wallets::WalletActionInclude] Query param:
|
|
20
|
+
# @param include [Symbol, Privy::Models::Wallets::WalletActionInclude] Query param: Include step-level details in the response.
|
|
21
21
|
#
|
|
22
22
|
# @param privy_authorization_signature [String] Header param: Request authorization signature. If multiple signatures are requir
|
|
23
23
|
#
|
|
@@ -92,7 +92,7 @@ module Privy
|
|
|
92
92
|
#
|
|
93
93
|
# @param owner_id [String, nil] Body param: The key quorum ID to set as the owner of the resource. If you provid
|
|
94
94
|
#
|
|
95
|
-
# @param policy_ids [Array<String>] Body param:
|
|
95
|
+
# @param policy_ids [Array<String>] Body param: An optional list of up to one policy ID to enforce on the wallet.
|
|
96
96
|
#
|
|
97
97
|
# @param privy_authorization_signature [String] Header param: Request authorization signature. If multiple signatures are requir
|
|
98
98
|
#
|
data/lib/privy/version.rb
CHANGED
data/lib/privy.rb
CHANGED
|
@@ -989,6 +989,7 @@ require_relative "privy/models/policy_delete_params"
|
|
|
989
989
|
require_relative "privy/models/policy_delete_rule_params"
|
|
990
990
|
require_relative "privy/models/policy_get_params"
|
|
991
991
|
require_relative "privy/models/policy_get_rule_params"
|
|
992
|
+
require_relative "privy/models/policy_id"
|
|
992
993
|
require_relative "privy/models/policy_input"
|
|
993
994
|
require_relative "privy/models/policy_intent_delete_request_body"
|
|
994
995
|
require_relative "privy/models/policy_intent_delete_request_details"
|
|
@@ -11,12 +11,19 @@ module Privy
|
|
|
11
11
|
T.any(Privy::AppGetGasSpendParams, Privy::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Unix timestamp in milliseconds, exclusive. Must be greater than or equal to
|
|
15
|
+
# `start_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
16
|
+
# not exceed 30 days.
|
|
14
17
|
sig { returns(Float) }
|
|
15
18
|
attr_accessor :end_timestamp
|
|
16
19
|
|
|
20
|
+
# Unix timestamp in milliseconds, inclusive. Must be less than or equal to
|
|
21
|
+
# `end_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
22
|
+
# not exceed 30 days.
|
|
17
23
|
sig { returns(Float) }
|
|
18
24
|
attr_accessor :start_timestamp
|
|
19
25
|
|
|
26
|
+
# List of wallet IDs to query gas spend for. Maximum 100.
|
|
20
27
|
sig { returns(T::Array[String]) }
|
|
21
28
|
attr_accessor :wallet_ids
|
|
22
29
|
|
|
@@ -29,8 +36,15 @@ module Privy
|
|
|
29
36
|
).returns(T.attached_class)
|
|
30
37
|
end
|
|
31
38
|
def self.new(
|
|
39
|
+
# Unix timestamp in milliseconds, exclusive. Must be greater than or equal to
|
|
40
|
+
# `start_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
41
|
+
# not exceed 30 days.
|
|
32
42
|
end_timestamp:,
|
|
43
|
+
# Unix timestamp in milliseconds, inclusive. Must be less than or equal to
|
|
44
|
+
# `end_timestamp`, and the range from `start_timestamp` to `end_timestamp` must
|
|
45
|
+
# not exceed 30 days.
|
|
33
46
|
start_timestamp:,
|
|
47
|
+
# List of wallet IDs to query gas spend for. Maximum 100.
|
|
34
48
|
wallet_ids:,
|
|
35
49
|
request_options: {}
|
|
36
50
|
)
|
|
@@ -8,9 +8,11 @@ module Privy
|
|
|
8
8
|
T.any(Privy::CardIssuingCardsResponse, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# Items in this page.
|
|
11
12
|
sig { returns(T::Array[Privy::CardIssuingCardResponse]) }
|
|
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
|
|
@@ -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::CardIssuingTransactionResponse]) }
|
|
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
|
|
@@ -25,6 +25,7 @@ module Privy
|
|
|
25
25
|
TON = T.let(:ton, Privy::CurveSigningChainType::TaggedSymbol)
|
|
26
26
|
STARKNET = T.let(:starknet, Privy::CurveSigningChainType::TaggedSymbol)
|
|
27
27
|
XRPL = T.let(:xrpl, Privy::CurveSigningChainType::TaggedSymbol)
|
|
28
|
+
CANTON = T.let(:canton, Privy::CurveSigningChainType::TaggedSymbol)
|
|
28
29
|
|
|
29
30
|
sig do
|
|
30
31
|
override.returns(T::Array[Privy::CurveSigningChainType::TaggedSymbol])
|
|
@@ -24,6 +24,7 @@ module Privy
|
|
|
24
24
|
TON = T.let(:ton, Privy::ExtendedChainType::TaggedSymbol)
|
|
25
25
|
STARKNET = T.let(:starknet, Privy::ExtendedChainType::TaggedSymbol)
|
|
26
26
|
XRPL = T.let(:xrpl, Privy::ExtendedChainType::TaggedSymbol)
|
|
27
|
+
CANTON = T.let(:canton, Privy::ExtendedChainType::TaggedSymbol)
|
|
27
28
|
SPARK = T.let(:spark, Privy::ExtendedChainType::TaggedSymbol)
|
|
28
29
|
|
|
29
30
|
sig { override.returns(T::Array[Privy::ExtendedChainType::TaggedSymbol]) }
|
|
@@ -8,7 +8,7 @@ module Privy
|
|
|
8
8
|
T.any(Privy::KeyQuorumsResponse, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Items in this page.
|
|
12
12
|
sig { returns(T::Array[Privy::KeyQuorum]) }
|
|
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:
|