@metamask-previews/keyring-internal-api 0.0.1-67f3b77 → 0.0.1-72196d6

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.
Files changed (79) hide show
  1. package/dist/{internal/api.js → api.cjs} +14 -4
  2. package/dist/api.cjs.map +1 -0
  3. package/dist/{internal/api.d.ts → api.d.cts} +394 -72
  4. package/dist/api.d.cts.map +1 -0
  5. package/dist/api.d.mts +737 -0
  6. package/dist/api.d.mts.map +1 -0
  7. package/dist/api.mjs +145 -0
  8. package/dist/api.mjs.map +1 -0
  9. package/dist/eth/EthKeyring.cjs +3 -0
  10. package/dist/eth/EthKeyring.cjs.map +1 -0
  11. package/dist/{internal/eth/EthKeyring.d.ts → eth/EthKeyring.d.cts} +4 -4
  12. package/dist/eth/EthKeyring.d.cts.map +1 -0
  13. package/dist/eth/EthKeyring.d.mts +33 -0
  14. package/dist/eth/EthKeyring.d.mts.map +1 -0
  15. package/dist/eth/EthKeyring.mjs +2 -0
  16. package/dist/eth/EthKeyring.mjs.map +1 -0
  17. package/dist/{internal/eth/EthKeyring.js → eth/index.cjs} +1 -1
  18. package/dist/eth/index.cjs.map +1 -0
  19. package/dist/eth/index.d.cts +2 -0
  20. package/dist/eth/index.d.cts.map +1 -0
  21. package/dist/eth/index.d.mts +2 -0
  22. package/dist/eth/index.d.mts.map +1 -0
  23. package/dist/eth/index.mjs +2 -0
  24. package/dist/eth/index.mjs.map +1 -0
  25. package/dist/{btc/index.js → index.cjs} +3 -2
  26. package/dist/index.cjs.map +1 -0
  27. package/dist/index.d.cts +4 -0
  28. package/dist/index.d.cts.map +1 -0
  29. package/dist/index.d.mts +4 -0
  30. package/dist/index.d.mts.map +1 -0
  31. package/dist/index.mjs +3 -0
  32. package/dist/index.mjs.map +1 -0
  33. package/dist/{internal/types.js → types.cjs} +23 -19
  34. package/dist/types.cjs.map +1 -0
  35. package/dist/{internal/types.d.ts → types.d.cts} +131 -69
  36. package/dist/types.d.cts.map +1 -0
  37. package/dist/types.d.mts +392 -0
  38. package/dist/types.d.mts.map +1 -0
  39. package/dist/types.mjs +50 -0
  40. package/dist/types.mjs.map +1 -0
  41. package/package.json +31 -20
  42. package/dist/btc/index.d.ts +0 -1
  43. package/dist/btc/index.js.map +0 -1
  44. package/dist/btc/types.d.ts +0 -33
  45. package/dist/btc/types.js +0 -40
  46. package/dist/btc/types.js.map +0 -1
  47. package/dist/eth/erc4337/index.d.ts +0 -1
  48. package/dist/eth/erc4337/index.js +0 -18
  49. package/dist/eth/erc4337/index.js.map +0 -1
  50. package/dist/eth/erc4337/types.d.ts +0 -97
  51. package/dist/eth/erc4337/types.js +0 -61
  52. package/dist/eth/erc4337/types.js.map +0 -1
  53. package/dist/eth/index.d.ts +0 -3
  54. package/dist/eth/index.js +0 -20
  55. package/dist/eth/index.js.map +0 -1
  56. package/dist/eth/types.d.ts +0 -80
  57. package/dist/eth/types.js +0 -73
  58. package/dist/eth/types.js.map +0 -1
  59. package/dist/eth/utils.d.ts +0 -8
  60. package/dist/eth/utils.js +0 -15
  61. package/dist/eth/utils.js.map +0 -1
  62. package/dist/index.d.ts +0 -3
  63. package/dist/index.js +0 -20
  64. package/dist/index.js.map +0 -1
  65. package/dist/internal/api.js.map +0 -1
  66. package/dist/internal/eth/EthKeyring.js.map +0 -1
  67. package/dist/internal/eth/index.d.ts +0 -1
  68. package/dist/internal/eth/index.js +0 -18
  69. package/dist/internal/eth/index.js.map +0 -1
  70. package/dist/internal/events.d.ts +0 -169
  71. package/dist/internal/events.js +0 -83
  72. package/dist/internal/events.js.map +0 -1
  73. package/dist/internal/index.d.ts +0 -5
  74. package/dist/internal/index.js +0 -22
  75. package/dist/internal/index.js.map +0 -1
  76. package/dist/internal/rpc.d.ts +0 -25
  77. package/dist/internal/rpc.js +0 -33
  78. package/dist/internal/rpc.js.map +0 -1
  79. package/dist/internal/types.js.map +0 -1
