@privy-io/api-types 0.7.0 → 0.8.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.
- package/CHANGELOG.md +43 -0
- package/client.d.mts +37 -28
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -28
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +79 -106
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +79 -106
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +139 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +139 -70
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +796 -427
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +796 -427
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +165 -81
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +165 -81
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +17 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +17 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +224 -1757
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +224 -1757
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +74 -26
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +74 -26
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +8 -8
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +8 -8
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/policies.d.mts +335 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +335 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +48 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +48 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +155 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +155 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +61 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +61 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +187 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +187 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +1 -0
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +1 -0
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +2377 -971
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2377 -971
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +18 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +18 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +438 -33
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +438 -33
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +25 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +25 -1
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +721 -72
- package/src/resources/accounts.ts +93 -120
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +187 -110
- package/src/resources/client-auth.ts +1358 -893
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +368 -47
- package/src/resources/intents.ts +370 -3100
- package/src/resources/key-quorums.ts +100 -32
- package/src/resources/policies.ts +583 -1558
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +185 -91
- package/src/resources/users.ts +79 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/index.ts +144 -16
- package/src/resources/wallets/transactions.ts +2 -0
- package/src/resources/wallets/wallets.ts +2893 -1023
- package/src/resources/webhooks.ts +547 -47
- package/src/resources/yield.ts +29 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/intents.d.ts
CHANGED
|
@@ -1,370 +1,103 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as IntentsAPI from "./intents.js";
|
|
3
|
+
import * as KeyQuorumsAPI from "./key-quorums.js";
|
|
4
|
+
import * as PoliciesAPI from "./policies.js";
|
|
5
|
+
import * as SharedAPI from "./shared.js";
|
|
3
6
|
import * as WalletsAPI from "./wallets/wallets.js";
|
|
4
7
|
export declare class Intents extends APIResource {
|
|
5
8
|
}
|
|
6
9
|
/**
|
|
7
10
|
* Type of intent.
|
|
8
11
|
*/
|
|
9
|
-
export type IntentType = 'KEY_QUORUM' | 'POLICY' | 'RULE' | 'RPC' | 'WALLET';
|
|
12
|
+
export type IntentType = 'KEY_QUORUM' | 'POLICY' | 'RULE' | 'RPC' | 'TRANSFER' | 'WALLET';
|
|
10
13
|
/**
|
|
11
14
|
* Current status of an intent.
|
|
12
15
|
*/
|
|
13
16
|
export type IntentStatus = 'pending' | 'executed' | 'failed' | 'expired' | 'rejected' | 'dismissed';
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
16
|
-
* (delete)
|
|
18
|
+
* Request details for an RPC intent.
|
|
17
19
|
*/
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
interface Output {
|
|
64
|
-
type: string;
|
|
65
|
-
components?: Array<unknown>;
|
|
66
|
-
indexed?: boolean;
|
|
67
|
-
internalType?: string;
|
|
68
|
-
name?: string;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
interface UnionMember2 {
|
|
73
|
-
field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
|
|
74
|
-
field_source: 'ethereum_typed_data_domain';
|
|
75
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
76
|
-
value: string | Array<string>;
|
|
77
|
-
}
|
|
78
|
-
interface UnionMember3 {
|
|
79
|
-
field: string;
|
|
80
|
-
field_source: 'ethereum_typed_data_message';
|
|
81
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
82
|
-
typed_data: UnionMember3.TypedData;
|
|
83
|
-
value: string | Array<string>;
|
|
84
|
-
}
|
|
85
|
-
namespace UnionMember3 {
|
|
86
|
-
interface TypedData {
|
|
87
|
-
primary_type: string;
|
|
88
|
-
types: {
|
|
89
|
-
[key: string]: Array<TypedData.Type>;
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
namespace TypedData {
|
|
93
|
-
interface Type {
|
|
94
|
-
name: string;
|
|
95
|
-
type: string;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
interface UnionMember4 {
|
|
100
|
-
field: 'contract';
|
|
101
|
-
field_source: 'ethereum_7702_authorization';
|
|
102
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
103
|
-
value: string | Array<string>;
|
|
104
|
-
}
|
|
105
|
-
interface UnionMember5 {
|
|
106
|
-
field: 'programId';
|
|
107
|
-
field_source: 'solana_program_instruction';
|
|
108
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
109
|
-
value: string | Array<string>;
|
|
110
|
-
}
|
|
111
|
-
interface UnionMember6 {
|
|
112
|
-
field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
|
|
113
|
-
field_source: 'solana_system_program_instruction';
|
|
114
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
115
|
-
value: string | Array<string>;
|
|
116
|
-
}
|
|
117
|
-
interface UnionMember7 {
|
|
118
|
-
field: 'instructionName' | 'Transfer.source' | 'Transfer.destination' | 'Transfer.authority' | 'Transfer.amount' | 'TransferChecked.source' | 'TransferChecked.destination' | 'TransferChecked.authority' | 'TransferChecked.amount' | 'TransferChecked.mint' | 'Burn.account' | 'Burn.mint' | 'Burn.authority' | 'Burn.amount' | 'MintTo.mint' | 'MintTo.account' | 'MintTo.authority' | 'MintTo.amount' | 'CloseAccount.account' | 'CloseAccount.destination' | 'CloseAccount.authority' | 'InitializeAccount3.account' | 'InitializeAccount3.mint' | 'InitializeAccount3.owner';
|
|
119
|
-
field_source: 'solana_token_program_instruction';
|
|
120
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
121
|
-
value: string | Array<string>;
|
|
122
|
-
}
|
|
123
|
-
interface UnionMember8 {
|
|
124
|
-
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
125
|
-
field_source: 'tron_transaction';
|
|
126
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
127
|
-
value: string | Array<string>;
|
|
128
|
-
}
|
|
129
|
-
interface UnionMember9 {
|
|
130
|
-
field: 'current_unix_timestamp';
|
|
131
|
-
field_source: 'system';
|
|
132
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
133
|
-
value: string | Array<string>;
|
|
134
|
-
}
|
|
135
|
-
interface UnionMember10 {
|
|
136
|
-
field: string;
|
|
137
|
-
field_source: 'reference';
|
|
138
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
139
|
-
value: string | Array<string>;
|
|
140
|
-
}
|
|
141
|
-
interface UnionMember11 {
|
|
142
|
-
abi: Array<UnionMember11.Abi>;
|
|
143
|
-
field: string;
|
|
144
|
-
field_source: 'tron_trigger_smart_contract_data';
|
|
145
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
146
|
-
value: string | Array<string>;
|
|
147
|
-
}
|
|
148
|
-
namespace UnionMember11 {
|
|
149
|
-
interface Abi {
|
|
150
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
151
|
-
anonymous?: boolean;
|
|
152
|
-
inputs?: Array<Abi.Input>;
|
|
153
|
-
name?: string;
|
|
154
|
-
outputs?: Array<Abi.Output>;
|
|
155
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
156
|
-
}
|
|
157
|
-
namespace Abi {
|
|
158
|
-
interface Input {
|
|
159
|
-
type: string;
|
|
160
|
-
components?: Array<unknown>;
|
|
161
|
-
indexed?: boolean;
|
|
162
|
-
internalType?: string;
|
|
163
|
-
name?: string;
|
|
164
|
-
}
|
|
165
|
-
interface Output {
|
|
166
|
-
type: string;
|
|
167
|
-
components?: Array<unknown>;
|
|
168
|
-
indexed?: boolean;
|
|
169
|
-
internalType?: string;
|
|
170
|
-
name?: string;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
interface UnionMember12 {
|
|
175
|
-
field: 'commandName';
|
|
176
|
-
field_source: 'sui_transaction_command';
|
|
177
|
-
operator: 'eq' | 'in';
|
|
178
|
-
/**
|
|
179
|
-
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
180
|
-
*/
|
|
181
|
-
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
182
|
-
}
|
|
183
|
-
interface UnionMember13 {
|
|
184
|
-
field: 'recipient' | 'amount';
|
|
185
|
-
field_source: 'sui_transfer_objects_command';
|
|
186
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
187
|
-
value: string | Array<string>;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
interface UnionMember1 {
|
|
192
|
-
body: UnionMember1.Body;
|
|
193
|
-
method: 'PATCH';
|
|
194
|
-
url: string;
|
|
195
|
-
}
|
|
196
|
-
namespace UnionMember1 {
|
|
197
|
-
interface Body {
|
|
198
|
-
action: 'ALLOW' | 'DENY';
|
|
199
|
-
conditions: Array<Body.UnionMember0 | Body.UnionMember1 | Body.UnionMember2 | Body.UnionMember3 | Body.UnionMember4 | Body.UnionMember5 | Body.UnionMember6 | Body.UnionMember7 | Body.UnionMember8 | Body.UnionMember9 | Body.UnionMember10 | Body.UnionMember11 | Body.UnionMember12 | Body.UnionMember13>;
|
|
200
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_signUserOperation' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'signTransactionBytes' | 'exportPrivateKey' | '*';
|
|
201
|
-
name: string;
|
|
202
|
-
}
|
|
203
|
-
namespace Body {
|
|
204
|
-
interface UnionMember0 {
|
|
205
|
-
field: 'to' | 'value' | 'chain_id';
|
|
206
|
-
field_source: 'ethereum_transaction';
|
|
207
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
208
|
-
value: string | Array<string>;
|
|
209
|
-
}
|
|
210
|
-
interface UnionMember1 {
|
|
211
|
-
abi: Array<UnionMember1.Abi>;
|
|
212
|
-
field: string;
|
|
213
|
-
field_source: 'ethereum_calldata';
|
|
214
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
215
|
-
value: string | Array<string>;
|
|
216
|
-
}
|
|
217
|
-
namespace UnionMember1 {
|
|
218
|
-
interface Abi {
|
|
219
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
220
|
-
anonymous?: boolean;
|
|
221
|
-
inputs?: Array<Abi.Input>;
|
|
222
|
-
name?: string;
|
|
223
|
-
outputs?: Array<Abi.Output>;
|
|
224
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
225
|
-
}
|
|
226
|
-
namespace Abi {
|
|
227
|
-
interface Input {
|
|
228
|
-
type: string;
|
|
229
|
-
components?: Array<unknown>;
|
|
230
|
-
indexed?: boolean;
|
|
231
|
-
internalType?: string;
|
|
232
|
-
name?: string;
|
|
233
|
-
}
|
|
234
|
-
interface Output {
|
|
235
|
-
type: string;
|
|
236
|
-
components?: Array<unknown>;
|
|
237
|
-
indexed?: boolean;
|
|
238
|
-
internalType?: string;
|
|
239
|
-
name?: string;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
interface UnionMember2 {
|
|
244
|
-
field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
|
|
245
|
-
field_source: 'ethereum_typed_data_domain';
|
|
246
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
247
|
-
value: string | Array<string>;
|
|
248
|
-
}
|
|
249
|
-
interface UnionMember3 {
|
|
250
|
-
field: string;
|
|
251
|
-
field_source: 'ethereum_typed_data_message';
|
|
252
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
253
|
-
typed_data: UnionMember3.TypedData;
|
|
254
|
-
value: string | Array<string>;
|
|
255
|
-
}
|
|
256
|
-
namespace UnionMember3 {
|
|
257
|
-
interface TypedData {
|
|
258
|
-
primary_type: string;
|
|
259
|
-
types: {
|
|
260
|
-
[key: string]: Array<TypedData.Type>;
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
namespace TypedData {
|
|
264
|
-
interface Type {
|
|
265
|
-
name: string;
|
|
266
|
-
type: string;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
interface UnionMember4 {
|
|
271
|
-
field: 'contract';
|
|
272
|
-
field_source: 'ethereum_7702_authorization';
|
|
273
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
274
|
-
value: string | Array<string>;
|
|
275
|
-
}
|
|
276
|
-
interface UnionMember5 {
|
|
277
|
-
field: 'programId';
|
|
278
|
-
field_source: 'solana_program_instruction';
|
|
279
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
280
|
-
value: string | Array<string>;
|
|
281
|
-
}
|
|
282
|
-
interface UnionMember6 {
|
|
283
|
-
field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
|
|
284
|
-
field_source: 'solana_system_program_instruction';
|
|
285
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
286
|
-
value: string | Array<string>;
|
|
287
|
-
}
|
|
288
|
-
interface UnionMember7 {
|
|
289
|
-
field: 'instructionName' | 'Transfer.source' | 'Transfer.destination' | 'Transfer.authority' | 'Transfer.amount' | 'TransferChecked.source' | 'TransferChecked.destination' | 'TransferChecked.authority' | 'TransferChecked.amount' | 'TransferChecked.mint' | 'Burn.account' | 'Burn.mint' | 'Burn.authority' | 'Burn.amount' | 'MintTo.mint' | 'MintTo.account' | 'MintTo.authority' | 'MintTo.amount' | 'CloseAccount.account' | 'CloseAccount.destination' | 'CloseAccount.authority' | 'InitializeAccount3.account' | 'InitializeAccount3.mint' | 'InitializeAccount3.owner';
|
|
290
|
-
field_source: 'solana_token_program_instruction';
|
|
291
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
292
|
-
value: string | Array<string>;
|
|
293
|
-
}
|
|
294
|
-
interface UnionMember8 {
|
|
295
|
-
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
296
|
-
field_source: 'tron_transaction';
|
|
297
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
298
|
-
value: string | Array<string>;
|
|
299
|
-
}
|
|
300
|
-
interface UnionMember9 {
|
|
301
|
-
field: 'current_unix_timestamp';
|
|
302
|
-
field_source: 'system';
|
|
303
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
304
|
-
value: string | Array<string>;
|
|
305
|
-
}
|
|
306
|
-
interface UnionMember10 {
|
|
307
|
-
field: string;
|
|
308
|
-
field_source: 'reference';
|
|
309
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
310
|
-
value: string | Array<string>;
|
|
311
|
-
}
|
|
312
|
-
interface UnionMember11 {
|
|
313
|
-
abi: Array<UnionMember11.Abi>;
|
|
314
|
-
field: string;
|
|
315
|
-
field_source: 'tron_trigger_smart_contract_data';
|
|
316
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
317
|
-
value: string | Array<string>;
|
|
318
|
-
}
|
|
319
|
-
namespace UnionMember11 {
|
|
320
|
-
interface Abi {
|
|
321
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
322
|
-
anonymous?: boolean;
|
|
323
|
-
inputs?: Array<Abi.Input>;
|
|
324
|
-
name?: string;
|
|
325
|
-
outputs?: Array<Abi.Output>;
|
|
326
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
327
|
-
}
|
|
328
|
-
namespace Abi {
|
|
329
|
-
interface Input {
|
|
330
|
-
type: string;
|
|
331
|
-
components?: Array<unknown>;
|
|
332
|
-
indexed?: boolean;
|
|
333
|
-
internalType?: string;
|
|
334
|
-
name?: string;
|
|
335
|
-
}
|
|
336
|
-
interface Output {
|
|
337
|
-
type: string;
|
|
338
|
-
components?: Array<unknown>;
|
|
339
|
-
indexed?: boolean;
|
|
340
|
-
internalType?: string;
|
|
341
|
-
name?: string;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
interface UnionMember12 {
|
|
346
|
-
field: 'commandName';
|
|
347
|
-
field_source: 'sui_transaction_command';
|
|
348
|
-
operator: 'eq' | 'in';
|
|
349
|
-
/**
|
|
350
|
-
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
351
|
-
*/
|
|
352
|
-
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
353
|
-
}
|
|
354
|
-
interface UnionMember13 {
|
|
355
|
-
field: 'recipient' | 'amount';
|
|
356
|
-
field_source: 'sui_transfer_objects_command';
|
|
357
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
358
|
-
value: string | Array<string>;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
interface UnionMember2 {
|
|
363
|
-
method: 'DELETE';
|
|
364
|
-
url: string;
|
|
365
|
-
body?: unknown;
|
|
20
|
+
export interface RpcIntentRequestDetails {
|
|
21
|
+
/**
|
|
22
|
+
* Request body for wallet RPC operations, discriminated by method.
|
|
23
|
+
*/
|
|
24
|
+
body: WalletsAPI.WalletRpcRequestBody;
|
|
25
|
+
method: 'POST';
|
|
26
|
+
url: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Request details for a transfer intent.
|
|
30
|
+
*/
|
|
31
|
+
export interface TransferIntentRequestDetails {
|
|
32
|
+
/**
|
|
33
|
+
* Request body for initiating a sponsored token transfer from an embedded wallet.
|
|
34
|
+
*/
|
|
35
|
+
body: WalletsAPI.CreateTokenTransferRequest;
|
|
36
|
+
method: 'POST';
|
|
37
|
+
url: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Request details for a policy intent.
|
|
41
|
+
*/
|
|
42
|
+
export interface PolicyIntentRequestDetails {
|
|
43
|
+
body: PolicyIntentRequestDetails.Body;
|
|
44
|
+
method: 'PATCH';
|
|
45
|
+
url: string;
|
|
46
|
+
}
|
|
47
|
+
export declare namespace PolicyIntentRequestDetails {
|
|
48
|
+
interface Body {
|
|
49
|
+
/**
|
|
50
|
+
* Name to assign to policy.
|
|
51
|
+
*/
|
|
52
|
+
name?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
55
|
+
* null to remove the current owner.
|
|
56
|
+
*/
|
|
57
|
+
owner?: SharedAPI.OwnerInput | null;
|
|
58
|
+
/**
|
|
59
|
+
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
60
|
+
* not specify an owner.
|
|
61
|
+
*/
|
|
62
|
+
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
63
|
+
rules?: Array<PoliciesAPI.PolicyRuleRequestBody>;
|
|
366
64
|
}
|
|
367
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Request details for creating a rule via intent.
|
|
68
|
+
*/
|
|
69
|
+
export interface RuleIntentCreateRequestDetails {
|
|
70
|
+
/**
|
|
71
|
+
* The rules that apply to each method the policy covers.
|
|
72
|
+
*/
|
|
73
|
+
body: PoliciesAPI.PolicyRuleRequestBody;
|
|
74
|
+
method: 'POST';
|
|
75
|
+
url: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Request details for updating a rule via intent.
|
|
79
|
+
*/
|
|
80
|
+
export interface RuleIntentUpdateRequestDetails {
|
|
81
|
+
/**
|
|
82
|
+
* The rules that apply to each method the policy covers.
|
|
83
|
+
*/
|
|
84
|
+
body: PoliciesAPI.PolicyRuleRequestBody;
|
|
85
|
+
method: 'PATCH';
|
|
86
|
+
url: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Request details for deleting a rule via intent.
|
|
90
|
+
*/
|
|
91
|
+
export interface RuleIntentDeleteRequestDetails {
|
|
92
|
+
method: 'DELETE';
|
|
93
|
+
url: string;
|
|
94
|
+
body?: unknown;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The original rule request. Method is POST (create), PATCH (update), or DELETE
|
|
98
|
+
* (delete)
|
|
99
|
+
*/
|
|
100
|
+
export type RuleIntentRequestDetails = RuleIntentCreateRequestDetails | RuleIntentUpdateRequestDetails | RuleIntentDeleteRequestDetails;
|
|
368
101
|
/**
|
|
369
102
|
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
370
103
|
*/
|
|
@@ -463,30 +196,9 @@ export interface IntentAuthorization {
|
|
|
463
196
|
display_name?: string;
|
|
464
197
|
}
|
|
465
198
|
/**
|
|
466
|
-
* Common fields
|
|
199
|
+
* Common fields shared by all intent response types.
|
|
467
200
|
*/
|
|
468
|
-
export interface
|
|
469
|
-
/**
|
|
470
|
-
* Unix timestamp when the action was executed
|
|
471
|
-
*/
|
|
472
|
-
executed_at: number;
|
|
473
|
-
/**
|
|
474
|
-
* HTTP status code from the action execution
|
|
475
|
-
*/
|
|
476
|
-
status_code: number;
|
|
477
|
-
/**
|
|
478
|
-
* Display name of the key quorum that authorized execution
|
|
479
|
-
*/
|
|
480
|
-
authorized_by_display_name?: string;
|
|
481
|
-
/**
|
|
482
|
-
* ID of the key quorum that authorized execution
|
|
483
|
-
*/
|
|
484
|
-
authorized_by_id?: string;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Response for an RPC intent
|
|
488
|
-
*/
|
|
489
|
-
export interface RpcIntentResponse {
|
|
201
|
+
export interface BaseIntentResponse {
|
|
490
202
|
/**
|
|
491
203
|
* Detailed authorization information including key quorum members, thresholds, and
|
|
492
204
|
* signature status
|
|
@@ -500,6 +212,11 @@ export interface RpcIntentResponse {
|
|
|
500
212
|
* Display name of the user who created the intent
|
|
501
213
|
*/
|
|
502
214
|
created_by_display_name: string;
|
|
215
|
+
/**
|
|
216
|
+
* Whether this intent has a custom expiry time set by the client. If false, the
|
|
217
|
+
* intent expires after a default duration.
|
|
218
|
+
*/
|
|
219
|
+
custom_expiry: boolean;
|
|
503
220
|
/**
|
|
504
221
|
* Unix timestamp when the intent expires
|
|
505
222
|
*/
|
|
@@ -508,11 +225,6 @@ export interface RpcIntentResponse {
|
|
|
508
225
|
* Unique ID for the intent
|
|
509
226
|
*/
|
|
510
227
|
intent_id: string;
|
|
511
|
-
intent_type: 'RPC';
|
|
512
|
-
/**
|
|
513
|
-
* The original RPC request that would be sent to the wallet endpoint
|
|
514
|
-
*/
|
|
515
|
-
request_details: RpcIntentResponse.RequestDetails;
|
|
516
228
|
/**
|
|
517
229
|
* ID of the resource being modified (wallet_id, policy_id, etc)
|
|
518
230
|
*/
|
|
@@ -521,20 +233,11 @@ export interface RpcIntentResponse {
|
|
|
521
233
|
* Current status of an intent.
|
|
522
234
|
*/
|
|
523
235
|
status: IntentStatus;
|
|
524
|
-
/**
|
|
525
|
-
* Result of RPC execution (only present if status is 'executed' or 'failed')
|
|
526
|
-
*/
|
|
527
|
-
action_result?: BaseActionResult;
|
|
528
236
|
/**
|
|
529
237
|
* ID of the user who created the intent. If undefined, the intent was created
|
|
530
238
|
* using the app secret
|
|
531
239
|
*/
|
|
532
240
|
created_by_id?: string;
|
|
533
|
-
/**
|
|
534
|
-
* Current state of the wallet before any changes. If undefined, the resource was
|
|
535
|
-
* deleted and no longer exists
|
|
536
|
-
*/
|
|
537
|
-
current_resource_data?: RpcIntentResponse.CurrentResourceData;
|
|
538
241
|
/**
|
|
539
242
|
* Human-readable reason for dismissal, present when status is 'dismissed'
|
|
540
243
|
*/
|
|
@@ -548,464 +251,108 @@ export interface RpcIntentResponse {
|
|
|
548
251
|
*/
|
|
549
252
|
rejected_at?: number;
|
|
550
253
|
}
|
|
551
|
-
export declare namespace RpcIntentResponse {
|
|
552
|
-
/**
|
|
553
|
-
* The original RPC request that would be sent to the wallet endpoint
|
|
554
|
-
*/
|
|
555
|
-
interface RequestDetails {
|
|
556
|
-
body: RequestDetails.UnionMember0 | RequestDetails.UnionMember1 | RequestDetails.UnionMember2 | RequestDetails.UnionMember3 | RequestDetails.UnionMember4 | RequestDetails.UnionMember5 | RequestDetails.UnionMember6 | RequestDetails.UnionMember7 | RequestDetails.UnionMember8 | RequestDetails.UnionMember9 | RequestDetails.UnionMember10 | RequestDetails.UnionMember11 | RequestDetails.UnionMember12 | RequestDetails.UnionMember13 | RequestDetails.UnionMember14 | RequestDetails.UnionMember15 | RequestDetails.UnionMember16 | RequestDetails.UnionMember17 | RequestDetails.UnionMember18 | RequestDetails.UnionMember19;
|
|
557
|
-
method: 'POST';
|
|
558
|
-
url: string;
|
|
559
|
-
}
|
|
560
|
-
namespace RequestDetails {
|
|
561
|
-
interface UnionMember0 {
|
|
562
|
-
method: 'eth_signTransaction';
|
|
563
|
-
params: UnionMember0.Params;
|
|
564
|
-
address?: string;
|
|
565
|
-
chain_type?: 'ethereum';
|
|
566
|
-
wallet_id?: string;
|
|
567
|
-
}
|
|
568
|
-
namespace UnionMember0 {
|
|
569
|
-
interface Params {
|
|
570
|
-
transaction: Params.Transaction;
|
|
571
|
-
}
|
|
572
|
-
namespace Params {
|
|
573
|
-
interface Transaction {
|
|
574
|
-
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
575
|
-
chain_id?: string | number;
|
|
576
|
-
data?: string;
|
|
577
|
-
from?: string;
|
|
578
|
-
gas_limit?: string | number;
|
|
579
|
-
gas_price?: string | number;
|
|
580
|
-
max_fee_per_gas?: string | number;
|
|
581
|
-
max_priority_fee_per_gas?: string | number;
|
|
582
|
-
nonce?: string | number;
|
|
583
|
-
to?: string;
|
|
584
|
-
type?: 0 | 1 | 2 | 4;
|
|
585
|
-
value?: string | number;
|
|
586
|
-
}
|
|
587
|
-
namespace Transaction {
|
|
588
|
-
interface AuthorizationList {
|
|
589
|
-
chain_id: string | number;
|
|
590
|
-
contract: string;
|
|
591
|
-
nonce: string | number;
|
|
592
|
-
r: string;
|
|
593
|
-
s: string;
|
|
594
|
-
y_parity: number;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
interface UnionMember1 {
|
|
600
|
-
caip2: string;
|
|
601
|
-
method: 'eth_sendTransaction';
|
|
602
|
-
params: UnionMember1.Params;
|
|
603
|
-
address?: string;
|
|
604
|
-
chain_type?: 'ethereum';
|
|
605
|
-
sponsor?: boolean;
|
|
606
|
-
wallet_id?: string;
|
|
607
|
-
}
|
|
608
|
-
namespace UnionMember1 {
|
|
609
|
-
interface Params {
|
|
610
|
-
transaction: Params.Transaction;
|
|
611
|
-
}
|
|
612
|
-
namespace Params {
|
|
613
|
-
interface Transaction {
|
|
614
|
-
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
615
|
-
chain_id?: string | number;
|
|
616
|
-
data?: string;
|
|
617
|
-
from?: string;
|
|
618
|
-
gas_limit?: string | number;
|
|
619
|
-
gas_price?: string | number;
|
|
620
|
-
max_fee_per_gas?: string | number;
|
|
621
|
-
max_priority_fee_per_gas?: string | number;
|
|
622
|
-
nonce?: string | number;
|
|
623
|
-
to?: string;
|
|
624
|
-
type?: 0 | 1 | 2 | 4;
|
|
625
|
-
value?: string | number;
|
|
626
|
-
}
|
|
627
|
-
namespace Transaction {
|
|
628
|
-
interface AuthorizationList {
|
|
629
|
-
chain_id: string | number;
|
|
630
|
-
contract: string;
|
|
631
|
-
nonce: string | number;
|
|
632
|
-
r: string;
|
|
633
|
-
s: string;
|
|
634
|
-
y_parity: number;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
interface UnionMember2 {
|
|
640
|
-
method: 'personal_sign';
|
|
641
|
-
params: UnionMember2.Params;
|
|
642
|
-
address?: string;
|
|
643
|
-
chain_type?: 'ethereum';
|
|
644
|
-
wallet_id?: string;
|
|
645
|
-
}
|
|
646
|
-
namespace UnionMember2 {
|
|
647
|
-
interface Params {
|
|
648
|
-
encoding: 'utf-8' | 'hex';
|
|
649
|
-
message: string;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
interface UnionMember3 {
|
|
653
|
-
method: 'eth_signTypedData_v4';
|
|
654
|
-
params: UnionMember3.Params;
|
|
655
|
-
address?: string;
|
|
656
|
-
chain_type?: 'ethereum';
|
|
657
|
-
wallet_id?: string;
|
|
658
|
-
}
|
|
659
|
-
namespace UnionMember3 {
|
|
660
|
-
interface Params {
|
|
661
|
-
typed_data: Params.TypedData;
|
|
662
|
-
}
|
|
663
|
-
namespace Params {
|
|
664
|
-
interface TypedData {
|
|
665
|
-
domain: {
|
|
666
|
-
[key: string]: unknown;
|
|
667
|
-
};
|
|
668
|
-
message: {
|
|
669
|
-
[key: string]: unknown;
|
|
670
|
-
};
|
|
671
|
-
primary_type: string;
|
|
672
|
-
types: {
|
|
673
|
-
[key: string]: Array<TypedData.Type>;
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
namespace TypedData {
|
|
677
|
-
interface Type {
|
|
678
|
-
name: string;
|
|
679
|
-
type: string;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
interface UnionMember4 {
|
|
685
|
-
method: 'secp256k1_sign';
|
|
686
|
-
params: UnionMember4.Params;
|
|
687
|
-
address?: string;
|
|
688
|
-
chain_type?: 'ethereum';
|
|
689
|
-
wallet_id?: string;
|
|
690
|
-
}
|
|
691
|
-
namespace UnionMember4 {
|
|
692
|
-
interface Params {
|
|
693
|
-
hash: string;
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
interface UnionMember5 {
|
|
697
|
-
method: 'eth_sign7702Authorization';
|
|
698
|
-
params: UnionMember5.Params;
|
|
699
|
-
address?: string;
|
|
700
|
-
chain_type?: 'ethereum';
|
|
701
|
-
wallet_id?: string;
|
|
702
|
-
}
|
|
703
|
-
namespace UnionMember5 {
|
|
704
|
-
interface Params {
|
|
705
|
-
chain_id: string | number;
|
|
706
|
-
contract: string;
|
|
707
|
-
nonce?: string | number;
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
interface UnionMember6 {
|
|
711
|
-
method: 'eth_signUserOperation';
|
|
712
|
-
params: UnionMember6.Params;
|
|
713
|
-
address?: string;
|
|
714
|
-
chain_type?: 'ethereum';
|
|
715
|
-
wallet_id?: string;
|
|
716
|
-
}
|
|
717
|
-
namespace UnionMember6 {
|
|
718
|
-
interface Params {
|
|
719
|
-
chain_id: string | number;
|
|
720
|
-
contract: string;
|
|
721
|
-
user_operation: Params.UserOperation;
|
|
722
|
-
}
|
|
723
|
-
namespace Params {
|
|
724
|
-
interface UserOperation {
|
|
725
|
-
call_data: string;
|
|
726
|
-
call_gas_limit: string;
|
|
727
|
-
max_fee_per_gas: string;
|
|
728
|
-
max_priority_fee_per_gas: string;
|
|
729
|
-
nonce: string;
|
|
730
|
-
paymaster: string;
|
|
731
|
-
paymaster_data: string;
|
|
732
|
-
paymaster_post_op_gas_limit: string;
|
|
733
|
-
paymaster_verification_gas_limit: string;
|
|
734
|
-
pre_verification_gas: string;
|
|
735
|
-
sender: string;
|
|
736
|
-
verification_gas_limit: string;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
interface UnionMember7 {
|
|
741
|
-
method: 'signTransaction';
|
|
742
|
-
params: UnionMember7.Params;
|
|
743
|
-
address?: string;
|
|
744
|
-
chain_type?: 'solana';
|
|
745
|
-
wallet_id?: string;
|
|
746
|
-
}
|
|
747
|
-
namespace UnionMember7 {
|
|
748
|
-
interface Params {
|
|
749
|
-
encoding: 'base64';
|
|
750
|
-
transaction: string;
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
interface UnionMember8 {
|
|
754
|
-
caip2: string;
|
|
755
|
-
method: 'signAndSendTransaction';
|
|
756
|
-
params: UnionMember8.Params;
|
|
757
|
-
address?: string;
|
|
758
|
-
chain_type?: 'solana';
|
|
759
|
-
sponsor?: boolean;
|
|
760
|
-
wallet_id?: string;
|
|
761
|
-
}
|
|
762
|
-
namespace UnionMember8 {
|
|
763
|
-
interface Params {
|
|
764
|
-
encoding: 'base64';
|
|
765
|
-
transaction: string;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
interface UnionMember9 {
|
|
769
|
-
method: 'signMessage';
|
|
770
|
-
params: UnionMember9.Params;
|
|
771
|
-
address?: string;
|
|
772
|
-
chain_type?: 'solana';
|
|
773
|
-
wallet_id?: string;
|
|
774
|
-
}
|
|
775
|
-
namespace UnionMember9 {
|
|
776
|
-
interface Params {
|
|
777
|
-
encoding: 'base64';
|
|
778
|
-
message: string;
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
interface UnionMember10 {
|
|
782
|
-
address: string;
|
|
783
|
-
method: 'exportPrivateKey';
|
|
784
|
-
params: UnionMember10.Params;
|
|
785
|
-
}
|
|
786
|
-
namespace UnionMember10 {
|
|
787
|
-
interface Params {
|
|
788
|
-
encryption_type: 'HPKE';
|
|
789
|
-
recipient_public_key: string;
|
|
790
|
-
export_type?: 'display' | 'client';
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
interface UnionMember11 {
|
|
794
|
-
method: 'transfer';
|
|
795
|
-
params: UnionMember11.Params;
|
|
796
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
797
|
-
}
|
|
798
|
-
namespace UnionMember11 {
|
|
799
|
-
interface Params {
|
|
800
|
-
amount_sats: number;
|
|
801
|
-
receiver_spark_address: string;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
interface UnionMember12 {
|
|
805
|
-
method: 'getBalance';
|
|
806
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
807
|
-
}
|
|
808
|
-
interface UnionMember13 {
|
|
809
|
-
method: 'transferTokens';
|
|
810
|
-
params: UnionMember13.Params;
|
|
811
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
812
|
-
}
|
|
813
|
-
namespace UnionMember13 {
|
|
814
|
-
interface Params {
|
|
815
|
-
receiver_spark_address: string;
|
|
816
|
-
token_amount: number;
|
|
817
|
-
token_identifier: string;
|
|
818
|
-
output_selection_strategy?: 'SMALL_FIRST' | 'LARGE_FIRST';
|
|
819
|
-
selected_outputs?: Array<Params.SelectedOutput>;
|
|
820
|
-
}
|
|
821
|
-
namespace Params {
|
|
822
|
-
interface SelectedOutput {
|
|
823
|
-
previous_transaction_hash: string;
|
|
824
|
-
previous_transaction_vout: number;
|
|
825
|
-
output?: SelectedOutput.Output;
|
|
826
|
-
}
|
|
827
|
-
namespace SelectedOutput {
|
|
828
|
-
interface Output {
|
|
829
|
-
owner_public_key: string;
|
|
830
|
-
token_amount: string;
|
|
831
|
-
id?: string;
|
|
832
|
-
revocation_commitment?: string;
|
|
833
|
-
token_identifier?: string;
|
|
834
|
-
token_public_key?: string;
|
|
835
|
-
withdraw_bond_sats?: number;
|
|
836
|
-
withdraw_relative_block_locktime?: number;
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
interface UnionMember14 {
|
|
842
|
-
method: 'getStaticDepositAddress';
|
|
843
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
844
|
-
}
|
|
845
|
-
interface UnionMember15 {
|
|
846
|
-
method: 'getClaimStaticDepositQuote';
|
|
847
|
-
params: UnionMember15.Params;
|
|
848
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
849
|
-
}
|
|
850
|
-
namespace UnionMember15 {
|
|
851
|
-
interface Params {
|
|
852
|
-
transaction_id: string;
|
|
853
|
-
output_index?: number;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
interface UnionMember16 {
|
|
857
|
-
method: 'claimStaticDeposit';
|
|
858
|
-
params: UnionMember16.Params;
|
|
859
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
860
|
-
}
|
|
861
|
-
namespace UnionMember16 {
|
|
862
|
-
interface Params {
|
|
863
|
-
credit_amount_sats: number;
|
|
864
|
-
signature: string;
|
|
865
|
-
transaction_id: string;
|
|
866
|
-
output_index?: number;
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
interface UnionMember17 {
|
|
870
|
-
method: 'createLightningInvoice';
|
|
871
|
-
params: UnionMember17.Params;
|
|
872
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
873
|
-
}
|
|
874
|
-
namespace UnionMember17 {
|
|
875
|
-
interface Params {
|
|
876
|
-
amount_sats: number;
|
|
877
|
-
description_hash?: string;
|
|
878
|
-
expiry_seconds?: number;
|
|
879
|
-
include_spark_address?: boolean;
|
|
880
|
-
memo?: string;
|
|
881
|
-
receiver_identity_pubkey?: string;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
interface UnionMember18 {
|
|
885
|
-
method: 'payLightningInvoice';
|
|
886
|
-
params: UnionMember18.Params;
|
|
887
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
888
|
-
}
|
|
889
|
-
namespace UnionMember18 {
|
|
890
|
-
interface Params {
|
|
891
|
-
invoice: string;
|
|
892
|
-
max_fee_sats: number;
|
|
893
|
-
amount_sats_to_send?: number;
|
|
894
|
-
prefer_spark?: boolean;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
interface UnionMember19 {
|
|
898
|
-
method: 'signMessageWithIdentityKey';
|
|
899
|
-
params: UnionMember19.Params;
|
|
900
|
-
network?: 'MAINNET' | 'REGTEST';
|
|
901
|
-
}
|
|
902
|
-
namespace UnionMember19 {
|
|
903
|
-
interface Params {
|
|
904
|
-
message: string;
|
|
905
|
-
compact?: boolean;
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
/**
|
|
910
|
-
* Current state of the wallet before any changes. If undefined, the resource was
|
|
911
|
-
* deleted and no longer exists
|
|
912
|
-
*/
|
|
913
|
-
interface CurrentResourceData {
|
|
914
|
-
id: string;
|
|
915
|
-
additional_signers: Array<CurrentResourceData.AdditionalSigner>;
|
|
916
|
-
address: string;
|
|
917
|
-
/**
|
|
918
|
-
* The wallet chain types.
|
|
919
|
-
*/
|
|
920
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
921
|
-
created_at: number;
|
|
922
|
-
exported_at: number | null;
|
|
923
|
-
imported_at: number | null;
|
|
924
|
-
owner_id: string | null;
|
|
925
|
-
policy_ids: Array<string>;
|
|
926
|
-
authorization_threshold?: number;
|
|
927
|
-
custodian?: CurrentResourceData.Custodian;
|
|
928
|
-
/**
|
|
929
|
-
* Information about the custodian managing this wallet.
|
|
930
|
-
*/
|
|
931
|
-
custody?: WalletsAPI.WalletCustodian;
|
|
932
|
-
public_key?: string;
|
|
933
|
-
}
|
|
934
|
-
namespace CurrentResourceData {
|
|
935
|
-
interface AdditionalSigner {
|
|
936
|
-
signer_id: string;
|
|
937
|
-
override_policy_ids?: Array<string>;
|
|
938
|
-
}
|
|
939
|
-
interface Custodian {
|
|
940
|
-
name: string;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
254
|
/**
|
|
945
|
-
*
|
|
255
|
+
* Common fields for intent action execution results.
|
|
946
256
|
*/
|
|
947
|
-
export interface
|
|
257
|
+
export interface BaseActionResult {
|
|
948
258
|
/**
|
|
949
|
-
*
|
|
950
|
-
* signature status
|
|
259
|
+
* Unix timestamp when the action was executed
|
|
951
260
|
*/
|
|
952
|
-
|
|
261
|
+
executed_at: number;
|
|
953
262
|
/**
|
|
954
|
-
*
|
|
263
|
+
* HTTP status code from the action execution
|
|
955
264
|
*/
|
|
956
|
-
|
|
265
|
+
status_code: number;
|
|
957
266
|
/**
|
|
958
|
-
* Display name of the
|
|
267
|
+
* Display name of the key quorum that authorized execution
|
|
959
268
|
*/
|
|
960
|
-
|
|
269
|
+
authorized_by_display_name?: string;
|
|
961
270
|
/**
|
|
962
|
-
*
|
|
271
|
+
* ID of the key quorum that authorized execution
|
|
963
272
|
*/
|
|
964
|
-
|
|
273
|
+
authorized_by_id?: string;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Response for an RPC intent
|
|
277
|
+
*/
|
|
278
|
+
export interface RpcIntentResponse extends BaseIntentResponse {
|
|
279
|
+
intent_type: 'RPC';
|
|
965
280
|
/**
|
|
966
|
-
*
|
|
281
|
+
* The original RPC request that would be sent to the wallet endpoint
|
|
967
282
|
*/
|
|
968
|
-
|
|
969
|
-
intent_type: 'WALLET';
|
|
283
|
+
request_details: RpcIntentResponse.RequestDetails;
|
|
970
284
|
/**
|
|
971
|
-
*
|
|
285
|
+
* Result of RPC execution (only present if status is 'executed' or 'failed')
|
|
972
286
|
*/
|
|
973
|
-
|
|
287
|
+
action_result?: BaseActionResult;
|
|
974
288
|
/**
|
|
975
|
-
*
|
|
289
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
976
290
|
*/
|
|
977
|
-
|
|
291
|
+
current_resource_data?: WalletsAPI.Wallet;
|
|
292
|
+
}
|
|
293
|
+
export declare namespace RpcIntentResponse {
|
|
978
294
|
/**
|
|
979
|
-
*
|
|
295
|
+
* The original RPC request that would be sent to the wallet endpoint
|
|
980
296
|
*/
|
|
981
|
-
|
|
297
|
+
interface RequestDetails {
|
|
298
|
+
/**
|
|
299
|
+
* Request body for wallet RPC operations, discriminated by method.
|
|
300
|
+
*/
|
|
301
|
+
body: WalletsAPI.WalletRpcRequestBody;
|
|
302
|
+
method: 'POST';
|
|
303
|
+
url: string;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Response for a transfer intent
|
|
308
|
+
*/
|
|
309
|
+
export interface TransferIntentResponse extends BaseIntentResponse {
|
|
310
|
+
intent_type: 'TRANSFER';
|
|
982
311
|
/**
|
|
983
|
-
*
|
|
312
|
+
* The original transfer request that would be sent to the wallet transfer endpoint
|
|
313
|
+
*/
|
|
314
|
+
request_details: TransferIntentResponse.RequestDetails;
|
|
315
|
+
/**
|
|
316
|
+
* Result of transfer execution (only present if intent status is 'executed' or
|
|
984
317
|
* 'failed')
|
|
985
318
|
*/
|
|
986
319
|
action_result?: BaseActionResult;
|
|
987
320
|
/**
|
|
988
|
-
*
|
|
989
|
-
* using the app secret
|
|
321
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
990
322
|
*/
|
|
991
|
-
|
|
323
|
+
current_resource_data?: WalletsAPI.Wallet;
|
|
324
|
+
}
|
|
325
|
+
export declare namespace TransferIntentResponse {
|
|
992
326
|
/**
|
|
993
|
-
*
|
|
994
|
-
* deleted and no longer exists
|
|
327
|
+
* The original transfer request that would be sent to the wallet transfer endpoint
|
|
995
328
|
*/
|
|
996
|
-
|
|
329
|
+
interface RequestDetails {
|
|
330
|
+
/**
|
|
331
|
+
* Request body for initiating a sponsored token transfer from an embedded wallet.
|
|
332
|
+
*/
|
|
333
|
+
body: WalletsAPI.CreateTokenTransferRequest;
|
|
334
|
+
method: 'POST';
|
|
335
|
+
url: string;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Response for a wallet intent
|
|
340
|
+
*/
|
|
341
|
+
export interface WalletIntentResponse extends BaseIntentResponse {
|
|
342
|
+
intent_type: 'WALLET';
|
|
997
343
|
/**
|
|
998
|
-
*
|
|
344
|
+
* The original wallet update request that would be sent to the wallet endpoint
|
|
999
345
|
*/
|
|
1000
|
-
|
|
346
|
+
request_details: WalletIntentResponse.RequestDetails;
|
|
1001
347
|
/**
|
|
1002
|
-
*
|
|
348
|
+
* Result of wallet update execution (only present if status is 'executed' or
|
|
349
|
+
* 'failed')
|
|
1003
350
|
*/
|
|
1004
|
-
|
|
351
|
+
action_result?: BaseActionResult;
|
|
1005
352
|
/**
|
|
1006
|
-
*
|
|
353
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
1007
354
|
*/
|
|
1008
|
-
|
|
355
|
+
current_resource_data?: WalletsAPI.Wallet;
|
|
1009
356
|
}
|
|
1010
357
|
export declare namespace WalletIntentResponse {
|
|
1011
358
|
/**
|
|
@@ -1018,126 +365,48 @@ export declare namespace WalletIntentResponse {
|
|
|
1018
365
|
}
|
|
1019
366
|
namespace RequestDetails {
|
|
1020
367
|
interface Body {
|
|
1021
|
-
|
|
368
|
+
/**
|
|
369
|
+
* Additional signers for the wallet.
|
|
370
|
+
*/
|
|
371
|
+
additional_signers?: WalletsAPI.AdditionalSignerInput;
|
|
1022
372
|
authorization_key_ids?: Array<string>;
|
|
1023
373
|
authorization_threshold?: number;
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
/**
|
|
1042
|
-
* Current state of the wallet before any changes. If undefined, the resource was
|
|
1043
|
-
* deleted and no longer exists
|
|
1044
|
-
*/
|
|
1045
|
-
interface CurrentResourceData {
|
|
1046
|
-
id: string;
|
|
1047
|
-
additional_signers: Array<CurrentResourceData.AdditionalSigner>;
|
|
1048
|
-
address: string;
|
|
1049
|
-
/**
|
|
1050
|
-
* The wallet chain types.
|
|
1051
|
-
*/
|
|
1052
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
1053
|
-
created_at: number;
|
|
1054
|
-
exported_at: number | null;
|
|
1055
|
-
imported_at: number | null;
|
|
1056
|
-
owner_id: string | null;
|
|
1057
|
-
policy_ids: Array<string>;
|
|
1058
|
-
authorization_threshold?: number;
|
|
1059
|
-
custodian?: CurrentResourceData.Custodian;
|
|
1060
|
-
/**
|
|
1061
|
-
* Information about the custodian managing this wallet.
|
|
1062
|
-
*/
|
|
1063
|
-
custody?: WalletsAPI.WalletCustodian;
|
|
1064
|
-
public_key?: string;
|
|
1065
|
-
}
|
|
1066
|
-
namespace CurrentResourceData {
|
|
1067
|
-
interface AdditionalSigner {
|
|
1068
|
-
signer_id: string;
|
|
1069
|
-
override_policy_ids?: Array<string>;
|
|
1070
|
-
}
|
|
1071
|
-
interface Custodian {
|
|
1072
|
-
name: string;
|
|
374
|
+
display_name?: string | null;
|
|
375
|
+
/**
|
|
376
|
+
* The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
377
|
+
* null to remove the current owner.
|
|
378
|
+
*/
|
|
379
|
+
owner?: SharedAPI.OwnerInput | null;
|
|
380
|
+
/**
|
|
381
|
+
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
382
|
+
* not specify an owner.
|
|
383
|
+
*/
|
|
384
|
+
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
385
|
+
/**
|
|
386
|
+
* An optional list of up to one policy ID to enforce on the wallet.
|
|
387
|
+
*/
|
|
388
|
+
policy_ids?: WalletsAPI.PolicyInput;
|
|
1073
389
|
}
|
|
1074
390
|
}
|
|
1075
391
|
}
|
|
1076
392
|
/**
|
|
1077
393
|
* Response for a policy intent
|
|
1078
394
|
*/
|
|
1079
|
-
export interface PolicyIntentResponse {
|
|
1080
|
-
/**
|
|
1081
|
-
* Detailed authorization information including key quorum members, thresholds, and
|
|
1082
|
-
* signature status
|
|
1083
|
-
*/
|
|
1084
|
-
authorization_details: Array<IntentAuthorization>;
|
|
1085
|
-
/**
|
|
1086
|
-
* Unix timestamp when the intent was created
|
|
1087
|
-
*/
|
|
1088
|
-
created_at: number;
|
|
1089
|
-
/**
|
|
1090
|
-
* Display name of the user who created the intent
|
|
1091
|
-
*/
|
|
1092
|
-
created_by_display_name: string;
|
|
1093
|
-
/**
|
|
1094
|
-
* Unix timestamp when the intent expires
|
|
1095
|
-
*/
|
|
1096
|
-
expires_at: number;
|
|
1097
|
-
/**
|
|
1098
|
-
* Unique ID for the intent
|
|
1099
|
-
*/
|
|
1100
|
-
intent_id: string;
|
|
395
|
+
export interface PolicyIntentResponse extends BaseIntentResponse {
|
|
1101
396
|
intent_type: 'POLICY';
|
|
1102
397
|
/**
|
|
1103
398
|
* The original policy update request that would be sent to the policy endpoint
|
|
1104
399
|
*/
|
|
1105
400
|
request_details: PolicyIntentResponse.RequestDetails;
|
|
1106
|
-
/**
|
|
1107
|
-
* ID of the resource being modified (wallet_id, policy_id, etc)
|
|
1108
|
-
*/
|
|
1109
|
-
resource_id: string;
|
|
1110
|
-
/**
|
|
1111
|
-
* Current status of an intent.
|
|
1112
|
-
*/
|
|
1113
|
-
status: IntentStatus;
|
|
1114
401
|
/**
|
|
1115
402
|
* Result of policy update execution (only present if status is 'executed' or
|
|
1116
403
|
* 'failed')
|
|
1117
404
|
*/
|
|
1118
405
|
action_result?: BaseActionResult;
|
|
1119
406
|
/**
|
|
1120
|
-
*
|
|
1121
|
-
* using the app secret
|
|
407
|
+
* A policy for controlling wallet operations.
|
|
1122
408
|
*/
|
|
1123
|
-
|
|
1124
|
-
/**
|
|
1125
|
-
* Current state of the policy before any changes. If undefined, the resource was
|
|
1126
|
-
* deleted and no longer exists
|
|
1127
|
-
*/
|
|
1128
|
-
current_resource_data?: PolicyIntentResponse.CurrentResourceData;
|
|
1129
|
-
/**
|
|
1130
|
-
* Human-readable reason for dismissal, present when status is 'dismissed'
|
|
1131
|
-
*/
|
|
1132
|
-
dismissal_reason?: string;
|
|
1133
|
-
/**
|
|
1134
|
-
* Unix timestamp when the intent was dismissed, present when status is 'dismissed'
|
|
1135
|
-
*/
|
|
1136
|
-
dismissed_at?: number;
|
|
1137
|
-
/**
|
|
1138
|
-
* Unix timestamp when the intent was rejected, present when status is 'rejected'
|
|
1139
|
-
*/
|
|
1140
|
-
rejected_at?: number;
|
|
409
|
+
current_resource_data?: PoliciesAPI.Policy;
|
|
1141
410
|
}
|
|
1142
411
|
export declare namespace PolicyIntentResponse {
|
|
1143
412
|
/**
|
|
@@ -1150,434 +419,43 @@ export declare namespace PolicyIntentResponse {
|
|
|
1150
419
|
}
|
|
1151
420
|
namespace RequestDetails {
|
|
1152
421
|
interface Body {
|
|
422
|
+
/**
|
|
423
|
+
* Name to assign to policy.
|
|
424
|
+
*/
|
|
1153
425
|
name?: string;
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
interface Rule {
|
|
1166
|
-
action: 'ALLOW' | 'DENY';
|
|
1167
|
-
conditions: Array<Rule.UnionMember0 | Rule.UnionMember1 | Rule.UnionMember2 | Rule.UnionMember3 | Rule.UnionMember4 | Rule.UnionMember5 | Rule.UnionMember6 | Rule.UnionMember7 | Rule.UnionMember8 | Rule.UnionMember9 | Rule.UnionMember10 | Rule.UnionMember11 | Rule.UnionMember12 | Rule.UnionMember13>;
|
|
1168
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_signUserOperation' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'signTransactionBytes' | 'exportPrivateKey' | '*';
|
|
1169
|
-
name: string;
|
|
1170
|
-
}
|
|
1171
|
-
namespace Rule {
|
|
1172
|
-
interface UnionMember0 {
|
|
1173
|
-
field: 'to' | 'value' | 'chain_id';
|
|
1174
|
-
field_source: 'ethereum_transaction';
|
|
1175
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1176
|
-
value: string | Array<string>;
|
|
1177
|
-
}
|
|
1178
|
-
interface UnionMember1 {
|
|
1179
|
-
abi: Array<UnionMember1.Abi>;
|
|
1180
|
-
field: string;
|
|
1181
|
-
field_source: 'ethereum_calldata';
|
|
1182
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1183
|
-
value: string | Array<string>;
|
|
1184
|
-
}
|
|
1185
|
-
namespace UnionMember1 {
|
|
1186
|
-
interface Abi {
|
|
1187
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
1188
|
-
anonymous?: boolean;
|
|
1189
|
-
inputs?: Array<Abi.Input>;
|
|
1190
|
-
name?: string;
|
|
1191
|
-
outputs?: Array<Abi.Output>;
|
|
1192
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
1193
|
-
}
|
|
1194
|
-
namespace Abi {
|
|
1195
|
-
interface Input {
|
|
1196
|
-
type: string;
|
|
1197
|
-
components?: Array<unknown>;
|
|
1198
|
-
indexed?: boolean;
|
|
1199
|
-
internalType?: string;
|
|
1200
|
-
name?: string;
|
|
1201
|
-
}
|
|
1202
|
-
interface Output {
|
|
1203
|
-
type: string;
|
|
1204
|
-
components?: Array<unknown>;
|
|
1205
|
-
indexed?: boolean;
|
|
1206
|
-
internalType?: string;
|
|
1207
|
-
name?: string;
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
interface UnionMember2 {
|
|
1212
|
-
field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
|
|
1213
|
-
field_source: 'ethereum_typed_data_domain';
|
|
1214
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1215
|
-
value: string | Array<string>;
|
|
1216
|
-
}
|
|
1217
|
-
interface UnionMember3 {
|
|
1218
|
-
field: string;
|
|
1219
|
-
field_source: 'ethereum_typed_data_message';
|
|
1220
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1221
|
-
typed_data: UnionMember3.TypedData;
|
|
1222
|
-
value: string | Array<string>;
|
|
1223
|
-
}
|
|
1224
|
-
namespace UnionMember3 {
|
|
1225
|
-
interface TypedData {
|
|
1226
|
-
primary_type: string;
|
|
1227
|
-
types: {
|
|
1228
|
-
[key: string]: Array<TypedData.Type>;
|
|
1229
|
-
};
|
|
1230
|
-
}
|
|
1231
|
-
namespace TypedData {
|
|
1232
|
-
interface Type {
|
|
1233
|
-
name: string;
|
|
1234
|
-
type: string;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
interface UnionMember4 {
|
|
1239
|
-
field: 'contract';
|
|
1240
|
-
field_source: 'ethereum_7702_authorization';
|
|
1241
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1242
|
-
value: string | Array<string>;
|
|
1243
|
-
}
|
|
1244
|
-
interface UnionMember5 {
|
|
1245
|
-
field: 'programId';
|
|
1246
|
-
field_source: 'solana_program_instruction';
|
|
1247
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1248
|
-
value: string | Array<string>;
|
|
1249
|
-
}
|
|
1250
|
-
interface UnionMember6 {
|
|
1251
|
-
field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
|
|
1252
|
-
field_source: 'solana_system_program_instruction';
|
|
1253
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1254
|
-
value: string | Array<string>;
|
|
1255
|
-
}
|
|
1256
|
-
interface UnionMember7 {
|
|
1257
|
-
field: 'instructionName' | 'Transfer.source' | 'Transfer.destination' | 'Transfer.authority' | 'Transfer.amount' | 'TransferChecked.source' | 'TransferChecked.destination' | 'TransferChecked.authority' | 'TransferChecked.amount' | 'TransferChecked.mint' | 'Burn.account' | 'Burn.mint' | 'Burn.authority' | 'Burn.amount' | 'MintTo.mint' | 'MintTo.account' | 'MintTo.authority' | 'MintTo.amount' | 'CloseAccount.account' | 'CloseAccount.destination' | 'CloseAccount.authority' | 'InitializeAccount3.account' | 'InitializeAccount3.mint' | 'InitializeAccount3.owner';
|
|
1258
|
-
field_source: 'solana_token_program_instruction';
|
|
1259
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1260
|
-
value: string | Array<string>;
|
|
1261
|
-
}
|
|
1262
|
-
interface UnionMember8 {
|
|
1263
|
-
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
1264
|
-
field_source: 'tron_transaction';
|
|
1265
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1266
|
-
value: string | Array<string>;
|
|
1267
|
-
}
|
|
1268
|
-
interface UnionMember9 {
|
|
1269
|
-
field: 'current_unix_timestamp';
|
|
1270
|
-
field_source: 'system';
|
|
1271
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1272
|
-
value: string | Array<string>;
|
|
1273
|
-
}
|
|
1274
|
-
interface UnionMember10 {
|
|
1275
|
-
field: string;
|
|
1276
|
-
field_source: 'reference';
|
|
1277
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1278
|
-
value: string | Array<string>;
|
|
1279
|
-
}
|
|
1280
|
-
interface UnionMember11 {
|
|
1281
|
-
abi: Array<UnionMember11.Abi>;
|
|
1282
|
-
field: string;
|
|
1283
|
-
field_source: 'tron_trigger_smart_contract_data';
|
|
1284
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1285
|
-
value: string | Array<string>;
|
|
1286
|
-
}
|
|
1287
|
-
namespace UnionMember11 {
|
|
1288
|
-
interface Abi {
|
|
1289
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
1290
|
-
anonymous?: boolean;
|
|
1291
|
-
inputs?: Array<Abi.Input>;
|
|
1292
|
-
name?: string;
|
|
1293
|
-
outputs?: Array<Abi.Output>;
|
|
1294
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
1295
|
-
}
|
|
1296
|
-
namespace Abi {
|
|
1297
|
-
interface Input {
|
|
1298
|
-
type: string;
|
|
1299
|
-
components?: Array<unknown>;
|
|
1300
|
-
indexed?: boolean;
|
|
1301
|
-
internalType?: string;
|
|
1302
|
-
name?: string;
|
|
1303
|
-
}
|
|
1304
|
-
interface Output {
|
|
1305
|
-
type: string;
|
|
1306
|
-
components?: Array<unknown>;
|
|
1307
|
-
indexed?: boolean;
|
|
1308
|
-
internalType?: string;
|
|
1309
|
-
name?: string;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
interface UnionMember12 {
|
|
1314
|
-
field: 'commandName';
|
|
1315
|
-
field_source: 'sui_transaction_command';
|
|
1316
|
-
operator: 'eq' | 'in';
|
|
1317
|
-
/**
|
|
1318
|
-
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
1319
|
-
*/
|
|
1320
|
-
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
1321
|
-
}
|
|
1322
|
-
interface UnionMember13 {
|
|
1323
|
-
field: 'recipient' | 'amount';
|
|
1324
|
-
field_source: 'sui_transfer_objects_command';
|
|
1325
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1326
|
-
value: string | Array<string>;
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
/**
|
|
1332
|
-
* Current state of the policy before any changes. If undefined, the resource was
|
|
1333
|
-
* deleted and no longer exists
|
|
1334
|
-
*/
|
|
1335
|
-
interface CurrentResourceData {
|
|
1336
|
-
id: string;
|
|
1337
|
-
/**
|
|
1338
|
-
* The wallet chain types.
|
|
1339
|
-
*/
|
|
1340
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
1341
|
-
created_at: number;
|
|
1342
|
-
name: string;
|
|
1343
|
-
owner_id: string | null;
|
|
1344
|
-
rules: Array<CurrentResourceData.Rule>;
|
|
1345
|
-
version: '1.0';
|
|
1346
|
-
}
|
|
1347
|
-
namespace CurrentResourceData {
|
|
1348
|
-
interface Rule {
|
|
1349
|
-
id: string;
|
|
1350
|
-
action: 'ALLOW' | 'DENY';
|
|
1351
|
-
conditions: Array<Rule.UnionMember0 | Rule.UnionMember1 | Rule.UnionMember2 | Rule.UnionMember3 | Rule.UnionMember4 | Rule.UnionMember5 | Rule.UnionMember6 | Rule.UnionMember7 | Rule.UnionMember8 | Rule.UnionMember9 | Rule.UnionMember10 | Rule.UnionMember11 | Rule.UnionMember12 | Rule.UnionMember13>;
|
|
1352
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_signUserOperation' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'signTransactionBytes' | 'exportPrivateKey' | '*';
|
|
1353
|
-
name: string;
|
|
1354
|
-
}
|
|
1355
|
-
namespace Rule {
|
|
1356
|
-
interface UnionMember0 {
|
|
1357
|
-
field: 'to' | 'value' | 'chain_id';
|
|
1358
|
-
field_source: 'ethereum_transaction';
|
|
1359
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1360
|
-
value: string | Array<string>;
|
|
1361
|
-
}
|
|
1362
|
-
interface UnionMember1 {
|
|
1363
|
-
abi: Array<UnionMember1.Abi>;
|
|
1364
|
-
field: string;
|
|
1365
|
-
field_source: 'ethereum_calldata';
|
|
1366
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1367
|
-
value: string | Array<string>;
|
|
1368
|
-
}
|
|
1369
|
-
namespace UnionMember1 {
|
|
1370
|
-
interface Abi {
|
|
1371
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
1372
|
-
anonymous?: boolean;
|
|
1373
|
-
inputs?: Array<Abi.Input>;
|
|
1374
|
-
name?: string;
|
|
1375
|
-
outputs?: Array<Abi.Output>;
|
|
1376
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
1377
|
-
}
|
|
1378
|
-
namespace Abi {
|
|
1379
|
-
interface Input {
|
|
1380
|
-
type: string;
|
|
1381
|
-
components?: Array<unknown>;
|
|
1382
|
-
indexed?: boolean;
|
|
1383
|
-
internalType?: string;
|
|
1384
|
-
name?: string;
|
|
1385
|
-
}
|
|
1386
|
-
interface Output {
|
|
1387
|
-
type: string;
|
|
1388
|
-
components?: Array<unknown>;
|
|
1389
|
-
indexed?: boolean;
|
|
1390
|
-
internalType?: string;
|
|
1391
|
-
name?: string;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
interface UnionMember2 {
|
|
1396
|
-
field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
|
|
1397
|
-
field_source: 'ethereum_typed_data_domain';
|
|
1398
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1399
|
-
value: string | Array<string>;
|
|
1400
|
-
}
|
|
1401
|
-
interface UnionMember3 {
|
|
1402
|
-
field: string;
|
|
1403
|
-
field_source: 'ethereum_typed_data_message';
|
|
1404
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1405
|
-
typed_data: UnionMember3.TypedData;
|
|
1406
|
-
value: string | Array<string>;
|
|
1407
|
-
}
|
|
1408
|
-
namespace UnionMember3 {
|
|
1409
|
-
interface TypedData {
|
|
1410
|
-
primary_type: string;
|
|
1411
|
-
types: {
|
|
1412
|
-
[key: string]: Array<TypedData.Type>;
|
|
1413
|
-
};
|
|
1414
|
-
}
|
|
1415
|
-
namespace TypedData {
|
|
1416
|
-
interface Type {
|
|
1417
|
-
name: string;
|
|
1418
|
-
type: string;
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
interface UnionMember4 {
|
|
1423
|
-
field: 'contract';
|
|
1424
|
-
field_source: 'ethereum_7702_authorization';
|
|
1425
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1426
|
-
value: string | Array<string>;
|
|
1427
|
-
}
|
|
1428
|
-
interface UnionMember5 {
|
|
1429
|
-
field: 'programId';
|
|
1430
|
-
field_source: 'solana_program_instruction';
|
|
1431
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1432
|
-
value: string | Array<string>;
|
|
1433
|
-
}
|
|
1434
|
-
interface UnionMember6 {
|
|
1435
|
-
field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
|
|
1436
|
-
field_source: 'solana_system_program_instruction';
|
|
1437
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1438
|
-
value: string | Array<string>;
|
|
1439
|
-
}
|
|
1440
|
-
interface UnionMember7 {
|
|
1441
|
-
field: 'instructionName' | 'Transfer.source' | 'Transfer.destination' | 'Transfer.authority' | 'Transfer.amount' | 'TransferChecked.source' | 'TransferChecked.destination' | 'TransferChecked.authority' | 'TransferChecked.amount' | 'TransferChecked.mint' | 'Burn.account' | 'Burn.mint' | 'Burn.authority' | 'Burn.amount' | 'MintTo.mint' | 'MintTo.account' | 'MintTo.authority' | 'MintTo.amount' | 'CloseAccount.account' | 'CloseAccount.destination' | 'CloseAccount.authority' | 'InitializeAccount3.account' | 'InitializeAccount3.mint' | 'InitializeAccount3.owner';
|
|
1442
|
-
field_source: 'solana_token_program_instruction';
|
|
1443
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1444
|
-
value: string | Array<string>;
|
|
1445
|
-
}
|
|
1446
|
-
interface UnionMember8 {
|
|
1447
|
-
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
1448
|
-
field_source: 'tron_transaction';
|
|
1449
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1450
|
-
value: string | Array<string>;
|
|
1451
|
-
}
|
|
1452
|
-
interface UnionMember9 {
|
|
1453
|
-
field: 'current_unix_timestamp';
|
|
1454
|
-
field_source: 'system';
|
|
1455
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1456
|
-
value: string | Array<string>;
|
|
1457
|
-
}
|
|
1458
|
-
interface UnionMember10 {
|
|
1459
|
-
field: string;
|
|
1460
|
-
field_source: 'reference';
|
|
1461
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1462
|
-
value: string | Array<string>;
|
|
1463
|
-
}
|
|
1464
|
-
interface UnionMember11 {
|
|
1465
|
-
abi: Array<UnionMember11.Abi>;
|
|
1466
|
-
field: string;
|
|
1467
|
-
field_source: 'tron_trigger_smart_contract_data';
|
|
1468
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1469
|
-
value: string | Array<string>;
|
|
1470
|
-
}
|
|
1471
|
-
namespace UnionMember11 {
|
|
1472
|
-
interface Abi {
|
|
1473
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
1474
|
-
anonymous?: boolean;
|
|
1475
|
-
inputs?: Array<Abi.Input>;
|
|
1476
|
-
name?: string;
|
|
1477
|
-
outputs?: Array<Abi.Output>;
|
|
1478
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
1479
|
-
}
|
|
1480
|
-
namespace Abi {
|
|
1481
|
-
interface Input {
|
|
1482
|
-
type: string;
|
|
1483
|
-
components?: Array<unknown>;
|
|
1484
|
-
indexed?: boolean;
|
|
1485
|
-
internalType?: string;
|
|
1486
|
-
name?: string;
|
|
1487
|
-
}
|
|
1488
|
-
interface Output {
|
|
1489
|
-
type: string;
|
|
1490
|
-
components?: Array<unknown>;
|
|
1491
|
-
indexed?: boolean;
|
|
1492
|
-
internalType?: string;
|
|
1493
|
-
name?: string;
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
interface UnionMember12 {
|
|
1498
|
-
field: 'commandName';
|
|
1499
|
-
field_source: 'sui_transaction_command';
|
|
1500
|
-
operator: 'eq' | 'in';
|
|
1501
|
-
/**
|
|
1502
|
-
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
1503
|
-
*/
|
|
1504
|
-
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
1505
|
-
}
|
|
1506
|
-
interface UnionMember13 {
|
|
1507
|
-
field: 'recipient' | 'amount';
|
|
1508
|
-
field_source: 'sui_transfer_objects_command';
|
|
1509
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1510
|
-
value: string | Array<string>;
|
|
1511
|
-
}
|
|
426
|
+
/**
|
|
427
|
+
* The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
428
|
+
* null to remove the current owner.
|
|
429
|
+
*/
|
|
430
|
+
owner?: SharedAPI.OwnerInput | null;
|
|
431
|
+
/**
|
|
432
|
+
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
433
|
+
* not specify an owner.
|
|
434
|
+
*/
|
|
435
|
+
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
436
|
+
rules?: Array<PoliciesAPI.PolicyRuleRequestBody>;
|
|
1512
437
|
}
|
|
1513
438
|
}
|
|
1514
439
|
}
|
|
1515
440
|
/**
|
|
1516
441
|
* Response for a key quorum intent
|
|
1517
442
|
*/
|
|
1518
|
-
export interface KeyQuorumIntentResponse {
|
|
1519
|
-
/**
|
|
1520
|
-
* Detailed authorization information including key quorum members, thresholds, and
|
|
1521
|
-
* signature status
|
|
1522
|
-
*/
|
|
1523
|
-
authorization_details: Array<IntentAuthorization>;
|
|
1524
|
-
/**
|
|
1525
|
-
* Unix timestamp when the intent was created
|
|
1526
|
-
*/
|
|
1527
|
-
created_at: number;
|
|
1528
|
-
/**
|
|
1529
|
-
* Display name of the user who created the intent
|
|
1530
|
-
*/
|
|
1531
|
-
created_by_display_name: string;
|
|
1532
|
-
/**
|
|
1533
|
-
* Unix timestamp when the intent expires
|
|
1534
|
-
*/
|
|
1535
|
-
expires_at: number;
|
|
1536
|
-
/**
|
|
1537
|
-
* Unique ID for the intent
|
|
1538
|
-
*/
|
|
1539
|
-
intent_id: string;
|
|
443
|
+
export interface KeyQuorumIntentResponse extends BaseIntentResponse {
|
|
1540
444
|
intent_type: 'KEY_QUORUM';
|
|
1541
445
|
/**
|
|
1542
446
|
* The original key quorum update request that would be sent to the key quorum
|
|
1543
447
|
* endpoint
|
|
1544
448
|
*/
|
|
1545
449
|
request_details: KeyQuorumIntentResponse.RequestDetails;
|
|
1546
|
-
/**
|
|
1547
|
-
* ID of the resource being modified (wallet_id, policy_id, etc)
|
|
1548
|
-
*/
|
|
1549
|
-
resource_id: string;
|
|
1550
|
-
/**
|
|
1551
|
-
* Current status of an intent.
|
|
1552
|
-
*/
|
|
1553
|
-
status: IntentStatus;
|
|
1554
450
|
/**
|
|
1555
451
|
* Result of key quorum update execution (only present if status is 'executed' or
|
|
1556
452
|
* 'failed')
|
|
1557
453
|
*/
|
|
1558
454
|
action_result?: BaseActionResult;
|
|
1559
455
|
/**
|
|
1560
|
-
*
|
|
1561
|
-
* using the app secret
|
|
1562
|
-
*/
|
|
1563
|
-
created_by_id?: string;
|
|
1564
|
-
/**
|
|
1565
|
-
* Current state of the key quorum before any changes. If undefined, the resource
|
|
1566
|
-
* was deleted and no longer exists
|
|
1567
|
-
*/
|
|
1568
|
-
current_resource_data?: KeyQuorumIntentResponse.CurrentResourceData;
|
|
1569
|
-
/**
|
|
1570
|
-
* Human-readable reason for dismissal, present when status is 'dismissed'
|
|
1571
|
-
*/
|
|
1572
|
-
dismissal_reason?: string;
|
|
1573
|
-
/**
|
|
1574
|
-
* Unix timestamp when the intent was dismissed, present when status is 'dismissed'
|
|
1575
|
-
*/
|
|
1576
|
-
dismissed_at?: number;
|
|
1577
|
-
/**
|
|
1578
|
-
* Unix timestamp when the intent was rejected, present when status is 'rejected'
|
|
456
|
+
* A key quorum for authorizing wallet operations.
|
|
1579
457
|
*/
|
|
1580
|
-
|
|
458
|
+
current_resource_data?: KeyQuorumsAPI.KeyQuorum;
|
|
1581
459
|
}
|
|
1582
460
|
export declare namespace KeyQuorumIntentResponse {
|
|
1583
461
|
/**
|
|
@@ -1585,468 +463,57 @@ export declare namespace KeyQuorumIntentResponse {
|
|
|
1585
463
|
* endpoint
|
|
1586
464
|
*/
|
|
1587
465
|
interface RequestDetails {
|
|
1588
|
-
|
|
466
|
+
/**
|
|
467
|
+
* Request input for updating an existing key quorum.
|
|
468
|
+
*/
|
|
469
|
+
body: KeyQuorumsAPI.KeyQuorumUpdateRequestBody;
|
|
1589
470
|
method: 'PATCH';
|
|
1590
471
|
url: string;
|
|
1591
472
|
}
|
|
1592
|
-
namespace RequestDetails {
|
|
1593
|
-
interface Body {
|
|
1594
|
-
authorization_threshold?: number;
|
|
1595
|
-
display_name?: string;
|
|
1596
|
-
key_quorum_ids?: Array<string>;
|
|
1597
|
-
public_keys?: Array<string>;
|
|
1598
|
-
user_ids?: Array<string>;
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
/**
|
|
1602
|
-
* Current state of the key quorum before any changes. If undefined, the resource
|
|
1603
|
-
* was deleted and no longer exists
|
|
1604
|
-
*/
|
|
1605
|
-
interface CurrentResourceData {
|
|
1606
|
-
id: string;
|
|
1607
|
-
authorization_keys: Array<CurrentResourceData.AuthorizationKey>;
|
|
1608
|
-
authorization_threshold: number | null;
|
|
1609
|
-
display_name: string | null;
|
|
1610
|
-
user_ids: Array<string> | null;
|
|
1611
|
-
key_quorum_ids?: Array<string>;
|
|
1612
|
-
}
|
|
1613
|
-
namespace CurrentResourceData {
|
|
1614
|
-
interface AuthorizationKey {
|
|
1615
|
-
display_name: string | null;
|
|
1616
|
-
public_key: string;
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
473
|
}
|
|
1620
474
|
/**
|
|
1621
475
|
* Response for a rule intent
|
|
1622
476
|
*/
|
|
1623
|
-
export interface RuleIntentResponse {
|
|
1624
|
-
/**
|
|
1625
|
-
* Detailed authorization information including key quorum members, thresholds, and
|
|
1626
|
-
* signature status
|
|
1627
|
-
*/
|
|
1628
|
-
authorization_details: Array<IntentAuthorization>;
|
|
1629
|
-
/**
|
|
1630
|
-
* Unix timestamp when the intent was created
|
|
1631
|
-
*/
|
|
1632
|
-
created_at: number;
|
|
1633
|
-
/**
|
|
1634
|
-
* Display name of the user who created the intent
|
|
1635
|
-
*/
|
|
1636
|
-
created_by_display_name: string;
|
|
1637
|
-
/**
|
|
1638
|
-
* Unix timestamp when the intent expires
|
|
1639
|
-
*/
|
|
1640
|
-
expires_at: number;
|
|
1641
|
-
/**
|
|
1642
|
-
* Unique ID for the intent
|
|
1643
|
-
*/
|
|
1644
|
-
intent_id: string;
|
|
477
|
+
export interface RuleIntentResponse extends BaseIntentResponse {
|
|
1645
478
|
intent_type: 'RULE';
|
|
1646
479
|
/**
|
|
1647
480
|
* The original rule request. Method is POST (create), PATCH (update), or DELETE
|
|
1648
481
|
* (delete)
|
|
1649
482
|
*/
|
|
1650
483
|
request_details: RuleIntentRequestDetails;
|
|
1651
|
-
/**
|
|
1652
|
-
* ID of the resource being modified (wallet_id, policy_id, etc)
|
|
1653
|
-
*/
|
|
1654
|
-
resource_id: string;
|
|
1655
|
-
/**
|
|
1656
|
-
* Current status of an intent.
|
|
1657
|
-
*/
|
|
1658
|
-
status: IntentStatus;
|
|
1659
484
|
/**
|
|
1660
485
|
* Result of rule execution (only present if status is 'executed' or 'failed')
|
|
1661
486
|
*/
|
|
1662
487
|
action_result?: BaseActionResult;
|
|
1663
488
|
/**
|
|
1664
|
-
*
|
|
1665
|
-
*
|
|
1666
|
-
*/
|
|
1667
|
-
created_by_id?: string;
|
|
1668
|
-
/**
|
|
1669
|
-
* Current state of the rule before any changes. Undefined for create intents or if
|
|
1670
|
-
* the rule was deleted
|
|
1671
|
-
*/
|
|
1672
|
-
current_resource_data?: RuleIntentResponse.CurrentResourceData;
|
|
1673
|
-
/**
|
|
1674
|
-
* Human-readable reason for dismissal, present when status is 'dismissed'
|
|
1675
|
-
*/
|
|
1676
|
-
dismissal_reason?: string;
|
|
1677
|
-
/**
|
|
1678
|
-
* Unix timestamp when the intent was dismissed, present when status is 'dismissed'
|
|
489
|
+
* A rule that defines the conditions and action to take if the conditions are
|
|
490
|
+
* true.
|
|
1679
491
|
*/
|
|
1680
|
-
|
|
492
|
+
current_resource_data?: PoliciesAPI.PolicyRuleResponse;
|
|
1681
493
|
/**
|
|
1682
|
-
*
|
|
1683
|
-
* display
|
|
494
|
+
* A policy for controlling wallet operations.
|
|
1684
495
|
*/
|
|
1685
|
-
policy?:
|
|
1686
|
-
/**
|
|
1687
|
-
* Unix timestamp when the intent was rejected, present when status is 'rejected'
|
|
1688
|
-
*/
|
|
1689
|
-
rejected_at?: number;
|
|
496
|
+
policy?: PoliciesAPI.Policy;
|
|
1690
497
|
}
|
|
1691
|
-
|
|
498
|
+
/**
|
|
499
|
+
* Response for an intent object
|
|
500
|
+
*/
|
|
501
|
+
export type IntentResponse = RpcIntentResponse | TransferIntentResponse | WalletIntentResponse | PolicyIntentResponse | RuleIntentResponse | KeyQuorumIntentResponse;
|
|
502
|
+
/**
|
|
503
|
+
* Headers required to create an intent.
|
|
504
|
+
*/
|
|
505
|
+
export interface IntentCreationHeaders {
|
|
1692
506
|
/**
|
|
1693
|
-
*
|
|
1694
|
-
* the rule was deleted
|
|
507
|
+
* ID of your Privy app.
|
|
1695
508
|
*/
|
|
1696
|
-
|
|
1697
|
-
id: string;
|
|
1698
|
-
action: 'ALLOW' | 'DENY';
|
|
1699
|
-
conditions: Array<CurrentResourceData.UnionMember0 | CurrentResourceData.UnionMember1 | CurrentResourceData.UnionMember2 | CurrentResourceData.UnionMember3 | CurrentResourceData.UnionMember4 | CurrentResourceData.UnionMember5 | CurrentResourceData.UnionMember6 | CurrentResourceData.UnionMember7 | CurrentResourceData.UnionMember8 | CurrentResourceData.UnionMember9 | CurrentResourceData.UnionMember10 | CurrentResourceData.UnionMember11 | CurrentResourceData.UnionMember12 | CurrentResourceData.UnionMember13>;
|
|
1700
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_signUserOperation' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'signTransactionBytes' | 'exportPrivateKey' | '*';
|
|
1701
|
-
name: string;
|
|
1702
|
-
}
|
|
1703
|
-
namespace CurrentResourceData {
|
|
1704
|
-
interface UnionMember0 {
|
|
1705
|
-
field: 'to' | 'value' | 'chain_id';
|
|
1706
|
-
field_source: 'ethereum_transaction';
|
|
1707
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1708
|
-
value: string | Array<string>;
|
|
1709
|
-
}
|
|
1710
|
-
interface UnionMember1 {
|
|
1711
|
-
abi: Array<UnionMember1.Abi>;
|
|
1712
|
-
field: string;
|
|
1713
|
-
field_source: 'ethereum_calldata';
|
|
1714
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1715
|
-
value: string | Array<string>;
|
|
1716
|
-
}
|
|
1717
|
-
namespace UnionMember1 {
|
|
1718
|
-
interface Abi {
|
|
1719
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
1720
|
-
anonymous?: boolean;
|
|
1721
|
-
inputs?: Array<Abi.Input>;
|
|
1722
|
-
name?: string;
|
|
1723
|
-
outputs?: Array<Abi.Output>;
|
|
1724
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
1725
|
-
}
|
|
1726
|
-
namespace Abi {
|
|
1727
|
-
interface Input {
|
|
1728
|
-
type: string;
|
|
1729
|
-
components?: Array<unknown>;
|
|
1730
|
-
indexed?: boolean;
|
|
1731
|
-
internalType?: string;
|
|
1732
|
-
name?: string;
|
|
1733
|
-
}
|
|
1734
|
-
interface Output {
|
|
1735
|
-
type: string;
|
|
1736
|
-
components?: Array<unknown>;
|
|
1737
|
-
indexed?: boolean;
|
|
1738
|
-
internalType?: string;
|
|
1739
|
-
name?: string;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
interface UnionMember2 {
|
|
1744
|
-
field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
|
|
1745
|
-
field_source: 'ethereum_typed_data_domain';
|
|
1746
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1747
|
-
value: string | Array<string>;
|
|
1748
|
-
}
|
|
1749
|
-
interface UnionMember3 {
|
|
1750
|
-
field: string;
|
|
1751
|
-
field_source: 'ethereum_typed_data_message';
|
|
1752
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1753
|
-
typed_data: UnionMember3.TypedData;
|
|
1754
|
-
value: string | Array<string>;
|
|
1755
|
-
}
|
|
1756
|
-
namespace UnionMember3 {
|
|
1757
|
-
interface TypedData {
|
|
1758
|
-
primary_type: string;
|
|
1759
|
-
types: {
|
|
1760
|
-
[key: string]: Array<TypedData.Type>;
|
|
1761
|
-
};
|
|
1762
|
-
}
|
|
1763
|
-
namespace TypedData {
|
|
1764
|
-
interface Type {
|
|
1765
|
-
name: string;
|
|
1766
|
-
type: string;
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
interface UnionMember4 {
|
|
1771
|
-
field: 'contract';
|
|
1772
|
-
field_source: 'ethereum_7702_authorization';
|
|
1773
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1774
|
-
value: string | Array<string>;
|
|
1775
|
-
}
|
|
1776
|
-
interface UnionMember5 {
|
|
1777
|
-
field: 'programId';
|
|
1778
|
-
field_source: 'solana_program_instruction';
|
|
1779
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1780
|
-
value: string | Array<string>;
|
|
1781
|
-
}
|
|
1782
|
-
interface UnionMember6 {
|
|
1783
|
-
field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
|
|
1784
|
-
field_source: 'solana_system_program_instruction';
|
|
1785
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1786
|
-
value: string | Array<string>;
|
|
1787
|
-
}
|
|
1788
|
-
interface UnionMember7 {
|
|
1789
|
-
field: 'instructionName' | 'Transfer.source' | 'Transfer.destination' | 'Transfer.authority' | 'Transfer.amount' | 'TransferChecked.source' | 'TransferChecked.destination' | 'TransferChecked.authority' | 'TransferChecked.amount' | 'TransferChecked.mint' | 'Burn.account' | 'Burn.mint' | 'Burn.authority' | 'Burn.amount' | 'MintTo.mint' | 'MintTo.account' | 'MintTo.authority' | 'MintTo.amount' | 'CloseAccount.account' | 'CloseAccount.destination' | 'CloseAccount.authority' | 'InitializeAccount3.account' | 'InitializeAccount3.mint' | 'InitializeAccount3.owner';
|
|
1790
|
-
field_source: 'solana_token_program_instruction';
|
|
1791
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1792
|
-
value: string | Array<string>;
|
|
1793
|
-
}
|
|
1794
|
-
interface UnionMember8 {
|
|
1795
|
-
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
1796
|
-
field_source: 'tron_transaction';
|
|
1797
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1798
|
-
value: string | Array<string>;
|
|
1799
|
-
}
|
|
1800
|
-
interface UnionMember9 {
|
|
1801
|
-
field: 'current_unix_timestamp';
|
|
1802
|
-
field_source: 'system';
|
|
1803
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1804
|
-
value: string | Array<string>;
|
|
1805
|
-
}
|
|
1806
|
-
interface UnionMember10 {
|
|
1807
|
-
field: string;
|
|
1808
|
-
field_source: 'reference';
|
|
1809
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1810
|
-
value: string | Array<string>;
|
|
1811
|
-
}
|
|
1812
|
-
interface UnionMember11 {
|
|
1813
|
-
abi: Array<UnionMember11.Abi>;
|
|
1814
|
-
field: string;
|
|
1815
|
-
field_source: 'tron_trigger_smart_contract_data';
|
|
1816
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1817
|
-
value: string | Array<string>;
|
|
1818
|
-
}
|
|
1819
|
-
namespace UnionMember11 {
|
|
1820
|
-
interface Abi {
|
|
1821
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
1822
|
-
anonymous?: boolean;
|
|
1823
|
-
inputs?: Array<Abi.Input>;
|
|
1824
|
-
name?: string;
|
|
1825
|
-
outputs?: Array<Abi.Output>;
|
|
1826
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
1827
|
-
}
|
|
1828
|
-
namespace Abi {
|
|
1829
|
-
interface Input {
|
|
1830
|
-
type: string;
|
|
1831
|
-
components?: Array<unknown>;
|
|
1832
|
-
indexed?: boolean;
|
|
1833
|
-
internalType?: string;
|
|
1834
|
-
name?: string;
|
|
1835
|
-
}
|
|
1836
|
-
interface Output {
|
|
1837
|
-
type: string;
|
|
1838
|
-
components?: Array<unknown>;
|
|
1839
|
-
indexed?: boolean;
|
|
1840
|
-
internalType?: string;
|
|
1841
|
-
name?: string;
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
interface UnionMember12 {
|
|
1846
|
-
field: 'commandName';
|
|
1847
|
-
field_source: 'sui_transaction_command';
|
|
1848
|
-
operator: 'eq' | 'in';
|
|
1849
|
-
/**
|
|
1850
|
-
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
1851
|
-
*/
|
|
1852
|
-
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
1853
|
-
}
|
|
1854
|
-
interface UnionMember13 {
|
|
1855
|
-
field: 'recipient' | 'amount';
|
|
1856
|
-
field_source: 'sui_transfer_objects_command';
|
|
1857
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1858
|
-
value: string | Array<string>;
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
509
|
+
'privy-app-id': string;
|
|
1861
510
|
/**
|
|
1862
|
-
*
|
|
1863
|
-
*
|
|
511
|
+
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
512
|
+
* deadline by which the request must be processed.
|
|
1864
513
|
*/
|
|
1865
|
-
|
|
1866
|
-
id: string;
|
|
1867
|
-
/**
|
|
1868
|
-
* The wallet chain types.
|
|
1869
|
-
*/
|
|
1870
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
1871
|
-
created_at: number;
|
|
1872
|
-
name: string;
|
|
1873
|
-
owner_id: string | null;
|
|
1874
|
-
rules: Array<Policy.Rule>;
|
|
1875
|
-
version: '1.0';
|
|
1876
|
-
}
|
|
1877
|
-
namespace Policy {
|
|
1878
|
-
interface Rule {
|
|
1879
|
-
id: string;
|
|
1880
|
-
action: 'ALLOW' | 'DENY';
|
|
1881
|
-
conditions: Array<Rule.UnionMember0 | Rule.UnionMember1 | Rule.UnionMember2 | Rule.UnionMember3 | Rule.UnionMember4 | Rule.UnionMember5 | Rule.UnionMember6 | Rule.UnionMember7 | Rule.UnionMember8 | Rule.UnionMember9 | Rule.UnionMember10 | Rule.UnionMember11 | Rule.UnionMember12 | Rule.UnionMember13>;
|
|
1882
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_signUserOperation' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'signTransactionBytes' | 'exportPrivateKey' | '*';
|
|
1883
|
-
name: string;
|
|
1884
|
-
}
|
|
1885
|
-
namespace Rule {
|
|
1886
|
-
interface UnionMember0 {
|
|
1887
|
-
field: 'to' | 'value' | 'chain_id';
|
|
1888
|
-
field_source: 'ethereum_transaction';
|
|
1889
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1890
|
-
value: string | Array<string>;
|
|
1891
|
-
}
|
|
1892
|
-
interface UnionMember1 {
|
|
1893
|
-
abi: Array<UnionMember1.Abi>;
|
|
1894
|
-
field: string;
|
|
1895
|
-
field_source: 'ethereum_calldata';
|
|
1896
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1897
|
-
value: string | Array<string>;
|
|
1898
|
-
}
|
|
1899
|
-
namespace UnionMember1 {
|
|
1900
|
-
interface Abi {
|
|
1901
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
1902
|
-
anonymous?: boolean;
|
|
1903
|
-
inputs?: Array<Abi.Input>;
|
|
1904
|
-
name?: string;
|
|
1905
|
-
outputs?: Array<Abi.Output>;
|
|
1906
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
1907
|
-
}
|
|
1908
|
-
namespace Abi {
|
|
1909
|
-
interface Input {
|
|
1910
|
-
type: string;
|
|
1911
|
-
components?: Array<unknown>;
|
|
1912
|
-
indexed?: boolean;
|
|
1913
|
-
internalType?: string;
|
|
1914
|
-
name?: string;
|
|
1915
|
-
}
|
|
1916
|
-
interface Output {
|
|
1917
|
-
type: string;
|
|
1918
|
-
components?: Array<unknown>;
|
|
1919
|
-
indexed?: boolean;
|
|
1920
|
-
internalType?: string;
|
|
1921
|
-
name?: string;
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
interface UnionMember2 {
|
|
1926
|
-
field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
|
|
1927
|
-
field_source: 'ethereum_typed_data_domain';
|
|
1928
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1929
|
-
value: string | Array<string>;
|
|
1930
|
-
}
|
|
1931
|
-
interface UnionMember3 {
|
|
1932
|
-
field: string;
|
|
1933
|
-
field_source: 'ethereum_typed_data_message';
|
|
1934
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1935
|
-
typed_data: UnionMember3.TypedData;
|
|
1936
|
-
value: string | Array<string>;
|
|
1937
|
-
}
|
|
1938
|
-
namespace UnionMember3 {
|
|
1939
|
-
interface TypedData {
|
|
1940
|
-
primary_type: string;
|
|
1941
|
-
types: {
|
|
1942
|
-
[key: string]: Array<TypedData.Type>;
|
|
1943
|
-
};
|
|
1944
|
-
}
|
|
1945
|
-
namespace TypedData {
|
|
1946
|
-
interface Type {
|
|
1947
|
-
name: string;
|
|
1948
|
-
type: string;
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
interface UnionMember4 {
|
|
1953
|
-
field: 'contract';
|
|
1954
|
-
field_source: 'ethereum_7702_authorization';
|
|
1955
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1956
|
-
value: string | Array<string>;
|
|
1957
|
-
}
|
|
1958
|
-
interface UnionMember5 {
|
|
1959
|
-
field: 'programId';
|
|
1960
|
-
field_source: 'solana_program_instruction';
|
|
1961
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1962
|
-
value: string | Array<string>;
|
|
1963
|
-
}
|
|
1964
|
-
interface UnionMember6 {
|
|
1965
|
-
field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
|
|
1966
|
-
field_source: 'solana_system_program_instruction';
|
|
1967
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1968
|
-
value: string | Array<string>;
|
|
1969
|
-
}
|
|
1970
|
-
interface UnionMember7 {
|
|
1971
|
-
field: 'instructionName' | 'Transfer.source' | 'Transfer.destination' | 'Transfer.authority' | 'Transfer.amount' | 'TransferChecked.source' | 'TransferChecked.destination' | 'TransferChecked.authority' | 'TransferChecked.amount' | 'TransferChecked.mint' | 'Burn.account' | 'Burn.mint' | 'Burn.authority' | 'Burn.amount' | 'MintTo.mint' | 'MintTo.account' | 'MintTo.authority' | 'MintTo.amount' | 'CloseAccount.account' | 'CloseAccount.destination' | 'CloseAccount.authority' | 'InitializeAccount3.account' | 'InitializeAccount3.mint' | 'InitializeAccount3.owner';
|
|
1972
|
-
field_source: 'solana_token_program_instruction';
|
|
1973
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1974
|
-
value: string | Array<string>;
|
|
1975
|
-
}
|
|
1976
|
-
interface UnionMember8 {
|
|
1977
|
-
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
1978
|
-
field_source: 'tron_transaction';
|
|
1979
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1980
|
-
value: string | Array<string>;
|
|
1981
|
-
}
|
|
1982
|
-
interface UnionMember9 {
|
|
1983
|
-
field: 'current_unix_timestamp';
|
|
1984
|
-
field_source: 'system';
|
|
1985
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1986
|
-
value: string | Array<string>;
|
|
1987
|
-
}
|
|
1988
|
-
interface UnionMember10 {
|
|
1989
|
-
field: string;
|
|
1990
|
-
field_source: 'reference';
|
|
1991
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1992
|
-
value: string | Array<string>;
|
|
1993
|
-
}
|
|
1994
|
-
interface UnionMember11 {
|
|
1995
|
-
abi: Array<UnionMember11.Abi>;
|
|
1996
|
-
field: string;
|
|
1997
|
-
field_source: 'tron_trigger_smart_contract_data';
|
|
1998
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1999
|
-
value: string | Array<string>;
|
|
2000
|
-
}
|
|
2001
|
-
namespace UnionMember11 {
|
|
2002
|
-
interface Abi {
|
|
2003
|
-
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
2004
|
-
anonymous?: boolean;
|
|
2005
|
-
inputs?: Array<Abi.Input>;
|
|
2006
|
-
name?: string;
|
|
2007
|
-
outputs?: Array<Abi.Output>;
|
|
2008
|
-
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
2009
|
-
}
|
|
2010
|
-
namespace Abi {
|
|
2011
|
-
interface Input {
|
|
2012
|
-
type: string;
|
|
2013
|
-
components?: Array<unknown>;
|
|
2014
|
-
indexed?: boolean;
|
|
2015
|
-
internalType?: string;
|
|
2016
|
-
name?: string;
|
|
2017
|
-
}
|
|
2018
|
-
interface Output {
|
|
2019
|
-
type: string;
|
|
2020
|
-
components?: Array<unknown>;
|
|
2021
|
-
indexed?: boolean;
|
|
2022
|
-
internalType?: string;
|
|
2023
|
-
name?: string;
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
interface UnionMember12 {
|
|
2028
|
-
field: 'commandName';
|
|
2029
|
-
field_source: 'sui_transaction_command';
|
|
2030
|
-
operator: 'eq' | 'in';
|
|
2031
|
-
/**
|
|
2032
|
-
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
2033
|
-
*/
|
|
2034
|
-
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
2035
|
-
}
|
|
2036
|
-
interface UnionMember13 {
|
|
2037
|
-
field: 'recipient' | 'amount';
|
|
2038
|
-
field_source: 'sui_transfer_objects_command';
|
|
2039
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
2040
|
-
value: string | Array<string>;
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
514
|
+
'privy-request-expiry'?: string;
|
|
2044
515
|
}
|
|
2045
|
-
/**
|
|
2046
|
-
* Response for an intent object
|
|
2047
|
-
*/
|
|
2048
|
-
export type IntentResponse = RpcIntentResponse | WalletIntentResponse | PolicyIntentResponse | RuleIntentResponse | KeyQuorumIntentResponse;
|
|
2049
516
|
export declare namespace Intents {
|
|
2050
|
-
export { type IntentType as IntentType, type IntentStatus as IntentStatus, type RuleIntentRequestDetails as RuleIntentRequestDetails, type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember as IntentAuthorizationMember, type IntentAuthorization as IntentAuthorization, type BaseActionResult as BaseActionResult, type RpcIntentResponse as RpcIntentResponse, type WalletIntentResponse as WalletIntentResponse, type PolicyIntentResponse as PolicyIntentResponse, type KeyQuorumIntentResponse as KeyQuorumIntentResponse, type RuleIntentResponse as RuleIntentResponse, type IntentResponse as IntentResponse, };
|
|
517
|
+
export { type IntentType as IntentType, type IntentStatus as IntentStatus, type RpcIntentRequestDetails as RpcIntentRequestDetails, type TransferIntentRequestDetails as TransferIntentRequestDetails, type PolicyIntentRequestDetails as PolicyIntentRequestDetails, type RuleIntentCreateRequestDetails as RuleIntentCreateRequestDetails, type RuleIntentUpdateRequestDetails as RuleIntentUpdateRequestDetails, type RuleIntentDeleteRequestDetails as RuleIntentDeleteRequestDetails, type RuleIntentRequestDetails as RuleIntentRequestDetails, type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember as IntentAuthorizationMember, type IntentAuthorization as IntentAuthorization, type BaseIntentResponse as BaseIntentResponse, type BaseActionResult as BaseActionResult, type RpcIntentResponse as RpcIntentResponse, type TransferIntentResponse as TransferIntentResponse, type WalletIntentResponse as WalletIntentResponse, type PolicyIntentResponse as PolicyIntentResponse, type KeyQuorumIntentResponse as KeyQuorumIntentResponse, type RuleIntentResponse as RuleIntentResponse, type IntentResponse as IntentResponse, type IntentCreationHeaders as IntentCreationHeaders, };
|
|
2051
518
|
}
|
|
2052
519
|
//# sourceMappingURL=intents.d.ts.map
|