@metamask-previews/keyring-api 23.2.0-023fc63 → 23.2.0-7540e4c

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.
@@ -18,8 +18,6 @@ export declare enum SolMethod {
18
18
  export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
19
19
  type: "solana:data-account";
20
20
  id: string;
21
- address: string;
22
- scopes: `${string}:${string}`[];
23
21
  options: Record<string, import("@metamask/utils").Json> & {
24
22
  entropy?: {
25
23
  type: "mnemonic";
@@ -33,6 +31,8 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
33
31
  };
34
32
  exportable?: boolean;
35
33
  };
34
+ address: string;
35
+ scopes: `${string}:${string}`[];
36
36
  methods: SolMethod[];
37
37
  }, {
38
38
  /**
@@ -18,8 +18,6 @@ export declare enum SolMethod {
18
18
  export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
19
19
  type: "solana:data-account";
20
20
  id: string;
21
- address: string;
22
- scopes: `${string}:${string}`[];
23
21
  options: Record<string, import("@metamask/utils").Json> & {
24
22
  entropy?: {
25
23
  type: "mnemonic";
@@ -33,6 +31,8 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
33
31
  };
34
32
  exportable?: boolean;
35
33
  };
34
+ address: string;
35
+ scopes: `${string}:${string}`[];
36
36
  methods: SolMethod[];
37
37
  }, {
38
38
  /**
@@ -16,8 +16,6 @@ export declare enum TrxMethod {
16
16
  export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct<{
17
17
  type: "tron:eoa";
18
18
  id: string;
19
- address: string;
20
- scopes: `${string}:${string}`[];
21
19
  options: Record<string, import("@metamask/utils").Json> & {
22
20
  entropy?: {
23
21
  type: "mnemonic";
@@ -31,6 +29,8 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
31
29
  };
32
30
  exportable?: boolean;
33
31
  };
32
+ address: string;
33
+ scopes: `${string}:${string}`[];
34
34
  methods: TrxMethod[];
35
35
  }, {
36
36
  /**
@@ -16,8 +16,6 @@ export declare enum TrxMethod {
16
16
  export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct<{
17
17
  type: "tron:eoa";
18
18
  id: string;
19
- address: string;
20
- scopes: `${string}:${string}`[];
21
19
  options: Record<string, import("@metamask/utils").Json> & {
22
20
  entropy?: {
23
21
  type: "mnemonic";
@@ -31,6 +29,8 @@ export declare const TrxEoaAccountStruct: import("@metamask/superstruct").Struct
31
29
  };
32
30
  exportable?: boolean;
33
31
  };
32
+ address: string;
33
+ scopes: `${string}:${string}`[];
34
34
  methods: TrxMethod[];
35
35
  }, {
36
36
  /**
@@ -85,11 +85,11 @@ export type CreateAccountBip44DiscoverOptions = Infer<typeof CreateAccountBip44D
85
85
  */
86
86
  export declare const CreateAccountBip44DeriveIndexRangeOptionsStruct: import("@metamask/superstruct").Struct<{
87
87
  type: "bip44:derive-index-range";
88
- entropySource: string;
89
88
  range: {
90
89
  from: number;
91
90
  to: number;
92
91
  };
92
+ entropySource: string;
93
93
  }, {
94
94
  /**
95
95
  * The type of the options.
@@ -85,11 +85,11 @@ export type CreateAccountBip44DiscoverOptions = Infer<typeof CreateAccountBip44D
85
85
  */
86
86
  export declare const CreateAccountBip44DeriveIndexRangeOptionsStruct: import("@metamask/superstruct").Struct<{
87
87
  type: "bip44:derive-index-range";
88
- entropySource: string;
89
88
  range: {
90
89
  from: number;
91
90
  to: number;
92
91
  };
92
+ entropySource: string;
93
93
  }, {
94
94
  /**
95
95
  * The type of the options.
@@ -63,11 +63,11 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
63
63
  entropySource: string;
64
64
  } | {
65
65
  type: "bip44:derive-index-range";
66
- entropySource: string;
67
66
  range: {
68
67
  from: number;
69
68
  to: number;
70
69
  };
70
+ entropySource: string;
71
71
  } | {
72
72
  type: "custom";
73
73
  } | {
@@ -63,11 +63,11 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
63
63
  entropySource: string;
64
64
  } | {
65
65
  type: "bip44:derive-index-range";
66
- entropySource: string;
67
66
  range: {
68
67
  from: number;
69
68
  to: number;
70
69
  };
70
+ entropySource: string;
71
71
  } | {
72
72
  type: "custom";
73
73
  } | {
@@ -35,8 +35,8 @@ export type KeyringRpcMethod = (typeof KeyringRpcMethod)[keyof typeof KeyringRpc
35
35
  */
36
36
  export declare function isKeyringRpcMethod(method: string): method is KeyringRpcMethod;
37
37
  export declare const GetAccountsRequestStruct: import("@metamask/superstruct").Struct<{
38
- id: string | number | null;
39
38
  method: "keyring_getAccounts";
39
+ id: string | number | null;
40
40
  jsonrpc: "2.0";
41
41
  }, {
42
42
  method: import("@metamask/superstruct").Struct<"keyring_getAccounts", "keyring_getAccounts">;
@@ -47,8 +47,6 @@ export type GetAccountsRequest = Infer<typeof GetAccountsRequestStruct>;
47
47
  export declare const GetAccountsResponseStruct: import("@metamask/superstruct").Struct<{
48
48
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
49
49
  id: string;
50
- address: string;
51
- scopes: `${string}:${string}`[];
52
50
  options: Record<string, import("@metamask/utils").Json> & {
53
51
  entropy?: {
54
52
  type: "mnemonic";
@@ -62,12 +60,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
62
60
  };
63
61
  exportable?: boolean;
64
62
  };
63
+ address: string;
64
+ scopes: `${string}:${string}`[];
65
65
  methods: string[];
66
66
  }[], import("@metamask/superstruct").Struct<{
67
67
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
68
68
  id: string;
69
- address: string;
70
- scopes: `${string}:${string}`[];
71
69
  options: Record<string, import("@metamask/utils").Json> & {
72
70
  entropy?: {
73
71
  type: "mnemonic";
@@ -81,6 +79,8 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
81
79
  };
82
80
  exportable?: boolean;
83
81
  };
82
+ address: string;
83
+ scopes: `${string}:${string}`[];
84
84
  methods: string[];
85
85
  }, {
86
86
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -115,12 +115,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
115
115
  }>>;
116
116
  export type GetAccountsResponse = Infer<typeof GetAccountsResponseStruct>;
117
117
  export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
118
- id: string | number | null;
119
118
  method: "keyring_getAccount";
119
+ id: string | number | null;
120
+ jsonrpc: "2.0";
120
121
  params: {
121
122
  id: string;
122
123
  };
123
- jsonrpc: "2.0";
124
124
  }, {
125
125
  method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
126
126
  params: import("@metamask/superstruct").Struct<{
@@ -135,8 +135,6 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
135
135
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
136
136
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
137
137
  id: string;
138
- address: string;
139
- scopes: `${string}:${string}`[];
140
138
  options: Record<string, import("@metamask/utils").Json> & {
141
139
  entropy?: {
142
140
  type: "mnemonic";
@@ -150,6 +148,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
150
148
  };
151
149
  exportable?: boolean;
152
150
  };
151
+ address: string;
152
+ scopes: `${string}:${string}`[];
153
153
  methods: string[];
154
154
  }, {
155
155
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -184,8 +184,9 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
184
184
  }>;
185
185
  export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
186
186
  export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
187
- id: string | number | null;
188
187
  method: "keyring_createAccounts";
188
+ id: string | number | null;
189
+ jsonrpc: "2.0";
189
190
  params: {
190
191
  type: "bip44:derive-path";
191
192
  derivationPath: `m/${string}`;
@@ -200,11 +201,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
200
201
  entropySource: string;
201
202
  } | {
202
203
  type: "bip44:derive-index-range";
203
- entropySource: string;
204
204
  range: {
205
205
  from: number;
206
206
  to: number;
207
207
  };
208
+ entropySource: string;
208
209
  } | {
209
210
  type: "custom";
210
211
  } | {
@@ -213,7 +214,6 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
213
214
  privateKey: string;
214
215
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
215
216
  };
216
- jsonrpc: "2.0";
217
217
  }, {
218
218
  method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
219
219
  params: import("@metamask/superstruct").Struct<{
@@ -230,11 +230,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
230
230
  entropySource: string;
231
231
  } | {
232
232
  type: "bip44:derive-index-range";
233
- entropySource: string;
234
233
  range: {
235
234
  from: number;
236
235
  to: number;
237
236
  };
237
+ entropySource: string;
238
238
  } | {
239
239
  type: "custom";
240
240
  } | {
@@ -250,8 +250,6 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
250
250
  export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
251
251
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
252
252
  id: string;
253
- address: string;
254
- scopes: `${string}:${string}`[];
255
253
  options: Record<string, import("@metamask/utils").Json> & {
256
254
  entropy?: {
257
255
  type: "mnemonic";
@@ -265,12 +263,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
265
263
  };
266
264
  exportable?: boolean;
267
265
  };
266
+ address: string;
267
+ scopes: `${string}:${string}`[];
268
268
  methods: string[];
269
269
  }[], import("@metamask/superstruct").Struct<{
270
270
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
271
271
  id: string;
272
- address: string;
273
- scopes: `${string}:${string}`[];
274
272
  options: Record<string, import("@metamask/utils").Json> & {
275
273
  entropy?: {
276
274
  type: "mnemonic";
@@ -284,6 +282,8 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
284
282
  };
285
283
  exportable?: boolean;
286
284
  };
285
+ address: string;
286
+ scopes: `${string}:${string}`[];
287
287
  methods: string[];
288
288
  }, {
289
289
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -318,12 +318,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
318
318
  }>>;
319
319
  export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
320
320
  export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
321
- id: string | number | null;
322
321
  method: "keyring_deleteAccount";
322
+ id: string | number | null;
323
+ jsonrpc: "2.0";
323
324
  params: {
324
325
  id: string;
325
326
  };
326
- jsonrpc: "2.0";
327
327
  }, {
328
328
  method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
329
329
  params: import("@metamask/superstruct").Struct<{
@@ -338,8 +338,9 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
338
338
  export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
339
339
  export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
340
340
  export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
341
- id: string | number | null;
342
341
  method: "keyring_exportAccount";
342
+ id: string | number | null;
343
+ jsonrpc: "2.0";
343
344
  params: {
344
345
  id: string;
345
346
  options?: {
@@ -347,7 +348,6 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
347
348
  encoding: "hexadecimal" | "base58";
348
349
  };
349
350
  };
350
- jsonrpc: "2.0";
351
351
  }, {
352
352
  method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
353
353
  params: import("@metamask/superstruct").Struct<{
@@ -387,30 +387,30 @@ export declare const ExportAccountResponseStruct: import("@metamask/superstruct"
387
387
  }>;
388
388
  export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
389
389
  export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
390
- id: string | number | null;
391
390
  method: "keyring_submitRequest";
391
+ id: string | number | null;
392
+ jsonrpc: "2.0";
392
393
  params: {
393
394
  id: string;
394
- scope: string;
395
- account: string;
396
395
  origin: string;
397
396
  request: {
398
397
  method: string;
399
398
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
400
399
  };
400
+ scope: string;
401
+ account: string;
401
402
  };
402
- jsonrpc: "2.0";
403
403
  }, {
404
404
  method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
405
405
  params: import("@metamask/superstruct").Struct<{
406
406
  id: string;
407
- scope: string;
408
- account: string;
409
407
  origin: string;
410
408
  request: {
411
409
  method: string;
412
410
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
413
411
  };
412
+ scope: string;
413
+ account: string;
414
414
  }, {
415
415
  id: import("@metamask/superstruct").Struct<string, null>;
416
416
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -421,7 +421,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
421
421
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
422
422
  }, {
423
423
  method: import("@metamask/superstruct").Struct<string, null>;
424
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
424
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
425
425
  }>;
426
426
  }>;
427
427
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -35,8 +35,8 @@ export type KeyringRpcMethod = (typeof KeyringRpcMethod)[keyof typeof KeyringRpc
35
35
  */
36
36
  export declare function isKeyringRpcMethod(method: string): method is KeyringRpcMethod;
37
37
  export declare const GetAccountsRequestStruct: import("@metamask/superstruct").Struct<{
38
- id: string | number | null;
39
38
  method: "keyring_getAccounts";
39
+ id: string | number | null;
40
40
  jsonrpc: "2.0";
41
41
  }, {
42
42
  method: import("@metamask/superstruct").Struct<"keyring_getAccounts", "keyring_getAccounts">;
@@ -47,8 +47,6 @@ export type GetAccountsRequest = Infer<typeof GetAccountsRequestStruct>;
47
47
  export declare const GetAccountsResponseStruct: import("@metamask/superstruct").Struct<{
48
48
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
49
49
  id: string;
50
- address: string;
51
- scopes: `${string}:${string}`[];
52
50
  options: Record<string, import("@metamask/utils").Json> & {
53
51
  entropy?: {
54
52
  type: "mnemonic";
@@ -62,12 +60,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
62
60
  };
63
61
  exportable?: boolean;
64
62
  };
63
+ address: string;
64
+ scopes: `${string}:${string}`[];
65
65
  methods: string[];
66
66
  }[], import("@metamask/superstruct").Struct<{
67
67
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
68
68
  id: string;
69
- address: string;
70
- scopes: `${string}:${string}`[];
71
69
  options: Record<string, import("@metamask/utils").Json> & {
72
70
  entropy?: {
73
71
  type: "mnemonic";
@@ -81,6 +79,8 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
81
79
  };
82
80
  exportable?: boolean;
83
81
  };
82
+ address: string;
83
+ scopes: `${string}:${string}`[];
84
84
  methods: string[];
85
85
  }, {
86
86
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -115,12 +115,12 @@ export declare const GetAccountsResponseStruct: import("@metamask/superstruct").
115
115
  }>>;
116
116
  export type GetAccountsResponse = Infer<typeof GetAccountsResponseStruct>;
117
117
  export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
118
- id: string | number | null;
119
118
  method: "keyring_getAccount";
119
+ id: string | number | null;
120
+ jsonrpc: "2.0";
120
121
  params: {
121
122
  id: string;
122
123
  };
123
- jsonrpc: "2.0";
124
124
  }, {
125
125
  method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
126
126
  params: import("@metamask/superstruct").Struct<{
@@ -135,8 +135,6 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
135
135
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
136
136
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
137
137
  id: string;
138
- address: string;
139
- scopes: `${string}:${string}`[];
140
138
  options: Record<string, import("@metamask/utils").Json> & {
141
139
  entropy?: {
142
140
  type: "mnemonic";
@@ -150,6 +148,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
150
148
  };
151
149
  exportable?: boolean;
152
150
  };
151
+ address: string;
152
+ scopes: `${string}:${string}`[];
153
153
  methods: string[];
154
154
  }, {
155
155
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -184,8 +184,9 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
184
184
  }>;
185
185
  export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
186
186
  export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
187
- id: string | number | null;
188
187
  method: "keyring_createAccounts";
188
+ id: string | number | null;
189
+ jsonrpc: "2.0";
189
190
  params: {
190
191
  type: "bip44:derive-path";
191
192
  derivationPath: `m/${string}`;
@@ -200,11 +201,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
200
201
  entropySource: string;
201
202
  } | {
202
203
  type: "bip44:derive-index-range";
203
- entropySource: string;
204
204
  range: {
205
205
  from: number;
206
206
  to: number;
207
207
  };
208
+ entropySource: string;
208
209
  } | {
209
210
  type: "custom";
210
211
  } | {
@@ -213,7 +214,6 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
213
214
  privateKey: string;
214
215
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
215
216
  };
216
- jsonrpc: "2.0";
217
217
  }, {
218
218
  method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
219
219
  params: import("@metamask/superstruct").Struct<{
@@ -230,11 +230,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
230
230
  entropySource: string;
231
231
  } | {
232
232
  type: "bip44:derive-index-range";
233
- entropySource: string;
234
233
  range: {
235
234
  from: number;
236
235
  to: number;
237
236
  };
237
+ entropySource: string;
238
238
  } | {
239
239
  type: "custom";
240
240
  } | {
@@ -250,8 +250,6 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
250
250
  export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
251
251
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
252
252
  id: string;
253
- address: string;
254
- scopes: `${string}:${string}`[];
255
253
  options: Record<string, import("@metamask/utils").Json> & {
256
254
  entropy?: {
257
255
  type: "mnemonic";
@@ -265,12 +263,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
265
263
  };
266
264
  exportable?: boolean;
267
265
  };
266
+ address: string;
267
+ scopes: `${string}:${string}`[];
268
268
  methods: string[];
269
269
  }[], import("@metamask/superstruct").Struct<{
270
270
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
271
271
  id: string;
272
- address: string;
273
- scopes: `${string}:${string}`[];
274
272
  options: Record<string, import("@metamask/utils").Json> & {
275
273
  entropy?: {
276
274
  type: "mnemonic";
@@ -284,6 +282,8 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
284
282
  };
285
283
  exportable?: boolean;
286
284
  };
285
+ address: string;
286
+ scopes: `${string}:${string}`[];
287
287
  methods: string[];
288
288
  }, {
289
289
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -318,12 +318,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
318
318
  }>>;
319
319
  export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
320
320
  export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
321
- id: string | number | null;
322
321
  method: "keyring_deleteAccount";
322
+ id: string | number | null;
323
+ jsonrpc: "2.0";
323
324
  params: {
324
325
  id: string;
325
326
  };
326
- jsonrpc: "2.0";
327
327
  }, {
328
328
  method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
329
329
  params: import("@metamask/superstruct").Struct<{
@@ -338,8 +338,9 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
338
338
  export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
339
339
  export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
340
340
  export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
341
- id: string | number | null;
342
341
  method: "keyring_exportAccount";
342
+ id: string | number | null;
343
+ jsonrpc: "2.0";
343
344
  params: {
344
345
  id: string;
345
346
  options?: {
@@ -347,7 +348,6 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
347
348
  encoding: "hexadecimal" | "base58";
348
349
  };
349
350
  };
350
- jsonrpc: "2.0";
351
351
  }, {
352
352
  method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
353
353
  params: import("@metamask/superstruct").Struct<{
@@ -387,30 +387,30 @@ export declare const ExportAccountResponseStruct: import("@metamask/superstruct"
387
387
  }>;
388
388
  export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
389
389
  export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
390
- id: string | number | null;
391
390
  method: "keyring_submitRequest";
391
+ id: string | number | null;
392
+ jsonrpc: "2.0";
392
393
  params: {
393
394
  id: string;
394
- scope: string;
395
- account: string;
396
395
  origin: string;
397
396
  request: {
398
397
  method: string;
399
398
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
400
399
  };
400
+ scope: string;
401
+ account: string;
401
402
  };
402
- jsonrpc: "2.0";
403
403
  }, {
404
404
  method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
405
405
  params: import("@metamask/superstruct").Struct<{
406
406
  id: string;
407
- scope: string;
408
- account: string;
409
407
  origin: string;
410
408
  request: {
411
409
  method: string;
412
410
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
413
411
  };
412
+ scope: string;
413
+ account: string;
414
414
  }, {
415
415
  id: import("@metamask/superstruct").Struct<string, null>;
416
416
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -421,7 +421,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
421
421
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
422
422
  }, {
423
423
  method: import("@metamask/superstruct").Struct<string, null>;
424
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
424
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
425
425
  }>;
426
426
  }>;
427
427
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -17,8 +17,6 @@ export declare enum XlmMethod {
17
17
  export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
18
18
  type: "stellar:account";
19
19
  id: string;
20
- address: string;
21
- scopes: `${string}:${string}`[];
22
20
  options: Record<string, import("@metamask/utils").Json> & {
23
21
  entropy?: {
24
22
  type: "mnemonic";
@@ -32,6 +30,8 @@ export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
32
30
  };
33
31
  exportable?: boolean;
34
32
  };
33
+ address: string;
34
+ scopes: `${string}:${string}`[];
35
35
  methods: XlmMethod[];
36
36
  }, {
37
37
  /**
@@ -17,8 +17,6 @@ export declare enum XlmMethod {
17
17
  export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
18
18
  type: "stellar:account";
19
19
  id: string;
20
- address: string;
21
- scopes: `${string}:${string}`[];
22
20
  options: Record<string, import("@metamask/utils").Json> & {
23
21
  entropy?: {
24
22
  type: "mnemonic";
@@ -32,6 +30,8 @@ export declare const XlmAccountStruct: import("@metamask/superstruct").Struct<{
32
30
  };
33
31
  exportable?: boolean;
34
32
  };
33
+ address: string;
34
+ scopes: `${string}:${string}`[];
35
35
  methods: XlmMethod[];
36
36
  }, {
37
37
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-api",
3
- "version": "23.2.0-023fc63",
3
+ "version": "23.2.0-7540e4c",
4
4
  "description": "MetaMask Keyring API",
5
5
  "keywords": [
6
6
  "keyring",