@@ -1,42 +1,43 @@
1
- import type { Infer } from '@metamask/superstruct';
1
+ import type { Infer } from "@metamask/superstruct";
2
2
  export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
3
3
  method: "keyring_listAccounts";
4
- jsonrpc: "2.0";
5
4
  id: string | number | null;
5
+ jsonrpc: "2.0";
6
6
  }, {
7
7
  method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
8
8
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
9
9
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
10
10
  }>;
11
- export declare type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
11
+ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
12
12
  export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
13
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
13
14
  id: string;
14
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
15
- address: string;
16
15
  options: Record<string, import("@metamask/utils").Json>;
16
+ address: string;
17
17
  methods: string[];
18
18
  }[], import("@metamask/superstruct").Struct<{
19
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
19
20
  id: string;
20
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
21
- address: string;
22
21
  options: Record<string, import("@metamask/utils").Json>;
22
+ address: string;
23
23
  methods: string[];
24
24
  }, {
25
25
  id: import("@metamask/superstruct").Struct<string, null>;
26
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
26
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
27
27
  "eip155:eoa": "eip155:eoa";
28
28
  "eip155:erc4337": "eip155:erc4337";
29
29
  "bip122:p2wpkh": "bip122:p2wpkh";
30
+ "solana:data-account": "solana:data-account";
30
31
  }>;
31
32
  address: import("@metamask/superstruct").Struct<string, null>;
32
33
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
33
34
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
34
35
  }>>;
35
- export declare type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
36
+ export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
36
37
  export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
37
38
  method: "keyring_getAccount";
38
- jsonrpc: "2.0";
39
39
  id: string | number | null;
40
+ jsonrpc: "2.0";
40
41
  params: {
41
42
  id: string;
42
43
  };
@@ -50,29 +51,30 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
50
51
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
51
52
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
52
53
  }>;
53
- export declare type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
54
+ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
54
55
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
56
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
55
57
  id: string;
56
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
57
- address: string;
58
58
  options: Record<string, import("@metamask/utils").Json>;
59
+ address: string;
59
60
  methods: string[];
60
61
  }, {
61
62
  id: import("@metamask/superstruct").Struct<string, null>;
62
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
63
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
63
64
  "eip155:eoa": "eip155:eoa";
64
65
  "eip155:erc4337": "eip155:erc4337";
65
66
  "bip122:p2wpkh": "bip122:p2wpkh";
67
+ "solana:data-account": "solana:data-account";
66
68
  }>;
67
69
  address: import("@metamask/superstruct").Struct<string, null>;
68
70
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
69
71
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
70
72
  }>;
71
- export declare type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
73
+ export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
72
74
  export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
73
75
  method: "keyring_createAccount";
74
- jsonrpc: "2.0";
75
76
  id: string | number | null;
77
+ jsonrpc: "2.0";
76
78
  params: {
77
79
  options: Record<string, import("@metamask/utils").Json>;
78
80
  };
@@ -86,29 +88,347 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
86
88
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
87
89
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
88
90
  }>;
89
- export declare type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
91
+ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
90
92
  export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
93
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
91
94
  id: string;
92
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
93
- address: string;
94
95
  options: Record<string, import("@metamask/utils").Json>;
96
+ address: string;
95
97
  methods: string[];
96
98
  }, {
97
99
  id: import("@metamask/superstruct").Struct<string, null>;
98
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
100
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
99
101
  "eip155:eoa": "eip155:eoa";
100
102
  "eip155:erc4337": "eip155:erc4337";
101
103
  "bip122:p2wpkh": "bip122:p2wpkh";
104
+ "solana:data-account": "solana:data-account";
102
105
  }>;
