@metamask-previews/keyring-api 23.2.0-c42f34c → 23.2.0-e5bc458

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 (46) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/api/account.d.cts +2 -2
  3. package/dist/api/account.d.mts +2 -2
  4. package/dist/api/asset.d.cts +2 -2
  5. package/dist/api/asset.d.mts +2 -2
  6. package/dist/api/request.d.cts +3 -3
  7. package/dist/api/request.d.mts +3 -3
  8. package/dist/api/response.d.cts +1 -1
  9. package/dist/api/response.d.mts +1 -1
  10. package/dist/api/transaction.cjs +19 -3
  11. package/dist/api/transaction.cjs.map +1 -1
  12. package/dist/api/transaction.d.cts +109 -77
  13. package/dist/api/transaction.d.cts.map +1 -1
  14. package/dist/api/transaction.d.mts +109 -77
  15. package/dist/api/transaction.d.mts.map +1 -1
  16. package/dist/api/transaction.mjs +19 -3
  17. package/dist/api/transaction.mjs.map +1 -1
  18. package/dist/btc/types.d.cts +8 -8
  19. package/dist/btc/types.d.mts +8 -8
  20. package/dist/eth/erc4337/types.d.cts +3 -3
  21. package/dist/eth/erc4337/types.d.mts +3 -3
  22. package/dist/eth/rpc/params.d.cts +29 -29
  23. package/dist/eth/rpc/params.d.mts +29 -29
  24. package/dist/eth/types.d.cts +4 -4
  25. package/dist/eth/types.d.mts +4 -4
  26. package/dist/events.d.cts +59 -56
  27. package/dist/events.d.cts.map +1 -1
  28. package/dist/events.d.mts +59 -56
  29. package/dist/events.d.mts.map +1 -1
  30. package/dist/rpc.d.cts +137 -131
  31. package/dist/rpc.d.cts.map +1 -1
  32. package/dist/rpc.d.mts +137 -131
  33. package/dist/rpc.d.mts.map +1 -1
  34. package/dist/sol/types.d.cts +2 -2
  35. package/dist/sol/types.d.mts +2 -2
  36. package/dist/trx/types.d.cts +2 -2
  37. package/dist/trx/types.d.mts +2 -2
  38. package/dist/v2/api/create-account/bip44.d.cts +1 -1
  39. package/dist/v2/api/create-account/bip44.d.mts +1 -1
  40. package/dist/v2/api/create-account/index.d.cts +1 -1
  41. package/dist/v2/api/create-account/index.d.mts +1 -1
  42. package/dist/v2/api/keyring-rpc.d.cts +28 -28
  43. package/dist/v2/api/keyring-rpc.d.mts +28 -28
  44. package/dist/xlm/types.d.cts +2 -2
  45. package/dist/xlm/types.d.mts +2 -2
  46. package/package.json +1 -1
package/dist/rpc.d.mts CHANGED
@@ -31,8 +31,8 @@ export declare enum KeyringRpcMethod {
31
31
  */
32
32
  export declare function isKeyringRpcMethod(method: string): method is KeyringRpcMethod;
33
33
  export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
34
- id: string | number | null;
35
34
  method: "keyring_listAccounts";
35
+ id: string | number | null;
36
36
  jsonrpc: "2.0";
37
37
  }, {
38
38
  method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
@@ -43,8 +43,6 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
43
43
  export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
44
44
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
45
45
  id: string;
46
- address: string;
47
- scopes: `${string}:${string}`[];
48
46
  options: Record<string, import("@metamask/utils").Json> & {
49
47
  entropy?: {
50
48
  type: "mnemonic";
@@ -58,12 +56,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
58
56
  };
59
57
  exportable?: boolean;
60
58
  };
59
+ address: string;
60
+ scopes: `${string}:${string}`[];
61
61
  methods: string[];
62
62
  }[], import("@metamask/superstruct").Struct<{
63
63
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
64
64
  id: string;
65
- address: string;
66
- scopes: `${string}:${string}`[];
67
65
  options: Record<string, import("@metamask/utils").Json> & {
68
66
  entropy?: {
69
67
  type: "mnemonic";
@@ -77,6 +75,8 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
77
75
  };
78
76
  exportable?: boolean;
79
77
  };
78
+ address: string;
79
+ scopes: `${string}:${string}`[];
80
80
  methods: string[];
81
81
  }, {
82
82
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -111,12 +111,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
111
111
  }>>;
112
112
  export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
