@metamask/keyring-api 18.0.0 → 19.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/api/account-options.cjs +122 -0
  3. package/dist/api/account-options.cjs.map +1 -0
  4. package/dist/api/account-options.d.cts +131 -0
  5. package/dist/api/account-options.d.cts.map +1 -0
  6. package/dist/api/account-options.d.mts +131 -0
  7. package/dist/api/account-options.d.mts.map +1 -0
  8. package/dist/api/account-options.mjs +119 -0
  9. package/dist/api/account-options.mjs.map +1 -0
  10. package/dist/api/account.cjs +2 -2
  11. package/dist/api/account.cjs.map +1 -1
  12. package/dist/api/account.d.cts +22 -2
  13. package/dist/api/account.d.cts.map +1 -1
  14. package/dist/api/account.d.mts +22 -2
  15. package/dist/api/account.d.mts.map +1 -1
  16. package/dist/api/account.mjs +3 -3
  17. package/dist/api/account.mjs.map +1 -1
  18. package/dist/api/discovery.d.cts +2 -2
  19. package/dist/api/discovery.d.mts +2 -2
  20. package/dist/api/index.cjs +1 -0
  21. package/dist/api/index.cjs.map +1 -1
  22. package/dist/api/index.d.cts +1 -0
  23. package/dist/api/index.d.cts.map +1 -1
  24. package/dist/api/index.d.mts +1 -0
  25. package/dist/api/index.d.mts.map +1 -1
  26. package/dist/api/index.mjs +1 -0
  27. package/dist/api/index.mjs.map +1 -1
  28. package/dist/btc/types.d.cts +88 -8
  29. package/dist/btc/types.d.cts.map +1 -1
  30. package/dist/btc/types.d.mts +88 -8
  31. package/dist/btc/types.d.mts.map +1 -1
  32. package/dist/eth/types.d.cts +44 -4
  33. package/dist/eth/types.d.cts.map +1 -1
  34. package/dist/eth/types.d.mts +44 -4
  35. package/dist/eth/types.d.mts.map +1 -1
  36. package/dist/events.d.cts +88 -8
  37. package/dist/events.d.cts.map +1 -1
  38. package/dist/events.d.mts +88 -8
  39. package/dist/events.d.mts.map +1 -1
  40. package/dist/rpc.d.cts +125 -15
  41. package/dist/rpc.d.cts.map +1 -1
  42. package/dist/rpc.d.mts +125 -15
  43. package/dist/rpc.d.mts.map +1 -1
  44. package/dist/sol/types.d.cts +22 -2
  45. package/dist/sol/types.d.cts.map +1 -1
  46. package/dist/sol/types.d.mts +22 -2
  47. package/dist/sol/types.d.mts.map +1 -1
  48. package/package.json +3 -3
package/dist/events.d.cts CHANGED
@@ -18,7 +18,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
18
18
  account: {
19
19
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
20
20
  id: string;
21
- options: Record<string, import("@metamask/utils").Json>;
21
+ options: Record<string, import("@metamask/utils").Json> & {
22
+ entropy?: {
23
+ type: "mnemonic";
24
+ id: string;
25
+ derivationPath: string;
26
+ groupIndex: number;
27
+ } | {
28
+ type: "private-key";
29
+ };
30
+ exportable?: boolean;
31
+ };
22
32
  address: string;
23
33
  scopes: `${string}:${string}`[];
24
34
  methods: string[];
@@ -36,7 +46,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
36
46
  account: {
37
47
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
38
48
  id: string;
39
- options: Record<string, import("@metamask/utils").Json>;
49
+ options: Record<string, import("@metamask/utils").Json> & {
50
+ entropy?: {
51
+ type: "mnemonic";
52
+ id: string;
53
+ derivationPath: string;
54
+ groupIndex: number;
55
+ } | {
56
+ type: "private-key";
57
+ };
58
+ exportable?: boolean;
59
+ };
40
60
  address: string;
41
61
  scopes: `${string}:${string}`[];
42
62
  methods: string[];
@@ -59,7 +79,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
59
79
  account: import("@metamask/superstruct").Struct<{
60
80
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
61
81
  id: string;
62
- options: Record<string, import("@metamask/utils").Json>;
82
+ options: Record<string, import("@metamask/utils").Json> & {
83
+ entropy?: {
84
+ type: "mnemonic";
85
+ id: string;
86
+ derivationPath: string;
87
+ groupIndex: number;
88
+ } | {
89
+ type: "private-key";
90
+ };
91
+ exportable?: boolean;
92
+ };
63
93
  address: string;
64
94
  scopes: `${string}:${string}`[];
65
95
  methods: string[];
@@ -76,7 +106,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
76
106
  }>;
77
107
  address: import("@metamask/superstruct").Struct<string, null>;
78
108
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
79
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
109
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
110
+ entropy?: {
111
+ type: "mnemonic";
112
+ id: string;
113
+ derivationPath: string;
114
+ groupIndex: number;
115
+ } | {
116
+ type: "private-key";
117
+ };
118
+ exportable?: boolean;
119
+ }, null>;
80
120
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
81
121
  }>;