103
106
  address: import("@metamask/superstruct").Struct<string, null>;
104
107
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
105
108
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
106
109
  }>;
107
- export declare type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
110
+ export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
111
+ export declare const ListAccountTransactionsRequestStruct: import("@metamask/superstruct").Struct<{
112
+ method: "keyring_listAccountTransactions";
113
+ id: string | number | null;
114
+ jsonrpc: "2.0";
115
+ params: {
116
+ id: string;
117
+ pagination: {
118
+ limit: number;
119
+ next?: string | null;
120
+ };
121
+ };
122
+ }, {
123
+ method: import("@metamask/superstruct").Struct<"keyring_listAccountTransactions", "keyring_listAccountTransactions">;
124
+ params: import("@metamask/superstruct").Struct<{
125
+ id: string;
126
+ pagination: {
127
+ limit: number;
128
+ next?: string | null;
129
+ };
130
+ }, {
131
+ id: import("@metamask/superstruct").Struct<string, null>;
132
+ pagination: import("@metamask/superstruct").Struct<{
133
+ limit: number;
134
+ next?: string | null;
135
+ }, {
136
+ limit: import("@metamask/superstruct").Struct<number, null>;
137
+ next: import("@metamask/superstruct").Struct<string | import("@metamask/keyring-utils").ExactOptionalTag | null, null>;
138
+ }>;
139
+ }>;
140
+ jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
141
+ id: import("@metamask/superstruct").Struct<string | number | null, null>;
142
+ }>;
143
+ export type ListAccountTransactionsRequest = Infer<typeof ListAccountTransactionsRequestStruct>;
144
+ export declare const ListAccountTransactionsResponseStruct: import("@metamask/superstruct").Struct<{
145
+ data: {
146
+ type: "send" | "receive";
147
+ id: string;
148
+ from: {
149
+ address: string;
150
+ asset: {
151
+ unit: string;
152
+ type: `${string}:${string}/${string}:${string}`;
153
+ fungible: true;
154
+ amount: string;
155
+ } | {
156
+ id: `${string}:${string}/${string}:${string}/${string}`;
157
+ fungible: false;
158
+ } | null;
159
+ }[];
160
+ events: {
161
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
162
+ timestamp: number | null;
163
+ }[];
164
+ chain: `${string}:${string}`;
165
+ account: string;
166
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
167
+ timestamp: number | null;
168
+ to: {
169
+ address: string;
170
+ asset: {
171
+ unit: string;
172
+ type: `${string}:${string}/${string}:${string}`;
173
+ fungible: true;
174
+ amount: string;
175
+ } | {
176
+ id: `${string}:${string}/${string}:${string}/${string}`;
177
+ fungible: false;
178
+ } | null;
179
+ }[];
180
+ fees: {
181
+ type: "base" | "priority";
182
+ asset: {
183
+ unit: string;
184
+ type: `${string}:${string}/${string}:${string}`;
185
+ fungible: true;
186
+ amount: string;
187
+ } | {
188
+ id: `${string}:${string}/${string}:${string}/${string}`;
189
+ fungible: false;
190
+ };
191
+ }[];
192
+ }[];
193
+ next: string | null;
194
+ }, {
195
+ data: import("@metamask/superstruct").Struct<{
196
+ type: "send" | "receive";
197
+ id: string;
198
+ from: {
199
+ address: string;
200
+ asset: {
201
+ unit: string;
202
+ type: `${string}:${string}/${string}:${string}`;
203
+ fungible: true;
204
+ amount: string;
205
+ } | {
206
+ id: `${string}:${string}/${string}:${string}/${string}`;
207
+ fungible: false;
208
+ } | null;
209
+ }[];
210
+ events: {
211
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
212
+ timestamp: number | null;
213
+ }[];
214
+ chain: `${string}:${string}`;
215
+ account: string;
216
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
217
+ timestamp: number | null;
218
+ to: {
219
+ address: string;
220
+ asset: {
221
+ unit: string;
222
+ type: `${string}:${string}/${string}:${string}`;
223
+ fungible: true;
224
+ amount: string;
225
+ } | {
226
+ id: `${string}:${string}/${string}:${string}/${string}`;
227
+ fungible: false;
228
+ } | null;
229
+ }[];
230
+ fees: {
231
+ type: "base" | "priority";
232
+ asset: {
233
+ unit: string;
234
+ type: `${string}:${string}/${string}:${string}`;
235
+ fungible: true;
236
+ amount: string;
237
+ } | {
238
+ id: `${string}:${string}/${string}:${string}/${string}`;
239
+ fungible: false;
240
+ };
241
+ }[];
242
+ }[], import("@metamask/superstruct").Struct<{
243
+ type: "send" | "receive";
244
+ id: string;
245
+ from: {
246
+ address: string;
247
+ asset: {
248
+ unit: string;
249
+ type: `${string}:${string}/${string}:${string}`;
250
+ fungible: true;
251
+ amount: string;
252
+ } | {
253
+ id: `${string}:${string}/${string}:${string}/${string}`;
254
+ fungible: false;
255
+ } | null;
256
+ }[];
257
+ events: {
258
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
259
+ timestamp: number | null;
260
+ }[];
261
+ chain: `${string}:${string}`;
262
+ account: string;
263
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
264
+ timestamp: number | null;
265
+ to: {
266
+ address: string;
267
+ asset: {
268
+ unit: string;
269
+ type: `${string}:${string}/${string}:${string}`;
270
+ fungible: true;
271
+ amount: string;
272
+ } | {
273
+ id: `${string}:${string}/${string}:${string}/${string}`;
274
+ fungible: false;
275
+ } | null;
276
+ }[];
277
+ fees: {
278
+ type: "base" | "priority";
279
+ asset: {
280
+ unit: string;
281
+ type: `${string}:${string}/${string}:${string}`;
282
+ fungible: true;
283
+ amount: string;
284
+ } | {
285
+ id: `${string}:${string}/${string}:${string}/${string}`;
286
+ fungible: false;
287
+ };
288
+ }[];
289
+ }, {
290
+ id: import("@metamask/superstruct").Struct<string, null>;
291
+ chain: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
292
+ account: import("@metamask/superstruct").Struct<string, null>;
293
+ status: import("@metamask/superstruct").Struct<"submitted" | "unconfirmed" | "confirmed" | "failed", {
294
+ submitted: "submitted";
295
+ unconfirmed: "unconfirmed";
296
+ confirmed: "confirmed";
297
+ failed: "failed";
298
+ }>;
299
+ timestamp: import("@metamask/superstruct").Struct<number | null, null>;
300
+ type: import("@metamask/superstruct").Struct<"send" | "receive", {
301
+ send: "send";
302
+ receive: "receive";
303
+ }>;
304
+ from: import("@metamask/superstruct").Struct<{
305
+ address: string;
306
+ asset: {
307
+ unit: string;
308
+ type: `${string}:${string}/${string}:${string}`;
309
+ fungible: true;
310
+ amount: string;
311
+ } | {
312
+ id: `${string}:${string}/${string}:${string}/${string}`;
313
+ fungible: false;
314
+ } | null;
315
+ }[], import("@metamask/superstruct").Struct<{
316
+ address: string;
317
+ asset: {
318
+ unit: string;
319
+ type: `${string}:${string}/${string}:${string}`;
320
+ fungible: true;
321
+ amount: string;
322
+ } | {
323
+ id: `${string}:${string}/${string}:${string}/${string}`;
324
+ fungible: false;
325
+ } | null;
326
+ }, {
327
+ address: import("@metamask/superstruct").Struct<string, null>;
328
+ asset: import("@metamask/superstruct").Struct<{
329
+ unit: string;
330
+ type: `${string}:${string}/${string}:${string}`;
331
+ fungible: true;
332
+ amount: string;
333
+ } | {
334
+ id: `${string}:${string}/${string}:${string}/${string}`;
335
+ fungible: false;
336
+ } | null, null>;
337
+ }>>;
338
+ to: import("@metamask/superstruct").Struct<{
339
+ address: string;
340
+ asset: {
341
+ unit: string;
342
+ type: `${string}:${string}/${string}:${string}`;
343
+ fungible: true;
344
+ amount: string;
345
+ } | {
346
+ id: `${string}:${string}/${string}:${string}/${string}`;
347
+ fungible: false;
348
+ } | null;
349
+ }[], import("@metamask/superstruct").Struct<{
350
+ address: string;
351
+ asset: {
352
+ unit: string;
353
+ type: `${string}:${string}/${string}:${string}`;
354
+ fungible: true;
355
+ amount: string;
356
+ } | {
357
+ id: `${string}:${string}/${string}:${string}/${string}`;
358
+ fungible: false;
359
+ } | null;
360
+ }, {
361
+ address: import("@metamask/superstruct").Struct<string, null>;
362
+ asset: import("@metamask/superstruct").Struct<{
363
+ unit: string;
364
+ type: `${string}:${string}/${string}:${string}`;
365
+ fungible: true;
366
+ amount: string;
367
+ } | {
368
+ id: `${string}:${string}/${string}:${string}/${string}`;
369
+ fungible: false;
370
+ } | null, null>;
371
+ }>>;
372
+ fees: import("@metamask/superstruct").Struct<{
373
+ type: "base" | "priority";
374
+ asset: {
375
+ unit: string;
376
+ type: `${string}:${string}/${string}:${string}`;
377
+ fungible: true;
378
+ amount: string;
379
+ } | {
380
+ id: `${string}:${string}/${string}:${string}/${string}`;
381
+ fungible: false;
382
+ };
383
+ }[], import("@metamask/superstruct").Struct<{
384
+ type: "base" | "priority";
385
+ asset: {
386
+ unit: string;
387
+ type: `${string}:${string}/${string}:${string}`;
388
+ fungible: true;
389
+ amount: string;
390
+ } | {
391
+ id: `${string}:${string}/${string}:${string}/${string}`;
392
+ fungible: false;
393
+ };
394
+ }, {
395
+ type: import("@metamask/superstruct").Struct<"base" | "priority", {
396
+ base: "base";
397
+ priority: "priority";
398
+ }>;
399
+ asset: import("@metamask/superstruct").Struct<{
400
+ unit: string;
401
+ type: `${string}:${string}/${string}:${string}`;
402
+ fungible: true;
403
+ amount: string;
404
+ } | {
405
+ id: `${string}:${string}/${string}:${string}/${string}`;
406
+ fungible: false;
407
+ }, null>;
408
+ }>>;
409
+ events: import("@metamask/superstruct").Struct<{
410
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
411
+ timestamp: number | null;
412
+ }[], import("@metamask/superstruct").Struct<{
413
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
414
+ timestamp: number | null;
415
+ }, {
416
+ status: import("@metamask/superstruct").Struct<"submitted" | "unconfirmed" | "confirmed" | "failed", {
417
+ submitted: "submitted";
418
+ unconfirmed: "unconfirmed";
419
+ confirmed: "confirmed";
420
+ failed: "failed";
421
+ }>;
422
+ timestamp: import("@metamask/superstruct").Struct<number | null, null>;
423
+ }>>;
424
+ }>>;
425
+ next: import("@metamask/superstruct").Struct<string | null, null>;
426
+ }>;
427
+ export type ListAccountTransactionsResponse = Infer<typeof ListAccountTransactionsResponseStruct>;
108
428
  export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