113
113
  export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
114
- id: string | number | null;
115
114
  method: "keyring_getAccount";
115
+ id: string | number | null;
116
+ jsonrpc: "2.0";
116
117
  params: {
117
118
  id: string;
118
119
  };
119
- jsonrpc: "2.0";
120
120
  }, {
121
121
  method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
122
122
  params: import("@metamask/superstruct").Struct<{
@@ -131,8 +131,6 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
131
131
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
132
132
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
133
133
  id: string;
134
- address: string;
135
- scopes: `${string}:${string}`[];
136
134
  options: Record<string, import("@metamask/utils").Json> & {
137
135
  entropy?: {
138
136
  type: "mnemonic";
@@ -146,6 +144,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
146
144
  };
147
145
  exportable?: boolean;
148
146
  };
147
+ address: string;
148
+ scopes: `${string}:${string}`[];
149
149
  methods: string[];
150
150
  }, {
151
151
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -180,12 +180,12 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
180
180
  }>;
181
181
  export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
182
182
  export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
183
- id: string | number | null;
184
183
  method: "keyring_createAccount";
184
+ id: string | number | null;
185
+ jsonrpc: "2.0";
185
186
  params: {
186
187
  options: Record<string, import("@metamask/utils").Json>;
187
188
  };
188
- jsonrpc: "2.0";
189
189
  }, {
190
190
  method: import("@metamask/superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
191
191
  params: import("@metamask/superstruct").Struct<{
@@ -200,8 +200,6 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
200
200
  export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
201
201
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
202
202
  id: string;
203
- address: string;
204
- scopes: `${string}:${string}`[];
205
203
  options: Record<string, import("@metamask/utils").Json> & {
206
204
  entropy?: {
207
205
  type: "mnemonic";
@@ -215,6 +213,8 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
215
213
  };
216
214
  exportable?: boolean;
217
215
  };
216
+ address: string;
217
+ scopes: `${string}:${string}`[];
218
218
  methods: string[];
219
219
  }, {
220
220
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -249,8 +249,9 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
249
249
  }>;
250
250
  export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
251
251
  export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
252
- id: string | number | null;
253
252
  method: "keyring_createAccounts";
253
+ id: string | number | null;
254
+ jsonrpc: "2.0";
254
255
  params: {
255
256
  options: {
256
257
  type: "bip44:derive-path";
@@ -266,11 +267,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
266
267
  entropySource: string;
267
268
  } | {
268
269
  type: "bip44:derive-index-range";
269
- entropySource: string;
270
270
  range: {
271
271
  from: number;
272
272
  to: number;
273
273
  };
274
+ entropySource: string;
274
275
  } | {
275
276
  type: "custom";
276
277
  } | {
@@ -280,7 +281,6 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
280
281
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
281
282
  };
282
283
  };
283
- jsonrpc: "2.0";
284
284
  }, {
285
285
  method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
286
286
  params: import("@metamask/superstruct").Struct<{
@@ -298,11 +298,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
298
298
  entropySource: string;
299
299
  } | {
300
300
  type: "bip44:derive-index-range";
301
- entropySource: string;
302
301
  range: {
303
302
  from: number;
304
303
  to: number;
305
304
  };
305
+ entropySource: string;
306
306
  } | {
307
307
  type: "custom";
308
308
  } | {
@@ -326,11 +326,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
326
326
  entropySource: string;
327
327
  } | {
328
328
  type: "bip44:derive-index-range";
329
- entropySource: string;
330
329
  range: {
331
330
  from: number;
332
331
  to: number;
333
332
  };
333
+ entropySource: string;
334
334
  } | {
335
335
  type: "custom";
336
336
  } | {
@@ -347,8 +347,6 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
347
347
  export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
348
348
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
349
349
  id: string;
350
- address: string;
351
- scopes: `${string}:${string}`[];
352
350
  options: Record<string, import("@metamask/utils").Json> & {
353
351
  entropy?: {
354
352
  type: "mnemonic";
@@ -362,12 +360,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
362
360
  };
363
361
  exportable?: boolean;
364
362
  };
363
+ address: string;
364
+ scopes: `${string}:${string}`[];
365
365
  methods: string[];
366
366
  }[], import("@metamask/superstruct").Struct<{
367
367
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
368
368
  id: string;
369
- address: string;
370
- scopes: `${string}:${string}`[];
371
369
  options: Record<string, import("@metamask/utils").Json> & {
372
370
  entropy?: {
373
371
  type: "mnemonic";
@@ -381,6 +379,8 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
381
379
  };
382
380
  exportable?: boolean;
383
381
  };
382
+ address: string;
383
+ scopes: `${string}:${string}`[];
384
384
  methods: string[];
385
385
  }, {
386
386
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -415,12 +415,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
415
415
  }>>;
416
416
  export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
417
417
  export declare const SetSelectedAccountsRequestStruct: import("@metamask/superstruct").Struct<{
418
- id: string | number | null;
419
418
  method: "keyring_setSelectedAccounts";
419
+ id: string | number | null;
420
+ jsonrpc: "2.0";
420
421
  params: {
421
422
  accounts: string[];
422
423
  };
423
- jsonrpc: "2.0";
424
424
  }, {
425
425
  method: import("@metamask/superstruct").Struct<"keyring_setSelectedAccounts", "keyring_setSelectedAccounts">;
426
426
  params: import("@metamask/superstruct").Struct<{
@@ -435,14 +435,14 @@ export type SetSelectedAccountsRequest = Infer<typeof SetSelectedAccountsRequest
435
435
  export declare const SetSelectedAccountsResponseStruct: import("@metamask/superstruct").Struct<null, null>;
436
436
  export type SetSelectedAccountsResponse = Infer<typeof SetSelectedAccountsResponseStruct>;
437
437
  export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruct").Struct<{
438
- id: string | number | null;
439
438
  method: "keyring_discoverAccounts";
439
+ id: string | number | null;
440
+ jsonrpc: "2.0";
440
441
  params: {
441
442
  groupIndex: number;
442
443
  scopes: `${string}:${string}`[];
443
444
  entropySource: string;
444
445
  };
445
- jsonrpc: "2.0";
446
446
  }, {
447
447
  method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
448
448
  params: import("@metamask/superstruct").Struct<{
@@ -473,8 +473,9 @@ export declare const DiscoverAccountsResponseStruct: import("@metamask/superstru
473
473
  }>>;
474
474
  export type DiscoverAccountsResponse = Infer<typeof DiscoverAccountsResponseStruct>;
475
475
  export declare const ListAccountTransactionsRequestStruct: import("@metamask/superstruct").Struct<{
476
- id: string | number | null;
477
476
  method: "keyring_listAccountTransactions";
477
+ id: string | number | null;
478
+ jsonrpc: "2.0";
478
479
  params: {
479
480
  id: string;
480
481
  pagination: {
@@ -482,7 +483,6 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
482
483
  next?: string | null;
483
484
  };
484
485
  };
485
- jsonrpc: "2.0";
486
486
  }, {
487
487
  method: import("@metamask/superstruct").Struct<"keyring_listAccountTransactions", "keyring_listAccountTransactions">;
488
488
  params: import("@metamask/superstruct").Struct<{
@@ -506,19 +506,14 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
506
506
  }>;
507
507
  export type ListAccountTransactionsRequest = Infer<typeof ListAccountTransactionsRequestStruct>;
508
508
  export declare const ListAccountTransactionsResponseStruct: import("@metamask/superstruct").Struct<{
509
- next: string | null;
510
509
  data: {
511
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
510
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "token:disapprove";
512
511
  id: string;
513
- account: string;
514
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
515
- timestamp: number | null;
516
- chain: `${string}:${string}`;
517
512
  from: {
518
513
  address: string;
519
514
  asset: {
520
- type: `${string}:${string}/${string}:${string}`;
521
515
  unit: string;
516
+ type: `${string}:${string}/${string}:${string}`;
522
517
  amount: string;
523
518
  fungible: true;
524
519
  } | {
@@ -526,11 +521,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
526
521
  fungible: false;
527
522
  } | null;
528
523
  }[];
524
+ events: {
525
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
526
+ timestamp: number | null;
527
+ }[];
528
+ chain: `${string}:${string}`;
529
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
530
+ account: string;
531
+ timestamp: number | null;
529
532
  to: {
530
533
  address: string;
531
534
  asset: {
532
- type: `${string}:${string}/${string}:${string}`;
533
535
  unit: string;
536
+ type: `${string}:${string}/${string}:${string}`;
534
537
  amount: string;
535
538
  fungible: true;
536
539
  } | {
@@ -541,8 +544,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
541
544
  fees: {
542
545
  type: "base" | "priority";
543
546
  asset: {
544
- type: `${string}:${string}/${string}:${string}`;
545
547
  unit: string;
548
+ type: `${string}:${string}/${string}:${string}`;
546
549
  amount: string;
547
550
  fungible: true;
548
551
  } | {
@@ -550,28 +553,22 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
550
553
  fungible: false;
551
554
  };
552
555
  }[];
553
- events: {
554
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
555
- timestamp: number | null;
556
- }[];
557
556
  details?: {
558
557
  origin?: string;
559
558
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
559
+ typeLabel?: string;
560
560
  };
561
561
  }[];
562
+ next: string | null;
562
563
  }, {
563
564
  data: import("@metamask/superstruct").Struct<{
564
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
565
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "token:disapprove";
565
566
  id: string;
566
- account: string;
567
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
568
- timestamp: number | null;
569
- chain: `${string}:${string}`;
570
567
  from: {
571
568
  address: string;
572
569
  asset: {
573
- type: `${string}:${string}/${string}:${string}`;
574
570
  unit: string;
571
+ type: `${string}:${string}/${string}:${string}`;
575
572
  amount: string;
576
573
  fungible: true;
577
574
  } | {
@@ -579,11 +576,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
579
576
  fungible: false;
580
577
  } | null;
581
578
  }[];
579
+ events: {
580
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
581
+ timestamp: number | null;
582
+ }[];
583
+ chain: `${string}:${string}`;
584
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
585
+ account: string;
586
+ timestamp: number | null;
582
587
  to: {
583
588
  address: string;
584
589
  asset: {
585
- type: `${string}:${string}/${string}:${string}`;
586
590
  unit: string;
591
+ type: `${string}:${string}/${string}:${string}`;
587
592
  amount: string;
588
593
  fungible: true;
589
594
  } | {
@@ -594,8 +599,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
594
599
  fees: {
595
600
  type: "base" | "priority";
596
601
  asset: {
597
- type: `${string}:${string}/${string}:${string}`;
598
602
  unit: string;
603
+ type: `${string}:${string}/${string}:${string}`;
599
604
  amount: string;
600
605
  fungible: true;
601
606
  } | {
@@ -603,26 +608,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
603
608
  fungible: false;
604
609
  };
605
610
  }[];
606
- events: {
607
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
608
- timestamp: number | null;
609
- }[];
610
611
  details?: {
611
612
  origin?: string;
612
613
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
614
+ typeLabel?: string;
613
615
  };
614
616
  }[], import("@metamask/superstruct").Struct<{
615
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
617
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "token:disapprove";
616
618
  id: string;
617
- account: string;
618
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
619
- timestamp: number | null;
620
- chain: `${string}:${string}`;
621
619
  from: {
622
620
  address: string;
623
621
  asset: {
624
- type: `${string}:${string}/${string}:${string}`;
625
622
  unit: string;
623
+ type: `${string}:${string}/${string}:${string}`;
626
624
  amount: string;
627
625
  fungible: true;
628
626
  } | {
@@ -630,11 +628,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
630
628
  fungible: false;
631
629
  } | null;
632
630
  }[];
631
+ events: {
632
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
633
+ timestamp: number | null;
634
+ }[];
635
+ chain: `${string}:${string}`;
636
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
637
+ account: string;
638
+ timestamp: number | null;
633
639
  to: {
634
640
  address: string;
635
641
  asset: {
636
- type: `${string}:${string}/${string}:${string}`;
637
642
  unit: string;
643
+ type: `${string}:${string}/${string}:${string}`;
638
644
  amount: string;
639
645
  fungible: true;
640
646
  } | {
@@ -645,8 +651,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
645
651
  fees: {
646
652
  type: "base" | "priority";
647
653
  asset: {
648
- type: `${string}:${string}/${string}:${string}`;
649
654
  unit: string;
655
+ type: `${string}:${string}/${string}:${string}`;
650
656
  amount: string;
651
657
  fungible: true;
652
658
  } | {
@@ -654,13 +660,10 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
654
660
  fungible: false;
655
661
  };
656
662
  }[];
657
- events: {
658
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
659
- timestamp: number | null;
660
- }[];
661
663
  details?: {
662
664
  origin?: string;
663
665
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
666
+ typeLabel?: string;
664
667
  };
665
668
  }, {
666
669
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -673,7 +676,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
673
676
  failed: "failed";
674
677
  }>;
675
678
  timestamp: import("@metamask/superstruct").Struct<number | null, null>;
676
- type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown", {
679
+ type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "token:disapprove", {
680
+ unknown: "unknown";
677
681
  send: "send";
678
682
  receive: "receive";
679
683
  swap: "swap";
@@ -682,13 +686,13 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
682
686
  "stake:deposit": "stake:deposit";
683
687
  "stake:withdraw": "stake:withdraw";
684
688
  "token:approve": "token:approve";
685
- unknown: "unknown";
689
+ "token:disapprove": "token:disapprove";
686
690
  }>;
687
691
  from: import("@metamask/superstruct").Struct<{
688
692
  address: string;
689
693
  asset: {
690
- type: `${string}:${string}/${string}:${string}`;
691
694
  unit: string;
695
+ type: `${string}:${string}/${string}:${string}`;
692
696
  amount: string;
693
697
  fungible: true;
694
698
  } | {
@@ -698,8 +702,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
698
702
  }[], import("@metamask/superstruct").Struct<{
699
703
  address: string;
700
704
  asset: {
701
- type: `${string}:${string}/${string}:${string}`;
702
705
  unit: string;
706
+ type: `${string}:${string}/${string}:${string}`;
703
707
  amount: string;
704
708
  fungible: true;
705
709
  } | {
@@ -709,8 +713,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
709
713
  }, {
710
714
  address: import("@metamask/superstruct").Struct<string, null>;
711
715
  asset: import("@metamask/superstruct").Struct<{
712
- type: `${string}:${string}/${string}:${string}`;
713
716
  unit: string;
717
+ type: `${string}:${string}/${string}:${string}`;
714
718
  amount: string;
715
719
  fungible: true;
716
720
  } | {
@@ -721,8 +725,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
721
725
  to: import("@metamask/superstruct").Struct<{
722
726
  address: string;
723
727
  asset: {
724
- type: `${string}:${string}/${string}:${string}`;
725
728
  unit: string;
729
+ type: `${string}:${string}/${string}:${string}`;
726
730
  amount: string;
727
731
  fungible: true;
728
732
  } | {
@@ -732,8 +736,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
732
736
  }[], import("@metamask/superstruct").Struct<{
733
737
  address: string;
734
738
  asset: {
735
- type: `${string}:${string}/${string}:${string}`;
736
739
  unit: string;
740
+ type: `${string}:${string}/${string}:${string}`;
737
741
  amount: string;
738
742
  fungible: true;
739
743
  } | {
@@ -743,8 +747,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
743
747
  }, {
744
748
  address: import("@metamask/superstruct").Struct<string, null>;
745
749
  asset: import("@metamask/superstruct").Struct<{
746
- type: `${string}:${string}/${string}:${string}`;
747
750
  unit: string;
751
+ type: `${string}:${string}/${string}:${string}`;
748
752
  amount: string;
749
753
  fungible: true;
750
754
  } | {
@@ -755,8 +759,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
755
759
  fees: import("@metamask/superstruct").Struct<{
756
760
  type: "base" | "priority";
757
761
  asset: {
758
- type: `${string}:${string}/${string}:${string}`;
759
762
  unit: string;
763
+ type: `${string}:${string}/${string}:${string}`;
760
764
  amount: string;
761
765
  fungible: true;
762
766
  } | {
@@ -766,8 +770,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
766
770
  }[], import("@metamask/superstruct").Struct<{
767
771
  type: "base" | "priority";
768
772
  asset: {
769
- type: `${string}:${string}/${string}:${string}`;
770
773
  unit: string;
774
+ type: `${string}:${string}/${string}:${string}`;
771
775
  amount: string;
772
776
  fungible: true;
773
777
  } | {
@@ -780,8 +784,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
780
784
  priority: "priority";
781
785
  }>;
782
786
  asset: import("@metamask/superstruct").Struct<{
783
- type: `${string}:${string}/${string}:${string}`;
784
787
  unit: string;
788
+ type: `${string}:${string}/${string}:${string}`;
785
789
  amount: string;
786
790
  fungible: true;
787
791
  } | {
@@ -807,6 +811,7 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
807
811
  details: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
808
812
  origin?: string;
809
813
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
814
+ typeLabel?: string;
810
815
  }, {
811
816
  origin: import("@metamask/superstruct").Struct<string | import("@metamask/keyring-utils").ExactOptionalTag, null>;
812
817
  securityAlertResponse: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | "Benign" | "Warning" | "Malicious", {
@@ -814,18 +819,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
814
819
  Warning: "Warning";
815
820
  Malicious: "Malicious";
816
821
  }>;
822
+ typeLabel: import("@metamask/superstruct").Struct<string | import("@metamask/keyring-utils").ExactOptionalTag, null>;
817
823
  }>;
818
824
  }>>;
819
825
  next: import("@metamask/superstruct").Struct<string | null, null>;
820
826
  }>;
821
827
  export type ListAccountTransactionsResponse = Infer<typeof ListAccountTransactionsResponseStruct>;
822
828
  export declare const ListAccountAssetsRequestStruct: import("@metamask/superstruct").Struct<{
823
- id: string | number | null;
824
829
  method: "keyring_listAccountAssets";
830
+ id: string | number | null;
831
+ jsonrpc: "2.0";
825
832
  params: {
826
833
  id: string;
827
834
  };
828
- jsonrpc: "2.0";
829
835
  }, {
830
836
  method: import("@metamask/superstruct").Struct<"keyring_listAccountAssets", "keyring_listAccountAssets">;
831
837
  params: import("@metamask/superstruct").Struct<{
@@ -837,16 +843,16 @@ export declare const ListAccountAssetsRequestStruct: import("@metamask/superstru
837
843
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
838
844
  }>;
839
845
  export type ListAccountAssetsRequest = Infer<typeof ListAccountAssetsRequestStruct>;
840
- export declare const ListAccountAssetsResponseStruct: import("@metamask/superstruct").Struct<(`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[], import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`, null>>;
846
+ export declare const ListAccountAssetsResponseStruct: import("@metamask/superstruct").Struct<(`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[], import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`, null>>;
841
847
  export type ListAccountAssetsResponse = Infer<typeof ListAccountAssetsResponseStruct>;
842
848
  export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
843
- id: string | number | null;
844
849
  method: "keyring_getAccountBalances";
850
+ id: string | number | null;
851
+ jsonrpc: "2.0";
845
852
  params: {
846
853
  id: string;
847
854
  assets: `${string}:${string}/${string}:${string}`[];
848
855
  };
849
- jsonrpc: "2.0";
850
856
  }, {
851
857
  method: import("@metamask/superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
852
858
  params: import("@metamask/superstruct").Struct<{
@@ -866,40 +872,40 @@ export declare const GetAccountBalancesResponseStruct: import("@metamask/superst
866
872
  }>, null>;
867
873
  export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
868
874
  export declare const ResolveAccountAddressRequestStruct: import("@metamask/superstruct").Struct<{
869
- id: string | number | null;
870
875
  method: "keyring_resolveAccountAddress";
876
+ id: string | number | null;
877
+ jsonrpc: "2.0";
871
878
  params: {
872
- scope: `${string}:${string}`;
873
879
  request: {
874
- jsonrpc: "2.0";
875
- id: string | number | null;
876
880
  method: string;
881
+ id: string | number | null;
882
+ jsonrpc: "2.0";
877
883
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
878
884
  };
885
+ scope: `${string}:${string}`;
879
886
  };
880
- jsonrpc: "2.0";
881
887
  }, {
882
888
  method: import("@metamask/superstruct").Struct<"keyring_resolveAccountAddress", "keyring_resolveAccountAddress">;
883
889
  params: import("@metamask/superstruct").Struct<{
884
- scope: `${string}:${string}`;
885
890
  request: {
886
- jsonrpc: "2.0";
887
- id: string | number | null;
888
891
  method: string;
892
+ id: string | number | null;
893
+ jsonrpc: "2.0";
889
894
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
890
895
  };
896
+ scope: `${string}:${string}`;
891
897
  }, {
892
898
  scope: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
893
899
  request: import("@metamask/superstruct").Struct<{
894
- jsonrpc: "2.0";
895
- id: string | number | null;
896
900
  method: string;
901
+ id: string | number | null;
902
+ jsonrpc: "2.0";
897
903
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
898
904
  }, {
899
905
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
900
906
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
901
907
  method: import("@metamask/superstruct").Struct<string, null>;
902
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
908
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
903
909
  }>;
904
910
  }>;
905
911
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -913,13 +919,13 @@ export declare const ResolveAccountAddressResponseStruct: import("@metamask/supe
913
919
  }>;
914
920
  export type ResolveAccountAddressResponse = Infer<typeof ResolveAccountAddressResponseStruct>;
915
921
  export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
916
- id: string | number | null;
917
922
  method: "keyring_filterAccountChains";
923
+ id: string | number | null;
924
+ jsonrpc: "2.0";
918
925
  params: {
919
926
  id: string;
920
927
  chains: string[];
921
928
  };
922
- jsonrpc: "2.0";
923
929
  }, {
924
930
  method: import("@metamask/superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
925
931
  params: import("@metamask/superstruct").Struct<{
@@ -936,14 +942,13 @@ export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>
936
942
  export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
937
943
  export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
938
944
  export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
939
- id: string | number | null;
940
945
  method: "keyring_updateAccount";
946
+ id: string | number | null;
947
+ jsonrpc: "2.0";
941
948
  params: {
942
949
  account: {
943
950
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
944
951
  id: string;
945
- address: string;
946
- scopes: `${string}:${string}`[];
947
952
  options: Record<string, import("@metamask/utils").Json> & {
948
953
  entropy?: {
949
954
  type: "mnemonic";
@@ -957,18 +962,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
957
962
  };
958
963
  exportable?: boolean;
959
964
  };
965
+ address: string;
966
+ scopes: `${string}:${string}`[];
960
967
  methods: string[];
961
968
  };
962
969
  };
963
- jsonrpc: "2.0";
964
970
  }, {
965
971
  method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
966
972
  params: import("@metamask/superstruct").Struct<{
967
973
  account: {
968
974
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
969
975
  id: string;
970
- address: string;
971
- scopes: `${string}:${string}`[];
972
976
  options: Record<string, import("@metamask/utils").Json> & {
973
977
  entropy?: {
974
978
  type: "mnemonic";
@@ -982,14 +986,14 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
982
986
  };
983
987
  exportable?: boolean;
984
988
  };
989
+ address: string;
990
+ scopes: `${string}:${string}`[];
985
991
  methods: string[];
986
992
  };
987
993
  }, {
988
994
  account: import("@metamask/superstruct").Struct<{
989
995
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
990
996
  id: string;
991
- address: string;
992
- scopes: `${string}:${string}`[];
993
997
  options: Record<string, import("@metamask/utils").Json> & {
994
998
  entropy?: {
995
999
  type: "mnemonic";
@@ -1003,6 +1007,8 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
1003
1007
  };
1004
1008
  exportable?: boolean;
1005
1009
  };
1010
+ address: string;
1011
+ scopes: `${string}:${string}`[];
1006
1012
  methods: string[];
1007
1013
  }, {
1008
1014
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -1043,12 +1049,12 @@ export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
1043
1049
  export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1044
1050
  export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
1045
1051
  export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
1046
- id: string | number | null;
1047
1052
  method: "keyring_deleteAccount";
1053
+ id: string | number | null;
1054
+ jsonrpc: "2.0";
1048
1055
  params: {
1049
1056
  id: string;
1050
1057
  };
1051
- jsonrpc: "2.0";
1052
1058
  }, {
1053
1059
  method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
1054
1060
  params: import("@metamask/superstruct").Struct<{
@@ -1063,12 +1069,12 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
1063
1069
  export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1064
1070
  export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
1065
1071
  export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
1066
- id: string | number | null;
1067
1072
  method: "keyring_exportAccount";
1073
+ id: string | number | null;
1074
+ jsonrpc: "2.0";
1068
1075
  params: {
1069
1076
  id: string;
1070
1077
  };
1071
- jsonrpc: "2.0";
1072
1078
  }, {
1073
1079
  method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
1074
1080
  params: import("@metamask/superstruct").Struct<{
@@ -1083,8 +1089,8 @@ export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
1083
1089
  export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
1084
1090
  export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
1085
1091
  export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
1086
- id: string | number | null;
1087
1092
  method: "keyring_listRequests";
1093
+ id: string | number | null;
1088
1094
  jsonrpc: "2.0";
1089
1095
  }, {
1090
1096
  method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
@@ -1094,22 +1100,22 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
1094
1100
  export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
1095
1101
  export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
1096
1102
  id: string;
1097
- scope: string;
1098
- account: string;
1099
1103
  origin: string;
1100
1104
  request: {
1101
1105
  method: string;
1102
1106
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1103
1107
  };
1104
- }[], import("@metamask/superstruct").Struct<{
1105
- id: string;
1106
1108
  scope: string;
1107
1109
  account: string;
1110
+ }[], import("@metamask/superstruct").Struct<{
1111
+ id: string;
1108
1112
  origin: string;
1109
1113
  request: {
1110
1114
  method: string;
1111
1115
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1112
1116
  };
1117
+ scope: string;
1118
+ account: string;
1113
1119
  }, {
1114
1120
  id: import("@metamask/superstruct").Struct<string, null>;
1115
1121
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1120,17 +1126,17 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
1120
1126
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1121
1127
  }, {
1122
1128
  method: import("@metamask/superstruct").Struct<string, null>;
1123
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1129
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1124
1130
  }>;
1125
1131
  }>>;
1126
1132
  export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
1127
1133
  export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
1128
- id: string | number | null;
1129
1134
  method: "keyring_getRequest";
1135
+ id: string | number | null;
1136
+ jsonrpc: "2.0";
1130
1137
  params: {
1131
1138
  id: string;
1132
1139
  };
1133
- jsonrpc: "2.0";
1134
1140
  }, {
1135
1141
  method: import("@metamask/superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
1136
1142
  params: import("@metamask/superstruct").Struct<{
@@ -1144,13 +1150,13 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
1144
1150
  export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
1145
1151
  export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
1146
1152
  id: string;
1147
- scope: string;
1148
- account: string;
1149
1153
  origin: string;
1150
1154
  request: {
1151
1155
  method: string;
1152
1156
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1153
1157
  };
1158
+ scope: string;
1159
+ account: string;
1154
1160
  }, {
1155
1161
  id: import("@metamask/superstruct").Struct<string, null>;
1156
1162
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1161,35 +1167,35 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
1161
1167
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1162
1168
  }, {
1163
1169
  method: import("@metamask/superstruct").Struct<string, null>;
1164
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1170
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1165
1171
  }>;
1166
1172
  }>;
1167
1173
  export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
1168
1174
  export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
1169
- id: string | number | null;
1170
1175
  method: "keyring_submitRequest";
1176
+ id: string | number | null;
1177
+ jsonrpc: "2.0";
1171
1178
  params: {
1172
1179
  id: string;
1173
- scope: string;
1174
- account: string;
1175
1180
  origin: string;
1176
1181
  request: {
1177
1182
  method: string;
1178
1183
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1179
1184
  };
1185
+ scope: string;
1186
+ account: string;
1180
1187
  };
1181
- jsonrpc: "2.0";
1182
1188
  }, {
1183
1189
  method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
1184
1190
  params: import("@metamask/superstruct").Struct<{
1185
1191
  id: string;
1186
- scope: string;
1187
- account: string;
1188
1192
  origin: string;
1189
1193
  request: {
1190
1194
  method: string;
1191
1195
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1192
1196
  };
1197
+ scope: string;
1198
+ account: string;
1193
1199
  }, {
1194
1200
  id: import("@metamask/superstruct").Struct<string, null>;
1195
1201
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1200,7 +1206,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
1200
1206
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1201
1207
  }, {
1202
1208
  method: import("@metamask/superstruct").Struct<string, null>;
1203
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1209
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1204
1210
  }>;
1205
1211
  }>;
1206
1212
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -1214,23 +1220,23 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
1214
1220
  url?: string;
1215
1221
  };
1216
1222
  } | {
1217
- pending: false;
1218
1223
  result: import("@metamask/utils").Json;
1224
+ pending: false;
1219
1225
  }, null>;
1220
1226
  export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
1221
1227
  export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
1222
- id: string | number | null;
1223
1228
  method: "keyring_approveRequest";
1229
+ id: string | number | null;
1230
+ jsonrpc: "2.0";
1224
1231
  params: {
1225
- id: string;
1226
1232
  data: Record<string, import("@metamask/utils").Json>;
1233
+ id: string;
1227
1234
  };
1228
- jsonrpc: "2.0";
1229
1235
  }, {
1230
1236
  method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
1231
1237
  params: import("@metamask/superstruct").Struct<{
1232
- id: string;
1233
1238
  data: Record<string, import("@metamask/utils").Json>;
1239
+ id: string;
1234
1240
  }, {
1235
1241
  id: import("@metamask/superstruct").Struct<string, null>;
1236
1242
  data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
@@ -1242,12 +1248,12 @@ export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
1242
1248
  export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1243
1249
  export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
1244
1250
  export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
1245
- id: string | number | null;
1246
1251
  method: "keyring_rejectRequest";
1252
+ id: string | number | null;
1253
+ jsonrpc: "2.0";
1247
1254
  params: {
1248
1255
  id: string;
1249
1256
  };
1250
- jsonrpc: "2.0";
1251
1257
  }, {
1252
1258
  method: import("@metamask/superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
1253
1259
  params: import("@metamask/superstruct").Struct<{