82
122
  /**
@@ -112,7 +152,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
112
152
  account: {
113
153
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
114
154
  id: string;
115
- options: Record<string, import("@metamask/utils").Json>;
155
+ options: Record<string, import("@metamask/utils").Json> & {
156
+ entropy?: {
157
+ type: "mnemonic";
158
+ id: string;
159
+ derivationPath: string;
160
+ groupIndex: number;
161
+ } | {
162
+ type: "private-key";
163
+ };
164
+ exportable?: boolean;
165
+ };
116
166
  address: string;
117
167
  scopes: `${string}:${string}`[];
118
168
  methods: string[];
@@ -124,7 +174,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
124
174
  account: {
125
175
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
126
176
  id: string;
127
- options: Record<string, import("@metamask/utils").Json>;
177
+ options: Record<string, import("@metamask/utils").Json> & {
178
+ entropy?: {
179
+ type: "mnemonic";
180
+ id: string;
181
+ derivationPath: string;
182
+ groupIndex: number;
183
+ } | {
184
+ type: "private-key";
185
+ };
186
+ exportable?: boolean;
187
+ };
128
188
  address: string;
129
189
  scopes: `${string}:${string}`[];
130
190
  methods: string[];
@@ -136,7 +196,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
136
196
  account: import("@metamask/superstruct").Struct<{
137
197
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
138
198
  id: string;
139
- options: Record<string, import("@metamask/utils").Json>;
199
+ options: Record<string, import("@metamask/utils").Json> & {
200
+ entropy?: {
201
+ type: "mnemonic";
202
+ id: string;
203
+ derivationPath: string;
204
+ groupIndex: number;
205
+ } | {
206
+ type: "private-key";
207
+ };
208
+ exportable?: boolean;
209
+ };
140
210
  address: string;
141
211
  scopes: `${string}:${string}`[];
142
212
  methods: string[];
@@ -153,7 +223,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
153
223
  }>;
154
224
  address: import("@metamask/superstruct").Struct<string, null>;
155
225
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
156
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
226
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
227
+ entropy?: {
228
+ type: "mnemonic";
229
+ id: string;
230
+ derivationPath: string;
231
+ groupIndex: number;
232
+ } | {
233
+ type: "private-key";
234
+ };
235
+ exportable?: boolean;
236
+ }, null>;
157
237
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
158
238
  }>;
159
239
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;;;WAOG;;;EAQL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;EAGL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;QAGlC;;WAEG;;;EAGL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAEvE,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;;;;;;EAaL,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,KAAK,CACjD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,sCAAsC,GAChD,+BAA+B,CAAC,QAAQ,CAAC,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;QAG3C;;WAEG;;;;;;EAuBL,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAC9C,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,mCAAmC,GAC7C,4BAA4B,CAAC,QAAQ,CAAC,CAAC;AAEzC;;GAEG;AAEH,KAAK,aAAa,GACd,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,4BAA4B,GAC5B,2BAA2B,GAC3B,+BAA+B,GAC/B,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,YAAY,IAAI,OAAO,CACnE,aAAa,EAGb;IAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;CAAE,CACvB,CAAC,QAAQ,CAAC,CAAC"}
package/dist/events.d.mts CHANGED
@@ -18,7 +18,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
18
18
  account: {
19
19
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
20
20
  id: string;
21
- options: Record<string, import("@metamask/utils").Json>;
21
+ options: Record<string, import("@metamask/utils").Json> & {
22
+ entropy?: {
23
+ type: "mnemonic";
24
+ id: string;
25
+ derivationPath: string;
26
+ groupIndex: number;
27
+ } | {
28
+ type: "private-key";
29
+ };
30
+ exportable?: boolean;
31
+ };
22
32
  address: string;
23
33
  scopes: `${string}:${string}`[];
24
34
  methods: string[];
@@ -36,7 +46,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
36
46
  account: {
37
47
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
38
48
  id: string;
39
- options: Record<string, import("@metamask/utils").Json>;
49
+ options: Record<string, import("@metamask/utils").Json> & {
50
+ entropy?: {
51
+ type: "mnemonic";
52
+ id: string;
53
+ derivationPath: string;
54
+ groupIndex: number;
55
+ } | {
56
+ type: "private-key";
57
+ };
58
+ exportable?: boolean;
59
+ };
40
60
  address: string;
41
61
  scopes: `${string}:${string}`[];
42
62
  methods: string[];
@@ -59,7 +79,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
59
79
  account: import("@metamask/superstruct").Struct<{
60
80
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
61
81
  id: string;
62
- options: Record<string, import("@metamask/utils").Json>;
82
+ options: Record<string, import("@metamask/utils").Json> & {
83
+ entropy?: {
84
+ type: "mnemonic";
85
+ id: string;
86
+ derivationPath: string;
87
+ groupIndex: number;
88
+ } | {
89
+ type: "private-key";
90
+ };
91
+ exportable?: boolean;
92
+ };
63
93
  address: string;
64
94
  scopes: `${string}:${string}`[];
65
95
  methods: string[];
@@ -76,7 +106,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
76
106
  }>;
77
107
  address: import("@metamask/superstruct").Struct<string, null>;
78
108
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
79
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
109
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
110
+ entropy?: {
111
+ type: "mnemonic";
112
+ id: string;
113
+ derivationPath: string;
114
+ groupIndex: number;
115
+ } | {
116
+ type: "private-key";
117
+ };
118
+ exportable?: boolean;
119
+ }, null>;
80
120
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
81
121
  }>;
82
122
  /**
@@ -112,7 +152,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
112
152
  account: {
113
153
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
114
154
  id: string;
115
- options: Record<string, import("@metamask/utils").Json>;
155
+ options: Record<string, import("@metamask/utils").Json> & {
156
+ entropy?: {
157
+ type: "mnemonic";
158
+ id: string;
159
+ derivationPath: string;
160
+ groupIndex: number;
161
+ } | {
162
+ type: "private-key";
163
+ };
164
+ exportable?: boolean;
165
+ };
116
166
  address: string;
117
167
  scopes: `${string}:${string}`[];
118
168
  methods: string[];
@@ -124,7 +174,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
124
174
  account: {
125
175
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
126
176
  id: string;
127
- options: Record<string, import("@metamask/utils").Json>;
177
+ options: Record<string, import("@metamask/utils").Json> & {
178
+ entropy?: {
179
+ type: "mnemonic";
180
+ id: string;
181
+ derivationPath: string;
182
+ groupIndex: number;
183
+ } | {
184
+ type: "private-key";
185
+ };
186
+ exportable?: boolean;
187
+ };
128
188
  address: string;
129
189
  scopes: `${string}:${string}`[];
130
190
  methods: string[];
@@ -136,7 +196,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
136
196
  account: import("@metamask/superstruct").Struct<{
137
197
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
138
198
  id: string;
139
- options: Record<string, import("@metamask/utils").Json>;
199
+ options: Record<string, import("@metamask/utils").Json> & {
200
+ entropy?: {
201
+ type: "mnemonic";
202
+ id: string;
203
+ derivationPath: string;
204
+ groupIndex: number;
205
+ } | {
206
+ type: "private-key";
207
+ };
208
+ exportable?: boolean;
209
+ };
140
210
  address: string;
141
211
  scopes: `${string}:${string}`[];
142
212
  methods: string[];
@@ -153,7 +223,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
153
223
  }>;
154
224
  address: import("@metamask/superstruct").Struct<string, null>;
155
225
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
156
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
226
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
227
+ entropy?: {
228
+ type: "mnemonic";
229
+ id: string;
230
+ derivationPath: string;
231
+ groupIndex: number;
232
+ } | {
233
+ type: "private-key";
234
+ };
235
+ exportable?: boolean;
236
+ }, null>;
157
237
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
158
238
  }>;
159
239
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;;;WAOG;;;EAQL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0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c.d.cts CHANGED
@@ -41,14 +41,34 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
41
41
  export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
42
42
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
43
43
  id: string;
44
- options: Record<string, import("@metamask/utils").Json>;
44
+ options: Record<string, import("@metamask/utils").Json> & {
45
+ entropy?: {
46
+ type: "mnemonic";
47
+ id: string;
48
+ derivationPath: string;
49
+ groupIndex: number;
50
+ } | {
51
+ type: "private-key";
52
+ };
53
+ exportable?: boolean;
54
+ };
45
55
  address: string;
46
56
  scopes: `${string}:${string}`[];
47
57
  methods: string[];
48
58
  }[], import("@metamask/superstruct").Struct<{
49
59
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
50
60
  id: string;
51
- options: Record<string, import("@metamask/utils").Json>;
61
+ options: Record<string, import("@metamask/utils").Json> & {
62
+ entropy?: {
63
+ type: "mnemonic";
64
+ id: string;
65
+ derivationPath: string;
66
+ groupIndex: number;
67
+ } | {
68
+ type: "private-key";
69
+ };
70
+ exportable?: boolean;
71
+ };
52
72
  address: string;
53
73
  scopes: `${string}:${string}`[];
54
74
  methods: string[];
@@ -65,7 +85,17 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
65
85
  }>;
66
86
  address: import("@metamask/superstruct").Struct<string, null>;
67
87
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
68
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
88
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
89
+ entropy?: {
90
+ type: "mnemonic";
91
+ id: string;
92
+ derivationPath: string;
93
+ groupIndex: number;
94
+ } | {
95
+ type: "private-key";
96
+ };
97
+ exportable?: boolean;
98
+ }, null>;
69
99
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
70
100
  }>>;
71
101
  export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
@@ -90,7 +120,17 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
90
120
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
91
121
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
92
122
  id: string;
93
- options: Record<string, import("@metamask/utils").Json>;
123
+ options: Record<string, import("@metamask/utils").Json> & {
124
+ entropy?: {
125
+ type: "mnemonic";
126
+ id: string;
127
+ derivationPath: string;
128
+ groupIndex: number;
129
+ } | {
130
+ type: "private-key";
131
+ };
132
+ exportable?: boolean;
133
+ };
94
134
  address: string;
95
135
  scopes: `${string}:${string}`[];
96
136
  methods: string[];
@@ -107,7 +147,17 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
107
147
  }>;
108
148
  address: import("@metamask/superstruct").Struct<string, null>;
109
149
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
110
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
150
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
151
+ entropy?: {
152
+ type: "mnemonic";
153
+ id: string;
154
+ derivationPath: string;
155
+ groupIndex: number;
156
+ } | {
157
+ type: "private-key";
158
+ };
159
+ exportable?: boolean;
160
+ }, null>;
111
161
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
112
162
  }>;
113
163
  export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
@@ -132,7 +182,17 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
132
182
  export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
133
183
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
134
184
  id: string;
135
- options: Record<string, import("@metamask/utils").Json>;
185
+ options: Record<string, import("@metamask/utils").Json> & {
186
+ entropy?: {
187
+ type: "mnemonic";
188
+ id: string;
189
+ derivationPath: string;
190
+ groupIndex: number;
191
+ } | {
192
+ type: "private-key";
193
+ };
194
+ exportable?: boolean;
195
+ };
136
196
  address: string;
137
197
  scopes: `${string}:${string}`[];
138
198
  methods: string[];
@@ -149,7 +209,17 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
149
209
  }>;
150
210
  address: import("@metamask/superstruct").Struct<string, null>;
151
211
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
152
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
212
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
213
+ entropy?: {
214
+ type: "mnemonic";
215
+ id: string;
216
+ derivationPath: string;
217
+ groupIndex: number;
218
+ } | {
219
+ type: "private-key";
220
+ };
221
+ exportable?: boolean;
222
+ }, null>;
153
223
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
154
224
  }>;
155
225
  export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
@@ -158,16 +228,16 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
158
228
  id: string | number | null;
159
229
  jsonrpc: "2.0";
160
230
  params: {
231
+ groupIndex: number;
161
232
  scopes: `${string}:${string}`[];
162
233
  entropySource: string;
163
- groupIndex: number;
164
234
  };
165
235
  }, {
166
236
  method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
167
237
  params: import("@metamask/superstruct").Struct<{
238
+ groupIndex: number;
168
239
  scopes: `${string}:${string}`[];
169
240
  entropySource: string;
170
- groupIndex: number;
171
241
  }, {
172
242
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
173
243
  entropySource: import("@metamask/superstruct").Struct<string, null>;
@@ -179,12 +249,12 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
179
249
  export type DiscoverAccountsRequest = Infer<typeof DiscoverAccountsRequestStruct>;
180
250
  export declare const DiscoverAccountsResponseStruct: import("@metamask/superstruct").Struct<{
181
251
  type: "bip44";
182
- scopes: `${string}:${string}`[];
183
252
  derivationPath: `m/${string}`;
253
+ scopes: `${string}:${string}`[];
184
254
  }[], import("@metamask/superstruct").Struct<{
185
255
  type: "bip44";
186
- scopes: `${string}:${string}`[];
187
256
  derivationPath: `m/${string}`;
257
+ scopes: `${string}:${string}`[];
188
258
  }, {
189
259
  type: import("@metamask/superstruct").Struct<"bip44", "bip44">;
190
260
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
@@ -636,7 +706,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
636
706
  account: {
637
707
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
638
708
  id: string;
639
- options: Record<string, import("@metamask/utils").Json>;
709
+ options: Record<string, import("@metamask/utils").Json> & {
710
+ entropy?: {
711
+ type: "mnemonic";
712
+ id: string;
713
+ derivationPath: string;
714
+ groupIndex: number;
715
+ } | {
716
+ type: "private-key";
717
+ };
718
+ exportable?: boolean;
719
+ };
640
720
  address: string;
641
721
  scopes: `${string}:${string}`[];
642
722
  methods: string[];
@@ -648,7 +728,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
648
728
  account: {
649
729
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
650
730
  id: string;
651
- options: Record<string, import("@metamask/utils").Json>;
731
+ options: Record<string, import("@metamask/utils").Json> & {
732
+ entropy?: {
733
+ type: "mnemonic";
734
+ id: string;
735
+ derivationPath: string;
736
+ groupIndex: number;
737
+ } | {
738
+ type: "private-key";
739
+ };
740
+ exportable?: boolean;
741
+ };
652
742
  address: string;
653
743
  scopes: `${string}:${string}`[];
654
744
  methods: string[];
@@ -657,7 +747,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
657
747
  account: import("@metamask/superstruct").Struct<{
658
748
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
659
749
  id: string;
660
- options: Record<string, import("@metamask/utils").Json>;
750
+ options: Record<string, import("@metamask/utils").Json> & {
751
+ entropy?: {
752
+ type: "mnemonic";
753
+ id: string;
754
+ derivationPath: string;
755
+ groupIndex: number;
756
+ } | {
757
+ type: "private-key";
758
+ };
759
+ exportable?: boolean;
760
+ };
661
761
  address: string;
662
762
  scopes: `${string}:${string}`[];
663
763
  methods: string[];
@@ -674,7 +774,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
674
774
  }>;
675
775
  address: import("@metamask/superstruct").Struct<string, null>;
676
776
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
677
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
777
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
778
+ entropy?: {
779
+ type: "mnemonic";
780
+ id: string;
781
+ derivationPath: string;
782
+ groupIndex: number;
783
+ } | {
784
+ type: "private-key";
785
+ };
786
+ exportable?: boolean;
787
+ }, null>;
678
788
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
679
789
  }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