109
429
  method: "keyring_getAccountBalances";
110
- jsonrpc: "2.0";
111
430
  id: string | number | null;
431
+ jsonrpc: "2.0";
112
432
  params: {
113
433
  id: string;
114
434
  assets: string[];
@@ -125,16 +445,16 @@ export declare const GetAccountBalancesRequestStruct: import("@metamask/superstr
125
445
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
126
446
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
127
447
  }>;
128
- export declare type GetAccountBalancesRequest = Infer<typeof GetAccountBalancesRequestStruct>;
448
+ export type GetAccountBalancesRequest = Infer<typeof GetAccountBalancesRequestStruct>;
129
449
  export declare const GetAccountBalancesResponseStruct: import("@metamask/superstruct").Struct<Record<string, {
130
- amount: string;
131
450
  unit: string;
451
+ amount: string;
132
452
  }>, null>;
133
- export declare type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
453
+ export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
134
454
  export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
135
455
  method: "keyring_filterAccountChains";
136
- jsonrpc: "2.0";
137
456
  id: string | number | null;
457
+ jsonrpc: "2.0";
138
458
  params: {
139
459
  id: string;
140
460
  chains: string[];
@@ -151,19 +471,19 @@ export declare const FilterAccountChainsStruct: import("@metamask/superstruct").
151
471
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
152
472
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
153
473
  }>;
154
- export declare type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>;
474
+ export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>;
155
475
  export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
156
- export declare type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
476
+ export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
157
477
  export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
158
478
  method: "keyring_updateAccount";
159
- jsonrpc: "2.0";
160
479
  id: string | number | null;
480
+ jsonrpc: "2.0";
161
481
  params: {
162
482
  account: {
483
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
163
484
  id: string;
164
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
165
- address: string;
166
485
  options: Record<string, import("@metamask/utils").Json>;
486
+ address: string;
167
487
  methods: string[];
168
488
  };
169
489
  };
@@ -171,25 +491,26 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
171
491
  method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
172
492
  params: import("@metamask/superstruct").Struct<{
173
493
  account: {
494
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
174
495
  id: string;
175
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
176
- address: string;
177
496
  options: Record<string, import("@metamask/utils").Json>;
497
+ address: string;
178
498
  methods: string[];
179
499
  };
180
500
  }, {
181
501
  account: import("@metamask/superstruct").Struct<{
502
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
182
503
  id: string;
183
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
184
- address: string;
185
504
  options: Record<string, import("@metamask/utils").Json>;
505
+ address: string;
186
506
  methods: string[];
187
507
  }, {
188
508
  id: import("@metamask/superstruct").Struct<string, null>;
189
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
509
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
190
510
  "eip155:eoa": "eip155:eoa";
191
511
  "eip155:erc4337": "eip155:erc4337";
192
512
  "bip122:p2wpkh": "bip122:p2wpkh";
513
+ "solana:data-account": "solana:data-account";
193
514
  }>;
194
515
  address: import("@metamask/superstruct").Struct<string, null>;
195
516
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
@@ -199,13 +520,13 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
199
520
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
200
521
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
201
522
  }>;
202
- export declare type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
523
+ export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
203
524
  export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
204
- export declare type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
525
+ export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
205
526
  export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
206
527
  method: "keyring_deleteAccount";
207
- jsonrpc: "2.0";
208
528
  id: string | number | null;
529
+ jsonrpc: "2.0";
209
530
  params: {
210
531
  id: string;
211
532
  };
@@ -219,13 +540,13 @@ export declare const DeleteAccountRequestStruct: import("@metamask/superstruct")
219
540
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
220
541
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
221
542
  }>;
