@metamask-previews/keyring-internal-api 0.0.1-72196d6 → 0.0.1-7befa45

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/dist/api.d.mts DELETED
@@ -1,737 +0,0 @@
1
- import type { Infer } from "@metamask/superstruct";
2
- export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
3
- method: "keyring_listAccounts";
4
- id: string | number | null;
5
- jsonrpc: "2.0";
6
- }, {
7
- method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
8
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
9
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
10
- }>;
11
- export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
12
- export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
13
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
14
- id: string;
15
- options: Record<string, import("@metamask/utils").Json>;
16
- address: string;
17
- methods: string[];
18
- }[], import("@metamask/superstruct").Struct<{
19
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
20
- id: string;
21
- options: Record<string, import("@metamask/utils").Json>;
22
- address: string;
23
- methods: string[];
24
- }, {
25
- id: import("@metamask/superstruct").Struct<string, null>;
26
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
27
- "eip155:eoa": "eip155:eoa";
28
- "eip155:erc4337": "eip155:erc4337";
29
- "bip122:p2wpkh": "bip122:p2wpkh";
30
- "solana:data-account": "solana:data-account";
31
- }>;
32
- address: import("@metamask/superstruct").Struct<string, null>;
33
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
34
- methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
35
- }>>;
36
- export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
37
- export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
38
- method: "keyring_getAccount";
39
- id: string | number | null;
40
- jsonrpc: "2.0";
41
- params: {
42
- id: string;
43
- };
44
- }, {
45
- method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
46
- params: import("@metamask/superstruct").Struct<{
47
- id: string;
48
- }, {
49
- id: import("@metamask/superstruct").Struct<string, null>;
50
- }>;
51
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
52
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
53
- }>;
54
- export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
55
- export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
56
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
57
- id: string;
58
- options: Record<string, import("@metamask/utils").Json>;
59
- address: string;
60
- methods: string[];
61
- }, {
62
- id: import("@metamask/superstruct").Struct<string, null>;
63
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
64
- "eip155:eoa": "eip155:eoa";
65
- "eip155:erc4337": "eip155:erc4337";
66
- "bip122:p2wpkh": "bip122:p2wpkh";
67
- "solana:data-account": "solana:data-account";
68
- }>;
69
- address: import("@metamask/superstruct").Struct<string, null>;
70
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
71
- methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
72
- }>;
73
- export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
74
- export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
75
- method: "keyring_createAccount";
76
- id: string | number | null;
77
- jsonrpc: "2.0";
78
- params: {
79
- options: Record<string, import("@metamask/utils").Json>;
80
- };
81
- }, {
82
- method: import("@metamask/superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
83
- params: import("@metamask/superstruct").Struct<{
84
- options: Record<string, import("@metamask/utils").Json>;
85
- }, {
86
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
87
- }>;
88
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
89
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
90
- }>;
91
- export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
92
- export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
93
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
94
- id: string;
95
- options: Record<string, import("@metamask/utils").Json>;
96
- address: string;
97
- methods: string[];
98
- }, {
99
- id: import("@metamask/superstruct").Struct<string, null>;
100
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
101
- "eip155:eoa": "eip155:eoa";
102
- "eip155:erc4337": "eip155:erc4337";
103
- "bip122:p2wpkh": "bip122:p2wpkh";
104
- "solana:data-account": "solana:data-account";
105
- }>;
106
- address: import("@metamask/superstruct").Struct<string, null>;
107
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
108
- methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
109
- }>;
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>;
428
- export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
429
- method: "keyring_getAccountBalances";
430
- id: string | number | null;
431
- jsonrpc: "2.0";
432
- params: {
433
- id: string;
434
- assets: string[];
435
- };
436
- }, {
437
- method: import("@metamask/superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
438
- params: import("@metamask/superstruct").Struct<{
439
- id: string;
440
- assets: string[];
441
- }, {
442
- id: import("@metamask/superstruct").Struct<string, null>;
443
- assets: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
444
- }>;
445
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
446
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
447
- }>;
448
- export type GetAccountBalancesRequest = Infer<typeof GetAccountBalancesRequestStruct>;
449
- export declare const GetAccountBalancesResponseStruct: import("@metamask/superstruct").Struct<Record<string, {
450
- unit: string;
451
- amount: string;
452
- }>, null>;
453
- export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
454
- export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
455
- method: "keyring_filterAccountChains";
456
- id: string | number | null;
457
- jsonrpc: "2.0";
458
- params: {
459
- id: string;
460
- chains: string[];
461
- };
462
- }, {
463
- method: import("@metamask/superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
464
- params: import("@metamask/superstruct").Struct<{
465
- id: string;
466
- chains: string[];
467
- }, {
468
- id: import("@metamask/superstruct").Struct<string, null>;
469
- chains: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
470
- }>;
471
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
472
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
473
- }>;
474
- export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>;
475
- export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
476
- export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
477
- export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
478
- method: "keyring_updateAccount";
479
- id: string | number | null;
480
- jsonrpc: "2.0";
481
- params: {
482
- account: {
483
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
484
- id: string;
485
- options: Record<string, import("@metamask/utils").Json>;
486
- address: string;
487
- methods: string[];
488
- };
489
- };
490
- }, {
491
- method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
492
- params: import("@metamask/superstruct").Struct<{
493
- account: {
494
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
495
- id: string;
496
- options: Record<string, import("@metamask/utils").Json>;
497
- address: string;
498
- methods: string[];
499
- };
500
- }, {
501
- account: import("@metamask/superstruct").Struct<{
502
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
503
- id: string;
504
- options: Record<string, import("@metamask/utils").Json>;
505
- address: string;
506
- methods: string[];
507
- }, {
508
- id: import("@metamask/superstruct").Struct<string, null>;
509
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account", {
510
- "eip155:eoa": "eip155:eoa";
511
- "eip155:erc4337": "eip155:erc4337";
512
- "bip122:p2wpkh": "bip122:p2wpkh";
513
- "solana:data-account": "solana:data-account";
514
- }>;
515
- address: import("@metamask/superstruct").Struct<string, null>;
516
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
517
- methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
518
- }>;
519
- }>;
520
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
521
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
522
- }>;
523
- export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
524
- export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
525
- export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
526
- export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
527
- method: "keyring_deleteAccount";
528
- id: string | number | null;
529
- jsonrpc: "2.0";
530
- params: {
531
- id: string;
532
- };
533
- }, {
534
- method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
535
- params: import("@metamask/superstruct").Struct<{
536
- id: string;
537
- }, {
538
- id: import("@metamask/superstruct").Struct<string, null>;
539
- }>;
540
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
541
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
542
- }>;
543
- export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
544
- export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
545
- export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
546
- export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
547
- method: "keyring_exportAccount";
548
- id: string | number | null;
549
- jsonrpc: "2.0";
550
- params: {
551
- id: string;
552
- };
553
- }, {
554
- method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
555
- params: import("@metamask/superstruct").Struct<{
556
- id: string;
557
- }, {
558
- id: import("@metamask/superstruct").Struct<string, null>;
559
- }>;
560
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
561
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
562
- }>;
563
- export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
564
- export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
565
- export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
566
- export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
567
- method: "keyring_listRequests";
568
- id: string | number | null;
569
- jsonrpc: "2.0";
570
- }, {
571
- method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
572
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
573
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
574
- }>;
575
- export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
576
- export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
577
- id: string;
578
- request: {
579
- method: string;
580
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
581
- };
582
- scope: string;
583
- account: string;
584
- }[], import("@metamask/superstruct").Struct<{
585
- id: string;
586
- request: {
587
- method: string;
588
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
589
- };
590
- scope: string;
591
- account: string;
592
- }, {
593
- id: import("@metamask/superstruct").Struct<string, null>;
594
- scope: import("@metamask/superstruct").Struct<string, null>;
595
- account: import("@metamask/superstruct").Struct<string, null>;
596
- request: import("@metamask/superstruct").Struct<{
597
- method: string;
598
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
599
- }, {
600
- method: import("@metamask/superstruct").Struct<string, null>;
601
- params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
602
- }>;
603
- }>>;
604
- export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
605
- export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
606
- method: "keyring_getRequest";
607
- id: string | number | null;
608
- jsonrpc: "2.0";
609
- params: {
610
- id: string;
611
- };
612
- }, {
613
- method: import("@metamask/superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
614
- params: import("@metamask/superstruct").Struct<{
615
- id: string;
616
- }, {
617
- id: import("@metamask/superstruct").Struct<string, null>;
618
- }>;
619
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
620
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
621
- }>;
622
- export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
623
- export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
624
- id: string;
625
- request: {
626
- method: string;
627
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
628
- };
629
- scope: string;
630
- account: string;
631
- }, {
632
- id: import("@metamask/superstruct").Struct<string, null>;
633
- scope: import("@metamask/superstruct").Struct<string, null>;
634
- account: import("@metamask/superstruct").Struct<string, null>;
635
- request: import("@metamask/superstruct").Struct<{
636
- method: string;
637
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
638
- }, {
639
- method: import("@metamask/superstruct").Struct<string, null>;
640
- params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
641
- }>;
642
- }>;
643
- export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
644
- export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
645
- method: "keyring_submitRequest";
646
- id: string | number | null;
647
- jsonrpc: "2.0";
648
- params: {
649
- id: string;
650
- request: {
651
- method: string;
652
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
653
- };
654
- scope: string;
655
- account: string;
656
- };
657
- }, {
658
- method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
659
- params: import("@metamask/superstruct").Struct<{
660
- id: string;
661
- request: {
662
- method: string;
663
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
664
- };
665
- scope: string;
666
- account: string;
667
- }, {
668
- id: import("@metamask/superstruct").Struct<string, null>;
669
- scope: import("@metamask/superstruct").Struct<string, null>;
670
- account: import("@metamask/superstruct").Struct<string, null>;
671
- request: import("@metamask/superstruct").Struct<{
672
- method: string;
673
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
674
- }, {
675
- method: import("@metamask/superstruct").Struct<string, null>;
676
- params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
677
- }>;
678
- }>;
679
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
680
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
681
- }>;
682
- export type SubmitRequestRequest = Infer<typeof SubmitRequestRequestStruct>;
683
- export declare const SubmitRequestResponseStruct: import("@metamask/superstruct").Struct<{
684
- pending: true;
685
- redirect?: {
686
- message?: string;
687
- url?: string;
688
- };
689
- } | {
690
- result: import("@metamask/utils").Json;
691
- pending: false;
692
- }, null>;
693
- export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
694
- export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
695
- method: "keyring_approveRequest";
696
- id: string | number | null;
697
- jsonrpc: "2.0";
698
- params: {
699
- data: Record<string, import("@metamask/utils").Json>;
700
- id: string;
701
- };
702
- }, {
703
- method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
704
- params: import("@metamask/superstruct").Struct<{
705
- data: Record<string, import("@metamask/utils").Json>;
706
- id: string;
707
- }, {
708
- id: import("@metamask/superstruct").Struct<string, null>;
709
- data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
710
- }>;
711
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
712
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
713
- }>;
714
- export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
715
- export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
716
- export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
717
- export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
718
- method: "keyring_rejectRequest";
719
- id: string | number | null;
720
- jsonrpc: "2.0";
721
- params: {
722
- id: string;
723
- };
724
- }, {
725
- method: import("@metamask/superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
726
- params: import("@metamask/superstruct").Struct<{
727
- id: string;
728
- }, {
729
- id: import("@metamask/superstruct").Struct<string, null>;
730
- }>;
731
- jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
732
- id: import("@metamask/superstruct").Struct<string | number | null, null>;
733
- }>;
734
- export type RejectRequestRequest = Infer<typeof RejectRequestRequestStruct>;
735
- export declare const RejectRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
736
- export type RejectRequestResponse = Infer<typeof RejectRequestResponseStruct>;
737
- //# sourceMappingURL=api.d.mts.map