@metamask-previews/keyring-internal-api 2.0.1-7ba2de1 → 2.0.1-7fd7a95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.cts CHANGED
@@ -139,7 +139,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
139
139
  lastSelected?: number;
140
140
  };
141
141
  address: string;
142
- scopes: `${string}:${string}`[];
142
+ scopes: string[];
143
143
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
144
144
  }, {
145
145
  metadata: Struct<{
@@ -177,7 +177,6 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
177
177
  }>;
178
178
  address: import("@metamask/superstruct").Struct<string, null>;
179
179
  type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
180
- scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
181
180
  methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
182
181
  personal_sign: "personal_sign";
183
182
  eth_sign: "eth_sign";
@@ -189,6 +188,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
189
188
  eth_signUserOperation: "eth_signUserOperation";
190
189
  }>>;
191
190
  id: import("@metamask/superstruct").Struct<string, null>;
191
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
192
192
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
193
193
  }>;
194
194
  export declare const InternalBtcP2wpkhAccountStruct: Struct<{
@@ -210,7 +210,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
210
210
  lastSelected?: number;
211
211
  };
212
212
  address: string;
213
- scopes: `${string}:${string}`[];
213
+ scopes: string[];
214
214
  methods: "sendBitcoin"[];
215
215
  }, {
216
216
  metadata: Struct<{
@@ -248,11 +248,11 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
248
248
  }>;
249
249
  address: import("@metamask/superstruct").Struct<string, null>;
250
250
  type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
251
- scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
252
251
  methods: import("@metamask/superstruct").Struct<"sendBitcoin"[], import("@metamask/superstruct").Struct<"sendBitcoin", {
253
252
  sendBitcoin: "sendBitcoin";
254
253
  }>>;
255
254
  id: import("@metamask/superstruct").Struct<string, null>;
255
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
256
256
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
257
257
  }>;
258
258
  export declare const InternalSolDataAccountStruct: Struct<{
@@ -274,7 +274,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
274
274
  lastSelected?: number;
275
275
  };
276
276
  address: string;
277
- scopes: `${string}:${string}`[];
277
+ scopes: string[];
278
278
  methods: "sendAndConfirmTransaction"[];
279
279
  }, {
280
280
  metadata: Struct<{
@@ -312,11 +312,11 @@ export declare const InternalSolDataAccountStruct: Struct<{
312
312
  }>;
313
313
  address: import("@metamask/superstruct").Struct<string, null>;
314
314
  type: import("@metamask/superstruct").Struct<"solana:data-account", "solana:data-account">;
315
- scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
316
315
  methods: import("@metamask/superstruct").Struct<"sendAndConfirmTransaction"[], import("@metamask/superstruct").Struct<"sendAndConfirmTransaction", {
317
316
  sendAndConfirmTransaction: "sendAndConfirmTransaction";
318
317
  }>>;
319
318
  id: import("@metamask/superstruct").Struct<string, null>;
319
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
320
320
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
321
321
  }>;
322
322
  export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
package/dist/types.d.mts CHANGED
@@ -139,7 +139,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
139
139
  lastSelected?: number;
140
140
  };
141
141
  address: string;
142
- scopes: `${string}:${string}`[];
142
+ scopes: string[];
143
143
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
144
144
  }, {
145
145
  metadata: Struct<{
@@ -177,7 +177,6 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
177
177
  }>;
178
178
  address: import("@metamask/superstruct").Struct<string, null>;
179
179
  type: import("@metamask/superstruct").Struct<"eip155:erc4337", "eip155:erc4337">;
180
- scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
181
180
  methods: import("@metamask/superstruct").Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], import("@metamask/superstruct").Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
182
181
  personal_sign: "personal_sign";
183
182
  eth_sign: "eth_sign";
@@ -189,6 +188,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
189
188
  eth_signUserOperation: "eth_signUserOperation";
190
189
  }>>;
191
190
  id: import("@metamask/superstruct").Struct<string, null>;
191
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
192
192
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
193
193
  }>;
194
194
  export declare const InternalBtcP2wpkhAccountStruct: Struct<{
@@ -210,7 +210,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
210
210
  lastSelected?: number;
211
211
  };
212
212
  address: string;
213
- scopes: `${string}:${string}`[];
213
+ scopes: string[];
214
214
  methods: "sendBitcoin"[];
215
215
  }, {
216
216
  metadata: Struct<{
@@ -248,11 +248,11 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
248
248
  }>;
249
249
  address: import("@metamask/superstruct").Struct<string, null>;
250
250
  type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
251
- scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
252
251
  methods: import("@metamask/superstruct").Struct<"sendBitcoin"[], import("@metamask/superstruct").Struct<"sendBitcoin", {
253
252
  sendBitcoin: "sendBitcoin";
254
253
  }>>;
255
254
  id: import("@metamask/superstruct").Struct<string, null>;
255
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
256
256
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
257
257
  }>;
258
258
  export declare const InternalSolDataAccountStruct: Struct<{
@@ -274,7 +274,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
274
274
  lastSelected?: number;
275
275
  };
276
276
  address: string;
277
- scopes: `${string}:${string}`[];
277
+ scopes: string[];
278
278
  methods: "sendAndConfirmTransaction"[];
279
279
  }, {
280
280
  metadata: Struct<{
@@ -312,11 +312,11 @@ export declare const InternalSolDataAccountStruct: Struct<{
312
312
  }>;
313
313
  address: import("@metamask/superstruct").Struct<string, null>;
314
314
  type: import("@metamask/superstruct").Struct<"solana:data-account", "solana:data-account">;
315
- scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
316
315
  methods: import("@metamask/superstruct").Struct<"sendAndConfirmTransaction"[], import("@metamask/superstruct").Struct<"sendAndConfirmTransaction", {
317
316
  sendAndConfirmTransaction: "sendAndConfirmTransaction";
318
317
  }>>;
319
318
  id: import("@metamask/superstruct").Struct<string, null>;
319
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
320
320
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
321
321
  }>;
322
322
  export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-internal-api",
3
- "version": "2.0.1-7ba2de1",
3
+ "version": "2.0.1-7fd7a95",
4
4
  "description": "MetaMask Keyring Internal API",
5
5
  "keywords": [
6
6
  "metamask",