222
- export declare type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
543
+ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
223
544
  export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
224
- export declare type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
545
+ export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
225
546
  export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
226
547
  method: "keyring_exportAccount";
227
- jsonrpc: "2.0";
228
548
  id: string | number | null;
549
+ jsonrpc: "2.0";
229
550
  params: {
230
551
  id: string;
231
552
  };
@@ -239,35 +560,35 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
239
560
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
240
561
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
241
562
  }>;
242
- export declare type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
563
+ export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
243
564
  export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
244
- export declare type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
565
+ export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
245
566
  export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
246
567
  method: "keyring_listRequests";
247
- jsonrpc: "2.0";
248
568
  id: string | number | null;
569
+ jsonrpc: "2.0";
249
570
  }, {
250
571
  method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
251
572
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
252
573
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
253
574
  }>;
254
- export declare type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
575
+ export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
255
576
  export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
256
577
  id: string;
257
- scope: string;
258
- account: string;
259
578
  request: {
260
579
  method: string;
261
580
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
262
581
  };
263
- }[], import("@metamask/superstruct").Struct<{
264
- id: string;
265
582
  scope: string;
266
583
  account: string;
584
+ }[], import("@metamask/superstruct").Struct<{
585
+ id: string;
267
586
  request: {
268
587
  method: string;
269
588
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
270
589
  };
590
+ scope: string;
591
+ account: string;
271
592
  }, {
272
593
  id: import("@metamask/superstruct").Struct<string, null>;
273
594
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -280,11 +601,11 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
280
601
  params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
281
602
  }>;
