@privy-io/api-types 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/client.d.mts +31 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +31 -16
- package/client.d.ts.map +1 -1
- package/client.js +23 -7
- package/client.js.map +1 -1
- package/client.mjs +25 -9
- package/client.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/accounts.d.mts +173 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +173 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/apps.d.mts +59 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +59 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +144 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +144 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +9 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +1979 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +1979 -31
- 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 +45 -2
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +45 -2
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +18 -1
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +18 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +62 -0
- package/resources/kraken-embed.d.mts.map +1 -0
- package/resources/kraken-embed.d.ts +62 -0
- package/resources/kraken-embed.d.ts.map +1 -0
- package/resources/kraken-embed.js +9 -0
- package/resources/kraken-embed.js.map +1 -0
- package/resources/kraken-embed.mjs +5 -0
- package/resources/kraken-embed.mjs.map +1 -0
- package/resources/policies.d.mts +7 -0
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +7 -0
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +3 -0
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +3 -0
- package/resources/policies.mjs.map +1 -1
- package/resources/transactions.d.mts +3 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -0
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +3 -0
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +3 -0
- package/resources/wallets/balance.mjs.map +1 -1
- 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 +9 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +9 -6
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +3 -0
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +3 -0
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +67 -10
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +67 -10
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +11 -5
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +11 -5
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +319 -283
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +319 -283
- 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 +26 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +166 -30
- package/src/resources/accounts.ts +206 -3
- package/src/resources/apps.ts +89 -1
- package/src/resources/client-auth.ts +202 -0
- package/src/resources/index.ts +79 -17
- package/src/resources/intents.ts +3305 -37
- package/src/resources/key-quorums.ts +50 -2
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +7 -0
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users.ts +3 -0
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +3 -1
- package/src/resources/wallets/transactions.ts +10 -4
- package/src/resources/wallets/wallets.ts +99 -21
- package/src/resources/webhooks.ts +454 -438
- package/src/resources/yield.ts +39 -10
- 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,7 +1,370 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as IntentsAPI from "./intents.js";
|
|
3
|
+
import * as WalletsAPI from "./wallets/wallets.js";
|
|
3
4
|
export declare class Intents extends APIResource {
|
|
4
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Type of intent.
|
|
8
|
+
*/
|
|
9
|
+
export type IntentType = 'KEY_QUORUM' | 'POLICY' | 'RULE' | 'RPC' | 'WALLET';
|
|
10
|
+
/**
|
|
11
|
+
* Current status of an intent.
|
|
12
|
+
*/
|
|
13
|
+
export type IntentStatus = 'pending' | 'executed' | 'failed' | 'expired' | 'rejected' | 'dismissed';
|
|
14
|
+
/**
|
|
15
|
+
* The original rule request. Method is POST (create), PATCH (update), or DELETE
|
|
16
|
+
* (delete)
|
|
17
|
+
*/
|
|
18
|
+
export type RuleIntentRequestDetails = RuleIntentRequestDetails.UnionMember0 | RuleIntentRequestDetails.UnionMember1 | RuleIntentRequestDetails.UnionMember2;
|
|
19
|
+
export declare namespace RuleIntentRequestDetails {
|
|
20
|
+
interface UnionMember0 {
|
|
21
|
+
body: UnionMember0.Body;
|
|
22
|
+
method: 'POST';
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
namespace UnionMember0 {
|
|
26
|
+
interface Body {
|
|
27
|
+
action: 'ALLOW' | 'DENY';
|
|
28
|
+
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>;
|
|
29
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_signUserOperation' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'signTransactionBytes' | 'exportPrivateKey' | '*';
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
namespace Body {
|
|
33
|
+
interface UnionMember0 {
|
|
34
|
+
field: 'to' | 'value' | 'chain_id';
|
|
35
|
+
field_source: 'ethereum_transaction';
|
|
36
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
37
|
+
value: string | Array<string>;
|
|
38
|
+
}
|
|
39
|
+
interface UnionMember1 {
|
|
40
|
+
abi: Array<UnionMember1.Abi>;
|
|
41
|
+
field: string;
|
|
42
|
+
field_source: 'ethereum_calldata';
|
|
43
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
44
|
+
value: string | Array<string>;
|
|
45
|
+
}
|
|
46
|
+
namespace UnionMember1 {
|
|
47
|
+
interface Abi {
|
|
48
|
+
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
49
|
+
anonymous?: boolean;
|
|
50
|
+
inputs?: Array<Abi.Input>;
|
|
51
|
+
name?: string;
|
|
52
|
+
outputs?: Array<Abi.Output>;
|
|
53
|
+
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
54
|
+
}
|
|
55
|
+
namespace Abi {
|
|
56
|
+
interface Input {
|
|
57
|
+
type: string;
|
|
58
|
+
components?: Array<unknown>;
|
|
59
|
+
indexed?: boolean;
|
|
60
|
+
internalType?: string;
|
|
61
|
+
name?: string;
|
|
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;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
5
368
|
/**
|
|
6
369
|
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
7
370
|
*/
|
|
@@ -9,33 +372,25 @@ export type IntentAuthorizationKeyQuorumMember = IntentAuthorizationKeyQuorumMem
|
|
|
9
372
|
export declare namespace IntentAuthorizationKeyQuorumMember {
|
|
10
373
|
interface UserMember {
|
|
11
374
|
/**
|
|
12
|
-
*
|
|
375
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
13
376
|
*/
|
|
14
|
-
|
|
377
|
+
signed_at: number | null;
|
|
15
378
|
type: 'user';
|
|
16
379
|
/**
|
|
17
380
|
* User ID of the key quorum member
|
|
18
381
|
*/
|
|
19
382
|
user_id: string;
|
|
20
|
-
/**
|
|
21
|
-
* Display name for the user (email, etc)
|
|
22
|
-
*/
|
|
23
|
-
display_name?: string;
|
|
24
383
|
}
|
|
25
384
|
interface KeyMember {
|
|
26
|
-
/**
|
|
27
|
-
* Whether this key has signed the intent
|
|
28
|
-
*/
|
|
29
|
-
has_signed: boolean;
|
|
30
385
|
/**
|
|
31
386
|
* Public key of the key quorum member
|
|
32
387
|
*/
|
|
33
388
|
public_key: string;
|
|
34
|
-
type: 'key';
|
|
35
389
|
/**
|
|
36
|
-
*
|
|
390
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
37
391
|
*/
|
|
38
|
-
|
|
392
|
+
signed_at: number | null;
|
|
393
|
+
type: 'key';
|
|
39
394
|
}
|
|
40
395
|
}
|
|
41
396
|
/**
|
|
@@ -46,39 +401,27 @@ export type IntentAuthorizationMember = IntentAuthorizationMember.UserMember | I
|
|
|
46
401
|
export declare namespace IntentAuthorizationMember {
|
|
47
402
|
interface UserMember {
|
|
48
403
|
/**
|
|
49
|
-
*
|
|
404
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
50
405
|
*/
|
|
51
|
-
|
|
406
|
+
signed_at: number | null;
|
|
52
407
|
type: 'user';
|
|
53
408
|
/**
|
|
54
409
|
* User ID of the key quorum member
|
|
55
410
|
*/
|
|
56
411
|
user_id: string;
|
|
57
|
-
/**
|
|
58
|
-
* Display name for the user (email, etc)
|
|
59
|
-
*/
|
|
60
|
-
display_name?: string;
|
|
61
412
|
}
|
|
62
413
|
interface KeyMember {
|
|
63
|
-
/**
|
|
64
|
-
* Whether this key has signed the intent
|
|
65
|
-
*/
|
|
66
|
-
has_signed: boolean;
|
|
67
414
|
/**
|
|
68
415
|
* Public key of the key quorum member
|
|
69
416
|
*/
|
|
70
417
|
public_key: string;
|
|
71
|
-
type: 'key';
|
|
72
418
|
/**
|
|
73
|
-
*
|
|
419
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
74
420
|
*/
|
|
75
|
-
|
|
421
|
+
signed_at: number | null;
|
|
422
|
+
type: 'key';
|
|
76
423
|
}
|
|
77
424
|
interface KeyQuorumMember {
|
|
78
|
-
/**
|
|
79
|
-
* Whether this child key quorum has fulfilled its threshold
|
|
80
|
-
*/
|
|
81
|
-
has_signed: boolean;
|
|
82
425
|
/**
|
|
83
426
|
* ID of the child key quorum member
|
|
84
427
|
*/
|
|
@@ -91,6 +434,10 @@ export declare namespace IntentAuthorizationMember {
|
|
|
91
434
|
* Number of signatures required from this child quorum
|
|
92
435
|
*/
|
|
93
436
|
threshold: number;
|
|
437
|
+
/**
|
|
438
|
+
* Whether this child key quorum has met its signature threshold
|
|
439
|
+
*/
|
|
440
|
+
threshold_met: boolean;
|
|
94
441
|
type: 'key_quorum';
|
|
95
442
|
/**
|
|
96
443
|
* Display name for the child key quorum (if any)
|
|
@@ -98,7 +445,1608 @@ export declare namespace IntentAuthorizationMember {
|
|
|
98
445
|
display_name?: string;
|
|
99
446
|
}
|
|
100
447
|
}
|
|
448
|
+
/**
|
|
449
|
+
* Authorization quorum for an intent
|
|
450
|
+
*/
|
|
451
|
+
export interface IntentAuthorization {
|
|
452
|
+
/**
|
|
453
|
+
* Members in this authorization quorum
|
|
454
|
+
*/
|
|
455
|
+
members: Array<IntentAuthorizationMember>;
|
|
456
|
+
/**
|
|
457
|
+
* Number of signatures required to satisfy this quorum
|
|
458
|
+
*/
|
|
459
|
+
threshold: number;
|
|
460
|
+
/**
|
|
461
|
+
* Display name of the key quorum
|
|
462
|
+
*/
|
|
463
|
+
display_name?: string;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Common fields for intent action execution results.
|
|
467
|
+
*/
|
|
468
|
+
export interface BaseActionResult {
|
|
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 {
|
|
490
|
+
/**
|
|
491
|
+
* Detailed authorization information including key quorum members, thresholds, and
|
|
492
|
+
* signature status
|
|
493
|
+
*/
|
|
494
|
+
authorization_details: Array<IntentAuthorization>;
|
|
495
|
+
/**
|
|
496
|
+
* Unix timestamp when the intent was created
|
|
497
|
+
*/
|
|
498
|
+
created_at: number;
|
|
499
|
+
/**
|
|
500
|
+
* Display name of the user who created the intent
|
|
501
|
+
*/
|
|
502
|
+
created_by_display_name: string;
|
|
503
|
+
/**
|
|
504
|
+
* Unix timestamp when the intent expires
|
|
505
|
+
*/
|
|
506
|
+
expires_at: number;
|
|
507
|
+
/**
|
|
508
|
+
* Unique ID for the intent
|
|
509
|
+
*/
|
|
510
|
+
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
|
+
/**
|
|
517
|
+
* ID of the resource being modified (wallet_id, policy_id, etc)
|
|
518
|
+
*/
|
|
519
|
+
resource_id: string;
|
|
520
|
+
/**
|
|
521
|
+
* Current status of an intent.
|
|
522
|
+
*/
|
|
523
|
+
status: IntentStatus;
|
|
524
|
+
/**
|
|
525
|
+
* Result of RPC execution (only present if status is 'executed' or 'failed')
|
|
526
|
+
*/
|
|
527
|
+
action_result?: BaseActionResult;
|
|
528
|
+
/**
|
|
529
|
+
* ID of the user who created the intent. If undefined, the intent was created
|
|
530
|
+
* using the app secret
|
|
531
|
+
*/
|
|
532
|
+
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
|
+
/**
|
|
539
|
+
* Human-readable reason for dismissal, present when status is 'dismissed'
|
|
540
|
+
*/
|
|
541
|
+
dismissal_reason?: string;
|
|
542
|
+
/**
|
|
543
|
+
* Unix timestamp when the intent was dismissed, present when status is 'dismissed'
|
|
544
|
+
*/
|
|
545
|
+
dismissed_at?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Unix timestamp when the intent was rejected, present when status is 'rejected'
|
|
548
|
+
*/
|
|
549
|
+
rejected_at?: number;
|
|
550
|
+
}
|
|
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
|
+
/**
|
|
945
|
+
* Response for a wallet intent
|
|
946
|
+
*/
|
|
947
|
+
export interface WalletIntentResponse {
|
|
948
|
+
/**
|
|
949
|
+
* Detailed authorization information including key quorum members, thresholds, and
|
|
950
|
+
* signature status
|
|
951
|
+
*/
|
|
952
|
+
authorization_details: Array<IntentAuthorization>;
|
|
953
|
+
/**
|
|
954
|
+
* Unix timestamp when the intent was created
|
|
955
|
+
*/
|
|
956
|
+
created_at: number;
|
|
957
|
+
/**
|
|
958
|
+
* Display name of the user who created the intent
|
|
959
|
+
*/
|
|
960
|
+
created_by_display_name: string;
|
|
961
|
+
/**
|
|
962
|
+
* Unix timestamp when the intent expires
|
|
963
|
+
*/
|
|
964
|
+
expires_at: number;
|
|
965
|
+
/**
|
|
966
|
+
* Unique ID for the intent
|
|
967
|
+
*/
|
|
968
|
+
intent_id: string;
|
|
969
|
+
intent_type: 'WALLET';
|
|
970
|
+
/**
|
|
971
|
+
* The original wallet update request that would be sent to the wallet endpoint
|
|
972
|
+
*/
|
|
973
|
+
request_details: WalletIntentResponse.RequestDetails;
|
|
974
|
+
/**
|
|
975
|
+
* ID of the resource being modified (wallet_id, policy_id, etc)
|
|
976
|
+
*/
|
|
977
|
+
resource_id: string;
|
|
978
|
+
/**
|
|
979
|
+
* Current status of an intent.
|
|
980
|
+
*/
|
|
981
|
+
status: IntentStatus;
|
|
982
|
+
/**
|
|
983
|
+
* Result of wallet update execution (only present if status is 'executed' or
|
|
984
|
+
* 'failed')
|
|
985
|
+
*/
|
|
986
|
+
action_result?: BaseActionResult;
|
|
987
|
+
/**
|
|
988
|
+
* ID of the user who created the intent. If undefined, the intent was created
|
|
989
|
+
* using the app secret
|
|
990
|
+
*/
|
|
991
|
+
created_by_id?: string;
|
|
992
|
+
/**
|
|
993
|
+
* Current state of the wallet before any changes. If undefined, the resource was
|
|
994
|
+
* deleted and no longer exists
|
|
995
|
+
*/
|
|
996
|
+
current_resource_data?: WalletIntentResponse.CurrentResourceData;
|
|
997
|
+
/**
|
|
998
|
+
* Human-readable reason for dismissal, present when status is 'dismissed'
|
|
999
|
+
*/
|
|
1000
|
+
dismissal_reason?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* Unix timestamp when the intent was dismissed, present when status is 'dismissed'
|
|
1003
|
+
*/
|
|
1004
|
+
dismissed_at?: number;
|
|
1005
|
+
/**
|
|
1006
|
+
* Unix timestamp when the intent was rejected, present when status is 'rejected'
|
|
1007
|
+
*/
|
|
1008
|
+
rejected_at?: number;
|
|
1009
|
+
}
|
|
1010
|
+
export declare namespace WalletIntentResponse {
|
|
1011
|
+
/**
|
|
1012
|
+
* The original wallet update request that would be sent to the wallet endpoint
|
|
1013
|
+
*/
|
|
1014
|
+
interface RequestDetails {
|
|
1015
|
+
body: RequestDetails.Body;
|
|
1016
|
+
method: 'PATCH';
|
|
1017
|
+
url: string;
|
|
1018
|
+
}
|
|
1019
|
+
namespace RequestDetails {
|
|
1020
|
+
interface Body {
|
|
1021
|
+
additional_signers?: Array<Body.AdditionalSigner>;
|
|
1022
|
+
authorization_key_ids?: Array<string>;
|
|
1023
|
+
authorization_threshold?: number;
|
|
1024
|
+
owner?: Body.UserID | Body.PublicKey | null;
|
|
1025
|
+
owner_id?: string | null;
|
|
1026
|
+
policy_ids?: Array<string>;
|
|
1027
|
+
}
|
|
1028
|
+
namespace Body {
|
|
1029
|
+
interface AdditionalSigner {
|
|
1030
|
+
signer_id: string;
|
|
1031
|
+
override_policy_ids?: Array<string>;
|
|
1032
|
+
}
|
|
1033
|
+
interface UserID {
|
|
1034
|
+
user_id: string;
|
|
1035
|
+
}
|
|
1036
|
+
interface PublicKey {
|
|
1037
|
+
public_key: string;
|
|
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;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Response for a policy intent
|
|
1078
|
+
*/
|
|
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;
|
|
1101
|
+
intent_type: 'POLICY';
|
|
1102
|
+
/**
|
|
1103
|
+
* The original policy update request that would be sent to the policy endpoint
|
|
1104
|
+
*/
|
|
1105
|
+
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
|
+
/**
|
|
1115
|
+
* Result of policy update execution (only present if status is 'executed' or
|
|
1116
|
+
* 'failed')
|
|
1117
|
+
*/
|
|
1118
|
+
action_result?: BaseActionResult;
|
|
1119
|
+
/**
|
|
1120
|
+
* ID of the user who created the intent. If undefined, the intent was created
|
|
1121
|
+
* using the app secret
|
|
1122
|
+
*/
|
|
1123
|
+
created_by_id?: string;
|
|
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;
|
|
1141
|
+
}
|
|
1142
|
+
export declare namespace PolicyIntentResponse {
|
|
1143
|
+
/**
|
|
1144
|
+
* The original policy update request that would be sent to the policy endpoint
|
|
1145
|
+
*/
|
|
1146
|
+
interface RequestDetails {
|
|
1147
|
+
body: RequestDetails.Body;
|
|
1148
|
+
method: 'PATCH';
|
|
1149
|
+
url: string;
|
|
1150
|
+
}
|
|
1151
|
+
namespace RequestDetails {
|
|
1152
|
+
interface Body {
|
|
1153
|
+
name?: string;
|
|
1154
|
+
owner?: Body.UserID | Body.PublicKey | null;
|
|
1155
|
+
owner_id?: string | null;
|
|
1156
|
+
rules?: Array<Body.Rule>;
|
|
1157
|
+
}
|
|
1158
|
+
namespace Body {
|
|
1159
|
+
interface UserID {
|
|
1160
|
+
user_id: string;
|
|
1161
|
+
}
|
|
1162
|
+
interface PublicKey {
|
|
1163
|
+
public_key: string;
|
|
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
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Response for a key quorum intent
|
|
1517
|
+
*/
|
|
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;
|
|
1540
|
+
intent_type: 'KEY_QUORUM';
|
|
1541
|
+
/**
|
|
1542
|
+
* The original key quorum update request that would be sent to the key quorum
|
|
1543
|
+
* endpoint
|
|
1544
|
+
*/
|
|
1545
|
+
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
|
+
/**
|
|
1555
|
+
* Result of key quorum update execution (only present if status is 'executed' or
|
|
1556
|
+
* 'failed')
|
|
1557
|
+
*/
|
|
1558
|
+
action_result?: BaseActionResult;
|
|
1559
|
+
/**
|
|
1560
|
+
* ID of the user who created the intent. If undefined, the intent was created
|
|
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'
|
|
1579
|
+
*/
|
|
1580
|
+
rejected_at?: number;
|
|
1581
|
+
}
|
|
1582
|
+
export declare namespace KeyQuorumIntentResponse {
|
|
1583
|
+
/**
|
|
1584
|
+
* The original key quorum update request that would be sent to the key quorum
|
|
1585
|
+
* endpoint
|
|
1586
|
+
*/
|
|
1587
|
+
interface RequestDetails {
|
|
1588
|
+
body: RequestDetails.Body;
|
|
1589
|
+
method: 'PATCH';
|
|
1590
|
+
url: string;
|
|
1591
|
+
}
|
|
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
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Response for a rule intent
|
|
1622
|
+
*/
|
|
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;
|
|
1645
|
+
intent_type: 'RULE';
|
|
1646
|
+
/**
|
|
1647
|
+
* The original rule request. Method is POST (create), PATCH (update), or DELETE
|
|
1648
|
+
* (delete)
|
|
1649
|
+
*/
|
|
1650
|
+
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
|
+
/**
|
|
1660
|
+
* Result of rule execution (only present if status is 'executed' or 'failed')
|
|
1661
|
+
*/
|
|
1662
|
+
action_result?: BaseActionResult;
|
|
1663
|
+
/**
|
|
1664
|
+
* ID of the user who created the intent. If undefined, the intent was created
|
|
1665
|
+
* using the app secret
|
|
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'
|
|
1679
|
+
*/
|
|
1680
|
+
dismissed_at?: number;
|
|
1681
|
+
/**
|
|
1682
|
+
* Parent policy containing this rule, including sibling rules for contextual
|
|
1683
|
+
* display
|
|
1684
|
+
*/
|
|
1685
|
+
policy?: RuleIntentResponse.Policy;
|
|
1686
|
+
/**
|
|
1687
|
+
* Unix timestamp when the intent was rejected, present when status is 'rejected'
|
|
1688
|
+
*/
|
|
1689
|
+
rejected_at?: number;
|
|
1690
|
+
}
|
|
1691
|
+
export declare namespace RuleIntentResponse {
|
|
1692
|
+
/**
|
|
1693
|
+
* Current state of the rule before any changes. Undefined for create intents or if
|
|
1694
|
+
* the rule was deleted
|
|
1695
|
+
*/
|
|
1696
|
+
interface CurrentResourceData {
|
|
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
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* Parent policy containing this rule, including sibling rules for contextual
|
|
1863
|
+
* display
|
|
1864
|
+
*/
|
|
1865
|
+
interface Policy {
|
|
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
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* Response for an intent object
|
|
2047
|
+
*/
|
|
2048
|
+
export type IntentResponse = RpcIntentResponse | WalletIntentResponse | PolicyIntentResponse | RuleIntentResponse | KeyQuorumIntentResponse;
|
|
101
2049
|
export declare namespace Intents {
|
|
102
|
-
export { type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember as IntentAuthorizationMember, };
|
|
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, };
|
|
103
2051
|
}
|
|
104
2052
|
//# sourceMappingURL=intents.d.ts.map
|