282
603
  }>>;
283
- export declare type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
604
+ export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
284
605
  export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
285
606
  method: "keyring_getRequest";
286
- jsonrpc: "2.0";
287
607
  id: string | number | null;
608
+ jsonrpc: "2.0";
288
609
  params: {
289
610
  id: string;
290
611
  };
@@ -298,15 +619,15 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
298
619
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
299
620
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
300
621
  }>;
301
- export declare type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
622
+ export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
302
623
  export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
303
624
  id: string;
304
- scope: string;
305
- account: string;
306
625
  request: {
307
626
  method: string;
308
627
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
309
628
  };
629
+ scope: string;
630
+ account: string;
310
631
  }, {
311
632
  id: import("@metamask/superstruct").Struct<string, null>;
312
633
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -319,30 +640,30 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
319
640
  params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
320
641
  }>;
321
642
  }>;
322
- export declare type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
643
+ export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
323
644
  export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
324
645
  method: "keyring_submitRequest";
325
- jsonrpc: "2.0";
326
646
  id: string | number | null;
647
+ jsonrpc: "2.0";
327
648
  params: {
328
649
  id: string;
329
- scope: string;
330
- account: string;
331
650
  request: {
332
651
  method: string;
333
652
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
334
653
  };
654
+ scope: string;
655
+ account: string;
335
656
  };
336
657
  }, {
337
658
  method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
338
659
  params: import("@metamask/superstruct").Struct<{
339
660
  id: string;
340
- scope: string;
341
- account: string;
342
661
  request: {
343
662
  method: string;
344
663
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
345
664
  };
665
+ scope: string;
666
+ account: string;
346
667
  }, {
347
668
  id: import("@metamask/superstruct").Struct<string, null>;
348
669
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -358,7 +679,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
358
679
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
359
680
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
360
681
  }>;
361
- export declare type SubmitRequestRequest = Infer<typeof SubmitRequestRequestStruct>;
682
+ export type SubmitRequestRequest = Infer<typeof SubmitRequestRequestStruct>;
362
683
  export declare const SubmitRequestResponseStruct: import("@metamask/superstruct").Struct<{
363
684
  pending: true;
364
685
  redirect?: {
@@ -366,23 +687,23 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
366
687
  url?: string;
367
688
  };
368
689
  } | {
369
- pending: false;
370
690
  result: import("@metamask/utils").Json;
691
+ pending: false;
371
692
  }, null>;
372
- export declare type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
693
+ export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
373
694
  export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
374
695
  method: "keyring_approveRequest";
375
- jsonrpc: "2.0";
376
696
  id: string | number | null;
697
+ jsonrpc: "2.0";
377
698
  params: {
378
- id: string;
379
699
  data: Record<string, import("@metamask/utils").Json>;
700
+ id: string;
380
701
  };
381
702
  }, {
382
703
  method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
383
704
  params: import("@metamask/superstruct").Struct<{
384
- id: string;
385
705
  data: Record<string, import("@metamask/utils").Json>;
706
+ id: string;
386
707
  }, {
387
708
  id: import("@metamask/superstruct").Struct<string, null>;
388
709
  data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
@@ -390,13 +711,13 @@ export declare const ApproveRequestRequestStruct: import("@metamask/superstruct"
390
711
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
391
712
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
392
713
  }>;
393
- export declare type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
714
+ export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
394
715
  export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
395
- export declare type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
716
+ export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
396
717
  export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
397
718
  method: "keyring_rejectRequest";
398
- jsonrpc: "2.0";
399
719
  id: string | number | null;
720
+ jsonrpc: "2.0";
400
721
  params: {
401
722
  id: string;
402
723
  };
@@ -410,6 +731,7 @@ export declare const RejectRequestRequestStruct: import("@metamask/superstruct")
410
731
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
411
732
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
412
733
  }>;
413
- export declare type RejectRequestRequest = Infer<typeof RejectRequestRequestStruct>;
734
+ export type RejectRequestRequest = Infer<typeof RejectRequestRequestStruct>;
414
735
  export declare const RejectRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
415
- export declare type RejectRequestResponse = Infer<typeof RejectRequestResponseStruct>;
736
+ export type RejectRequestResponse = Infer<typeof RejectRequestResponseStruct>;
737
+ //# sourceMappingURL=api.d.cts.map